2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.22 2009/01/26 21:54:23 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright 1998-2009 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 [yes]
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-deref Dereference overlay no|yes|mod [no]
1056 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1057 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1058 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1059 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1060 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1061 --enable-refint Referential Integrity overlay no|yes|mod [no]
1062 --enable-retcode Return Code testing overlay no|yes|mod [no]
1063 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1064 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1065 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1066 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1067 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1068 --enable-valsort Value Sorting overlay no|yes|mod [no]
1070 Library Generation & Linking Options
1071 --enable-static[=PKGS]
1072 build static libraries [default=yes]
1073 --enable-shared[=PKGS]
1074 build shared libraries [default=yes]
1075 --enable-fast-install[=PKGS]
1076 optimize for fast installation [default=yes]
1077 --disable-dependency-tracking speeds up one-time build
1078 --enable-dependency-tracking do not reject slow dependency extractors
1079 --disable-libtool-lock avoid locking (might break parallel builds)
1082 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1083 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1084 --with-subdir=DIR change default subdirectory used for installs
1085 --with-cyrus-sasl with Cyrus SASL support [auto]
1086 --with-fetch with fetch(3) URL support [auto]
1087 --with-gssapi with GSSAPI support [auto]
1088 --with-threads with threads [auto]
1089 --with-tls with TLS/SSL support auto|openssl|gnutls [auto]
1090 --with-yielding-select with implicitly yielding select [auto]
1091 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1092 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1093 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1094 --with-pic try to use only PIC/non-PIC objects [default=use
1097 include additional configurations [automatic]
1099 See INSTALL file for further details.
1101 Some influential environment variables:
1102 CC C compiler command
1103 CFLAGS C compiler flags
1104 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1105 nonstandard directory <lib dir>
1106 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1107 headers in a nonstandard directory <include dir>
1110 Use these variables to override the choices made by `configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1116 if test "$ac_init_help" = "recursive"; then
1117 # If there are subdirs, report their specific --help.
1119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1120 test -d $ac_dir || continue
1123 if test "$ac_dir" != .; then
1124 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1125 # A "../" for each directory in $ac_dir_suffix.
1126 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1128 ac_dir_suffix= ac_top_builddir=
1132 .) # No --srcdir option. We are building in place.
1134 if test -z "$ac_top_builddir"; then
1137 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1139 [\\/]* | ?:[\\/]* ) # Absolute path.
1140 ac_srcdir=$srcdir$ac_dir_suffix;
1141 ac_top_srcdir=$srcdir ;;
1143 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1144 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1147 # Do not use `cd foo && pwd` to compute absolute paths, because
1148 # the directories may not exist.
1150 .) ac_abs_builddir="$ac_dir";;
1153 .) ac_abs_builddir=`pwd`;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1155 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1158 case $ac_abs_builddir in
1159 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1161 case ${ac_top_builddir}. in
1162 .) ac_abs_top_builddir=$ac_abs_builddir;;
1163 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1164 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1167 case $ac_abs_builddir in
1168 .) ac_abs_srcdir=$ac_srcdir;;
1171 .) ac_abs_srcdir=$ac_abs_builddir;;
1172 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1173 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1176 case $ac_abs_builddir in
1177 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1179 case $ac_top_srcdir in
1180 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1181 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1182 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1187 # Check for guested configure; otherwise get Cygnus style configure.
1188 if test -f $ac_srcdir/configure.gnu; then
1190 $SHELL $ac_srcdir/configure.gnu --help=recursive
1191 elif test -f $ac_srcdir/configure; then
1193 $SHELL $ac_srcdir/configure --help=recursive
1194 elif test -f $ac_srcdir/configure.ac ||
1195 test -f $ac_srcdir/configure.in; then
1197 $ac_configure --help
1199 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1205 test -n "$ac_init_help" && exit 0
1206 if $ac_init_version; then
1209 Copyright (C) 2003 Free Software Foundation, Inc.
1210 This configure script is free software; the Free Software Foundation
1211 gives unlimited permission to copy, distribute and modify it.
1213 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1214 Restrictions apply, see COPYRIGHT and LICENSE files.
1220 This file contains any messages produced by compilers while
1221 running configure, to aid debugging if configure makes a mistake.
1223 It was created by $as_me, which was
1224 generated by GNU Autoconf 2.59. Invocation command line was
1235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1247 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258 test -z "$as_dir" && as_dir=.
1259 echo "PATH: $as_dir"
1274 # Keep a trace of the command line.
1275 # Strip out --no-create and --no-recursion so they do not pile up.
1276 # Strip out --silent because we don't want to record it for future runs.
1277 # Also quote any args containing shell meta-characters.
1278 # Make two passes to allow for proper duplicate-argument suppression.
1283 ac_must_keep_next=false
1289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1297 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1299 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1300 if test $ac_must_keep_next = true; then
1301 ac_must_keep_next=false # Got value, back to normal.
1304 *=* | --config-cache | -C | -disable-* | --disable-* \
1305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1307 | -with-* | --with-* | -without-* | --without-* | --x)
1308 case "$ac_configure_args0 " in
1309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1312 -* ) ac_must_keep_next=true ;;
1315 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1316 # Get rid of the leading space.
1322 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1323 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1325 # When interrupted or exit'd, cleanup temporary files, and complete
1326 # config.log. We remove comments because anyway the quotes in there
1327 # would cause problems or look ugly.
1328 # WARNING: Be sure not to use single quotes in there, as some shells,
1329 # such as our DU 5.0 friend, will then `close' the trap.
1330 trap 'exit_status=$?
1331 # Save into config.log some information that might help in debugging.
1336 ## ---------------- ##
1337 ## Cache variables. ##
1338 ## ---------------- ##
1341 # The following way of writing the cache mishandles newlines in values,
1344 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1347 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1359 ## ----------------- ##
1360 ## Output variables. ##
1361 ## ----------------- ##
1364 for ac_var in $ac_subst_vars
1366 eval ac_val=$`echo $ac_var`
1367 echo "$ac_var='"'"'$ac_val'"'"'"
1371 if test -n "$ac_subst_files"; then
1378 for ac_var in $ac_subst_files
1380 eval ac_val=$`echo $ac_var`
1381 echo "$ac_var='"'"'$ac_val'"'"'"
1386 if test -s confdefs.h; then
1393 sed "/^$/d" confdefs.h | sort
1396 test "$ac_signal" != 0 &&
1397 echo "$as_me: caught signal $ac_signal"
1398 echo "$as_me: exit $exit_status"
1400 rm -f core *.core &&
1401 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1404 for ac_signal in 1 2 13 15; do
1405 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1410 rm -rf conftest* confdefs.h
1411 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1414 # Predefined preprocessor variables.
1416 cat >>confdefs.h <<_ACEOF
1417 #define PACKAGE_NAME "$PACKAGE_NAME"
1421 cat >>confdefs.h <<_ACEOF
1422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426 cat >>confdefs.h <<_ACEOF
1427 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1431 cat >>confdefs.h <<_ACEOF
1432 #define PACKAGE_STRING "$PACKAGE_STRING"
1436 cat >>confdefs.h <<_ACEOF
1437 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441 # Let the site file select an alternate cache file if it wants to.
1442 # Prefer explicitly selected file to automatically selected ones.
1443 if test -z "$CONFIG_SITE"; then
1444 if test "x$prefix" != xNONE; then
1445 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1447 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1450 for ac_site_file in $CONFIG_SITE; do
1451 if test -r "$ac_site_file"; then
1452 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1453 echo "$as_me: loading site script $ac_site_file" >&6;}
1454 sed 's/^/| /' "$ac_site_file" >&5
1460 # Check that the precious variables saved in the cache have kept the same
1462 ac_cache_corrupted=false
1463 for ac_var in `(set) 2>&1 |
1464 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1465 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1466 eval ac_new_set=\$ac_env_${ac_var}_set
1467 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1468 eval ac_new_val="\$ac_env_${ac_var}_value"
1469 case $ac_old_set,$ac_new_set in
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1472 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1475 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1476 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1477 ac_cache_corrupted=: ;;
1480 if test "x$ac_old_val" != "x$ac_new_val"; then
1481 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1482 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1483 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1484 echo "$as_me: former value: $ac_old_val" >&2;}
1485 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1486 echo "$as_me: current value: $ac_new_val" >&2;}
1487 ac_cache_corrupted=:
1490 # Pass precious variables to config.status.
1491 if test "$ac_new_set" = set; then
1493 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1494 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1495 *) ac_arg=$ac_var=$ac_new_val ;;
1497 case " $ac_configure_args " in
1498 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1499 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1503 if $ac_cache_corrupted; then
1504 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1505 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1506 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1507 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1508 { (exit 1); exit 1; }; }
1512 ac_cpp='$CPP $CPPFLAGS'
1513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1562 for ac_dir in build $srcdir/build; do
1563 if test -f $ac_dir/install-sh; then
1565 ac_install_sh="$ac_aux_dir/install-sh -c"
1567 elif test -f $ac_dir/install.sh; then
1569 ac_install_sh="$ac_aux_dir/install.sh -c"
1571 elif test -f $ac_dir/shtool; then
1573 ac_install_sh="$ac_aux_dir/shtool install -c"
1577 if test -z "$ac_aux_dir"; then
1578 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1579 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1580 { (exit 1); exit 1; }; }
1582 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1583 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1584 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1586 eval `$ac_aux_dir/version.sh`
1587 if test -z "$OL_STRING"; then
1588 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1589 echo "$as_me: error: could not determine version" >&2;}
1590 { (exit 1); exit 1; }; }
1593 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
1594 ac_cv_shtool="$ac_aux_dir/shtool"
1596 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1597 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1598 { (exit 1); exit 1; }; }
1601 SHTOOL="$ac_cv_shtool"
1605 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1606 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1610 if test -d $ac_aux_dir/CVS; then
1611 OPENLDAP_CVS="(from CVS sources) "
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 am__api_version="1.9"
1700 # Find a good install program. We prefer a C program (faster),
1701 # so one script is as good as another. But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 # Account for people who put trailing slashes in PATH elements.
1726 ./ | .// | /cC/* | \
1727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1734 for ac_prog in ginstall scoinst install; do
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737 if test $ac_prog = install &&
1738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # AIX install. It has an incompatible calling convention.
1741 elif test $ac_prog = install &&
1742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743 # program-specific install script used by HP pwplus--don't use.
1746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758 if test "${ac_cv_path_install+set}" = set; then
1759 INSTALL=$ac_cv_path_install
1761 # As a last resort, use the slow shell script. We don't cache a
1762 # path for INSTALL within a source directory, because that will
1763 # break other packages using the cache if that directory is
1764 # removed, or if the path is relative.
1765 INSTALL=$ac_install_sh
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments. Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1790 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791 if test "$*" = "X"; then
1793 set X `ls -t $srcdir/configure conftest.file`
1796 if test "$*" != "X $srcdir/configure conftest.file" \
1797 && test "$*" != "X conftest.file $srcdir/configure"; then
1799 # If neither matched, then we have a broken ls. This can happen
1800 # if, for instance, CONFIG_SHELL is bash and it inherits a
1801 # broken ls alias from the environment. This has actually
1802 # happened. Such a system could not be considered "sane".
1803 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1806 alias in your environment" >&2;}
1807 { (exit 1); exit 1; }; }
1810 test "$2" = conftest.file
1816 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $. echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843 am_missing_run="$MISSING --run "
1846 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851 # We used to keeping the `.' as first argument, in order to
1852 # allow $(mkdir_p) to be used without argument. As in
1853 # $(mkdir_p) $(somedir)
1854 # where $(somedir) is conditionally defined. However this is wrong
1856 # 1. if the package is installed by a user who cannot write `.'
1857 # make install will fail,
1858 # 2. the above comment should most certainly read
1859 # $(mkdir_p) $(DESTDIR)$(somedir)
1860 # so it does not work when $(somedir) is undefined and
1861 # $(DESTDIR) is not.
1862 # To support the latter case, we have to write
1863 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864 # so the `.' trick is pointless.
1865 mkdir_p='mkdir -p --'
1867 # On NextStep and OpenStep, the `mkdir' command does not
1868 # recognize any option. It will interpret all options as
1869 # directories to create, and then abort because `.' already
1871 for d in ./-p ./--version;
1873 test -d $d && rmdir $d
1875 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876 if test -f "$ac_aux_dir/mkinstalldirs"; then
1877 mkdir_p='$(mkinstalldirs)'
1879 mkdir_p='$(install_sh) -d'
1883 for ac_prog in gawk mawk nawk awk
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$AWK"; then
1893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_AWK="$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$AWK"; then
1913 echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$AWK" && break
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.make <<\_ACEOF
1931 @echo 'ac_maketemp="$(MAKE)"'
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936 eval ac_cv_prog_make_${ac_make}_set=yes
1938 eval ac_cv_prog_make_${ac_make}_set=no
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 SET_MAKE="MAKE=${MAKE-make}"
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1959 rmdir .tst 2>/dev/null
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963 test -f $srcdir/config.status; then
1964 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971 if (cygpath --version) >/dev/null 2>/dev/null; then
1972 CYGPATH_W='cygpath -w'
1979 # Define the identity of the package.
1984 # Some tools Automake needs.
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'. However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$STRIP"; then
2016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036 echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_STRIP"; then
2046 # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_STRIP"; then
2054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_STRIP="strip"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2084 STRIP="$ac_cv_prog_STRIP"
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2090 # We need awk for the "check" target. The system "awk" is bad on
2092 # Always define AMTAR for backward compatibility.
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2145 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2147 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2149 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2158 ldap_subdir="/openldap"
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163 withval="$with_subdir"
2170 ldap_subdir="$withval"
2173 ldap_subdir="/$withval"
2179 # OpenLDAP --enable-debug
2181 # Check whether --enable-debug or --disable-debug was given.
2182 if test "${enable_debug+set}" = set; then
2183 enableval="$enable_debug"
2186 for ol_val in no yes traditional ; do
2187 if test "$enableval" = "$ol_val" ; then
2191 if test "$ol_arg" = "invalid" ; then
2192 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2193 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2194 { (exit 1); exit 1; }; }
2196 ol_enable_debug="$ol_arg"
2201 # end --enable-debug
2202 # OpenLDAP --enable-dynamic
2204 # Check whether --enable-dynamic or --disable-dynamic was given.
2205 if test "${enable_dynamic+set}" = set; then
2206 enableval="$enable_dynamic"
2209 for ol_val in auto yes no ; do
2210 if test "$enableval" = "$ol_val" ; then
2214 if test "$ol_arg" = "invalid" ; then
2215 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2216 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2217 { (exit 1); exit 1; }; }
2219 ol_enable_dynamic="$ol_arg"
2222 ol_enable_dynamic=no
2224 # end --enable-dynamic
2225 # OpenLDAP --enable-syslog
2227 # Check whether --enable-syslog or --disable-syslog was given.
2228 if test "${enable_syslog+set}" = set; then
2229 enableval="$enable_syslog"
2232 for ol_val in auto yes no ; do
2233 if test "$enableval" = "$ol_val" ; then
2237 if test "$ol_arg" = "invalid" ; then
2238 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2239 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2240 { (exit 1); exit 1; }; }
2242 ol_enable_syslog="$ol_arg"
2245 ol_enable_syslog=auto
2247 # end --enable-syslog
2248 # OpenLDAP --enable-proctitle
2250 # Check whether --enable-proctitle or --disable-proctitle was given.
2251 if test "${enable_proctitle+set}" = set; then
2252 enableval="$enable_proctitle"
2255 for ol_val in auto yes no ; do
2256 if test "$enableval" = "$ol_val" ; then
2260 if test "$ol_arg" = "invalid" ; then
2261 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2262 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2263 { (exit 1); exit 1; }; }
2265 ol_enable_proctitle="$ol_arg"
2268 ol_enable_proctitle=yes
2270 # end --enable-proctitle
2271 ol_enable_referrals=${ol_enable_referrals-no}
2272 # OpenLDAP --enable-ipv6
2274 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2275 if test "${enable_ipv6+set}" = set; then
2276 enableval="$enable_ipv6"
2279 for ol_val in auto yes no ; do
2280 if test "$enableval" = "$ol_val" ; then
2284 if test "$ol_arg" = "invalid" ; then
2285 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2286 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2287 { (exit 1); exit 1; }; }
2289 ol_enable_ipv6="$ol_arg"
2295 # OpenLDAP --enable-local
2297 # Check whether --enable-local or --disable-local was given.
2298 if test "${enable_local+set}" = set; then
2299 enableval="$enable_local"
2302 for ol_val in auto yes no ; do
2303 if test "$enableval" = "$ol_val" ; then
2307 if test "$ol_arg" = "invalid" ; then
2308 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2309 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2310 { (exit 1); exit 1; }; }
2312 ol_enable_local="$ol_arg"
2315 ol_enable_local=auto
2317 # end --enable-local
2319 # OpenLDAP --with-cyrus_sasl
2321 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2322 if test "${with_cyrus_sasl+set}" = set; then
2323 withval="$with_cyrus_sasl"
2326 for ol_val in auto yes no ; do
2327 if test "$withval" = "$ol_val" ; then
2331 if test "$ol_arg" = "invalid" ; then
2332 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2333 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2334 { (exit 1); exit 1; }; }
2336 ol_with_cyrus_sasl="$ol_arg"
2339 ol_with_cyrus_sasl="auto"
2340 fi; # end --with-cyrus_sasl
2342 # OpenLDAP --with-fetch
2344 # Check whether --with-fetch or --without-fetch was given.
2345 if test "${with_fetch+set}" = set; then
2346 withval="$with_fetch"
2349 for ol_val in auto yes no ; do
2350 if test "$withval" = "$ol_val" ; then
2354 if test "$ol_arg" = "invalid" ; then
2355 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2356 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2357 { (exit 1); exit 1; }; }
2359 ol_with_fetch="$ol_arg"
2362 ol_with_fetch="auto"
2363 fi; # end --with-fetch
2365 # OpenLDAP --with-gssapi
2367 # Check whether --with-gssapi or --without-gssapi was given.
2368 if test "${with_gssapi+set}" = set; then
2369 withval="$with_gssapi"
2372 for ol_val in auto yes no ; do
2373 if test "$withval" = "$ol_val" ; then
2377 if test "$ol_arg" = "invalid" ; then
2378 { { echo "$as_me:$LINENO: error: bad value $withval for --with-gssapi" >&5
2379 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2380 { (exit 1); exit 1; }; }
2382 ol_with_gssapi="$ol_arg"
2385 ol_with_gssapi="auto"
2386 fi; # end --with-gssapi
2388 # OpenLDAP --with-threads
2390 # Check whether --with-threads or --without-threads was given.
2391 if test "${with_threads+set}" = set; then
2392 withval="$with_threads"
2395 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2396 if test "$withval" = "$ol_val" ; then
2400 if test "$ol_arg" = "invalid" ; then
2401 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2402 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2403 { (exit 1); exit 1; }; }
2405 ol_with_threads="$ol_arg"
2408 ol_with_threads="auto"
2409 fi; # end --with-threads
2411 # OpenLDAP --with-tls
2413 # Check whether --with-tls or --without-tls was given.
2414 if test "${with_tls+set}" = set; then
2418 for ol_val in auto openssl gnutls yes no ; do
2419 if test "$withval" = "$ol_val" ; then
2423 if test "$ol_arg" = "invalid" ; then
2424 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2425 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2426 { (exit 1); exit 1; }; }
2428 ol_with_tls="$ol_arg"
2432 fi; # end --with-tls
2434 # OpenLDAP --with-yielding_select
2436 # Check whether --with-yielding_select or --without-yielding_select was given.
2437 if test "${with_yielding_select+set}" = set; then
2438 withval="$with_yielding_select"
2441 for ol_val in auto yes no manual ; do
2442 if test "$withval" = "$ol_val" ; then
2446 if test "$ol_arg" = "invalid" ; then
2447 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2448 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2449 { (exit 1); exit 1; }; }
2451 ol_with_yielding_select="$ol_arg"
2454 ol_with_yielding_select="auto"
2455 fi; # end --with-yielding_select
2457 # OpenLDAP --with-mp
2459 # Check whether --with-mp or --without-mp was given.
2460 if test "${with_mp+set}" = set; then
2464 for ol_val in auto longlong long bignum gmp yes no ; do
2465 if test "$withval" = "$ol_val" ; then
2469 if test "$ol_arg" = "invalid" ; then
2470 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
2471 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
2472 { (exit 1); exit 1; }; }
2474 ol_with_mp="$ol_arg"
2480 # OpenLDAP --with-odbc
2482 # Check whether --with-odbc or --without-odbc was given.
2483 if test "${with_odbc+set}" = set; then
2484 withval="$with_odbc"
2487 for ol_val in auto iodbc unixodbc odbc32 ; do
2488 if test "$withval" = "$ol_val" ; then
2492 if test "$ol_arg" = "invalid" ; then
2493 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
2494 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
2495 { (exit 1); exit 1; }; }
2497 ol_with_odbc="$ol_arg"
2501 fi; # end --with-odbc
2505 # Check whether --enable-xxslapdoptions or --disable-xxslapdoptions was given.
2506 if test "${enable_xxslapdoptions+set}" = set; then
2507 enableval="$enable_xxslapdoptions"
2510 # OpenLDAP --enable-slapd
2512 # Check whether --enable-slapd or --disable-slapd was given.
2513 if test "${enable_slapd+set}" = set; then
2514 enableval="$enable_slapd"
2517 for ol_val in auto yes no ; do
2518 if test "$enableval" = "$ol_val" ; then
2522 if test "$ol_arg" = "invalid" ; then
2523 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2524 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2525 { (exit 1); exit 1; }; }
2527 ol_enable_slapd="$ol_arg"
2532 # end --enable-slapd
2533 # OpenLDAP --enable-dynacl
2535 # Check whether --enable-dynacl or --disable-dynacl was given.
2536 if test "${enable_dynacl+set}" = set; then
2537 enableval="$enable_dynacl"
2540 for ol_val in auto yes no ; do
2541 if test "$enableval" = "$ol_val" ; then
2545 if test "$ol_arg" = "invalid" ; then
2546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
2547 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
2548 { (exit 1); exit 1; }; }
2550 ol_enable_dynacl="$ol_arg"
2555 # end --enable-dynacl
2556 # OpenLDAP --enable-aci
2558 # Check whether --enable-aci or --disable-aci was given.
2559 if test "${enable_aci+set}" = set; then
2560 enableval="$enable_aci"
2563 for ol_val in no yes mod ; do
2564 if test "$enableval" = "$ol_val" ; then
2568 if test "$ol_arg" = "invalid" ; then
2569 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2570 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2571 { (exit 1); exit 1; }; }
2573 ol_enable_aci="$ol_arg"
2579 # OpenLDAP --enable-cleartext
2581 # Check whether --enable-cleartext or --disable-cleartext was given.
2582 if test "${enable_cleartext+set}" = set; then
2583 enableval="$enable_cleartext"
2586 for ol_val in auto yes no ; do
2587 if test "$enableval" = "$ol_val" ; then
2591 if test "$ol_arg" = "invalid" ; then
2592 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2593 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2594 { (exit 1); exit 1; }; }
2596 ol_enable_cleartext="$ol_arg"
2599 ol_enable_cleartext=yes
2601 # end --enable-cleartext
2602 # OpenLDAP --enable-crypt
2604 # Check whether --enable-crypt or --disable-crypt was given.
2605 if test "${enable_crypt+set}" = set; then
2606 enableval="$enable_crypt"
2609 for ol_val in auto yes no ; do
2610 if test "$enableval" = "$ol_val" ; then
2614 if test "$ol_arg" = "invalid" ; then
2615 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2616 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2617 { (exit 1); exit 1; }; }
2619 ol_enable_crypt="$ol_arg"
2624 # end --enable-crypt
2625 # OpenLDAP --enable-lmpasswd
2627 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2628 if test "${enable_lmpasswd+set}" = set; then
2629 enableval="$enable_lmpasswd"
2632 for ol_val in auto yes no ; do
2633 if test "$enableval" = "$ol_val" ; then
2637 if test "$ol_arg" = "invalid" ; then
2638 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2639 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2640 { (exit 1); exit 1; }; }
2642 ol_enable_lmpasswd="$ol_arg"
2645 ol_enable_lmpasswd=no
2647 # end --enable-lmpasswd
2648 # OpenLDAP --enable-spasswd
2650 # Check whether --enable-spasswd or --disable-spasswd was given.
2651 if test "${enable_spasswd+set}" = set; then
2652 enableval="$enable_spasswd"
2655 for ol_val in auto yes no ; do
2656 if test "$enableval" = "$ol_val" ; then
2660 if test "$ol_arg" = "invalid" ; then
2661 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2662 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2663 { (exit 1); exit 1; }; }
2665 ol_enable_spasswd="$ol_arg"
2668 ol_enable_spasswd=no
2670 # end --enable-spasswd
2671 # OpenLDAP --enable-modules
2673 # Check whether --enable-modules or --disable-modules was given.
2674 if test "${enable_modules+set}" = set; then
2675 enableval="$enable_modules"
2678 for ol_val in auto yes no ; do
2679 if test "$enableval" = "$ol_val" ; then
2683 if test "$ol_arg" = "invalid" ; then
2684 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2685 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2686 { (exit 1); exit 1; }; }
2688 ol_enable_modules="$ol_arg"
2691 ol_enable_modules=no
2693 # end --enable-modules
2694 # OpenLDAP --enable-rewrite
2696 # Check whether --enable-rewrite or --disable-rewrite was given.
2697 if test "${enable_rewrite+set}" = set; then
2698 enableval="$enable_rewrite"
2701 for ol_val in auto yes no ; do
2702 if test "$enableval" = "$ol_val" ; then
2706 if test "$ol_arg" = "invalid" ; then
2707 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
2708 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2709 { (exit 1); exit 1; }; }
2711 ol_enable_rewrite="$ol_arg"
2714 ol_enable_rewrite=auto
2716 # end --enable-rewrite
2717 # OpenLDAP --enable-rlookups
2719 # Check whether --enable-rlookups or --disable-rlookups was given.
2720 if test "${enable_rlookups+set}" = set; then
2721 enableval="$enable_rlookups"
2724 for ol_val in auto yes no ; do
2725 if test "$enableval" = "$ol_val" ; then
2729 if test "$ol_arg" = "invalid" ; then
2730 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2731 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2732 { (exit 1); exit 1; }; }
2734 ol_enable_rlookups="$ol_arg"
2737 ol_enable_rlookups=no
2739 # end --enable-rlookups
2740 # OpenLDAP --enable-slapi
2742 # Check whether --enable-slapi or --disable-slapi was given.
2743 if test "${enable_slapi+set}" = set; then
2744 enableval="$enable_slapi"
2747 for ol_val in auto yes no ; do
2748 if test "$enableval" = "$ol_val" ; then
2752 if test "$ol_arg" = "invalid" ; then
2753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2754 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2755 { (exit 1); exit 1; }; }
2757 ol_enable_slapi="$ol_arg"
2762 # end --enable-slapi
2763 # OpenLDAP --enable-slp
2765 # Check whether --enable-slp or --disable-slp was given.
2766 if test "${enable_slp+set}" = set; then
2767 enableval="$enable_slp"
2770 for ol_val in auto yes no ; do
2771 if test "$enableval" = "$ol_val" ; then
2775 if test "$ol_arg" = "invalid" ; then
2776 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2777 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2778 { (exit 1); exit 1; }; }
2780 ol_enable_slp="$ol_arg"
2786 # OpenLDAP --enable-wrappers
2788 # Check whether --enable-wrappers or --disable-wrappers was given.
2789 if test "${enable_wrappers+set}" = set; then
2790 enableval="$enable_wrappers"
2793 for ol_val in auto yes no ; do
2794 if test "$enableval" = "$ol_val" ; then
2798 if test "$ol_arg" = "invalid" ; then
2799 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2800 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2801 { (exit 1); exit 1; }; }
2803 ol_enable_wrappers="$ol_arg"
2806 ol_enable_wrappers=no
2808 # end --enable-wrappers
2825 # Check whether --enable-xxslapbackends or --disable-xxslapbackends was given.
2826 if test "${enable_xxslapbackends+set}" = set; then
2827 enableval="$enable_xxslapbackends"
2831 # OpenLDAP --enable-backends
2833 # Check whether --enable-backends or --disable-backends was given.
2834 if test "${enable_backends+set}" = set; then
2835 enableval="$enable_backends"
2838 for ol_val in no yes mod ; do
2839 if test "$enableval" = "$ol_val" ; then
2843 if test "$ol_arg" = "invalid" ; then
2844 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
2845 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2846 { (exit 1); exit 1; }; }
2848 ol_enable_backends="$ol_arg"
2851 # end --enable-backends
2852 # OpenLDAP --enable-bdb
2854 # Check whether --enable-bdb or --disable-bdb was given.
2855 if test "${enable_bdb+set}" = set; then
2856 enableval="$enable_bdb"
2859 for ol_val in no yes mod ; do
2860 if test "$enableval" = "$ol_val" ; then
2864 if test "$ol_arg" = "invalid" ; then
2865 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2866 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2867 { (exit 1); exit 1; }; }
2869 ol_enable_bdb="$ol_arg"
2872 ol_enable_bdb=${ol_enable_backends:-yes}
2875 # OpenLDAP --enable-dnssrv
2877 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2878 if test "${enable_dnssrv+set}" = set; then
2879 enableval="$enable_dnssrv"
2882 for ol_val in no yes mod ; do
2883 if test "$enableval" = "$ol_val" ; then
2887 if test "$ol_arg" = "invalid" ; then
2888 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2889 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2890 { (exit 1); exit 1; }; }
2892 ol_enable_dnssrv="$ol_arg"
2895 ol_enable_dnssrv=${ol_enable_backends:-no}
2897 # end --enable-dnssrv
2898 # OpenLDAP --enable-hdb
2900 # Check whether --enable-hdb or --disable-hdb was given.
2901 if test "${enable_hdb+set}" = set; then
2902 enableval="$enable_hdb"
2905 for ol_val in no yes mod ; do
2906 if test "$enableval" = "$ol_val" ; then
2910 if test "$ol_arg" = "invalid" ; then
2911 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2912 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2913 { (exit 1); exit 1; }; }
2915 ol_enable_hdb="$ol_arg"
2918 ol_enable_hdb=${ol_enable_backends:-yes}
2921 # OpenLDAP --enable-ldap
2923 # Check whether --enable-ldap or --disable-ldap was given.
2924 if test "${enable_ldap+set}" = set; then
2925 enableval="$enable_ldap"
2928 for ol_val in no yes mod ; do
2929 if test "$enableval" = "$ol_val" ; then
2933 if test "$ol_arg" = "invalid" ; then
2934 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2935 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2936 { (exit 1); exit 1; }; }
2938 ol_enable_ldap="$ol_arg"
2941 ol_enable_ldap=${ol_enable_backends:-no}
2944 # OpenLDAP --enable-meta
2946 # Check whether --enable-meta or --disable-meta was given.
2947 if test "${enable_meta+set}" = set; then
2948 enableval="$enable_meta"
2951 for ol_val in no yes mod ; do
2952 if test "$enableval" = "$ol_val" ; then
2956 if test "$ol_arg" = "invalid" ; then
2957 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2958 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2959 { (exit 1); exit 1; }; }
2961 ol_enable_meta="$ol_arg"
2964 ol_enable_meta=${ol_enable_backends:-no}
2967 # OpenLDAP --enable-monitor
2969 # Check whether --enable-monitor or --disable-monitor was given.
2970 if test "${enable_monitor+set}" = set; then
2971 enableval="$enable_monitor"
2974 for ol_val in no yes mod ; do
2975 if test "$enableval" = "$ol_val" ; then
2979 if test "$ol_arg" = "invalid" ; then
2980 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2981 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2982 { (exit 1); exit 1; }; }
2984 ol_enable_monitor="$ol_arg"
2987 ol_enable_monitor=${ol_enable_backends:-yes}
2989 # end --enable-monitor
2990 # OpenLDAP --enable-ndb
2992 # Check whether --enable-ndb or --disable-ndb was given.
2993 if test "${enable_ndb+set}" = set; then
2994 enableval="$enable_ndb"
2997 for ol_val in no yes mod ; do
2998 if test "$enableval" = "$ol_val" ; then
3002 if test "$ol_arg" = "invalid" ; then
3003 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3004 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3005 { (exit 1); exit 1; }; }
3007 ol_enable_ndb="$ol_arg"
3010 ol_enable_ndb=${ol_enable_backends:-no}
3013 # OpenLDAP --enable-null
3015 # Check whether --enable-null or --disable-null was given.
3016 if test "${enable_null+set}" = set; then
3017 enableval="$enable_null"
3020 for ol_val in no yes mod ; do
3021 if test "$enableval" = "$ol_val" ; then
3025 if test "$ol_arg" = "invalid" ; then
3026 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3027 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3028 { (exit 1); exit 1; }; }
3030 ol_enable_null="$ol_arg"
3033 ol_enable_null=${ol_enable_backends:-no}
3036 # OpenLDAP --enable-passwd
3038 # Check whether --enable-passwd or --disable-passwd was given.
3039 if test "${enable_passwd+set}" = set; then
3040 enableval="$enable_passwd"
3043 for ol_val in no yes mod ; do
3044 if test "$enableval" = "$ol_val" ; then
3048 if test "$ol_arg" = "invalid" ; then
3049 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3050 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3051 { (exit 1); exit 1; }; }
3053 ol_enable_passwd="$ol_arg"
3056 ol_enable_passwd=${ol_enable_backends:-no}
3058 # end --enable-passwd
3059 # OpenLDAP --enable-perl
3061 # Check whether --enable-perl or --disable-perl was given.
3062 if test "${enable_perl+set}" = set; then
3063 enableval="$enable_perl"
3066 for ol_val in no yes mod ; do
3067 if test "$enableval" = "$ol_val" ; then
3071 if test "$ol_arg" = "invalid" ; then
3072 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3073 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3074 { (exit 1); exit 1; }; }
3076 ol_enable_perl="$ol_arg"
3079 ol_enable_perl=${ol_enable_backends:-no}
3082 # OpenLDAP --enable-relay
3084 # Check whether --enable-relay or --disable-relay was given.
3085 if test "${enable_relay+set}" = set; then
3086 enableval="$enable_relay"
3089 for ol_val in no yes mod ; do
3090 if test "$enableval" = "$ol_val" ; then
3094 if test "$ol_arg" = "invalid" ; then
3095 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3096 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3097 { (exit 1); exit 1; }; }
3099 ol_enable_relay="$ol_arg"
3102 ol_enable_relay=${ol_enable_backends:-yes}
3104 # end --enable-relay
3105 # OpenLDAP --enable-shell
3107 # Check whether --enable-shell or --disable-shell was given.
3108 if test "${enable_shell+set}" = set; then
3109 enableval="$enable_shell"
3112 for ol_val in no yes mod ; do
3113 if test "$enableval" = "$ol_val" ; then
3117 if test "$ol_arg" = "invalid" ; then
3118 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3119 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3120 { (exit 1); exit 1; }; }
3122 ol_enable_shell="$ol_arg"
3125 ol_enable_shell=${ol_enable_backends:-no}
3127 # end --enable-shell
3128 # OpenLDAP --enable-sock
3130 # Check whether --enable-sock or --disable-sock was given.
3131 if test "${enable_sock+set}" = set; then
3132 enableval="$enable_sock"
3135 for ol_val in no yes mod ; do
3136 if test "$enableval" = "$ol_val" ; then
3140 if test "$ol_arg" = "invalid" ; then
3141 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3142 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3143 { (exit 1); exit 1; }; }
3145 ol_enable_sock="$ol_arg"
3148 ol_enable_sock=${ol_enable_backends:-no}
3151 # OpenLDAP --enable-sql
3153 # Check whether --enable-sql or --disable-sql was given.
3154 if test "${enable_sql+set}" = set; then
3155 enableval="$enable_sql"
3158 for ol_val in no yes mod ; do
3159 if test "$enableval" = "$ol_val" ; then
3163 if test "$ol_arg" = "invalid" ; then
3164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3165 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3166 { (exit 1); exit 1; }; }
3168 ol_enable_sql="$ol_arg"
3171 ol_enable_sql=${ol_enable_backends:-no}
3175 Overlays="accesslog \
3195 # Check whether --enable-xxslapoverlays or --disable-xxslapoverlays was given.
3196 if test "${enable_xxslapoverlays+set}" = set; then
3197 enableval="$enable_xxslapoverlays"
3201 # OpenLDAP --enable-overlays
3203 # Check whether --enable-overlays or --disable-overlays was given.
3204 if test "${enable_overlays+set}" = set; then
3205 enableval="$enable_overlays"
3208 for ol_val in no yes mod ; do
3209 if test "$enableval" = "$ol_val" ; then
3213 if test "$ol_arg" = "invalid" ; then
3214 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3215 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3216 { (exit 1); exit 1; }; }
3218 ol_enable_overlays="$ol_arg"
3221 # end --enable-overlays
3222 # OpenLDAP --enable-accesslog
3224 # Check whether --enable-accesslog or --disable-accesslog was given.
3225 if test "${enable_accesslog+set}" = set; then
3226 enableval="$enable_accesslog"
3229 for ol_val in no yes mod ; do
3230 if test "$enableval" = "$ol_val" ; then
3234 if test "$ol_arg" = "invalid" ; then
3235 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3236 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3237 { (exit 1); exit 1; }; }
3239 ol_enable_accesslog="$ol_arg"
3242 ol_enable_accesslog=${ol_enable_overlays:-no}
3244 # end --enable-accesslog
3246 # OpenLDAP --enable-auditlog
3248 # Check whether --enable-auditlog or --disable-auditlog was given.
3249 if test "${enable_auditlog+set}" = set; then
3250 enableval="$enable_auditlog"
3253 for ol_val in no yes mod ; do
3254 if test "$enableval" = "$ol_val" ; then
3258 if test "$ol_arg" = "invalid" ; then
3259 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3260 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3261 { (exit 1); exit 1; }; }
3263 ol_enable_auditlog="$ol_arg"
3266 ol_enable_auditlog=${ol_enable_overlays:-no}
3268 # end --enable-auditlog
3270 # OpenLDAP --enable-collect
3272 # Check whether --enable-collect or --disable-collect was given.
3273 if test "${enable_collect+set}" = set; then
3274 enableval="$enable_collect"
3277 for ol_val in no yes mod ; do
3278 if test "$enableval" = "$ol_val" ; then
3282 if test "$ol_arg" = "invalid" ; then
3283 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3284 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3285 { (exit 1); exit 1; }; }
3287 ol_enable_collect="$ol_arg"
3290 ol_enable_collect=${ol_enable_overlays:-no}
3292 # end --enable-collect
3294 # OpenLDAP --enable-constraint
3296 # Check whether --enable-constraint or --disable-constraint was given.
3297 if test "${enable_constraint+set}" = set; then
3298 enableval="$enable_constraint"
3301 for ol_val in no yes mod ; do
3302 if test "$enableval" = "$ol_val" ; then
3306 if test "$ol_arg" = "invalid" ; then
3307 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3308 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3309 { (exit 1); exit 1; }; }
3311 ol_enable_constraint="$ol_arg"
3314 ol_enable_constraint=${ol_enable_overlays:-no}
3316 # end --enable-constraint
3318 # OpenLDAP --enable-dds
3320 # Check whether --enable-dds or --disable-dds was given.
3321 if test "${enable_dds+set}" = set; then
3322 enableval="$enable_dds"
3325 for ol_val in no yes mod ; do
3326 if test "$enableval" = "$ol_val" ; then
3330 if test "$ol_arg" = "invalid" ; then
3331 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3332 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3333 { (exit 1); exit 1; }; }
3335 ol_enable_dds="$ol_arg"
3338 ol_enable_dds=${ol_enable_overlays:-no}
3342 # OpenLDAP --enable-deref
3344 # Check whether --enable-deref or --disable-deref was given.
3345 if test "${enable_deref+set}" = set; then
3346 enableval="$enable_deref"
3349 for ol_val in no yes mod ; do
3350 if test "$enableval" = "$ol_val" ; then
3354 if test "$ol_arg" = "invalid" ; then
3355 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3356 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3357 { (exit 1); exit 1; }; }
3359 ol_enable_deref="$ol_arg"
3362 ol_enable_deref=${ol_enable_overlays:-no}
3364 # end --enable-deref
3366 # OpenLDAP --enable-dyngroup
3368 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3369 if test "${enable_dyngroup+set}" = set; then
3370 enableval="$enable_dyngroup"
3373 for ol_val in no yes mod ; do
3374 if test "$enableval" = "$ol_val" ; then
3378 if test "$ol_arg" = "invalid" ; then
3379 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3380 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3381 { (exit 1); exit 1; }; }
3383 ol_enable_dyngroup="$ol_arg"
3386 ol_enable_dyngroup=${ol_enable_overlays:-no}
3388 # end --enable-dyngroup
3390 # OpenLDAP --enable-dynlist
3392 # Check whether --enable-dynlist or --disable-dynlist was given.
3393 if test "${enable_dynlist+set}" = set; then
3394 enableval="$enable_dynlist"
3397 for ol_val in no yes mod ; do
3398 if test "$enableval" = "$ol_val" ; then
3402 if test "$ol_arg" = "invalid" ; then
3403 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3404 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3405 { (exit 1); exit 1; }; }
3407 ol_enable_dynlist="$ol_arg"
3410 ol_enable_dynlist=${ol_enable_overlays:-no}
3412 # end --enable-dynlist
3414 # OpenLDAP --enable-memberof
3416 # Check whether --enable-memberof or --disable-memberof was given.
3417 if test "${enable_memberof+set}" = set; then
3418 enableval="$enable_memberof"
3421 for ol_val in no yes mod ; do
3422 if test "$enableval" = "$ol_val" ; then
3426 if test "$ol_arg" = "invalid" ; then
3427 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3428 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3429 { (exit 1); exit 1; }; }
3431 ol_enable_memberof="$ol_arg"
3434 ol_enable_memberof=${ol_enable_overlays:-no}
3436 # end --enable-memberof
3438 # OpenLDAP --enable-ppolicy
3440 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3441 if test "${enable_ppolicy+set}" = set; then
3442 enableval="$enable_ppolicy"
3445 for ol_val in no yes mod ; do
3446 if test "$enableval" = "$ol_val" ; then
3450 if test "$ol_arg" = "invalid" ; then
3451 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3452 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3453 { (exit 1); exit 1; }; }
3455 ol_enable_ppolicy="$ol_arg"
3458 ol_enable_ppolicy=${ol_enable_overlays:-no}
3460 # end --enable-ppolicy
3462 # OpenLDAP --enable-proxycache
3464 # Check whether --enable-proxycache or --disable-proxycache was given.
3465 if test "${enable_proxycache+set}" = set; then
3466 enableval="$enable_proxycache"
3469 for ol_val in no yes mod ; do
3470 if test "$enableval" = "$ol_val" ; then
3474 if test "$ol_arg" = "invalid" ; then
3475 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3476 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3477 { (exit 1); exit 1; }; }
3479 ol_enable_proxycache="$ol_arg"
3482 ol_enable_proxycache=${ol_enable_overlays:-no}
3484 # end --enable-proxycache
3486 # OpenLDAP --enable-refint
3488 # Check whether --enable-refint or --disable-refint was given.
3489 if test "${enable_refint+set}" = set; then
3490 enableval="$enable_refint"
3493 for ol_val in no yes mod ; do
3494 if test "$enableval" = "$ol_val" ; then
3498 if test "$ol_arg" = "invalid" ; then
3499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3501 { (exit 1); exit 1; }; }
3503 ol_enable_refint="$ol_arg"
3506 ol_enable_refint=${ol_enable_overlays:-no}
3508 # end --enable-refint
3510 # OpenLDAP --enable-retcode
3512 # Check whether --enable-retcode or --disable-retcode was given.
3513 if test "${enable_retcode+set}" = set; then
3514 enableval="$enable_retcode"
3517 for ol_val in no yes mod ; do
3518 if test "$enableval" = "$ol_val" ; then
3522 if test "$ol_arg" = "invalid" ; then
3523 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3524 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3525 { (exit 1); exit 1; }; }
3527 ol_enable_retcode="$ol_arg"
3530 ol_enable_retcode=${ol_enable_overlays:-no}
3532 # end --enable-retcode
3534 # OpenLDAP --enable-rwm
3536 # Check whether --enable-rwm or --disable-rwm was given.
3537 if test "${enable_rwm+set}" = set; then
3538 enableval="$enable_rwm"
3541 for ol_val in no yes mod ; do
3542 if test "$enableval" = "$ol_val" ; then
3546 if test "$ol_arg" = "invalid" ; then
3547 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3549 { (exit 1); exit 1; }; }
3551 ol_enable_rwm="$ol_arg"
3554 ol_enable_rwm=${ol_enable_overlays:-no}
3558 # OpenLDAP --enable-seqmod
3560 # Check whether --enable-seqmod or --disable-seqmod was given.
3561 if test "${enable_seqmod+set}" = set; then
3562 enableval="$enable_seqmod"
3565 for ol_val in no yes mod ; do
3566 if test "$enableval" = "$ol_val" ; then
3570 if test "$ol_arg" = "invalid" ; then
3571 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
3573 { (exit 1); exit 1; }; }
3575 ol_enable_seqmod="$ol_arg"
3578 ol_enable_seqmod=${ol_enable_overlays:-yes}
3580 # end --enable-seqmod
3582 # OpenLDAP --enable-syncprov
3584 # Check whether --enable-syncprov or --disable-syncprov was given.
3585 if test "${enable_syncprov+set}" = set; then
3586 enableval="$enable_syncprov"
3589 for ol_val in no yes mod ; do
3590 if test "$enableval" = "$ol_val" ; then
3594 if test "$ol_arg" = "invalid" ; then
3595 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3596 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3597 { (exit 1); exit 1; }; }
3599 ol_enable_syncprov="$ol_arg"
3602 ol_enable_syncprov=${ol_enable_overlays:-yes}
3604 # end --enable-syncprov
3606 # OpenLDAP --enable-translucent
3608 # Check whether --enable-translucent or --disable-translucent was given.
3609 if test "${enable_translucent+set}" = set; then
3610 enableval="$enable_translucent"
3613 for ol_val in no yes mod ; do
3614 if test "$enableval" = "$ol_val" ; then
3618 if test "$ol_arg" = "invalid" ; then
3619 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3620 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3621 { (exit 1); exit 1; }; }
3623 ol_enable_translucent="$ol_arg"
3626 ol_enable_translucent=${ol_enable_overlays:-no}
3628 # end --enable-translucent
3630 # OpenLDAP --enable-unique
3632 # Check whether --enable-unique or --disable-unique was given.
3633 if test "${enable_unique+set}" = set; then
3634 enableval="$enable_unique"
3637 for ol_val in no yes mod ; do
3638 if test "$enableval" = "$ol_val" ; then
3642 if test "$ol_arg" = "invalid" ; then
3643 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3644 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3645 { (exit 1); exit 1; }; }
3647 ol_enable_unique="$ol_arg"
3650 ol_enable_unique=${ol_enable_overlays:-no}
3652 # end --enable-unique
3654 # OpenLDAP --enable-valsort
3656 # Check whether --enable-valsort or --disable-valsort was given.
3657 if test "${enable_valsort+set}" = set; then
3658 enableval="$enable_valsort"
3661 for ol_val in no yes mod ; do
3662 if test "$enableval" = "$ol_val" ; then
3666 if test "$ol_arg" = "invalid" ; then
3667 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
3668 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
3669 { (exit 1); exit 1; }; }
3671 ol_enable_valsort="$ol_arg"
3674 ol_enable_valsort=${ol_enable_overlays:-no}
3676 # end --enable-valsort
3679 # Check whether --enable-xxliboptions or --disable-xxliboptions was given.
3680 if test "${enable_xxliboptions+set}" = set; then
3681 enableval="$enable_xxliboptions"
3684 # Check whether --enable-static or --disable-static was given.
3685 if test "${enable_static+set}" = set; then
3686 enableval="$enable_static"
3687 p=${PACKAGE-default}
3689 yes) enable_static=yes ;;
3690 no) enable_static=no ;;
3693 # Look at the argument we got. We use all the common list separators.
3694 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3695 for pkg in $enableval; do
3697 if test "X$pkg" = "X$p"; then
3708 # Check whether --enable-shared or --disable-shared was given.
3709 if test "${enable_shared+set}" = set; then
3710 enableval="$enable_shared"
3711 p=${PACKAGE-default}
3713 yes) enable_shared=yes ;;
3714 no) enable_shared=no ;;
3717 # Look at the argument we got. We use all the common list separators.
3718 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3719 for pkg in $enableval; do
3721 if test "X$pkg" = "X$p"; then
3735 if test $ol_enable_slapd = no ; then
3736 if test $ol_enable_slapi = yes ; then
3737 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3738 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3740 case "$ol_enable_backends" in yes | mod)
3741 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3742 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3744 for i in $Backends; do
3745 eval "ol_tmp=\$ol_enable_$i"
3746 if test $ol_tmp != no ; then
3747 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3748 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3749 eval "ol_enable_$i=no"
3752 if test $ol_enable_modules = yes ; then
3753 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3754 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3756 if test $ol_enable_wrappers = yes ; then
3757 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3758 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3760 if test $ol_enable_rlookups = yes ; then
3761 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3762 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3764 if test $ol_enable_dynacl = yes ; then
3765 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
3766 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
3768 if test $ol_enable_aci != no ; then
3769 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3770 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3772 if test $ol_enable_rewrite = yes ; then
3773 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3774 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3776 case "$ol_enable_overlays" in yes | mod)
3777 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3778 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3780 for i in $Overlays; do
3781 eval "ol_tmp=\$ol_enable_$i"
3782 if test $ol_tmp != no ; then
3783 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3784 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3785 eval "ol_enable_$i=no"
3789 # force settings to no
3794 ol_enable_modules=no
3795 ol_enable_rlookups=no
3798 ol_enable_wrappers=no
3800 ol_enable_rewrite=no
3802 elif test $ol_enable_modules != yes &&
3803 test $ol_enable_bdb = no &&
3804 test $ol_enable_dnssrv = no &&
3805 test $ol_enable_hdb = no &&
3806 test $ol_enable_ldap = no &&
3807 test $ol_enable_meta = no &&
3808 test $ol_enable_monitor = no &&
3809 test $ol_enable_ndb = no &&
3810 test $ol_enable_null = no &&
3811 test $ol_enable_passwd = no &&
3812 test $ol_enable_perl = no &&
3813 test $ol_enable_relay = no &&
3814 test $ol_enable_shell = no &&
3815 test $ol_enable_sock = no &&
3816 test $ol_enable_sql = no ; then
3818 if test $ol_enable_slapd = yes ; then
3819 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3820 echo "$as_me: error: slapd requires a backend" >&2;}
3821 { (exit 1); exit 1; }; }
3823 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3824 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3829 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
3830 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3831 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3832 { (exit 1); exit 1; }; }
3835 if test $ol_enable_lmpasswd = yes ; then
3836 if test $ol_with_tls = no ; then
3837 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3838 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3839 { (exit 1); exit 1; }; }
3843 if test $ol_enable_spasswd = yes ; then
3844 if test $ol_with_cyrus_sasl = no ; then
3845 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3846 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3847 { (exit 1); exit 1; }; }
3849 ol_with_cyrus_sasl=yes
3852 echo "$as_me:$LINENO: result: done" >&5
3853 echo "${ECHO_T}done" >&6
3902 BUILD_TRANSLUCENT=no
3906 SLAPD_STATIC_OVERLAYS=
3907 SLAPD_DYNAMIC_OVERLAYS=
3909 SLAPD_MODULES_LDFLAGS=
3910 SLAPD_MODULES_CPPFLAGS=
3912 SLAPD_STATIC_BACKENDS=back-ldif
3913 SLAPD_DYNAMIC_BACKENDS=
3940 cat >>confdefs.h <<\_ACEOF
3941 #define HAVE_MKVERSION 1
3949 *-*-aix*) if test -z "$CC" ; then
3950 case "$ol_with_threads" in
3951 auto | yes | posix) ol_aix_threads=yes ;;
3957 if test $ol_aix_threads = yes ; then
3958 if test -z "${CC}" ; then
3959 for ac_prog in cc_r xlc_r cc
3961 # Extract the first word of "$ac_prog", so it can be a program name with args.
3962 set dummy $ac_prog; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_prog_CC+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 if test -n "$CC"; then
3969 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_prog_CC="$ac_prog"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 if test -n "$CC"; then
3989 echo "$as_me:$LINENO: result: $CC" >&5
3990 echo "${ECHO_T}$CC" >&6
3992 echo "$as_me:$LINENO: result: no" >&5
3993 echo "${ECHO_T}no" >&6
3996 test -n "$CC" && break
4000 if test "$CC" = cc ; then
4001 if test $ol_with_threads != auto ; then
4002 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4003 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4004 { (exit 1); exit 1; }; }
4006 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4007 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4013 case ${CC} in cc_r | xlc_r)
4014 ol_with_threads=posix
4015 ol_cv_pthread_create=yes
4020 if test -z "${CC}"; then
4021 for ac_prog in cc gcc
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024 set dummy $ac_prog; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_prog_CC+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="$ac_prog"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050 if test -n "$CC"; then
4051 echo "$as_me:$LINENO: result: $CC" >&5
4052 echo "${ECHO_T}$CC" >&6
4054 echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4058 test -n "$CC" && break
4060 test -n "$CC" || CC="missing"
4063 if test "${CC}" = "missing" ; then
4064 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4065 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4066 { (exit 1); exit 1; }; }
4070 if test -z "${AR}"; then
4071 for ac_prog in ar gar
4073 # Extract the first word of "$ac_prog", so it can be a program name with args.
4074 set dummy $ac_prog; ac_word=$2
4075 echo "$as_me:$LINENO: checking for $ac_word" >&5
4076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4077 if test "${ac_cv_prog_AR+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 if test -n "$AR"; then
4081 ac_cv_prog_AR="$AR" # Let the user override the test.
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4090 ac_cv_prog_AR="$ac_prog"
4091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 if test -n "$AR"; then
4101 echo "$as_me:$LINENO: result: $AR" >&5
4102 echo "${ECHO_T}$AR" >&6
4104 echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6
4108 test -n "$AR" && break
4110 test -n "$AR" || AR="missing"
4113 if test "${AR}" = "missing" ; then
4114 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4115 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4116 { (exit 1); exit 1; }; }
4124 # Check whether --enable-fast-install or --disable-fast-install was given.
4125 if test "${enable_fast_install+set}" = set; then
4126 enableval="$enable_fast_install"
4127 p=${PACKAGE-default}
4129 yes) enable_fast_install=yes ;;
4130 no) enable_fast_install=no ;;
4132 enable_fast_install=no
4133 # Look at the argument we got. We use all the common list separators.
4134 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4135 for pkg in $enableval; do
4137 if test "X$pkg" = "X$p"; then
4138 enable_fast_install=yes
4145 enable_fast_install=yes
4148 DEPDIR="${am__leading_dot}deps"
4150 ac_config_commands="$ac_config_commands depfiles"
4153 am_make=${MAKE-make}
4154 cat > confinc << 'END'
4159 # If we don't find an include directive, just comment out the code.
4160 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4161 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4165 # First try GNU make style include.
4166 echo "include confinc" > confmf
4167 # We grep out `Entering directory' and `Leaving directory'
4168 # messages which can occur if `w' ends up in MAKEFLAGS.
4169 # In particular we don't look at `^make:' because GNU make might
4170 # be invoked under some other name (usually "gmake"), in which
4171 # case it prints its new name instead of `make'.
4172 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179 echo '.include "confinc"' > confmf
4180 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4181 am__include=.include
4188 echo "$as_me:$LINENO: result: $_am_result" >&5
4189 echo "${ECHO_T}$_am_result" >&6
4190 rm -f confinc confmf
4192 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4193 if test "${enable_dependency_tracking+set}" = set; then
4194 enableval="$enable_dependency_tracking"
4197 if test "x$enable_dependency_tracking" != xno; then
4198 am_depcomp="$ac_aux_dir/depcomp"
4203 if test "x$enable_dependency_tracking" != xno; then
4214 ac_cpp='$CPP $CPPFLAGS'
4215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4221 echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4223 if test "${ac_cv_prog_CC+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4226 if test -n "$CC"; then
4227 ac_cv_prog_CC="$CC" # Let the user override the test.
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 if test -n "$CC"; then
4247 echo "$as_me:$LINENO: result: $CC" >&5
4248 echo "${ECHO_T}$CC" >&6
4250 echo "$as_me:$LINENO: result: no" >&5
4251 echo "${ECHO_T}no" >&6
4255 if test -z "$ac_cv_prog_CC"; then
4257 # Extract the first word of "gcc", so it can be a program name with args.
4258 set dummy gcc; ac_word=$2
4259 echo "$as_me:$LINENO: checking for $ac_word" >&5
4260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4262 echo $ECHO_N "(cached) $ECHO_C" >&6
4264 if test -n "$ac_ct_CC"; then
4265 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_ac_ct_CC="gcc"
4275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284 if test -n "$ac_ct_CC"; then
4285 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4286 echo "${ECHO_T}$ac_ct_CC" >&6
4288 echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6
4297 if test -z "$CC"; then
4298 if test -n "$ac_tool_prefix"; then
4299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4300 set dummy ${ac_tool_prefix}cc; ac_word=$2
4301 echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4303 if test "${ac_cv_prog_CC+set}" = set; then
4304 echo $ECHO_N "(cached) $ECHO_C" >&6
4306 if test -n "$CC"; then
4307 ac_cv_prog_CC="$CC" # Let the user override the test.
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4316 ac_cv_prog_CC="${ac_tool_prefix}cc"
4317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4326 if test -n "$CC"; then
4327 echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6
4330 echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6
4335 if test -z "$ac_cv_prog_CC"; then
4337 # Extract the first word of "cc", so it can be a program name with args.
4338 set dummy cc; ac_word=$2
4339 echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 if test -n "$ac_ct_CC"; then
4345 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4354 ac_cv_prog_ac_ct_CC="cc"
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4364 if test -n "$ac_ct_CC"; then
4365 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4366 echo "${ECHO_T}$ac_ct_CC" >&6
4368 echo "$as_me:$LINENO: result: no" >&5
4369 echo "${ECHO_T}no" >&6
4378 if test -z "$CC"; then
4379 # Extract the first word of "cc", so it can be a program name with args.
4380 set dummy cc; ac_word=$2
4381 echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4383 if test "${ac_cv_prog_CC+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 if test -n "$CC"; then
4387 ac_cv_prog_CC="$CC" # Let the user override the test.
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4398 ac_prog_rejected=yes
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 if test $ac_prog_rejected = yes; then
4409 # We found a bogon in the path, so make sure we never use it.
4410 set dummy $ac_cv_prog_CC
4412 if test $# != 0; then
4413 # We chose a different compiler from the bogus one.
4414 # However, it has the same basename, so the bogon will be chosen
4415 # first if we set CC to just the basename; use the full file name.
4417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4423 if test -n "$CC"; then
4424 echo "$as_me:$LINENO: result: $CC" >&5
4425 echo "${ECHO_T}$CC" >&6
4427 echo "$as_me:$LINENO: result: no" >&5
4428 echo "${ECHO_T}no" >&6
4432 if test -z "$CC"; then
4433 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4438 echo "$as_me:$LINENO: checking for $ac_word" >&5
4439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4440 if test "${ac_cv_prog_CC+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4453 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4463 if test -n "$CC"; then
4464 echo "$as_me:$LINENO: result: $CC" >&5
4465 echo "${ECHO_T}$CC" >&6
4467 echo "$as_me:$LINENO: result: no" >&5
4468 echo "${ECHO_T}no" >&6
4471 test -n "$CC" && break
4474 if test -z "$CC"; then
4478 # Extract the first word of "$ac_prog", so it can be a program name with args.
4479 set dummy $ac_prog; ac_word=$2
4480 echo "$as_me:$LINENO: checking for $ac_word" >&5
4481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4482 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4483 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 if test -n "$ac_ct_CC"; then
4486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_ac_ct_CC="$ac_prog"
4496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4504 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505 if test -n "$ac_ct_CC"; then
4506 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4507 echo "${ECHO_T}$ac_ct_CC" >&6
4509 echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6
4513 test -n "$ac_ct_CC" && break
4522 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4523 See \`config.log' for more details." >&5
4524 echo "$as_me: error: no acceptable C compiler found in \$PATH
4525 See \`config.log' for more details." >&2;}
4526 { (exit 1); exit 1; }; }
4528 # Provide some information about the compiler.
4529 echo "$as_me:$LINENO:" \
4530 "checking for C compiler version" >&5
4531 ac_compiler=`set X $ac_compile; echo $2`
4532 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4533 (eval $ac_compiler --version </dev/null >&5) 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }
4537 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4538 (eval $ac_compiler -v </dev/null >&5) 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }
4542 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4543 (eval $ac_compiler -V </dev/null >&5) 2>&5
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }
4548 cat >conftest.$ac_ext <<_ACEOF
4551 cat confdefs.h >>conftest.$ac_ext
4552 cat >>conftest.$ac_ext <<_ACEOF
4553 /* end confdefs.h. */
4563 ac_clean_files_save=$ac_clean_files
4564 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4565 # Try to create an executable without -o first, disregard a.out.
4566 # It will help us diagnose broken compilers, and finding out an intuition
4568 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4569 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4570 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4571 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4572 (eval $ac_link_default) 2>&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); }; then
4576 # Find the output, starting from the most likely. This scheme is
4577 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4580 # Be careful to initialize this variable, since it used to be cached.
4581 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4583 # b.out is created by i960 compilers.
4584 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4586 test -f "$ac_file" || continue
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4591 # This is the source file.
4594 # We found the default executable, but exeext='' is most
4598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4599 # FIXME: I believe we export ac_cv_exeext for Libtool,
4600 # but it would be cool to find out if it's true. Does anybody
4601 # maintain Libtool? --akim.
4609 echo "$as_me: failed program was:" >&5
4610 sed 's/^/| /' conftest.$ac_ext >&5
4612 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4613 See \`config.log' for more details." >&5
4614 echo "$as_me: error: C compiler cannot create executables
4615 See \`config.log' for more details." >&2;}
4616 { (exit 77); exit 77; }; }
4619 ac_exeext=$ac_cv_exeext
4620 echo "$as_me:$LINENO: result: $ac_file" >&5
4621 echo "${ECHO_T}$ac_file" >&6
4623 # Check the compiler produces executables we can run. If not, either
4624 # the compiler is broken, or we cross compile.
4625 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4626 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4627 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4628 # If not cross compiling, check that we can run a simple program.
4629 if test "$cross_compiling" != yes; then
4630 if { ac_try='./$ac_file'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; }; then
4638 if test "$cross_compiling" = maybe; then
4641 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4642 If you meant to cross compile, use \`--host'.
4643 See \`config.log' for more details." >&5
4644 echo "$as_me: error: cannot run C compiled programs.
4645 If you meant to cross compile, use \`--host'.
4646 See \`config.log' for more details." >&2;}
4647 { (exit 1); exit 1; }; }
4651 echo "$as_me:$LINENO: result: yes" >&5
4652 echo "${ECHO_T}yes" >&6
4654 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4655 ac_clean_files=$ac_clean_files_save
4656 # Check the compiler produces executables we can run. If not, either
4657 # the compiler is broken, or we cross compile.
4658 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4659 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4660 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4661 echo "${ECHO_T}$cross_compiling" >&6
4663 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4664 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4666 (eval $ac_link) 2>&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); }; then
4670 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4671 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4672 # work properly (i.e., refer to `conftest.exe'), while it won't with
4674 for ac_file in conftest.exe conftest conftest.*; do
4675 test -f "$ac_file" || continue
4677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4678 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4685 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4686 See \`config.log' for more details." >&5
4687 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4688 See \`config.log' for more details." >&2;}
4689 { (exit 1); exit 1; }; }
4692 rm -f conftest$ac_cv_exeext
4693 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4694 echo "${ECHO_T}$ac_cv_exeext" >&6
4696 rm -f conftest.$ac_ext
4697 EXEEXT=$ac_cv_exeext
4699 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4700 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4701 if test "${ac_cv_objext+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 cat >conftest.$ac_ext <<_ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4719 rm -f conftest.o conftest.obj
4720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721 (eval $ac_compile) 2>&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); }; then
4725 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4727 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4728 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4737 See \`config.log' for more details." >&5
4738 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4739 See \`config.log' for more details." >&2;}
4740 { (exit 1); exit 1; }; }
4743 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4746 echo "${ECHO_T}$ac_cv_objext" >&6
4747 OBJEXT=$ac_cv_objext
4749 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4750 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4751 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 cat >conftest.$ac_ext <<_ACEOF
4757 cat confdefs.h >>conftest.$ac_ext
4758 cat >>conftest.$ac_ext <<_ACEOF
4759 /* end confdefs.h. */
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>conftest.er1
4776 grep -v '^ *+' conftest.er1 >conftest.err
4778 cat conftest.err >&5
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); } &&
4781 { ac_try='test -z "$ac_c_werror_flag"
4782 || test ! -s conftest.err'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4801 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4805 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4806 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4807 GCC=`test $ac_compiler_gnu = yes && echo yes`
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4811 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4813 if test "${ac_cv_prog_cc_g+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833 (eval $ac_compile) 2>conftest.er1
4835 grep -v '^ *+' conftest.er1 >conftest.err
4837 cat conftest.err >&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -z "$ac_c_werror_flag"
4841 || test ! -s conftest.err'
4842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846 (exit $ac_status); }; } &&
4847 { ac_try='test -s conftest.$ac_objext'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; }; then
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4863 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4864 if test "$ac_test_CFLAGS" = set; then
4865 CFLAGS=$ac_save_CFLAGS
4866 elif test $ac_cv_prog_cc_g = yes; then
4867 if test "$GCC" = yes; then
4873 if test "$GCC" = yes; then
4879 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4880 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4881 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_prog_cc_stdc=no
4886 cat >conftest.$ac_ext <<_ACEOF
4889 cat confdefs.h >>conftest.$ac_ext
4890 cat >>conftest.$ac_ext <<_ACEOF
4891 /* end confdefs.h. */
4894 #include <sys/types.h>
4895 #include <sys/stat.h>
4896 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4897 struct buf { int x; };
4898 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4899 static char *e (p, i)
4905 static char *f (char * (*g) (char **, int), char **p, ...)
4910 s = g (p, va_arg (v,int));
4915 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4916 function prototypes and stuff, but not '\xHH' hex character constants.
4917 These don't provoke an error unfortunately, instead are silently treated
4918 as 'x'. The following induces an error, until -std1 is added to get
4919 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4920 array size at least. It's necessary to write '\x00'==0 to get something
4921 that's true only with -std1. */
4922 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4924 int test (int i, double x);
4925 struct s1 {int (*f) (int a);};
4926 struct s2 {int (*f) (double a);};
4927 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4933 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4938 # Don't try gcc -ansi; that turns off useful extensions and
4939 # breaks some systems' header files.
4940 # AIX -qlanglvl=ansi
4941 # Ultrix and OSF/1 -std1
4942 # HP-UX 10.20 and later -Ae
4943 # HP-UX older versions -Aa -D_HPUX_SOURCE
4944 # SVR4 -Xc -D__EXTENSIONS__
4945 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4947 CC="$ac_save_CC $ac_arg"
4948 rm -f conftest.$ac_objext
4949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950 (eval $ac_compile) 2>conftest.er1
4952 grep -v '^ *+' conftest.er1 >conftest.err
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } &&
4957 { ac_try='test -z "$ac_c_werror_flag"
4958 || test ! -s conftest.err'
4959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; } &&
4964 { ac_try='test -s conftest.$ac_objext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4970 ac_cv_prog_cc_stdc=$ac_arg
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 rm -f conftest.err conftest.$ac_objext
4979 rm -f conftest.$ac_ext conftest.$ac_objext
4984 case "x$ac_cv_prog_cc_stdc" in
4986 echo "$as_me:$LINENO: result: none needed" >&5
4987 echo "${ECHO_T}none needed" >&6 ;;
4989 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4990 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4991 CC="$CC $ac_cv_prog_cc_stdc" ;;
4994 # Some people use a C++ compiler to compile C. Since we use `exit',
4995 # in C++ we need to declare it. In case someone uses the same compiler
4996 # for both compiling C and C++ we need to have the C++ compiler decide
4997 # the declaration of exit, since it's the most demanding environment.
4998 cat >conftest.$ac_ext <<_ACEOF
5003 rm -f conftest.$ac_objext
5004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5005 (eval $ac_compile) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } &&
5012 { ac_try='test -z "$ac_c_werror_flag"
5013 || test ! -s conftest.err'
5014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018 (exit $ac_status); }; } &&
5019 { ac_try='test -s conftest.$ac_objext'
5020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); }; }; then
5025 for ac_declaration in \
5027 'extern "C" void std::exit (int) throw (); using std::exit;' \
5028 'extern "C" void std::exit (int); using std::exit;' \
5029 'extern "C" void exit (int) throw ();' \
5030 'extern "C" void exit (int);' \
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5049 rm -f conftest.$ac_objext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>conftest.er1
5053 grep -v '^ *+' conftest.er1 >conftest.err
5055 cat conftest.err >&5
5056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057 (exit $ac_status); } &&
5058 { ac_try='test -z "$ac_c_werror_flag"
5059 || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest.$ac_objext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5094 rm -f conftest.$ac_objext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -z "$ac_c_werror_flag"
5104 || test ! -s conftest.err'
5105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); }; } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5125 if test -n "$ac_declaration"; then
5126 echo '#ifdef __cplusplus' >>confdefs.h
5127 echo $ac_declaration >>confdefs.h
5128 echo '#endif' >>confdefs.h
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5143 depcc="$CC" am_compiler_list=
5145 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5146 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5151 # We make a subdir and do the tests there. Otherwise we can end up
5152 # making bogus files that we don't know about and never remove. For
5153 # instance it was reported that on HP-UX the gcc test will end up
5154 # making a dummy file named `D' -- because `-MD' means `put the output
5157 # Copy depcomp to subdir because otherwise we won't find it if we're
5158 # using a relative directory.
5159 cp "$am_depcomp" conftest.dir
5161 # We will build objects and dependencies in a subdirectory because
5162 # it helps to detect inapplicable dependency modes. For instance
5163 # both Tru64's cc and ICC support -MD to output dependencies as a
5164 # side effect of compilation, but ICC will put the dependencies in
5165 # the current directory while Tru64 will put them in the object
5169 am_cv_CC_dependencies_compiler_type=none
5170 if test "$am_compiler_list" = ""; then
5171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5173 for depmode in $am_compiler_list; do
5174 # Setup a source with many dependencies, because some compilers
5175 # like to wrap large dependency lists on column 80 (with \), and
5176 # we should not choose a depcomp mode which is confused by this.
5178 # We need to recreate these files for each test, as the compiler may
5179 # overwrite some of them when testing with obscure command lines.
5180 # This happens at least with the AIX C compiler.
5182 for i in 1 2 3 4 5 6; do
5183 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5184 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5185 # Solaris 8's {/usr,}/bin/sh.
5186 touch sub/conftst$i.h
5188 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5192 # after this tag, mechanisms are not by side-effect, so they'll
5193 # only be used when explicitly requested
5194 if test "x$enable_dependency_tracking" = xyes; then
5202 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5203 # mode. It turns out that the SunPro C++ compiler does not properly
5204 # handle `-M -o', and we need to detect this.
5205 if depmode=$depmode \
5206 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5207 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5208 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5209 >/dev/null 2>conftest.err &&
5210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5211 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5213 # icc doesn't choke on unknown options, it will just issue warnings
5214 # or remarks (even with -Werror). So we grep stderr for any message
5215 # that says an option was ignored or not supported.
5216 # When given -MP, icc 7.0 and 7.1 complain thusly:
5217 # icc: Command line warning: ignoring option '-M'; no argument required
5218 # The diagnosis changed in icc 8.0:
5219 # icc: Command line remark: option '-MP' not supported
5220 if (grep 'ignoring option' conftest.err ||
5221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5222 am_cv_CC_dependencies_compiler_type=$depmode
5231 am_cv_CC_dependencies_compiler_type=none
5235 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5236 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5237 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5242 test "x$enable_dependency_tracking" != xno \
5243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5245 am__fastdepCC_FALSE='#'
5247 am__fastdepCC_TRUE='#'
5248 am__fastdepCC_FALSE=
5252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5254 if test "${lt_cv_path_SED+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 # Loop through the user's path and test for sed and gsed.
5258 # Then use that list of sed's as ones to test for truncation.
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 test -z "$as_dir" && as_dir=.
5264 for lt_ac_prog in sed gsed; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5267 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5275 # along with /bin/sed that truncates output.
5276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5277 test ! -f $lt_ac_sed && continue
5278 cat /dev/null > conftest.in
5280 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5281 # Check for GNU sed and select it if it is found.
5282 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5283 lt_cv_path_SED=$lt_ac_sed
5287 cat conftest.in conftest.in >conftest.tmp
5288 mv conftest.tmp conftest.in
5289 cp conftest.in conftest.nl
5291 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5292 cmp -s conftest.out conftest.nl || break
5293 # 10000 chars as input seems more than enough
5294 test $lt_ac_count -gt 10 && break
5295 lt_ac_count=`expr $lt_ac_count + 1`
5296 if test $lt_ac_count -gt $lt_ac_max; then
5297 lt_ac_max=$lt_ac_count
5298 lt_cv_path_SED=$lt_ac_sed
5306 echo "$as_me:$LINENO: result: $SED" >&5
5307 echo "${ECHO_T}$SED" >&6
5309 echo "$as_me:$LINENO: checking for egrep" >&5
5310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5311 if test "${ac_cv_prog_egrep+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5315 then ac_cv_prog_egrep='grep -E'
5316 else ac_cv_prog_egrep='egrep'
5319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5321 EGREP=$ac_cv_prog_egrep
5325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5326 if test "${with_gnu_ld+set}" = set; then
5327 withval="$with_gnu_ld"
5328 test "$withval" = no || with_gnu_ld=yes
5333 if test "$GCC" = yes; then
5334 # Check if gcc -print-prog-name=ld gives a path.
5335 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5339 # gcc leaves a trailing carriage return which upsets mingw
5340 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5342 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5345 # Accept absolute paths.
5347 re_direlt='/[^/][^/]*/\.\./'
5348 # Canonicalize the pathname of ld
5349 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5350 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5351 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5353 test -z "$LD" && LD="$ac_prog"
5356 # If it fails, then pretend we aren't using GCC.
5360 # If it is relative, then search for the first ld in PATH.
5364 elif test "$with_gnu_ld" = yes; then
5365 echo "$as_me:$LINENO: checking for GNU ld" >&5
5366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5368 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5371 if test "${lt_cv_path_LD+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5374 if test -z "$LD"; then
5375 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5376 for ac_dir in $PATH; do
5378 test -z "$ac_dir" && ac_dir=.
5379 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5380 lt_cv_path_LD="$ac_dir/$ac_prog"
5381 # Check to see if the program is GNU ld. I'd rather use --version,
5382 # but apparently some variants of GNU ld only accept -v.
5383 # Break only if it was the GNU/non-GNU ld that we prefer.
5384 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5385 *GNU* | *'with BFD'*)
5386 test "$with_gnu_ld" != no && break
5389 test "$with_gnu_ld" != yes && break
5396 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5401 if test -n "$LD"; then
5402 echo "$as_me:$LINENO: result: $LD" >&5
5403 echo "${ECHO_T}$LD" >&6
5405 echo "$as_me:$LINENO: result: no" >&5
5406 echo "${ECHO_T}no" >&6
5408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5410 { (exit 1); exit 1; }; }
5411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5416 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5417 case `$LD -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419 lt_cv_prog_gnu_ld=yes
5422 lt_cv_prog_gnu_ld=no
5426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5428 with_gnu_ld=$lt_cv_prog_gnu_ld
5431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5433 if test "${lt_cv_ld_reload_flag+set}" = set; then
5434 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 lt_cv_ld_reload_flag='-r'
5438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5440 reload_flag=$lt_cv_ld_reload_flag
5441 case $reload_flag in
5443 *) reload_flag=" $reload_flag" ;;
5445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5448 if test "$GCC" = yes; then
5449 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5451 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5457 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5458 if test "${lt_cv_path_NM+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 if test -n "$NM"; then
5462 # Let the user override the test.
5465 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5466 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5468 test -z "$ac_dir" && ac_dir=.
5469 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5470 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5471 # Check to see if the nm accepts a BSD-compat flag.
5472 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5473 # nm: unknown option "B" ignored
5474 # Tru64's nm complains that /dev/null is an invalid object file
5475 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5476 */dev/null* | *'Invalid file or object type'*)
5477 lt_cv_path_NM="$tmp_nm -B"
5481 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5483 lt_cv_path_NM="$tmp_nm -p"
5487 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5488 continue # so that we can try to find one that supports BSD flags
5495 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5498 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5499 echo "${ECHO_T}$lt_cv_path_NM" >&6
5502 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5503 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5505 if test "$LN_S" = "ln -s"; then
5506 echo "$as_me:$LINENO: result: yes" >&5
5507 echo "${ECHO_T}yes" >&6
5509 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5510 echo "${ECHO_T}no, using $LN_S" >&6
5513 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5514 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5515 if test "${lt_cv_deplibs_check_method+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 lt_cv_file_magic_cmd='$MAGIC_CMD'
5519 lt_cv_file_magic_test_file=
5520 lt_cv_deplibs_check_method='unknown'
5521 # Need to set the preceding variable on all platforms that support
5522 # interlibrary dependencies.
5523 # 'none' -- dependencies not supported.
5524 # `unknown' -- same as none, but documents that we really don't know.
5525 # 'pass_all' -- all dependencies passed with no checks.
5526 # 'test_compile' -- check by making test program.
5527 # 'file_magic [[regex]]' -- check by looking for files in library path
5528 # which responds to the $file_magic_cmd with a given extended regex.
5529 # If you have `file' or equivalent on your system and you're not sure
5530 # whether `pass_all' will *always* work, you probably want this one.
5534 lt_cv_deplibs_check_method=pass_all
5538 lt_cv_deplibs_check_method=pass_all
5542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5543 lt_cv_file_magic_cmd='/usr/bin/file -L'
5544 lt_cv_file_magic_test_file=/shlib/libc.so
5548 # func_win32_libid is a shell function defined in ltmain.sh
5549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5550 lt_cv_file_magic_cmd='func_win32_libid'
5554 # Base MSYS/MinGW do not provide the 'file' command needed by
5555 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5556 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5557 lt_cv_file_magic_cmd='$OBJDUMP -f'
5560 darwin* | rhapsody*)
5561 lt_cv_deplibs_check_method=pass_all
5564 freebsd* | kfreebsd*-gnu | dragonfly*)
5565 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5568 # Not sure whether the presence of OpenBSD here was a mistake.
5569 # Let's accept both of them until this is cleared up.
5570 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5571 lt_cv_file_magic_cmd=/usr/bin/file
5572 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5576 lt_cv_deplibs_check_method=pass_all
5581 lt_cv_deplibs_check_method=pass_all
5584 hpux10.20* | hpux11*)
5585 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5589 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5592 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]'
5593 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5597 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5602 irix5* | irix6* | nonstopux*)
5604 *-32|*"-32 ") libmagic=32-bit;;
5605 *-n32|*"-n32 ") libmagic=N32;;
5606 *-64|*"-64 ") libmagic=64-bit;;
5607 *) libmagic=never-match;;
5609 lt_cv_deplibs_check_method=pass_all
5612 # This must be Linux ELF.
5614 lt_cv_deplibs_check_method=pass_all
5618 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5626 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5627 lt_cv_file_magic_cmd=/usr/bin/file
5628 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5632 lt_cv_deplibs_check_method=unknown
5636 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5637 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5643 osf3* | osf4* | osf5*)
5644 lt_cv_deplibs_check_method=pass_all
5648 lt_cv_deplibs_check_method=pass_all
5652 lt_cv_deplibs_check_method=pass_all
5655 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5656 case $host_vendor in
5658 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]'
5659 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5662 lt_cv_deplibs_check_method=pass_all
5665 lt_cv_file_magic_cmd='/bin/file'
5666 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5669 lt_cv_file_magic_cmd='/bin/file'
5670 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5671 lt_cv_file_magic_test_file=/lib/libc.so
5674 lt_cv_deplibs_check_method=pass_all
5679 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5680 lt_cv_deplibs_check_method=pass_all
5685 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5686 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5687 file_magic_cmd=$lt_cv_file_magic_cmd
5688 deplibs_check_method=$lt_cv_deplibs_check_method
5689 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5694 # If no C compiler was specified, use CC.
5697 # Allow CC to be a program name with arguments.
5701 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5702 if test "${enable_libtool_lock+set}" = set; then
5703 enableval="$enable_libtool_lock"
5706 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5708 # Some flags need to be propagated to the compiler or linker for good
5712 # Find out which ABI we are using.
5713 echo 'int i;' > conftest.$ac_ext
5714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5715 (eval $ac_compile) 2>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; then
5719 case `/usr/bin/file conftest.$ac_objext` in
5731 # Find out which ABI we are using.
5732 echo '#line 5732 "configure"' > conftest.$ac_ext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5734 (eval $ac_compile) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; then
5738 if test "$lt_cv_prog_gnu_ld" = yes; then
5739 case `/usr/bin/file conftest.$ac_objext` in
5741 LD="${LD-ld} -melf32bsmip"
5744 LD="${LD-ld} -melf32bmipn32"
5747 LD="${LD-ld} -melf64bmip"
5751 case `/usr/bin/file conftest.$ac_objext` in
5767 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5768 # Find out which ABI we are using.
5769 echo 'int i;' > conftest.$ac_ext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5771 (eval $ac_compile) 2>&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; then
5775 case `/usr/bin/file conftest.o` in
5779 LD="${LD-ld} -m elf_i386"
5781 ppc64-*linux*|powerpc64-*linux*)
5782 LD="${LD-ld} -m elf32ppclinux"
5785 LD="${LD-ld} -m elf_s390"
5788 LD="${LD-ld} -m elf32_sparc"
5795 LD="${LD-ld} -m elf_x86_64"
5797 ppc*-*linux*|powerpc*-*linux*)
5798 LD="${LD-ld} -m elf64ppc"
5801 LD="${LD-ld} -m elf64_s390"
5804 LD="${LD-ld} -m elf64_sparc"
5814 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5815 SAVE_CFLAGS="$CFLAGS"
5816 CFLAGS="$CFLAGS -belf"
5817 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5818 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5819 if test "${lt_cv_cc_needs_belf+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 ac_cpp='$CPP $CPPFLAGS'
5824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5828 cat >conftest.$ac_ext <<_ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5843 rm -f conftest.$ac_objext conftest$ac_exeext
5844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5845 (eval $ac_link) 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } &&
5852 { ac_try='test -z "$ac_c_werror_flag"
5853 || test ! -s conftest.err'
5854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); }; } &&
5859 { ac_try='test -s conftest$ac_exeext'
5860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5865 lt_cv_cc_needs_belf=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 lt_cv_cc_needs_belf=no
5872 rm -f conftest.err conftest.$ac_objext \
5873 conftest$ac_exeext conftest.$ac_ext
5875 ac_cpp='$CPP $CPPFLAGS'
5876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5881 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5882 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5883 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5884 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5885 CFLAGS="$SAVE_CFLAGS"
5888 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 if test -n "$DLLTOOL"; then
5898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 DLLTOOL=$ac_cv_prog_DLLTOOL
5917 if test -n "$DLLTOOL"; then
5918 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5919 echo "${ECHO_T}$DLLTOOL" >&6
5921 echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5926 if test -z "$ac_cv_prog_DLLTOOL"; then
5927 ac_ct_DLLTOOL=$DLLTOOL
5928 # Extract the first word of "dlltool", so it can be a program name with args.
5929 set dummy dlltool; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$ac_ct_DLLTOOL"; then
5936 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5955 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5956 if test -n "$ac_ct_DLLTOOL"; then
5957 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5958 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5964 DLLTOOL=$ac_ct_DLLTOOL
5966 DLLTOOL="$ac_cv_prog_DLLTOOL"
5969 if test -n "$ac_tool_prefix"; then
5970 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5971 set dummy ${ac_tool_prefix}as; ac_word=$2
5972 echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5974 if test "${ac_cv_prog_AS+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 if test -n "$AS"; then
5978 ac_cv_prog_AS="$AS" # Let the user override the test.
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 test -z "$as_dir" && as_dir=.
5985 for ac_exec_ext in '' $ac_executable_extensions; do
5986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987 ac_cv_prog_AS="${ac_tool_prefix}as"
5988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5997 if test -n "$AS"; then
5998 echo "$as_me:$LINENO: result: $AS" >&5
5999 echo "${ECHO_T}$AS" >&6
6001 echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6
6006 if test -z "$ac_cv_prog_AS"; then
6008 # Extract the first word of "as", so it can be a program name with args.
6009 set dummy as; ac_word=$2
6010 echo "$as_me:$LINENO: checking for $ac_word" >&5
6011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6012 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 if test -n "$ac_ct_AS"; then
6016 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_ac_ct_AS="as"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
6035 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6036 if test -n "$ac_ct_AS"; then
6037 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6038 echo "${ECHO_T}$ac_ct_AS" >&6
6040 echo "$as_me:$LINENO: result: no" >&5
6041 echo "${ECHO_T}no" >&6
6049 if test -n "$ac_tool_prefix"; then
6050 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6052 echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6054 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 if test -n "$OBJDUMP"; then
6058 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 OBJDUMP=$ac_cv_prog_OBJDUMP
6077 if test -n "$OBJDUMP"; then
6078 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6079 echo "${ECHO_T}$OBJDUMP" >&6
6081 echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6086 if test -z "$ac_cv_prog_OBJDUMP"; then
6087 ac_ct_OBJDUMP=$OBJDUMP
6088 # Extract the first word of "objdump", so it can be a program name with args.
6089 set dummy objdump; ac_word=$2
6090 echo "$as_me:$LINENO: checking for $ac_word" >&5
6091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6092 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 if test -n "$ac_ct_OBJDUMP"; then
6096 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6112 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
6115 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6116 if test -n "$ac_ct_OBJDUMP"; then
6117 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6118 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
6120 echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6124 OBJDUMP=$ac_ct_OBJDUMP
6126 OBJDUMP="$ac_cv_prog_OBJDUMP"
6133 need_locks="$enable_libtool_lock"
6137 ac_cpp='$CPP $CPPFLAGS'
6138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6143 # On Suns, sometimes $CPP names a directory.
6144 if test -n "$CPP" && test -d "$CPP"; then
6147 if test -z "$CPP"; then
6148 if test "${ac_cv_prog_CPP+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 # Double quotes because CPP needs to be expanded
6152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6155 for ac_c_preproc_warn_flag in '' yes
6157 # Use a header file that comes with gcc, so configuring glibc
6158 # with a fresh cross-compiler works.
6159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160 # <limits.h> exists even on freestanding compilers.
6161 # On the NeXT, cc -E runs the code through the compiler's parser,
6162 # not just through cpp. "Syntax error" is here to catch this case.
6163 cat >conftest.$ac_ext <<_ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
6168 /* end confdefs.h. */
6170 # include <limits.h>
6172 # include <assert.h>
6176 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6179 grep -v '^ *+' conftest.er1 >conftest.err
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } >/dev/null; then
6184 if test -s conftest.err; then
6185 ac_cpp_err=$ac_c_preproc_warn_flag
6186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6193 if test -z "$ac_cpp_err"; then
6196 echo "$as_me: failed program was:" >&5
6197 sed 's/^/| /' conftest.$ac_ext >&5
6199 # Broken: fails on valid input.
6202 rm -f conftest.err conftest.$ac_ext
6204 # OK, works on sane cases. Now check whether non-existent headers
6205 # can be detected and how.
6206 cat >conftest.$ac_ext <<_ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212 #include <ac_nonexistent.h>
6214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217 grep -v '^ *+' conftest.er1 >conftest.err
6219 cat conftest.err >&5
6220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221 (exit $ac_status); } >/dev/null; then
6222 if test -s conftest.err; then
6223 ac_cpp_err=$ac_c_preproc_warn_flag
6224 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6231 if test -z "$ac_cpp_err"; then
6232 # Broken: success on invalid input.
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 # Passes both tests.
6242 rm -f conftest.err conftest.$ac_ext
6245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246 rm -f conftest.err conftest.$ac_ext
6247 if $ac_preproc_ok; then
6259 echo "$as_me:$LINENO: result: $CPP" >&5
6260 echo "${ECHO_T}$CPP" >&6
6262 for ac_c_preproc_warn_flag in '' yes
6264 # Use a header file that comes with gcc, so configuring glibc
6265 # with a fresh cross-compiler works.
6266 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267 # <limits.h> exists even on freestanding compilers.
6268 # On the NeXT, cc -E runs the code through the compiler's parser,
6269 # not just through cpp. "Syntax error" is here to catch this case.
6270 cat >conftest.$ac_ext <<_ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6277 # include <limits.h>
6279 # include <assert.h>
6283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } >/dev/null; then
6291 if test -s conftest.err; then
6292 ac_cpp_err=$ac_c_preproc_warn_flag
6293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6300 if test -z "$ac_cpp_err"; then
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6306 # Broken: fails on valid input.
6309 rm -f conftest.err conftest.$ac_ext
6311 # OK, works on sane cases. Now check whether non-existent headers
6312 # can be detected and how.
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <ac_nonexistent.h>
6321 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6324 grep -v '^ *+' conftest.er1 >conftest.err
6326 cat conftest.err >&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); } >/dev/null; then
6329 if test -s conftest.err; then
6330 ac_cpp_err=$ac_c_preproc_warn_flag
6331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6338 if test -z "$ac_cpp_err"; then
6339 # Broken: success on invalid input.
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 # Passes both tests.
6349 rm -f conftest.err conftest.$ac_ext
6352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6353 rm -f conftest.err conftest.$ac_ext
6354 if $ac_preproc_ok; then
6357 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6358 See \`config.log' for more details." >&5
6359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6360 See \`config.log' for more details." >&2;}
6361 { (exit 1); exit 1; }; }
6365 ac_cpp='$CPP $CPPFLAGS'
6366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6371 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373 if test "${ac_cv_header_stdc+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag"
6405 || test ! -s conftest.err'
6406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); }; } &&
6411 { ac_try='test -s conftest.$ac_objext'
6412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; }; then
6417 ac_cv_header_stdc=yes
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 ac_cv_header_stdc=no
6424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6426 if test $ac_cv_header_stdc = yes; then
6427 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428 cat >conftest.$ac_ext <<_ACEOF
6431 cat confdefs.h >>conftest.$ac_ext
6432 cat >>conftest.$ac_ext <<_ACEOF
6433 /* end confdefs.h. */
6437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438 $EGREP "memchr" >/dev/null 2>&1; then
6441 ac_cv_header_stdc=no
6447 if test $ac_cv_header_stdc = yes; then
6448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449 cat >conftest.$ac_ext <<_ACEOF
6452 cat confdefs.h >>conftest.$ac_ext
6453 cat >>conftest.$ac_ext <<_ACEOF
6454 /* end confdefs.h. */
6458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459 $EGREP "free" >/dev/null 2>&1; then
6462 ac_cv_header_stdc=no
6468 if test $ac_cv_header_stdc = yes; then
6469 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470 if test "$cross_compiling" = yes; then
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6480 #if ((' ' & 0x0FF) == 0x020)
6481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6484 # define ISLOWER(c) \
6485 (('a' <= (c) && (c) <= 'i') \
6486 || ('j' <= (c) && (c) <= 'r') \
6487 || ('s' <= (c) && (c) <= 'z'))
6488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6496 for (i = 0; i < 256; i++)
6497 if (XOR (islower (i), ISLOWER (i))
6498 || toupper (i) != TOUPPER (i))
6503 rm -f conftest$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; }; then
6516 echo "$as_me: program exited with status $ac_status" >&5
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6521 ac_cv_header_stdc=no
6523 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529 if test $ac_cv_header_stdc = yes; then
6531 cat >>confdefs.h <<\_ACEOF
6532 #define STDC_HEADERS 1
6537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6548 inttypes.h stdint.h unistd.h
6550 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551 echo "$as_me:$LINENO: checking for $ac_header" >&5
6552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 $ac_includes_default
6564 #include <$ac_header>
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag"
6576 || test ! -s conftest.err'
6577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 eval "$as_ac_Header=yes"
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 eval "$as_ac_Header=no"
6595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h <<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6610 for ac_header in dlfcn.h
6612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614 echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6622 # Is the header compilable?
6623 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 $ac_includes_default
6632 #include <$ac_header>
6634 rm -f conftest.$ac_objext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636 (eval $ac_compile) 2>conftest.er1
6638 grep -v '^ *+' conftest.er1 >conftest.err
6640 cat conftest.err >&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } &&
6643 { ac_try='test -z "$ac_c_werror_flag"
6644 || test ! -s conftest.err'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; } &&
6650 { ac_try='test -s conftest.$ac_objext'
6651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 ac_header_compiler=yes
6658 echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_header_compiler=no
6663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665 echo "${ECHO_T}$ac_header_compiler" >&6
6667 # Is the header present?
6668 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <$ac_header>
6678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6681 grep -v '^ *+' conftest.er1 >conftest.err
6683 cat conftest.err >&5
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); } >/dev/null; then
6686 if test -s conftest.err; then
6687 ac_cpp_err=$ac_c_preproc_warn_flag
6688 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6695 if test -z "$ac_cpp_err"; then
6696 ac_header_preproc=yes
6698 echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6701 ac_header_preproc=no
6703 rm -f conftest.err conftest.$ac_ext
6704 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705 echo "${ECHO_T}$ac_header_preproc" >&6
6707 # So? What about this header?
6708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6714 ac_header_preproc=yes
6717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6731 ## --------------------------------------------- ##
6732 ## Report this to <http://www.openldap.org/its/> ##
6733 ## --------------------------------------------- ##
6736 sed "s/^/$as_me: WARNING: /" >&2
6739 echo "$as_me:$LINENO: checking for $ac_header" >&5
6740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6741 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 eval "$as_ac_Header=\$ac_header_preproc"
6746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6751 cat >>confdefs.h <<_ACEOF
6752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6760 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6762 # find the maximum length of command line arguments
6763 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 # On DJGPP, this test can blow up pretty badly due to problems in libc
6774 # (any single argument exceeding 2000 bytes causes a buffer overrun
6775 # during glob expansion). Even if it were fixed, the result of this
6776 # check would be larger than it should be.
6777 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6781 # Under GNU Hurd, this test is not required because there is
6782 # no limit to the length of command line arguments.
6783 # Libtool will interpret -1 as no limit whatsoever
6784 lt_cv_sys_max_cmd_len=-1;
6788 # On Win9x/ME, this test blows up -- it succeeds, but takes
6789 # about 5 minutes as the teststring grows exponentially.
6790 # Worse, since 9x/ME are not pre-emptively multitasking,
6791 # you end up with a "frozen" computer, even though with patience
6792 # the test eventually succeeds (with a max line length of 256k).
6793 # Instead, let's just punt: use the minimum linelength reported by
6794 # all of the supported platforms: 8192 (on NT/2K/XP).
6795 lt_cv_sys_max_cmd_len=8192;
6799 # On AmigaOS with pdksh, this test takes hours, literally.
6800 # So we just punt and use a minimum line length of 8192.
6801 lt_cv_sys_max_cmd_len=8192;
6804 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6805 # This has been around since 386BSD, at least. Likely further.
6806 if test -x /sbin/sysctl; then
6807 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6808 elif test -x /usr/sbin/sysctl; then
6809 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6811 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6813 # And add a safety zone
6814 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6815 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6818 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6819 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6820 # nice to cause kernel panics so lets avoid the loop below.
6821 # First set a reasonable default.
6822 lt_cv_sys_max_cmd_len=16384
6824 if test -x /sbin/sysconfig; then
6825 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6826 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6831 # If test is not a shell built-in, we'll probably end up computing a
6832 # maximum length that is only half of the actual maximum length, but
6834 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6835 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6836 = "XX$teststring") >/dev/null 2>&1 &&
6837 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6838 lt_cv_sys_max_cmd_len=$new_result &&
6839 test $i != 17 # 1/2 MB should be enough
6842 teststring=$teststring$teststring
6845 # Add a significant safety factor because C++ compilers can tack on massive
6846 # amounts of additional arguments before passing them to the linker.
6847 # It appears as though 1/2 is a usable value.
6848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6854 if test -n $lt_cv_sys_max_cmd_len ; then
6855 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6856 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6858 echo "$as_me:$LINENO: result: none" >&5
6859 echo "${ECHO_T}none" >&6
6865 # Check for command to grab the raw symbol name followed by C symbol from nm.
6866 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6867 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6868 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 # These are sane defaults that work on at least a few old systems.
6873 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6875 # Character class describing NM global symbol codes.
6876 symcode='[BCDEGRST]'
6878 # Regexp to match symbols that can be accessed directly from C.
6879 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6881 # Transform an extracted symbol line into a proper C declaration
6882 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6884 # Transform an extracted symbol line into symbol name and symbol address
6885 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'"
6887 # Define system-specific variables.
6892 cygwin* | mingw* | pw32*)
6893 symcode='[ABCDGISTW]'
6895 hpux*) # Its linker distinguishes data from code symbols
6896 if test "$host_cpu" = ia64; then
6897 symcode='[ABCDEGRST]'
6899 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6900 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'"
6903 if test "$host_cpu" = ia64; then
6904 symcode='[ABCDGIRSTW]'
6905 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6906 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'"
6910 symcode='[BCDEGRST]'
6913 symcode='[BCDEGQRST]'
6923 # Handle CRLF in mingw tool chain
6927 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6931 # If we're using GNU nm, then use its standard symbol codes.
6932 case `$NM -V 2>&1` in
6933 *GNU* | *'with BFD'*)
6934 symcode='[ABCDGIRSTW]' ;;
6937 # Try without a prefix undercore, then with it.
6938 for ac_symprfx in "" "_"; do
6940 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6941 symxfrm="\\1 $ac_symprfx\\2 \\2"
6943 # Write the raw and C identifiers.
6944 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6946 # Check to see that the pipe works correctly.
6950 cat > conftest.$ac_ext <<EOF
6955 void nm_test_func(){}
6959 int main(){nm_test_var='a';nm_test_func();return(0);}
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>&5
6965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); }; then
6967 # Now try to grab the symbols.
6969 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6970 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && test -s "$nlist"; then
6974 # Try sorting and uniquifying the output.
6975 if sort "$nlist" | uniq > "$nlist"T; then
6976 mv -f "$nlist"T "$nlist"
6981 # Make sure that we snagged all the symbols we need.
6982 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6983 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6984 cat <<EOF > conftest.$ac_ext
6990 # Now generate the symbol file.
6991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6993 cat <<EOF >> conftest.$ac_ext
6994 #if defined (__STDC__) && __STDC__
6995 # define lt_ptr_t void *
6997 # define lt_ptr_t char *
7001 /* The mapping between symbol names and symbols. */
7006 lt_preloaded_symbols[] =
7009 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7010 cat <<\EOF >> conftest.$ac_ext
7018 # Now try linking the two files.
7019 mv conftest.$ac_objext conftstm.$ac_objext
7020 lt_save_LIBS="$LIBS"
7021 lt_save_CFLAGS="$CFLAGS"
7022 LIBS="conftstm.$ac_objext"
7023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>&5
7027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7031 LIBS="$lt_save_LIBS"
7032 CFLAGS="$lt_save_CFLAGS"
7034 echo "cannot find nm_test_func in $nlist" >&5
7037 echo "cannot find nm_test_var in $nlist" >&5
7040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043 echo "$progname: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 rm -f conftest* conftst*
7048 # Do not use the global_symbol_pipe unless it works.
7049 if test "$pipe_works" = yes; then
7052 lt_cv_sys_global_symbol_pipe=
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059 lt_cv_sys_global_symbol_to_cdecl=
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062 echo "$as_me:$LINENO: result: failed" >&5
7063 echo "${ECHO_T}failed" >&6
7065 echo "$as_me:$LINENO: result: ok" >&5
7066 echo "${ECHO_T}ok" >&6
7069 echo "$as_me:$LINENO: checking for objdir" >&5
7070 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7071 if test "${lt_cv_objdir+set}" = set; then
7072 echo $ECHO_N "(cached) $ECHO_C" >&6
7074 rm -f .libs 2>/dev/null
7075 mkdir .libs 2>/dev/null
7076 if test -d .libs; then
7079 # MS-DOS does not allow filenames that begin with a dot.
7082 rmdir .libs 2>/dev/null
7084 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7085 echo "${ECHO_T}$lt_cv_objdir" >&6
7086 objdir=$lt_cv_objdir
7094 # AIX sometimes has problems with the GCC collect2 program. For some
7095 # reason, if we set the COLLECT_NAMES environment variable, the problems
7096 # vanish in a puff of smoke.
7097 if test "X${COLLECT_NAMES+set}" != Xset; then
7099 export COLLECT_NAMES
7104 # Sed substitution that helps us do robust quoting. It backslashifies
7105 # metacharacters that are still active within double-quoted strings.
7106 Xsed='sed -e 1s/^X//'
7107 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7109 # Same as above, but do not quote variable references.
7110 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7112 # Sed substitution to delay expansion of an escaped shell variable in a
7113 # double_quote_subst'ed string.
7114 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7116 # Sed substitution to avoid accidental globbing in evaled expressions
7117 no_glob_subst='s/\*/\\\*/g'
7123 default_ofile=libtool
7124 can_build_shared=yes
7126 # All known linkers require a `.a' archive for static linking (except MSVC,
7127 # which needs '.lib').
7129 ltmain="$ac_aux_dir/ltmain.sh"
7130 ofile="$default_ofile"
7131 with_gnu_ld="$lt_cv_prog_gnu_ld"
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7135 set dummy ${ac_tool_prefix}ar; ac_word=$2
7136 echo "$as_me:$LINENO: checking for $ac_word" >&5
7137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7138 if test "${ac_cv_prog_AR+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -n "$AR"; then
7142 ac_cv_prog_AR="$AR" # Let the user override the test.
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_AR="${ac_tool_prefix}ar"
7152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 if test -n "$AR"; then
7162 echo "$as_me:$LINENO: result: $AR" >&5
7163 echo "${ECHO_T}$AR" >&6
7165 echo "$as_me:$LINENO: result: no" >&5
7166 echo "${ECHO_T}no" >&6
7170 if test -z "$ac_cv_prog_AR"; then
7172 # Extract the first word of "ar", so it can be a program name with args.
7173 set dummy ar; ac_word=$2
7174 echo "$as_me:$LINENO: checking for $ac_word" >&5
7175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7176 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7177 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 if test -n "$ac_ct_AR"; then
7180 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 test -z "$as_dir" && as_dir=.
7187 for ac_exec_ext in '' $ac_executable_extensions; do
7188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7189 ac_cv_prog_ac_ct_AR="ar"
7190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7199 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7200 if test -n "$ac_ct_AR"; then
7201 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7202 echo "${ECHO_T}$ac_ct_AR" >&6
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7213 if test -n "$ac_tool_prefix"; then
7214 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7215 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7216 echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7218 if test "${ac_cv_prog_RANLIB+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 if test -n "$RANLIB"; then
7222 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 test -z "$as_dir" && as_dir=.
7229 for ac_exec_ext in '' $ac_executable_extensions; do
7230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7231 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 RANLIB=$ac_cv_prog_RANLIB
7241 if test -n "$RANLIB"; then
7242 echo "$as_me:$LINENO: result: $RANLIB" >&5
7243 echo "${ECHO_T}$RANLIB" >&6
7245 echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6
7250 if test -z "$ac_cv_prog_RANLIB"; then
7251 ac_ct_RANLIB=$RANLIB
7252 # Extract the first word of "ranlib", so it can be a program name with args.
7253 set dummy ranlib; ac_word=$2
7254 echo "$as_me:$LINENO: checking for $ac_word" >&5
7255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7256 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 if test -n "$ac_ct_RANLIB"; then
7260 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_RANLIB="ranlib"
7270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7276 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7279 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7280 if test -n "$ac_ct_RANLIB"; then
7281 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7282 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7284 echo "$as_me:$LINENO: result: no" >&5
7285 echo "${ECHO_T}no" >&6
7288 RANLIB=$ac_ct_RANLIB
7290 RANLIB="$ac_cv_prog_RANLIB"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}strip; ac_word=$2
7296 echo "$as_me:$LINENO: checking for $ac_word" >&5
7297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7298 if test "${ac_cv_prog_STRIP+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 if test -n "$STRIP"; then
7302 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 STRIP=$ac_cv_prog_STRIP
7321 if test -n "$STRIP"; then
7322 echo "$as_me:$LINENO: result: $STRIP" >&5
7323 echo "${ECHO_T}$STRIP" >&6
7325 echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7330 if test -z "$ac_cv_prog_STRIP"; then
7332 # Extract the first word of "strip", so it can be a program name with args.
7333 set dummy strip; ac_word=$2
7334 echo "$as_me:$LINENO: checking for $ac_word" >&5
7335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7336 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7337 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 if test -n "$ac_ct_STRIP"; then
7340 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7349 ac_cv_prog_ac_ct_STRIP="strip"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7359 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7360 if test -n "$ac_ct_STRIP"; then
7361 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7362 echo "${ECHO_T}$ac_ct_STRIP" >&6
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7370 STRIP="$ac_cv_prog_STRIP"
7375 old_CFLAGS="$CFLAGS"
7377 # Set sane defaults for various variables
7378 test -z "$AR" && AR=ar
7379 test -z "$AR_FLAGS" && AR_FLAGS=cru
7380 test -z "$AS" && AS=as
7381 test -z "$CC" && CC=cc
7382 test -z "$LTCC" && LTCC=$CC
7383 test -z "$DLLTOOL" && DLLTOOL=dlltool
7384 test -z "$LD" && LD=ld
7385 test -z "$LN_S" && LN_S="ln -s"
7386 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7387 test -z "$NM" && NM=nm
7388 test -z "$SED" && SED=sed
7389 test -z "$OBJDUMP" && OBJDUMP=objdump
7390 test -z "$RANLIB" && RANLIB=:
7391 test -z "$STRIP" && STRIP=:
7392 test -z "$ac_objext" && ac_objext=o
7394 # Determine commands to create old-style static archives.
7395 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7396 old_postinstall_cmds='chmod 644 $oldlib'
7397 old_postuninstall_cmds=
7399 if test -n "$RANLIB"; then
7402 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7405 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7408 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7411 for cc_temp in $compiler""; do
7413 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7414 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7419 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7422 # Only perform the check for file, if the check method requires it
7423 case $deplibs_check_method in
7425 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7426 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7427 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7428 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7436 lt_save_MAGIC_CMD="$MAGIC_CMD"
7437 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7438 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7439 for ac_dir in $ac_dummy; do
7441 test -z "$ac_dir" && ac_dir=.
7442 if test -f $ac_dir/${ac_tool_prefix}file; then
7443 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7444 if test -n "$file_magic_test_file"; then
7445 case $deplibs_check_method in
7447 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7449 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7450 $EGREP "$file_magic_regex" > /dev/null; then
7455 *** Warning: the command libtool uses to detect shared libraries,
7456 *** $file_magic_cmd, produces output that libtool cannot recognize.
7457 *** The result is that libtool may fail to recognize shared libraries
7458 *** as such. This will affect the creation of libtool libraries that
7459 *** depend on shared libraries, but programs linked with such libtool
7460 *** libraries will work regardless of this problem. Nevertheless, you
7461 *** may want to report the problem to your system manager and/or to
7462 *** bug-libtool@gnu.org
7472 MAGIC_CMD="$lt_save_MAGIC_CMD"
7477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7478 if test -n "$MAGIC_CMD"; then
7479 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7480 echo "${ECHO_T}$MAGIC_CMD" >&6
7482 echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6
7486 if test -z "$lt_cv_path_MAGIC_CMD"; then
7487 if test -n "$ac_tool_prefix"; then
7488 echo "$as_me:$LINENO: checking for file" >&5
7489 echo $ECHO_N "checking for file... $ECHO_C" >&6
7490 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7495 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7498 lt_save_MAGIC_CMD="$MAGIC_CMD"
7499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7500 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7501 for ac_dir in $ac_dummy; do
7503 test -z "$ac_dir" && ac_dir=.
7504 if test -f $ac_dir/file; then
7505 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7506 if test -n "$file_magic_test_file"; then
7507 case $deplibs_check_method in
7509 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7511 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7512 $EGREP "$file_magic_regex" > /dev/null; then
7517 *** Warning: the command libtool uses to detect shared libraries,
7518 *** $file_magic_cmd, produces output that libtool cannot recognize.
7519 *** The result is that libtool may fail to recognize shared libraries
7520 *** as such. This will affect the creation of libtool libraries that
7521 *** depend on shared libraries, but programs linked with such libtool
7522 *** libraries will work regardless of this problem. Nevertheless, you
7523 *** may want to report the problem to your system manager and/or to
7524 *** bug-libtool@gnu.org
7534 MAGIC_CMD="$lt_save_MAGIC_CMD"
7539 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7540 if test -n "$MAGIC_CMD"; then
7541 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7542 echo "${ECHO_T}$MAGIC_CMD" >&6
7544 echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6
7558 enable_win32_dll=yes
7560 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7561 if test "${enable_libtool_lock+set}" = set; then
7562 enableval="$enable_libtool_lock"
7565 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7568 # Check whether --with-pic or --without-pic was given.
7569 if test "${with_pic+set}" = set; then
7575 test -z "$pic_mode" && pic_mode=default
7577 # Use C for the default configuration in the libtool script
7581 ac_cpp='$CPP $CPPFLAGS'
7582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 # Source file extension for C test sources.
7590 # Object file extension for compiled C test sources.
7594 # Code to be used in simple compile tests
7595 lt_simple_compile_test_code="int some_variable = 0;\n"
7597 # Code to be used in simple link tests
7598 lt_simple_link_test_code='int main(){return(0);}\n'
7601 # If no C compiler was specified, use CC.
7604 # Allow CC to be a program name with arguments.
7608 # save warnings/boilerplate of simple test code
7609 ac_outfile=conftest.$ac_objext
7610 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7612 _lt_compiler_boilerplate=`cat conftest.err`
7615 ac_outfile=conftest.$ac_objext
7616 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7618 _lt_linker_boilerplate=`cat conftest.err`
7623 # Check for any special shared library compilation flags.
7626 if test "$GCC" = no; then
7629 lt_prog_cc_shlib='-belf'
7633 if test -n "$lt_prog_cc_shlib"; then
7634 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7635 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7636 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7638 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7639 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7640 lt_cv_prog_cc_can_build_shared=no
7646 # Check to make sure the static flag actually works.
7648 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7649 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7650 if test "${lt_prog_compiler_static_works+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 lt_prog_compiler_static_works=no
7654 save_LDFLAGS="$LDFLAGS"
7655 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7656 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7657 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7658 # The linker can only warn and ignore the option if not recognized
7659 # So say no if there are warnings
7660 if test -s conftest.err; then
7661 # Append any errors to the config.log.
7662 cat conftest.err 1>&5
7663 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7664 $SED '/^$/d' conftest.err >conftest.er2
7665 if diff conftest.exp conftest.er2 >/dev/null; then
7666 lt_prog_compiler_static_works=yes
7669 lt_prog_compiler_static_works=yes
7673 LDFLAGS="$save_LDFLAGS"
7676 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7677 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7679 if test x"$lt_prog_compiler_static_works" = xyes; then
7682 lt_prog_compiler_static=
7688 lt_prog_compiler_no_builtin_flag=
7690 if test "$GCC" = yes; then
7691 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7694 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7695 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7696 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7697 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 lt_cv_prog_compiler_rtti_exceptions=no
7700 ac_outfile=conftest.$ac_objext
7701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7702 lt_compiler_flag="-fno-rtti -fno-exceptions"
7703 # Insert the option either (1) after the last *FLAGS variable, or
7704 # (2) before a word containing "conftest.", or (3) at the end.
7705 # Note that $ac_compile itself does not contain backslashes and begins
7706 # with a dollar sign (not a hyphen), so the echo should work correctly.
7707 # The option is referenced via a variable to avoid confusing sed.
7708 lt_compile=`echo "$ac_compile" | $SED \
7709 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7710 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7711 -e 's:$: $lt_compiler_flag:'`
7712 (eval echo "\"\$as_me:7712: $lt_compile\"" >&5)
7713 (eval "$lt_compile" 2>conftest.err)
7715 cat conftest.err >&5
7716 echo "$as_me:7716: \$? = $ac_status" >&5
7717 if (exit $ac_status) && test -s "$ac_outfile"; then
7718 # The compiler can only warn and ignore the option if not recognized
7719 # So say no if there are warnings other than the usual output.
7720 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7721 $SED '/^$/d' conftest.err >conftest.er2
7722 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7723 lt_cv_prog_compiler_rtti_exceptions=yes
7729 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7730 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7732 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7733 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7740 lt_prog_compiler_wl=
7741 lt_prog_compiler_pic=
7742 lt_prog_compiler_static=
7744 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7745 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7747 if test "$GCC" = yes; then
7748 lt_prog_compiler_wl='-Wl,'
7749 lt_prog_compiler_static='-static'
7753 # All AIX code is PIC.
7754 if test "$host_cpu" = ia64; then
7755 # AIX 5 now supports IA64 processor
7756 lt_prog_compiler_static='-Bstatic'
7761 # FIXME: we need at least 68020 code to build shared libraries, but
7762 # adding the `-m68020' flag to GCC prevents building anything better,
7764 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7767 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7768 # PIC is the default for these OSes.
7771 mingw* | pw32* | os2*)
7772 # This hack is so that the source file can tell whether it is being
7773 # built for inclusion in a dll (and should export symbols for example).
7774 lt_prog_compiler_pic='-DDLL_EXPORT'
7777 darwin* | rhapsody*)
7778 # PIC is the default on this platform
7779 # Common symbols not allowed in MH_DYLIB files
7780 lt_prog_compiler_pic='-fno-common'
7784 # Just because we use GCC doesn't mean we suddenly get shared libraries
7785 # on systems that don't support them.
7786 lt_prog_compiler_can_build_shared=no
7791 if test -d /usr/nec; then
7792 lt_prog_compiler_pic=-Kconform_pic
7797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7804 lt_prog_compiler_pic='-fPIC'
7810 lt_prog_compiler_pic='-fPIC'
7814 # PORTME Check for flag to pass linker flags through the system compiler.
7817 lt_prog_compiler_wl='-Wl,'
7818 if test "$host_cpu" = ia64; then
7819 # AIX 5 now supports IA64 processor
7820 lt_prog_compiler_static='-Bstatic'
7822 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7826 # PIC is the default on this platform
7827 # Common symbols not allowed in MH_DYLIB files
7828 case $cc_basename in
7830 lt_prog_compiler_pic='-qnocommon'
7831 lt_prog_compiler_wl='-Wl,'
7836 mingw* | pw32* | os2*)
7837 # This hack is so that the source file can tell whether it is being
7838 # built for inclusion in a dll (and should export symbols for example).
7839 lt_prog_compiler_pic='-DDLL_EXPORT'
7842 hpux9* | hpux10* | hpux11*)
7843 lt_prog_compiler_wl='-Wl,'
7844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7851 lt_prog_compiler_pic='+Z'
7854 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7855 lt_prog_compiler_static='${wl}-a ${wl}archive'
7858 irix5* | irix6* | nonstopux*)
7859 lt_prog_compiler_wl='-Wl,'
7860 # PIC (with -KPIC) is the default.
7861 lt_prog_compiler_static='-non_shared'
7865 lt_prog_compiler_pic='-KPIC'
7866 lt_prog_compiler_static='-Bstatic'
7870 case $cc_basename in
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-static'
7876 pgcc* | pgf77* | pgf90* | pgf95*)
7877 # Portland Group compilers (*not* the Pentium gcc compiler,
7878 # which looks to be a dead project)
7879 lt_prog_compiler_wl='-Wl,'
7880 lt_prog_compiler_pic='-fpic'
7881 lt_prog_compiler_static='-Bstatic'
7884 lt_prog_compiler_wl='-Wl,'
7885 # All Alpha code is PIC.
7886 lt_prog_compiler_static='-non_shared'
7891 osf3* | osf4* | osf5*)
7892 lt_prog_compiler_wl='-Wl,'
7893 # All OSF/1 code is PIC.
7894 lt_prog_compiler_static='-non_shared'
7898 lt_prog_compiler_pic='-Kpic'
7899 lt_prog_compiler_static='-dn'
7903 lt_prog_compiler_pic='-KPIC'
7904 lt_prog_compiler_static='-Bstatic'
7905 case $cc_basename in
7907 lt_prog_compiler_wl='-Qoption ld ';;
7909 lt_prog_compiler_wl='-Wl,';;
7914 lt_prog_compiler_wl='-Qoption ld '
7915 lt_prog_compiler_pic='-PIC'
7916 lt_prog_compiler_static='-Bstatic'
7919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7920 lt_prog_compiler_wl='-Wl,'
7921 lt_prog_compiler_pic='-KPIC'
7922 lt_prog_compiler_static='-Bstatic'
7926 if test -d /usr/nec ;then
7927 lt_prog_compiler_pic='-Kconform_pic'
7928 lt_prog_compiler_static='-Bstatic'
7933 lt_prog_compiler_wl='-Wl,'
7934 lt_prog_compiler_can_build_shared=no
7938 lt_prog_compiler_pic='-pic'
7939 lt_prog_compiler_static='-Bstatic'
7943 lt_prog_compiler_can_build_shared=no
7948 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7949 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7952 # Check to make sure the PIC flag actually works.
7954 if test -n "$lt_prog_compiler_pic"; then
7956 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7957 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7958 if test "${lt_prog_compiler_pic_works+set}" = set; then
7959 echo $ECHO_N "(cached) $ECHO_C" >&6
7961 lt_prog_compiler_pic_works=no
7962 ac_outfile=conftest.$ac_objext
7963 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7965 # Insert the option either (1) after the last *FLAGS variable, or
7966 # (2) before a word containing "conftest.", or (3) at the end.
7967 # Note that $ac_compile itself does not contain backslashes and begins
7968 # with a dollar sign (not a hyphen), so the echo should work correctly.
7969 # The option is referenced via a variable to avoid confusing sed.
7970 lt_compile=`echo "$ac_compile" | $SED \
7971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7973 -e 's:$: $lt_compiler_flag:'`
7974 (eval echo "\"\$as_me:7974: $lt_compile\"" >&5)
7975 (eval "$lt_compile" 2>conftest.err)
7977 cat conftest.err >&5
7978 echo "$as_me:7978: \$? = $ac_status" >&5
7979 if (exit $ac_status) && test -s "$ac_outfile"; then
7980 # The compiler can only warn and ignore the option if not recognized
7981 # So say no if there are warnings other than the usual output.
7982 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7983 $SED '/^$/d' conftest.err >conftest.er2
7984 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7985 lt_prog_compiler_pic_works=yes
7991 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7992 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7994 if test x"$lt_prog_compiler_pic_works" = xyes; then
7995 case $lt_prog_compiler_pic in
7997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8000 lt_prog_compiler_pic=
8001 lt_prog_compiler_can_build_shared=no
8006 # For platforms which do not support PIC, -DPIC is meaningless:
8008 lt_prog_compiler_pic=
8011 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8015 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8016 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8017 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 lt_cv_prog_compiler_c_o=no
8021 $rm -r conftest 2>/dev/null
8025 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8027 lt_compiler_flag="-o out/conftest2.$ac_objext"
8028 # Insert the option either (1) after the last *FLAGS variable, or
8029 # (2) before a word containing "conftest.", or (3) at the end.
8030 # Note that $ac_compile itself does not contain backslashes and begins
8031 # with a dollar sign (not a hyphen), so the echo should work correctly.
8032 lt_compile=`echo "$ac_compile" | $SED \
8033 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8034 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8035 -e 's:$: $lt_compiler_flag:'`
8036 (eval echo "\"\$as_me:8036: $lt_compile\"" >&5)
8037 (eval "$lt_compile" 2>out/conftest.err)
8039 cat out/conftest.err >&5
8040 echo "$as_me:8040: \$? = $ac_status" >&5
8041 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8043 # The compiler can only warn and ignore the option if not recognized
8044 # So say no if there are warnings
8045 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8046 $SED '/^$/d' out/conftest.err >out/conftest.er2
8047 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8048 lt_cv_prog_compiler_c_o=yes
8053 # SGI C++ compiler will create directory out/ii_files/ for
8054 # template instantiation
8055 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8056 $rm out/* && rmdir out
8062 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8063 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8066 hard_links="nottested"
8067 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8068 # do not overwrite the value of need_locks provided by the user
8069 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8070 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8075 ln conftest.a conftest.b 2>&5 || hard_links=no
8076 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8077 echo "$as_me:$LINENO: result: $hard_links" >&5
8078 echo "${ECHO_T}$hard_links" >&6
8079 if test "$hard_links" = no; then
8080 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8081 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8088 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8089 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8092 allow_undefined_flag=
8093 enable_shared_with_static_runtimes=no
8095 archive_expsym_cmds=
8096 old_archive_From_new_cmds=
8097 old_archive_from_expsyms_cmds=
8098 export_dynamic_flag_spec=
8099 whole_archive_flag_spec=
8100 thread_safe_flag_spec=
8101 hardcode_libdir_flag_spec=
8102 hardcode_libdir_flag_spec_ld=
8103 hardcode_libdir_separator=
8106 hardcode_shlibpath_var=unsupported
8107 link_all_deplibs=unknown
8108 hardcode_automatic=no
8111 always_export_symbols=no
8112 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8113 # include_expsyms should be a list of space-separated symbols to be *always*
8114 # included in the symbol list
8116 # exclude_expsyms can be an extended regexp of symbols to exclude
8117 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8118 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8119 # as well as any symbol that contains `d'.
8120 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8121 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8122 # platforms (ab)use it in PIC code, but their linkers get confused if
8123 # the symbol is explicitly referenced. Since portable code cannot
8124 # rely on this symbol name, it's probably fine to never include it in
8125 # preloaded symbol tables.
8126 extract_expsyms_cmds=
8127 # Just being paranoid about ensuring that cc_basename is set.
8128 for cc_temp in $compiler""; do
8130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8136 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8139 cygwin* | mingw* | pw32*)
8140 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8141 # When not using gcc, we currently assume that we are using
8142 # Microsoft Visual C++.
8143 if test "$GCC" != yes; then
8153 if test "$with_gnu_ld" = yes; then
8154 # If archive_cmds runs LD, not CC, wlarc should be empty
8157 # Set some defaults for GNU ld with shared library support. These
8158 # are reset later if shared libraries are not supported. Putting them
8159 # here allows them to be overridden if necessary.
8160 runpath_var=LD_RUN_PATH
8161 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8162 export_dynamic_flag_spec='${wl}--export-dynamic'
8163 # ancient GNU ld didn't support --whole-archive et. al.
8164 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8165 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8167 whole_archive_flag_spec=
8169 supports_anon_versioning=no
8170 case `$LD -v 2>/dev/null` in
8171 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8172 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8173 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8174 *\ 2.11.*) ;; # other 2.11 versions
8175 *) supports_anon_versioning=yes ;;
8178 # See if GNU ld supports shared libraries.
8180 aix3* | aix4* | aix5*)
8181 # On AIX/PPC, the GNU linker is very broken
8182 if test "$host_cpu" != ia64; then
8186 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8187 *** to be unable to reliably create shared libraries on AIX.
8188 *** Therefore, libtool is disabling shared libraries support. If you
8189 *** really care for shared libraries, you may want to modify your PATH
8190 *** so that a non-GNU linker is found, and then restart.
8197 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)'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_minus_L=yes
8201 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8202 # that the semantics of dynamic libraries on AmigaOS, at least up
8203 # to version 4, is to share data among multiple programs linked
8204 # with the same dynamic library. Since this doesn't match the
8205 # behavior of shared libraries on other platforms, we can't use
8211 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8212 allow_undefined_flag=unsupported
8213 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8214 # support --undefined. This deserves some investigation. FIXME
8215 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 cygwin* | mingw* | pw32*)
8222 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8223 # as there is no search path for DLLs.
8224 hardcode_libdir_flag_spec='-L$libdir'
8225 allow_undefined_flag=unsupported
8226 always_export_symbols=no
8227 enable_shared_with_static_runtimes=yes
8228 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8230 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8232 # If the export-symbols file already is a .def file (1st line
8233 # is EXPORTS), use it as is; otherwise, prepend...
8234 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8235 cp $export_symbols $output_objdir/$soname.def;
8237 echo EXPORTS > $output_objdir/$soname.def;
8238 cat $export_symbols >> $output_objdir/$soname.def;
8240 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8249 case $cc_basename,$host_cpu in
8250 pgcc*) # Portland Group C compiler
8251 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'
8252 tmp_addflag=' $pic_flag'
8254 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8255 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'
8256 tmp_addflag=' $pic_flag -Mnomain' ;;
8257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8258 tmp_addflag=' -i_dynamic' ;;
8259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8260 tmp_addflag=' -i_dynamic -nofor_main' ;;
8261 ifc* | ifort*) # Intel Fortran compiler
8262 tmp_addflag=' -nofor_main' ;;
8264 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8266 if test $supports_anon_versioning = yes; then
8267 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8268 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8269 $echo "local: *; };" >> $output_objdir/$libname.ver~
8270 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8282 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8283 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8288 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8293 *** create shared libraries on Solaris systems. Therefore, libtool
8294 *** is disabling shared libraries support. We urge you to upgrade GNU
8295 *** binutils to release 2.9.1 or newer. Another option is to modify
8296 *** your PATH or compiler configuration so that the native linker is
8297 *** used, and then restart.
8300 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_shlibpath_var=no
8316 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8325 if test "$ld_shlibs" = no; then
8327 hardcode_libdir_flag_spec=
8328 export_dynamic_flag_spec=
8329 whole_archive_flag_spec=
8332 # PORTME fill in a description of your system's linker (not GNU ld)
8335 allow_undefined_flag=unsupported
8336 always_export_symbols=yes
8337 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'
8338 # Note: this linker hardcodes the directories in LIBPATH if there
8339 # are no directories specified by -L.
8340 hardcode_minus_L=yes
8341 if test "$GCC" = yes && test -z "$link_static_flag"; then
8342 # Neither direct hardcoding nor static linking is supported with a
8344 hardcode_direct=unsupported
8349 if test "$host_cpu" = ia64; then
8350 # On IA64, the linker does run time linking by default, so we don't
8351 # have to do anything special.
8352 aix_use_runtimelinking=no
8353 exp_sym_flag='-Bexport'
8356 # If we're using GNU nm, then we don't want the "-C" option.
8357 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8358 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8359 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'
8361 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'
8363 aix_use_runtimelinking=no
8365 # Test if we are trying to use run time linking or normal
8366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8367 # need to do runtime linking.
8368 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8369 for ld_flag in $LDFLAGS; do
8370 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8371 aix_use_runtimelinking=yes
8377 exp_sym_flag='-bexport'
8378 no_entry_flag='-bnoentry'
8381 # When large executables or shared objects are built, AIX ld can
8382 # have problems creating the table of contents. If linking a library
8383 # or program results in "error TOC overflow" add -mminimal-toc to
8384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8389 hardcode_libdir_separator=':'
8390 link_all_deplibs=yes
8392 if test "$GCC" = yes; then
8393 case $host_os in aix4.[012]|aix4.[012].*)
8394 # We only want to do this on AIX 4.2 and lower, the check
8395 # below for broken collect2 doesn't work under 4.3+
8396 collect2name=`${CC} -print-prog-name=collect2`
8397 if test -f "$collect2name" && \
8398 strings "$collect2name" | grep resolve_lib_name >/dev/null
8400 # We have reworked collect2
8403 # We have old collect2
8404 hardcode_direct=unsupported
8405 # It fails to find uninstalled libraries when the uninstalled
8406 # path is not listed in the libpath. Setting hardcode_minus_L
8407 # to unsupported forces relinking
8408 hardcode_minus_L=yes
8409 hardcode_libdir_flag_spec='-L$libdir'
8410 hardcode_libdir_separator=
8413 shared_flag='-shared'
8414 if test "$aix_use_runtimelinking" = yes; then
8415 shared_flag="$shared_flag "'${wl}-G'
8419 if test "$host_cpu" = ia64; then
8420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8421 # chokes on -Wl,-G. The following line is correct:
8424 if test "$aix_use_runtimelinking" = yes; then
8425 shared_flag='${wl}-G'
8427 shared_flag='${wl}-bM:SRE'
8432 # It seems that -bexpall does not export symbols beginning with
8433 # underscore (_), so it is better to generate a list of symbols to export.
8434 always_export_symbols=yes
8435 if test "$aix_use_runtimelinking" = yes; then
8436 # Warning - without using the other runtime loading flags (-brtl),
8437 # -berok will link without error, but may produce a broken library.
8438 allow_undefined_flag='-berok'
8439 # Determine the default libpath from the value encoded in an empty executable.
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8455 rm -f conftest.$ac_objext conftest$ac_exeext
8456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8457 (eval $ac_link) 2>conftest.er1
8459 grep -v '^ *+' conftest.er1 >conftest.err
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); } &&
8464 { ac_try='test -z "$ac_c_werror_flag"
8465 || test ! -s conftest.err'
8466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); }; } &&
8471 { ac_try='test -s conftest$ac_exeext'
8472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); }; }; then
8478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8480 # Check for a 64-bit object if we didn't find anything.
8481 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; }
8484 echo "$as_me: failed program was:" >&5
8485 sed 's/^/| /' conftest.$ac_ext >&5
8488 rm -f conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
8490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8492 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8493 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"
8495 if test "$host_cpu" = ia64; then
8496 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8497 allow_undefined_flag="-z nodefs"
8498 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"
8500 # Determine the default libpath from the value encoded in an empty executable.
8501 cat >conftest.$ac_ext <<_ACEOF
8504 cat confdefs.h >>conftest.$ac_ext
8505 cat >>conftest.$ac_ext <<_ACEOF
8506 /* end confdefs.h. */
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8520 grep -v '^ *+' conftest.er1 >conftest.err
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8541 # Check for a 64-bit object if we didn't find anything.
8542 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; }
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8549 rm -f conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
8551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8553 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8554 # Warning - without using the other run time loading flags,
8555 # -berok will link without error, but may produce a broken library.
8556 no_undefined_flag=' ${wl}-bernotok'
8557 allow_undefined_flag=' ${wl}-berok'
8558 # -bexpall does not export symbols beginning with underscore (_)
8559 always_export_symbols=yes
8560 # Exported symbols can be pulled into shared objects from archives
8561 whole_archive_flag_spec=' '
8562 archive_cmds_need_lc=yes
8563 # This is similar to how AIX traditionally builds its shared libraries.
8564 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'
8570 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)'
8571 hardcode_libdir_flag_spec='-L$libdir'
8572 hardcode_minus_L=yes
8573 # see comment about different semantics on the GNU ld section
8578 export_dynamic_flag_spec=-rdynamic
8581 cygwin* | mingw* | pw32*)
8582 # When not using gcc, we currently assume that we are using
8583 # Microsoft Visual C++.
8584 # hardcode_libdir_flag_spec is actually meaningless, as there is
8585 # no search path for DLLs.
8586 hardcode_libdir_flag_spec=' '
8587 allow_undefined_flag=unsupported
8588 # Tell ltmain to make .lib files, not .a files.
8590 # Tell ltmain to make .dll files, not .so files.
8592 # FIXME: Setting linknames here is a bad hack.
8593 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8594 # The linker will automatically build a .lib file if we build a DLL.
8595 old_archive_From_new_cmds='true'
8596 # FIXME: Should let the user specify the lib program.
8597 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8598 fix_srcfile_path='`cygpath -w "$srcfile"`'
8599 enable_shared_with_static_runtimes=yes
8602 darwin* | rhapsody*)
8604 rhapsody* | darwin1.[012])
8605 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8608 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8609 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8611 case ${MACOSX_DEPLOYMENT_TARGET} in
8613 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8616 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8622 archive_cmds_need_lc=no
8624 hardcode_automatic=yes
8625 hardcode_shlibpath_var=unsupported
8626 whole_archive_flag_spec=''
8627 link_all_deplibs=yes
8628 if test "$GCC" = yes ; then
8629 output_verbose_link_cmd='echo'
8630 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8631 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8632 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8633 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}'
8634 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}'
8636 case $cc_basename in
8638 output_verbose_link_cmd='echo'
8639 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8640 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8641 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8642 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}'
8643 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}'
8653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8654 hardcode_libdir_flag_spec='-L$libdir'
8655 hardcode_shlibpath_var=no
8662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8663 # support. Future versions do this automatically, but an explicit c++rt0.o
8664 # does not break anything, and helps significantly (at the cost of a little
8667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8668 hardcode_libdir_flag_spec='-R$libdir'
8670 hardcode_shlibpath_var=no
8673 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8677 hardcode_minus_L=yes
8678 hardcode_shlibpath_var=no
8681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8682 freebsd* | kfreebsd*-gnu | dragonfly*)
8683 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8684 hardcode_libdir_flag_spec='-R$libdir'
8686 hardcode_shlibpath_var=no
8690 if test "$GCC" = yes; then
8691 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'
8693 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'
8695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696 hardcode_libdir_separator=:
8699 # hardcode_minus_L: Not really in the search PATH,
8700 # but as the default location of the library.
8701 hardcode_minus_L=yes
8702 export_dynamic_flag_spec='${wl}-E'
8706 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8709 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8712 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8718 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8721 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8725 if test "$with_gnu_ld" = no; then
8728 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8729 hardcode_libdir_flag_spec_ld='+b $libdir'
8730 hardcode_libdir_separator=:
8732 hardcode_shlibpath_var=no
8735 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_shlibpath_var=no
8739 # hardcode_minus_L: Not really in the search PATH,
8740 # but as the default location of the library.
8741 hardcode_minus_L=yes
8744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8745 hardcode_libdir_separator=:
8747 export_dynamic_flag_spec='${wl}-E'
8749 # hardcode_minus_L: Not really in the search PATH,
8750 # but as the default location of the library.
8751 hardcode_minus_L=yes
8757 irix5* | irix6* | nonstopux*)
8758 if test "$GCC" = yes; then
8759 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'
8761 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'
8762 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8764 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8765 hardcode_libdir_separator=:
8766 link_all_deplibs=yes
8770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8775 hardcode_libdir_flag_spec='-R$libdir'
8777 hardcode_shlibpath_var=no
8781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8784 hardcode_libdir_separator=:
8785 hardcode_shlibpath_var=no
8790 hardcode_shlibpath_var=no
8791 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8792 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8793 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 export_dynamic_flag_spec='${wl}-E'
8798 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_libdir_flag_spec='-R$libdir'
8803 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8811 hardcode_libdir_flag_spec='-L$libdir'
8812 hardcode_minus_L=yes
8813 allow_undefined_flag=unsupported
8814 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'
8815 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8819 if test "$GCC" = yes; then
8820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8821 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'
8823 allow_undefined_flag=' -expect_unresolved \*'
8824 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'
8826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8827 hardcode_libdir_separator=:
8830 osf4* | osf5*) # as osf3* with the addition of -msym flag
8831 if test "$GCC" = yes; then
8832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8833 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'
8834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8836 allow_undefined_flag=' -expect_unresolved \*'
8837 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'
8838 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8839 $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'
8841 # Both c and cxx compiler support -rpath directly
8842 hardcode_libdir_flag_spec='-rpath $libdir'
8844 hardcode_libdir_separator=:
8848 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8849 hardcode_shlibpath_var=no
8850 export_dynamic_flag_spec='${wl}-Bexport'
8851 runpath_var=LD_RUN_PATH
8852 hardcode_runpath_var=yes
8856 no_undefined_flag=' -z text'
8857 if test "$GCC" = yes; then
8859 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8860 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8861 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8864 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8865 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8868 hardcode_libdir_flag_spec='-R$libdir'
8869 hardcode_shlibpath_var=no
8871 solaris2.[0-5] | solaris2.[0-5].*) ;;
8873 # The compiler driver will combine linker options so we
8874 # cannot just pass the convience library names through
8875 # without $wl, iff we do not link with $LD.
8876 # Luckily, gcc supports the same syntax we need for Sun Studio.
8877 # Supported since Solaris 2.6 (maybe 2.5.1?)
8880 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8882 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' ;;
8885 link_all_deplibs=yes
8889 if test "x$host_vendor" = xsequent; then
8890 # Use $CC to link under sequent, because it throws in some extra .o
8891 # files that make .init and .fini sections work.
8892 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8894 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8896 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_minus_L=yes
8899 hardcode_shlibpath_var=no
8903 case $host_vendor in
8905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8906 hardcode_direct=yes # is this really true???
8909 ## LD is ld it makes a PLAMLIB
8910 ## CC just makes a GrossModule.
8911 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8912 reload_cmds='$CC -r -o $output$reload_objs'
8916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8917 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8920 runpath_var='LD_RUN_PATH'
8921 hardcode_shlibpath_var=no
8925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8926 hardcode_shlibpath_var=no
8927 export_dynamic_flag_spec='-Bexport'
8931 if test -d /usr/nec; then
8932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933 hardcode_shlibpath_var=no
8934 runpath_var=LD_RUN_PATH
8935 hardcode_runpath_var=yes
8941 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8944 hardcode_shlibpath_var=no
8945 hardcode_runpath_var=yes
8946 runpath_var=LD_RUN_PATH
8949 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8950 no_undefined_flag='${wl}-z ${wl}text'
8951 if test "$GCC" = yes; then
8952 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8954 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 runpath_var='LD_RUN_PATH'
8957 hardcode_shlibpath_var=no
8961 no_undefined_flag=' -z text'
8962 # $CC -shared without GNU ld will not create a library from C++
8963 # object files and a static libstdc++, better avoid it by now
8964 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8966 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8967 hardcode_libdir_flag_spec=
8968 hardcode_shlibpath_var=no
8969 runpath_var='LD_RUN_PATH'
8973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_shlibpath_var=no
8984 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8985 echo "${ECHO_T}$ld_shlibs" >&6
8986 test "$ld_shlibs" = no && can_build_shared=no
8988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8989 if test "$GCC" = yes; then
8990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8994 # Do we need to explicitly link libc?
8996 case "x$archive_cmds_need_lc" in
8998 # Assume -lc should be added
8999 archive_cmds_need_lc=yes
9001 if test "$enable_shared" = yes && test "$GCC" = yes; then
9002 case $archive_cmds in
9004 # FIXME: we may have to deal with multi-command sequences.
9007 # Test whether the compiler implicitly links with -lc since on some
9008 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9009 # to ld, don't add -lc before -lgcc.
9010 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9011 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9013 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9016 (eval $ac_compile) 2>&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } 2>conftest.err; then
9022 libobjs=conftest.$ac_objext
9024 wl=$lt_prog_compiler_wl
9030 lt_save_allow_undefined_flag=$allow_undefined_flag
9031 allow_undefined_flag=
9032 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9033 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); }
9038 archive_cmds_need_lc=no
9040 archive_cmds_need_lc=yes
9042 allow_undefined_flag=$lt_save_allow_undefined_flag
9044 cat conftest.err 1>&5
9047 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9048 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9055 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9056 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9058 libname_spec='lib$name'
9066 shlibpath_overrides_runpath=unknown
9068 dynamic_linker="$host_os ld.so"
9069 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9070 if test "$GCC" = yes; then
9071 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9072 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9073 # if the path contains ";" then we assume it to be the separator
9074 # otherwise default to the standard path separator (i.e. ":") - it is
9075 # assumed that no part of a normal pathname contains ";" but that should
9076 # okay in the real world where ";" in dirpaths is itself problematic.
9077 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9082 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9084 need_lib_prefix=unknown
9085 hardcode_into_libs=no
9087 # when you set need_version to no, make sure it does not cause -set_version
9088 # flags to be left without arguments
9089 need_version=unknown
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9095 shlibpath_var=LIBPATH
9097 # AIX 3 has no versioning support, so we append a major version to the name.
9098 soname_spec='${libname}${release}${shared_ext}$major'
9105 hardcode_into_libs=yes
9106 if test "$host_cpu" = ia64; then
9107 # AIX 5 supports IA64
9108 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9109 shlibpath_var=LD_LIBRARY_PATH
9111 # With GCC up to 2.95.x, collect2 would create an import file
9112 # for dependence libraries. The import file would start with
9113 # the line `#! .'. This would cause the generated library to
9114 # depend on `.', always an invalid library. This was fixed in
9115 # development snapshots of GCC prior to 3.0.
9117 aix4 | aix4.[01] | aix4.[01].*)
9118 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9120 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9127 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9128 # soname into executable. Probably we can add versioning support to
9129 # collect2, so additional links can be useful in future.
9130 if test "$aix_use_runtimelinking" = yes; then
9131 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9132 # instead of lib<name>.a to let people know that these are not
9133 # typical AIX shared libraries.
9134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9136 # We preserve .a as extension for shared libraries through AIX4.2
9137 # and later when we are not doing run time linking.
9138 library_names_spec='${libname}${release}.a $libname.a'
9139 soname_spec='${libname}${release}${shared_ext}$major'
9141 shlibpath_var=LIBPATH
9146 library_names_spec='$libname.ixlibrary $libname.a'
9147 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9148 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'
9152 library_names_spec='${libname}${shared_ext}'
9153 dynamic_linker="$host_os ld.so"
9154 shlibpath_var=LIBRARY_PATH
9160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9163 shlibpath_var=LD_LIBRARY_PATH
9164 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9165 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9166 # the default ld.so.conf also contains /usr/contrib/lib and
9167 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9168 # libtool to hard-code these into programs
9171 cygwin* | mingw* | pw32*)
9172 version_type=windows
9177 case $GCC,$host_os in
9178 yes,cygwin* | yes,mingw* | yes,pw32*)
9179 library_names_spec='$libname.dll.a'
9180 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9181 postinstall_cmds='base_file=`basename \${file}`~
9182 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9183 dldir=$destdir/`dirname \$dlpath`~
9184 test -d \$dldir || mkdir -p \$dldir~
9185 $install_prog $dir/$dlname \$dldir/$dlname~
9186 chmod a+x \$dldir/$dlname'
9187 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9188 dlpath=$dir/\$dldll~
9190 shlibpath_overrides_runpath=yes
9194 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9195 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9196 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9199 # MinGW DLLs use traditional 'lib' prefix
9200 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9202 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9203 # It is most probably a Windows format PATH printed by
9204 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9205 # path with ; separators, and with drive letters. We can handle the
9206 # drive letters (cygwin fileutils understands them), so leave them,
9207 # especially as we might pass files found there to a mingw objdump,
9208 # which wouldn't understand a cygwinified path. Ahh.
9209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9211 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9215 # pw32 DLLs use 'pw' prefix rather than 'lib'
9216 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9222 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9225 dynamic_linker='Win32 ld.exe'
9226 # FIXME: first we should search . and the directory the executable is in
9230 darwin* | rhapsody*)
9231 dynamic_linker="$host_os dyld"
9235 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9236 soname_spec='${libname}${release}${major}$shared_ext'
9237 shlibpath_overrides_runpath=yes
9238 shlibpath_var=DYLD_LIBRARY_PATH
9239 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9240 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9241 if test "$GCC" = yes; then
9242 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"`
9244 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9246 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 shlibpath_overrides_runpath=no
9270 hardcode_into_libs=yes
9271 dynamic_linker='GNU ld.so'
9274 freebsd* | dragonfly*)
9275 # DragonFly does not have aout. When/if they implement a new
9276 # versioning mechanism, adjust this.
9277 if test -x /usr/bin/objformat; then
9278 objformat=`/usr/bin/objformat`
9281 freebsd[123]*) objformat=aout ;;
9285 version_type=freebsd-$objformat
9286 case $version_type in
9288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9297 shlibpath_var=LD_LIBRARY_PATH
9300 shlibpath_overrides_runpath=yes
9302 freebsd3.[01]* | freebsdelf3.[01]*)
9303 shlibpath_overrides_runpath=yes
9304 hardcode_into_libs=yes
9307 shlibpath_overrides_runpath=no
9308 hardcode_into_libs=yes
9317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9318 soname_spec='${libname}${release}${shared_ext}$major'
9319 shlibpath_var=LD_LIBRARY_PATH
9320 hardcode_into_libs=yes
9323 hpux9* | hpux10* | hpux11*)
9324 # Give a soname corresponding to the major version so that dld.sl refuses to
9325 # link against other versions.
9332 hardcode_into_libs=yes
9333 dynamic_linker="$host_os dld.so"
9334 shlibpath_var=LD_LIBRARY_PATH
9335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337 soname_spec='${libname}${release}${shared_ext}$major'
9338 if test "X$HPUX_IA64_MODE" = X32; then
9339 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9341 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9343 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9347 hardcode_into_libs=yes
9348 dynamic_linker="$host_os dld.sl"
9349 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9350 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9352 soname_spec='${libname}${release}${shared_ext}$major'
9353 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9358 dynamic_linker="$host_os dld.sl"
9359 shlibpath_var=SHLIB_PATH
9360 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362 soname_spec='${libname}${release}${shared_ext}$major'
9365 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9366 postinstall_cmds='chmod 555 $lib'
9369 irix5* | irix6* | nonstopux*)
9371 nonstopux*) version_type=nonstopux ;;
9373 if test "$lt_cv_prog_gnu_ld" = yes; then
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9384 irix5* | nonstopux*)
9388 case $LD in # libtool.m4 will add one of these switches to LD
9389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9390 libsuff= shlibsuff= libmagic=32-bit;;
9391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9392 libsuff=32 shlibsuff=N32 libmagic=N32;;
9393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9395 *) libsuff= shlibsuff= libmagic=never-match;;
9399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9400 shlibpath_overrides_runpath=no
9401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9403 hardcode_into_libs=yes
9406 # No shared lib support for Linux oldld, aout, or coff.
9407 linux*oldld* | linux*aout* | linux*coff*)
9411 # This must be Linux ELF.
9416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9417 soname_spec='${libname}${release}${shared_ext}$major'
9418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9419 shlibpath_var=LD_LIBRARY_PATH
9420 shlibpath_overrides_runpath=no
9421 # This implies no fast_install, which is unacceptable.
9422 # Some rework will be needed to allow for fast_install
9423 # before this can be enabled.
9424 hardcode_into_libs=yes
9426 # Append ld.so.conf contents to the search path
9427 if test -f /etc/ld.so.conf; then
9428 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' ' '`
9429 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9432 # We used to test for /lib/ld.so.1 and disable shared libraries on
9433 # powerpc, because MkLinux only supported shared libraries with the
9434 # GNU dynamic linker. Since this was broken with cross compilers,
9435 # most powerpc-linux boxes support dynamic linking these days and
9436 # people can always --disable-shared, the test was removed, and we
9437 # assume the GNU/Linux dynamic linker is in use.
9438 dynamic_linker='GNU/Linux ld.so'
9445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9446 soname_spec='${libname}${release}${shared_ext}$major'
9447 shlibpath_var=LD_LIBRARY_PATH
9448 shlibpath_overrides_runpath=no
9449 hardcode_into_libs=yes
9450 dynamic_linker='GNU ld.so'
9457 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9460 dynamic_linker='NetBSD (a.out) ld.so'
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 dynamic_linker='NetBSD ld.elf_so'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=yes
9468 hardcode_into_libs=yes
9473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474 shlibpath_var=LD_LIBRARY_PATH
9475 shlibpath_overrides_runpath=yes
9482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9483 soname_spec='${libname}${release}${shared_ext}$major'
9484 shlibpath_var=LD_LIBRARY_PATH
9485 shlibpath_overrides_runpath=yes
9491 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9493 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9494 *) need_version=no ;;
9496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498 shlibpath_var=LD_LIBRARY_PATH
9499 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9501 openbsd2.[89] | openbsd2.[89].*)
9502 shlibpath_overrides_runpath=no
9505 shlibpath_overrides_runpath=yes
9509 shlibpath_overrides_runpath=yes
9514 libname_spec='$name'
9517 library_names_spec='$libname${shared_ext} $libname.a'
9518 dynamic_linker='OS/2 ld.exe'
9519 shlibpath_var=LIBPATH
9522 osf3* | osf4* | osf5*)
9526 soname_spec='${libname}${release}${shared_ext}$major'
9527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9528 shlibpath_var=LD_LIBRARY_PATH
9529 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9530 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9535 soname_spec='${libname}${release}${shared_ext}$major'
9536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9537 shlibpath_var=LD_LIBRARY_PATH
9544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9545 soname_spec='${libname}${release}${shared_ext}$major'
9546 shlibpath_var=LD_LIBRARY_PATH
9547 shlibpath_overrides_runpath=yes
9548 hardcode_into_libs=yes
9549 # ldd complains unless libraries are executable
9550 postinstall_cmds='chmod +x $lib'
9555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9557 shlibpath_var=LD_LIBRARY_PATH
9558 shlibpath_overrides_runpath=yes
9559 if test "$with_gnu_ld" = yes; then
9565 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9568 soname_spec='${libname}${release}${shared_ext}$major'
9569 shlibpath_var=LD_LIBRARY_PATH
9570 case $host_vendor in
9572 shlibpath_overrides_runpath=no
9574 export_dynamic_flag_spec='${wl}-Blargedynsym'
9575 runpath_var=LD_RUN_PATH
9583 shlibpath_overrides_runpath=no
9584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9590 if test -d /usr/nec ;then
9592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9593 soname_spec='$libname${shared_ext}.$major'
9594 shlibpath_var=LD_LIBRARY_PATH
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9609 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9610 echo "${ECHO_T}$dynamic_linker" >&6
9611 test "$dynamic_linker" = no && can_build_shared=no
9613 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9614 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9616 if test -n "$hardcode_libdir_flag_spec" || \
9617 test -n "$runpath_var" || \
9618 test "X$hardcode_automatic" = "Xyes" ; then
9620 # We can hardcode non-existant directories.
9621 if test "$hardcode_direct" != no &&
9622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9623 # have to relink, otherwise we might link with an installed library
9624 # when we should be linking with a yet-to-be-installed one
9625 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9626 test "$hardcode_minus_L" != no; then
9627 # Linking always hardcodes the temporary library directory.
9628 hardcode_action=relink
9630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9631 hardcode_action=immediate
9634 # We cannot hardcode anything, or else we can only hardcode existing
9636 hardcode_action=unsupported
9638 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9639 echo "${ECHO_T}$hardcode_action" >&6
9641 if test "$hardcode_action" = relink; then
9642 # Fast installation is not supported
9643 enable_fast_install=no
9644 elif test "$shlibpath_overrides_runpath" = yes ||
9645 test "$enable_shared" = no; then
9646 # Fast installation is not necessary
9647 enable_fast_install=needless
9652 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9653 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9654 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9655 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9656 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9657 echo "$as_me:$LINENO: result: yes" >&5
9658 echo "${ECHO_T}yes" >&6
9660 # FIXME - insert some real tests, host_os isn't really good enough
9663 if test -n "$STRIP" ; then
9664 striplib="$STRIP -x"
9665 echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9673 echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6
9679 if test "x$enable_dlopen" != xyes; then
9680 enable_dlopen=unknown
9681 enable_dlopen_self=unknown
9682 enable_dlopen_self_static=unknown
9689 lt_cv_dlopen="load_add_on"
9691 lt_cv_dlopen_self=yes
9695 lt_cv_dlopen="LoadLibrary"
9700 lt_cv_dlopen="dlopen"
9705 # if libdl is installed we need to link against it
9706 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9707 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9708 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9709 echo $ECHO_N "(cached) $ECHO_C" >&6
9711 ac_check_lib_save_LIBS=$LIBS
9713 cat >conftest.$ac_ext <<_ACEOF
9716 cat confdefs.h >>conftest.$ac_ext
9717 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */
9720 /* Override any gcc2 internal prototype to avoid an error. */
9724 /* We use char because int might match the return type of a gcc2
9725 builtin and then its argument prototype would still apply. */
9735 rm -f conftest.$ac_objext conftest$ac_exeext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9737 (eval $ac_link) 2>conftest.er1
9739 grep -v '^ *+' conftest.er1 >conftest.err
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -z "$ac_c_werror_flag"
9745 || test ! -s conftest.err'
9746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; }; then
9757 ac_cv_lib_dl_dlopen=yes
9759 echo "$as_me: failed program was:" >&5
9760 sed 's/^/| /' conftest.$ac_ext >&5
9762 ac_cv_lib_dl_dlopen=no
9764 rm -f conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
9766 LIBS=$ac_check_lib_save_LIBS
9768 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9769 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9770 if test $ac_cv_lib_dl_dlopen = yes; then
9771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9776 lt_cv_dlopen_self=yes
9783 echo "$as_me:$LINENO: checking for shl_load" >&5
9784 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9785 if test "${ac_cv_func_shl_load+set}" = set; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.$ac_ext <<_ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define shl_load innocuous_shl_load
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char shl_load (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any gcc2 internal prototype to avoid an error. */
9816 /* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9819 /* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9825 char (*f) () = shl_load;
9834 return f != shl_load;
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1 >conftest.err
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_func_shl_load=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 ac_cv_func_shl_load=no
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9871 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9873 if test $ac_cv_func_shl_load = yes; then
9874 lt_cv_dlopen="shl_load"
9876 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9878 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 ac_check_lib_save_LIBS=$LIBS
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9890 /* Override any gcc2 internal prototype to avoid an error. */
9894 /* We use char because int might match the return type of a gcc2
9895 builtin and then its argument prototype would still apply. */
9905 rm -f conftest.$ac_objext conftest$ac_exeext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907 (eval $ac_link) 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } &&
9914 { ac_try='test -z "$ac_c_werror_flag"
9915 || test ! -s conftest.err'
9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); }; } &&
9921 { ac_try='test -s conftest$ac_exeext'
9922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); }; }; then
9927 ac_cv_lib_dld_shl_load=yes
9929 echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9932 ac_cv_lib_dld_shl_load=no
9934 rm -f conftest.err conftest.$ac_objext \
9935 conftest$ac_exeext conftest.$ac_ext
9936 LIBS=$ac_check_lib_save_LIBS
9938 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9939 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9940 if test $ac_cv_lib_dld_shl_load = yes; then
9941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9943 echo "$as_me:$LINENO: checking for dlopen" >&5
9944 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9945 if test "${ac_cv_func_dlopen+set}" = set; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define dlopen innocuous_dlopen
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char dlopen (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9964 # include <limits.h>
9966 # include <assert.h>
9971 /* Override any gcc2 internal prototype to avoid an error. */
9976 /* We use char because int might match the return type of a gcc2
9977 builtin and then its argument prototype would still apply. */
9979 /* The GNU C library defines this for functions which it implements
9980 to always fail with ENOSYS. Some functions are actually named
9981 something starting with __ and the normal name is an alias. */
9982 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9985 char (*f) () = dlopen;
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001 (eval $ac_link) 2>conftest.er1
10003 grep -v '^ *+' conftest.er1 >conftest.err
10005 cat conftest.err >&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -z "$ac_c_werror_flag"
10009 || test ! -s conftest.err'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; } &&
10015 { ac_try='test -s conftest$ac_exeext'
10016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017 (eval $ac_try) 2>&5
10019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020 (exit $ac_status); }; }; then
10021 ac_cv_func_dlopen=yes
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10026 ac_cv_func_dlopen=no
10028 rm -f conftest.err conftest.$ac_objext \
10029 conftest$ac_exeext conftest.$ac_ext
10031 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10032 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10033 if test $ac_cv_func_dlopen = yes; then
10034 lt_cv_dlopen="dlopen"
10036 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10037 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10038 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 ac_check_lib_save_LIBS=$LIBS
10043 cat >conftest.$ac_ext <<_ACEOF
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any gcc2 internal prototype to avoid an error. */
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>conftest.er1
10069 grep -v '^ *+' conftest.er1 >conftest.err
10071 cat conftest.err >&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -z "$ac_c_werror_flag"
10075 || test ! -s conftest.err'
10076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077 (eval $ac_try) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; } &&
10081 { ac_try='test -s conftest$ac_exeext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_cv_lib_dl_dlopen=yes
10089 echo "$as_me: failed program was:" >&5
10090 sed 's/^/| /' conftest.$ac_ext >&5
10092 ac_cv_lib_dl_dlopen=no
10094 rm -f conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10098 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10099 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10100 if test $ac_cv_lib_dl_dlopen = yes; then
10101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10104 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10106 echo $ECHO_N "(cached) $ECHO_C" >&6
10108 ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld $LIBS"
10110 cat >conftest.$ac_ext <<_ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h. */
10117 /* Override any gcc2 internal prototype to avoid an error. */
10121 /* We use char because int might match the return type of a gcc2
10122 builtin and then its argument prototype would still apply. */
10132 rm -f conftest.$ac_objext conftest$ac_exeext
10133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10134 (eval $ac_link) 2>conftest.er1
10136 grep -v '^ *+' conftest.er1 >conftest.err
10138 cat conftest.err >&5
10139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140 (exit $ac_status); } &&
10141 { ac_try='test -z "$ac_c_werror_flag"
10142 || test ! -s conftest.err'
10143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10144 (eval $ac_try) 2>&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); }; } &&
10148 { ac_try='test -s conftest$ac_exeext'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; }; then
10154 ac_cv_lib_svld_dlopen=yes
10156 echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10159 ac_cv_lib_svld_dlopen=no
10161 rm -f conftest.err conftest.$ac_objext \
10162 conftest$ac_exeext conftest.$ac_ext
10163 LIBS=$ac_check_lib_save_LIBS
10165 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10167 if test $ac_cv_lib_svld_dlopen = yes; then
10168 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10170 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10171 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10172 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10173 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 ac_check_lib_save_LIBS=$LIBS
10177 cat >conftest.$ac_ext <<_ACEOF
10180 cat confdefs.h >>conftest.$ac_ext
10181 cat >>conftest.$ac_ext <<_ACEOF
10182 /* end confdefs.h. */
10184 /* Override any gcc2 internal prototype to avoid an error. */
10188 /* We use char because int might match the return type of a gcc2
10189 builtin and then its argument prototype would still apply. */
10199 rm -f conftest.$ac_objext conftest$ac_exeext
10200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10201 (eval $ac_link) 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } &&
10208 { ac_try='test -z "$ac_c_werror_flag"
10209 || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10221 ac_cv_lib_dld_dld_link=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ac_cv_lib_dld_dld_link=no
10228 rm -f conftest.err conftest.$ac_objext \
10229 conftest$ac_exeext conftest.$ac_ext
10230 LIBS=$ac_check_lib_save_LIBS
10232 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10233 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10234 if test $ac_cv_lib_dld_dld_link = yes; then
10235 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10256 if test "x$lt_cv_dlopen" != xno; then
10262 case $lt_cv_dlopen in
10264 save_CPPFLAGS="$CPPFLAGS"
10265 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10267 save_LDFLAGS="$LDFLAGS"
10268 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10271 LIBS="$lt_cv_dlopen_libs $LIBS"
10273 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10274 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10275 if test "${lt_cv_dlopen_self+set}" = set; then
10276 echo $ECHO_N "(cached) $ECHO_C" >&6
10278 if test "$cross_compiling" = yes; then :
10279 lt_cv_dlopen_self=cross
10281 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10282 lt_status=$lt_dlunknown
10283 cat > conftest.$ac_ext <<EOF
10284 #line 10284 "configure"
10285 #include "confdefs.h"
10294 # define LT_DLGLOBAL RTLD_GLOBAL
10297 # define LT_DLGLOBAL DL_GLOBAL
10299 # define LT_DLGLOBAL 0
10303 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10304 find out it does not work in some platform. */
10305 #ifndef LT_DLLAZY_OR_NOW
10307 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10310 # define LT_DLLAZY_OR_NOW DL_LAZY
10313 # define LT_DLLAZY_OR_NOW RTLD_NOW
10316 # define LT_DLLAZY_OR_NOW DL_NOW
10318 # define LT_DLLAZY_OR_NOW 0
10326 extern "C" void exit (int);
10329 void fnord() { int i=42;}
10332 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10333 int status = $lt_dlunknown;
10337 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10338 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10339 /* dlclose (self); */
10345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10346 (eval $ac_link) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10350 (./conftest; exit; ) >&5 2>/dev/null
10352 case x$lt_status in
10353 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10354 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10355 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10358 # compilation failed
10359 lt_cv_dlopen_self=no
10366 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10367 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10369 if test "x$lt_cv_dlopen_self" = xyes; then
10370 LDFLAGS="$LDFLAGS $link_static_flag"
10371 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10372 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10373 if test "${lt_cv_dlopen_self_static+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 if test "$cross_compiling" = yes; then :
10377 lt_cv_dlopen_self_static=cross
10379 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10380 lt_status=$lt_dlunknown
10381 cat > conftest.$ac_ext <<EOF
10382 #line 10382 "configure"
10383 #include "confdefs.h"
10392 # define LT_DLGLOBAL RTLD_GLOBAL
10395 # define LT_DLGLOBAL DL_GLOBAL
10397 # define LT_DLGLOBAL 0
10401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10402 find out it does not work in some platform. */
10403 #ifndef LT_DLLAZY_OR_NOW
10405 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10408 # define LT_DLLAZY_OR_NOW DL_LAZY
10411 # define LT_DLLAZY_OR_NOW RTLD_NOW
10414 # define LT_DLLAZY_OR_NOW DL_NOW
10416 # define LT_DLLAZY_OR_NOW 0
10424 extern "C" void exit (int);
10427 void fnord() { int i=42;}
10430 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10431 int status = $lt_dlunknown;
10435 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10436 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10437 /* dlclose (self); */
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10448 (./conftest; exit; ) >&5 2>/dev/null
10450 case x$lt_status in
10451 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10452 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10453 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10456 # compilation failed
10457 lt_cv_dlopen_self_static=no
10464 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10465 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10468 CPPFLAGS="$save_CPPFLAGS"
10469 LDFLAGS="$save_LDFLAGS"
10474 case $lt_cv_dlopen_self in
10475 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10476 *) enable_dlopen_self=unknown ;;
10479 case $lt_cv_dlopen_self_static in
10480 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10481 *) enable_dlopen_self_static=unknown ;;
10486 # Report which librarie types wil actually be built
10487 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10488 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10489 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10490 echo "${ECHO_T}$can_build_shared" >&6
10492 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10493 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10494 test "$can_build_shared" = "no" && enable_shared=no
10496 # On AIX, shared libraries and static libraries use the same namespace, and
10497 # are all built from PIC.
10500 test "$enable_shared" = yes && enable_static=no
10501 if test -n "$RANLIB"; then
10502 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10503 postinstall_cmds='$RANLIB $lib'
10508 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10509 test "$enable_shared" = yes && enable_static=no
10513 echo "$as_me:$LINENO: result: $enable_shared" >&5
10514 echo "${ECHO_T}$enable_shared" >&6
10516 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10517 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10518 # Make sure either enable_shared or enable_static is yes.
10519 test "$enable_shared" = yes || enable_static=yes
10520 echo "$as_me:$LINENO: result: $enable_static" >&5
10521 echo "${ECHO_T}$enable_static" >&6
10523 # The else clause should only fire when bootstrapping the
10524 # libtool distribution, otherwise you forgot to ship ltmain.sh
10525 # with your package, and you will get complaints that there are
10526 # no rules to generate ltmain.sh.
10527 if test -f "$ltmain"; then
10528 # See if we are running on zsh, and set the options which allow our commands through
10529 # without removal of \ escapes.
10530 if test -n "${ZSH_VERSION+set}" ; then
10531 setopt NO_GLOB_SUBST
10533 # Now quote all the things that may contain metacharacters while being
10534 # careful not to overquote the AC_SUBSTed values. We take copies of the
10535 # variables and quote the copies for generation of the libtool script.
10536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10540 deplibs_check_method reload_flag reload_cmds need_locks \
10541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10542 lt_cv_sys_global_symbol_to_c_name_address \
10543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10544 old_postinstall_cmds old_postuninstall_cmds \
10548 lt_prog_compiler_wl \
10549 lt_prog_compiler_pic \
10550 lt_prog_compiler_static \
10551 lt_prog_compiler_no_builtin_flag \
10552 export_dynamic_flag_spec \
10553 thread_safe_flag_spec \
10554 whole_archive_flag_spec \
10555 enable_shared_with_static_runtimes \
10557 old_archive_from_new_cmds \
10562 compiler_lib_search_path \
10564 archive_expsym_cmds \
10566 postuninstall_cmds \
10567 old_archive_from_expsyms_cmds \
10568 allow_undefined_flag \
10569 no_undefined_flag \
10570 export_symbols_cmds \
10571 hardcode_libdir_flag_spec \
10572 hardcode_libdir_flag_spec_ld \
10573 hardcode_libdir_separator \
10574 hardcode_automatic \
10576 module_expsym_cmds \
10577 lt_cv_prog_compiler_c_o \
10579 include_expsyms; do
10582 old_archive_cmds | \
10583 old_archive_from_new_cmds | \
10585 archive_expsym_cmds | \
10587 module_expsym_cmds | \
10588 old_archive_from_expsyms_cmds | \
10589 export_symbols_cmds | \
10590 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10591 postinstall_cmds | postuninstall_cmds | \
10592 old_postinstall_cmds | old_postuninstall_cmds | \
10593 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10594 # Double-quote double-evaled strings.
10595 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10598 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10604 *'\$0 --fallback-echo"')
10605 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10609 cfgfile="${ofile}T"
10610 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10612 { echo "$as_me:$LINENO: creating $ofile" >&5
10613 echo "$as_me: creating $ofile" >&6;}
10615 cat <<__EOF__ >> "$cfgfile"
10618 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10619 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10620 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10622 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10623 # Free Software Foundation, Inc.
10625 # This file is part of GNU Libtool:
10626 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10628 # This program is free software; you can redistribute it and/or modify
10629 # it under the terms of the GNU General Public License as published by
10630 # the Free Software Foundation; either version 2 of the License, or
10631 # (at your option) any later version.
10633 # This program is distributed in the hope that it will be useful, but
10634 # WITHOUT ANY WARRANTY; without even the implied warranty of
10635 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10636 # General Public License for more details.
10638 # You should have received a copy of the GNU General Public License
10639 # along with this program; if not, write to the Free Software
10640 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10642 # As a special exception to the GNU General Public License, if you
10643 # distribute this file as part of a program that contains a
10644 # configuration script generated by Autoconf, you may include it under
10645 # the same distribution terms that you use for the rest of that program.
10647 # A sed program that does not truncate output.
10650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10651 Xsed="$SED -e 1s/^X//"
10653 # The HP-UX ksh and POSIX shell print the target directory to stdout
10654 # if CDPATH is set.
10655 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10657 # The names of the tagged configurations supported by this script.
10660 # ### BEGIN LIBTOOL CONFIG
10662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10664 # Shell to use when invoking shell scripts.
10667 # Whether or not to build shared libraries.
10668 build_libtool_libs=$enable_shared
10670 # Whether or not to build static libraries.
10671 build_old_libs=$enable_static
10673 # Whether or not to add -lc for building shared libraries.
10674 build_libtool_need_lc=$archive_cmds_need_lc
10676 # Whether or not to disallow shared libs when runtime libs are static
10677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10679 # Whether or not to optimize for fast installation.
10680 fast_install=$enable_fast_install
10683 host_alias=$host_alias
10687 # The build system.
10688 build_alias=$build_alias
10692 # An echo program that does not interpret backslashes.
10697 AR_FLAGS=$lt_AR_FLAGS
10702 # A language-specific compiler.
10705 # Is the compiler the GNU C compiler?
10711 # The linker used to build libraries.
10714 # Whether we need hard or soft links.
10717 # A BSD-compatible nm program.
10720 # A symbol stripping program
10723 # Used to examine libraries when file_magic_cmd begins "file"
10724 MAGIC_CMD=$MAGIC_CMD
10726 # Used on cygwin: DLL creation program.
10729 # Used on cygwin: object dumper.
10732 # Used on cygwin: assembler.
10735 # The name of the directory that contains temporary libtool files.
10738 # How to create reloadable object files.
10739 reload_flag=$lt_reload_flag
10740 reload_cmds=$lt_reload_cmds
10742 # How to pass a linker flag through the compiler.
10743 wl=$lt_lt_prog_compiler_wl
10745 # Object file suffix (normally "o").
10746 objext="$ac_objext"
10748 # Old archive suffix (normally "a").
10751 # Shared library suffix (normally ".so").
10752 shrext_cmds='$shrext_cmds'
10754 # Executable file suffix (normally "").
10757 # Additional compiler flags for building library objects.
10758 pic_flag=$lt_lt_prog_compiler_pic
10761 # What is the maximum length of a command?
10762 max_cmd_len=$lt_cv_sys_max_cmd_len
10764 # Does compiler simultaneously support -c and -o options?
10765 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10767 # Must we lock files when doing compilation?
10768 need_locks=$lt_need_locks
10770 # Do we need the lib prefix for modules?
10771 need_lib_prefix=$need_lib_prefix
10773 # Do we need a version for libraries?
10774 need_version=$need_version
10776 # Whether dlopen is supported.
10777 dlopen_support=$enable_dlopen
10779 # Whether dlopen of programs is supported.
10780 dlopen_self=$enable_dlopen_self
10782 # Whether dlopen of statically linked programs is supported.
10783 dlopen_self_static=$enable_dlopen_self_static
10785 # Compiler flag to prevent dynamic linking.
10786 link_static_flag=$lt_lt_prog_compiler_static
10788 # Compiler flag to turn off builtin functions.
10789 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10791 # Compiler flag to allow reflexive dlopens.
10792 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10794 # Compiler flag to generate shared objects directly from archives.
10795 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10797 # Compiler flag to generate thread-safe objects.
10798 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10800 # Library versioning type.
10801 version_type=$version_type
10803 # Format of library name prefix.
10804 libname_spec=$lt_libname_spec
10806 # List of archive names. First name is the real one, the rest are links.
10807 # The last name is the one that the linker finds with -lNAME.
10808 library_names_spec=$lt_library_names_spec
10810 # The coded name of the library, if different from the real name.
10811 soname_spec=$lt_soname_spec
10813 # Commands used to build and install an old-style archive.
10815 old_archive_cmds=$lt_old_archive_cmds
10816 old_postinstall_cmds=$lt_old_postinstall_cmds
10817 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10819 # Create an old-style archive from a shared archive.
10820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10822 # Create a temporary old-style archive to link instead of a shared archive.
10823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10825 # Commands used to build and install a shared archive.
10826 archive_cmds=$lt_archive_cmds
10827 archive_expsym_cmds=$lt_archive_expsym_cmds
10828 postinstall_cmds=$lt_postinstall_cmds
10829 postuninstall_cmds=$lt_postuninstall_cmds
10831 # Commands used to build a loadable module (assumed same as above if empty)
10832 module_cmds=$lt_module_cmds
10833 module_expsym_cmds=$lt_module_expsym_cmds
10835 # Commands to strip libraries.
10836 old_striplib=$lt_old_striplib
10837 striplib=$lt_striplib
10839 # Dependencies to place before the objects being linked to create a
10841 predep_objects=$lt_predep_objects
10843 # Dependencies to place after the objects being linked to create a
10845 postdep_objects=$lt_postdep_objects
10847 # Dependencies to place before the objects being linked to create a
10849 predeps=$lt_predeps
10851 # Dependencies to place after the objects being linked to create a
10853 postdeps=$lt_postdeps
10855 # The library search path used internally by the compiler when linking
10856 # a shared library.
10857 compiler_lib_search_path=$lt_compiler_lib_search_path
10859 # Method to check whether dependent libraries are shared objects.
10860 deplibs_check_method=$lt_deplibs_check_method
10862 # Command to use when deplibs_check_method == file_magic.
10863 file_magic_cmd=$lt_file_magic_cmd
10865 # Flag that allows shared libraries with undefined symbols to be built.
10866 allow_undefined_flag=$lt_allow_undefined_flag
10868 # Flag that forces no undefined symbols.
10869 no_undefined_flag=$lt_no_undefined_flag
10871 # Commands used to finish a libtool library installation in a directory.
10872 finish_cmds=$lt_finish_cmds
10874 # Same as above, but a single script fragment to be evaled but not shown.
10875 finish_eval=$lt_finish_eval
10877 # Take the output of nm and produce a listing of raw symbols and C names.
10878 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10880 # Transform the output of nm in a proper C declaration
10881 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10883 # Transform the output of nm in a C name address pair
10884 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10886 # This is the shared library runtime path variable.
10887 runpath_var=$runpath_var
10889 # This is the shared library path variable.
10890 shlibpath_var=$shlibpath_var
10892 # Is shlibpath searched before the hard-coded library search path?
10893 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10895 # How to hardcode a shared library path into an executable.
10896 hardcode_action=$hardcode_action
10898 # Whether we should hardcode library paths into libraries.
10899 hardcode_into_libs=$hardcode_into_libs
10901 # Flag to hardcode \$libdir into a binary during linking.
10902 # This must work even if \$libdir does not exist.
10903 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10905 # If ld is used when linking, flag to hardcode \$libdir into
10906 # a binary during linking. This must work even if \$libdir does
10908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10910 # Whether we need a single -rpath flag with a separated argument.
10911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10913 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10914 # resulting binary.
10915 hardcode_direct=$hardcode_direct
10917 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10918 # resulting binary.
10919 hardcode_minus_L=$hardcode_minus_L
10921 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10922 # the resulting binary.
10923 hardcode_shlibpath_var=$hardcode_shlibpath_var
10925 # Set to yes if building a shared library automatically hardcodes DIR into the library
10926 # and all subsequent libraries and executables linked against it.
10927 hardcode_automatic=$hardcode_automatic
10929 # Variables whose values should be saved in libtool wrapper scripts and
10930 # restored at relink time.
10931 variables_saved_for_relink="$variables_saved_for_relink"
10933 # Whether libtool must link a program against all its dependency libraries.
10934 link_all_deplibs=$link_all_deplibs
10936 # Compile-time system search path for libraries
10937 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10939 # Run-time system search path for libraries
10940 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10942 # Fix the shell variable \$srcfile for the compiler.
10943 fix_srcfile_path="$fix_srcfile_path"
10945 # Set to yes if exported symbols are required.
10946 always_export_symbols=$always_export_symbols
10948 # The commands to list exported symbols.
10949 export_symbols_cmds=$lt_export_symbols_cmds
10951 # The commands to extract the exported symbol list from a shared archive.
10952 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10954 # Symbols that should not be listed in the preloaded symbols.
10955 exclude_expsyms=$lt_exclude_expsyms
10957 # Symbols that must always be exported.
10958 include_expsyms=$lt_include_expsyms
10960 # ### END LIBTOOL CONFIG
10967 cat <<\EOF >> "$cfgfile"
10969 # AIX sometimes has problems with the GCC collect2 program. For some
10970 # reason, if we set the COLLECT_NAMES environment variable, the problems
10971 # vanish in a puff of smoke.
10972 if test "X${COLLECT_NAMES+set}" != Xset; then
10974 export COLLECT_NAMES
10980 # We use sed instead of cat because bash on DJGPP gets confused if
10981 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10982 # text mode, it properly converts lines to CR/LF. This bash problem
10983 # is reportedly fixed, but why not run on old versions too?
10984 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10986 mv -f "$cfgfile" "$ofile" || \
10987 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10991 # If there is no Makefile yet, we rely on a make rule to execute
10992 # `config.status --recheck' to rerun these tests and create the
10993 # libtool script then.
10994 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10995 if test -f "$ltmain_in"; then
10996 test -f Makefile && make "$ltmain"
11002 ac_cpp='$CPP $CPPFLAGS'
11003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11010 # Check whether --with-tags or --without-tags was given.
11011 if test "${with_tags+set}" = set; then
11012 withval="$with_tags"
11013 tagnames="$withval"
11016 if test -f "$ltmain" && test -n "$tagnames"; then
11017 if test ! -f "${ofile}"; then
11018 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11019 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11022 if test -z "$LTCC"; then
11023 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11024 if test -z "$LTCC"; then
11025 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11026 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11029 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11033 # Extract list of available tagged configurations in $ofile.
11034 # Note that this assumes the entire list is on one line.
11035 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038 for tagname in $tagnames; do
11040 # Check whether tagname contains only valid characters
11041 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11043 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11044 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11045 { (exit 1); exit 1; }; }
11049 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11051 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11052 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11053 { (exit 1); exit 1; }; }
11056 # Update the list of available tags.
11057 if test -n "$tagname"; then
11058 echo appending configuration tag \"$tagname\" to $ofile
11062 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11063 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11064 (test "X$CXX" != "Xg++"))) ; then
11072 if test -n "$F77" && test "X$F77" != "Xno"; then
11080 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11091 # Source file extension for RC test sources.
11094 # Object file extension for compiled RC test sources.
11098 # Code to be used in simple compile tests
11099 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11101 # Code to be used in simple link tests
11102 lt_simple_link_test_code="$lt_simple_compile_test_code"
11104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11106 # If no C compiler was specified, use CC.
11109 # Allow CC to be a program name with arguments.
11113 # save warnings/boilerplate of simple test code
11114 ac_outfile=conftest.$ac_objext
11115 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11116 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11117 _lt_compiler_boilerplate=`cat conftest.err`
11120 ac_outfile=conftest.$ac_objext
11121 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11122 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11123 _lt_linker_boilerplate=`cat conftest.err`
11127 # Allow CC to be a program name with arguments.
11132 for cc_temp in $compiler""; do
11134 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11135 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11140 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11142 lt_cv_prog_compiler_c_o_RC=yes
11144 # The else clause should only fire when bootstrapping the
11145 # libtool distribution, otherwise you forgot to ship ltmain.sh
11146 # with your package, and you will get complaints that there are
11147 # no rules to generate ltmain.sh.
11148 if test -f "$ltmain"; then
11149 # See if we are running on zsh, and set the options which allow our commands through
11150 # without removal of \ escapes.
11151 if test -n "${ZSH_VERSION+set}" ; then
11152 setopt NO_GLOB_SUBST
11154 # Now quote all the things that may contain metacharacters while being
11155 # careful not to overquote the AC_SUBSTed values. We take copies of the
11156 # variables and quote the copies for generation of the libtool script.
11157 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11159 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11160 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11161 deplibs_check_method reload_flag reload_cmds need_locks \
11162 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11163 lt_cv_sys_global_symbol_to_c_name_address \
11164 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11165 old_postinstall_cmds old_postuninstall_cmds \
11169 lt_prog_compiler_wl_RC \
11170 lt_prog_compiler_pic_RC \
11171 lt_prog_compiler_static_RC \
11172 lt_prog_compiler_no_builtin_flag_RC \
11173 export_dynamic_flag_spec_RC \
11174 thread_safe_flag_spec_RC \
11175 whole_archive_flag_spec_RC \
11176 enable_shared_with_static_runtimes_RC \
11177 old_archive_cmds_RC \
11178 old_archive_from_new_cmds_RC \
11179 predep_objects_RC \
11180 postdep_objects_RC \
11183 compiler_lib_search_path_RC \
11185 archive_expsym_cmds_RC \
11186 postinstall_cmds_RC \
11187 postuninstall_cmds_RC \
11188 old_archive_from_expsyms_cmds_RC \
11189 allow_undefined_flag_RC \
11190 no_undefined_flag_RC \
11191 export_symbols_cmds_RC \
11192 hardcode_libdir_flag_spec_RC \
11193 hardcode_libdir_flag_spec_ld_RC \
11194 hardcode_libdir_separator_RC \
11195 hardcode_automatic_RC \
11197 module_expsym_cmds_RC \
11198 lt_cv_prog_compiler_c_o_RC \
11199 exclude_expsyms_RC \
11200 include_expsyms_RC; do
11203 old_archive_cmds_RC | \
11204 old_archive_from_new_cmds_RC | \
11205 archive_cmds_RC | \
11206 archive_expsym_cmds_RC | \
11208 module_expsym_cmds_RC | \
11209 old_archive_from_expsyms_cmds_RC | \
11210 export_symbols_cmds_RC | \
11211 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11212 postinstall_cmds | postuninstall_cmds | \
11213 old_postinstall_cmds | old_postuninstall_cmds | \
11214 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11215 # Double-quote double-evaled strings.
11216 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11219 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11225 *'\$0 --fallback-echo"')
11226 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11232 cat <<__EOF__ >> "$cfgfile"
11233 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11235 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11237 # Shell to use when invoking shell scripts.
11240 # Whether or not to build shared libraries.
11241 build_libtool_libs=$enable_shared
11243 # Whether or not to build static libraries.
11244 build_old_libs=$enable_static
11246 # Whether or not to add -lc for building shared libraries.
11247 build_libtool_need_lc=$archive_cmds_need_lc_RC
11249 # Whether or not to disallow shared libs when runtime libs are static
11250 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11252 # Whether or not to optimize for fast installation.
11253 fast_install=$enable_fast_install
11256 host_alias=$host_alias
11260 # The build system.
11261 build_alias=$build_alias
11265 # An echo program that does not interpret backslashes.
11270 AR_FLAGS=$lt_AR_FLAGS
11275 # A language-specific compiler.
11278 # Is the compiler the GNU C compiler?
11284 # The linker used to build libraries.
11287 # Whether we need hard or soft links.
11290 # A BSD-compatible nm program.
11293 # A symbol stripping program
11296 # Used to examine libraries when file_magic_cmd begins "file"
11297 MAGIC_CMD=$MAGIC_CMD
11299 # Used on cygwin: DLL creation program.
11302 # Used on cygwin: object dumper.
11305 # Used on cygwin: assembler.
11308 # The name of the directory that contains temporary libtool files.
11311 # How to create reloadable object files.
11312 reload_flag=$lt_reload_flag
11313 reload_cmds=$lt_reload_cmds
11315 # How to pass a linker flag through the compiler.
11316 wl=$lt_lt_prog_compiler_wl_RC
11318 # Object file suffix (normally "o").
11319 objext="$ac_objext"
11321 # Old archive suffix (normally "a").
11324 # Shared library suffix (normally ".so").
11325 shrext_cmds='$shrext_cmds'
11327 # Executable file suffix (normally "").
11330 # Additional compiler flags for building library objects.
11331 pic_flag=$lt_lt_prog_compiler_pic_RC
11334 # What is the maximum length of a command?
11335 max_cmd_len=$lt_cv_sys_max_cmd_len
11337 # Does compiler simultaneously support -c and -o options?
11338 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11340 # Must we lock files when doing compilation?
11341 need_locks=$lt_need_locks
11343 # Do we need the lib prefix for modules?
11344 need_lib_prefix=$need_lib_prefix
11346 # Do we need a version for libraries?
11347 need_version=$need_version
11349 # Whether dlopen is supported.
11350 dlopen_support=$enable_dlopen
11352 # Whether dlopen of programs is supported.
11353 dlopen_self=$enable_dlopen_self
11355 # Whether dlopen of statically linked programs is supported.
11356 dlopen_self_static=$enable_dlopen_self_static
11358 # Compiler flag to prevent dynamic linking.
11359 link_static_flag=$lt_lt_prog_compiler_static_RC
11361 # Compiler flag to turn off builtin functions.
11362 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11364 # Compiler flag to allow reflexive dlopens.
11365 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11367 # Compiler flag to generate shared objects directly from archives.
11368 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11370 # Compiler flag to generate thread-safe objects.
11371 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11373 # Library versioning type.
11374 version_type=$version_type
11376 # Format of library name prefix.
11377 libname_spec=$lt_libname_spec
11379 # List of archive names. First name is the real one, the rest are links.
11380 # The last name is the one that the linker finds with -lNAME.
11381 library_names_spec=$lt_library_names_spec
11383 # The coded name of the library, if different from the real name.
11384 soname_spec=$lt_soname_spec
11386 # Commands used to build and install an old-style archive.
11388 old_archive_cmds=$lt_old_archive_cmds_RC
11389 old_postinstall_cmds=$lt_old_postinstall_cmds
11390 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11392 # Create an old-style archive from a shared archive.
11393 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11395 # Create a temporary old-style archive to link instead of a shared archive.
11396 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11398 # Commands used to build and install a shared archive.
11399 archive_cmds=$lt_archive_cmds_RC
11400 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11401 postinstall_cmds=$lt_postinstall_cmds
11402 postuninstall_cmds=$lt_postuninstall_cmds
11404 # Commands used to build a loadable module (assumed same as above if empty)
11405 module_cmds=$lt_module_cmds_RC
11406 module_expsym_cmds=$lt_module_expsym_cmds_RC
11408 # Commands to strip libraries.
11409 old_striplib=$lt_old_striplib
11410 striplib=$lt_striplib
11412 # Dependencies to place before the objects being linked to create a
11414 predep_objects=$lt_predep_objects_RC
11416 # Dependencies to place after the objects being linked to create a
11418 postdep_objects=$lt_postdep_objects_RC
11420 # Dependencies to place before the objects being linked to create a
11422 predeps=$lt_predeps_RC
11424 # Dependencies to place after the objects being linked to create a
11426 postdeps=$lt_postdeps_RC
11428 # The library search path used internally by the compiler when linking
11429 # a shared library.
11430 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11432 # Method to check whether dependent libraries are shared objects.
11433 deplibs_check_method=$lt_deplibs_check_method
11435 # Command to use when deplibs_check_method == file_magic.
11436 file_magic_cmd=$lt_file_magic_cmd
11438 # Flag that allows shared libraries with undefined symbols to be built.
11439 allow_undefined_flag=$lt_allow_undefined_flag_RC
11441 # Flag that forces no undefined symbols.
11442 no_undefined_flag=$lt_no_undefined_flag_RC
11444 # Commands used to finish a libtool library installation in a directory.
11445 finish_cmds=$lt_finish_cmds
11447 # Same as above, but a single script fragment to be evaled but not shown.
11448 finish_eval=$lt_finish_eval
11450 # Take the output of nm and produce a listing of raw symbols and C names.
11451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11453 # Transform the output of nm in a proper C declaration
11454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11456 # Transform the output of nm in a C name address pair
11457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11459 # This is the shared library runtime path variable.
11460 runpath_var=$runpath_var
11462 # This is the shared library path variable.
11463 shlibpath_var=$shlibpath_var
11465 # Is shlibpath searched before the hard-coded library search path?
11466 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11468 # How to hardcode a shared library path into an executable.
11469 hardcode_action=$hardcode_action_RC
11471 # Whether we should hardcode library paths into libraries.
11472 hardcode_into_libs=$hardcode_into_libs
11474 # Flag to hardcode \$libdir into a binary during linking.
11475 # This must work even if \$libdir does not exist.
11476 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11478 # If ld is used when linking, flag to hardcode \$libdir into
11479 # a binary during linking. This must work even if \$libdir does
11481 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11483 # Whether we need a single -rpath flag with a separated argument.
11484 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11486 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11487 # resulting binary.
11488 hardcode_direct=$hardcode_direct_RC
11490 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11491 # resulting binary.
11492 hardcode_minus_L=$hardcode_minus_L_RC
11494 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11495 # the resulting binary.
11496 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11498 # Set to yes if building a shared library automatically hardcodes DIR into the library
11499 # and all subsequent libraries and executables linked against it.
11500 hardcode_automatic=$hardcode_automatic_RC
11502 # Variables whose values should be saved in libtool wrapper scripts and
11503 # restored at relink time.
11504 variables_saved_for_relink="$variables_saved_for_relink"
11506 # Whether libtool must link a program against all its dependency libraries.
11507 link_all_deplibs=$link_all_deplibs_RC
11509 # Compile-time system search path for libraries
11510 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11512 # Run-time system search path for libraries
11513 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11515 # Fix the shell variable \$srcfile for the compiler.
11516 fix_srcfile_path="$fix_srcfile_path_RC"
11518 # Set to yes if exported symbols are required.
11519 always_export_symbols=$always_export_symbols_RC
11521 # The commands to list exported symbols.
11522 export_symbols_cmds=$lt_export_symbols_cmds_RC
11524 # The commands to extract the exported symbol list from a shared archive.
11525 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11527 # Symbols that should not be listed in the preloaded symbols.
11528 exclude_expsyms=$lt_exclude_expsyms_RC
11530 # Symbols that must always be exported.
11531 include_expsyms=$lt_include_expsyms_RC
11533 # ### END LIBTOOL TAG CONFIG: $tagname
11539 # If there is no Makefile yet, we rely on a make rule to execute
11540 # `config.status --recheck' to rerun these tests and create the
11541 # libtool script then.
11542 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11543 if test -f "$ltmain_in"; then
11544 test -f Makefile && make "$ltmain"
11550 ac_cpp='$CPP $CPPFLAGS'
11551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
11561 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
11562 { (exit 1); exit 1; }; }
11566 # Append the new tag name to the list of available tags.
11567 if test -n "$tagname" ; then
11568 available_tags="$available_tags $tagname"
11574 # Now substitute the updated list of available tags.
11575 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
11576 mv "${ofile}T" "$ofile"
11580 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
11581 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
11582 { (exit 1); exit 1; }; }
11588 # This can be used to rebuild libtool when needed
11589 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11591 # Always use our own libtool.
11592 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11594 # Prevent multiple expansion
11606 if test $ol_enable_perl != no ; then
11607 # Extract the first word of "perl", so it can be a program name with args.
11608 set dummy perl; ac_word=$2
11609 echo "$as_me:$LINENO: checking for $ac_word" >&5
11610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11611 if test "${ac_cv_path_PERLBIN+set}" = set; then
11612 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620 for as_dir in $PATH
11623 test -z "$as_dir" && as_dir=.
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11626 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
11627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
11637 PERLBIN=$ac_cv_path_PERLBIN
11639 if test -n "$PERLBIN"; then
11640 echo "$as_me:$LINENO: result: $PERLBIN" >&5
11641 echo "${ECHO_T}$PERLBIN" >&6
11643 echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6
11648 if test "no$PERLBIN" = "no" ; then
11649 if test $ol_enable_perl = yes ; then
11650 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
11651 echo "$as_me: error: could not locate perl" >&2;}
11652 { (exit 1); exit 1; }; }
11656 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
11657 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
11659 if test x"$ol_enable_perl" = "xyes" ; then
11660 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
11662 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
11669 ac_cpp='$CPP $CPPFLAGS'
11670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11673 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11674 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11675 # On Suns, sometimes $CPP names a directory.
11676 if test -n "$CPP" && test -d "$CPP"; then
11679 if test -z "$CPP"; then
11680 if test "${ac_cv_prog_CPP+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 # Double quotes because CPP needs to be expanded
11684 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11686 ac_preproc_ok=false
11687 for ac_c_preproc_warn_flag in '' yes
11689 # Use a header file that comes with gcc, so configuring glibc
11690 # with a fresh cross-compiler works.
11691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11692 # <limits.h> exists even on freestanding compilers.
11693 # On the NeXT, cc -E runs the code through the compiler's parser,
11694 # not just through cpp. "Syntax error" is here to catch this case.
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11702 # include <limits.h>
11704 # include <assert.h>
11708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11711 grep -v '^ *+' conftest.er1 >conftest.err
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev/null; then
11716 if test -s conftest.err; then
11717 ac_cpp_err=$ac_c_preproc_warn_flag
11718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11725 if test -z "$ac_cpp_err"; then
11728 echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11731 # Broken: fails on valid input.
11734 rm -f conftest.err conftest.$ac_ext
11736 # OK, works on sane cases. Now check whether non-existent headers
11737 # can be detected and how.
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <ac_nonexistent.h>
11746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11747 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11749 grep -v '^ *+' conftest.er1 >conftest.err
11751 cat conftest.err >&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); } >/dev/null; then
11754 if test -s conftest.err; then
11755 ac_cpp_err=$ac_c_preproc_warn_flag
11756 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11763 if test -z "$ac_cpp_err"; then
11764 # Broken: success on invalid input.
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 # Passes both tests.
11774 rm -f conftest.err conftest.$ac_ext
11777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11778 rm -f conftest.err conftest.$ac_ext
11779 if $ac_preproc_ok; then
11784 ac_cv_prog_CPP=$CPP
11787 CPP=$ac_cv_prog_CPP
11789 ac_cv_prog_CPP=$CPP
11791 echo "$as_me:$LINENO: result: $CPP" >&5
11792 echo "${ECHO_T}$CPP" >&6
11793 ac_preproc_ok=false
11794 for ac_c_preproc_warn_flag in '' yes
11796 # Use a header file that comes with gcc, so configuring glibc
11797 # with a fresh cross-compiler works.
11798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11799 # <limits.h> exists even on freestanding compilers.
11800 # On the NeXT, cc -E runs the code through the compiler's parser,
11801 # not just through cpp. "Syntax error" is here to catch this case.
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11809 # include <limits.h>
11811 # include <assert.h>
11815 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } >/dev/null; then
11823 if test -s conftest.err; then
11824 ac_cpp_err=$ac_c_preproc_warn_flag
11825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11832 if test -z "$ac_cpp_err"; then
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 # Broken: fails on valid input.
11841 rm -f conftest.err conftest.$ac_ext
11843 # OK, works on sane cases. Now check whether non-existent headers
11844 # can be detected and how.
11845 cat >conftest.$ac_ext <<_ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <ac_nonexistent.h>
11853 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11854 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11856 grep -v '^ *+' conftest.er1 >conftest.err
11858 cat conftest.err >&5
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); } >/dev/null; then
11861 if test -s conftest.err; then
11862 ac_cpp_err=$ac_c_preproc_warn_flag
11863 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11870 if test -z "$ac_cpp_err"; then
11871 # Broken: success on invalid input.
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 # Passes both tests.
11881 rm -f conftest.err conftest.$ac_ext
11884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11885 rm -f conftest.err conftest.$ac_ext
11886 if $ac_preproc_ok; then
11889 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11890 See \`config.log' for more details." >&5
11891 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11892 See \`config.log' for more details." >&2;}
11893 { (exit 1); exit 1; }; }
11897 ac_cpp='$CPP $CPPFLAGS'
11898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11902 echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
11903 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6
11904 if test "${ol_cv_msvc+set}" = set; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11915 #include <__FOO__/generate_error.h>
11919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } >/dev/null; then
11927 if test -s conftest.err; then
11928 ac_cpp_err=$ac_c_preproc_warn_flag
11929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11936 if test -z "$ac_cpp_err"; then
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11944 rm -f conftest.err conftest.$ac_ext
11946 echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
11947 echo "${ECHO_T}$ol_cv_msvc" >&6
11950 *mingw32* ) ac_cv_mingw32=yes ;;
11951 *cygwin* ) ac_cv_cygwin=yes ;;
11952 *interix* ) ac_cv_interix=yes ;;
11958 cat >>confdefs.h <<_ACEOF
11959 #define EXEEXT "${EXEEXT}"
11963 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
11964 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
11965 if test "${ac_cv_lib_be_be_app+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 ac_check_lib_save_LIBS=$LIBS
11969 LIBS="-lbe -lroot -lnet $LIBS"
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 /* Override any gcc2 internal prototype to avoid an error. */
11981 /* We use char because int might match the return type of a gcc2
11982 builtin and then its argument prototype would still apply. */
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11994 (eval $ac_link) 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -z "$ac_c_werror_flag"
12002 || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 ac_cv_lib_be_be_app=yes
12016 echo "$as_me: failed program was:" >&5
12017 sed 's/^/| /' conftest.$ac_ext >&5
12019 ac_cv_lib_be_be_app=no
12021 rm -f conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LIBS=$ac_check_lib_save_LIBS
12025 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12026 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
12027 if test $ac_cv_lib_be_be_app = yes; then
12028 LIBS="$LIBS -lbe -lroot -lnet"
12035 ac_cpp='$CPP $CPPFLAGS'
12036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12039 if test -n "$ac_tool_prefix"; then
12040 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12041 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12042 echo "$as_me:$LINENO: checking for $ac_word" >&5
12043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12044 if test "${ac_cv_prog_CC+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 if test -n "$CC"; then
12048 ac_cv_prog_CC="$CC" # Let the user override the test.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12067 if test -n "$CC"; then
12068 echo "$as_me:$LINENO: result: $CC" >&5
12069 echo "${ECHO_T}$CC" >&6
12071 echo "$as_me:$LINENO: result: no" >&5
12072 echo "${ECHO_T}no" >&6
12076 if test -z "$ac_cv_prog_CC"; then
12078 # Extract the first word of "gcc", so it can be a program name with args.
12079 set dummy gcc; ac_word=$2
12080 echo "$as_me:$LINENO: checking for $ac_word" >&5
12081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 if test -n "$ac_ct_CC"; then
12086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095 ac_cv_prog_ac_ct_CC="gcc"
12096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12104 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12105 if test -n "$ac_ct_CC"; then
12106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12107 echo "${ECHO_T}$ac_ct_CC" >&6
12109 echo "$as_me:$LINENO: result: no" >&5
12110 echo "${ECHO_T}no" >&6
12115 CC="$ac_cv_prog_CC"
12118 if test -z "$CC"; then
12119 if test -n "$ac_tool_prefix"; then
12120 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12121 set dummy ${ac_tool_prefix}cc; ac_word=$2
12122 echo "$as_me:$LINENO: checking for $ac_word" >&5
12123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12124 if test "${ac_cv_prog_CC+set}" = set; then
12125 echo $ECHO_N "(cached) $ECHO_C" >&6
12127 if test -n "$CC"; then
12128 ac_cv_prog_CC="$CC" # Let the user override the test.
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131 for as_dir in $PATH
12134 test -z "$as_dir" && as_dir=.
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12137 ac_cv_prog_CC="${ac_tool_prefix}cc"
12138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 if test -n "$CC"; then
12148 echo "$as_me:$LINENO: result: $CC" >&5
12149 echo "${ECHO_T}$CC" >&6
12151 echo "$as_me:$LINENO: result: no" >&5
12152 echo "${ECHO_T}no" >&6
12156 if test -z "$ac_cv_prog_CC"; then
12158 # Extract the first word of "cc", so it can be a program name with args.
12159 set dummy cc; ac_word=$2
12160 echo "$as_me:$LINENO: checking for $ac_word" >&5
12161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 if test -n "$ac_ct_CC"; then
12166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12169 for as_dir in $PATH
12172 test -z "$as_dir" && as_dir=.
12173 for ac_exec_ext in '' $ac_executable_extensions; do
12174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12175 ac_cv_prog_ac_ct_CC="cc"
12176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12184 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12185 if test -n "$ac_ct_CC"; then
12186 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12187 echo "${ECHO_T}$ac_ct_CC" >&6
12189 echo "$as_me:$LINENO: result: no" >&5
12190 echo "${ECHO_T}no" >&6
12195 CC="$ac_cv_prog_CC"
12199 if test -z "$CC"; then
12200 # Extract the first word of "cc", so it can be a program name with args.
12201 set dummy cc; ac_word=$2
12202 echo "$as_me:$LINENO: checking for $ac_word" >&5
12203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12204 if test "${ac_cv_prog_CC+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12207 if test -n "$CC"; then
12208 ac_cv_prog_CC="$CC" # Let the user override the test.
12210 ac_prog_rejected=no
12211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212 for as_dir in $PATH
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12218 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12219 ac_prog_rejected=yes
12223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12229 if test $ac_prog_rejected = yes; then
12230 # We found a bogon in the path, so make sure we never use it.
12231 set dummy $ac_cv_prog_CC
12233 if test $# != 0; then
12234 # We chose a different compiler from the bogus one.
12235 # However, it has the same basename, so the bogon will be chosen
12236 # first if we set CC to just the basename; use the full file name.
12238 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12244 if test -n "$CC"; then
12245 echo "$as_me:$LINENO: result: $CC" >&5
12246 echo "${ECHO_T}$CC" >&6
12248 echo "$as_me:$LINENO: result: no" >&5
12249 echo "${ECHO_T}no" >&6
12253 if test -z "$CC"; then
12254 if test -n "$ac_tool_prefix"; then
12257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12258 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12259 echo "$as_me:$LINENO: checking for $ac_word" >&5
12260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12261 if test "${ac_cv_prog_CC+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 if test -n "$CC"; then
12265 ac_cv_prog_CC="$CC" # Let the user override the test.
12267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268 for as_dir in $PATH
12271 test -z "$as_dir" && as_dir=.
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 if test -n "$CC"; then
12285 echo "$as_me:$LINENO: result: $CC" >&5
12286 echo "${ECHO_T}$CC" >&6
12288 echo "$as_me:$LINENO: result: no" >&5
12289 echo "${ECHO_T}no" >&6
12292 test -n "$CC" && break
12295 if test -z "$CC"; then
12299 # Extract the first word of "$ac_prog", so it can be a program name with args.
12300 set dummy $ac_prog; ac_word=$2
12301 echo "$as_me:$LINENO: checking for $ac_word" >&5
12302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 if test -n "$ac_ct_CC"; then
12307 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12313 test -z "$as_dir" && as_dir=.
12314 for ac_exec_ext in '' $ac_executable_extensions; do
12315 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12316 ac_cv_prog_ac_ct_CC="$ac_prog"
12317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12325 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12326 if test -n "$ac_ct_CC"; then
12327 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12328 echo "${ECHO_T}$ac_ct_CC" >&6
12330 echo "$as_me:$LINENO: result: no" >&5
12331 echo "${ECHO_T}no" >&6
12334 test -n "$ac_ct_CC" && break
12343 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12344 See \`config.log' for more details." >&5
12345 echo "$as_me: error: no acceptable C compiler found in \$PATH
12346 See \`config.log' for more details." >&2;}
12347 { (exit 1); exit 1; }; }
12349 # Provide some information about the compiler.
12350 echo "$as_me:$LINENO:" \
12351 "checking for C compiler version" >&5
12352 ac_compiler=`set X $ac_compile; echo $2`
12353 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12354 (eval $ac_compiler --version </dev/null >&5) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }
12358 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12359 (eval $ac_compiler -v </dev/null >&5) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }
12363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12364 (eval $ac_compiler -V </dev/null >&5) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }
12369 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12370 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12371 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12392 rm -f conftest.$ac_objext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12394 (eval $ac_compile) 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 ac_compiler_gnu=yes
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12425 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12427 GCC=`test $ac_compiler_gnu = yes && echo yes`
12428 ac_test_CFLAGS=${CFLAGS+set}
12429 ac_save_CFLAGS=$CFLAGS
12431 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12432 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12433 if test "${ac_cv_prog_cc_g+set}" = set; then
12434 echo $ECHO_N "(cached) $ECHO_C" >&6
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12451 rm -f conftest.$ac_objext
12452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12453 (eval $ac_compile) 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } &&
12460 { ac_try='test -z "$ac_c_werror_flag"
12461 || test ! -s conftest.err'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; } &&
12467 { ac_try='test -s conftest.$ac_objext'
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; }; then
12473 ac_cv_prog_cc_g=yes
12475 echo "$as_me: failed program was:" >&5
12476 sed 's/^/| /' conftest.$ac_ext >&5
12480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12483 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12484 if test "$ac_test_CFLAGS" = set; then
12485 CFLAGS=$ac_save_CFLAGS
12486 elif test $ac_cv_prog_cc_g = yes; then
12487 if test "$GCC" = yes; then
12493 if test "$GCC" = yes; then
12499 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12500 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12501 if test "${ac_cv_prog_cc_stdc+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 ac_cv_prog_cc_stdc=no
12506 cat >conftest.$ac_ext <<_ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 #include <stdarg.h>
12514 #include <sys/types.h>
12515 #include <sys/stat.h>
12516 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12517 struct buf { int x; };
12518 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12519 static char *e (p, i)
12525 static char *f (char * (*g) (char **, int), char **p, ...)
12530 s = g (p, va_arg (v,int));
12535 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12536 function prototypes and stuff, but not '\xHH' hex character constants.
12537 These don't provoke an error unfortunately, instead are silently treated
12538 as 'x'. The following induces an error, until -std1 is added to get
12539 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12540 array size at least. It's necessary to write '\x00'==0 to get something
12541 that's true only with -std1. */
12542 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12544 int test (int i, double x);
12545 struct s1 {int (*f) (int a);};
12546 struct s2 {int (*f) (double a);};
12547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12553 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12558 # Don't try gcc -ansi; that turns off useful extensions and
12559 # breaks some systems' header files.
12560 # AIX -qlanglvl=ansi
12561 # Ultrix and OSF/1 -std1
12562 # HP-UX 10.20 and later -Ae
12563 # HP-UX older versions -Aa -D_HPUX_SOURCE
12564 # SVR4 -Xc -D__EXTENSIONS__
12565 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12567 CC="$ac_save_CC $ac_arg"
12568 rm -f conftest.$ac_objext
12569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12570 (eval $ac_compile) 2>conftest.er1
12572 grep -v '^ *+' conftest.er1 >conftest.err
12574 cat conftest.err >&5
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); } &&
12577 { ac_try='test -z "$ac_c_werror_flag"
12578 || test ! -s conftest.err'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_prog_cc_stdc=$ac_arg
12593 echo "$as_me: failed program was:" >&5
12594 sed 's/^/| /' conftest.$ac_ext >&5
12597 rm -f conftest.err conftest.$ac_objext
12599 rm -f conftest.$ac_ext conftest.$ac_objext
12604 case "x$ac_cv_prog_cc_stdc" in
12606 echo "$as_me:$LINENO: result: none needed" >&5
12607 echo "${ECHO_T}none needed" >&6 ;;
12609 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12610 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12611 CC="$CC $ac_cv_prog_cc_stdc" ;;
12614 # Some people use a C++ compiler to compile C. Since we use `exit',
12615 # in C++ we need to declare it. In case someone uses the same compiler
12616 # for both compiling C and C++ we need to have the C++ compiler decide
12617 # the declaration of exit, since it's the most demanding environment.
12618 cat >conftest.$ac_ext <<_ACEOF
12619 #ifndef __cplusplus
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>conftest.er1
12627 grep -v '^ *+' conftest.er1 >conftest.err
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -z "$ac_c_werror_flag"
12633 || test ! -s conftest.err'
12634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12635 (eval $ac_try) 2>&5
12637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638 (exit $ac_status); }; } &&
12639 { ac_try='test -s conftest.$ac_objext'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; }; then
12645 for ac_declaration in \
12647 'extern "C" void std::exit (int) throw (); using std::exit;' \
12648 'extern "C" void std::exit (int); using std::exit;' \
12649 'extern "C" void exit (int) throw ();' \
12650 'extern "C" void exit (int);' \
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12660 #include <stdlib.h>
12669 rm -f conftest.$ac_objext
12670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12671 (eval $ac_compile) 2>conftest.er1
12673 grep -v '^ *+' conftest.er1 >conftest.err
12675 cat conftest.err >&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); } &&
12678 { ac_try='test -z "$ac_c_werror_flag"
12679 || test ! -s conftest.err'
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
12693 echo "$as_me: failed program was:" >&5
12694 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12699 cat >conftest.$ac_ext <<_ACEOF
12702 cat confdefs.h >>conftest.$ac_ext
12703 cat >>conftest.$ac_ext <<_ACEOF
12704 /* end confdefs.h. */
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>conftest.er1
12718 grep -v '^ *+' conftest.er1 >conftest.err
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } &&
12723 { ac_try='test -z "$ac_c_werror_flag"
12724 || test ! -s conftest.err'
12725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12726 (eval $ac_try) 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; } &&
12730 { ac_try='test -s conftest.$ac_objext'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; }; then
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12745 if test -n "$ac_declaration"; then
12746 echo '#ifdef __cplusplus' >>confdefs.h
12747 echo $ac_declaration >>confdefs.h
12748 echo '#endif' >>confdefs.h
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12758 ac_cpp='$CPP $CPPFLAGS'
12759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12763 depcc="$CC" am_compiler_list=
12765 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12766 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12767 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12770 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12771 # We make a subdir and do the tests there. Otherwise we can end up
12772 # making bogus files that we don't know about and never remove. For
12773 # instance it was reported that on HP-UX the gcc test will end up
12774 # making a dummy file named `D' -- because `-MD' means `put the output
12777 # Copy depcomp to subdir because otherwise we won't find it if we're
12778 # using a relative directory.
12779 cp "$am_depcomp" conftest.dir
12781 # We will build objects and dependencies in a subdirectory because
12782 # it helps to detect inapplicable dependency modes. For instance
12783 # both Tru64's cc and ICC support -MD to output dependencies as a
12784 # side effect of compilation, but ICC will put the dependencies in
12785 # the current directory while Tru64 will put them in the object
12789 am_cv_CC_dependencies_compiler_type=none
12790 if test "$am_compiler_list" = ""; then
12791 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12793 for depmode in $am_compiler_list; do
12794 # Setup a source with many dependencies, because some compilers
12795 # like to wrap large dependency lists on column 80 (with \), and
12796 # we should not choose a depcomp mode which is confused by this.
12798 # We need to recreate these files for each test, as the compiler may
12799 # overwrite some of them when testing with obscure command lines.
12800 # This happens at least with the AIX C compiler.
12802 for i in 1 2 3 4 5 6; do
12803 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12804 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12805 # Solaris 8's {/usr,}/bin/sh.
12806 touch sub/conftst$i.h
12808 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12812 # after this tag, mechanisms are not by side-effect, so they'll
12813 # only be used when explicitly requested
12814 if test "x$enable_dependency_tracking" = xyes; then
12822 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12823 # mode. It turns out that the SunPro C++ compiler does not properly
12824 # handle `-M -o', and we need to detect this.
12825 if depmode=$depmode \
12826 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12827 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12828 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12829 >/dev/null 2>conftest.err &&
12830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12831 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12833 # icc doesn't choke on unknown options, it will just issue warnings
12834 # or remarks (even with -Werror). So we grep stderr for any message
12835 # that says an option was ignored or not supported.
12836 # When given -MP, icc 7.0 and 7.1 complain thusly:
12837 # icc: Command line warning: ignoring option '-M'; no argument required
12838 # The diagnosis changed in icc 8.0:
12839 # icc: Command line remark: option '-MP' not supported
12840 if (grep 'ignoring option' conftest.err ||
12841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12842 am_cv_CC_dependencies_compiler_type=$depmode
12849 rm -rf conftest.dir
12851 am_cv_CC_dependencies_compiler_type=none
12855 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12856 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12862 test "x$enable_dependency_tracking" != xno \
12863 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12864 am__fastdepCC_TRUE=
12865 am__fastdepCC_FALSE='#'
12867 am__fastdepCC_TRUE='#'
12868 am__fastdepCC_FALSE=
12872 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
12873 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
12874 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
12875 { (exit 1); exit 1; }; }
12878 # test for make depend flag
12881 if test -z "${MKDEP}"; then
12882 OL_MKDEP="${CC-cc}"
12883 if test -z "${MKDEP_FLAGS}"; then
12884 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
12885 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
12886 if test "${ol_cv_mkdep+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 for flag in "-M" "-xM"; do
12892 cat > conftest.c <<EOF
12895 if { ac_try='$OL_MKDEP $flag conftest.c'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; } \
12901 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
12903 if test ! -f conftest."${ac_object}" ; then
12905 OL_MKDEP_FLAGS="$flag"
12913 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
12914 echo "${ECHO_T}$ol_cv_mkdep" >&6
12915 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
12918 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12922 OL_MKDEP="${MKDEP}"
12923 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
12928 if test "${ol_cv_mkdep}" = no ; then
12929 # this will soon become an error
12930 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
12931 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
12934 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
12935 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
12936 if test "${ac_cv_lib_s_afopen+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 ac_check_lib_save_LIBS=$LIBS
12941 cat >conftest.$ac_ext <<_ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12948 /* Override any gcc2 internal prototype to avoid an error. */
12952 /* We use char because int might match the return type of a gcc2
12953 builtin and then its argument prototype would still apply. */
12963 rm -f conftest.$ac_objext conftest$ac_exeext
12964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12965 (eval $ac_link) 2>conftest.er1
12967 grep -v '^ *+' conftest.er1 >conftest.err
12969 cat conftest.err >&5
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); } &&
12972 { ac_try='test -z "$ac_c_werror_flag"
12973 || test ! -s conftest.err'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; } &&
12979 { ac_try='test -s conftest$ac_exeext'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; }; then
12985 ac_cv_lib_s_afopen=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's/^/| /' conftest.$ac_ext >&5
12990 ac_cv_lib_s_afopen=no
12992 rm -f conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 LIBS=$ac_check_lib_save_LIBS
12996 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
12997 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
12998 if test $ac_cv_lib_s_afopen = yes; then
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_AIX_SECURITY 1
13012 ac_cv_func_getopt=no
13014 cat >>confdefs.h <<\_ACEOF
13015 #define BOTH_STRINGS_H 1
13022 WITH_MODULES_ENABLED=no
13023 if test $ol_enable_modules != no ; then
13025 for ac_header in ltdl.h
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13037 # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 #include <$ac_header>
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_header_compiler=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_compiler=no
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <$ac_header>
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev/null; then
13101 if test -s conftest.err; then
13102 ac_cpp_err=$ac_c_preproc_warn_flag
13103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13110 if test -z "$ac_cpp_err"; then
13111 ac_header_preproc=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_header_preproc=no
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc=yes
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13146 ## --------------------------------------------- ##
13147 ## Report this to <http://www.openldap.org/its/> ##
13148 ## --------------------------------------------- ##
13151 sed "s/^/$as_me: WARNING: /" >&2
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 eval "$as_ac_Header=\$ac_header_preproc"
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13175 if test $ac_cv_header_ltdl_h = no ; then
13176 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13177 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13178 { (exit 1); exit 1; }; }
13181 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13182 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
13183 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lltdl $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13195 /* Override any gcc2 internal prototype to avoid an error. */
13199 /* We use char because int might match the return type of a gcc2
13200 builtin and then its argument prototype would still apply. */
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13212 (eval $ac_link) 2>conftest.er1
13214 grep -v '^ *+' conftest.er1 >conftest.err
13216 cat conftest.err >&5
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); } &&
13219 { ac_try='test -z "$ac_c_werror_flag"
13220 || test ! -s conftest.err'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; } &&
13226 { ac_try='test -s conftest$ac_exeext'
13227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13228 (eval $ac_try) 2>&5
13230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13231 (exit $ac_status); }; }; then
13232 ac_cv_lib_ltdl_lt_dlinit=yes
13234 echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_lib_ltdl_lt_dlinit=no
13239 rm -f conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241 LIBS=$ac_check_lib_save_LIBS
13243 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13244 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
13245 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13247 MODULES_LIBS=-lltdl
13249 cat >>confdefs.h <<\_ACEOF
13250 #define HAVE_LIBLTDL 1
13257 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13258 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13259 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13260 { (exit 1); exit 1; }; }
13262 ol_link_modules=yes
13263 WITH_MODULES_ENABLED=yes
13266 for i in $Backends; do
13267 eval "ol_tmp=\$ol_enable_$i"
13268 if test $ol_tmp = mod ; then
13269 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13270 echo "$as_me: WARNING: building static $i backend" >&2;}
13271 eval "ol_enable_$i=yes"
13274 for i in $Overlays; do
13275 eval "ol_tmp=\$ol_enable_$i"
13276 if test $ol_tmp = mod ; then
13277 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13278 echo "$as_me: WARNING: building static $i overlay" >&2;}
13279 eval "ol_enable_$i=yes"
13285 echo "$as_me:$LINENO: checking for EBCDIC" >&5
13286 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
13287 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 cat >conftest.$ac_ext <<_ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13299 #include <__ASCII__/generate_error.h>
13303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13306 grep -v '^ *+' conftest.er1 >conftest.err
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } >/dev/null; then
13311 if test -s conftest.err; then
13312 ac_cpp_err=$ac_c_preproc_warn_flag
13313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13320 if test -z "$ac_cpp_err"; then
13321 ol_cv_cpp_ebcdic=yes
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13326 ol_cv_cpp_ebcdic=no
13328 rm -f conftest.err conftest.$ac_ext
13330 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
13331 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
13332 if test $ol_cv_cpp_ebcdic = yes ; then
13334 cat >>confdefs.h <<\_ACEOF
13335 #define HAVE_EBCDIC 1
13340 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13342 if test "${ol_cv_header_stdc+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 cat >conftest.$ac_ext <<_ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h. */
13351 #include <stdlib.h>
13352 #include <stdarg.h>
13353 #include <string.h>
13356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13359 grep -v '^ *+' conftest.er1 >conftest.err
13361 cat conftest.err >&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); } >/dev/null; then
13364 if test -s conftest.err; then
13365 ac_cpp_err=$ac_c_preproc_warn_flag
13366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13373 if test -z "$ac_cpp_err"; then
13374 ol_cv_header_stdc=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 ol_cv_header_stdc=no
13381 rm -f conftest.err conftest.$ac_ext
13383 if test $ol_cv_header_stdc = yes; then
13384 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13385 cat >conftest.$ac_ext <<_ACEOF
13388 cat confdefs.h >>conftest.$ac_ext
13389 cat >>conftest.$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13391 #include <string.h>
13394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13395 $EGREP "memchr" >/dev/null 2>&1; then
13398 ol_cv_header_stdc=no
13404 if test $ol_cv_header_stdc = yes; then
13405 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13406 cat >conftest.$ac_ext <<_ACEOF
13409 cat confdefs.h >>conftest.$ac_ext
13410 cat >>conftest.$ac_ext <<_ACEOF
13411 /* end confdefs.h. */
13412 #include <stdlib.h>
13415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13416 $EGREP "free" >/dev/null 2>&1; then
13419 ol_cv_header_stdc=no
13425 if test $ol_cv_header_stdc = yes; then
13426 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13427 if test "$cross_compiling" = yes; then
13430 cat >conftest.$ac_ext <<_ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 #ifndef HAVE_EBCDIC
13438 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13439 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13441 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13442 || ('j' <= (c) && (c) <= 'r') \
13443 || ('s' <= (c) && (c) <= 'z'))
13444 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13446 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13447 int main () { int i; for (i = 0; i < 256; i++)
13448 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13452 rm -f conftest$ac_exeext
13453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13454 (eval $ac_link) 2>&5
13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13465 echo "$as_me: program exited with status $ac_status" >&5
13466 echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13469 ( exit $ac_status )
13470 ol_cv_header_stdc=no
13472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13476 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
13477 echo "${ECHO_T}$ol_cv_header_stdc" >&6
13478 if test $ol_cv_header_stdc = yes; then
13479 cat >>confdefs.h <<\_ACEOF
13480 #define STDC_HEADERS 1
13484 ac_cv_header_stdc=disable
13487 if test $ol_cv_header_stdc != yes; then
13488 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
13489 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13497 ac_header_dirent=no
13498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13499 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13500 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13501 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #include <sys/types.h>
13523 rm -f conftest.$ac_objext
13524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13525 (eval $ac_compile) 2>conftest.er1
13527 grep -v '^ *+' conftest.er1 >conftest.err
13529 cat conftest.err >&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -z "$ac_c_werror_flag"
13533 || test ! -s conftest.err'
13534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535 (eval $ac_try) 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest.$ac_objext'
13540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13541 (eval $ac_try) 2>&5
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); }; }; then
13545 eval "$as_ac_Header=yes"
13547 echo "$as_me: failed program was:" >&5
13548 sed 's/^/| /' conftest.$ac_ext >&5
13550 eval "$as_ac_Header=no"
13552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13557 cat >>confdefs.h <<_ACEOF
13558 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13561 ac_header_dirent=$ac_hdr; break
13565 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13566 if test $ac_header_dirent = dirent.h; then
13567 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13568 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13569 if test "${ac_cv_search_opendir+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 ac_func_search_save_LIBS=$LIBS
13573 ac_cv_search_opendir=no
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13581 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13596 rm -f conftest.$ac_objext conftest$ac_exeext
13597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13598 (eval $ac_link) 2>conftest.er1
13600 grep -v '^ *+' conftest.er1 >conftest.err
13602 cat conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } &&
13605 { ac_try='test -z "$ac_c_werror_flag"
13606 || test ! -s conftest.err'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; } &&
13612 { ac_try='test -s conftest$ac_exeext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13618 ac_cv_search_opendir="none required"
13620 echo "$as_me: failed program was:" >&5
13621 sed 's/^/| /' conftest.$ac_ext >&5
13624 rm -f conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 if test "$ac_cv_search_opendir" = no; then
13627 for ac_lib in dir; do
13628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13636 /* Override any gcc2 internal prototype to avoid an error. */
13640 /* We use char because int might match the return type of a gcc2
13641 builtin and then its argument prototype would still apply. */
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>conftest.er1
13655 grep -v '^ *+' conftest.er1 >conftest.err
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } &&
13660 { ac_try='test -z "$ac_c_werror_flag"
13661 || test ! -s conftest.err'
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; } &&
13667 { ac_try='test -s conftest$ac_exeext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_search_opendir="-l$ac_lib"
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13680 rm -f conftest.err conftest.$ac_objext \
13681 conftest$ac_exeext conftest.$ac_ext
13684 LIBS=$ac_func_search_save_LIBS
13686 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13687 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13688 if test "$ac_cv_search_opendir" != no; then
13689 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13694 echo "$as_me:$LINENO: checking for library containing opendir" >&5
13695 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13696 if test "${ac_cv_search_opendir+set}" = set; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_func_search_save_LIBS=$LIBS
13700 ac_cv_search_opendir=no
13701 cat >conftest.$ac_ext <<_ACEOF
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13708 /* Override any gcc2 internal prototype to avoid an error. */
13712 /* We use char because int might match the return type of a gcc2
13713 builtin and then its argument prototype would still apply. */
13723 rm -f conftest.$ac_objext conftest$ac_exeext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13725 (eval $ac_link) 2>conftest.er1
13727 grep -v '^ *+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try='test -s conftest$ac_exeext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13745 ac_cv_search_opendir="none required"
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13751 rm -f conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
13753 if test "$ac_cv_search_opendir" = no; then
13754 for ac_lib in x; do
13755 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13756 cat >conftest.$ac_ext <<_ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any gcc2 internal prototype to avoid an error. */
13767 /* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13780 (eval $ac_link) 2>conftest.er1
13782 grep -v '^ *+' conftest.er1 >conftest.err
13784 cat conftest.err >&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try='test -z "$ac_c_werror_flag"
13788 || test ! -s conftest.err'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest$ac_exeext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 ac_cv_search_opendir="-l$ac_lib"
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13807 rm -f conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13811 LIBS=$ac_func_search_save_LIBS
13813 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13814 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13815 if test "$ac_cv_search_opendir" != no; then
13816 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13822 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13823 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13824 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 #include <sys/types.h>
13834 #include <sys/wait.h>
13835 #ifndef WEXITSTATUS
13836 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13839 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13852 rm -f conftest.$ac_objext
13853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13854 (eval $ac_compile) 2>conftest.er1
13856 grep -v '^ *+' conftest.er1 >conftest.err
13858 cat conftest.err >&5
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); } &&
13861 { ac_try='test -z "$ac_c_werror_flag"
13862 || test ! -s conftest.err'
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; } &&
13868 { ac_try='test -s conftest.$ac_objext'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; }; then
13874 ac_cv_header_sys_wait_h=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13879 ac_cv_header_sys_wait_h=no
13881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13883 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13884 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13885 if test $ac_cv_header_sys_wait_h = yes; then
13887 cat >>confdefs.h <<\_ACEOF
13888 #define HAVE_SYS_WAIT_H 1
13893 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
13894 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
13895 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 #include <sys/types.h>
13905 #include <termios.h>
13911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13912 $EGREP "yes" >/dev/null 2>&1; then
13913 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13915 ac_cv_sys_tiocgwinsz_in_termios_h=no
13920 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13921 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
13923 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13924 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13925 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
13926 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #include <sys/types.h>
13936 #include <sys/ioctl.h>
13942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13943 $EGREP "yes" >/dev/null 2>&1; then
13944 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13946 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13951 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13952 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
13954 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13956 cat >>confdefs.h <<\_ACEOF
13957 #define GWINSZ_IN_SYS_IOCTL 1
14061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14063 echo "$as_me:$LINENO: checking for $ac_header" >&5
14064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14071 # Is the header compilable?
14072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14074 cat >conftest.$ac_ext <<_ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 $ac_includes_default
14081 #include <$ac_header>
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_header_compiler=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_header_compiler=no
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114 echo "${ECHO_T}$ac_header_compiler" >&6
14116 # Is the header present?
14117 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14125 #include <$ac_header>
14127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14130 grep -v '^ *+' conftest.er1 >conftest.err
14132 cat conftest.err >&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); } >/dev/null; then
14135 if test -s conftest.err; then
14136 ac_cpp_err=$ac_c_preproc_warn_flag
14137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14144 if test -z "$ac_cpp_err"; then
14145 ac_header_preproc=yes
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_header_preproc=no
14152 rm -f conftest.err conftest.$ac_ext
14153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154 echo "${ECHO_T}$ac_header_preproc" >&6
14156 # So? What about this header?
14157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14163 ac_header_preproc=yes
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14180 ## --------------------------------------------- ##
14181 ## Report this to <http://www.openldap.org/its/> ##
14182 ## --------------------------------------------- ##
14185 sed "s/^/$as_me: WARNING: /" >&2
14188 echo "$as_me:$LINENO: checking for $ac_header" >&5
14189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14193 eval "$as_ac_Header=\$ac_header_preproc"
14195 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14196 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14200 cat >>confdefs.h <<_ACEOF
14201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 if test "$ac_cv_mingw32" = yes \
14210 -o "$ac_cv_interix" = yes \
14211 -o "$ol_cv_msvc" = yes
14215 for ac_header in winsock.h winsock2.h
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14237 #include <$ac_header>
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14243 grep -v '^ *+' conftest.er1 >conftest.err
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_header_compiler=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_compiler=no
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14270 echo "${ECHO_T}$ac_header_compiler" >&6
14272 # Is the header present?
14273 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14275 cat >conftest.$ac_ext <<_ACEOF
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <$ac_header>
14283 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14284 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14286 grep -v '^ *+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } >/dev/null; then
14291 if test -s conftest.err; then
14292 ac_cpp_err=$ac_c_preproc_warn_flag
14293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14300 if test -z "$ac_cpp_err"; then
14301 ac_header_preproc=yes
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_header_preproc=no
14308 rm -f conftest.err conftest.$ac_ext
14309 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14310 echo "${ECHO_T}$ac_header_preproc" >&6
14312 # So? What about this header?
14313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14319 ac_header_preproc=yes
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14336 ## --------------------------------------------- ##
14337 ## Report this to <http://www.openldap.org/its/> ##
14338 ## --------------------------------------------- ##
14341 sed "s/^/$as_me: WARNING: /" >&2
14344 echo "$as_me:$LINENO: checking for $ac_header" >&5
14345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 eval "$as_ac_Header=\$ac_header_preproc"
14351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14367 for ac_header in resolv.h
14369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14370 echo "$as_me:$LINENO: checking for $ac_header" >&5
14371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14372 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14373 echo $ECHO_N "(cached) $ECHO_C" >&6
14375 cat >conftest.$ac_ext <<_ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h. */
14381 $ac_includes_default
14382 #include <netinet/in.h>
14385 #include <$ac_header>
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 eval "$as_ac_Header=yes"
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 eval "$as_ac_Header=no"
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14420 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14431 for ac_header in netinet/tcp.h
14433 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14434 echo "$as_me:$LINENO: checking for $ac_header" >&5
14435 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14437 echo $ECHO_N "(cached) $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 $ac_includes_default
14446 #include <netinet/in.h>
14449 #include <$ac_header>
14451 rm -f conftest.$ac_objext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14453 (eval $ac_compile) 2>conftest.er1
14455 grep -v '^ *+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_c_werror_flag"
14461 || test ! -s conftest.err'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473 eval "$as_ac_Header=yes"
14475 echo "$as_me: failed program was:" >&5
14476 sed 's/^/| /' conftest.$ac_ext >&5
14478 eval "$as_ac_Header=no"
14480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14485 cat >>confdefs.h <<_ACEOF
14486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14495 for ac_header in sys/ucred.h
14497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14498 echo "$as_me:$LINENO: checking for $ac_header" >&5
14499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14501 echo $ECHO_N "(cached) $ECHO_C" >&6
14503 cat >conftest.$ac_ext <<_ACEOF
14506 cat confdefs.h >>conftest.$ac_ext
14507 cat >>conftest.$ac_ext <<_ACEOF
14508 /* end confdefs.h. */
14509 $ac_includes_default
14510 #ifdef HAVE_SYS_PARAM_H
14511 #include <sys/param.h>
14515 #include <$ac_header>
14517 rm -f conftest.$ac_objext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519 (eval $ac_compile) 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 eval "$as_ac_Header=yes"
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 eval "$as_ac_Header=no"
14546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14548 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14549 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14551 cat >>confdefs.h <<_ACEOF
14552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14563 for ac_func in sigaction sigset
14565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14566 echo "$as_me:$LINENO: checking for $ac_func" >&5
14567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14568 if eval "test \"\${$as_ac_var+set}\" = set"; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14571 cat >conftest.$ac_ext <<_ACEOF
14574 cat confdefs.h >>conftest.$ac_ext
14575 cat >>conftest.$ac_ext <<_ACEOF
14576 /* end confdefs.h. */
14577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14579 #define $ac_func innocuous_$ac_func
14581 /* System header to define __stub macros and hopefully few prototypes,
14582 which can conflict with char $ac_func (); below.
14583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14584 <limits.h> exists even on freestanding compilers. */
14587 # include <limits.h>
14589 # include <assert.h>
14594 /* Override any gcc2 internal prototype to avoid an error. */
14599 /* We use char because int might match the return type of a gcc2
14600 builtin and then its argument prototype would still apply. */
14602 /* The GNU C library defines this for functions which it implements
14603 to always fail with ENOSYS. Some functions are actually named
14604 something starting with __ and the normal name is an alias. */
14605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14608 char (*f) () = $ac_func;
14617 return f != $ac_func;
14622 rm -f conftest.$ac_objext conftest$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>conftest.er1
14626 grep -v '^ *+' conftest.er1 >conftest.err
14628 cat conftest.err >&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 eval "$as_ac_var=yes"
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 eval "$as_ac_var=no"
14651 rm -f conftest.err conftest.$ac_objext \
14652 conftest$ac_exeext conftest.$ac_ext
14654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14655 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14656 if test `eval echo '${'$as_ac_var'}'` = yes; then
14657 cat >>confdefs.h <<_ACEOF
14658 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14665 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
14667 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
14668 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
14669 if test "${ac_cv_lib_V3_sigset+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 ac_check_lib_save_LIBS=$LIBS
14674 cat >conftest.$ac_ext <<_ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14681 /* Override any gcc2 internal prototype to avoid an error. */
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14696 rm -f conftest.$ac_objext conftest$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14700 grep -v '^ *+' conftest.er1 >conftest.err
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_V3_sigset=yes
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.$ac_ext >&5
14723 ac_cv_lib_V3_sigset=no
14725 rm -f conftest.err conftest.$ac_objext \
14726 conftest$ac_exeext conftest.$ac_ext
14727 LIBS=$ac_check_lib_save_LIBS
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
14730 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
14731 if test $ac_cv_lib_V3_sigset = yes; then
14732 cat >>confdefs.h <<_ACEOF
14733 #define HAVE_LIBV3 1
14742 if test $ol_cv_msvc = yes ; then
14746 if test "$ac_cv_header_winsock_h" = yes; then
14747 echo "$as_me:$LINENO: checking for winsock" >&5
14748 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
14749 if test "${ol_cv_winsock+set}" = set; then
14750 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 for curlib in none ws2_32 wsock32; do
14755 if test $curlib != none ; then
14756 LIBS="$save_LIBS -l$curlib"
14758 cat >conftest.$ac_ext <<_ACEOF
14761 cat confdefs.h >>conftest.$ac_ext
14762 cat >>conftest.$ac_ext <<_ACEOF
14763 /* end confdefs.h. */
14764 #include <winsock.h>
14771 select(0,NULL,NULL,NULL,NULL);
14773 gethostname(NULL,0);
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14781 (eval $ac_link) 2>conftest.er1
14783 grep -v '^ *+' conftest.er1 >conftest.err
14785 cat conftest.err >&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); } &&
14788 { ac_try='test -z "$ac_c_werror_flag"
14789 || test ! -s conftest.err'
14790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14791 (eval $ac_try) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); }; } &&
14795 { ac_try='test -s conftest$ac_exeext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 ol_cv_winsock=$curlib
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14808 rm -f conftest.err conftest.$ac_objext \
14809 conftest$ac_exeext conftest.$ac_ext
14811 test "$ol_cv_winsock" != no && break
14816 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
14817 echo "${ECHO_T}$ol_cv_winsock" >&6
14819 if test $ol_cv_winsock != no ; then
14821 cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_WINSOCK 1
14825 ac_cv_func_socket=yes
14826 ac_cv_func_select=yes
14827 ac_cv_func_closesocket=yes
14828 ac_cv_func_gethostname=yes
14830 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
14831 LIBS="$LIBS -l$ol_cv_winsock"
14834 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
14836 cat >>confdefs.h <<\_ACEOF
14837 #define HAVE_WINSOCK2 1
14845 echo "$as_me:$LINENO: checking for socket" >&5
14846 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14847 if test "${ac_cv_func_socket+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 cat >conftest.$ac_ext <<_ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
14857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14858 #define socket innocuous_socket
14860 /* System header to define __stub macros and hopefully few prototypes,
14861 which can conflict with char socket (); below.
14862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14863 <limits.h> exists even on freestanding compilers. */
14866 # include <limits.h>
14868 # include <assert.h>
14873 /* Override any gcc2 internal prototype to avoid an error. */
14878 /* We use char because int might match the return type of a gcc2
14879 builtin and then its argument prototype would still apply. */
14881 /* The GNU C library defines this for functions which it implements
14882 to always fail with ENOSYS. Some functions are actually named
14883 something starting with __ and the normal name is an alias. */
14884 #if defined (__stub_socket) || defined (__stub___socket)
14887 char (*f) () = socket;
14896 return f != socket;
14901 rm -f conftest.$ac_objext conftest$ac_exeext
14902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14903 (eval $ac_link) 2>conftest.er1
14905 grep -v '^ *+' conftest.er1 >conftest.err
14907 cat conftest.err >&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -z "$ac_c_werror_flag"
14911 || test ! -s conftest.err'
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 ac_cv_func_socket=yes
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 ac_cv_func_socket=no
14930 rm -f conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14933 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
14934 echo "${ECHO_T}$ac_cv_func_socket" >&6
14935 if test $ac_cv_func_socket = yes; then
14940 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14941 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
14942 if test "${ac_cv_lib_socket_main+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 ac_check_lib_save_LIBS=$LIBS
14946 LIBS="-lsocket $LIBS"
14947 cat >conftest.$ac_ext <<_ACEOF
14950 cat confdefs.h >>conftest.$ac_ext
14951 cat >>conftest.$ac_ext <<_ACEOF
14952 /* end confdefs.h. */
14963 rm -f conftest.$ac_objext conftest$ac_exeext
14964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14965 (eval $ac_link) 2>conftest.er1
14967 grep -v '^ *+' conftest.er1 >conftest.err
14969 cat conftest.err >&5
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
14972 { ac_try='test -z "$ac_c_werror_flag"
14973 || test ! -s conftest.err'
14974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14975 (eval $ac_try) 2>&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; } &&
14979 { ac_try='test -s conftest$ac_exeext'
14980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14981 (eval $ac_try) 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_cv_lib_socket_main=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_cv_lib_socket_main=no
14992 rm -f conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14997 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
14998 if test $ac_cv_lib_socket_main = yes; then
14999 cat >>confdefs.h <<_ACEOF
15000 #define HAVE_LIBSOCKET 1
15003 LIBS="-lsocket $LIBS"
15008 echo "$as_me:$LINENO: checking for main in -lnet" >&5
15009 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
15010 if test "${ac_cv_lib_net_main+set}" = set; then
15011 echo $ECHO_N "(cached) $ECHO_C" >&6
15013 ac_check_lib_save_LIBS=$LIBS
15015 cat >conftest.$ac_ext <<_ACEOF
15018 cat confdefs.h >>conftest.$ac_ext
15019 cat >>conftest.$ac_ext <<_ACEOF
15020 /* end confdefs.h. */
15031 rm -f conftest.$ac_objext conftest$ac_exeext
15032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15033 (eval $ac_link) 2>conftest.er1
15035 grep -v '^ *+' conftest.er1 >conftest.err
15037 cat conftest.err >&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -z "$ac_c_werror_flag"
15041 || test ! -s conftest.err'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; } &&
15047 { ac_try='test -s conftest$ac_exeext'
15048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15049 (eval $ac_try) 2>&5
15051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052 (exit $ac_status); }; }; then
15053 ac_cv_lib_net_main=yes
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 ac_cv_lib_net_main=no
15060 rm -f conftest.err conftest.$ac_objext \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15065 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
15066 if test $ac_cv_lib_net_main = yes; then
15067 cat >>confdefs.h <<_ACEOF
15068 #define HAVE_LIBNET 1
15076 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15077 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
15078 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lnsl_s $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15101 (eval $ac_link) 2>conftest.er1
15103 grep -v '^ *+' conftest.er1 >conftest.err
15105 cat conftest.err >&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest$ac_exeext'
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_lib_nsl_s_main=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_lib_nsl_s_main=no
15128 rm -f conftest.err conftest.$ac_objext \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LIBS=$ac_check_lib_save_LIBS
15132 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15133 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
15134 if test $ac_cv_lib_nsl_s_main = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define HAVE_LIBNSL_S 1
15139 LIBS="-lnsl_s $LIBS"
15144 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15145 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
15146 if test "${ac_cv_lib_nsl_main+set}" = set; then
15147 echo $ECHO_N "(cached) $ECHO_C" >&6
15149 ac_check_lib_save_LIBS=$LIBS
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15167 rm -f conftest.$ac_objext conftest$ac_exeext
15168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15169 (eval $ac_link) 2>conftest.er1
15171 grep -v '^ *+' conftest.er1 >conftest.err
15173 cat conftest.err >&5
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); } &&
15176 { ac_try='test -z "$ac_c_werror_flag"
15177 || test ! -s conftest.err'
15178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15179 (eval $ac_try) 2>&5
15181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182 (exit $ac_status); }; } &&
15183 { ac_try='test -s conftest$ac_exeext'
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; }; then
15189 ac_cv_lib_nsl_main=yes
15191 echo "$as_me: failed program was:" >&5
15192 sed 's/^/| /' conftest.$ac_ext >&5
15194 ac_cv_lib_nsl_main=no
15196 rm -f conftest.err conftest.$ac_objext \
15197 conftest$ac_exeext conftest.$ac_ext
15198 LIBS=$ac_check_lib_save_LIBS
15200 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15201 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
15202 if test $ac_cv_lib_nsl_main = yes; then
15203 cat >>confdefs.h <<_ACEOF
15204 #define HAVE_LIBNSL 1
15212 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15213 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15214 if test "${ac_cv_lib_inet_socket+set}" = set; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15217 ac_check_lib_save_LIBS=$LIBS
15218 LIBS="-linet $LIBS"
15219 cat >conftest.$ac_ext <<_ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15226 /* Override any gcc2 internal prototype to avoid an error. */
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>conftest.er1
15245 grep -v '^ *+' conftest.er1 >conftest.err
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } &&
15250 { ac_try='test -z "$ac_c_werror_flag"
15251 || test ! -s conftest.err'
15252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253 (eval $ac_try) 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; } &&
15257 { ac_try='test -s conftest$ac_exeext'
15258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15259 (eval $ac_try) 2>&5
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); }; }; then
15263 ac_cv_lib_inet_socket=yes
15265 echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15268 ac_cv_lib_inet_socket=no
15270 rm -f conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15274 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15275 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15276 if test $ac_cv_lib_inet_socket = yes; then
15277 cat >>confdefs.h <<_ACEOF
15278 #define HAVE_LIBINET 1
15281 LIBS="-linet $LIBS"
15286 echo "$as_me:$LINENO: checking for main in -lgen" >&5
15287 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
15288 if test "${ac_cv_lib_gen_main+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 ac_check_lib_save_LIBS=$LIBS
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15309 rm -f conftest.$ac_objext conftest$ac_exeext
15310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15311 (eval $ac_link) 2>conftest.er1
15313 grep -v '^ *+' conftest.er1 >conftest.err
15315 cat conftest.err >&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest$ac_exeext'
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_cv_lib_gen_main=yes
15333 echo "$as_me: failed program was:" >&5
15334 sed 's/^/| /' conftest.$ac_ext >&5
15336 ac_cv_lib_gen_main=no
15338 rm -f conftest.err conftest.$ac_objext \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS
15342 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15343 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
15344 if test $ac_cv_lib_gen_main = yes; then
15345 cat >>confdefs.h <<_ACEOF
15346 #define HAVE_LIBGEN 1
15357 echo "$as_me:$LINENO: checking for select" >&5
15358 echo $ECHO_N "checking for select... $ECHO_C" >&6
15359 if test "${ac_cv_func_select+set}" = set; then
15360 echo $ECHO_N "(cached) $ECHO_C" >&6
15362 cat >conftest.$ac_ext <<_ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 /* Define select to an innocuous variant, in case <limits.h> declares select.
15369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15370 #define select innocuous_select
15372 /* System header to define __stub macros and hopefully few prototypes,
15373 which can conflict with char select (); below.
15374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15375 <limits.h> exists even on freestanding compilers. */
15378 # include <limits.h>
15380 # include <assert.h>
15385 /* Override any gcc2 internal prototype to avoid an error. */
15390 /* We use char because int might match the return type of a gcc2
15391 builtin and then its argument prototype would still apply. */
15393 /* The GNU C library defines this for functions which it implements
15394 to always fail with ENOSYS. Some functions are actually named
15395 something starting with __ and the normal name is an alias. */
15396 #if defined (__stub_select) || defined (__stub___select)
15399 char (*f) () = select;
15408 return f != select;
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15415 (eval $ac_link) 2>conftest.er1
15417 grep -v '^ *+' conftest.er1 >conftest.err
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest$ac_exeext'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_func_select=yes
15437 echo "$as_me: failed program was:" >&5
15438 sed 's/^/| /' conftest.$ac_ext >&5
15440 ac_cv_func_select=no
15442 rm -f conftest.err conftest.$ac_objext \
15443 conftest$ac_exeext conftest.$ac_ext
15445 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15446 echo "${ECHO_T}$ac_cv_func_select" >&6
15447 if test $ac_cv_func_select = yes; then
15450 { { echo "$as_me:$LINENO: error: select() required." >&5
15451 echo "$as_me: error: select() required." >&2;}
15452 { (exit 1); exit 1; }; }
15456 if test "${ac_cv_header_winsock_h}" != yes; then
15459 for ac_header in sys/select.h sys/socket.h
15461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15463 echo "$as_me:$LINENO: checking for $ac_header" >&5
15464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15465 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15466 echo $ECHO_N "(cached) $ECHO_C" >&6
15468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15471 # Is the header compilable?
15472 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15473 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15474 cat >conftest.$ac_ext <<_ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 $ac_includes_default
15481 #include <$ac_header>
15483 rm -f conftest.$ac_objext
15484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15485 (eval $ac_compile) 2>conftest.er1
15487 grep -v '^ *+' conftest.er1 >conftest.err
15489 cat conftest.err >&5
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
15492 { ac_try='test -z "$ac_c_werror_flag"
15493 || test ! -s conftest.err'
15494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15495 (eval $ac_try) 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; } &&
15499 { ac_try='test -s conftest.$ac_objext'
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_header_compiler=no
15512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6
15516 # Is the header present?
15517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15519 cat >conftest.$ac_ext <<_ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 #include <$ac_header>
15527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null; then
15535 if test -s conftest.err; then
15536 ac_cpp_err=$ac_c_preproc_warn_flag
15537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc=yes
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_header_preproc=no
15552 rm -f conftest.err conftest.$ac_ext
15553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15554 echo "${ECHO_T}$ac_header_preproc" >&6
15556 # So? What about this header?
15557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15563 ac_header_preproc=yes
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580 ## --------------------------------------------- ##
15581 ## Report this to <http://www.openldap.org/its/> ##
15582 ## --------------------------------------------- ##
15585 sed "s/^/$as_me: WARNING: /" >&2
15588 echo "$as_me:$LINENO: checking for $ac_header" >&5
15589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 eval "$as_ac_Header=\$ac_header_preproc"
15595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600 cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608 echo "$as_me:$LINENO: checking types of arguments for select" >&5
15609 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
15610 if test "${ac_cv_func_select_args+set}" = set; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
15614 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
15615 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
15616 cat >conftest.$ac_ext <<_ACEOF
15619 cat confdefs.h >>conftest.$ac_ext
15620 cat >>conftest.$ac_ext <<_ACEOF
15621 /* end confdefs.h. */
15622 $ac_includes_default
15623 #if HAVE_SYS_SELECT_H
15624 # include <sys/select.h>
15626 #if HAVE_SYS_SOCKET_H
15627 # include <sys/socket.h>
15633 extern int select ($ac_arg1,
15634 $ac_arg234, $ac_arg234, $ac_arg234,
15640 rm -f conftest.$ac_objext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15642 (eval $ac_compile) 2>conftest.er1
15644 grep -v '^ *+' conftest.er1 >conftest.err
15646 cat conftest.err >&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); } &&
15649 { ac_try='test -z "$ac_c_werror_flag"
15650 || test ! -s conftest.err'
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest.$ac_objext'
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
15664 echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15672 # Provide a safe default value.
15673 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
15676 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
15677 echo "${ECHO_T}$ac_cv_func_select_args" >&6
15678 ac_save_IFS=$IFS; IFS=','
15679 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
15683 cat >>confdefs.h <<_ACEOF
15684 #define SELECT_TYPE_ARG1 $1
15688 cat >>confdefs.h <<_ACEOF
15689 #define SELECT_TYPE_ARG234 ($2)
15693 cat >>confdefs.h <<_ACEOF
15694 #define SELECT_TYPE_ARG5 ($3)
15703 for ac_func in poll
15705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15706 echo "$as_me:$LINENO: checking for $ac_func" >&5
15707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_var+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15719 #define $ac_func innocuous_$ac_func
15721 /* System header to define __stub macros and hopefully few prototypes,
15722 which can conflict with char $ac_func (); below.
15723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15724 <limits.h> exists even on freestanding compilers. */
15727 # include <limits.h>
15729 # include <assert.h>
15734 /* Override any gcc2 internal prototype to avoid an error. */
15739 /* We use char because int might match the return type of a gcc2
15740 builtin and then its argument prototype would still apply. */
15742 /* The GNU C library defines this for functions which it implements
15743 to always fail with ENOSYS. Some functions are actually named
15744 something starting with __ and the normal name is an alias. */
15745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15748 char (*f) () = $ac_func;
15757 return f != $ac_func;
15762 rm -f conftest.$ac_objext conftest$ac_exeext
15763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15764 (eval $ac_link) 2>conftest.er1
15766 grep -v '^ *+' conftest.er1 >conftest.err
15768 cat conftest.err >&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try='test -z "$ac_c_werror_flag"
15772 || test ! -s conftest.err'
15773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15774 (eval $ac_try) 2>&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); }; } &&
15778 { ac_try='test -s conftest$ac_exeext'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; }; then
15784 eval "$as_ac_var=yes"
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 eval "$as_ac_var=no"
15791 rm -f conftest.err conftest.$ac_objext \
15792 conftest$ac_exeext conftest.$ac_ext
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15796 if test `eval echo '${'$as_ac_var'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15804 if test $ac_cv_func_poll = yes; then
15807 for ac_header in poll.h sys/poll.h
15809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15811 echo "$as_me:$LINENO: checking for $ac_header" >&5
15812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15814 echo $ECHO_N "(cached) $ECHO_C" >&6
15816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15819 # Is the header compilable?
15820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15828 $ac_includes_default
15829 #include <$ac_header>
15831 rm -f conftest.$ac_objext
15832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15833 (eval $ac_compile) 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } &&
15840 { ac_try='test -z "$ac_c_werror_flag"
15841 || test ! -s conftest.err'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; } &&
15847 { ac_try='test -s conftest.$ac_objext'
15848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15849 (eval $ac_try) 2>&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); }; }; then
15853 ac_header_compiler=yes
15855 echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_header_compiler=no
15860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15862 echo "${ECHO_T}$ac_header_compiler" >&6
15864 # Is the header present?
15865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #include <$ac_header>
15875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15878 grep -v '^ *+' conftest.er1 >conftest.err
15880 cat conftest.err >&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } >/dev/null; then
15883 if test -s conftest.err; then
15884 ac_cpp_err=$ac_c_preproc_warn_flag
15885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15892 if test -z "$ac_cpp_err"; then
15893 ac_header_preproc=yes
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.$ac_ext >&5
15898 ac_header_preproc=no
15900 rm -f conftest.err conftest.$ac_ext
15901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6
15904 # So? What about this header?
15905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911 ac_header_preproc=yes
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15928 ## --------------------------------------------- ##
15929 ## Report this to <http://www.openldap.org/its/> ##
15930 ## --------------------------------------------- ##
15933 sed "s/^/$as_me: WARNING: /" >&2
15936 echo "$as_me:$LINENO: checking for $ac_header" >&5
15937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 eval "$as_ac_Header=\$ac_header_preproc"
15943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15948 cat >>confdefs.h <<_ACEOF
15949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15959 for ac_header in sys/epoll.h
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15963 echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15971 # Is the header compilable?
15972 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15981 #include <$ac_header>
15983 rm -f conftest.$ac_objext
15984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15985 (eval $ac_compile) 2>conftest.er1
15987 grep -v '^ *+' conftest.er1 >conftest.err
15989 cat conftest.err >&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); } &&
15992 { ac_try='test -z "$ac_c_werror_flag"
15993 || test ! -s conftest.err'
15994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15995 (eval $ac_try) 2>&5
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); }; } &&
15999 { ac_try='test -s conftest.$ac_objext'
16000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001 (eval $ac_try) 2>&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); }; }; then
16005 ac_header_compiler=yes
16007 echo "$as_me: failed program was:" >&5
16008 sed 's/^/| /' conftest.$ac_ext >&5
16010 ac_header_compiler=no
16012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16014 echo "${ECHO_T}$ac_header_compiler" >&6
16016 # Is the header present?
16017 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16019 cat >conftest.$ac_ext <<_ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h. */
16025 #include <$ac_header>
16027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16030 grep -v '^ *+' conftest.er1 >conftest.err
16032 cat conftest.err >&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); } >/dev/null; then
16035 if test -s conftest.err; then
16036 ac_cpp_err=$ac_c_preproc_warn_flag
16037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16044 if test -z "$ac_cpp_err"; then
16045 ac_header_preproc=yes
16047 echo "$as_me: failed program was:" >&5
16048 sed 's/^/| /' conftest.$ac_ext >&5
16050 ac_header_preproc=no
16052 rm -f conftest.err conftest.$ac_ext
16053 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16054 echo "${ECHO_T}$ac_header_preproc" >&6
16056 # So? What about this header?
16057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16063 ac_header_preproc=yes
16066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16080 ## --------------------------------------------- ##
16081 ## Report this to <http://www.openldap.org/its/> ##
16082 ## --------------------------------------------- ##
16085 sed "s/^/$as_me: WARNING: /" >&2
16088 echo "$as_me:$LINENO: checking for $ac_header" >&5
16089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16093 eval "$as_ac_Header=\$ac_header_preproc"
16095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16100 cat >>confdefs.h <<_ACEOF
16101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16108 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16109 echo "$as_me:$LINENO: checking for epoll system call" >&5
16110 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
16111 if test "$cross_compiling" = yes; then
16112 echo "$as_me:$LINENO: result: no" >&5
16113 echo "${ECHO_T}no" >&6
16115 cat >conftest.$ac_ext <<_ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h. */
16121 int main(int argc, char **argv)
16123 int epfd = epoll_create(256);
16124 exit (epfd == -1 ? 1 : 0);
16127 rm -f conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16134 (eval $ac_try) 2>&5
16136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16137 (exit $ac_status); }; }; then
16138 echo "$as_me:$LINENO: result: yes" >&5
16139 echo "${ECHO_T}yes" >&6
16141 cat >>confdefs.h <<\_ACEOF
16142 #define HAVE_EPOLL 1
16146 echo "$as_me: program exited with status $ac_status" >&5
16147 echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.$ac_ext >&5
16150 ( exit $ac_status )
16151 echo "$as_me:$LINENO: result: no" >&5
16152 echo "${ECHO_T}no" >&6
16154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16159 for ac_header in sys/devpoll.h
16161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16162 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16163 echo "$as_me:$LINENO: checking for $ac_header" >&5
16164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16166 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16171 # Is the header compilable?
16172 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16173 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16174 cat >conftest.$ac_ext <<_ACEOF
16177 cat confdefs.h >>conftest.$ac_ext
16178 cat >>conftest.$ac_ext <<_ACEOF
16179 /* end confdefs.h. */
16180 $ac_includes_default
16181 #include <$ac_header>
16183 rm -f conftest.$ac_objext
16184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16185 (eval $ac_compile) 2>conftest.er1
16187 grep -v '^ *+' conftest.er1 >conftest.err
16189 cat conftest.err >&5
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); } &&
16192 { ac_try='test -z "$ac_c_werror_flag"
16193 || test ! -s conftest.err'
16194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195 (eval $ac_try) 2>&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); }; } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_header_compiler=yes
16207 echo "$as_me: failed program was:" >&5
16208 sed 's/^/| /' conftest.$ac_ext >&5
16210 ac_header_compiler=no
16212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16213 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16214 echo "${ECHO_T}$ac_header_compiler" >&6
16216 # Is the header present?
16217 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16218 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16222 cat confdefs.h >>conftest.$ac_ext
16223 cat >>conftest.$ac_ext <<_ACEOF
16224 /* end confdefs.h. */
16225 #include <$ac_header>
16227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } >/dev/null; then
16235 if test -s conftest.err; then
16236 ac_cpp_err=$ac_c_preproc_warn_flag
16237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16244 if test -z "$ac_cpp_err"; then
16245 ac_header_preproc=yes
16247 echo "$as_me: failed program was:" >&5
16248 sed 's/^/| /' conftest.$ac_ext >&5
16250 ac_header_preproc=no
16252 rm -f conftest.err conftest.$ac_ext
16253 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16254 echo "${ECHO_T}$ac_header_preproc" >&6
16256 # So? What about this header?
16257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16263 ac_header_preproc=yes
16266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16280 ## --------------------------------------------- ##
16281 ## Report this to <http://www.openldap.org/its/> ##
16282 ## --------------------------------------------- ##
16285 sed "s/^/$as_me: WARNING: /" >&2
16288 echo "$as_me:$LINENO: checking for $ac_header" >&5
16289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16291 echo $ECHO_N "(cached) $ECHO_C" >&6
16293 eval "$as_ac_Header=\$ac_header_preproc"
16295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16300 cat >>confdefs.h <<_ACEOF
16301 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16308 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16309 -a "${ac_cv_header_poll_h}" = yes ; \
16311 echo "$as_me:$LINENO: checking for /dev/poll" >&5
16312 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6
16313 if test "$cross_compiling" = yes; then
16314 echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16317 cat >conftest.$ac_ext <<_ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16323 int main(int argc, char **argv)
16325 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16326 exit (devpollfd == -1 ? 1 : 0);
16329 rm -f conftest$ac_exeext
16330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16331 (eval $ac_link) 2>&5
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 echo "$as_me:$LINENO: result: yes" >&5
16341 echo "${ECHO_T}yes" >&6
16343 cat >>confdefs.h <<\_ACEOF
16344 #define HAVE_DEVPOLL 1
16348 echo "$as_me: program exited with status $ac_status" >&5
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16352 ( exit $ac_status )
16353 echo "$as_me:$LINENO: result: no" >&5
16354 echo "${ECHO_T}no" >&6
16356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16360 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16361 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16362 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16363 echo $ECHO_N "(cached) $ECHO_C" >&6
16366 cat >conftest.$ac_ext <<_ACEOF
16369 cat confdefs.h >>conftest.$ac_ext
16370 cat >>conftest.$ac_ext <<_ACEOF
16371 /* end confdefs.h. */
16374 #include <sys/types.h>
16377 #include <stdlib.h>
16382 char *c = (char *) *sys_errlist
16387 rm -f conftest.$ac_objext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16389 (eval $ac_compile) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1 >conftest.err
16393 cat conftest.err >&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try='test -s conftest.$ac_objext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ol_cv_dcl_sys_errlist=yes
16410 ol_cv_have_sys_errlist=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ol_cv_dcl_sys_errlist=no
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16420 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16422 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16423 if test $ol_cv_dcl_sys_errlist = no ; then
16425 cat >>confdefs.h <<\_ACEOF
16426 #define DECL_SYS_ERRLIST 1
16430 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16431 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16432 if test "${ol_cv_have_sys_errlist+set}" = set; then
16433 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16446 char *c = (char *) *sys_errlist
16451 rm -f conftest.$ac_objext conftest$ac_exeext
16452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453 (eval $ac_link) 2>conftest.er1
16455 grep -v '^ *+' conftest.er1 >conftest.err
16457 cat conftest.err >&5
16458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459 (exit $ac_status); } &&
16460 { ac_try='test -z "$ac_c_werror_flag"
16461 || test ! -s conftest.err'
16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463 (eval $ac_try) 2>&5
16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466 (exit $ac_status); }; } &&
16467 { ac_try='test -s conftest$ac_exeext'
16468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469 (eval $ac_try) 2>&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); }; }; then
16473 ol_cv_have_sys_errlist=yes
16475 echo "$as_me: failed program was:" >&5
16476 sed 's/^/| /' conftest.$ac_ext >&5
16478 ol_cv_have_sys_errlist=no
16480 rm -f conftest.err conftest.$ac_objext \
16481 conftest$ac_exeext conftest.$ac_ext
16483 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16484 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16486 if test $ol_cv_have_sys_errlist = yes ; then
16488 cat >>confdefs.h <<\_ACEOF
16489 #define HAVE_SYS_ERRLIST 1
16495 for ac_func in strerror strerror_r
16497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16498 echo "$as_me:$LINENO: checking for $ac_func" >&5
16499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16500 if eval "test \"\${$as_ac_var+set}\" = set"; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 cat >conftest.$ac_ext <<_ACEOF
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16511 #define $ac_func innocuous_$ac_func
16513 /* System header to define __stub macros and hopefully few prototypes,
16514 which can conflict with char $ac_func (); below.
16515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16516 <limits.h> exists even on freestanding compilers. */
16519 # include <limits.h>
16521 # include <assert.h>
16526 /* Override any gcc2 internal prototype to avoid an error. */
16531 /* We use char because int might match the return type of a gcc2
16532 builtin and then its argument prototype would still apply. */
16534 /* The GNU C library defines this for functions which it implements
16535 to always fail with ENOSYS. Some functions are actually named
16536 something starting with __ and the normal name is an alias. */
16537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16540 char (*f) () = $ac_func;
16549 return f != $ac_func;
16554 rm -f conftest.$ac_objext conftest$ac_exeext
16555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16556 (eval $ac_link) 2>conftest.er1
16558 grep -v '^ *+' conftest.er1 >conftest.err
16560 cat conftest.err >&5
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); } &&
16563 { ac_try='test -z "$ac_c_werror_flag"
16564 || test ! -s conftest.err'
16565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16566 (eval $ac_try) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; } &&
16570 { ac_try='test -s conftest$ac_exeext'
16571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572 (eval $ac_try) 2>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); }; }; then
16576 eval "$as_ac_var=yes"
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 eval "$as_ac_var=no"
16583 rm -f conftest.err conftest.$ac_objext \
16584 conftest$ac_exeext conftest.$ac_ext
16586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16588 if test `eval echo '${'$as_ac_var'}'` = yes; then
16589 cat >>confdefs.h <<_ACEOF
16590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16596 ol_cv_func_strerror_r=no
16597 if test "${ac_cv_func_strerror_r}" = yes ; then
16598 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
16599 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
16600 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 #include <string.h>
16612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16613 $EGREP "strerror_r" >/dev/null 2>&1; then
16614 ol_decl_strerror_r=yes
16616 ol_decl_strerror_r=no
16620 if test $ol_decl_strerror_r = yes ; then
16621 cat >conftest.$ac_ext <<_ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 #include <string.h>
16631 /* from autoconf 2.59 */
16633 char x = *strerror_r (0, buf, sizeof buf);
16634 char *p = strerror_r (0, buf, sizeof buf);
16640 rm -f conftest.$ac_objext
16641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16642 (eval $ac_compile) 2>conftest.er1
16644 grep -v '^ *+' conftest.er1 >conftest.err
16646 cat conftest.err >&5
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); } &&
16649 { ac_try='test -z "$ac_c_werror_flag"
16650 || test ! -s conftest.err'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; } &&
16656 { ac_try='test -s conftest.$ac_objext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ol_cv_nonposix_strerror_r=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ol_cv_nonposix_strerror_r=no
16669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16671 if test "$cross_compiling" = yes; then
16672 ol_cv_nonposix_strerror=no
16674 cat >conftest.$ac_ext <<_ACEOF
16677 cat confdefs.h >>conftest.$ac_ext
16678 cat >>conftest.$ac_ext <<_ACEOF
16679 /* end confdefs.h. */
16684 strerror_r( 1, buf, sizeof buf );
16685 exit( buf[0] == 0 );
16689 rm -f conftest$ac_exeext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16691 (eval $ac_link) 2>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16696 (eval $ac_try) 2>&5
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); }; }; then
16700 ol_cv_nonposix_strerror_r=yes
16702 echo "$as_me: program exited with status $ac_status" >&5
16703 echo "$as_me: failed program was:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ( exit $ac_status )
16707 ol_cv_nonposix_strerror=no
16709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16714 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
16715 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
16716 if test $ol_cv_nonposix_strerror_r = yes ; then
16718 cat >>confdefs.h <<\_ACEOF
16719 #define HAVE_NONPOSIX_STRERROR_R 1
16724 elif test "${ac_cv_func_strerror}" = no ; then
16725 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16726 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
16727 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16728 echo $ECHO_N "(cached) $ECHO_C" >&6
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16739 #include <sys/types.h>
16742 #include <stdlib.h>
16747 char *c = (char *) *sys_errlist
16752 rm -f conftest.$ac_objext
16753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16754 (eval $ac_compile) 2>conftest.er1
16756 grep -v '^ *+' conftest.er1 >conftest.err
16758 cat conftest.err >&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
16761 { ac_try='test -z "$ac_c_werror_flag"
16762 || test ! -s conftest.err'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ol_cv_dcl_sys_errlist=yes
16775 ol_cv_have_sys_errlist=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.$ac_ext >&5
16780 ol_cv_dcl_sys_errlist=no
16782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16784 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16785 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
16787 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16788 if test $ol_cv_dcl_sys_errlist = no ; then
16790 cat >>confdefs.h <<\_ACEOF
16791 #define DECL_SYS_ERRLIST 1
16795 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16796 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
16797 if test "${ol_cv_have_sys_errlist+set}" = set; then
16798 echo $ECHO_N "(cached) $ECHO_C" >&6
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16811 char *c = (char *) *sys_errlist
16816 rm -f conftest.$ac_objext conftest$ac_exeext
16817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16818 (eval $ac_link) 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); } &&
16825 { ac_try='test -z "$ac_c_werror_flag"
16826 || test ! -s conftest.err'
16827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16828 (eval $ac_try) 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; } &&
16832 { ac_try='test -s conftest$ac_exeext'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16838 ol_cv_have_sys_errlist=yes
16840 echo "$as_me: failed program was:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ol_cv_have_sys_errlist=no
16845 rm -f conftest.err conftest.$ac_objext \
16846 conftest$ac_exeext conftest.$ac_ext
16848 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
16849 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
16851 if test $ol_cv_have_sys_errlist = yes ; then
16853 cat >>confdefs.h <<\_ACEOF
16854 #define HAVE_SYS_ERRLIST 1
16863 for ac_header in regex.h
16865 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16866 echo "$as_me:$LINENO: checking for $ac_header" >&5
16867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16869 echo $ECHO_N "(cached) $ECHO_C" >&6
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16877 $ac_includes_default
16878 #ifdef HAVE_SYS_TYPES_H
16879 #include <sys/types.h>
16883 #include <$ac_header>
16885 rm -f conftest.$ac_objext
16886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16887 (eval $ac_compile) 2>conftest.er1
16889 grep -v '^ *+' conftest.er1 >conftest.err
16891 cat conftest.err >&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -z "$ac_c_werror_flag"
16895 || test ! -s conftest.err'
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest.$ac_objext'
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 eval "$as_ac_Header=yes"
16909 echo "$as_me: failed program was:" >&5
16910 sed 's/^/| /' conftest.$ac_ext >&5
16912 eval "$as_ac_Header=no"
16914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16919 cat >>confdefs.h <<_ACEOF
16920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16928 if test "$ac_cv_header_regex_h" != yes ; then
16929 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
16930 echo "$as_me: error: POSIX regex.h required." >&2;}
16931 { (exit 1); exit 1; }; }
16933 echo "$as_me:$LINENO: checking for library containing regfree" >&5
16934 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
16935 if test "${ac_cv_search_regfree+set}" = set; then
16936 echo $ECHO_N "(cached) $ECHO_C" >&6
16938 ac_func_search_save_LIBS=$LIBS
16939 ac_cv_search_regfree=no
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16947 /* Override any gcc2 internal prototype to avoid an error. */
16951 /* We use char because int might match the return type of a gcc2
16952 builtin and then its argument prototype would still apply. */
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16964 (eval $ac_link) 2>conftest.er1
16966 grep -v '^ *+' conftest.er1 >conftest.err
16968 cat conftest.err >&5
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); } &&
16971 { ac_try='test -z "$ac_c_werror_flag"
16972 || test ! -s conftest.err'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; } &&
16978 { ac_try='test -s conftest$ac_exeext'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; }; then
16984 ac_cv_search_regfree="none required"
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16990 rm -f conftest.err conftest.$ac_objext \
16991 conftest$ac_exeext conftest.$ac_ext
16992 if test "$ac_cv_search_regfree" = no; then
16993 for ac_lib in regex gnuregex; do
16994 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16995 cat >conftest.$ac_ext <<_ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17002 /* Override any gcc2 internal prototype to avoid an error. */
17006 /* We use char because int might match the return type of a gcc2
17007 builtin and then its argument prototype would still apply. */
17017 rm -f conftest.$ac_objext conftest$ac_exeext
17018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17019 (eval $ac_link) 2>conftest.er1
17021 grep -v '^ *+' conftest.er1 >conftest.err
17023 cat conftest.err >&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); } &&
17026 { ac_try='test -z "$ac_c_werror_flag"
17027 || test ! -s conftest.err'
17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17029 (eval $ac_try) 2>&5
17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17032 (exit $ac_status); }; } &&
17033 { ac_try='test -s conftest$ac_exeext'
17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17035 (eval $ac_try) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); }; }; then
17039 ac_cv_search_regfree="-l$ac_lib"
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17046 rm -f conftest.err conftest.$ac_objext \
17047 conftest$ac_exeext conftest.$ac_ext
17050 LIBS=$ac_func_search_save_LIBS
17052 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17053 echo "${ECHO_T}$ac_cv_search_regfree" >&6
17054 if test "$ac_cv_search_regfree" != no; then
17055 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
17058 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17059 echo "$as_me: error: POSIX regex required." >&2;}
17060 { (exit 1); exit 1; }; }
17065 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17066 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
17067 if test "${ol_cv_c_posix_regex+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 if test "$cross_compiling" = yes; then
17072 ol_cv_c_posix_regex=cross
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 #include <sys/types.h>
17083 static char *pattern, *string;
17091 if(regcomp(&re, pattern, 0)) {
17095 string = "ALL MATCH";
17097 rc = regexec(&re, string, 0, (void*)0, 0);
17104 rm -f conftest$ac_exeext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17106 (eval $ac_link) 2>&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; }; then
17115 ol_cv_c_posix_regex=yes
17117 echo "$as_me: program exited with status $ac_status" >&5
17118 echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17121 ( exit $ac_status )
17122 ol_cv_c_posix_regex=no
17124 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17127 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17128 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
17130 if test "$ol_cv_c_posix_regex" = no ; then
17131 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17132 echo "$as_me: error: broken POSIX regex!" >&2;}
17133 { (exit 1); exit 1; }; }
17139 for ac_header in sys/uuid.h
17141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17143 echo "$as_me:$LINENO: checking for $ac_header" >&5
17144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17145 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17149 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17151 # Is the header compilable?
17152 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 $ac_includes_default
17161 #include <$ac_header>
17163 rm -f conftest.$ac_objext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17165 (eval $ac_compile) 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag"
17173 || test ! -s conftest.err'
17174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 (eval $ac_try) 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; } &&
17179 { ac_try='test -s conftest.$ac_objext'
17180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17181 (eval $ac_try) 2>&5
17183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184 (exit $ac_status); }; }; then
17185 ac_header_compiler=yes
17187 echo "$as_me: failed program was:" >&5
17188 sed 's/^/| /' conftest.$ac_ext >&5
17190 ac_header_compiler=no
17192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194 echo "${ECHO_T}$ac_header_compiler" >&6
17196 # Is the header present?
17197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 #include <$ac_header>
17207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17210 grep -v '^ *+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } >/dev/null; then
17215 if test -s conftest.err; then
17216 ac_cpp_err=$ac_c_preproc_warn_flag
17217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17224 if test -z "$ac_cpp_err"; then
17225 ac_header_preproc=yes
17227 echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_header_preproc=no
17232 rm -f conftest.err conftest.$ac_ext
17233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17234 echo "${ECHO_T}$ac_header_preproc" >&6
17236 # So? What about this header?
17237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17243 ac_header_preproc=yes
17246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17260 ## --------------------------------------------- ##
17261 ## Report this to <http://www.openldap.org/its/> ##
17262 ## --------------------------------------------- ##
17265 sed "s/^/$as_me: WARNING: /" >&2
17268 echo "$as_me:$LINENO: checking for $ac_header" >&5
17269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 eval "$as_ac_Header=\$ac_header_preproc"
17275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17280 cat >>confdefs.h <<_ACEOF
17281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17288 if test $ac_cv_header_sys_uuid_h = yes ; then
17290 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17291 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
17292 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17293 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 ac_func_search_save_LIBS=$LIBS
17296 ac_cv_search_uuid_to_str=no
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17304 /* Override any gcc2 internal prototype to avoid an error. */
17308 /* We use char because int might match the return type of a gcc2
17309 builtin and then its argument prototype would still apply. */
17310 char uuid_to_str ();
17319 rm -f conftest.$ac_objext conftest$ac_exeext
17320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17321 (eval $ac_link) 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -z "$ac_c_werror_flag"
17329 || test ! -s conftest.err'
17330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; } &&
17335 { ac_try='test -s conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 ac_cv_search_uuid_to_str="none required"
17343 echo "$as_me: failed program was:" >&5
17344 sed 's/^/| /' conftest.$ac_ext >&5
17347 rm -f conftest.err conftest.$ac_objext \
17348 conftest$ac_exeext conftest.$ac_ext
17349 if test "$ac_cv_search_uuid_to_str" = no; then
17350 for ac_lib in uuid; do
17351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17352 cat >conftest.$ac_ext <<_ACEOF
17355 cat confdefs.h >>conftest.$ac_ext
17356 cat >>conftest.$ac_ext <<_ACEOF
17357 /* end confdefs.h. */
17359 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365 char uuid_to_str ();
17374 rm -f conftest.$ac_objext conftest$ac_exeext
17375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17376 (eval $ac_link) 2>conftest.er1
17378 grep -v '^ *+' conftest.er1 >conftest.err
17380 cat conftest.err >&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); } &&
17383 { ac_try='test -z "$ac_c_werror_flag"
17384 || test ! -s conftest.err'
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); }; } &&
17390 { ac_try='test -s conftest$ac_exeext'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; }; then
17396 ac_cv_search_uuid_to_str="-l$ac_lib"
17399 echo "$as_me: failed program was:" >&5
17400 sed 's/^/| /' conftest.$ac_ext >&5
17403 rm -f conftest.err conftest.$ac_objext \
17404 conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_func_search_save_LIBS
17409 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17410 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
17411 if test "$ac_cv_search_uuid_to_str" != no; then
17412 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
17418 echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17419 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6
17420 if test "${ac_cv_search_uuid_create+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17423 ac_func_search_save_LIBS=$LIBS
17424 ac_cv_search_uuid_create=no
17425 cat >conftest.$ac_ext <<_ACEOF
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17432 /* Override any gcc2 internal prototype to avoid an error. */
17436 /* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17438 char uuid_create ();
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449 (eval $ac_link) 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
17456 { ac_try='test -z "$ac_c_werror_flag"
17457 || test ! -s conftest.err'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
17464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_search_uuid_create="none required"
17471 echo "$as_me: failed program was:" >&5
17472 sed 's/^/| /' conftest.$ac_ext >&5
17475 rm -f conftest.err conftest.$ac_objext \
17476 conftest$ac_exeext conftest.$ac_ext
17477 if test "$ac_cv_search_uuid_create" = no; then
17478 for ac_lib in uuid; do
17479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17480 cat >conftest.$ac_ext <<_ACEOF
17483 cat confdefs.h >>conftest.$ac_ext
17484 cat >>conftest.$ac_ext <<_ACEOF
17485 /* end confdefs.h. */
17487 /* Override any gcc2 internal prototype to avoid an error. */
17491 /* We use char because int might match the return type of a gcc2
17492 builtin and then its argument prototype would still apply. */
17493 char uuid_create ();
17502 rm -f conftest.$ac_objext conftest$ac_exeext
17503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17504 (eval $ac_link) 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag"
17512 || test ! -s conftest.err'
17513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17514 (eval $ac_try) 2>&5
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); }; } &&
17518 { ac_try='test -s conftest$ac_exeext'
17519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17520 (eval $ac_try) 2>&5
17522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17523 (exit $ac_status); }; }; then
17524 ac_cv_search_uuid_create="-l$ac_lib"
17527 echo "$as_me: failed program was:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17531 rm -f conftest.err conftest.$ac_objext \
17532 conftest$ac_exeext conftest.$ac_ext
17535 LIBS=$ac_func_search_save_LIBS
17537 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17538 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6
17539 if test "$ac_cv_search_uuid_create" != no; then
17540 test "$ac_cv_search_uuid_create" = "none required" || LIBS="$ac_cv_search_uuid_create $LIBS"
17548 if test $have_uuid = yes ; then
17550 cat >>confdefs.h <<\_ACEOF
17551 #define HAVE_UUID_TO_STR 1
17555 test "$ac_cv_search_uuid_to_str" = "none required" || \
17556 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17560 if test $have_uuid = no ; then
17562 for ac_header in uuid/uuid.h
17564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17565 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17566 echo "$as_me:$LINENO: checking for $ac_header" >&5
17567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17569 echo $ECHO_N "(cached) $ECHO_C" >&6
17571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17572 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17574 # Is the header compilable?
17575 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17577 cat >conftest.$ac_ext <<_ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h. */
17583 $ac_includes_default
17584 #include <$ac_header>
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 ac_header_compiler=yes
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_header_compiler=no
17615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17616 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17617 echo "${ECHO_T}$ac_header_compiler" >&6
17619 # Is the header present?
17620 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 #include <$ac_header>
17630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17633 grep -v '^ *+' conftest.er1 >conftest.err
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } >/dev/null; then
17638 if test -s conftest.err; then
17639 ac_cpp_err=$ac_c_preproc_warn_flag
17640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17647 if test -z "$ac_cpp_err"; then
17648 ac_header_preproc=yes
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17653 ac_header_preproc=no
17655 rm -f conftest.err conftest.$ac_ext
17656 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17657 echo "${ECHO_T}$ac_header_preproc" >&6
17659 # So? What about this header?
17660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17666 ac_header_preproc=yes
17669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17672 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17676 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17683 ## --------------------------------------------- ##
17684 ## Report this to <http://www.openldap.org/its/> ##
17685 ## --------------------------------------------- ##
17688 sed "s/^/$as_me: WARNING: /" >&2
17691 echo "$as_me:$LINENO: checking for $ac_header" >&5
17692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17694 echo $ECHO_N "(cached) $ECHO_C" >&6
17696 eval "$as_ac_Header=\$ac_header_preproc"
17698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17699 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17703 cat >>confdefs.h <<_ACEOF
17704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17711 if test $ac_cv_header_uuid_uuid_h = yes ; then
17713 echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
17714 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6
17715 if test "${ac_cv_search_uuid_generate+set}" = set; then
17716 echo $ECHO_N "(cached) $ECHO_C" >&6
17718 ac_func_search_save_LIBS=$LIBS
17719 ac_cv_search_uuid_generate=no
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17727 /* Override any gcc2 internal prototype to avoid an error. */
17731 /* We use char because int might match the return type of a gcc2
17732 builtin and then its argument prototype would still apply. */
17733 char uuid_generate ();
17742 rm -f conftest.$ac_objext conftest$ac_exeext
17743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17744 (eval $ac_link) 2>conftest.er1
17746 grep -v '^ *+' conftest.er1 >conftest.err
17748 cat conftest.err >&5
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
17751 { ac_try='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest$ac_exeext'
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
17764 ac_cv_search_uuid_generate="none required"
17766 echo "$as_me: failed program was:" >&5
17767 sed 's/^/| /' conftest.$ac_ext >&5
17770 rm -f conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17772 if test "$ac_cv_search_uuid_generate" = no; then
17773 for ac_lib in uuid; do
17774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17775 cat >conftest.$ac_ext <<_ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17782 /* Override any gcc2 internal prototype to avoid an error. */
17786 /* We use char because int might match the return type of a gcc2
17787 builtin and then its argument prototype would still apply. */
17788 char uuid_generate ();
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17799 (eval $ac_link) 2>conftest.er1
17801 grep -v '^ *+' conftest.er1 >conftest.err
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } &&
17806 { ac_try='test -z "$ac_c_werror_flag"
17807 || test ! -s conftest.err'
17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17809 (eval $ac_try) 2>&5
17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); }; } &&
17813 { ac_try='test -s conftest$ac_exeext'
17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17815 (eval $ac_try) 2>&5
17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818 (exit $ac_status); }; }; then
17819 ac_cv_search_uuid_generate="-l$ac_lib"
17822 echo "$as_me: failed program was:" >&5
17823 sed 's/^/| /' conftest.$ac_ext >&5
17826 rm -f conftest.err conftest.$ac_objext \
17827 conftest$ac_exeext conftest.$ac_ext
17830 LIBS=$ac_func_search_save_LIBS
17832 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
17833 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6
17834 if test "$ac_cv_search_uuid_generate" != no; then
17835 test "$ac_cv_search_uuid_generate" = "none required" || LIBS="$ac_cv_search_uuid_generate $LIBS"
17841 echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
17842 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6
17843 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17846 ac_func_search_save_LIBS=$LIBS
17847 ac_cv_search_uuid_unparse_lower=no
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17855 /* Override any gcc2 internal prototype to avoid an error. */
17859 /* We use char because int might match the return type of a gcc2
17860 builtin and then its argument prototype would still apply. */
17861 char uuid_unparse_lower ();
17865 uuid_unparse_lower ();
17870 rm -f conftest.$ac_objext conftest$ac_exeext
17871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17872 (eval $ac_link) 2>conftest.er1
17874 grep -v '^ *+' conftest.er1 >conftest.err
17876 cat conftest.err >&5
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); } &&
17879 { ac_try='test -z "$ac_c_werror_flag"
17880 || test ! -s conftest.err'
17881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17882 (eval $ac_try) 2>&5
17884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885 (exit $ac_status); }; } &&
17886 { ac_try='test -s conftest$ac_exeext'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; }; then
17892 ac_cv_search_uuid_unparse_lower="none required"
17894 echo "$as_me: failed program was:" >&5
17895 sed 's/^/| /' conftest.$ac_ext >&5
17898 rm -f conftest.err conftest.$ac_objext \
17899 conftest$ac_exeext conftest.$ac_ext
17900 if test "$ac_cv_search_uuid_unparse_lower" = no; then
17901 for ac_lib in uuid; do
17902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17903 cat >conftest.$ac_ext <<_ACEOF
17906 cat confdefs.h >>conftest.$ac_ext
17907 cat >>conftest.$ac_ext <<_ACEOF
17908 /* end confdefs.h. */
17910 /* Override any gcc2 internal prototype to avoid an error. */
17914 /* We use char because int might match the return type of a gcc2
17915 builtin and then its argument prototype would still apply. */
17916 char uuid_unparse_lower ();
17920 uuid_unparse_lower ();
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17927 (eval $ac_link) 2>conftest.er1
17929 grep -v '^ *+' conftest.er1 >conftest.err
17931 cat conftest.err >&5
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); } &&
17934 { ac_try='test -z "$ac_c_werror_flag"
17935 || test ! -s conftest.err'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; } &&
17941 { ac_try='test -s conftest$ac_exeext'
17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17943 (eval $ac_try) 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 ac_cv_search_uuid_unparse_lower="-l$ac_lib"
17950 echo "$as_me: failed program was:" >&5
17951 sed 's/^/| /' conftest.$ac_ext >&5
17954 rm -f conftest.err conftest.$ac_objext \
17955 conftest$ac_exeext conftest.$ac_ext
17958 LIBS=$ac_func_search_save_LIBS
17960 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
17961 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6
17962 if test "$ac_cv_search_uuid_unparse_lower" != no; then
17963 test "$ac_cv_search_uuid_unparse_lower" = "none required" || LIBS="$ac_cv_search_uuid_unparse_lower $LIBS"
17971 if test $have_uuid = yes ; then
17973 cat >>confdefs.h <<\_ACEOF
17974 #define HAVE_UUID_GENERATE 1
17978 test "$ac_cv_search_uuid_generate" = "none required" || \
17979 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
17984 if test $have_uuid = no ; then
17985 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
17986 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
17988 LIBS="$LIBS -lrpcrt4"
17989 cat >conftest.$ac_ext <<_ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17996 int __stdcall UuidCreate(void *);
17997 int __stdcall UuidToStringA(void *,void **);
18004 UuidToStringA(0,0);
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012 (eval $ac_link) 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag"
18020 || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18039 rm -f conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041 if test $need_rpcrt = yes; then
18042 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18045 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18046 echo "${ECHO_T}$need_rpcrt" >&6
18049 ol_cv_lib_resolver=no
18050 if test $ol_cv_lib_resolver = no ; then
18051 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18052 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
18053 if test "${ol_cv_resolver_none+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 LIBS="$ol_RESOLVER_LIB $LIBS"
18061 cat >conftest.$ac_ext <<_ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18068 #ifdef HAVE_SYS_TYPES_H
18069 # include <sys/types.h>
18071 #include <netinet/in.h>
18072 #ifdef HAVE_ARPA_NAMESER_H
18073 # include <arpa/nameser.h>
18075 #ifdef HAVE_RESOLV_H
18076 # include <resolv.h>
18084 char *request = NULL;
18085 unsigned char reply[64*1024];
18086 unsigned char host[64*1024];
18090 /* Bind 8/9 interface */
18091 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18093 /* Bind 4 interface */
18097 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18101 /* Bind 8/9 interface */
18103 #elif defined(HFIXEDSZ)
18104 /* Bind 4 interface w/ HFIXEDSZ */
18107 /* Bind 4 interface w/o HFIXEDSZ */
18108 p += sizeof(HEADER);
18110 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18116 rm -f conftest.$ac_objext conftest$ac_exeext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18118 (eval $ac_link) 2>conftest.er1
18120 grep -v '^ *+' conftest.er1 >conftest.err
18122 cat conftest.err >&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try='test -s conftest$ac_exeext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ol_cv_resolver_none=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18143 ol_cv_resolver_none=no
18145 rm -f conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18151 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18152 echo "${ECHO_T}$ol_cv_resolver_none" >&6
18154 if test $ol_cv_resolver_none = yes ; then
18155 ol_cv_lib_resolver=yes
18159 if test $ol_cv_lib_resolver = no ; then
18160 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18161 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
18162 if test "${ol_cv_resolver_resolv+set}" = set; then
18163 echo $ECHO_N "(cached) $ECHO_C" >&6
18166 ol_RESOLVER_LIB=-lresolv
18168 LIBS="$ol_RESOLVER_LIB $LIBS"
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18177 #ifdef HAVE_SYS_TYPES_H
18178 # include <sys/types.h>
18180 #include <netinet/in.h>
18181 #ifdef HAVE_ARPA_NAMESER_H
18182 # include <arpa/nameser.h>
18184 #ifdef HAVE_RESOLV_H
18185 # include <resolv.h>
18193 char *request = NULL;
18194 unsigned char reply[64*1024];
18195 unsigned char host[64*1024];
18199 /* Bind 8/9 interface */
18200 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18202 /* Bind 4 interface */
18206 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18210 /* Bind 8/9 interface */
18212 #elif defined(HFIXEDSZ)
18213 /* Bind 4 interface w/ HFIXEDSZ */
18216 /* Bind 4 interface w/o HFIXEDSZ */
18217 p += sizeof(HEADER);
18219 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18225 rm -f conftest.$ac_objext conftest$ac_exeext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227 (eval $ac_link) 2>conftest.er1
18229 grep -v '^ *+' conftest.er1 >conftest.err
18231 cat conftest.err >&5
18232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233 (exit $ac_status); } &&
18234 { ac_try='test -z "$ac_c_werror_flag"
18235 || test ! -s conftest.err'
18236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237 (eval $ac_try) 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; }; then
18247 ol_cv_resolver_resolv=yes
18249 echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ol_cv_resolver_resolv=no
18254 rm -f conftest.err conftest.$ac_objext \
18255 conftest$ac_exeext conftest.$ac_ext
18260 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18261 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
18263 if test $ol_cv_resolver_resolv = yes ; then
18264 ol_cv_lib_resolver=-lresolv
18268 if test $ol_cv_lib_resolver = no ; then
18269 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18270 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
18271 if test "${ol_cv_resolver_bind+set}" = set; then
18272 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 ol_RESOLVER_LIB=-lbind
18277 LIBS="$ol_RESOLVER_LIB $LIBS"
18279 cat >conftest.$ac_ext <<_ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h. */
18286 #ifdef HAVE_SYS_TYPES_H
18287 # include <sys/types.h>
18289 #include <netinet/in.h>
18290 #ifdef HAVE_ARPA_NAMESER_H
18291 # include <arpa/nameser.h>
18293 #ifdef HAVE_RESOLV_H
18294 # include <resolv.h>
18302 char *request = NULL;
18303 unsigned char reply[64*1024];
18304 unsigned char host[64*1024];
18308 /* Bind 8/9 interface */
18309 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18311 /* Bind 4 interface */
18315 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18319 /* Bind 8/9 interface */
18321 #elif defined(HFIXEDSZ)
18322 /* Bind 4 interface w/ HFIXEDSZ */
18325 /* Bind 4 interface w/o HFIXEDSZ */
18326 p += sizeof(HEADER);
18328 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18334 rm -f conftest.$ac_objext conftest$ac_exeext
18335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18336 (eval $ac_link) 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); } &&
18343 { ac_try='test -z "$ac_c_werror_flag"
18344 || test ! -s conftest.err'
18345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18346 (eval $ac_try) 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; } &&
18350 { ac_try='test -s conftest$ac_exeext'
18351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18352 (eval $ac_try) 2>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 ol_cv_resolver_bind=yes
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.$ac_ext >&5
18361 ol_cv_resolver_bind=no
18363 rm -f conftest.err conftest.$ac_objext \
18364 conftest$ac_exeext conftest.$ac_ext
18369 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18370 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
18372 if test $ol_cv_resolver_bind = yes ; then
18373 ol_cv_lib_resolver=-lbind
18380 if test "$ol_cv_lib_resolver" != no ; then
18382 cat >>confdefs.h <<\_ACEOF
18383 #define HAVE_RES_QUERY 1
18387 if test "$ol_enable_dnssrv" != no ; then
18391 if test "$ol_cv_lib_resolver" != yes ; then
18392 LIBS="$ol_cv_lib_resolver $LIBS"
18396 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18397 if test "$ol_link_dnssrv" = no ; then
18398 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18399 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18400 { (exit 1); exit 1; }; }
18403 ol_enable_dnssrv=no
18407 for ac_func in hstrerror
18409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18410 echo "$as_me:$LINENO: checking for $ac_func" >&5
18411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18412 if eval "test \"\${$as_ac_var+set}\" = set"; then
18413 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18423 #define $ac_func innocuous_$ac_func
18425 /* System header to define __stub macros and hopefully few prototypes,
18426 which can conflict with char $ac_func (); below.
18427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18428 <limits.h> exists even on freestanding compilers. */
18431 # include <limits.h>
18433 # include <assert.h>
18438 /* Override any gcc2 internal prototype to avoid an error. */
18443 /* We use char because int might match the return type of a gcc2
18444 builtin and then its argument prototype would still apply. */
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18452 char (*f) () = $ac_func;
18461 return f != $ac_func;
18466 rm -f conftest.$ac_objext conftest$ac_exeext
18467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18468 (eval $ac_link) 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
18475 { ac_try='test -z "$ac_c_werror_flag"
18476 || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest$ac_exeext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 eval "$as_ac_var=yes"
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 eval "$as_ac_var=no"
18495 rm -f conftest.err conftest.$ac_objext \
18496 conftest$ac_exeext conftest.$ac_ext
18498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18500 if test `eval echo '${'$as_ac_var'}'` = yes; then
18501 cat >>confdefs.h <<_ACEOF
18502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18513 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18516 echo "$as_me:$LINENO: checking for $ac_func" >&5
18517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18518 if eval "test \"\${$as_ac_var+set}\" = set"; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 cat >conftest.$ac_ext <<_ACEOF
18524 cat confdefs.h >>conftest.$ac_ext
18525 cat >>conftest.$ac_ext <<_ACEOF
18526 /* end confdefs.h. */
18527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18529 #define $ac_func innocuous_$ac_func
18531 /* System header to define __stub macros and hopefully few prototypes,
18532 which can conflict with char $ac_func (); below.
18533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18534 <limits.h> exists even on freestanding compilers. */
18537 # include <limits.h>
18539 # include <assert.h>
18544 /* Override any gcc2 internal prototype to avoid an error. */
18549 /* We use char because int might match the return type of a gcc2
18550 builtin and then its argument prototype would still apply. */
18552 /* The GNU C library defines this for functions which it implements
18553 to always fail with ENOSYS. Some functions are actually named
18554 something starting with __ and the normal name is an alias. */
18555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18558 char (*f) () = $ac_func;
18567 return f != $ac_func;
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18574 (eval $ac_link) 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); } &&
18581 { ac_try='test -z "$ac_c_werror_flag"
18582 || test ! -s conftest.err'
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; } &&
18588 { ac_try='test -s conftest$ac_exeext'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; }; then
18594 eval "$as_ac_var=yes"
18596 echo "$as_me: failed program was:" >&5
18597 sed 's/^/| /' conftest.$ac_ext >&5
18599 eval "$as_ac_var=no"
18601 rm -f conftest.err conftest.$ac_objext \
18602 conftest$ac_exeext conftest.$ac_ext
18604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18606 if test `eval echo '${'$as_ac_var'}'` = yes; then
18607 cat >>confdefs.h <<_ACEOF
18608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18616 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18617 if test $ol_enable_ipv6 = yes ; then
18618 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18619 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18620 { (exit 1); exit 1; }; }
18622 elif test $ol_enable_ipv6 != no ; then
18623 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18624 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
18625 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18626 echo $ECHO_N "(cached) $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18636 # include <netinet/in.h>
18637 # ifdef INET6_ADDRSTRLEN
18638 __has_inet6_addrstrlen__;
18642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18643 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18644 ol_cv_inet6_addrstrlen=yes
18646 ol_cv_inet6_addrstrlen=no
18651 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18652 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
18655 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18656 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
18657 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 cat >conftest.$ac_ext <<_ACEOF
18664 cat confdefs.h >>conftest.$ac_ext
18665 cat >>conftest.$ac_ext <<_ACEOF
18666 /* end confdefs.h. */
18668 #include <sys/types.h>
18669 #include <sys/socket.h>
18675 struct sockaddr_storage ss;
18681 rm -f conftest.$ac_objext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18683 (eval $ac_compile) 2>conftest.er1
18685 grep -v '^ *+' conftest.er1 >conftest.err
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try='test -s conftest.$ac_objext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ol_cv_struct_sockaddr_storage=yes
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ol_cv_struct_sockaddr_storage=no
18710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18712 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18713 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
18715 if test $ol_cv_inet6_addrstrlen = yes &&
18716 test $ol_cv_struct_sockaddr_storage = yes ; then
18718 elif test $ol_enable_ipv6 = yes &&
18719 test $ol_cv_inet6_addrstrlen = no ; then
18720 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18721 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18722 { (exit 1); exit 1; }; }
18723 elif test $ol_enable_ipv6 = yes &&
18724 test $ol_cv_struct_sockaddr_storage = no ; then
18725 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18726 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18727 { (exit 1); exit 1; }; }
18731 if test $ol_enable_local != no ; then
18733 for ac_header in sys/un.h
18735 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18737 echo "$as_me:$LINENO: checking for $ac_header" >&5
18738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18743 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18745 # Is the header compilable?
18746 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 $ac_includes_default
18755 #include <$ac_header>
18757 rm -f conftest.$ac_objext
18758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18759 (eval $ac_compile) 2>conftest.er1
18761 grep -v '^ *+' conftest.er1 >conftest.err
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } &&
18766 { ac_try='test -z "$ac_c_werror_flag"
18767 || test ! -s conftest.err'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest.$ac_objext'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_header_compiler=yes
18781 echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_header_compiler=no
18786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18787 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18788 echo "${ECHO_T}$ac_header_compiler" >&6
18790 # Is the header present?
18791 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18792 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #include <$ac_header>
18801 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } >/dev/null; then
18809 if test -s conftest.err; then
18810 ac_cpp_err=$ac_c_preproc_warn_flag
18811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18818 if test -z "$ac_cpp_err"; then
18819 ac_header_preproc=yes
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18824 ac_header_preproc=no
18826 rm -f conftest.err conftest.$ac_ext
18827 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18828 echo "${ECHO_T}$ac_header_preproc" >&6
18830 # So? What about this header?
18831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18837 ac_header_preproc=yes
18840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18854 ## --------------------------------------------- ##
18855 ## Report this to <http://www.openldap.org/its/> ##
18856 ## --------------------------------------------- ##
18859 sed "s/^/$as_me: WARNING: /" >&2
18862 echo "$as_me:$LINENO: checking for $ac_header" >&5
18863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18864 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 eval "$as_ac_Header=\$ac_header_preproc"
18869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18874 cat >>confdefs.h <<_ACEOF
18875 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18883 if test $ol_enable_local = auto ; then
18884 ol_enable_local=$ac_cv_header_sys_un_h
18885 elif test $ac_cv_header_sys_un_h = no ; then
18886 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
18887 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
18888 { (exit 1); exit 1; }; }
18894 case $ol_with_gssapi in yes | auto)
18896 ol_header_gssapi=no
18898 for ac_header in gssapi/gssapi.h
18900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18902 echo "$as_me:$LINENO: checking for $ac_header" >&5
18903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18910 # Is the header compilable?
18911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18913 cat >conftest.$ac_ext <<_ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h. */
18919 $ac_includes_default
18920 #include <$ac_header>
18922 rm -f conftest.$ac_objext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924 (eval $ac_compile) 2>conftest.er1
18926 grep -v '^ *+' conftest.er1 >conftest.err
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } &&
18931 { ac_try='test -z "$ac_c_werror_flag"
18932 || test ! -s conftest.err'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; } &&
18938 { ac_try='test -s conftest.$ac_objext'
18939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940 (eval $ac_try) 2>&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); }; }; then
18944 ac_header_compiler=yes
18946 echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18949 ac_header_compiler=no
18951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18953 echo "${ECHO_T}$ac_header_compiler" >&6
18955 # Is the header present?
18956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18958 cat >conftest.$ac_ext <<_ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h. */
18964 #include <$ac_header>
18966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18969 grep -v '^ *+' conftest.er1 >conftest.err
18971 cat conftest.err >&5
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); } >/dev/null; then
18974 if test -s conftest.err; then
18975 ac_cpp_err=$ac_c_preproc_warn_flag
18976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18983 if test -z "$ac_cpp_err"; then
18984 ac_header_preproc=yes
18986 echo "$as_me: failed program was:" >&5
18987 sed 's/^/| /' conftest.$ac_ext >&5
18989 ac_header_preproc=no
18991 rm -f conftest.err conftest.$ac_ext
18992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18993 echo "${ECHO_T}$ac_header_preproc" >&6
18995 # So? What about this header?
18996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19002 ac_header_preproc=yes
19005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19019 ## --------------------------------------------- ##
19020 ## Report this to <http://www.openldap.org/its/> ##
19021 ## --------------------------------------------- ##
19024 sed "s/^/$as_me: WARNING: /" >&2
19027 echo "$as_me:$LINENO: checking for $ac_header" >&5
19028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19030 echo $ECHO_N "(cached) $ECHO_C" >&6
19032 eval "$as_ac_Header=\$ac_header_preproc"
19034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19039 cat >>confdefs.h <<_ACEOF
19040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19047 if test $ac_cv_header_gssapi_gssapi_h = yes ; then
19048 ol_header_gssapi=yes
19051 for ac_header in gssapi.h
19053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19055 echo "$as_me:$LINENO: checking for $ac_header" >&5
19056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19060 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19061 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19063 # Is the header compilable?
19064 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19066 cat >conftest.$ac_ext <<_ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072 $ac_includes_default
19073 #include <$ac_header>
19075 rm -f conftest.$ac_objext
19076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19077 (eval $ac_compile) 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
19084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest.$ac_objext'
19092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_header_compiler=yes
19099 echo "$as_me: failed program was:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_header_compiler=no
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19106 echo "${ECHO_T}$ac_header_compiler" >&6
19108 # Is the header present?
19109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 #include <$ac_header>
19119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } >/dev/null; then
19127 if test -s conftest.err; then
19128 ac_cpp_err=$ac_c_preproc_warn_flag
19129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19136 if test -z "$ac_cpp_err"; then
19137 ac_header_preproc=yes
19139 echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19142 ac_header_preproc=no
19144 rm -f conftest.err conftest.$ac_ext
19145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19146 echo "${ECHO_T}$ac_header_preproc" >&6
19148 # So? What about this header?
19149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19155 ac_header_preproc=yes
19158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19172 ## --------------------------------------------- ##
19173 ## Report this to <http://www.openldap.org/its/> ##
19174 ## --------------------------------------------- ##
19177 sed "s/^/$as_me: WARNING: /" >&2
19180 echo "$as_me:$LINENO: checking for $ac_header" >&5
19181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19185 eval "$as_ac_Header=\$ac_header_preproc"
19187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19200 if test $ac_cv_header_gssapi_h = yes ; then
19201 ol_header_gssapi=yes
19205 LIBS="$LIBS $GSSAPI_LIBS"
19207 for ac_func in gss_oid_to_str
19209 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19210 echo "$as_me:$LINENO: checking for $ac_func" >&5
19211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19212 if eval "test \"\${$as_ac_var+set}\" = set"; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 cat >conftest.$ac_ext <<_ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19223 #define $ac_func innocuous_$ac_func
19225 /* System header to define __stub macros and hopefully few prototypes,
19226 which can conflict with char $ac_func (); below.
19227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19228 <limits.h> exists even on freestanding compilers. */
19231 # include <limits.h>
19233 # include <assert.h>
19238 /* Override any gcc2 internal prototype to avoid an error. */
19243 /* We use char because int might match the return type of a gcc2
19244 builtin and then its argument prototype would still apply. */
19246 /* The GNU C library defines this for functions which it implements
19247 to always fail with ENOSYS. Some functions are actually named
19248 something starting with __ and the normal name is an alias. */
19249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19252 char (*f) () = $ac_func;
19261 return f != $ac_func;
19266 rm -f conftest.$ac_objext conftest$ac_exeext
19267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19268 (eval $ac_link) 2>conftest.er1
19270 grep -v '^ *+' conftest.er1 >conftest.err
19272 cat conftest.err >&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } &&
19275 { ac_try='test -z "$ac_c_werror_flag"
19276 || test ! -s conftest.err'
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest$ac_exeext'
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 eval "$as_ac_var=yes"
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 eval "$as_ac_var=no"
19295 rm -f conftest.err conftest.$ac_objext \
19296 conftest$ac_exeext conftest.$ac_ext
19298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19300 if test `eval echo '${'$as_ac_var'}'` = yes; then
19301 cat >>confdefs.h <<_ACEOF
19302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19311 if test $ol_header_gssapi = yes ; then
19312 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19313 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6
19314 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19317 ac_check_lib_save_LIBS=$LIBS
19318 LIBS="-lgssapi $LIBS"
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19326 /* Override any gcc2 internal prototype to avoid an error. */
19330 /* We use char because int might match the return type of a gcc2
19331 builtin and then its argument prototype would still apply. */
19341 rm -f conftest.$ac_objext conftest$ac_exeext
19342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19343 (eval $ac_link) 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19349 (exit $ac_status); } &&
19350 { ac_try='test -z "$ac_c_werror_flag"
19351 || test ! -s conftest.err'
19352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19353 (eval $ac_try) 2>&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); }; } &&
19357 { ac_try='test -s conftest$ac_exeext'
19358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19359 (eval $ac_try) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }; }; then
19363 ac_cv_lib_gssapi_gss_wrap=yes
19365 echo "$as_me: failed program was:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_cv_lib_gssapi_gss_wrap=no
19370 rm -f conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext conftest.$ac_ext
19372 LIBS=$ac_check_lib_save_LIBS
19374 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19375 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6
19376 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19377 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19382 if test $ol_link_gssapi != yes ; then
19383 echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19384 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6
19385 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19386 echo $ECHO_N "(cached) $ECHO_C" >&6
19388 ac_check_lib_save_LIBS=$LIBS
19389 LIBS="-lgssapi_krb5 $LIBS"
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19397 /* Override any gcc2 internal prototype to avoid an error. */
19401 /* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19412 rm -f conftest.$ac_objext conftest$ac_exeext
19413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19414 (eval $ac_link) 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
19421 { ac_try='test -z "$ac_c_werror_flag"
19422 || test ! -s conftest.err'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest$ac_exeext'
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_cv_lib_gssapi_krb5_gss_wrap=yes
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.$ac_ext >&5
19439 ac_cv_lib_gssapi_krb5_gss_wrap=no
19441 rm -f conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19446 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6
19447 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19448 ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19454 if test $ol_link_gssapi != yes ; then
19455 echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5
19456 echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6
19457 if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 ac_check_lib_save_LIBS=$LIBS
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19469 /* Override any gcc2 internal prototype to avoid an error. */
19473 /* We use char because int might match the return type of a gcc2
19474 builtin and then its argument prototype would still apply. */
19484 rm -f conftest.$ac_objext conftest$ac_exeext
19485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19486 (eval $ac_link) 2>conftest.er1
19488 grep -v '^ *+' conftest.er1 >conftest.err
19490 cat conftest.err >&5
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); } &&
19493 { ac_try='test -z "$ac_c_werror_flag"
19494 || test ! -s conftest.err'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest$ac_exeext'
19501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19502 (eval $ac_try) 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); }; }; then
19506 ac_cv_lib_gss_gss_wrap=yes
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19511 ac_cv_lib_gss_gss_wrap=no
19513 rm -f conftest.err conftest.$ac_objext \
19514 conftest$ac_exeext conftest.$ac_ext
19515 LIBS=$ac_check_lib_save_LIBS
19517 echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5
19518 echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6
19519 if test $ac_cv_lib_gss_gss_wrap = yes; then
19520 ol_link_gssapi=yes;GSSAPI_LIBS="-lgss"
19532 if test $ol_link_gssapi = yes; then
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_GSSAPI 1
19539 elif test $ol_with_gssapi = auto ; then
19540 { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19541 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19542 { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19543 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19544 elif test $ol_with_gssapi = yes ; then
19545 { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19546 echo "$as_me: error: GSSAPI detection failed" >&2;}
19547 { (exit 1); exit 1; }; }
19551 if test $ol_with_tls = yes ; then
19556 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19558 for ac_header in openssl/ssl.h
19560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19562 echo "$as_me:$LINENO: checking for $ac_header" >&5
19563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19565 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19570 # Is the header compilable?
19571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19576 cat confdefs.h >>conftest.$ac_ext
19577 cat >>conftest.$ac_ext <<_ACEOF
19578 /* end confdefs.h. */
19579 $ac_includes_default
19580 #include <$ac_header>
19582 rm -f conftest.$ac_objext
19583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19584 (eval $ac_compile) 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_c_werror_flag"
19592 || test ! -s conftest.err'
19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594 (eval $ac_try) 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600 (eval $ac_try) 2>&5
19602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603 (exit $ac_status); }; }; then
19604 ac_header_compiler=yes
19606 echo "$as_me: failed program was:" >&5
19607 sed 's/^/| /' conftest.$ac_ext >&5
19609 ac_header_compiler=no
19611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19613 echo "${ECHO_T}$ac_header_compiler" >&6
19615 # Is the header present?
19616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19618 cat >conftest.$ac_ext <<_ACEOF
19621 cat confdefs.h >>conftest.$ac_ext
19622 cat >>conftest.$ac_ext <<_ACEOF
19623 /* end confdefs.h. */
19624 #include <$ac_header>
19626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } >/dev/null; then
19634 if test -s conftest.err; then
19635 ac_cpp_err=$ac_c_preproc_warn_flag
19636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19643 if test -z "$ac_cpp_err"; then
19644 ac_header_preproc=yes
19646 echo "$as_me: failed program was:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 ac_header_preproc=no
19651 rm -f conftest.err conftest.$ac_ext
19652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19653 echo "${ECHO_T}$ac_header_preproc" >&6
19655 # So? What about this header?
19656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19662 ac_header_preproc=yes
19665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19679 ## --------------------------------------------- ##
19680 ## Report this to <http://www.openldap.org/its/> ##
19681 ## --------------------------------------------- ##
19684 sed "s/^/$as_me: WARNING: /" >&2
19687 echo "$as_me:$LINENO: checking for $ac_header" >&5
19688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 eval "$as_ac_Header=\$ac_header_preproc"
19694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19708 if test $ac_cv_header_openssl_ssl_h = yes ; then
19709 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19710 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
19711 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19712 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lssl -lcrypto $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19723 /* Override any gcc2 internal prototype to avoid an error. */
19727 /* We use char because int might match the return type of a gcc2
19728 builtin and then its argument prototype would still apply. */
19729 char SSL_library_init ();
19733 SSL_library_init ();
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19740 (eval $ac_link) 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag"
19748 || test ! -s conftest.err'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; } &&
19754 { ac_try='test -s conftest$ac_exeext'
19755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19756 (eval $ac_try) 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; }; then
19760 ac_cv_lib_ssl_SSL_library_init=yes
19762 echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19765 ac_cv_lib_ssl_SSL_library_init=no
19767 rm -f conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19771 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19772 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
19773 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19781 if test $have_openssl = no ; then
19782 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19783 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
19784 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19785 echo $ECHO_N "(cached) $ECHO_C" >&6
19787 ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19796 /* Override any gcc2 internal prototype to avoid an error. */
19800 /* We use char because int might match the return type of a gcc2
19801 builtin and then its argument prototype would still apply. */
19802 char ssl3_accept ();
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19813 (eval $ac_link) 2>conftest.er1
19815 grep -v '^ *+' conftest.er1 >conftest.err
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } &&
19820 { ac_try='test -z "$ac_c_werror_flag"
19821 || test ! -s conftest.err'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; } &&
19827 { ac_try='test -s conftest$ac_exeext'
19828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829 (eval $ac_try) 2>&5
19831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832 (exit $ac_status); }; }; then
19833 ac_cv_lib_ssl_ssl3_accept=yes
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_cv_lib_ssl_ssl3_accept=no
19840 rm -f conftest.err conftest.$ac_objext \
19841 conftest$ac_exeext conftest.$ac_ext
19842 LIBS=$ac_check_lib_save_LIBS
19844 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19845 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
19846 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19855 if test $have_openssl = yes ; then
19856 ol_with_tls=openssl
19860 cat >>confdefs.h <<\_ACEOF
19861 #define HAVE_OPENSSL 1
19865 if test $need_rsaref = yes; then
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_RSAREF 1
19872 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19874 TLS_LIBS="-lssl -lcrypto"
19877 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19878 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
19879 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19883 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 #ifdef HAVE_OPENSSL_SSL_H
19891 #include <openssl/ssl.h>
19894 /* Require 0.9.7d+ */
19895 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19896 char *__ssl_compat = "0.9.7d";
19900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19901 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19902 ol_cv_ssl_crl_compat=yes
19904 ol_cv_ssl_crl_compat=no
19909 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19910 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
19912 if test $ol_cv_ssl_crl_compat = yes ; then
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_OPENSSL_CRL 1
19923 if test $ol_link_tls = no ; then
19924 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19926 for ac_header in gnutls/gnutls.h
19928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19930 echo "$as_me:$LINENO: checking for $ac_header" >&5
19931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19933 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19938 # Is the header compilable?
19939 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 $ac_includes_default
19948 #include <$ac_header>
19950 rm -f conftest.$ac_objext
19951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19952 (eval $ac_compile) 2>conftest.er1
19954 grep -v '^ *+' conftest.er1 >conftest.err
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } &&
19959 { ac_try='test -z "$ac_c_werror_flag"
19960 || test ! -s conftest.err'
19961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19962 (eval $ac_try) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_header_compiler=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_header_compiler=no
19979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19980 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6
19983 # Is the header present?
19984 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19992 #include <$ac_header>
19994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19997 grep -v '^ *+' conftest.er1 >conftest.err
19999 cat conftest.err >&5
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } >/dev/null; then
20002 if test -s conftest.err; then
20003 ac_cpp_err=$ac_c_preproc_warn_flag
20004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20011 if test -z "$ac_cpp_err"; then
20012 ac_header_preproc=yes
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20017 ac_header_preproc=no
20019 rm -f conftest.err conftest.$ac_ext
20020 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20021 echo "${ECHO_T}$ac_header_preproc" >&6
20023 # So? What about this header?
20024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20027 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20029 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20030 ac_header_preproc=yes
20033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20034 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20036 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20038 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20040 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20042 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20044 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20047 ## --------------------------------------------- ##
20048 ## Report this to <http://www.openldap.org/its/> ##
20049 ## --------------------------------------------- ##
20052 sed "s/^/$as_me: WARNING: /" >&2
20055 echo "$as_me:$LINENO: checking for $ac_header" >&5
20056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20058 echo $ECHO_N "(cached) $ECHO_C" >&6
20060 eval "$as_ac_Header=\$ac_header_preproc"
20062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20067 cat >>confdefs.h <<_ACEOF
20068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20076 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20077 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20078 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
20079 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20080 echo $ECHO_N "(cached) $ECHO_C" >&6
20082 ac_check_lib_save_LIBS=$LIBS
20083 LIBS="-lgnutls $LIBS"
20084 cat >conftest.$ac_ext <<_ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20091 /* Override any gcc2 internal prototype to avoid an error. */
20095 /* We use char because int might match the return type of a gcc2
20096 builtin and then its argument prototype would still apply. */
20097 char gnutls_init ();
20106 rm -f conftest.$ac_objext conftest$ac_exeext
20107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20108 (eval $ac_link) 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } &&
20115 { ac_try='test -z "$ac_c_werror_flag"
20116 || test ! -s conftest.err'
20117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118 (eval $ac_try) 2>&5
20120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121 (exit $ac_status); }; } &&
20122 { ac_try='test -s conftest$ac_exeext'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; }; then
20128 ac_cv_lib_gnutls_gnutls_init=yes
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 ac_cv_lib_gnutls_gnutls_init=no
20135 rm -f conftest.err conftest.$ac_objext \
20136 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20139 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20140 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
20141 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20148 if test $have_gnutls = yes ; then
20152 TLS_LIBS="-lgnutls"
20155 cat >>confdefs.h <<\_ACEOF
20156 #define HAVE_GNUTLS 1
20165 if test $ol_link_tls = yes ; then
20167 cat >>confdefs.h <<\_ACEOF
20172 elif test $ol_with_tls = auto ; then
20173 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20174 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20175 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20176 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20177 elif test $ol_with_tls != no ; then
20178 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20179 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20180 { (exit 1); exit 1; }; }
20182 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20183 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20186 if test $ol_enable_lmpasswd != no; then
20187 if test $ol_link_tls != yes ; then
20188 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20189 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20190 { (exit 1); exit 1; }; }
20194 cat >>confdefs.h <<\_ACEOF
20195 #define SLAPD_LMHASH 1
20202 case $ol_with_threads in auto | yes | nt)
20205 echo "$as_me:$LINENO: checking for _beginthread" >&5
20206 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
20207 if test "${ac_cv_func__beginthread+set}" = set; then
20208 echo $ECHO_N "(cached) $ECHO_C" >&6
20210 cat >conftest.$ac_ext <<_ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20218 #define _beginthread innocuous__beginthread
20220 /* System header to define __stub macros and hopefully few prototypes,
20221 which can conflict with char _beginthread (); below.
20222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20223 <limits.h> exists even on freestanding compilers. */
20226 # include <limits.h>
20228 # include <assert.h>
20231 #undef _beginthread
20233 /* Override any gcc2 internal prototype to avoid an error. */
20238 /* We use char because int might match the return type of a gcc2
20239 builtin and then its argument prototype would still apply. */
20240 char _beginthread ();
20241 /* The GNU C library defines this for functions which it implements
20242 to always fail with ENOSYS. Some functions are actually named
20243 something starting with __ and the normal name is an alias. */
20244 #if defined (__stub__beginthread) || defined (__stub____beginthread)
20247 char (*f) () = _beginthread;
20256 return f != _beginthread;
20261 rm -f conftest.$ac_objext conftest$ac_exeext
20262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>conftest.er1
20265 grep -v '^ *+' conftest.er1 >conftest.err
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } &&
20270 { ac_try='test -z "$ac_c_werror_flag"
20271 || test ! -s conftest.err'
20272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20273 (eval $ac_try) 2>&5
20275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276 (exit $ac_status); }; } &&
20277 { ac_try='test -s conftest$ac_exeext'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; }; then
20283 ac_cv_func__beginthread=yes
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_func__beginthread=no
20290 rm -f conftest.err conftest.$ac_objext \
20291 conftest$ac_exeext conftest.$ac_ext
20293 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20294 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
20297 if test $ac_cv_func__beginthread = yes ; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_NT_THREADS 1
20303 ol_cv_nt_threads=yes
20307 if test "$ol_cv_nt_threads" = yes ; then
20309 ol_with_threads=found
20310 ol_with_yielding_select=yes
20313 cat >>confdefs.h <<\_ACEOF
20314 #define HAVE_NT_SERVICE_MANAGER 1
20318 cat >>confdefs.h <<\_ACEOF
20319 #define HAVE_NT_EVENT_LOG 1
20324 if test $ol_with_threads = nt ; then
20325 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20326 echo "$as_me: error: could not locate NT Threads" >&2;}
20327 { (exit 1); exit 1; }; }
20332 case $ol_with_threads in auto | yes | posix)
20335 for ac_header in pthread.h
20337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20339 echo "$as_me:$LINENO: checking for $ac_header" >&5
20340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20342 echo $ECHO_N "(cached) $ECHO_C" >&6
20344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20347 # Is the header compilable?
20348 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20350 cat >conftest.$ac_ext <<_ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20356 $ac_includes_default
20357 #include <$ac_header>
20359 rm -f conftest.$ac_objext
20360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20361 (eval $ac_compile) 2>conftest.er1
20363 grep -v '^ *+' conftest.er1 >conftest.err
20365 cat conftest.err >&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); } &&
20368 { ac_try='test -z "$ac_c_werror_flag"
20369 || test ! -s conftest.err'
20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20371 (eval $ac_try) 2>&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); }; } &&
20375 { ac_try='test -s conftest.$ac_objext'
20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20377 (eval $ac_try) 2>&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); }; }; then
20381 ac_header_compiler=yes
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20386 ac_header_compiler=no
20388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20389 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20390 echo "${ECHO_T}$ac_header_compiler" >&6
20392 # Is the header present?
20393 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20394 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20395 cat >conftest.$ac_ext <<_ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <$ac_header>
20403 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20404 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20406 grep -v '^ *+' conftest.er1 >conftest.err
20408 cat conftest.err >&5
20409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } >/dev/null; then
20411 if test -s conftest.err; then
20412 ac_cpp_err=$ac_c_preproc_warn_flag
20413 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20420 if test -z "$ac_cpp_err"; then
20421 ac_header_preproc=yes
20423 echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20426 ac_header_preproc=no
20428 rm -f conftest.err conftest.$ac_ext
20429 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20430 echo "${ECHO_T}$ac_header_preproc" >&6
20432 # So? What about this header?
20433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20439 ac_header_preproc=yes
20442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20456 ## --------------------------------------------- ##
20457 ## Report this to <http://www.openldap.org/its/> ##
20458 ## --------------------------------------------- ##
20461 sed "s/^/$as_me: WARNING: /" >&2
20464 echo "$as_me:$LINENO: checking for $ac_header" >&5
20465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20466 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 eval "$as_ac_Header=\$ac_header_preproc"
20471 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20472 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20475 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20485 if test $ac_cv_header_pthread_h = yes ; then
20486 echo "$as_me:$LINENO: checking POSIX thread version" >&5
20487 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
20488 if test "${ol_cv_pthread_version+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 # include <pthread.h>
20505 int i = PTHREAD_CREATE_JOINABLE;
20511 rm -f conftest.$ac_objext
20512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20513 (eval $ac_compile) 2>conftest.er1
20515 grep -v '^ *+' conftest.er1 >conftest.err
20517 cat conftest.err >&5
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); } &&
20520 { ac_try='test -z "$ac_c_werror_flag"
20521 || test ! -s conftest.err'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; } &&
20527 { ac_try='test -s conftest.$ac_objext'
20528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20529 (eval $ac_try) 2>&5
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20534 cat >conftest.$ac_ext <<_ACEOF
20537 cat confdefs.h >>conftest.$ac_ext
20538 cat >>conftest.$ac_ext <<_ACEOF
20539 /* end confdefs.h. */
20540 #include <pthread.h>
20543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20544 $EGREP "pthread_detach" >/dev/null 2>&1; then
20545 ol_cv_pthread_version=10
20547 ol_cv_pthread_version=8
20552 echo "$as_me: failed program was:" >&5
20553 sed 's/^/| /' conftest.$ac_ext >&5
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 # include <pthread.h>
20564 # ifdef PTHREAD_CREATE_UNDETACHED
20569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20570 $EGREP "draft7" >/dev/null 2>&1; then
20571 ol_cv_pthread_version=7
20574 cat >conftest.$ac_ext <<_ACEOF
20577 cat confdefs.h >>conftest.$ac_ext
20578 cat >>conftest.$ac_ext <<_ACEOF
20579 /* end confdefs.h. */
20580 #include <pthread.h>
20583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20584 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20585 ol_cv_pthread_version=6
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20595 # include <pthread.h>
20596 #ifdef PTHREAD_MUTEX_INITIALIZER
20601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20602 $EGREP "draft5" >/dev/null 2>&1; then
20603 ol_cv_pthread_version=5
20605 ol_cv_pthread_version=4
20616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20619 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20620 echo "${ECHO_T}$ol_cv_pthread_version" >&6
20623 if test $ol_cv_pthread_version != 0 ; then
20625 cat >>confdefs.h <<_ACEOF
20626 #define HAVE_PTHREADS $ol_cv_pthread_version
20630 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20631 echo "$as_me: error: unknown pthread version" >&2;}
20632 { (exit 1); exit 1; }; }
20635 # consider threads found
20636 ol_with_threads=found
20639 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20640 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
20641 if test "${ol_cv_header_linux_threads+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 cat >conftest.$ac_ext <<_ACEOF
20647 cat confdefs.h >>conftest.$ac_ext
20648 cat >>conftest.$ac_ext <<_ACEOF
20649 /* end confdefs.h. */
20650 #include <pthread.h>
20652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20653 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20654 ol_cv_header_linux_threads=yes
20656 ol_cv_header_linux_threads=no
20662 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20663 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
20664 if test $ol_cv_header_linux_threads = yes; then
20666 cat >>confdefs.h <<\_ACEOF
20667 #define HAVE_LINUX_THREADS 1
20673 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20674 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
20675 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20676 echo $ECHO_N "(cached) $ECHO_C" >&6
20678 cat >conftest.$ac_ext <<_ACEOF
20681 cat confdefs.h >>conftest.$ac_ext
20682 cat >>conftest.$ac_ext <<_ACEOF
20683 /* end confdefs.h. */
20684 #include <pthread.h>
20685 #ifdef _POSIX_THREAD_IS_GNU_PTH
20690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20691 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20692 ol_cv_header_gnu_pth_pthread_h=yes
20694 ol_cv_header_gnu_pth_pthread_h=no
20700 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20701 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
20704 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20706 for ac_header in sched.h
20708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20710 echo "$as_me:$LINENO: checking for $ac_header" >&5
20711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20718 # Is the header compilable?
20719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20727 $ac_includes_default
20728 #include <$ac_header>
20730 rm -f conftest.$ac_objext
20731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20732 (eval $ac_compile) 2>conftest.er1
20734 grep -v '^ *+' conftest.er1 >conftest.err
20736 cat conftest.err >&5
20737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
20739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_header_compiler=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_header_compiler=no
20759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20761 echo "${ECHO_T}$ac_header_compiler" >&6
20763 # Is the header present?
20764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 #include <$ac_header>
20774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20777 grep -v '^ *+' conftest.er1 >conftest.err
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } >/dev/null; then
20782 if test -s conftest.err; then
20783 ac_cpp_err=$ac_c_preproc_warn_flag
20784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20791 if test -z "$ac_cpp_err"; then
20792 ac_header_preproc=yes
20794 echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.$ac_ext >&5
20797 ac_header_preproc=no
20799 rm -f conftest.err conftest.$ac_ext
20800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20801 echo "${ECHO_T}$ac_header_preproc" >&6
20803 # So? What about this header?
20804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20810 ac_header_preproc=yes
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20827 ## --------------------------------------------- ##
20828 ## Report this to <http://www.openldap.org/its/> ##
20829 ## --------------------------------------------- ##
20832 sed "s/^/$as_me: WARNING: /" >&2
20835 echo "$as_me:$LINENO: checking for $ac_header" >&5
20836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 eval "$as_ac_Header=\$ac_header_preproc"
20842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20847 cat >>confdefs.h <<_ACEOF
20848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20858 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20859 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
20860 if test "${ol_cv_pthread_create+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 if test "$cross_compiling" = yes; then
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20872 /* pthread test headers */
20873 #include <pthread.h>
20874 #if HAVE_PTHREADS < 7
20878 #define NULL (void*)0
20881 static void *task(p)
20884 return (void *) (p == NULL);
20891 /* pthread test function */
20892 #ifndef PTHREAD_CREATE_DETACHED
20893 #define PTHREAD_CREATE_DETACHED 1
20897 int detach = PTHREAD_CREATE_DETACHED;
20899 #if HAVE_PTHREADS > 4
20900 /* Final pthreads */
20901 pthread_attr_t attr;
20903 status = pthread_attr_init(&attr);
20904 if( status ) return status;
20906 #if HAVE_PTHREADS < 7
20907 status = pthread_attr_setdetachstate(&attr, &detach);
20908 if( status < 0 ) status = errno;
20910 status = pthread_attr_setdetachstate(&attr, detach);
20912 if( status ) return status;
20913 status = pthread_create( &t, &attr, task, NULL );
20914 #if HAVE_PTHREADS < 7
20915 if( status < 0 ) status = errno;
20917 if( status ) return status;
20919 /* Draft 4 pthreads */
20920 status = pthread_create( &t, pthread_attr_default, task, NULL );
20921 if( status ) return errno;
20923 /* give thread a chance to complete */
20924 /* it should remain joinable and hence detachable */
20927 status = pthread_detach( &t );
20928 if( status ) return errno;
20931 #ifdef HAVE_LINUX_THREADS
20932 pthread_kill_other_threads_np();
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20943 (eval $ac_link) 2>conftest.er1
20945 grep -v '^ *+' conftest.er1 >conftest.err
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); } &&
20950 { ac_try='test -z "$ac_c_werror_flag"
20951 || test ! -s conftest.err'
20952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20953 (eval $ac_try) 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; } &&
20957 { ac_try='test -s conftest$ac_exeext'
20958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20959 (eval $ac_try) 2>&5
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); }; }; then
20963 ol_cv_pthread_create=yes
20965 echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 ol_cv_pthread_create=no
20970 rm -f conftest.err conftest.$ac_objext \
20971 conftest$ac_exeext conftest.$ac_ext
20973 cat >conftest.$ac_ext <<_ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h. */
20980 /* pthread test headers */
20981 #include <pthread.h>
20982 #if HAVE_PTHREADS < 7
20986 #define NULL (void*)0
20989 static void *task(p)
20992 return (void *) (p == NULL);
20996 int main(argc, argv)
21001 /* pthread test function */
21002 #ifndef PTHREAD_CREATE_DETACHED
21003 #define PTHREAD_CREATE_DETACHED 1
21007 int detach = PTHREAD_CREATE_DETACHED;
21009 #if HAVE_PTHREADS > 4
21010 /* Final pthreads */
21011 pthread_attr_t attr;
21013 status = pthread_attr_init(&attr);
21014 if( status ) return status;
21016 #if HAVE_PTHREADS < 7
21017 status = pthread_attr_setdetachstate(&attr, &detach);
21018 if( status < 0 ) status = errno;
21020 status = pthread_attr_setdetachstate(&attr, detach);
21022 if( status ) return status;
21023 status = pthread_create( &t, &attr, task, NULL );
21024 #if HAVE_PTHREADS < 7
21025 if( status < 0 ) status = errno;
21027 if( status ) return status;
21029 /* Draft 4 pthreads */
21030 status = pthread_create( &t, pthread_attr_default, task, NULL );
21031 if( status ) return errno;
21033 /* give thread a chance to complete */
21034 /* it should remain joinable and hence detachable */
21037 status = pthread_detach( &t );
21038 if( status ) return errno;
21041 #ifdef HAVE_LINUX_THREADS
21042 pthread_kill_other_threads_np();
21050 rm -f conftest$ac_exeext
21051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21052 (eval $ac_link) 2>&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 ol_cv_pthread_create=yes
21063 echo "$as_me: program exited with status $ac_status" >&5
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ( exit $ac_status )
21068 ol_cv_pthread_create=no
21070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21073 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21074 echo "${ECHO_T}$ol_cv_pthread_create" >&6
21076 if test $ol_cv_pthread_create != no ; then
21077 ol_link_threads=posix
21078 ol_link_pthreads=""
21081 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21082 if test "$ol_link_threads" = no ; then
21084 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21085 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
21086 if test "${ol_cv_pthread_kthread+set}" = set; then
21087 echo $ECHO_N "(cached) $ECHO_C" >&6
21092 LIBS="-kthread $LIBS"
21094 if test "$cross_compiling" = yes; then
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21102 /* pthread test headers */
21103 #include <pthread.h>
21104 #if HAVE_PTHREADS < 7
21108 #define NULL (void*)0
21111 static void *task(p)
21114 return (void *) (p == NULL);
21121 /* pthread test function */
21122 #ifndef PTHREAD_CREATE_DETACHED
21123 #define PTHREAD_CREATE_DETACHED 1
21127 int detach = PTHREAD_CREATE_DETACHED;
21129 #if HAVE_PTHREADS > 4
21130 /* Final pthreads */
21131 pthread_attr_t attr;
21133 status = pthread_attr_init(&attr);
21134 if( status ) return status;
21136 #if HAVE_PTHREADS < 7
21137 status = pthread_attr_setdetachstate(&attr, &detach);
21138 if( status < 0 ) status = errno;
21140 status = pthread_attr_setdetachstate(&attr, detach);
21142 if( status ) return status;
21143 status = pthread_create( &t, &attr, task, NULL );
21144 #if HAVE_PTHREADS < 7
21145 if( status < 0 ) status = errno;
21147 if( status ) return status;
21149 /* Draft 4 pthreads */
21150 status = pthread_create( &t, pthread_attr_default, task, NULL );
21151 if( status ) return errno;
21153 /* give thread a chance to complete */
21154 /* it should remain joinable and hence detachable */
21157 status = pthread_detach( &t );
21158 if( status ) return errno;
21161 #ifdef HAVE_LINUX_THREADS
21162 pthread_kill_other_threads_np();
21171 rm -f conftest.$ac_objext conftest$ac_exeext
21172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21173 (eval $ac_link) 2>conftest.er1
21175 grep -v '^ *+' conftest.er1 >conftest.err
21177 cat conftest.err >&5
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
21180 { ac_try='test -z "$ac_c_werror_flag"
21181 || test ! -s conftest.err'
21182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 (eval $ac_try) 2>&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; } &&
21187 { ac_try='test -s conftest$ac_exeext'
21188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21189 (eval $ac_try) 2>&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); }; }; then
21193 ol_cv_pthread_kthread=yes
21195 echo "$as_me: failed program was:" >&5
21196 sed 's/^/| /' conftest.$ac_ext >&5
21198 ol_cv_pthread_kthread=no
21200 rm -f conftest.err conftest.$ac_objext \
21201 conftest$ac_exeext conftest.$ac_ext
21203 cat >conftest.$ac_ext <<_ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21210 /* pthread test headers */
21211 #include <pthread.h>
21212 #if HAVE_PTHREADS < 7
21216 #define NULL (void*)0
21219 static void *task(p)
21222 return (void *) (p == NULL);
21226 int main(argc, argv)
21231 /* pthread test function */
21232 #ifndef PTHREAD_CREATE_DETACHED
21233 #define PTHREAD_CREATE_DETACHED 1
21237 int detach = PTHREAD_CREATE_DETACHED;
21239 #if HAVE_PTHREADS > 4
21240 /* Final pthreads */
21241 pthread_attr_t attr;
21243 status = pthread_attr_init(&attr);
21244 if( status ) return status;
21246 #if HAVE_PTHREADS < 7
21247 status = pthread_attr_setdetachstate(&attr, &detach);
21248 if( status < 0 ) status = errno;
21250 status = pthread_attr_setdetachstate(&attr, detach);
21252 if( status ) return status;
21253 status = pthread_create( &t, &attr, task, NULL );
21254 #if HAVE_PTHREADS < 7
21255 if( status < 0 ) status = errno;
21257 if( status ) return status;
21259 /* Draft 4 pthreads */
21260 status = pthread_create( &t, pthread_attr_default, task, NULL );
21261 if( status ) return errno;
21263 /* give thread a chance to complete */
21264 /* it should remain joinable and hence detachable */
21267 status = pthread_detach( &t );
21268 if( status ) return errno;
21271 #ifdef HAVE_LINUX_THREADS
21272 pthread_kill_other_threads_np();
21280 rm -f conftest$ac_exeext
21281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21282 (eval $ac_link) 2>&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ol_cv_pthread_kthread=yes
21293 echo "$as_me: program exited with status $ac_status" >&5
21294 echo "$as_me: failed program was:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ( exit $ac_status )
21298 ol_cv_pthread_kthread=no
21300 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21307 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21308 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
21310 if test $ol_cv_pthread_kthread = yes ; then
21311 ol_link_pthreads="-kthread"
21312 ol_link_threads=posix
21316 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21317 if test "$ol_link_threads" = no ; then
21319 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21320 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
21321 if test "${ol_cv_pthread_pthread+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21327 LIBS="-pthread $LIBS"
21329 if test "$cross_compiling" = yes; then
21330 cat >conftest.$ac_ext <<_ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h. */
21337 /* pthread test headers */
21338 #include <pthread.h>
21339 #if HAVE_PTHREADS < 7
21343 #define NULL (void*)0
21346 static void *task(p)
21349 return (void *) (p == NULL);
21356 /* pthread test function */
21357 #ifndef PTHREAD_CREATE_DETACHED
21358 #define PTHREAD_CREATE_DETACHED 1
21362 int detach = PTHREAD_CREATE_DETACHED;
21364 #if HAVE_PTHREADS > 4
21365 /* Final pthreads */
21366 pthread_attr_t attr;
21368 status = pthread_attr_init(&attr);
21369 if( status ) return status;
21371 #if HAVE_PTHREADS < 7
21372 status = pthread_attr_setdetachstate(&attr, &detach);
21373 if( status < 0 ) status = errno;
21375 status = pthread_attr_setdetachstate(&attr, detach);
21377 if( status ) return status;
21378 status = pthread_create( &t, &attr, task, NULL );
21379 #if HAVE_PTHREADS < 7
21380 if( status < 0 ) status = errno;
21382 if( status ) return status;
21384 /* Draft 4 pthreads */
21385 status = pthread_create( &t, pthread_attr_default, task, NULL );
21386 if( status ) return errno;
21388 /* give thread a chance to complete */
21389 /* it should remain joinable and hence detachable */
21392 status = pthread_detach( &t );
21393 if( status ) return errno;
21396 #ifdef HAVE_LINUX_THREADS
21397 pthread_kill_other_threads_np();
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21408 (eval $ac_link) 2>conftest.er1
21410 grep -v '^ *+' conftest.er1 >conftest.err
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
21415 { ac_try='test -z "$ac_c_werror_flag"
21416 || test ! -s conftest.err'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest$ac_exeext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ol_cv_pthread_pthread=yes
21430 echo "$as_me: failed program was:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 ol_cv_pthread_pthread=no
21435 rm -f conftest.err conftest.$ac_objext \
21436 conftest$ac_exeext conftest.$ac_ext
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21445 /* pthread test headers */
21446 #include <pthread.h>
21447 #if HAVE_PTHREADS < 7
21451 #define NULL (void*)0
21454 static void *task(p)
21457 return (void *) (p == NULL);
21461 int main(argc, argv)
21466 /* pthread test function */
21467 #ifndef PTHREAD_CREATE_DETACHED
21468 #define PTHREAD_CREATE_DETACHED 1
21472 int detach = PTHREAD_CREATE_DETACHED;
21474 #if HAVE_PTHREADS > 4
21475 /* Final pthreads */
21476 pthread_attr_t attr;
21478 status = pthread_attr_init(&attr);
21479 if( status ) return status;
21481 #if HAVE_PTHREADS < 7
21482 status = pthread_attr_setdetachstate(&attr, &detach);
21483 if( status < 0 ) status = errno;
21485 status = pthread_attr_setdetachstate(&attr, detach);
21487 if( status ) return status;
21488 status = pthread_create( &t, &attr, task, NULL );
21489 #if HAVE_PTHREADS < 7
21490 if( status < 0 ) status = errno;
21492 if( status ) return status;
21494 /* Draft 4 pthreads */
21495 status = pthread_create( &t, pthread_attr_default, task, NULL );
21496 if( status ) return errno;
21498 /* give thread a chance to complete */
21499 /* it should remain joinable and hence detachable */
21502 status = pthread_detach( &t );
21503 if( status ) return errno;
21506 #ifdef HAVE_LINUX_THREADS
21507 pthread_kill_other_threads_np();
21515 rm -f conftest$ac_exeext
21516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21517 (eval $ac_link) 2>&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ol_cv_pthread_pthread=yes
21528 echo "$as_me: program exited with status $ac_status" >&5
21529 echo "$as_me: failed program was:" >&5
21530 sed 's/^/| /' conftest.$ac_ext >&5
21532 ( exit $ac_status )
21533 ol_cv_pthread_pthread=no
21535 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21542 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21543 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
21545 if test $ol_cv_pthread_pthread = yes ; then
21546 ol_link_pthreads="-pthread"
21547 ol_link_threads=posix
21551 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21552 if test "$ol_link_threads" = no ; then
21554 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21555 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
21556 if test "${ol_cv_pthread_pthreads+set}" = set; then
21557 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 LIBS="-pthreads $LIBS"
21564 if test "$cross_compiling" = yes; then
21565 cat >conftest.$ac_ext <<_ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h. */
21572 /* pthread test headers */
21573 #include <pthread.h>
21574 #if HAVE_PTHREADS < 7
21578 #define NULL (void*)0
21581 static void *task(p)
21584 return (void *) (p == NULL);
21591 /* pthread test function */
21592 #ifndef PTHREAD_CREATE_DETACHED
21593 #define PTHREAD_CREATE_DETACHED 1
21597 int detach = PTHREAD_CREATE_DETACHED;
21599 #if HAVE_PTHREADS > 4
21600 /* Final pthreads */
21601 pthread_attr_t attr;
21603 status = pthread_attr_init(&attr);
21604 if( status ) return status;
21606 #if HAVE_PTHREADS < 7
21607 status = pthread_attr_setdetachstate(&attr, &detach);
21608 if( status < 0 ) status = errno;
21610 status = pthread_attr_setdetachstate(&attr, detach);
21612 if( status ) return status;
21613 status = pthread_create( &t, &attr, task, NULL );
21614 #if HAVE_PTHREADS < 7
21615 if( status < 0 ) status = errno;
21617 if( status ) return status;
21619 /* Draft 4 pthreads */
21620 status = pthread_create( &t, pthread_attr_default, task, NULL );
21621 if( status ) return errno;
21623 /* give thread a chance to complete */
21624 /* it should remain joinable and hence detachable */
21627 status = pthread_detach( &t );
21628 if( status ) return errno;
21631 #ifdef HAVE_LINUX_THREADS
21632 pthread_kill_other_threads_np();
21641 rm -f conftest.$ac_objext conftest$ac_exeext
21642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21643 (eval $ac_link) 2>conftest.er1
21645 grep -v '^ *+' conftest.er1 >conftest.err
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
21650 { ac_try='test -z "$ac_c_werror_flag"
21651 || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest$ac_exeext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 ol_cv_pthread_pthreads=yes
21665 echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ol_cv_pthread_pthreads=no
21670 rm -f conftest.err conftest.$ac_objext \
21671 conftest$ac_exeext conftest.$ac_ext
21673 cat >conftest.$ac_ext <<_ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h. */
21680 /* pthread test headers */
21681 #include <pthread.h>
21682 #if HAVE_PTHREADS < 7
21686 #define NULL (void*)0
21689 static void *task(p)
21692 return (void *) (p == NULL);
21696 int main(argc, argv)
21701 /* pthread test function */
21702 #ifndef PTHREAD_CREATE_DETACHED
21703 #define PTHREAD_CREATE_DETACHED 1
21707 int detach = PTHREAD_CREATE_DETACHED;
21709 #if HAVE_PTHREADS > 4
21710 /* Final pthreads */
21711 pthread_attr_t attr;
21713 status = pthread_attr_init(&attr);
21714 if( status ) return status;
21716 #if HAVE_PTHREADS < 7
21717 status = pthread_attr_setdetachstate(&attr, &detach);
21718 if( status < 0 ) status = errno;
21720 status = pthread_attr_setdetachstate(&attr, detach);
21722 if( status ) return status;
21723 status = pthread_create( &t, &attr, task, NULL );
21724 #if HAVE_PTHREADS < 7
21725 if( status < 0 ) status = errno;
21727 if( status ) return status;
21729 /* Draft 4 pthreads */
21730 status = pthread_create( &t, pthread_attr_default, task, NULL );
21731 if( status ) return errno;
21733 /* give thread a chance to complete */
21734 /* it should remain joinable and hence detachable */
21737 status = pthread_detach( &t );
21738 if( status ) return errno;
21741 #ifdef HAVE_LINUX_THREADS
21742 pthread_kill_other_threads_np();
21750 rm -f conftest$ac_exeext
21751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21752 (eval $ac_link) 2>&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 ol_cv_pthread_pthreads=yes
21763 echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21767 ( exit $ac_status )
21768 ol_cv_pthread_pthreads=no
21770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21777 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21778 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
21780 if test $ol_cv_pthread_pthreads = yes ; then
21781 ol_link_pthreads="-pthreads"
21782 ol_link_threads=posix
21786 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21787 if test "$ol_link_threads" = no ; then
21789 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21790 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
21791 if test "${ol_cv_pthread_mthreads+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21797 LIBS="-mthreads $LIBS"
21799 if test "$cross_compiling" = yes; then
21800 cat >conftest.$ac_ext <<_ACEOF
21803 cat confdefs.h >>conftest.$ac_ext
21804 cat >>conftest.$ac_ext <<_ACEOF
21805 /* end confdefs.h. */
21807 /* pthread test headers */
21808 #include <pthread.h>
21809 #if HAVE_PTHREADS < 7
21813 #define NULL (void*)0
21816 static void *task(p)
21819 return (void *) (p == NULL);
21826 /* pthread test function */
21827 #ifndef PTHREAD_CREATE_DETACHED
21828 #define PTHREAD_CREATE_DETACHED 1
21832 int detach = PTHREAD_CREATE_DETACHED;
21834 #if HAVE_PTHREADS > 4
21835 /* Final pthreads */
21836 pthread_attr_t attr;
21838 status = pthread_attr_init(&attr);
21839 if( status ) return status;
21841 #if HAVE_PTHREADS < 7
21842 status = pthread_attr_setdetachstate(&attr, &detach);
21843 if( status < 0 ) status = errno;
21845 status = pthread_attr_setdetachstate(&attr, detach);
21847 if( status ) return status;
21848 status = pthread_create( &t, &attr, task, NULL );
21849 #if HAVE_PTHREADS < 7
21850 if( status < 0 ) status = errno;
21852 if( status ) return status;
21854 /* Draft 4 pthreads */
21855 status = pthread_create( &t, pthread_attr_default, task, NULL );
21856 if( status ) return errno;
21858 /* give thread a chance to complete */
21859 /* it should remain joinable and hence detachable */
21862 status = pthread_detach( &t );
21863 if( status ) return errno;
21866 #ifdef HAVE_LINUX_THREADS
21867 pthread_kill_other_threads_np();
21876 rm -f conftest.$ac_objext conftest$ac_exeext
21877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21878 (eval $ac_link) 2>conftest.er1
21880 grep -v '^ *+' conftest.er1 >conftest.err
21882 cat conftest.err >&5
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); } &&
21885 { ac_try='test -z "$ac_c_werror_flag"
21886 || test ! -s conftest.err'
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; } &&
21892 { ac_try='test -s conftest$ac_exeext'
21893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21894 (eval $ac_try) 2>&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); }; }; then
21898 ol_cv_pthread_mthreads=yes
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ol_cv_pthread_mthreads=no
21905 rm -f conftest.err conftest.$ac_objext \
21906 conftest$ac_exeext conftest.$ac_ext
21908 cat >conftest.$ac_ext <<_ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h. */
21915 /* pthread test headers */
21916 #include <pthread.h>
21917 #if HAVE_PTHREADS < 7
21921 #define NULL (void*)0
21924 static void *task(p)
21927 return (void *) (p == NULL);
21931 int main(argc, argv)
21936 /* pthread test function */
21937 #ifndef PTHREAD_CREATE_DETACHED
21938 #define PTHREAD_CREATE_DETACHED 1
21942 int detach = PTHREAD_CREATE_DETACHED;
21944 #if HAVE_PTHREADS > 4
21945 /* Final pthreads */
21946 pthread_attr_t attr;
21948 status = pthread_attr_init(&attr);
21949 if( status ) return status;
21951 #if HAVE_PTHREADS < 7
21952 status = pthread_attr_setdetachstate(&attr, &detach);
21953 if( status < 0 ) status = errno;
21955 status = pthread_attr_setdetachstate(&attr, detach);
21957 if( status ) return status;
21958 status = pthread_create( &t, &attr, task, NULL );
21959 #if HAVE_PTHREADS < 7
21960 if( status < 0 ) status = errno;
21962 if( status ) return status;
21964 /* Draft 4 pthreads */
21965 status = pthread_create( &t, pthread_attr_default, task, NULL );
21966 if( status ) return errno;
21968 /* give thread a chance to complete */
21969 /* it should remain joinable and hence detachable */
21972 status = pthread_detach( &t );
21973 if( status ) return errno;
21976 #ifdef HAVE_LINUX_THREADS
21977 pthread_kill_other_threads_np();
21985 rm -f conftest$ac_exeext
21986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21987 (eval $ac_link) 2>&5
21989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992 (eval $ac_try) 2>&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); }; }; then
21996 ol_cv_pthread_mthreads=yes
21998 echo "$as_me: program exited with status $ac_status" >&5
21999 echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22002 ( exit $ac_status )
22003 ol_cv_pthread_mthreads=no
22005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22012 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22013 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
22015 if test $ol_cv_pthread_mthreads = yes ; then
22016 ol_link_pthreads="-mthreads"
22017 ol_link_threads=posix
22021 # Pthread try link: -thread (ol_cv_pthread_thread)
22022 if test "$ol_link_threads" = no ; then
22024 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22025 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
22026 if test "${ol_cv_pthread_thread+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 LIBS="-thread $LIBS"
22034 if test "$cross_compiling" = yes; then
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22042 /* pthread test headers */
22043 #include <pthread.h>
22044 #if HAVE_PTHREADS < 7
22048 #define NULL (void*)0
22051 static void *task(p)
22054 return (void *) (p == NULL);
22061 /* pthread test function */
22062 #ifndef PTHREAD_CREATE_DETACHED
22063 #define PTHREAD_CREATE_DETACHED 1
22067 int detach = PTHREAD_CREATE_DETACHED;
22069 #if HAVE_PTHREADS > 4
22070 /* Final pthreads */
22071 pthread_attr_t attr;
22073 status = pthread_attr_init(&attr);
22074 if( status ) return status;
22076 #if HAVE_PTHREADS < 7
22077 status = pthread_attr_setdetachstate(&attr, &detach);
22078 if( status < 0 ) status = errno;
22080 status = pthread_attr_setdetachstate(&attr, detach);
22082 if( status ) return status;
22083 status = pthread_create( &t, &attr, task, NULL );
22084 #if HAVE_PTHREADS < 7
22085 if( status < 0 ) status = errno;
22087 if( status ) return status;
22089 /* Draft 4 pthreads */
22090 status = pthread_create( &t, pthread_attr_default, task, NULL );
22091 if( status ) return errno;
22093 /* give thread a chance to complete */
22094 /* it should remain joinable and hence detachable */
22097 status = pthread_detach( &t );
22098 if( status ) return errno;
22101 #ifdef HAVE_LINUX_THREADS
22102 pthread_kill_other_threads_np();
22111 rm -f conftest.$ac_objext conftest$ac_exeext
22112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22113 (eval $ac_link) 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } &&
22120 { ac_try='test -z "$ac_c_werror_flag"
22121 || test ! -s conftest.err'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; } &&
22127 { ac_try='test -s conftest$ac_exeext'
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; }; then
22133 ol_cv_pthread_thread=yes
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ol_cv_pthread_thread=no
22140 rm -f conftest.err conftest.$ac_objext \
22141 conftest$ac_exeext conftest.$ac_ext
22143 cat >conftest.$ac_ext <<_ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22150 /* pthread test headers */
22151 #include <pthread.h>
22152 #if HAVE_PTHREADS < 7
22156 #define NULL (void*)0
22159 static void *task(p)
22162 return (void *) (p == NULL);
22166 int main(argc, argv)
22171 /* pthread test function */
22172 #ifndef PTHREAD_CREATE_DETACHED
22173 #define PTHREAD_CREATE_DETACHED 1
22177 int detach = PTHREAD_CREATE_DETACHED;
22179 #if HAVE_PTHREADS > 4
22180 /* Final pthreads */
22181 pthread_attr_t attr;
22183 status = pthread_attr_init(&attr);
22184 if( status ) return status;
22186 #if HAVE_PTHREADS < 7
22187 status = pthread_attr_setdetachstate(&attr, &detach);
22188 if( status < 0 ) status = errno;
22190 status = pthread_attr_setdetachstate(&attr, detach);
22192 if( status ) return status;
22193 status = pthread_create( &t, &attr, task, NULL );
22194 #if HAVE_PTHREADS < 7
22195 if( status < 0 ) status = errno;
22197 if( status ) return status;
22199 /* Draft 4 pthreads */
22200 status = pthread_create( &t, pthread_attr_default, task, NULL );
22201 if( status ) return errno;
22203 /* give thread a chance to complete */
22204 /* it should remain joinable and hence detachable */
22207 status = pthread_detach( &t );
22208 if( status ) return errno;
22211 #ifdef HAVE_LINUX_THREADS
22212 pthread_kill_other_threads_np();
22220 rm -f conftest$ac_exeext
22221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22222 (eval $ac_link) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22227 (eval $ac_try) 2>&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ol_cv_pthread_thread=yes
22233 echo "$as_me: program exited with status $ac_status" >&5
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ( exit $ac_status )
22238 ol_cv_pthread_thread=no
22240 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22247 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22248 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
22250 if test $ol_cv_pthread_thread = yes ; then
22251 ol_link_pthreads="-thread"
22252 ol_link_threads=posix
22257 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22258 if test "$ol_link_threads" = no ; then
22259 # try -lpthread -lmach -lexc -lc_r
22260 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22261 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
22262 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22263 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22270 if test "$cross_compiling" = yes; then
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22278 /* pthread test headers */
22279 #include <pthread.h>
22280 #if HAVE_PTHREADS < 7
22284 #define NULL (void*)0
22287 static void *task(p)
22290 return (void *) (p == NULL);
22297 /* pthread test function */
22298 #ifndef PTHREAD_CREATE_DETACHED
22299 #define PTHREAD_CREATE_DETACHED 1
22303 int detach = PTHREAD_CREATE_DETACHED;
22305 #if HAVE_PTHREADS > 4
22306 /* Final pthreads */
22307 pthread_attr_t attr;
22309 status = pthread_attr_init(&attr);
22310 if( status ) return status;
22312 #if HAVE_PTHREADS < 7
22313 status = pthread_attr_setdetachstate(&attr, &detach);
22314 if( status < 0 ) status = errno;
22316 status = pthread_attr_setdetachstate(&attr, detach);
22318 if( status ) return status;
22319 status = pthread_create( &t, &attr, task, NULL );
22320 #if HAVE_PTHREADS < 7
22321 if( status < 0 ) status = errno;
22323 if( status ) return status;
22325 /* Draft 4 pthreads */
22326 status = pthread_create( &t, pthread_attr_default, task, NULL );
22327 if( status ) return errno;
22329 /* give thread a chance to complete */
22330 /* it should remain joinable and hence detachable */
22333 status = pthread_detach( &t );
22334 if( status ) return errno;
22337 #ifdef HAVE_LINUX_THREADS
22338 pthread_kill_other_threads_np();
22347 rm -f conftest.$ac_objext conftest$ac_exeext
22348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22349 (eval $ac_link) 2>conftest.er1
22351 grep -v '^ *+' conftest.er1 >conftest.err
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } &&
22356 { ac_try='test -z "$ac_c_werror_flag"
22357 || test ! -s conftest.err'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; } &&
22363 { ac_try='test -s conftest$ac_exeext'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }; then
22369 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22376 rm -f conftest.err conftest.$ac_objext \
22377 conftest$ac_exeext conftest.$ac_ext
22379 cat >conftest.$ac_ext <<_ACEOF
22382 cat confdefs.h >>conftest.$ac_ext
22383 cat >>conftest.$ac_ext <<_ACEOF
22384 /* end confdefs.h. */
22386 /* pthread test headers */
22387 #include <pthread.h>
22388 #if HAVE_PTHREADS < 7
22392 #define NULL (void*)0
22395 static void *task(p)
22398 return (void *) (p == NULL);
22402 int main(argc, argv)
22407 /* pthread test function */
22408 #ifndef PTHREAD_CREATE_DETACHED
22409 #define PTHREAD_CREATE_DETACHED 1
22413 int detach = PTHREAD_CREATE_DETACHED;
22415 #if HAVE_PTHREADS > 4
22416 /* Final pthreads */
22417 pthread_attr_t attr;
22419 status = pthread_attr_init(&attr);
22420 if( status ) return status;
22422 #if HAVE_PTHREADS < 7
22423 status = pthread_attr_setdetachstate(&attr, &detach);
22424 if( status < 0 ) status = errno;
22426 status = pthread_attr_setdetachstate(&attr, detach);
22428 if( status ) return status;
22429 status = pthread_create( &t, &attr, task, NULL );
22430 #if HAVE_PTHREADS < 7
22431 if( status < 0 ) status = errno;
22433 if( status ) return status;
22435 /* Draft 4 pthreads */
22436 status = pthread_create( &t, pthread_attr_default, task, NULL );
22437 if( status ) return errno;
22439 /* give thread a chance to complete */
22440 /* it should remain joinable and hence detachable */
22443 status = pthread_detach( &t );
22444 if( status ) return errno;
22447 #ifdef HAVE_LINUX_THREADS
22448 pthread_kill_other_threads_np();
22456 rm -f conftest$ac_exeext
22457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22458 (eval $ac_link) 2>&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22469 echo "$as_me: program exited with status $ac_status" >&5
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 ( exit $ac_status )
22474 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22476 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22483 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22484 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
22486 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22487 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22488 ol_link_threads=posix
22492 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22493 if test "$ol_link_threads" = no ; then
22494 # try -lpthread -lmach -lexc
22495 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22496 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
22497 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 LIBS="-lpthread -lmach -lexc $LIBS"
22505 if test "$cross_compiling" = yes; then
22506 cat >conftest.$ac_ext <<_ACEOF
22509 cat confdefs.h >>conftest.$ac_ext
22510 cat >>conftest.$ac_ext <<_ACEOF
22511 /* end confdefs.h. */
22513 /* pthread test headers */
22514 #include <pthread.h>
22515 #if HAVE_PTHREADS < 7
22519 #define NULL (void*)0
22522 static void *task(p)
22525 return (void *) (p == NULL);
22532 /* pthread test function */
22533 #ifndef PTHREAD_CREATE_DETACHED
22534 #define PTHREAD_CREATE_DETACHED 1
22538 int detach = PTHREAD_CREATE_DETACHED;
22540 #if HAVE_PTHREADS > 4
22541 /* Final pthreads */
22542 pthread_attr_t attr;
22544 status = pthread_attr_init(&attr);
22545 if( status ) return status;
22547 #if HAVE_PTHREADS < 7
22548 status = pthread_attr_setdetachstate(&attr, &detach);
22549 if( status < 0 ) status = errno;
22551 status = pthread_attr_setdetachstate(&attr, detach);
22553 if( status ) return status;
22554 status = pthread_create( &t, &attr, task, NULL );
22555 #if HAVE_PTHREADS < 7
22556 if( status < 0 ) status = errno;
22558 if( status ) return status;
22560 /* Draft 4 pthreads */
22561 status = pthread_create( &t, pthread_attr_default, task, NULL );
22562 if( status ) return errno;
22564 /* give thread a chance to complete */
22565 /* it should remain joinable and hence detachable */
22568 status = pthread_detach( &t );
22569 if( status ) return errno;
22572 #ifdef HAVE_LINUX_THREADS
22573 pthread_kill_other_threads_np();
22582 rm -f conftest.$ac_objext conftest$ac_exeext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22584 (eval $ac_link) 2>conftest.er1
22586 grep -v '^ *+' conftest.er1 >conftest.err
22588 cat conftest.err >&5
22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590 (exit $ac_status); } &&
22591 { ac_try='test -z "$ac_c_werror_flag"
22592 || test ! -s conftest.err'
22593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22594 (eval $ac_try) 2>&5
22596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22597 (exit $ac_status); }; } &&
22598 { ac_try='test -s conftest$ac_exeext'
22599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22600 (eval $ac_try) 2>&5
22602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22603 (exit $ac_status); }; }; then
22604 ol_cv_pthread_lpthread_lmach_lexc=yes
22606 echo "$as_me: failed program was:" >&5
22607 sed 's/^/| /' conftest.$ac_ext >&5
22609 ol_cv_pthread_lpthread_lmach_lexc=no
22611 rm -f conftest.err conftest.$ac_objext \
22612 conftest$ac_exeext conftest.$ac_ext
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22621 /* pthread test headers */
22622 #include <pthread.h>
22623 #if HAVE_PTHREADS < 7
22627 #define NULL (void*)0
22630 static void *task(p)
22633 return (void *) (p == NULL);
22637 int main(argc, argv)
22642 /* pthread test function */
22643 #ifndef PTHREAD_CREATE_DETACHED
22644 #define PTHREAD_CREATE_DETACHED 1
22648 int detach = PTHREAD_CREATE_DETACHED;
22650 #if HAVE_PTHREADS > 4
22651 /* Final pthreads */
22652 pthread_attr_t attr;
22654 status = pthread_attr_init(&attr);
22655 if( status ) return status;
22657 #if HAVE_PTHREADS < 7
22658 status = pthread_attr_setdetachstate(&attr, &detach);
22659 if( status < 0 ) status = errno;
22661 status = pthread_attr_setdetachstate(&attr, detach);
22663 if( status ) return status;
22664 status = pthread_create( &t, &attr, task, NULL );
22665 #if HAVE_PTHREADS < 7
22666 if( status < 0 ) status = errno;
22668 if( status ) return status;
22670 /* Draft 4 pthreads */
22671 status = pthread_create( &t, pthread_attr_default, task, NULL );
22672 if( status ) return errno;
22674 /* give thread a chance to complete */
22675 /* it should remain joinable and hence detachable */
22678 status = pthread_detach( &t );
22679 if( status ) return errno;
22682 #ifdef HAVE_LINUX_THREADS
22683 pthread_kill_other_threads_np();
22691 rm -f conftest$ac_exeext
22692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22693 (eval $ac_link) 2>&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; }; then
22702 ol_cv_pthread_lpthread_lmach_lexc=yes
22704 echo "$as_me: program exited with status $ac_status" >&5
22705 echo "$as_me: failed program was:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 ( exit $ac_status )
22709 ol_cv_pthread_lpthread_lmach_lexc=no
22711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22718 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22719 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
22721 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22722 ol_link_pthreads="-lpthread -lmach -lexc"
22723 ol_link_threads=posix
22728 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22729 if test "$ol_link_threads" = no ; then
22730 # try -lpthread -Wl,-woff,85
22731 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22732 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
22733 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22734 echo $ECHO_N "(cached) $ECHO_C" >&6
22739 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22741 if test "$cross_compiling" = yes; then
22742 cat >conftest.$ac_ext <<_ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22749 /* pthread test headers */
22750 #include <pthread.h>
22751 #if HAVE_PTHREADS < 7
22755 #define NULL (void*)0
22758 static void *task(p)
22761 return (void *) (p == NULL);
22768 /* pthread test function */
22769 #ifndef PTHREAD_CREATE_DETACHED
22770 #define PTHREAD_CREATE_DETACHED 1
22774 int detach = PTHREAD_CREATE_DETACHED;
22776 #if HAVE_PTHREADS > 4
22777 /* Final pthreads */
22778 pthread_attr_t attr;
22780 status = pthread_attr_init(&attr);
22781 if( status ) return status;
22783 #if HAVE_PTHREADS < 7
22784 status = pthread_attr_setdetachstate(&attr, &detach);
22785 if( status < 0 ) status = errno;
22787 status = pthread_attr_setdetachstate(&attr, detach);
22789 if( status ) return status;
22790 status = pthread_create( &t, &attr, task, NULL );
22791 #if HAVE_PTHREADS < 7
22792 if( status < 0 ) status = errno;
22794 if( status ) return status;
22796 /* Draft 4 pthreads */
22797 status = pthread_create( &t, pthread_attr_default, task, NULL );
22798 if( status ) return errno;
22800 /* give thread a chance to complete */
22801 /* it should remain joinable and hence detachable */
22804 status = pthread_detach( &t );
22805 if( status ) return errno;
22808 #ifdef HAVE_LINUX_THREADS
22809 pthread_kill_other_threads_np();
22818 rm -f conftest.$ac_objext conftest$ac_exeext
22819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22820 (eval $ac_link) 2>conftest.er1
22822 grep -v '^ *+' conftest.er1 >conftest.err
22824 cat conftest.err >&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
22827 { ac_try='test -z "$ac_c_werror_flag"
22828 || test ! -s conftest.err'
22829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830 (eval $ac_try) 2>&5
22832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833 (exit $ac_status); }; } &&
22834 { ac_try='test -s conftest$ac_exeext'
22835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22836 (eval $ac_try) 2>&5
22838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839 (exit $ac_status); }; }; then
22840 ol_cv_pthread_lib_lpthread_woff=yes
22842 echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22845 ol_cv_pthread_lib_lpthread_woff=no
22847 rm -f conftest.err conftest.$ac_objext \
22848 conftest$ac_exeext conftest.$ac_ext
22850 cat >conftest.$ac_ext <<_ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 /* pthread test headers */
22858 #include <pthread.h>
22859 #if HAVE_PTHREADS < 7
22863 #define NULL (void*)0
22866 static void *task(p)
22869 return (void *) (p == NULL);
22873 int main(argc, argv)
22878 /* pthread test function */
22879 #ifndef PTHREAD_CREATE_DETACHED
22880 #define PTHREAD_CREATE_DETACHED 1
22884 int detach = PTHREAD_CREATE_DETACHED;
22886 #if HAVE_PTHREADS > 4
22887 /* Final pthreads */
22888 pthread_attr_t attr;
22890 status = pthread_attr_init(&attr);
22891 if( status ) return status;
22893 #if HAVE_PTHREADS < 7
22894 status = pthread_attr_setdetachstate(&attr, &detach);
22895 if( status < 0 ) status = errno;
22897 status = pthread_attr_setdetachstate(&attr, detach);
22899 if( status ) return status;
22900 status = pthread_create( &t, &attr, task, NULL );
22901 #if HAVE_PTHREADS < 7
22902 if( status < 0 ) status = errno;
22904 if( status ) return status;
22906 /* Draft 4 pthreads */
22907 status = pthread_create( &t, pthread_attr_default, task, NULL );
22908 if( status ) return errno;
22910 /* give thread a chance to complete */
22911 /* it should remain joinable and hence detachable */
22914 status = pthread_detach( &t );
22915 if( status ) return errno;
22918 #ifdef HAVE_LINUX_THREADS
22919 pthread_kill_other_threads_np();
22927 rm -f conftest$ac_exeext
22928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22929 (eval $ac_link) 2>&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 ol_cv_pthread_lib_lpthread_woff=yes
22940 echo "$as_me: program exited with status $ac_status" >&5
22941 echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22944 ( exit $ac_status )
22945 ol_cv_pthread_lib_lpthread_woff=no
22947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22954 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22955 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
22957 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22958 ol_link_pthreads="-lpthread -Wl,-woff,85"
22959 ol_link_threads=posix
22964 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22965 if test "$ol_link_threads" = no ; then
22967 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22968 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
22969 if test "${ol_cv_pthread_lpthread+set}" = set; then
22970 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 LIBS="-lpthread $LIBS"
22977 if test "$cross_compiling" = yes; then
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22985 /* pthread test headers */
22986 #include <pthread.h>
22987 #if HAVE_PTHREADS < 7
22991 #define NULL (void*)0
22994 static void *task(p)
22997 return (void *) (p == NULL);
23004 /* pthread test function */
23005 #ifndef PTHREAD_CREATE_DETACHED
23006 #define PTHREAD_CREATE_DETACHED 1
23010 int detach = PTHREAD_CREATE_DETACHED;
23012 #if HAVE_PTHREADS > 4
23013 /* Final pthreads */
23014 pthread_attr_t attr;
23016 status = pthread_attr_init(&attr);
23017 if( status ) return status;
23019 #if HAVE_PTHREADS < 7
23020 status = pthread_attr_setdetachstate(&attr, &detach);
23021 if( status < 0 ) status = errno;
23023 status = pthread_attr_setdetachstate(&attr, detach);
23025 if( status ) return status;
23026 status = pthread_create( &t, &attr, task, NULL );
23027 #if HAVE_PTHREADS < 7
23028 if( status < 0 ) status = errno;
23030 if( status ) return status;
23032 /* Draft 4 pthreads */
23033 status = pthread_create( &t, pthread_attr_default, task, NULL );
23034 if( status ) return errno;
23036 /* give thread a chance to complete */
23037 /* it should remain joinable and hence detachable */
23040 status = pthread_detach( &t );
23041 if( status ) return errno;
23044 #ifdef HAVE_LINUX_THREADS
23045 pthread_kill_other_threads_np();
23054 rm -f conftest.$ac_objext conftest$ac_exeext
23055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23056 (eval $ac_link) 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } &&
23063 { ac_try='test -z "$ac_c_werror_flag"
23064 || test ! -s conftest.err'
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; } &&
23070 { ac_try='test -s conftest$ac_exeext'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; }; then
23076 ol_cv_pthread_lpthread=yes
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23081 ol_cv_pthread_lpthread=no
23083 rm -f conftest.err conftest.$ac_objext \
23084 conftest$ac_exeext conftest.$ac_ext
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23093 /* pthread test headers */
23094 #include <pthread.h>
23095 #if HAVE_PTHREADS < 7
23099 #define NULL (void*)0
23102 static void *task(p)
23105 return (void *) (p == NULL);
23109 int main(argc, argv)
23114 /* pthread test function */
23115 #ifndef PTHREAD_CREATE_DETACHED
23116 #define PTHREAD_CREATE_DETACHED 1
23120 int detach = PTHREAD_CREATE_DETACHED;
23122 #if HAVE_PTHREADS > 4
23123 /* Final pthreads */
23124 pthread_attr_t attr;
23126 status = pthread_attr_init(&attr);
23127 if( status ) return status;
23129 #if HAVE_PTHREADS < 7
23130 status = pthread_attr_setdetachstate(&attr, &detach);
23131 if( status < 0 ) status = errno;
23133 status = pthread_attr_setdetachstate(&attr, detach);
23135 if( status ) return status;
23136 status = pthread_create( &t, &attr, task, NULL );
23137 #if HAVE_PTHREADS < 7
23138 if( status < 0 ) status = errno;
23140 if( status ) return status;
23142 /* Draft 4 pthreads */
23143 status = pthread_create( &t, pthread_attr_default, task, NULL );
23144 if( status ) return errno;
23146 /* give thread a chance to complete */
23147 /* it should remain joinable and hence detachable */
23150 status = pthread_detach( &t );
23151 if( status ) return errno;
23154 #ifdef HAVE_LINUX_THREADS
23155 pthread_kill_other_threads_np();
23163 rm -f conftest$ac_exeext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23165 (eval $ac_link) 2>&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ol_cv_pthread_lpthread=yes
23176 echo "$as_me: program exited with status $ac_status" >&5
23177 echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23180 ( exit $ac_status )
23181 ol_cv_pthread_lpthread=no
23183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23190 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23191 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
23193 if test $ol_cv_pthread_lpthread = yes ; then
23194 ol_link_pthreads="-lpthread"
23195 ol_link_threads=posix
23199 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23200 if test "$ol_link_threads" = no ; then
23202 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23203 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
23204 if test "${ol_cv_pthread_lc_r+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23212 if test "$cross_compiling" = yes; then
23213 cat >conftest.$ac_ext <<_ACEOF
23216 cat confdefs.h >>conftest.$ac_ext
23217 cat >>conftest.$ac_ext <<_ACEOF
23218 /* end confdefs.h. */
23220 /* pthread test headers */
23221 #include <pthread.h>
23222 #if HAVE_PTHREADS < 7
23226 #define NULL (void*)0
23229 static void *task(p)
23232 return (void *) (p == NULL);
23239 /* pthread test function */
23240 #ifndef PTHREAD_CREATE_DETACHED
23241 #define PTHREAD_CREATE_DETACHED 1
23245 int detach = PTHREAD_CREATE_DETACHED;
23247 #if HAVE_PTHREADS > 4
23248 /* Final pthreads */
23249 pthread_attr_t attr;
23251 status = pthread_attr_init(&attr);
23252 if( status ) return status;
23254 #if HAVE_PTHREADS < 7
23255 status = pthread_attr_setdetachstate(&attr, &detach);
23256 if( status < 0 ) status = errno;
23258 status = pthread_attr_setdetachstate(&attr, detach);
23260 if( status ) return status;
23261 status = pthread_create( &t, &attr, task, NULL );
23262 #if HAVE_PTHREADS < 7
23263 if( status < 0 ) status = errno;
23265 if( status ) return status;
23267 /* Draft 4 pthreads */
23268 status = pthread_create( &t, pthread_attr_default, task, NULL );
23269 if( status ) return errno;
23271 /* give thread a chance to complete */
23272 /* it should remain joinable and hence detachable */
23275 status = pthread_detach( &t );
23276 if( status ) return errno;
23279 #ifdef HAVE_LINUX_THREADS
23280 pthread_kill_other_threads_np();
23289 rm -f conftest.$ac_objext conftest$ac_exeext
23290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23291 (eval $ac_link) 2>conftest.er1
23293 grep -v '^ *+' conftest.er1 >conftest.err
23295 cat conftest.err >&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); } &&
23298 { ac_try='test -z "$ac_c_werror_flag"
23299 || test ! -s conftest.err'
23300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; } &&
23305 { ac_try='test -s conftest$ac_exeext'
23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23307 (eval $ac_try) 2>&5
23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310 (exit $ac_status); }; }; then
23311 ol_cv_pthread_lc_r=yes
23313 echo "$as_me: failed program was:" >&5
23314 sed 's/^/| /' conftest.$ac_ext >&5
23316 ol_cv_pthread_lc_r=no
23318 rm -f conftest.err conftest.$ac_objext \
23319 conftest$ac_exeext conftest.$ac_ext
23321 cat >conftest.$ac_ext <<_ACEOF
23324 cat confdefs.h >>conftest.$ac_ext
23325 cat >>conftest.$ac_ext <<_ACEOF
23326 /* end confdefs.h. */
23328 /* pthread test headers */
23329 #include <pthread.h>
23330 #if HAVE_PTHREADS < 7
23334 #define NULL (void*)0
23337 static void *task(p)
23340 return (void *) (p == NULL);
23344 int main(argc, argv)
23349 /* pthread test function */
23350 #ifndef PTHREAD_CREATE_DETACHED
23351 #define PTHREAD_CREATE_DETACHED 1
23355 int detach = PTHREAD_CREATE_DETACHED;
23357 #if HAVE_PTHREADS > 4
23358 /* Final pthreads */
23359 pthread_attr_t attr;
23361 status = pthread_attr_init(&attr);
23362 if( status ) return status;
23364 #if HAVE_PTHREADS < 7
23365 status = pthread_attr_setdetachstate(&attr, &detach);
23366 if( status < 0 ) status = errno;
23368 status = pthread_attr_setdetachstate(&attr, detach);
23370 if( status ) return status;
23371 status = pthread_create( &t, &attr, task, NULL );
23372 #if HAVE_PTHREADS < 7
23373 if( status < 0 ) status = errno;
23375 if( status ) return status;
23377 /* Draft 4 pthreads */
23378 status = pthread_create( &t, pthread_attr_default, task, NULL );
23379 if( status ) return errno;
23381 /* give thread a chance to complete */
23382 /* it should remain joinable and hence detachable */
23385 status = pthread_detach( &t );
23386 if( status ) return errno;
23389 #ifdef HAVE_LINUX_THREADS
23390 pthread_kill_other_threads_np();
23398 rm -f conftest$ac_exeext
23399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23400 (eval $ac_link) 2>&5
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ol_cv_pthread_lc_r=yes
23411 echo "$as_me: program exited with status $ac_status" >&5
23412 echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ( exit $ac_status )
23416 ol_cv_pthread_lc_r=no
23418 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23425 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23426 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
23428 if test $ol_cv_pthread_lc_r = yes ; then
23429 ol_link_pthreads="-lc_r"
23430 ol_link_threads=posix
23435 # Pthread try link: -threads (ol_cv_pthread_threads)
23436 if test "$ol_link_threads" = no ; then
23438 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23439 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
23440 if test "${ol_cv_pthread_threads+set}" = set; then
23441 echo $ECHO_N "(cached) $ECHO_C" >&6
23446 LIBS="-threads $LIBS"
23448 if test "$cross_compiling" = yes; then
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23456 /* pthread test headers */
23457 #include <pthread.h>
23458 #if HAVE_PTHREADS < 7
23462 #define NULL (void*)0
23465 static void *task(p)
23468 return (void *) (p == NULL);
23475 /* pthread test function */
23476 #ifndef PTHREAD_CREATE_DETACHED
23477 #define PTHREAD_CREATE_DETACHED 1
23481 int detach = PTHREAD_CREATE_DETACHED;
23483 #if HAVE_PTHREADS > 4
23484 /* Final pthreads */
23485 pthread_attr_t attr;
23487 status = pthread_attr_init(&attr);
23488 if( status ) return status;
23490 #if HAVE_PTHREADS < 7
23491 status = pthread_attr_setdetachstate(&attr, &detach);
23492 if( status < 0 ) status = errno;
23494 status = pthread_attr_setdetachstate(&attr, detach);
23496 if( status ) return status;
23497 status = pthread_create( &t, &attr, task, NULL );
23498 #if HAVE_PTHREADS < 7
23499 if( status < 0 ) status = errno;
23501 if( status ) return status;
23503 /* Draft 4 pthreads */
23504 status = pthread_create( &t, pthread_attr_default, task, NULL );
23505 if( status ) return errno;
23507 /* give thread a chance to complete */
23508 /* it should remain joinable and hence detachable */
23511 status = pthread_detach( &t );
23512 if( status ) return errno;
23515 #ifdef HAVE_LINUX_THREADS
23516 pthread_kill_other_threads_np();
23525 rm -f conftest.$ac_objext conftest$ac_exeext
23526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23527 (eval $ac_link) 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); } &&
23534 { ac_try='test -z "$ac_c_werror_flag"
23535 || test ! -s conftest.err'
23536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23537 (eval $ac_try) 2>&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); }; } &&
23541 { ac_try='test -s conftest$ac_exeext'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; }; then
23547 ol_cv_pthread_threads=yes
23549 echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ol_cv_pthread_threads=no
23554 rm -f conftest.err conftest.$ac_objext \
23555 conftest$ac_exeext conftest.$ac_ext
23557 cat >conftest.$ac_ext <<_ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h. */
23564 /* pthread test headers */
23565 #include <pthread.h>
23566 #if HAVE_PTHREADS < 7
23570 #define NULL (void*)0
23573 static void *task(p)
23576 return (void *) (p == NULL);
23580 int main(argc, argv)
23585 /* pthread test function */
23586 #ifndef PTHREAD_CREATE_DETACHED
23587 #define PTHREAD_CREATE_DETACHED 1
23591 int detach = PTHREAD_CREATE_DETACHED;
23593 #if HAVE_PTHREADS > 4
23594 /* Final pthreads */
23595 pthread_attr_t attr;
23597 status = pthread_attr_init(&attr);
23598 if( status ) return status;
23600 #if HAVE_PTHREADS < 7
23601 status = pthread_attr_setdetachstate(&attr, &detach);
23602 if( status < 0 ) status = errno;
23604 status = pthread_attr_setdetachstate(&attr, detach);
23606 if( status ) return status;
23607 status = pthread_create( &t, &attr, task, NULL );
23608 #if HAVE_PTHREADS < 7
23609 if( status < 0 ) status = errno;
23611 if( status ) return status;
23613 /* Draft 4 pthreads */
23614 status = pthread_create( &t, pthread_attr_default, task, NULL );
23615 if( status ) return errno;
23617 /* give thread a chance to complete */
23618 /* it should remain joinable and hence detachable */
23621 status = pthread_detach( &t );
23622 if( status ) return errno;
23625 #ifdef HAVE_LINUX_THREADS
23626 pthread_kill_other_threads_np();
23634 rm -f conftest$ac_exeext
23635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23636 (eval $ac_link) 2>&5
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; }; then
23645 ol_cv_pthread_threads=yes
23647 echo "$as_me: program exited with status $ac_status" >&5
23648 echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 ( exit $ac_status )
23652 ol_cv_pthread_threads=no
23654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23661 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23662 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
23664 if test $ol_cv_pthread_threads = yes ; then
23665 ol_link_pthreads="-threads"
23666 ol_link_threads=posix
23671 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23672 if test "$ol_link_threads" = no ; then
23673 # try -lpthreads -lmach -lexc -lc_r
23674 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23675 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
23676 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
23682 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23684 if test "$cross_compiling" = yes; then
23685 cat >conftest.$ac_ext <<_ACEOF
23688 cat confdefs.h >>conftest.$ac_ext
23689 cat >>conftest.$ac_ext <<_ACEOF
23690 /* end confdefs.h. */
23692 /* pthread test headers */
23693 #include <pthread.h>
23694 #if HAVE_PTHREADS < 7
23698 #define NULL (void*)0
23701 static void *task(p)
23704 return (void *) (p == NULL);
23711 /* pthread test function */
23712 #ifndef PTHREAD_CREATE_DETACHED
23713 #define PTHREAD_CREATE_DETACHED 1
23717 int detach = PTHREAD_CREATE_DETACHED;
23719 #if HAVE_PTHREADS > 4
23720 /* Final pthreads */
23721 pthread_attr_t attr;
23723 status = pthread_attr_init(&attr);
23724 if( status ) return status;
23726 #if HAVE_PTHREADS < 7
23727 status = pthread_attr_setdetachstate(&attr, &detach);
23728 if( status < 0 ) status = errno;
23730 status = pthread_attr_setdetachstate(&attr, detach);
23732 if( status ) return status;
23733 status = pthread_create( &t, &attr, task, NULL );
23734 #if HAVE_PTHREADS < 7
23735 if( status < 0 ) status = errno;
23737 if( status ) return status;
23739 /* Draft 4 pthreads */
23740 status = pthread_create( &t, pthread_attr_default, task, NULL );
23741 if( status ) return errno;
23743 /* give thread a chance to complete */
23744 /* it should remain joinable and hence detachable */
23747 status = pthread_detach( &t );
23748 if( status ) return errno;
23751 #ifdef HAVE_LINUX_THREADS
23752 pthread_kill_other_threads_np();
23761 rm -f conftest.$ac_objext conftest$ac_exeext
23762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23763 (eval $ac_link) 2>conftest.er1
23765 grep -v '^ *+' conftest.er1 >conftest.err
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } &&
23770 { ac_try='test -z "$ac_c_werror_flag"
23771 || test ! -s conftest.err'
23772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23773 (eval $ac_try) 2>&5
23775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23776 (exit $ac_status); }; } &&
23777 { ac_try='test -s conftest$ac_exeext'
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; }; then
23783 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23788 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23790 rm -f conftest.err conftest.$ac_objext \
23791 conftest$ac_exeext conftest.$ac_ext
23793 cat >conftest.$ac_ext <<_ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23800 /* pthread test headers */
23801 #include <pthread.h>
23802 #if HAVE_PTHREADS < 7
23806 #define NULL (void*)0
23809 static void *task(p)
23812 return (void *) (p == NULL);
23816 int main(argc, argv)
23821 /* pthread test function */
23822 #ifndef PTHREAD_CREATE_DETACHED
23823 #define PTHREAD_CREATE_DETACHED 1
23827 int detach = PTHREAD_CREATE_DETACHED;
23829 #if HAVE_PTHREADS > 4
23830 /* Final pthreads */
23831 pthread_attr_t attr;
23833 status = pthread_attr_init(&attr);
23834 if( status ) return status;
23836 #if HAVE_PTHREADS < 7
23837 status = pthread_attr_setdetachstate(&attr, &detach);
23838 if( status < 0 ) status = errno;
23840 status = pthread_attr_setdetachstate(&attr, detach);
23842 if( status ) return status;
23843 status = pthread_create( &t, &attr, task, NULL );
23844 #if HAVE_PTHREADS < 7
23845 if( status < 0 ) status = errno;
23847 if( status ) return status;
23849 /* Draft 4 pthreads */
23850 status = pthread_create( &t, pthread_attr_default, task, NULL );
23851 if( status ) return errno;
23853 /* give thread a chance to complete */
23854 /* it should remain joinable and hence detachable */
23857 status = pthread_detach( &t );
23858 if( status ) return errno;
23861 #ifdef HAVE_LINUX_THREADS
23862 pthread_kill_other_threads_np();
23870 rm -f conftest$ac_exeext
23871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23872 (eval $ac_link) 2>&5
23874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; }; then
23881 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23883 echo "$as_me: program exited with status $ac_status" >&5
23884 echo "$as_me: failed program was:" >&5
23885 sed 's/^/| /' conftest.$ac_ext >&5
23887 ( exit $ac_status )
23888 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23890 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23897 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23898 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
23900 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23901 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23902 ol_link_threads=posix
23906 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23907 if test "$ol_link_threads" = no ; then
23908 # try -lpthreads -lmach -lexc
23909 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23910 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
23911 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23912 echo $ECHO_N "(cached) $ECHO_C" >&6
23917 LIBS="-lpthreads -lmach -lexc $LIBS"
23919 if test "$cross_compiling" = yes; then
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23927 /* pthread test headers */
23928 #include <pthread.h>
23929 #if HAVE_PTHREADS < 7
23933 #define NULL (void*)0
23936 static void *task(p)
23939 return (void *) (p == NULL);
23946 /* pthread test function */
23947 #ifndef PTHREAD_CREATE_DETACHED
23948 #define PTHREAD_CREATE_DETACHED 1
23952 int detach = PTHREAD_CREATE_DETACHED;
23954 #if HAVE_PTHREADS > 4
23955 /* Final pthreads */
23956 pthread_attr_t attr;
23958 status = pthread_attr_init(&attr);
23959 if( status ) return status;
23961 #if HAVE_PTHREADS < 7
23962 status = pthread_attr_setdetachstate(&attr, &detach);
23963 if( status < 0 ) status = errno;
23965 status = pthread_attr_setdetachstate(&attr, detach);
23967 if( status ) return status;
23968 status = pthread_create( &t, &attr, task, NULL );
23969 #if HAVE_PTHREADS < 7
23970 if( status < 0 ) status = errno;
23972 if( status ) return status;
23974 /* Draft 4 pthreads */
23975 status = pthread_create( &t, pthread_attr_default, task, NULL );
23976 if( status ) return errno;
23978 /* give thread a chance to complete */
23979 /* it should remain joinable and hence detachable */
23982 status = pthread_detach( &t );
23983 if( status ) return errno;
23986 #ifdef HAVE_LINUX_THREADS
23987 pthread_kill_other_threads_np();
23996 rm -f conftest.$ac_objext conftest$ac_exeext
23997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998 (eval $ac_link) 2>conftest.er1
24000 grep -v '^ *+' conftest.er1 >conftest.err
24002 cat conftest.err >&5
24003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004 (exit $ac_status); } &&
24005 { ac_try='test -z "$ac_c_werror_flag"
24006 || test ! -s conftest.err'
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest$ac_exeext'
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 ol_cv_pthread_lpthreads_lmach_lexc=yes
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ol_cv_pthread_lpthreads_lmach_lexc=no
24025 rm -f conftest.err conftest.$ac_objext \
24026 conftest$ac_exeext conftest.$ac_ext
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24035 /* pthread test headers */
24036 #include <pthread.h>
24037 #if HAVE_PTHREADS < 7
24041 #define NULL (void*)0
24044 static void *task(p)
24047 return (void *) (p == NULL);
24051 int main(argc, argv)
24056 /* pthread test function */
24057 #ifndef PTHREAD_CREATE_DETACHED
24058 #define PTHREAD_CREATE_DETACHED 1
24062 int detach = PTHREAD_CREATE_DETACHED;
24064 #if HAVE_PTHREADS > 4
24065 /* Final pthreads */
24066 pthread_attr_t attr;
24068 status = pthread_attr_init(&attr);
24069 if( status ) return status;
24071 #if HAVE_PTHREADS < 7
24072 status = pthread_attr_setdetachstate(&attr, &detach);
24073 if( status < 0 ) status = errno;
24075 status = pthread_attr_setdetachstate(&attr, detach);
24077 if( status ) return status;
24078 status = pthread_create( &t, &attr, task, NULL );
24079 #if HAVE_PTHREADS < 7
24080 if( status < 0 ) status = errno;
24082 if( status ) return status;
24084 /* Draft 4 pthreads */
24085 status = pthread_create( &t, pthread_attr_default, task, NULL );
24086 if( status ) return errno;
24088 /* give thread a chance to complete */
24089 /* it should remain joinable and hence detachable */
24092 status = pthread_detach( &t );
24093 if( status ) return errno;
24096 #ifdef HAVE_LINUX_THREADS
24097 pthread_kill_other_threads_np();
24105 rm -f conftest$ac_exeext
24106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24107 (eval $ac_link) 2>&5
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24112 (eval $ac_try) 2>&5
24114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115 (exit $ac_status); }; }; then
24116 ol_cv_pthread_lpthreads_lmach_lexc=yes
24118 echo "$as_me: program exited with status $ac_status" >&5
24119 echo "$as_me: failed program was:" >&5
24120 sed 's/^/| /' conftest.$ac_ext >&5
24122 ( exit $ac_status )
24123 ol_cv_pthread_lpthreads_lmach_lexc=no
24125 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24132 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24133 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
24135 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24136 ol_link_pthreads="-lpthreads -lmach -lexc"
24137 ol_link_threads=posix
24141 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24142 if test "$ol_link_threads" = no ; then
24143 # try -lpthreads -lexc
24144 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24145 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
24146 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24152 LIBS="-lpthreads -lexc $LIBS"
24154 if test "$cross_compiling" = yes; then
24155 cat >conftest.$ac_ext <<_ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24162 /* pthread test headers */
24163 #include <pthread.h>
24164 #if HAVE_PTHREADS < 7
24168 #define NULL (void*)0
24171 static void *task(p)
24174 return (void *) (p == NULL);
24181 /* pthread test function */
24182 #ifndef PTHREAD_CREATE_DETACHED
24183 #define PTHREAD_CREATE_DETACHED 1
24187 int detach = PTHREAD_CREATE_DETACHED;
24189 #if HAVE_PTHREADS > 4
24190 /* Final pthreads */
24191 pthread_attr_t attr;
24193 status = pthread_attr_init(&attr);
24194 if( status ) return status;
24196 #if HAVE_PTHREADS < 7
24197 status = pthread_attr_setdetachstate(&attr, &detach);
24198 if( status < 0 ) status = errno;
24200 status = pthread_attr_setdetachstate(&attr, detach);
24202 if( status ) return status;
24203 status = pthread_create( &t, &attr, task, NULL );
24204 #if HAVE_PTHREADS < 7
24205 if( status < 0 ) status = errno;
24207 if( status ) return status;
24209 /* Draft 4 pthreads */
24210 status = pthread_create( &t, pthread_attr_default, task, NULL );
24211 if( status ) return errno;
24213 /* give thread a chance to complete */
24214 /* it should remain joinable and hence detachable */
24217 status = pthread_detach( &t );
24218 if( status ) return errno;
24221 #ifdef HAVE_LINUX_THREADS
24222 pthread_kill_other_threads_np();
24231 rm -f conftest.$ac_objext conftest$ac_exeext
24232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24233 (eval $ac_link) 2>conftest.er1
24235 grep -v '^ *+' conftest.er1 >conftest.err
24237 cat conftest.err >&5
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
24240 { ac_try='test -z "$ac_c_werror_flag"
24241 || test ! -s conftest.err'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 ol_cv_pthread_lpthreads_lexc=yes
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24258 ol_cv_pthread_lpthreads_lexc=no
24260 rm -f conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24263 cat >conftest.$ac_ext <<_ACEOF
24266 cat confdefs.h >>conftest.$ac_ext
24267 cat >>conftest.$ac_ext <<_ACEOF
24268 /* end confdefs.h. */
24270 /* pthread test headers */
24271 #include <pthread.h>
24272 #if HAVE_PTHREADS < 7
24276 #define NULL (void*)0
24279 static void *task(p)
24282 return (void *) (p == NULL);
24286 int main(argc, argv)
24291 /* pthread test function */
24292 #ifndef PTHREAD_CREATE_DETACHED
24293 #define PTHREAD_CREATE_DETACHED 1
24297 int detach = PTHREAD_CREATE_DETACHED;
24299 #if HAVE_PTHREADS > 4
24300 /* Final pthreads */
24301 pthread_attr_t attr;
24303 status = pthread_attr_init(&attr);
24304 if( status ) return status;
24306 #if HAVE_PTHREADS < 7
24307 status = pthread_attr_setdetachstate(&attr, &detach);
24308 if( status < 0 ) status = errno;
24310 status = pthread_attr_setdetachstate(&attr, detach);
24312 if( status ) return status;
24313 status = pthread_create( &t, &attr, task, NULL );
24314 #if HAVE_PTHREADS < 7
24315 if( status < 0 ) status = errno;
24317 if( status ) return status;
24319 /* Draft 4 pthreads */
24320 status = pthread_create( &t, pthread_attr_default, task, NULL );
24321 if( status ) return errno;
24323 /* give thread a chance to complete */
24324 /* it should remain joinable and hence detachable */
24327 status = pthread_detach( &t );
24328 if( status ) return errno;
24331 #ifdef HAVE_LINUX_THREADS
24332 pthread_kill_other_threads_np();
24340 rm -f conftest$ac_exeext
24341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24342 (eval $ac_link) 2>&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24347 (eval $ac_try) 2>&5
24349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24350 (exit $ac_status); }; }; then
24351 ol_cv_pthread_lpthreads_lexc=yes
24353 echo "$as_me: program exited with status $ac_status" >&5
24354 echo "$as_me: failed program was:" >&5
24355 sed 's/^/| /' conftest.$ac_ext >&5
24357 ( exit $ac_status )
24358 ol_cv_pthread_lpthreads_lexc=no
24360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24367 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24368 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
24370 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24371 ol_link_pthreads="-lpthreads -lexc"
24372 ol_link_threads=posix
24377 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24378 if test "$ol_link_threads" = no ; then
24380 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24381 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
24382 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24383 echo $ECHO_N "(cached) $ECHO_C" >&6
24388 LIBS="-lpthreads $LIBS"
24390 if test "$cross_compiling" = yes; then
24391 cat >conftest.$ac_ext <<_ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24398 /* pthread test headers */
24399 #include <pthread.h>
24400 #if HAVE_PTHREADS < 7
24404 #define NULL (void*)0
24407 static void *task(p)
24410 return (void *) (p == NULL);
24417 /* pthread test function */
24418 #ifndef PTHREAD_CREATE_DETACHED
24419 #define PTHREAD_CREATE_DETACHED 1
24423 int detach = PTHREAD_CREATE_DETACHED;
24425 #if HAVE_PTHREADS > 4
24426 /* Final pthreads */
24427 pthread_attr_t attr;
24429 status = pthread_attr_init(&attr);
24430 if( status ) return status;
24432 #if HAVE_PTHREADS < 7
24433 status = pthread_attr_setdetachstate(&attr, &detach);
24434 if( status < 0 ) status = errno;
24436 status = pthread_attr_setdetachstate(&attr, detach);
24438 if( status ) return status;
24439 status = pthread_create( &t, &attr, task, NULL );
24440 #if HAVE_PTHREADS < 7
24441 if( status < 0 ) status = errno;
24443 if( status ) return status;
24445 /* Draft 4 pthreads */
24446 status = pthread_create( &t, pthread_attr_default, task, NULL );
24447 if( status ) return errno;
24449 /* give thread a chance to complete */
24450 /* it should remain joinable and hence detachable */
24453 status = pthread_detach( &t );
24454 if( status ) return errno;
24457 #ifdef HAVE_LINUX_THREADS
24458 pthread_kill_other_threads_np();
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24469 (eval $ac_link) 2>conftest.er1
24471 grep -v '^ *+' conftest.er1 >conftest.err
24473 cat conftest.err >&5
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); } &&
24476 { ac_try='test -z "$ac_c_werror_flag"
24477 || test ! -s conftest.err'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; } &&
24483 { ac_try='test -s conftest$ac_exeext'
24484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24485 (eval $ac_try) 2>&5
24487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24488 (exit $ac_status); }; }; then
24489 ol_cv_pthread_lib_lpthreads=yes
24491 echo "$as_me: failed program was:" >&5
24492 sed 's/^/| /' conftest.$ac_ext >&5
24494 ol_cv_pthread_lib_lpthreads=no
24496 rm -f conftest.err conftest.$ac_objext \
24497 conftest$ac_exeext conftest.$ac_ext
24499 cat >conftest.$ac_ext <<_ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h. */
24506 /* pthread test headers */
24507 #include <pthread.h>
24508 #if HAVE_PTHREADS < 7
24512 #define NULL (void*)0
24515 static void *task(p)
24518 return (void *) (p == NULL);
24522 int main(argc, argv)
24527 /* pthread test function */
24528 #ifndef PTHREAD_CREATE_DETACHED
24529 #define PTHREAD_CREATE_DETACHED 1
24533 int detach = PTHREAD_CREATE_DETACHED;
24535 #if HAVE_PTHREADS > 4
24536 /* Final pthreads */
24537 pthread_attr_t attr;
24539 status = pthread_attr_init(&attr);
24540 if( status ) return status;
24542 #if HAVE_PTHREADS < 7
24543 status = pthread_attr_setdetachstate(&attr, &detach);
24544 if( status < 0 ) status = errno;
24546 status = pthread_attr_setdetachstate(&attr, detach);
24548 if( status ) return status;
24549 status = pthread_create( &t, &attr, task, NULL );
24550 #if HAVE_PTHREADS < 7
24551 if( status < 0 ) status = errno;
24553 if( status ) return status;
24555 /* Draft 4 pthreads */
24556 status = pthread_create( &t, pthread_attr_default, task, NULL );
24557 if( status ) return errno;
24559 /* give thread a chance to complete */
24560 /* it should remain joinable and hence detachable */
24563 status = pthread_detach( &t );
24564 if( status ) return errno;
24567 #ifdef HAVE_LINUX_THREADS
24568 pthread_kill_other_threads_np();
24576 rm -f conftest$ac_exeext
24577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24578 (eval $ac_link) 2>&5
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583 (eval $ac_try) 2>&5
24585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586 (exit $ac_status); }; }; then
24587 ol_cv_pthread_lib_lpthreads=yes
24589 echo "$as_me: program exited with status $ac_status" >&5
24590 echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24593 ( exit $ac_status )
24594 ol_cv_pthread_lib_lpthreads=no
24596 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24603 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24604 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
24606 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24607 ol_link_pthreads="-lpthreads"
24608 ol_link_threads=posix
24613 if test $ol_link_threads != no ; then
24614 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24616 save_CPPFLAGS="$CPPFLAGS"
24618 LIBS="$LTHREAD_LIBS $LIBS"
24623 for ac_func in sched_yield pthread_yield thr_yield
24625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24626 echo "$as_me:$LINENO: checking for $ac_func" >&5
24627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24628 if eval "test \"\${$as_ac_var+set}\" = set"; then
24629 echo $ECHO_N "(cached) $ECHO_C" >&6
24631 cat >conftest.$ac_ext <<_ACEOF
24634 cat confdefs.h >>conftest.$ac_ext
24635 cat >>conftest.$ac_ext <<_ACEOF
24636 /* end confdefs.h. */
24637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24639 #define $ac_func innocuous_$ac_func
24641 /* System header to define __stub macros and hopefully few prototypes,
24642 which can conflict with char $ac_func (); below.
24643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24644 <limits.h> exists even on freestanding compilers. */
24647 # include <limits.h>
24649 # include <assert.h>
24654 /* Override any gcc2 internal prototype to avoid an error. */
24659 /* We use char because int might match the return type of a gcc2
24660 builtin and then its argument prototype would still apply. */
24662 /* The GNU C library defines this for functions which it implements
24663 to always fail with ENOSYS. Some functions are actually named
24664 something starting with __ and the normal name is an alias. */
24665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24668 char (*f) () = $ac_func;
24677 return f != $ac_func;
24682 rm -f conftest.$ac_objext conftest$ac_exeext
24683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24684 (eval $ac_link) 2>conftest.er1
24686 grep -v '^ *+' conftest.er1 >conftest.err
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } &&
24691 { ac_try='test -z "$ac_c_werror_flag"
24692 || test ! -s conftest.err'
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; } &&
24698 { ac_try='test -s conftest$ac_exeext'
24699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24700 (eval $ac_try) 2>&5
24702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24703 (exit $ac_status); }; }; then
24704 eval "$as_ac_var=yes"
24706 echo "$as_me: failed program was:" >&5
24707 sed 's/^/| /' conftest.$ac_ext >&5
24709 eval "$as_ac_var=no"
24711 rm -f conftest.err conftest.$ac_objext \
24712 conftest$ac_exeext conftest.$ac_ext
24714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24716 if test `eval echo '${'$as_ac_var'}'` = yes; then
24717 cat >>confdefs.h <<_ACEOF
24718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24725 if test $ac_cv_func_sched_yield = no &&
24726 test $ac_cv_func_pthread_yield = no &&
24727 test $ac_cv_func_thr_yield = no ; then
24728 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24729 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
24730 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24731 echo $ECHO_N "(cached) $ECHO_C" >&6
24733 ac_check_lib_save_LIBS=$LIBS
24735 cat >conftest.$ac_ext <<_ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h. */
24742 /* Override any gcc2 internal prototype to avoid an error. */
24746 /* We use char because int might match the return type of a gcc2
24747 builtin and then its argument prototype would still apply. */
24748 char sched_yield ();
24757 rm -f conftest.$ac_objext conftest$ac_exeext
24758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24759 (eval $ac_link) 2>conftest.er1
24761 grep -v '^ *+' conftest.er1 >conftest.err
24763 cat conftest.err >&5
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); } &&
24766 { ac_try='test -z "$ac_c_werror_flag"
24767 || test ! -s conftest.err'
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; } &&
24773 { ac_try='test -s conftest$ac_exeext'
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; }; then
24779 ac_cv_lib_rt_sched_yield=yes
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24784 ac_cv_lib_rt_sched_yield=no
24786 rm -f conftest.err conftest.$ac_objext \
24787 conftest$ac_exeext conftest.$ac_ext
24788 LIBS=$ac_check_lib_save_LIBS
24790 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24791 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
24792 if test $ac_cv_lib_rt_sched_yield = yes; then
24793 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24795 cat >>confdefs.h <<\_ACEOF
24796 #define HAVE_SCHED_YIELD 1
24799 ac_cv_func_sched_yield=yes
24801 ac_cv_func_sched_yield=no
24805 if test $ac_cv_func_sched_yield = no &&
24806 test $ac_cv_func_pthread_yield = no &&
24807 test "$ac_cv_func_thr_yield" = no ; then
24808 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24809 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24813 for ac_func in pthread_kill
24815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24816 echo "$as_me:$LINENO: checking for $ac_func" >&5
24817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24818 if eval "test \"\${$as_ac_var+set}\" = set"; then
24819 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24829 #define $ac_func innocuous_$ac_func
24831 /* System header to define __stub macros and hopefully few prototypes,
24832 which can conflict with char $ac_func (); below.
24833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24834 <limits.h> exists even on freestanding compilers. */
24837 # include <limits.h>
24839 # include <assert.h>
24844 /* Override any gcc2 internal prototype to avoid an error. */
24849 /* We use char because int might match the return type of a gcc2
24850 builtin and then its argument prototype would still apply. */
24852 /* The GNU C library defines this for functions which it implements
24853 to always fail with ENOSYS. Some functions are actually named
24854 something starting with __ and the normal name is an alias. */
24855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24858 char (*f) () = $ac_func;
24867 return f != $ac_func;
24872 rm -f conftest.$ac_objext conftest$ac_exeext
24873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24874 (eval $ac_link) 2>conftest.er1
24876 grep -v '^ *+' conftest.er1 >conftest.err
24878 cat conftest.err >&5
24879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880 (exit $ac_status); } &&
24881 { ac_try='test -z "$ac_c_werror_flag"
24882 || test ! -s conftest.err'
24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884 (eval $ac_try) 2>&5
24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887 (exit $ac_status); }; } &&
24888 { ac_try='test -s conftest$ac_exeext'
24889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24890 (eval $ac_try) 2>&5
24892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893 (exit $ac_status); }; }; then
24894 eval "$as_ac_var=yes"
24896 echo "$as_me: failed program was:" >&5
24897 sed 's/^/| /' conftest.$ac_ext >&5
24899 eval "$as_ac_var=no"
24901 rm -f conftest.err conftest.$ac_objext \
24902 conftest$ac_exeext conftest.$ac_ext
24904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24906 if test `eval echo '${'$as_ac_var'}'` = yes; then
24907 cat >>confdefs.h <<_ACEOF
24908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24915 echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24916 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6
24917 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24918 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 cat >conftest.$ac_ext <<_ACEOF
24924 cat confdefs.h >>conftest.$ac_ext
24925 cat >>conftest.$ac_ext <<_ACEOF
24926 /* end confdefs.h. */
24928 #include <pthread.h>
24929 pthread_rwlock_t rwlock;
24934 pthread_rwlock_destroy(&rwlock);
24939 rm -f conftest.$ac_objext conftest$ac_exeext
24940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24941 (eval $ac_link) 2>conftest.er1
24943 grep -v '^ *+' conftest.er1 >conftest.err
24945 cat conftest.err >&5
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
24948 { ac_try='test -z "$ac_c_werror_flag"
24949 || test ! -s conftest.err'
24950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24951 (eval $ac_try) 2>&5
24953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954 (exit $ac_status); }; } &&
24955 { ac_try='test -s conftest$ac_exeext'
24956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24957 (eval $ac_try) 2>&5
24959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24960 (exit $ac_status); }; }; then
24961 ol_cv_func_pthread_rwlock_destroy=yes
24963 echo "$as_me: failed program was:" >&5
24964 sed 's/^/| /' conftest.$ac_ext >&5
24966 ol_cv_func_pthread_rwlock_destroy=no
24968 rm -f conftest.err conftest.$ac_objext \
24969 conftest$ac_exeext conftest.$ac_ext
24972 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24973 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6
24974 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24976 cat >>confdefs.h <<\_ACEOF
24977 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24982 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24983 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
24984 if test "${ol_cv_func_pthread_detach+set}" = set; then
24985 echo $ECHO_N "(cached) $ECHO_C" >&6
24988 cat >conftest.$ac_ext <<_ACEOF
24991 cat confdefs.h >>conftest.$ac_ext
24992 cat >>conftest.$ac_ext <<_ACEOF
24993 /* end confdefs.h. */
24995 #include <pthread.h>
24997 #define NULL (void*)0
25003 pthread_detach(NULL);
25008 rm -f conftest.$ac_objext conftest$ac_exeext
25009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25010 (eval $ac_link) 2>conftest.er1
25012 grep -v '^ *+' conftest.er1 >conftest.err
25014 cat conftest.err >&5
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); } &&
25017 { ac_try='test -z "$ac_c_werror_flag"
25018 || test ! -s conftest.err'
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; } &&
25024 { ac_try='test -s conftest$ac_exeext'
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25030 ol_cv_func_pthread_detach=yes
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 ol_cv_func_pthread_detach=no
25037 rm -f conftest.err conftest.$ac_objext \
25038 conftest$ac_exeext conftest.$ac_ext
25041 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25042 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
25044 if test $ol_cv_func_pthread_detach = no ; then
25045 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25046 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25047 { (exit 1); exit 1; }; }
25051 cat >>confdefs.h <<\_ACEOF
25052 #define HAVE_PTHREAD_DETACH 1
25061 pthread_setconcurrency \
25062 pthread_getconcurrency \
25063 thr_setconcurrency \
25064 thr_getconcurrency \
25067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25068 echo "$as_me:$LINENO: checking for $ac_func" >&5
25069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25070 if eval "test \"\${$as_ac_var+set}\" = set"; then
25071 echo $ECHO_N "(cached) $ECHO_C" >&6
25073 cat >conftest.$ac_ext <<_ACEOF
25076 cat confdefs.h >>conftest.$ac_ext
25077 cat >>conftest.$ac_ext <<_ACEOF
25078 /* end confdefs.h. */
25079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25081 #define $ac_func innocuous_$ac_func
25083 /* System header to define __stub macros and hopefully few prototypes,
25084 which can conflict with char $ac_func (); below.
25085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25086 <limits.h> exists even on freestanding compilers. */
25089 # include <limits.h>
25091 # include <assert.h>
25096 /* Override any gcc2 internal prototype to avoid an error. */
25101 /* We use char because int might match the return type of a gcc2
25102 builtin and then its argument prototype would still apply. */
25104 /* The GNU C library defines this for functions which it implements
25105 to always fail with ENOSYS. Some functions are actually named
25106 something starting with __ and the normal name is an alias. */
25107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25110 char (*f) () = $ac_func;
25119 return f != $ac_func;
25124 rm -f conftest.$ac_objext conftest$ac_exeext
25125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25126 (eval $ac_link) 2>conftest.er1
25128 grep -v '^ *+' conftest.er1 >conftest.err
25130 cat conftest.err >&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } &&
25133 { ac_try='test -z "$ac_c_werror_flag"
25134 || test ! -s conftest.err'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; } &&
25140 { ac_try='test -s conftest$ac_exeext'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; }; then
25146 eval "$as_ac_var=yes"
25148 echo "$as_me: failed program was:" >&5
25149 sed 's/^/| /' conftest.$ac_ext >&5
25151 eval "$as_ac_var=no"
25153 rm -f conftest.err conftest.$ac_objext \
25154 conftest$ac_exeext conftest.$ac_ext
25156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25158 if test `eval echo '${'$as_ac_var'}'` = yes; then
25159 cat >>confdefs.h <<_ACEOF
25160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25169 for ac_func in pthread_kill_other_threads_np
25171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25172 echo "$as_me:$LINENO: checking for $ac_func" >&5
25173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25174 if eval "test \"\${$as_ac_var+set}\" = set"; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 cat >conftest.$ac_ext <<_ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185 #define $ac_func innocuous_$ac_func
25187 /* System header to define __stub macros and hopefully few prototypes,
25188 which can conflict with char $ac_func (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
25193 # include <limits.h>
25195 # include <assert.h>
25200 /* Override any gcc2 internal prototype to avoid an error. */
25205 /* We use char because int might match the return type of a gcc2
25206 builtin and then its argument prototype would still apply. */
25208 /* The GNU C library defines this for functions which it implements
25209 to always fail with ENOSYS. Some functions are actually named
25210 something starting with __ and the normal name is an alias. */
25211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25214 char (*f) () = $ac_func;
25223 return f != $ac_func;
25228 rm -f conftest.$ac_objext conftest$ac_exeext
25229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25230 (eval $ac_link) 2>conftest.er1
25232 grep -v '^ *+' conftest.er1 >conftest.err
25234 cat conftest.err >&5
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
25237 { ac_try='test -z "$ac_c_werror_flag"
25238 || test ! -s conftest.err'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; } &&
25244 { ac_try='test -s conftest$ac_exeext'
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
25250 eval "$as_ac_var=yes"
25252 echo "$as_me: failed program was:" >&5
25253 sed 's/^/| /' conftest.$ac_ext >&5
25255 eval "$as_ac_var=no"
25257 rm -f conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
25260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25262 if test `eval echo '${'$as_ac_var'}'` = yes; then
25263 cat >>confdefs.h <<_ACEOF
25264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25270 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25271 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
25272 if test "${ol_cv_sys_linux_threads+set}" = set; then
25273 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25277 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25278 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
25283 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25284 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
25285 if test "${ol_cv_linux_threads+set}" = set; then
25286 echo $ECHO_N "(cached) $ECHO_C" >&6
25289 if test $ol_cv_header_linux_threads = yes &&
25290 test $ol_cv_sys_linux_threads = yes; then
25291 ol_cv_linux_threads=yes
25292 elif test $ol_cv_header_linux_threads = no &&
25293 test $ol_cv_sys_linux_threads = no; then
25294 ol_cv_linux_threads=no
25296 ol_cv_linux_threads=error
25300 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25301 echo "${ECHO_T}$ol_cv_linux_threads" >&6
25304 if test $ol_cv_linux_threads = error; then
25305 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25306 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25307 { (exit 1); exit 1; }; };
25310 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25311 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
25312 if test "${ol_cv_pthread_create_works+set}" = set; then
25313 echo $ECHO_N "(cached) $ECHO_C" >&6
25316 if test "$cross_compiling" = yes; then
25317 ol_cv_pthread_create_works=yes
25319 cat >conftest.$ac_ext <<_ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h. */
25326 /* pthread test headers */
25327 #include <pthread.h>
25328 #if HAVE_PTHREADS < 7
25332 #define NULL (void*)0
25335 static void *task(p)
25338 return (void *) (p == NULL);
25342 int main(argc, argv)
25347 /* pthread test function */
25348 #ifndef PTHREAD_CREATE_DETACHED
25349 #define PTHREAD_CREATE_DETACHED 1
25353 int detach = PTHREAD_CREATE_DETACHED;
25355 #if HAVE_PTHREADS > 4
25356 /* Final pthreads */
25357 pthread_attr_t attr;
25359 status = pthread_attr_init(&attr);
25360 if( status ) return status;
25362 #if HAVE_PTHREADS < 7
25363 status = pthread_attr_setdetachstate(&attr, &detach);
25364 if( status < 0 ) status = errno;
25366 status = pthread_attr_setdetachstate(&attr, detach);
25368 if( status ) return status;
25369 status = pthread_create( &t, &attr, task, NULL );
25370 #if HAVE_PTHREADS < 7
25371 if( status < 0 ) status = errno;
25373 if( status ) return status;
25375 /* Draft 4 pthreads */
25376 status = pthread_create( &t, pthread_attr_default, task, NULL );
25377 if( status ) return errno;
25379 /* give thread a chance to complete */
25380 /* it should remain joinable and hence detachable */
25383 status = pthread_detach( &t );
25384 if( status ) return errno;
25387 #ifdef HAVE_LINUX_THREADS
25388 pthread_kill_other_threads_np();
25396 rm -f conftest$ac_exeext
25397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25398 (eval $ac_link) 2>&5
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; }; then
25407 ol_cv_pthread_create_works=yes
25409 echo "$as_me: program exited with status $ac_status" >&5
25410 echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25413 ( exit $ac_status )
25414 ol_cv_pthread_create_works=no
25416 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25419 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25420 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
25422 if test $ol_cv_pthread_create_works = no ; then
25423 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25424 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25425 { (exit 1); exit 1; }; }
25428 ol_replace_broken_yield=no
25430 if test $ol_replace_broken_yield = yes ; then
25432 cat >>confdefs.h <<\_ACEOF
25433 #define REPLACE_BROKEN_YIELD 1
25438 if test $ol_with_yielding_select = auto ; then
25439 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25440 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
25441 if test "${ol_cv_pthread_select_yields+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25445 if test "$cross_compiling" = yes; then
25446 ol_cv_pthread_select_yields=cross
25448 cat >conftest.$ac_ext <<_ACEOF
25451 cat confdefs.h >>conftest.$ac_ext
25452 cat >>conftest.$ac_ext <<_ACEOF
25453 /* end confdefs.h. */
25455 #include <sys/types.h>
25456 #include <sys/time.h>
25457 #include <unistd.h>
25458 #include <pthread.h>
25460 #define NULL (void*) 0
25463 static int fildes[2];
25465 static void *task(p)
25477 FD_SET(fildes[0], &rfds);
25479 /* we're not interested in any fds */
25480 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25487 exit(0); /* if we exit here, the select blocked the whole process */
25490 int main(argc, argv)
25496 /* create a pipe to select */
25497 if(pipe(&fildes[0])) {
25502 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25503 (void) pthread_setconcurrency(2);
25505 #ifdef HAVE_THR_SETCONCURRENCY
25506 /* Set Solaris LWP concurrency to 2 */
25507 thr_setconcurrency(2);
25511 #if HAVE_PTHREADS < 6
25512 pthread_create(&t, pthread_attr_default, task, NULL);
25514 pthread_create(&t, NULL, task, NULL);
25517 /* make sure task runs first */
25518 #ifdef HAVE_THR_YIELD
25520 #elif defined( HAVE_SCHED_YIELD )
25522 #elif defined( HAVE_PTHREAD_YIELD )
25529 rm -f conftest$ac_exeext
25530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25531 (eval $ac_link) 2>&5
25533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; }; then
25540 ol_cv_pthread_select_yields=no
25542 echo "$as_me: program exited with status $ac_status" >&5
25543 echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25546 ( exit $ac_status )
25547 ol_cv_pthread_select_yields=yes
25549 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25552 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25553 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
25555 if test $ol_cv_pthread_select_yields = cross ; then
25556 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25557 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25558 { (exit 1); exit 1; }; }
25561 if test $ol_cv_pthread_select_yields = yes ; then
25562 ol_with_yielding_select=yes
25566 CPPFLAGS="$save_CPPFLAGS"
25569 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25570 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25571 { (exit 1); exit 1; }; }
25575 if test $ol_with_threads = posix ; then
25576 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25577 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25578 { (exit 1); exit 1; }; }
25583 case $ol_with_threads in auto | yes | mach)
25587 for ac_header in mach/cthreads.h cthreads.h
25589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25591 echo "$as_me:$LINENO: checking for $ac_header" >&5
25592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25594 echo $ECHO_N "(cached) $ECHO_C" >&6
25596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25599 # Is the header compilable?
25600 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25602 cat >conftest.$ac_ext <<_ACEOF
25605 cat confdefs.h >>conftest.$ac_ext
25606 cat >>conftest.$ac_ext <<_ACEOF
25607 /* end confdefs.h. */
25608 $ac_includes_default
25609 #include <$ac_header>
25611 rm -f conftest.$ac_objext
25612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25613 (eval $ac_compile) 2>conftest.er1
25615 grep -v '^ *+' conftest.er1 >conftest.err
25617 cat conftest.err >&5
25618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619 (exit $ac_status); } &&
25620 { ac_try='test -z "$ac_c_werror_flag"
25621 || test ! -s conftest.err'
25622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623 (eval $ac_try) 2>&5
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); }; } &&
25627 { ac_try='test -s conftest.$ac_objext'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; }; then
25633 ac_header_compiler=yes
25635 echo "$as_me: failed program was:" >&5
25636 sed 's/^/| /' conftest.$ac_ext >&5
25638 ac_header_compiler=no
25640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25641 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25642 echo "${ECHO_T}$ac_header_compiler" >&6
25644 # Is the header present?
25645 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25647 cat >conftest.$ac_ext <<_ACEOF
25650 cat confdefs.h >>conftest.$ac_ext
25651 cat >>conftest.$ac_ext <<_ACEOF
25652 /* end confdefs.h. */
25653 #include <$ac_header>
25655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25658 grep -v '^ *+' conftest.er1 >conftest.err
25660 cat conftest.err >&5
25661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } >/dev/null; then
25663 if test -s conftest.err; then
25664 ac_cpp_err=$ac_c_preproc_warn_flag
25665 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25672 if test -z "$ac_cpp_err"; then
25673 ac_header_preproc=yes
25675 echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25678 ac_header_preproc=no
25680 rm -f conftest.err conftest.$ac_ext
25681 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25682 echo "${ECHO_T}$ac_header_preproc" >&6
25684 # So? What about this header?
25685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25688 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25691 ac_header_preproc=yes
25694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25695 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25697 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25699 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25701 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25705 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25708 ## --------------------------------------------- ##
25709 ## Report this to <http://www.openldap.org/its/> ##
25710 ## --------------------------------------------- ##
25713 sed "s/^/$as_me: WARNING: /" >&2
25716 echo "$as_me:$LINENO: checking for $ac_header" >&5
25717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25719 echo $ECHO_N "(cached) $ECHO_C" >&6
25721 eval "$as_ac_Header=\$ac_header_preproc"
25723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25728 cat >>confdefs.h <<_ACEOF
25729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25736 if test $ac_cv_header_mach_cthreads_h = yes ; then
25737 ol_with_threads=found
25739 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25740 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25741 if test "${ac_cv_func_cthread_fork+set}" = set; then
25742 echo $ECHO_N "(cached) $ECHO_C" >&6
25744 cat >conftest.$ac_ext <<_ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */
25750 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25752 #define cthread_fork innocuous_cthread_fork
25754 /* System header to define __stub macros and hopefully few prototypes,
25755 which can conflict with char cthread_fork (); below.
25756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25757 <limits.h> exists even on freestanding compilers. */
25760 # include <limits.h>
25762 # include <assert.h>
25765 #undef cthread_fork
25767 /* Override any gcc2 internal prototype to avoid an error. */
25772 /* We use char because int might match the return type of a gcc2
25773 builtin and then its argument prototype would still apply. */
25774 char cthread_fork ();
25775 /* The GNU C library defines this for functions which it implements
25776 to always fail with ENOSYS. Some functions are actually named
25777 something starting with __ and the normal name is an alias. */
25778 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25781 char (*f) () = cthread_fork;
25790 return f != cthread_fork;
25795 rm -f conftest.$ac_objext conftest$ac_exeext
25796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25797 (eval $ac_link) 2>conftest.er1
25799 grep -v '^ *+' conftest.er1 >conftest.err
25801 cat conftest.err >&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } &&
25804 { ac_try='test -z "$ac_c_werror_flag"
25805 || test ! -s conftest.err'
25806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807 (eval $ac_try) 2>&5
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); }; } &&
25811 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
25817 ac_cv_func_cthread_fork=yes
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25822 ac_cv_func_cthread_fork=no
25824 rm -f conftest.err conftest.$ac_objext \
25825 conftest$ac_exeext conftest.$ac_ext
25827 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25828 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
25829 if test $ac_cv_func_cthread_fork = yes; then
25830 ol_link_threads=yes
25834 if test $ol_link_threads = no ; then
25835 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25836 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
25837 if test "${ol_cv_cthread_all_load+set}" = set; then
25838 echo $ECHO_N "(cached) $ECHO_C" >&6
25842 LIBS="-all_load $LIBS"
25843 cat >conftest.$ac_ext <<_ACEOF
25846 cat confdefs.h >>conftest.$ac_ext
25847 cat >>conftest.$ac_ext <<_ACEOF
25848 /* end confdefs.h. */
25849 #include <mach/cthreads.h>
25854 cthread_fork((void *)0, (void *)0);
25860 rm -f conftest.$ac_objext conftest$ac_exeext
25861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25862 (eval $ac_link) 2>conftest.er1
25864 grep -v '^ *+' conftest.er1 >conftest.err
25866 cat conftest.err >&5
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); } &&
25869 { ac_try='test -z "$ac_c_werror_flag"
25870 || test ! -s conftest.err'
25871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25872 (eval $ac_try) 2>&5
25874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875 (exit $ac_status); }; } &&
25876 { ac_try='test -s conftest$ac_exeext'
25877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25878 (eval $ac_try) 2>&5
25880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25881 (exit $ac_status); }; }; then
25882 ol_cv_cthread_all_load=yes
25884 echo "$as_me: failed program was:" >&5
25885 sed 's/^/| /' conftest.$ac_ext >&5
25887 ol_cv_cthread_all_load=no
25889 rm -f conftest.err conftest.$ac_objext \
25890 conftest$ac_exeext conftest.$ac_ext
25894 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25895 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
25897 if test $ol_cv_cthread_all_load = yes ; then
25898 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25899 ol_link_threads=mach
25900 ol_with_threads=found
25904 elif test $ac_cv_header_cthreads_h = yes ; then
25906 ol_with_threads=found
25909 LIBS="$LIBS -lthreads"
25910 echo "$as_me:$LINENO: checking for cthread_fork" >&5
25911 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
25912 if test "${ac_cv_func_cthread_fork+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25915 cat >conftest.$ac_ext <<_ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25923 #define cthread_fork innocuous_cthread_fork
25925 /* System header to define __stub macros and hopefully few prototypes,
25926 which can conflict with char cthread_fork (); below.
25927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25928 <limits.h> exists even on freestanding compilers. */
25931 # include <limits.h>
25933 # include <assert.h>
25936 #undef cthread_fork
25938 /* Override any gcc2 internal prototype to avoid an error. */
25943 /* We use char because int might match the return type of a gcc2
25944 builtin and then its argument prototype would still apply. */
25945 char cthread_fork ();
25946 /* The GNU C library defines this for functions which it implements
25947 to always fail with ENOSYS. Some functions are actually named
25948 something starting with __ and the normal name is an alias. */
25949 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
25952 char (*f) () = cthread_fork;
25961 return f != cthread_fork;
25966 rm -f conftest.$ac_objext conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>conftest.er1
25970 grep -v '^ *+' conftest.er1 >conftest.err
25972 cat conftest.err >&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); } &&
25975 { ac_try='test -z "$ac_c_werror_flag"
25976 || test ! -s conftest.err'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; } &&
25982 { ac_try='test -s conftest$ac_exeext'
25983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25984 (eval $ac_try) 2>&5
25986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25987 (exit $ac_status); }; }; then
25988 ac_cv_func_cthread_fork=yes
25990 echo "$as_me: failed program was:" >&5
25991 sed 's/^/| /' conftest.$ac_ext >&5
25993 ac_cv_func_cthread_fork=no
25995 rm -f conftest.err conftest.$ac_objext \
25996 conftest$ac_exeext conftest.$ac_ext
25998 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25999 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
26000 if test $ac_cv_func_cthread_fork = yes; then
26001 ol_link_threads=yes
26006 if test $ol_link_threads = yes ; then
26007 LTHREAD_LIBS="-lthreads"
26008 ol_link_threads=mach
26009 ol_with_threads=found
26011 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26012 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26013 { (exit 1); exit 1; }; }
26016 elif test $ol_with_threads = mach ; then
26017 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26018 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26019 { (exit 1); exit 1; }; }
26022 if test $ol_link_threads = mach ; then
26024 cat >>confdefs.h <<\_ACEOF
26025 #define HAVE_MACH_CTHREADS 1
26028 elif test $ol_with_threads = found ; then
26029 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26030 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26031 { (exit 1); exit 1; }; }
26036 case $ol_with_threads in auto | yes | pth)
26039 for ac_header in pth.h
26041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26043 echo "$as_me:$LINENO: checking for $ac_header" >&5
26044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26046 echo $ECHO_N "(cached) $ECHO_C" >&6
26048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26051 # Is the header compilable?
26052 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26054 cat >conftest.$ac_ext <<_ACEOF
26057 cat confdefs.h >>conftest.$ac_ext
26058 cat >>conftest.$ac_ext <<_ACEOF
26059 /* end confdefs.h. */
26060 $ac_includes_default
26061 #include <$ac_header>
26063 rm -f conftest.$ac_objext
26064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26065 (eval $ac_compile) 2>conftest.er1
26067 grep -v '^ *+' conftest.er1 >conftest.err
26069 cat conftest.err >&5
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); } &&
26072 { ac_try='test -z "$ac_c_werror_flag"
26073 || test ! -s conftest.err'
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; } &&
26079 { ac_try='test -s conftest.$ac_objext'
26080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26081 (eval $ac_try) 2>&5
26083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084 (exit $ac_status); }; }; then
26085 ac_header_compiler=yes
26087 echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26090 ac_header_compiler=no
26092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26093 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26094 echo "${ECHO_T}$ac_header_compiler" >&6
26096 # Is the header present?
26097 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26099 cat >conftest.$ac_ext <<_ACEOF
26102 cat confdefs.h >>conftest.$ac_ext
26103 cat >>conftest.$ac_ext <<_ACEOF
26104 /* end confdefs.h. */
26105 #include <$ac_header>
26107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26108 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26110 grep -v '^ *+' conftest.er1 >conftest.err
26112 cat conftest.err >&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } >/dev/null; then
26115 if test -s conftest.err; then
26116 ac_cpp_err=$ac_c_preproc_warn_flag
26117 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26124 if test -z "$ac_cpp_err"; then
26125 ac_header_preproc=yes
26127 echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.$ac_ext >&5
26130 ac_header_preproc=no
26132 rm -f conftest.err conftest.$ac_ext
26133 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26134 echo "${ECHO_T}$ac_header_preproc" >&6
26136 # So? What about this header?
26137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26143 ac_header_preproc=yes
26146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26160 ## --------------------------------------------- ##
26161 ## Report this to <http://www.openldap.org/its/> ##
26162 ## --------------------------------------------- ##
26165 sed "s/^/$as_me: WARNING: /" >&2
26168 echo "$as_me:$LINENO: checking for $ac_header" >&5
26169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26173 eval "$as_ac_Header=\$ac_header_preproc"
26175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26180 cat >>confdefs.h <<_ACEOF
26181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26189 if test $ac_cv_header_pth_h = yes ; then
26190 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26191 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
26192 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26193 echo $ECHO_N "(cached) $ECHO_C" >&6
26195 ac_check_lib_save_LIBS=$LIBS
26197 cat >conftest.$ac_ext <<_ACEOF
26200 cat confdefs.h >>conftest.$ac_ext
26201 cat >>conftest.$ac_ext <<_ACEOF
26202 /* end confdefs.h. */
26204 /* Override any gcc2 internal prototype to avoid an error. */
26208 /* We use char because int might match the return type of a gcc2
26209 builtin and then its argument prototype would still apply. */
26210 char pth_version ();
26219 rm -f conftest.$ac_objext conftest$ac_exeext
26220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26221 (eval $ac_link) 2>conftest.er1
26223 grep -v '^ *+' conftest.er1 >conftest.err
26225 cat conftest.err >&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } &&
26228 { ac_try='test -z "$ac_c_werror_flag"
26229 || test ! -s conftest.err'
26230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26231 (eval $ac_try) 2>&5
26233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234 (exit $ac_status); }; } &&
26235 { ac_try='test -s conftest$ac_exeext'
26236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26237 (eval $ac_try) 2>&5
26239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240 (exit $ac_status); }; }; then
26241 ac_cv_lib_pth_pth_version=yes
26243 echo "$as_me: failed program was:" >&5
26244 sed 's/^/| /' conftest.$ac_ext >&5
26246 ac_cv_lib_pth_pth_version=no
26248 rm -f conftest.err conftest.$ac_objext \
26249 conftest$ac_exeext conftest.$ac_ext
26250 LIBS=$ac_check_lib_save_LIBS
26252 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26253 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
26254 if test $ac_cv_lib_pth_pth_version = yes; then
26261 if test $have_pth = yes ; then
26263 cat >>confdefs.h <<\_ACEOF
26264 #define HAVE_GNU_PTH 1
26267 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26268 ol_link_threads=pth
26269 ol_with_threads=found
26271 if test $ol_with_yielding_select = auto ; then
26272 ol_with_yielding_select=yes
26279 case $ol_with_threads in auto | yes | lwp)
26283 for ac_header in thread.h synch.h
26285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26286 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287 echo "$as_me:$LINENO: checking for $ac_header" >&5
26288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26290 echo $ECHO_N "(cached) $ECHO_C" >&6
26292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26293 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26295 # Is the header compilable?
26296 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26297 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26298 cat >conftest.$ac_ext <<_ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h. */
26304 $ac_includes_default
26305 #include <$ac_header>
26307 rm -f conftest.$ac_objext
26308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309 (eval $ac_compile) 2>conftest.er1
26311 grep -v '^ *+' conftest.er1 >conftest.err
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest.$ac_objext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ac_header_compiler=yes
26331 echo "$as_me: failed program was:" >&5
26332 sed 's/^/| /' conftest.$ac_ext >&5
26334 ac_header_compiler=no
26336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26338 echo "${ECHO_T}$ac_header_compiler" >&6
26340 # Is the header present?
26341 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26343 cat >conftest.$ac_ext <<_ACEOF
26346 cat confdefs.h >>conftest.$ac_ext
26347 cat >>conftest.$ac_ext <<_ACEOF
26348 /* end confdefs.h. */
26349 #include <$ac_header>
26351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26354 grep -v '^ *+' conftest.er1 >conftest.err
26356 cat conftest.err >&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); } >/dev/null; then
26359 if test -s conftest.err; then
26360 ac_cpp_err=$ac_c_preproc_warn_flag
26361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26368 if test -z "$ac_cpp_err"; then
26369 ac_header_preproc=yes
26371 echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26374 ac_header_preproc=no
26376 rm -f conftest.err conftest.$ac_ext
26377 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26378 echo "${ECHO_T}$ac_header_preproc" >&6
26380 # So? What about this header?
26381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26387 ac_header_preproc=yes
26390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26404 ## --------------------------------------------- ##
26405 ## Report this to <http://www.openldap.org/its/> ##
26406 ## --------------------------------------------- ##
26409 sed "s/^/$as_me: WARNING: /" >&2
26412 echo "$as_me:$LINENO: checking for $ac_header" >&5
26413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 eval "$as_ac_Header=\$ac_header_preproc"
26419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26424 cat >>confdefs.h <<_ACEOF
26425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26432 if test $ac_cv_header_thread_h = yes &&
26433 test $ac_cv_header_synch_h = yes ; then
26434 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26435 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
26436 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26439 ac_check_lib_save_LIBS=$LIBS
26440 LIBS="-lthread $LIBS"
26441 cat >conftest.$ac_ext <<_ACEOF
26444 cat confdefs.h >>conftest.$ac_ext
26445 cat >>conftest.$ac_ext <<_ACEOF
26446 /* end confdefs.h. */
26448 /* Override any gcc2 internal prototype to avoid an error. */
26452 /* We use char because int might match the return type of a gcc2
26453 builtin and then its argument prototype would still apply. */
26454 char thr_create ();
26463 rm -f conftest.$ac_objext conftest$ac_exeext
26464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26465 (eval $ac_link) 2>conftest.er1
26467 grep -v '^ *+' conftest.er1 >conftest.err
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest$ac_exeext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
26485 ac_cv_lib_thread_thr_create=yes
26487 echo "$as_me: failed program was:" >&5
26488 sed 's/^/| /' conftest.$ac_ext >&5
26490 ac_cv_lib_thread_thr_create=no
26492 rm -f conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
26494 LIBS=$ac_check_lib_save_LIBS
26496 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26497 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
26498 if test $ac_cv_lib_thread_thr_create = yes; then
26505 if test $have_thr = yes ; then
26507 cat >>confdefs.h <<\_ACEOF
26511 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26512 ol_link_threads=thr
26514 if test $ol_with_yielding_select = auto ; then
26515 ol_with_yielding_select=yes
26521 thr_setconcurrency \
26522 thr_getconcurrency \
26525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26526 echo "$as_me:$LINENO: checking for $ac_func" >&5
26527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26528 if eval "test \"\${$as_ac_var+set}\" = set"; then
26529 echo $ECHO_N "(cached) $ECHO_C" >&6
26531 cat >conftest.$ac_ext <<_ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26539 #define $ac_func innocuous_$ac_func
26541 /* System header to define __stub macros and hopefully few prototypes,
26542 which can conflict with char $ac_func (); below.
26543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26544 <limits.h> exists even on freestanding compilers. */
26547 # include <limits.h>
26549 # include <assert.h>
26554 /* Override any gcc2 internal prototype to avoid an error. */
26559 /* We use char because int might match the return type of a gcc2
26560 builtin and then its argument prototype would still apply. */
26562 /* The GNU C library defines this for functions which it implements
26563 to always fail with ENOSYS. Some functions are actually named
26564 something starting with __ and the normal name is an alias. */
26565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26568 char (*f) () = $ac_func;
26577 return f != $ac_func;
26582 rm -f conftest.$ac_objext conftest$ac_exeext
26583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26584 (eval $ac_link) 2>conftest.er1
26586 grep -v '^ *+' conftest.er1 >conftest.err
26588 cat conftest.err >&5
26589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590 (exit $ac_status); } &&
26591 { ac_try='test -z "$ac_c_werror_flag"
26592 || test ! -s conftest.err'
26593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594 (eval $ac_try) 2>&5
26596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597 (exit $ac_status); }; } &&
26598 { ac_try='test -s conftest$ac_exeext'
26599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26600 (eval $ac_try) 2>&5
26602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603 (exit $ac_status); }; }; then
26604 eval "$as_ac_var=yes"
26606 echo "$as_me: failed program was:" >&5
26607 sed 's/^/| /' conftest.$ac_ext >&5
26609 eval "$as_ac_var=no"
26611 rm -f conftest.err conftest.$ac_objext \
26612 conftest$ac_exeext conftest.$ac_ext
26614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26615 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26616 if test `eval echo '${'$as_ac_var'}'` = yes; then
26617 cat >>confdefs.h <<_ACEOF
26618 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26628 for ac_header in lwp/lwp.h
26630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26632 echo "$as_me:$LINENO: checking for $ac_header" >&5
26633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26635 echo $ECHO_N "(cached) $ECHO_C" >&6
26637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26640 # Is the header compilable?
26641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26643 cat >conftest.$ac_ext <<_ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26649 $ac_includes_default
26650 #include <$ac_header>
26652 rm -f conftest.$ac_objext
26653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26654 (eval $ac_compile) 2>conftest.er1
26656 grep -v '^ *+' conftest.er1 >conftest.err
26658 cat conftest.err >&5
26659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26660 (exit $ac_status); } &&
26661 { ac_try='test -z "$ac_c_werror_flag"
26662 || test ! -s conftest.err'
26663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26664 (eval $ac_try) 2>&5
26666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667 (exit $ac_status); }; } &&
26668 { ac_try='test -s conftest.$ac_objext'
26669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26670 (eval $ac_try) 2>&5
26672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26673 (exit $ac_status); }; }; then
26674 ac_header_compiler=yes
26676 echo "$as_me: failed program was:" >&5
26677 sed 's/^/| /' conftest.$ac_ext >&5
26679 ac_header_compiler=no
26681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26683 echo "${ECHO_T}$ac_header_compiler" >&6
26685 # Is the header present?
26686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26688 cat >conftest.$ac_ext <<_ACEOF
26691 cat confdefs.h >>conftest.$ac_ext
26692 cat >>conftest.$ac_ext <<_ACEOF
26693 /* end confdefs.h. */
26694 #include <$ac_header>
26696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26699 grep -v '^ *+' conftest.er1 >conftest.err
26701 cat conftest.err >&5
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); } >/dev/null; then
26704 if test -s conftest.err; then
26705 ac_cpp_err=$ac_c_preproc_warn_flag
26706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26713 if test -z "$ac_cpp_err"; then
26714 ac_header_preproc=yes
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26719 ac_header_preproc=no
26721 rm -f conftest.err conftest.$ac_ext
26722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26723 echo "${ECHO_T}$ac_header_preproc" >&6
26725 # So? What about this header?
26726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26732 ac_header_preproc=yes
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26749 ## --------------------------------------------- ##
26750 ## Report this to <http://www.openldap.org/its/> ##
26751 ## --------------------------------------------- ##
26754 sed "s/^/$as_me: WARNING: /" >&2
26757 echo "$as_me:$LINENO: checking for $ac_header" >&5
26758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26762 eval "$as_ac_Header=\$ac_header_preproc"
26764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26769 cat >>confdefs.h <<_ACEOF
26770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26777 if test $ac_cv_header_lwp_lwp_h = yes ; then
26778 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26779 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
26780 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26781 echo $ECHO_N "(cached) $ECHO_C" >&6
26783 ac_check_lib_save_LIBS=$LIBS
26785 cat >conftest.$ac_ext <<_ACEOF
26788 cat confdefs.h >>conftest.$ac_ext
26789 cat >>conftest.$ac_ext <<_ACEOF
26790 /* end confdefs.h. */
26792 /* Override any gcc2 internal prototype to avoid an error. */
26796 /* We use char because int might match the return type of a gcc2
26797 builtin and then its argument prototype would still apply. */
26798 char lwp_create ();
26807 rm -f conftest.$ac_objext conftest$ac_exeext
26808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26809 (eval $ac_link) 2>conftest.er1
26811 grep -v '^ *+' conftest.er1 >conftest.err
26813 cat conftest.err >&5
26814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26815 (exit $ac_status); } &&
26816 { ac_try='test -z "$ac_c_werror_flag"
26817 || test ! -s conftest.err'
26818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26819 (eval $ac_try) 2>&5
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); }; } &&
26823 { ac_try='test -s conftest$ac_exeext'
26824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825 (eval $ac_try) 2>&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); }; }; then
26829 ac_cv_lib_lwp_lwp_create=yes
26831 echo "$as_me: failed program was:" >&5
26832 sed 's/^/| /' conftest.$ac_ext >&5
26834 ac_cv_lib_lwp_lwp_create=no
26836 rm -f conftest.err conftest.$ac_objext \
26837 conftest$ac_exeext conftest.$ac_ext
26838 LIBS=$ac_check_lib_save_LIBS
26840 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26841 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
26842 if test $ac_cv_lib_lwp_lwp_create = yes; then
26849 if test $have_lwp = yes ; then
26851 cat >>confdefs.h <<\_ACEOF
26855 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26856 ol_link_threads=lwp
26858 if test $ol_with_yielding_select = auto ; then
26859 ol_with_yielding_select=no
26866 if test $ol_with_yielding_select = yes ; then
26868 cat >>confdefs.h <<\_ACEOF
26869 #define HAVE_YIELDING_SELECT 1
26874 if test $ol_with_threads = manual ; then
26875 ol_link_threads=yes
26877 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26878 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26882 for ac_header in pthread.h sched.h
26884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26886 echo "$as_me:$LINENO: checking for $ac_header" >&5
26887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26894 # Is the header compilable?
26895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26897 cat >conftest.$ac_ext <<_ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h. */
26903 $ac_includes_default
26904 #include <$ac_header>
26906 rm -f conftest.$ac_objext
26907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26908 (eval $ac_compile) 2>conftest.er1
26910 grep -v '^ *+' conftest.er1 >conftest.err
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } &&
26915 { ac_try='test -z "$ac_c_werror_flag"
26916 || test ! -s conftest.err'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest.$ac_objext'
26923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924 (eval $ac_try) 2>&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); }; }; then
26928 ac_header_compiler=yes
26930 echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26933 ac_header_compiler=no
26935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26937 echo "${ECHO_T}$ac_header_compiler" >&6
26939 # Is the header present?
26940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26942 cat >conftest.$ac_ext <<_ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26948 #include <$ac_header>
26950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26953 grep -v '^ *+' conftest.er1 >conftest.err
26955 cat conftest.err >&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } >/dev/null; then
26958 if test -s conftest.err; then
26959 ac_cpp_err=$ac_c_preproc_warn_flag
26960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26967 if test -z "$ac_cpp_err"; then
26968 ac_header_preproc=yes
26970 echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26973 ac_header_preproc=no
26975 rm -f conftest.err conftest.$ac_ext
26976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26977 echo "${ECHO_T}$ac_header_preproc" >&6
26979 # So? What about this header?
26980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26986 ac_header_preproc=yes
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27003 ## --------------------------------------------- ##
27004 ## Report this to <http://www.openldap.org/its/> ##
27005 ## --------------------------------------------- ##
27008 sed "s/^/$as_me: WARNING: /" >&2
27011 echo "$as_me:$LINENO: checking for $ac_header" >&5
27012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27014 echo $ECHO_N "(cached) $ECHO_C" >&6
27016 eval "$as_ac_Header=\$ac_header_preproc"
27018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27023 cat >>confdefs.h <<_ACEOF
27024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27033 for ac_func in sched_yield pthread_yield
27035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27036 echo "$as_me:$LINENO: checking for $ac_func" >&5
27037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27038 if eval "test \"\${$as_ac_var+set}\" = set"; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27041 cat >conftest.$ac_ext <<_ACEOF
27044 cat confdefs.h >>conftest.$ac_ext
27045 cat >>conftest.$ac_ext <<_ACEOF
27046 /* end confdefs.h. */
27047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27049 #define $ac_func innocuous_$ac_func
27051 /* System header to define __stub macros and hopefully few prototypes,
27052 which can conflict with char $ac_func (); below.
27053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27054 <limits.h> exists even on freestanding compilers. */
27057 # include <limits.h>
27059 # include <assert.h>
27064 /* Override any gcc2 internal prototype to avoid an error. */
27069 /* We use char because int might match the return type of a gcc2
27070 builtin and then its argument prototype would still apply. */
27072 /* The GNU C library defines this for functions which it implements
27073 to always fail with ENOSYS. Some functions are actually named
27074 something starting with __ and the normal name is an alias. */
27075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27078 char (*f) () = $ac_func;
27087 return f != $ac_func;
27092 rm -f conftest.$ac_objext conftest$ac_exeext
27093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27094 (eval $ac_link) 2>conftest.er1
27096 grep -v '^ *+' conftest.er1 >conftest.err
27098 cat conftest.err >&5
27099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100 (exit $ac_status); } &&
27101 { ac_try='test -z "$ac_c_werror_flag"
27102 || test ! -s conftest.err'
27103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27104 (eval $ac_try) 2>&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); }; } &&
27108 { ac_try='test -s conftest$ac_exeext'
27109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27110 (eval $ac_try) 2>&5
27112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113 (exit $ac_status); }; }; then
27114 eval "$as_ac_var=yes"
27116 echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27119 eval "$as_ac_var=no"
27121 rm -f conftest.err conftest.$ac_objext \
27122 conftest$ac_exeext conftest.$ac_ext
27124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27126 if test `eval echo '${'$as_ac_var'}'` = yes; then
27127 cat >>confdefs.h <<_ACEOF
27128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27135 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
27136 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
27137 if test "${ol_cv_header_linux_threads+set}" = set; then
27138 echo $ECHO_N "(cached) $ECHO_C" >&6
27140 cat >conftest.$ac_ext <<_ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h. */
27146 #include <pthread.h>
27148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27149 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27150 ol_cv_header_linux_threads=yes
27152 ol_cv_header_linux_threads=no
27158 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27159 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
27160 if test $ol_cv_header_linux_threads = yes; then
27162 cat >>confdefs.h <<\_ACEOF
27163 #define HAVE_LINUX_THREADS 1
27170 for ac_header in mach/cthreads.h
27172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27174 echo "$as_me:$LINENO: checking for $ac_header" >&5
27175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27180 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27182 # Is the header compilable?
27183 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27184 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27185 cat >conftest.$ac_ext <<_ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h. */
27191 $ac_includes_default
27192 #include <$ac_header>
27194 rm -f conftest.$ac_objext
27195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27196 (eval $ac_compile) 2>conftest.er1
27198 grep -v '^ *+' conftest.er1 >conftest.err
27200 cat conftest.err >&5
27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27202 (exit $ac_status); } &&
27203 { ac_try='test -z "$ac_c_werror_flag"
27204 || test ! -s conftest.err'
27205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27206 (eval $ac_try) 2>&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); }; } &&
27210 { ac_try='test -s conftest.$ac_objext'
27211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27212 (eval $ac_try) 2>&5
27214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27215 (exit $ac_status); }; }; then
27216 ac_header_compiler=yes
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27221 ac_header_compiler=no
27223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27224 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27225 echo "${ECHO_T}$ac_header_compiler" >&6
27227 # Is the header present?
27228 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27230 cat >conftest.$ac_ext <<_ACEOF
27233 cat confdefs.h >>conftest.$ac_ext
27234 cat >>conftest.$ac_ext <<_ACEOF
27235 /* end confdefs.h. */
27236 #include <$ac_header>
27238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27241 grep -v '^ *+' conftest.er1 >conftest.err
27243 cat conftest.err >&5
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } >/dev/null; then
27246 if test -s conftest.err; then
27247 ac_cpp_err=$ac_c_preproc_warn_flag
27248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27255 if test -z "$ac_cpp_err"; then
27256 ac_header_preproc=yes
27258 echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27261 ac_header_preproc=no
27263 rm -f conftest.err conftest.$ac_ext
27264 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27265 echo "${ECHO_T}$ac_header_preproc" >&6
27267 # So? What about this header?
27268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27274 ac_header_preproc=yes
27277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27291 ## --------------------------------------------- ##
27292 ## Report this to <http://www.openldap.org/its/> ##
27293 ## --------------------------------------------- ##
27296 sed "s/^/$as_me: WARNING: /" >&2
27299 echo "$as_me:$LINENO: checking for $ac_header" >&5
27300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27302 echo $ECHO_N "(cached) $ECHO_C" >&6
27304 eval "$as_ac_Header=\$ac_header_preproc"
27306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27311 cat >>confdefs.h <<_ACEOF
27312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27320 for ac_header in lwp/lwp.h
27322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27324 echo "$as_me:$LINENO: checking for $ac_header" >&5
27325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27332 # Is the header compilable?
27333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27335 cat >conftest.$ac_ext <<_ACEOF
27338 cat confdefs.h >>conftest.$ac_ext
27339 cat >>conftest.$ac_ext <<_ACEOF
27340 /* end confdefs.h. */
27341 $ac_includes_default
27342 #include <$ac_header>
27344 rm -f conftest.$ac_objext
27345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27346 (eval $ac_compile) 2>conftest.er1
27348 grep -v '^ *+' conftest.er1 >conftest.err
27350 cat conftest.err >&5
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); } &&
27353 { ac_try='test -z "$ac_c_werror_flag"
27354 || test ! -s conftest.err'
27355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356 (eval $ac_try) 2>&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; } &&
27360 { ac_try='test -s conftest.$ac_objext'
27361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27362 (eval $ac_try) 2>&5
27364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); }; }; then
27366 ac_header_compiler=yes
27368 echo "$as_me: failed program was:" >&5
27369 sed 's/^/| /' conftest.$ac_ext >&5
27371 ac_header_compiler=no
27373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27375 echo "${ECHO_T}$ac_header_compiler" >&6
27377 # Is the header present?
27378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27380 cat >conftest.$ac_ext <<_ACEOF
27383 cat confdefs.h >>conftest.$ac_ext
27384 cat >>conftest.$ac_ext <<_ACEOF
27385 /* end confdefs.h. */
27386 #include <$ac_header>
27388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27391 grep -v '^ *+' conftest.er1 >conftest.err
27393 cat conftest.err >&5
27394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395 (exit $ac_status); } >/dev/null; then
27396 if test -s conftest.err; then
27397 ac_cpp_err=$ac_c_preproc_warn_flag
27398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27405 if test -z "$ac_cpp_err"; then
27406 ac_header_preproc=yes
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27411 ac_header_preproc=no
27413 rm -f conftest.err conftest.$ac_ext
27414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27415 echo "${ECHO_T}$ac_header_preproc" >&6
27417 # So? What about this header?
27418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27424 ac_header_preproc=yes
27427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27441 ## --------------------------------------------- ##
27442 ## Report this to <http://www.openldap.org/its/> ##
27443 ## --------------------------------------------- ##
27446 sed "s/^/$as_me: WARNING: /" >&2
27449 echo "$as_me:$LINENO: checking for $ac_header" >&5
27450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27452 echo $ECHO_N "(cached) $ECHO_C" >&6
27454 eval "$as_ac_Header=\$ac_header_preproc"
27456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27461 cat >>confdefs.h <<_ACEOF
27462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27471 for ac_header in thread.h synch.h
27473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27475 echo "$as_me:$LINENO: checking for $ac_header" >&5
27476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27477 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27478 echo $ECHO_N "(cached) $ECHO_C" >&6
27480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27483 # Is the header compilable?
27484 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27486 cat >conftest.$ac_ext <<_ACEOF
27489 cat confdefs.h >>conftest.$ac_ext
27490 cat >>conftest.$ac_ext <<_ACEOF
27491 /* end confdefs.h. */
27492 $ac_includes_default
27493 #include <$ac_header>
27495 rm -f conftest.$ac_objext
27496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27497 (eval $ac_compile) 2>conftest.er1
27499 grep -v '^ *+' conftest.er1 >conftest.err
27501 cat conftest.err >&5
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); } &&
27504 { ac_try='test -z "$ac_c_werror_flag"
27505 || test ! -s conftest.err'
27506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27507 (eval $ac_try) 2>&5
27509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510 (exit $ac_status); }; } &&
27511 { ac_try='test -s conftest.$ac_objext'
27512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27513 (eval $ac_try) 2>&5
27515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27516 (exit $ac_status); }; }; then
27517 ac_header_compiler=yes
27519 echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.$ac_ext >&5
27522 ac_header_compiler=no
27524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27525 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27526 echo "${ECHO_T}$ac_header_compiler" >&6
27528 # Is the header present?
27529 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27531 cat >conftest.$ac_ext <<_ACEOF
27534 cat confdefs.h >>conftest.$ac_ext
27535 cat >>conftest.$ac_ext <<_ACEOF
27536 /* end confdefs.h. */
27537 #include <$ac_header>
27539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27542 grep -v '^ *+' conftest.er1 >conftest.err
27544 cat conftest.err >&5
27545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546 (exit $ac_status); } >/dev/null; then
27547 if test -s conftest.err; then
27548 ac_cpp_err=$ac_c_preproc_warn_flag
27549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27556 if test -z "$ac_cpp_err"; then
27557 ac_header_preproc=yes
27559 echo "$as_me: failed program was:" >&5
27560 sed 's/^/| /' conftest.$ac_ext >&5
27562 ac_header_preproc=no
27564 rm -f conftest.err conftest.$ac_ext
27565 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27566 echo "${ECHO_T}$ac_header_preproc" >&6
27568 # So? What about this header?
27569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27575 ac_header_preproc=yes
27578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27592 ## --------------------------------------------- ##
27593 ## Report this to <http://www.openldap.org/its/> ##
27594 ## --------------------------------------------- ##
27597 sed "s/^/$as_me: WARNING: /" >&2
27600 echo "$as_me:$LINENO: checking for $ac_header" >&5
27601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27603 echo $ECHO_N "(cached) $ECHO_C" >&6
27605 eval "$as_ac_Header=\$ac_header_preproc"
27607 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27608 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27612 cat >>confdefs.h <<_ACEOF
27613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27622 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27623 cat >>confdefs.h <<\_ACEOF
27624 #define REENTRANT 1
27627 cat >>confdefs.h <<\_ACEOF
27628 #define _REENTRANT 1
27631 cat >>confdefs.h <<\_ACEOF
27632 #define THREAD_SAFE 1
27635 cat >>confdefs.h <<\_ACEOF
27636 #define _THREAD_SAFE 1
27639 cat >>confdefs.h <<\_ACEOF
27640 #define THREADSAFE 1
27643 cat >>confdefs.h <<\_ACEOF
27644 #define _THREADSAFE 1
27647 cat >>confdefs.h <<\_ACEOF
27648 #define _SGI_MP_SOURCE 1
27652 echo "$as_me:$LINENO: checking for thread specific errno" >&5
27653 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
27654 if test "${ol_cv_errno_thread_specific+set}" = set; then
27655 echo $ECHO_N "(cached) $ECHO_C" >&6
27658 cat >conftest.$ac_ext <<_ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h. */
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27675 (eval $ac_link) 2>conftest.er1
27677 grep -v '^ *+' conftest.er1 >conftest.err
27679 cat conftest.err >&5
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
27682 { ac_try='test -z "$ac_c_werror_flag"
27683 || test ! -s conftest.err'
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; } &&
27689 { ac_try='test -s conftest$ac_exeext'
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; }; then
27695 ol_cv_errno_thread_specific=yes
27697 echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27700 ol_cv_errno_thread_specific=no
27702 rm -f conftest.err conftest.$ac_objext \
27703 conftest$ac_exeext conftest.$ac_ext
27706 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27707 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
27709 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27710 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
27711 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27712 echo $ECHO_N "(cached) $ECHO_C" >&6
27715 cat >conftest.$ac_ext <<_ACEOF
27718 cat confdefs.h >>conftest.$ac_ext
27719 cat >>conftest.$ac_ext <<_ACEOF
27720 /* end confdefs.h. */
27730 rm -f conftest.$ac_objext conftest$ac_exeext
27731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27732 (eval $ac_link) 2>conftest.er1
27734 grep -v '^ *+' conftest.er1 >conftest.err
27736 cat conftest.err >&5
27737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738 (exit $ac_status); } &&
27739 { ac_try='test -z "$ac_c_werror_flag"
27740 || test ! -s conftest.err'
27741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27742 (eval $ac_try) 2>&5
27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); }; } &&
27746 { ac_try='test -s conftest$ac_exeext'
27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27748 (eval $ac_try) 2>&5
27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751 (exit $ac_status); }; }; then
27752 ol_cv_h_errno_thread_specific=yes
27754 echo "$as_me: failed program was:" >&5
27755 sed 's/^/| /' conftest.$ac_ext >&5
27757 ol_cv_h_errno_thread_specific=no
27759 rm -f conftest.err conftest.$ac_objext \
27760 conftest$ac_exeext conftest.$ac_ext
27763 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27764 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
27766 if test $ol_cv_errno_thread_specific != yes ||
27767 test $ol_cv_h_errno_thread_specific != yes ; then
27768 LIBS="$LTHREAD_LIBS $LIBS"
27774 if test $ol_link_threads = no ; then
27775 if test $ol_with_threads = yes ; then
27776 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27777 echo "$as_me: error: no suitable thread support" >&2;}
27778 { (exit 1); exit 1; }; }
27781 if test $ol_with_threads = auto ; then
27782 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27783 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27788 cat >>confdefs.h <<\_ACEOF
27789 #define NO_THREADS 1
27798 if test $ol_link_threads != no ; then
27800 cat >>confdefs.h <<\_ACEOF
27801 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27811 gethostbyname_r gethostbyaddr_r \
27814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27815 echo "$as_me:$LINENO: checking for $ac_func" >&5
27816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27817 if eval "test \"\${$as_ac_var+set}\" = set"; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27820 cat >conftest.$ac_ext <<_ACEOF
27823 cat confdefs.h >>conftest.$ac_ext
27824 cat >>conftest.$ac_ext <<_ACEOF
27825 /* end confdefs.h. */
27826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27828 #define $ac_func innocuous_$ac_func
27830 /* System header to define __stub macros and hopefully few prototypes,
27831 which can conflict with char $ac_func (); below.
27832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27833 <limits.h> exists even on freestanding compilers. */
27836 # include <limits.h>
27838 # include <assert.h>
27843 /* Override any gcc2 internal prototype to avoid an error. */
27848 /* We use char because int might match the return type of a gcc2
27849 builtin and then its argument prototype would still apply. */
27851 /* The GNU C library defines this for functions which it implements
27852 to always fail with ENOSYS. Some functions are actually named
27853 something starting with __ and the normal name is an alias. */
27854 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27857 char (*f) () = $ac_func;
27866 return f != $ac_func;
27871 rm -f conftest.$ac_objext conftest$ac_exeext
27872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27873 (eval $ac_link) 2>conftest.er1
27875 grep -v '^ *+' conftest.er1 >conftest.err
27877 cat conftest.err >&5
27878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879 (exit $ac_status); } &&
27880 { ac_try='test -z "$ac_c_werror_flag"
27881 || test ! -s conftest.err'
27882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27883 (eval $ac_try) 2>&5
27885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886 (exit $ac_status); }; } &&
27887 { ac_try='test -s conftest$ac_exeext'
27888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889 (eval $ac_try) 2>&5
27891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892 (exit $ac_status); }; }; then
27893 eval "$as_ac_var=yes"
27895 echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27898 eval "$as_ac_var=no"
27900 rm -f conftest.err conftest.$ac_objext \
27901 conftest$ac_exeext conftest.$ac_ext
27903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27905 if test `eval echo '${'$as_ac_var'}'` = yes; then
27906 cat >>confdefs.h <<_ACEOF
27907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27914 if test "$ac_cv_func_ctime_r" = no ; then
27915 ol_cv_func_ctime_r_nargs=0
27917 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27918 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
27919 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27920 echo $ECHO_N "(cached) $ECHO_C" >&6
27922 cat >conftest.$ac_ext <<_ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27932 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27937 rm -f conftest.$ac_objext
27938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27939 (eval $ac_compile) 2>conftest.er1
27941 grep -v '^ *+' conftest.er1 >conftest.err
27943 cat conftest.err >&5
27944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27945 (exit $ac_status); } &&
27946 { ac_try='test -z "$ac_c_werror_flag"
27947 || test ! -s conftest.err'
27948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27949 (eval $ac_try) 2>&5
27951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952 (exit $ac_status); }; } &&
27953 { ac_try='test -s conftest.$ac_objext'
27954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955 (eval $ac_try) 2>&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); }; }; then
27959 ol_cv_func_ctime_r_nargs3=yes
27961 echo "$as_me: failed program was:" >&5
27962 sed 's/^/| /' conftest.$ac_ext >&5
27964 ol_cv_func_ctime_r_nargs3=no
27966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27968 cat >conftest.$ac_ext <<_ACEOF
27971 cat confdefs.h >>conftest.$ac_ext
27972 cat >>conftest.$ac_ext <<_ACEOF
27973 /* end confdefs.h. */
27978 time_t ti; char *buffer; ctime_r(&ti,buffer);
27983 rm -f conftest.$ac_objext
27984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27985 (eval $ac_compile) 2>conftest.er1
27987 grep -v '^ *+' conftest.er1 >conftest.err
27989 cat conftest.err >&5
27990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27991 (exit $ac_status); } &&
27992 { ac_try='test -z "$ac_c_werror_flag"
27993 || test ! -s conftest.err'
27994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27995 (eval $ac_try) 2>&5
27997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998 (exit $ac_status); }; } &&
27999 { ac_try='test -s conftest.$ac_objext'
28000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28001 (eval $ac_try) 2>&5
28003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004 (exit $ac_status); }; }; then
28005 ol_cv_func_ctime_r_nargs2=yes
28007 echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.$ac_ext >&5
28010 ol_cv_func_ctime_r_nargs2=no
28012 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28014 if test $ol_cv_func_ctime_r_nargs3 = yes &&
28015 test $ol_cv_func_ctime_r_nargs2 = no ; then
28017 ol_cv_func_ctime_r_nargs=3
28019 elif test $ol_cv_func_ctime_r_nargs3 = no &&
28020 test $ol_cv_func_ctime_r_nargs2 = yes ; then
28022 ol_cv_func_ctime_r_nargs=2
28025 ol_cv_func_ctime_r_nargs=0
28029 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
28030 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
28032 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
28034 cat >>confdefs.h <<_ACEOF
28035 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
28042 if test "$ac_cv_func_gethostbyname_r" = yes ; then
28043 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
28044 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
28045 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
28046 echo $ECHO_N "(cached) $ECHO_C" >&6
28048 cat >conftest.$ac_ext <<_ACEOF
28051 cat confdefs.h >>conftest.$ac_ext
28052 cat >>conftest.$ac_ext <<_ACEOF
28053 /* end confdefs.h. */
28054 #include <sys/types.h>
28055 #include <sys/socket.h>
28056 #include <netinet/in.h>
28058 #define BUFSIZE (sizeof(struct hostent)+10)
28062 struct hostent hent; char buffer[BUFSIZE];
28063 int bufsize=BUFSIZE;int h_errno;
28064 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
28065 buffer, bufsize, &h_errno);
28070 rm -f conftest.$ac_objext
28071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28072 (eval $ac_compile) 2>conftest.er1
28074 grep -v '^ *+' conftest.er1 >conftest.err
28076 cat conftest.err >&5
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); } &&
28079 { ac_try='test -z "$ac_c_werror_flag"
28080 || test ! -s conftest.err'
28081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28082 (eval $ac_try) 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; } &&
28086 { ac_try='test -s conftest.$ac_objext'
28087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28088 (eval $ac_try) 2>&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); }; }; then
28092 ol_cv_func_gethostbyname_r_nargs5=yes
28094 echo "$as_me: failed program was:" >&5
28095 sed 's/^/| /' conftest.$ac_ext >&5
28097 ol_cv_func_gethostbyname_r_nargs5=no
28099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28101 cat >conftest.$ac_ext <<_ACEOF
28104 cat confdefs.h >>conftest.$ac_ext
28105 cat >>conftest.$ac_ext <<_ACEOF
28106 /* end confdefs.h. */
28107 #include <sys/types.h>
28108 #include <sys/socket.h>
28109 #include <netinet/in.h>
28111 #define BUFSIZE (sizeof(struct hostent)+10)
28115 struct hostent hent;struct hostent *rhent;
28116 char buffer[BUFSIZE];
28117 int bufsize=BUFSIZE;int h_errno;
28118 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
28124 rm -f conftest.$ac_objext
28125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28126 (eval $ac_compile) 2>conftest.er1
28128 grep -v '^ *+' conftest.er1 >conftest.err
28130 cat conftest.err >&5
28131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132 (exit $ac_status); } &&
28133 { ac_try='test -z "$ac_c_werror_flag"
28134 || test ! -s conftest.err'
28135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28136 (eval $ac_try) 2>&5
28138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139 (exit $ac_status); }; } &&
28140 { ac_try='test -s conftest.$ac_objext'
28141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28142 (eval $ac_try) 2>&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); }; }; then
28146 ol_cv_func_gethostbyname_r_nargs6=yes
28148 echo "$as_me: failed program was:" >&5
28149 sed 's/^/| /' conftest.$ac_ext >&5
28151 ol_cv_func_gethostbyname_r_nargs6=no
28153 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28155 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
28156 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
28158 ol_cv_func_gethostbyname_r_nargs=5
28160 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
28161 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
28163 ol_cv_func_gethostbyname_r_nargs=6
28166 ol_cv_func_gethostbyname_r_nargs=0
28170 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
28171 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
28172 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
28174 cat >>confdefs.h <<_ACEOF
28175 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
28181 ol_cv_func_gethostbyname_r_nargs=0
28184 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28185 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28186 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
28187 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28188 echo $ECHO_N "(cached) $ECHO_C" >&6
28190 cat >conftest.$ac_ext <<_ACEOF
28193 cat confdefs.h >>conftest.$ac_ext
28194 cat >>conftest.$ac_ext <<_ACEOF
28195 /* end confdefs.h. */
28196 #include <sys/types.h>
28197 #include <sys/socket.h>
28198 #include <netinet/in.h>
28200 #define BUFSIZE (sizeof(struct hostent)+10)
28204 struct hostent hent; char buffer[BUFSIZE];
28205 struct in_addr add;
28206 size_t alen=sizeof(struct in_addr);
28207 int bufsize=BUFSIZE;int h_errno;
28208 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28209 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28214 rm -f conftest.$ac_objext
28215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28216 (eval $ac_compile) 2>conftest.er1
28218 grep -v '^ *+' conftest.er1 >conftest.err
28220 cat conftest.err >&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); } &&
28223 { ac_try='test -z "$ac_c_werror_flag"
28224 || test ! -s conftest.err'
28225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28226 (eval $ac_try) 2>&5
28228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); }; } &&
28230 { ac_try='test -s conftest.$ac_objext'
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; }; then
28236 ol_cv_func_gethostbyaddr_r_nargs7=yes
28238 echo "$as_me: failed program was:" >&5
28239 sed 's/^/| /' conftest.$ac_ext >&5
28241 ol_cv_func_gethostbyaddr_r_nargs7=no
28243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28245 cat >conftest.$ac_ext <<_ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h. */
28251 #include <sys/types.h>
28252 #include <sys/socket.h>
28253 #include <netinet/in.h>
28255 #define BUFSIZE (sizeof(struct hostent)+10)
28259 struct hostent hent;
28260 struct hostent *rhent; char buffer[BUFSIZE];
28261 struct in_addr add;
28262 size_t alen=sizeof(struct in_addr);
28263 int bufsize=BUFSIZE;int h_errno;
28264 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28265 alen, AF_INET, &hent, buffer, bufsize,
28271 rm -f conftest.$ac_objext
28272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28273 (eval $ac_compile) 2>conftest.er1
28275 grep -v '^ *+' conftest.er1 >conftest.err
28277 cat conftest.err >&5
28278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28279 (exit $ac_status); } &&
28280 { ac_try='test -z "$ac_c_werror_flag"
28281 || test ! -s conftest.err'
28282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28283 (eval $ac_try) 2>&5
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); }; } &&
28287 { ac_try='test -s conftest.$ac_objext'
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; }; then
28293 ol_cv_func_gethostbyaddr_r_nargs8=yes
28295 echo "$as_me: failed program was:" >&5
28296 sed 's/^/| /' conftest.$ac_ext >&5
28298 ol_cv_func_gethostbyaddr_r_nargs8=no
28300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28302 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28303 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28305 ol_cv_func_gethostbyaddr_r_nargs=7
28307 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28308 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28310 ol_cv_func_gethostbyaddr_r_nargs=8
28313 ol_cv_func_gethostbyaddr_r_nargs=0
28317 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28318 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
28319 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28321 cat >>confdefs.h <<_ACEOF
28322 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28328 ol_cv_func_gethostbyaddr_r_nargs=0
28333 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28334 ol_cv_berkeley_db=no
28336 for ac_header in db.h
28338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28340 echo "$as_me:$LINENO: checking for $ac_header" >&5
28341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28348 # Is the header compilable?
28349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28351 cat >conftest.$ac_ext <<_ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h. */
28357 $ac_includes_default
28358 #include <$ac_header>
28360 rm -f conftest.$ac_objext
28361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28362 (eval $ac_compile) 2>conftest.er1
28364 grep -v '^ *+' conftest.er1 >conftest.err
28366 cat conftest.err >&5
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } &&
28369 { ac_try='test -z "$ac_c_werror_flag"
28370 || test ! -s conftest.err'
28371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28372 (eval $ac_try) 2>&5
28374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375 (exit $ac_status); }; } &&
28376 { ac_try='test -s conftest.$ac_objext'
28377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28378 (eval $ac_try) 2>&5
28380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28381 (exit $ac_status); }; }; then
28382 ac_header_compiler=yes
28384 echo "$as_me: failed program was:" >&5
28385 sed 's/^/| /' conftest.$ac_ext >&5
28387 ac_header_compiler=no
28389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28391 echo "${ECHO_T}$ac_header_compiler" >&6
28393 # Is the header present?
28394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28396 cat >conftest.$ac_ext <<_ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h. */
28402 #include <$ac_header>
28404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28407 grep -v '^ *+' conftest.er1 >conftest.err
28409 cat conftest.err >&5
28410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411 (exit $ac_status); } >/dev/null; then
28412 if test -s conftest.err; then
28413 ac_cpp_err=$ac_c_preproc_warn_flag
28414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28421 if test -z "$ac_cpp_err"; then
28422 ac_header_preproc=yes
28424 echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28427 ac_header_preproc=no
28429 rm -f conftest.err conftest.$ac_ext
28430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28431 echo "${ECHO_T}$ac_header_preproc" >&6
28433 # So? What about this header?
28434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28440 ac_header_preproc=yes
28443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28446 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28450 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28457 ## --------------------------------------------- ##
28458 ## Report this to <http://www.openldap.org/its/> ##
28459 ## --------------------------------------------- ##
28462 sed "s/^/$as_me: WARNING: /" >&2
28465 echo "$as_me:$LINENO: checking for $ac_header" >&5
28466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28468 echo $ECHO_N "(cached) $ECHO_C" >&6
28470 eval "$as_ac_Header=\$ac_header_preproc"
28472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28477 cat >>confdefs.h <<_ACEOF
28478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28485 if test $ac_cv_header_db_h = yes; then
28486 echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28487 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6
28488 if test "${ol_cv_bdb_major+set}" = set; then
28489 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 cat >conftest.$ac_ext <<_ACEOF
28495 #ifndef DB_VERSION_MAJOR
28496 # define DB_VERSION_MAJOR 1
28498 __db_version DB_VERSION_MAJOR
28501 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28502 ol_cv_bdb_major=${3}
28505 echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28506 echo "${ECHO_T}$ol_cv_bdb_major" >&6
28507 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28508 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28509 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28510 { (exit 1); exit 1; }; } ;;
28513 echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28514 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6
28515 if test "${ol_cv_bdb_minor+set}" = set; then
28516 echo $ECHO_N "(cached) $ECHO_C" >&6
28519 cat >conftest.$ac_ext <<_ACEOF
28522 #ifndef DB_VERSION_MINOR
28523 # define DB_VERSION_MINOR 0
28525 __db_version DB_VERSION_MINOR
28528 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28529 ol_cv_bdb_minor=${3}
28532 echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28533 echo "${ECHO_T}$ol_cv_bdb_minor" >&6
28534 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28535 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28536 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28537 { (exit 1); exit 1; }; } ;;
28540 echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28541 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6
28542 if test "${ol_cv_bdb_compat+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28546 cat >conftest.$ac_ext <<_ACEOF
28549 cat confdefs.h >>conftest.$ac_ext
28550 cat >>conftest.$ac_ext <<_ACEOF
28551 /* end confdefs.h. */
28555 /* this check could be improved */
28556 #ifndef DB_VERSION_MAJOR
28557 # define DB_VERSION_MAJOR 1
28559 #ifndef DB_VERSION_MINOR
28560 # define DB_VERSION_MINOR 0
28563 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28565 /* require 4.4 or later */
28566 #if DB_VERSION_MM >= 0x0404
28567 __db_version_compat
28571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28572 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28573 ol_cv_bdb_compat=yes
28575 ol_cv_bdb_compat=no
28580 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28581 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
28584 if test $ol_cv_bdb_compat != yes ; then
28585 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28586 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28587 { (exit 1); exit 1; }; }
28592 if test $ol_cv_bdb_major = 4 ; then
28593 if test $ol_cv_lib_db = no ; then
28594 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28595 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6
28596 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28597 echo $ECHO_N "(cached) $ECHO_C" >&6
28600 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28602 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28604 cat >conftest.$ac_ext <<_ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h. */
28611 #ifdef HAVE_DB_185_H
28612 # include <db_185.h>
28617 #ifndef DB_VERSION_MAJOR
28618 # define DB_VERSION_MAJOR 1
28622 #define NULL ((void*)0)
28629 #if DB_VERSION_MAJOR > 2
28630 db_env_create( NULL, 0 );
28631 #elif DB_VERSION_MAJOR > 1
28632 db_appexit( NULL );
28634 (void) dbopen( NULL, 0, 0, 0, NULL);
28641 rm -f conftest.$ac_objext conftest$ac_exeext
28642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28643 (eval $ac_link) 2>conftest.er1
28645 grep -v '^ *+' conftest.er1 >conftest.err
28647 cat conftest.err >&5
28648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649 (exit $ac_status); } &&
28650 { ac_try='test -z "$ac_c_werror_flag"
28651 || test ! -s conftest.err'
28652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28653 (eval $ac_try) 2>&5
28655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28656 (exit $ac_status); }; } &&
28657 { ac_try='test -s conftest$ac_exeext'
28658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28659 (eval $ac_try) 2>&5
28661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28662 (exit $ac_status); }; }; then
28663 ol_cv_db_db_4_dot_m=yes
28665 echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28668 ol_cv_db_db_4_dot_m=no
28670 rm -f conftest.err conftest.$ac_objext \
28671 conftest$ac_exeext conftest.$ac_ext
28676 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28677 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6
28679 if test $ol_cv_db_db_4_dot_m = yes ; then
28680 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28684 if test $ol_cv_lib_db = no ; then
28685 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28686 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6
28687 if test "${ol_cv_db_db4m+set}" = set; then
28688 echo $ECHO_N "(cached) $ECHO_C" >&6
28691 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28693 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28695 cat >conftest.$ac_ext <<_ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28702 #ifdef HAVE_DB_185_H
28703 # include <db_185.h>
28708 #ifndef DB_VERSION_MAJOR
28709 # define DB_VERSION_MAJOR 1
28713 #define NULL ((void*)0)
28720 #if DB_VERSION_MAJOR > 2
28721 db_env_create( NULL, 0 );
28722 #elif DB_VERSION_MAJOR > 1
28723 db_appexit( NULL );
28725 (void) dbopen( NULL, 0, 0, 0, NULL);
28732 rm -f conftest.$ac_objext conftest$ac_exeext
28733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28734 (eval $ac_link) 2>conftest.er1
28736 grep -v '^ *+' conftest.er1 >conftest.err
28738 cat conftest.err >&5
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); } &&
28741 { ac_try='test -z "$ac_c_werror_flag"
28742 || test ! -s conftest.err'
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest$ac_exeext'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28756 echo "$as_me: failed program was:" >&5
28757 sed 's/^/| /' conftest.$ac_ext >&5
28761 rm -f conftest.err conftest.$ac_objext \
28762 conftest$ac_exeext conftest.$ac_ext
28767 echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28768 echo "${ECHO_T}$ol_cv_db_db4m" >&6
28770 if test $ol_cv_db_db4m = yes ; then
28771 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28775 if test $ol_cv_lib_db = no ; then
28776 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28777 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6
28778 if test "${ol_cv_db_db_4m+set}" = set; then
28779 echo $ECHO_N "(cached) $ECHO_C" >&6
28782 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28784 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28786 cat >conftest.$ac_ext <<_ACEOF
28789 cat confdefs.h >>conftest.$ac_ext
28790 cat >>conftest.$ac_ext <<_ACEOF
28791 /* end confdefs.h. */
28793 #ifdef HAVE_DB_185_H
28794 # include <db_185.h>
28799 #ifndef DB_VERSION_MAJOR
28800 # define DB_VERSION_MAJOR 1
28804 #define NULL ((void*)0)
28811 #if DB_VERSION_MAJOR > 2
28812 db_env_create( NULL, 0 );
28813 #elif DB_VERSION_MAJOR > 1
28814 db_appexit( NULL );
28816 (void) dbopen( NULL, 0, 0, 0, NULL);
28823 rm -f conftest.$ac_objext conftest$ac_exeext
28824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28825 (eval $ac_link) 2>conftest.er1
28827 grep -v '^ *+' conftest.er1 >conftest.err
28829 cat conftest.err >&5
28830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28831 (exit $ac_status); } &&
28832 { ac_try='test -z "$ac_c_werror_flag"
28833 || test ! -s conftest.err'
28834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835 (eval $ac_try) 2>&5
28837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838 (exit $ac_status); }; } &&
28839 { ac_try='test -s conftest$ac_exeext'
28840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841 (eval $ac_try) 2>&5
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; }; then
28847 echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28852 rm -f conftest.err conftest.$ac_objext \
28853 conftest$ac_exeext conftest.$ac_ext
28858 echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28859 echo "${ECHO_T}$ol_cv_db_db_4m" >&6
28861 if test $ol_cv_db_db_4m = yes ; then
28862 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28866 if test $ol_cv_lib_db = no ; then
28867 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28868 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6
28869 if test "${ol_cv_db_db_4_m+set}" = set; then
28870 echo $ECHO_N "(cached) $ECHO_C" >&6
28873 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28875 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28877 cat >conftest.$ac_ext <<_ACEOF
28880 cat confdefs.h >>conftest.$ac_ext
28881 cat >>conftest.$ac_ext <<_ACEOF
28882 /* end confdefs.h. */
28884 #ifdef HAVE_DB_185_H
28885 # include <db_185.h>
28890 #ifndef DB_VERSION_MAJOR
28891 # define DB_VERSION_MAJOR 1
28895 #define NULL ((void*)0)
28902 #if DB_VERSION_MAJOR > 2
28903 db_env_create( NULL, 0 );
28904 #elif DB_VERSION_MAJOR > 1
28905 db_appexit( NULL );
28907 (void) dbopen( NULL, 0, 0, 0, NULL);
28914 rm -f conftest.$ac_objext conftest$ac_exeext
28915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28916 (eval $ac_link) 2>conftest.er1
28918 grep -v '^ *+' conftest.er1 >conftest.err
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
28923 { ac_try='test -z "$ac_c_werror_flag"
28924 || test ! -s conftest.err'
28925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926 (eval $ac_try) 2>&5
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; } &&
28930 { ac_try='test -s conftest$ac_exeext'
28931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28932 (eval $ac_try) 2>&5
28934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935 (exit $ac_status); }; }; then
28936 ol_cv_db_db_4_m=yes
28938 echo "$as_me: failed program was:" >&5
28939 sed 's/^/| /' conftest.$ac_ext >&5
28943 rm -f conftest.err conftest.$ac_objext \
28944 conftest$ac_exeext conftest.$ac_ext
28949 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28950 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6
28952 if test $ol_cv_db_db_4_m = yes ; then
28953 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28957 if test $ol_cv_lib_db = no ; then
28958 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28959 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
28960 if test "${ol_cv_db_db_4+set}" = set; then
28961 echo $ECHO_N "(cached) $ECHO_C" >&6
28966 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28968 cat >conftest.$ac_ext <<_ACEOF
28971 cat confdefs.h >>conftest.$ac_ext
28972 cat >>conftest.$ac_ext <<_ACEOF
28973 /* end confdefs.h. */
28975 #ifdef HAVE_DB_185_H
28976 # include <db_185.h>
28981 #ifndef DB_VERSION_MAJOR
28982 # define DB_VERSION_MAJOR 1
28986 #define NULL ((void*)0)
28993 #if DB_VERSION_MAJOR > 2
28994 db_env_create( NULL, 0 );
28995 #elif DB_VERSION_MAJOR > 1
28996 db_appexit( NULL );
28998 (void) dbopen( NULL, 0, 0, 0, NULL);
29005 rm -f conftest.$ac_objext conftest$ac_exeext
29006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29007 (eval $ac_link) 2>conftest.er1
29009 grep -v '^ *+' conftest.er1 >conftest.err
29011 cat conftest.err >&5
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); } &&
29014 { ac_try='test -z "$ac_c_werror_flag"
29015 || test ! -s conftest.err'
29016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29017 (eval $ac_try) 2>&5
29019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29020 (exit $ac_status); }; } &&
29021 { ac_try='test -s conftest$ac_exeext'
29022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29023 (eval $ac_try) 2>&5
29025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29026 (exit $ac_status); }; }; then
29029 echo "$as_me: failed program was:" >&5
29030 sed 's/^/| /' conftest.$ac_ext >&5
29034 rm -f conftest.err conftest.$ac_objext \
29035 conftest$ac_exeext conftest.$ac_ext
29040 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29041 echo "${ECHO_T}$ol_cv_db_db_4" >&6
29043 if test $ol_cv_db_db_4 = yes ; then
29044 ol_cv_lib_db=-ldb-4
29048 if test $ol_cv_lib_db = no ; then
29049 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29050 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
29051 if test "${ol_cv_db_db4+set}" = set; then
29052 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29059 cat >conftest.$ac_ext <<_ACEOF
29062 cat confdefs.h >>conftest.$ac_ext
29063 cat >>conftest.$ac_ext <<_ACEOF
29064 /* end confdefs.h. */
29066 #ifdef HAVE_DB_185_H
29067 # include <db_185.h>
29072 #ifndef DB_VERSION_MAJOR
29073 # define DB_VERSION_MAJOR 1
29077 #define NULL ((void*)0)
29084 #if DB_VERSION_MAJOR > 2
29085 db_env_create( NULL, 0 );
29086 #elif DB_VERSION_MAJOR > 1
29087 db_appexit( NULL );
29089 (void) dbopen( NULL, 0, 0, 0, NULL);
29096 rm -f conftest.$ac_objext conftest$ac_exeext
29097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29098 (eval $ac_link) 2>conftest.er1
29100 grep -v '^ *+' conftest.er1 >conftest.err
29102 cat conftest.err >&5
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); } &&
29105 { ac_try='test -z "$ac_c_werror_flag"
29106 || test ! -s conftest.err'
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; } &&
29112 { ac_try='test -s conftest$ac_exeext'
29113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29114 (eval $ac_try) 2>&5
29116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117 (exit $ac_status); }; }; then
29120 echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29125 rm -f conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
29131 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29132 echo "${ECHO_T}$ol_cv_db_db4" >&6
29134 if test $ol_cv_db_db4 = yes ; then
29139 if test $ol_cv_lib_db = no ; then
29140 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29141 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
29142 if test "${ol_cv_db_db+set}" = set; then
29143 echo $ECHO_N "(cached) $ECHO_C" >&6
29148 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29150 cat >conftest.$ac_ext <<_ACEOF
29153 cat confdefs.h >>conftest.$ac_ext
29154 cat >>conftest.$ac_ext <<_ACEOF
29155 /* end confdefs.h. */
29157 #ifdef HAVE_DB_185_H
29158 # include <db_185.h>
29163 #ifndef DB_VERSION_MAJOR
29164 # define DB_VERSION_MAJOR 1
29168 #define NULL ((void*)0)
29175 #if DB_VERSION_MAJOR > 2
29176 db_env_create( NULL, 0 );
29177 #elif DB_VERSION_MAJOR > 1
29178 db_appexit( NULL );
29180 (void) dbopen( NULL, 0, 0, 0, NULL);
29187 rm -f conftest.$ac_objext conftest$ac_exeext
29188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29189 (eval $ac_link) 2>conftest.er1
29191 grep -v '^ *+' conftest.er1 >conftest.err
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } &&
29196 { ac_try='test -z "$ac_c_werror_flag"
29197 || test ! -s conftest.err'
29198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29199 (eval $ac_try) 2>&5
29201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29202 (exit $ac_status); }; } &&
29203 { ac_try='test -s conftest$ac_exeext'
29204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29205 (eval $ac_try) 2>&5
29207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208 (exit $ac_status); }; }; then
29211 echo "$as_me: failed program was:" >&5
29212 sed 's/^/| /' conftest.$ac_ext >&5
29216 rm -f conftest.err conftest.$ac_objext \
29217 conftest$ac_exeext conftest.$ac_ext
29222 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29223 echo "${ECHO_T}$ol_cv_db_db" >&6
29225 if test $ol_cv_db_db = yes ; then
29231 if test $ol_cv_lib_db = no ; then
29232 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29233 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
29234 if test "${ol_cv_db_none+set}" = set; then
29235 echo $ECHO_N "(cached) $ECHO_C" >&6
29240 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29242 cat >conftest.$ac_ext <<_ACEOF
29245 cat confdefs.h >>conftest.$ac_ext
29246 cat >>conftest.$ac_ext <<_ACEOF
29247 /* end confdefs.h. */
29249 #ifdef HAVE_DB_185_H
29250 # include <db_185.h>
29255 #ifndef DB_VERSION_MAJOR
29256 # define DB_VERSION_MAJOR 1
29260 #define NULL ((void*)0)
29267 #if DB_VERSION_MAJOR > 2
29268 db_env_create( NULL, 0 );
29269 #elif DB_VERSION_MAJOR > 1
29270 db_appexit( NULL );
29272 (void) dbopen( NULL, 0, 0, 0, NULL);
29279 rm -f conftest.$ac_objext conftest$ac_exeext
29280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29281 (eval $ac_link) 2>conftest.er1
29283 grep -v '^ *+' conftest.er1 >conftest.err
29285 cat conftest.err >&5
29286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } &&
29288 { ac_try='test -z "$ac_c_werror_flag"
29289 || test ! -s conftest.err'
29290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29291 (eval $ac_try) 2>&5
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); }; } &&
29295 { ac_try='test -s conftest$ac_exeext'
29296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29297 (eval $ac_try) 2>&5
29299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300 (exit $ac_status); }; }; then
29303 echo "$as_me: failed program was:" >&5
29304 sed 's/^/| /' conftest.$ac_ext >&5
29308 rm -f conftest.err conftest.$ac_objext \
29309 conftest$ac_exeext conftest.$ac_ext
29314 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29315 echo "${ECHO_T}$ol_cv_db_none" >&6
29317 if test $ol_cv_db_none = yes ; then
29323 if test "$ol_cv_lib_db" != no ; then
29324 ol_cv_berkeley_db=yes
29325 echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29326 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6
29327 if test "${ol_cv_berkeley_db_version+set}" = set; then
29328 echo $ECHO_N "(cached) $ECHO_C" >&6
29332 LIBS="$LTHREAD_LIBS $LIBS"
29333 if test $ol_cv_lib_db != yes ; then
29334 LIBS="$ol_cv_lib_db $LIBS"
29337 if test "$cross_compiling" = yes; then
29338 ol_cv_berkeley_db_version=cross
29340 cat >conftest.$ac_ext <<_ACEOF
29343 cat confdefs.h >>conftest.$ac_ext
29344 cat >>conftest.$ac_ext <<_ACEOF
29345 /* end confdefs.h. */
29347 #ifdef HAVE_DB_185_H
29352 #ifndef DB_VERSION_MAJOR
29353 # define DB_VERSION_MAJOR 1
29356 #define NULL ((void *)0)
29360 #if DB_VERSION_MAJOR > 1
29362 int major, minor, patch;
29364 version = db_version( &major, &minor, &patch );
29366 if( major != DB_VERSION_MAJOR ||
29367 minor != DB_VERSION_MINOR ||
29368 patch != DB_VERSION_PATCH )
29370 printf("Berkeley DB version mismatch\n"
29371 "\theader: %s\n\tlibrary: %s\n",
29372 DB_VERSION_STRING, version);
29380 rm -f conftest$ac_exeext
29381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29382 (eval $ac_link) 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 ol_cv_berkeley_db_version=yes
29393 echo "$as_me: program exited with status $ac_status" >&5
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29397 ( exit $ac_status )
29398 ol_cv_berkeley_db_version=no
29400 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29406 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29407 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
29409 if test $ol_cv_berkeley_db_version = no ; then
29410 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29411 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29412 { (exit 1); exit 1; }; }
29415 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29416 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
29417 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29418 echo $ECHO_N "(cached) $ECHO_C" >&6
29422 LIBS="$LTHREAD_LIBS $LIBS"
29423 if test $ol_cv_lib_db != yes ; then
29424 LIBS="$ol_cv_lib_db $LIBS"
29427 if test "$cross_compiling" = yes; then
29428 ol_cv_berkeley_db_thread=cross
29430 cat >conftest.$ac_ext <<_ACEOF
29433 cat confdefs.h >>conftest.$ac_ext
29434 cat >>conftest.$ac_ext <<_ACEOF
29435 /* end confdefs.h. */
29437 #ifdef HAVE_DB_185_H
29443 #define NULL ((void *)0)
29448 u_int32_t flags = DB_CREATE |
29454 #if DB_VERSION_MAJOR > 2
29455 DB_ENV *env = NULL;
29457 rc = db_env_create( &env, 0 );
29459 flags |= DB_INIT_MPOOL;
29460 #ifdef DB_MPOOL_PRIVATE
29461 flags |= DB_MPOOL_PRIVATE;
29465 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29469 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29470 rc = (env->open)( env, NULL, flags, 0 );
29472 rc = (env->open)( env, NULL, NULL, flags, 0 );
29476 rc = env->close( env, 0 );
29480 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29486 memset( &env, '\0', sizeof(env) );
29488 rc = db_appinit( NULL, NULL, &env, flags );
29491 db_appexit( &env );
29494 unlink("__db_mpool.share");
29495 unlink("__db_lock.share");
29501 rm -f conftest$ac_exeext
29502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29503 (eval $ac_link) 2>&5
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
29512 ol_cv_berkeley_db_thread=yes
29514 echo "$as_me: program exited with status $ac_status" >&5
29515 echo "$as_me: failed program was:" >&5
29516 sed 's/^/| /' conftest.$ac_ext >&5
29518 ( exit $ac_status )
29519 ol_cv_berkeley_db_thread=no
29521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29527 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29528 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
29530 if test $ol_cv_berkeley_db_thread != no ; then
29532 cat >>confdefs.h <<\_ACEOF
29533 #define HAVE_BERKELEY_DB_THREAD 1
29542 if test $ol_cv_berkeley_db = no ; then
29543 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29544 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29545 { (exit 1); exit 1; }; }
29549 cat >>confdefs.h <<\_ACEOF
29550 #define HAVE_BERKELEY_DB 1
29554 if test $ol_cv_lib_db != yes ; then
29555 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29558 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29564 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29565 BUILD_LIBS_DYNAMIC=shared
29567 cat >>confdefs.h <<\_ACEOF
29568 #define LDAP_LIBS_DYNAMIC 1
29573 BUILD_LIBS_DYNAMIC=static
29577 if test $ol_enable_wrappers != no ; then
29579 for ac_header in tcpd.h
29581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29583 echo "$as_me:$LINENO: checking for $ac_header" >&5
29584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29591 # Is the header compilable?
29592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h. */
29600 $ac_includes_default
29601 #include <$ac_header>
29603 rm -f conftest.$ac_objext
29604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29605 (eval $ac_compile) 2>conftest.er1
29607 grep -v '^ *+' conftest.er1 >conftest.err
29609 cat conftest.err >&5
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
29612 { ac_try='test -z "$ac_c_werror_flag"
29613 || test ! -s conftest.err'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest.$ac_objext'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_header_compiler=yes
29627 echo "$as_me: failed program was:" >&5
29628 sed 's/^/| /' conftest.$ac_ext >&5
29630 ac_header_compiler=no
29632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29634 echo "${ECHO_T}$ac_header_compiler" >&6
29636 # Is the header present?
29637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29639 cat >conftest.$ac_ext <<_ACEOF
29642 cat confdefs.h >>conftest.$ac_ext
29643 cat >>conftest.$ac_ext <<_ACEOF
29644 /* end confdefs.h. */
29645 #include <$ac_header>
29647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29650 grep -v '^ *+' conftest.er1 >conftest.err
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } >/dev/null; then
29655 if test -s conftest.err; then
29656 ac_cpp_err=$ac_c_preproc_warn_flag
29657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29664 if test -z "$ac_cpp_err"; then
29665 ac_header_preproc=yes
29667 echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29670 ac_header_preproc=no
29672 rm -f conftest.err conftest.$ac_ext
29673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29674 echo "${ECHO_T}$ac_header_preproc" >&6
29676 # So? What about this header?
29677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29683 ac_header_preproc=yes
29686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29700 ## --------------------------------------------- ##
29701 ## Report this to <http://www.openldap.org/its/> ##
29702 ## --------------------------------------------- ##
29705 sed "s/^/$as_me: WARNING: /" >&2
29708 echo "$as_me:$LINENO: checking for $ac_header" >&5
29709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29711 echo $ECHO_N "(cached) $ECHO_C" >&6
29713 eval "$as_ac_Header=\$ac_header_preproc"
29715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29720 cat >>confdefs.h <<_ACEOF
29721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29724 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29725 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
29727 LIBS="$LIBS -lwrap"
29728 cat >conftest.$ac_ext <<_ACEOF
29731 cat confdefs.h >>conftest.$ac_ext
29732 cat >>conftest.$ac_ext <<_ACEOF
29733 /* end confdefs.h. */
29736 int allow_severity = 0;
29737 int deny_severity = 0;
29739 struct request_info *req;
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29753 (eval $ac_link) 2>conftest.er1
29755 grep -v '^ *+' conftest.er1 >conftest.err
29757 cat conftest.err >&5
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
29760 { ac_try='test -z "$ac_c_werror_flag"
29761 || test ! -s conftest.err'
29762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763 (eval $ac_try) 2>&5
29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); }; } &&
29767 { ac_try='test -s conftest$ac_exeext'
29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29769 (eval $ac_try) 2>&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; }; then
29773 echo "$as_me:$LINENO: result: -lwrap" >&5
29774 echo "${ECHO_T}-lwrap" >&6
29778 echo "$as_me: failed program was:" >&5
29779 sed 's/^/| /' conftest.$ac_ext >&5
29783 cat >conftest.$ac_ext <<_ACEOF
29786 cat confdefs.h >>conftest.$ac_ext
29787 cat >>conftest.$ac_ext <<_ACEOF
29788 /* end confdefs.h. */
29791 int allow_severity = 0;
29792 int deny_severity = 0;
29794 struct request_info *req;
29806 rm -f conftest.$ac_objext conftest$ac_exeext
29807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29808 (eval $ac_link) 2>conftest.er1
29810 grep -v '^ *+' conftest.er1 >conftest.err
29812 cat conftest.err >&5
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); } &&
29815 { ac_try='test -z "$ac_c_werror_flag"
29816 || test ! -s conftest.err'
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest$ac_exeext'
29823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29829 echo "${ECHO_T}-lwrap -lnsl" >&6
29831 LIBS="$save_LIBS -lnsl"
29833 echo "$as_me: failed program was:" >&5
29834 sed 's/^/| /' conftest.$ac_ext >&5
29837 echo "$as_me:$LINENO: result: no" >&5
29838 echo "${ECHO_T}no" >&6
29842 rm -f conftest.err conftest.$ac_objext \
29843 conftest$ac_exeext conftest.$ac_ext
29845 rm -f conftest.err conftest.$ac_objext \
29846 conftest$ac_exeext conftest.$ac_ext
29854 if test $have_wrappers = yes ; then
29856 cat >>confdefs.h <<\_ACEOF
29857 #define HAVE_TCPD 1
29861 elif test $ol_enable_wrappers = yes ; then
29862 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29863 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29864 { (exit 1); exit 1; }; }
29866 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29867 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29872 if test $ol_enable_syslog != no ; then
29873 echo "$as_me:$LINENO: checking for openlog" >&5
29874 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
29875 if test "${ac_cv_func_openlog+set}" = set; then
29876 echo $ECHO_N "(cached) $ECHO_C" >&6
29878 cat >conftest.$ac_ext <<_ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h. */
29884 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29886 #define openlog innocuous_openlog
29888 /* System header to define __stub macros and hopefully few prototypes,
29889 which can conflict with char openlog (); below.
29890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891 <limits.h> exists even on freestanding compilers. */
29894 # include <limits.h>
29896 # include <assert.h>
29901 /* Override any gcc2 internal prototype to avoid an error. */
29906 /* We use char because int might match the return type of a gcc2
29907 builtin and then its argument prototype would still apply. */
29909 /* The GNU C library defines this for functions which it implements
29910 to always fail with ENOSYS. Some functions are actually named
29911 something starting with __ and the normal name is an alias. */
29912 #if defined (__stub_openlog) || defined (__stub___openlog)
29915 char (*f) () = openlog;
29924 return f != openlog;
29929 rm -f conftest.$ac_objext conftest$ac_exeext
29930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29931 (eval $ac_link) 2>conftest.er1
29933 grep -v '^ *+' conftest.er1 >conftest.err
29935 cat conftest.err >&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); } &&
29938 { ac_try='test -z "$ac_c_werror_flag"
29939 || test ! -s conftest.err'
29940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29941 (eval $ac_try) 2>&5
29943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 (exit $ac_status); }; } &&
29945 { ac_try='test -s conftest$ac_exeext'
29946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29947 (eval $ac_try) 2>&5
29949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950 (exit $ac_status); }; }; then
29951 ac_cv_func_openlog=yes
29953 echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29956 ac_cv_func_openlog=no
29958 rm -f conftest.err conftest.$ac_objext \
29959 conftest$ac_exeext conftest.$ac_ext
29961 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29962 echo "${ECHO_T}$ac_cv_func_openlog" >&6
29964 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29965 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29966 echo "$as_me: error: could not find syslog" >&2;}
29967 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29969 ol_enable_syslog=$ac_cv_func_openlog
29973 if test $ol_enable_sql != no ; then
29976 for ac_header in sql.h sqlext.h
29978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29980 echo "$as_me:$LINENO: checking for $ac_header" >&5
29981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29982 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29983 echo $ECHO_N "(cached) $ECHO_C" >&6
29985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29986 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29988 # Is the header compilable?
29989 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29990 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29991 cat >conftest.$ac_ext <<_ACEOF
29994 cat confdefs.h >>conftest.$ac_ext
29995 cat >>conftest.$ac_ext <<_ACEOF
29996 /* end confdefs.h. */
29997 $ac_includes_default
29998 #include <$ac_header>
30000 rm -f conftest.$ac_objext
30001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30002 (eval $ac_compile) 2>conftest.er1
30004 grep -v '^ *+' conftest.er1 >conftest.err
30006 cat conftest.err >&5
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); } &&
30009 { ac_try='test -z "$ac_c_werror_flag"
30010 || test ! -s conftest.err'
30011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30012 (eval $ac_try) 2>&5
30014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30015 (exit $ac_status); }; } &&
30016 { ac_try='test -s conftest.$ac_objext'
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; }; then
30022 ac_header_compiler=yes
30024 echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30027 ac_header_compiler=no
30029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30030 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30031 echo "${ECHO_T}$ac_header_compiler" >&6
30033 # Is the header present?
30034 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30035 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30036 cat >conftest.$ac_ext <<_ACEOF
30039 cat confdefs.h >>conftest.$ac_ext
30040 cat >>conftest.$ac_ext <<_ACEOF
30041 /* end confdefs.h. */
30042 #include <$ac_header>
30044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30047 grep -v '^ *+' conftest.er1 >conftest.err
30049 cat conftest.err >&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } >/dev/null; then
30052 if test -s conftest.err; then
30053 ac_cpp_err=$ac_c_preproc_warn_flag
30054 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30061 if test -z "$ac_cpp_err"; then
30062 ac_header_preproc=yes
30064 echo "$as_me: failed program was:" >&5
30065 sed 's/^/| /' conftest.$ac_ext >&5
30067 ac_header_preproc=no
30069 rm -f conftest.err conftest.$ac_ext
30070 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30071 echo "${ECHO_T}$ac_header_preproc" >&6
30073 # So? What about this header?
30074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30076 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30077 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30078 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30079 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30080 ac_header_preproc=yes
30083 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30084 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30085 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30086 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30087 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30088 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30089 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30090 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30092 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30093 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30094 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30097 ## --------------------------------------------- ##
30098 ## Report this to <http://www.openldap.org/its/> ##
30099 ## --------------------------------------------- ##
30102 sed "s/^/$as_me: WARNING: /" >&2
30105 echo "$as_me:$LINENO: checking for $ac_header" >&5
30106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30107 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30108 echo $ECHO_N "(cached) $ECHO_C" >&6
30110 eval "$as_ac_Header=\$ac_header_preproc"
30112 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30113 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30116 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30117 cat >>confdefs.h <<_ACEOF
30118 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30123 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30124 echo "$as_me: error: could not locate SQL headers" >&2;}
30125 { (exit 1); exit 1; }; }
30133 LIBS="$LTHREAD_LIBS"
30135 if test $ol_with_odbc = auto ; then
30136 ol_with_odbc="iodbc unixodbc odbc32"
30139 for odbc in $ol_with_odbc ; do
30140 if test $ol_link_sql = no ; then
30143 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30144 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
30145 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30146 echo $ECHO_N "(cached) $ECHO_C" >&6
30148 ac_check_lib_save_LIBS=$LIBS
30149 LIBS="-liodbc $LIBS"
30150 cat >conftest.$ac_ext <<_ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30157 /* Override any gcc2 internal prototype to avoid an error. */
30161 /* We use char because int might match the return type of a gcc2
30162 builtin and then its argument prototype would still apply. */
30163 char SQLDriverConnect ();
30167 SQLDriverConnect ();
30172 rm -f conftest.$ac_objext conftest$ac_exeext
30173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30174 (eval $ac_link) 2>conftest.er1
30176 grep -v '^ *+' conftest.er1 >conftest.err
30178 cat conftest.err >&5
30179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30180 (exit $ac_status); } &&
30181 { ac_try='test -z "$ac_c_werror_flag"
30182 || test ! -s conftest.err'
30183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30184 (eval $ac_try) 2>&5
30186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30187 (exit $ac_status); }; } &&
30188 { ac_try='test -s conftest$ac_exeext'
30189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190 (eval $ac_try) 2>&5
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; }; then
30194 ac_cv_lib_iodbc_SQLDriverConnect=yes
30196 echo "$as_me: failed program was:" >&5
30197 sed 's/^/| /' conftest.$ac_ext >&5
30199 ac_cv_lib_iodbc_SQLDriverConnect=no
30201 rm -f conftest.err conftest.$ac_objext \
30202 conftest$ac_exeext conftest.$ac_ext
30203 LIBS=$ac_check_lib_save_LIBS
30205 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30206 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
30207 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30213 if test $have_iodbc = yes ; then
30214 ol_link_sql="-liodbc"
30219 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30220 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
30221 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30222 echo $ECHO_N "(cached) $ECHO_C" >&6
30224 ac_check_lib_save_LIBS=$LIBS
30225 LIBS="-lodbc $LIBS"
30226 cat >conftest.$ac_ext <<_ACEOF
30229 cat confdefs.h >>conftest.$ac_ext
30230 cat >>conftest.$ac_ext <<_ACEOF
30231 /* end confdefs.h. */
30233 /* Override any gcc2 internal prototype to avoid an error. */
30237 /* We use char because int might match the return type of a gcc2
30238 builtin and then its argument prototype would still apply. */
30239 char SQLDriverConnect ();
30243 SQLDriverConnect ();
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30250 (eval $ac_link) 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } &&
30257 { ac_try='test -z "$ac_c_werror_flag"
30258 || test ! -s conftest.err'
30259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30260 (eval $ac_try) 2>&5
30262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30263 (exit $ac_status); }; } &&
30264 { ac_try='test -s conftest$ac_exeext'
30265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30266 (eval $ac_try) 2>&5
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); }; }; then
30270 ac_cv_lib_odbc_SQLDriverConnect=yes
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 ac_cv_lib_odbc_SQLDriverConnect=no
30277 rm -f conftest.err conftest.$ac_objext \
30278 conftest$ac_exeext conftest.$ac_ext
30279 LIBS=$ac_check_lib_save_LIBS
30281 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30282 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
30283 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30289 if test $have_odbc = yes ; then
30290 ol_link_sql="-lodbc"
30295 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30296 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6
30297 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30298 echo $ECHO_N "(cached) $ECHO_C" >&6
30300 ac_check_lib_save_LIBS=$LIBS
30301 LIBS="-lodbc32 $LIBS"
30302 cat >conftest.$ac_ext <<_ACEOF
30305 cat confdefs.h >>conftest.$ac_ext
30306 cat >>conftest.$ac_ext <<_ACEOF
30307 /* end confdefs.h. */
30309 /* Override any gcc2 internal prototype to avoid an error. */
30313 /* We use char because int might match the return type of a gcc2
30314 builtin and then its argument prototype would still apply. */
30315 char SQLDriverConnect ();
30319 SQLDriverConnect ();
30324 rm -f conftest.$ac_objext conftest$ac_exeext
30325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30326 (eval $ac_link) 2>conftest.er1
30328 grep -v '^ *+' conftest.er1 >conftest.err
30330 cat conftest.err >&5
30331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } &&
30333 { ac_try='test -z "$ac_c_werror_flag"
30334 || test ! -s conftest.err'
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; } &&
30340 { ac_try='test -s conftest$ac_exeext'
30341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30342 (eval $ac_try) 2>&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); }; }; then
30346 ac_cv_lib_odbc32_SQLDriverConnect=yes
30348 echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30351 ac_cv_lib_odbc32_SQLDriverConnect=no
30353 rm -f conftest.err conftest.$ac_objext \
30354 conftest$ac_exeext conftest.$ac_ext
30355 LIBS=$ac_check_lib_save_LIBS
30357 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30358 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6
30359 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30365 if test $have_odbc32 = yes ; then
30366 ol_link_sql="-lodbc32"
30371 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30372 echo "$as_me: error: unknown ODBC library" >&2;}
30373 { (exit 1); exit 1; }; }
30381 if test $ol_link_sql != no ; then
30382 SLAPD_SQL_LIBS="$ol_link_sql"
30384 elif test $ol_enable_sql != auto ; then
30385 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30386 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30387 { (exit 1); exit 1; }; }
30392 if test $ol_enable_ndb != no ; then
30393 # Extract the first word of "mysql_config", so it can be a program name with args.
30394 set dummy mysql_config; ac_word=$2
30395 echo "$as_me:$LINENO: checking for $ac_word" >&5
30396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30397 if test "${ac_cv_prog_MYSQL+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30400 if test -n "$MYSQL"; then
30401 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30404 for as_dir in $PATH
30407 test -z "$as_dir" && as_dir=.
30408 for ac_exec_ext in '' $ac_executable_extensions; do
30409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30410 ac_cv_prog_MYSQL="yes"
30411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30419 MYSQL=$ac_cv_prog_MYSQL
30420 if test -n "$MYSQL"; then
30421 echo "$as_me:$LINENO: result: $MYSQL" >&5
30422 echo "${ECHO_T}$MYSQL" >&6
30424 echo "$as_me:$LINENO: result: no" >&5
30425 echo "${ECHO_T}no" >&6
30428 if test "$MYSQL" != yes ; then
30429 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30430 echo "$as_me: error: could not locate mysql_config" >&2;}
30431 { (exit 1); exit 1; }; }
30434 SQL_INC=`mysql_config --include`
30435 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30437 save_CPPFLAGS="$CPPFLAGS"
30438 CPPFLAGS="$SLAPD_NDB_INCS"
30439 echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30440 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6
30441 cat >conftest.$ac_ext <<_ACEOF
30444 cat confdefs.h >>conftest.$ac_ext
30445 cat >>conftest.$ac_ext <<_ACEOF
30446 /* end confdefs.h. */
30447 #include <NdbApi.hpp>
30449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30452 grep -v '^ *+' conftest.er1 >conftest.err
30454 cat conftest.err >&5
30455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456 (exit $ac_status); } >/dev/null; then
30457 if test -s conftest.err; then
30458 ac_cpp_err=$ac_c_preproc_warn_flag
30459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30466 if test -z "$ac_cpp_err"; then
30467 echo "$as_me:$LINENO: result: yes" >&5
30468 echo "${ECHO_T}yes" >&6
30470 echo "$as_me: failed program was:" >&5
30471 sed 's/^/| /' conftest.$ac_ext >&5
30473 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30474 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30475 { (exit 1); exit 1; }; }
30478 rm -f conftest.err conftest.$ac_ext
30479 CPPFLAGS="$save_CPPFLAGS"
30481 SQL_LIB=`mysql_config --libs_r`
30482 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30484 save_LDFLAGS="$LDFLAGS"
30487 echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30488 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6
30489 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30490 echo $ECHO_N "(cached) $ECHO_C" >&6
30492 ac_check_lib_save_LIBS=$LIBS
30493 LIBS="-lndbclient -lstdc++ $LIBS"
30494 cat >conftest.$ac_ext <<_ACEOF
30497 cat confdefs.h >>conftest.$ac_ext
30498 cat >>conftest.$ac_ext <<_ACEOF
30499 /* end confdefs.h. */
30501 /* Override any gcc2 internal prototype to avoid an error. */
30505 /* We use char because int might match the return type of a gcc2
30506 builtin and then its argument prototype would still apply. */
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30518 (eval $ac_link) 2>conftest.er1
30520 grep -v '^ *+' conftest.er1 >conftest.err
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } &&
30525 { ac_try='test -z "$ac_c_werror_flag"
30526 || test ! -s conftest.err'
30527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30528 (eval $ac_try) 2>&5
30530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30531 (exit $ac_status); }; } &&
30532 { ac_try='test -s conftest$ac_exeext'
30533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534 (eval $ac_try) 2>&5
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; }; then
30538 ac_cv_lib_ndbclient_ndb_init=yes
30540 echo "$as_me: failed program was:" >&5
30541 sed 's/^/| /' conftest.$ac_ext >&5
30543 ac_cv_lib_ndbclient_ndb_init=no
30545 rm -f conftest.err conftest.$ac_objext \
30546 conftest$ac_exeext conftest.$ac_ext
30547 LIBS=$ac_check_lib_save_LIBS
30549 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30550 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6
30551 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30555 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30556 echo "$as_me: error: could not locate ndbclient library" >&2;}
30557 { (exit 1); exit 1; }; }
30562 LDFLAGS="$save_LDFLAGS"
30564 if test "$ol_enable_ndb" = yes ; then
30565 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30571 for ac_header in unicode/utypes.h
30573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30575 echo "$as_me:$LINENO: checking for $ac_header" >&5
30576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30577 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30578 echo $ECHO_N "(cached) $ECHO_C" >&6
30580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30583 # Is the header compilable?
30584 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30585 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30586 cat >conftest.$ac_ext <<_ACEOF
30589 cat confdefs.h >>conftest.$ac_ext
30590 cat >>conftest.$ac_ext <<_ACEOF
30591 /* end confdefs.h. */
30592 $ac_includes_default
30593 #include <$ac_header>
30595 rm -f conftest.$ac_objext
30596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30597 (eval $ac_compile) 2>conftest.er1
30599 grep -v '^ *+' conftest.er1 >conftest.err
30601 cat conftest.err >&5
30602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30603 (exit $ac_status); } &&
30604 { ac_try='test -z "$ac_c_werror_flag"
30605 || test ! -s conftest.err'
30606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30607 (eval $ac_try) 2>&5
30609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30610 (exit $ac_status); }; } &&
30611 { ac_try='test -s conftest.$ac_objext'
30612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30613 (eval $ac_try) 2>&5
30615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30616 (exit $ac_status); }; }; then
30617 ac_header_compiler=yes
30619 echo "$as_me: failed program was:" >&5
30620 sed 's/^/| /' conftest.$ac_ext >&5
30622 ac_header_compiler=no
30624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30625 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30626 echo "${ECHO_T}$ac_header_compiler" >&6
30628 # Is the header present?
30629 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30631 cat >conftest.$ac_ext <<_ACEOF
30634 cat confdefs.h >>conftest.$ac_ext
30635 cat >>conftest.$ac_ext <<_ACEOF
30636 /* end confdefs.h. */
30637 #include <$ac_header>
30639 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30642 grep -v '^ *+' conftest.er1 >conftest.err
30644 cat conftest.err >&5
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } >/dev/null; then
30647 if test -s conftest.err; then
30648 ac_cpp_err=$ac_c_preproc_warn_flag
30649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30656 if test -z "$ac_cpp_err"; then
30657 ac_header_preproc=yes
30659 echo "$as_me: failed program was:" >&5
30660 sed 's/^/| /' conftest.$ac_ext >&5
30662 ac_header_preproc=no
30664 rm -f conftest.err conftest.$ac_ext
30665 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30666 echo "${ECHO_T}$ac_header_preproc" >&6
30668 # So? What about this header?
30669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30672 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30675 ac_header_preproc=yes
30678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30679 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30681 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30683 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30685 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30689 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30692 ## --------------------------------------------- ##
30693 ## Report this to <http://www.openldap.org/its/> ##
30694 ## --------------------------------------------- ##
30697 sed "s/^/$as_me: WARNING: /" >&2
30700 echo "$as_me:$LINENO: checking for $ac_header" >&5
30701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30703 echo $ECHO_N "(cached) $ECHO_C" >&6
30705 eval "$as_ac_Header=\$ac_header_preproc"
30707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30712 cat >>confdefs.h <<_ACEOF
30713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30720 if test $ac_cv_header_unicode_utypes_h = yes ; then
30721 OL_ICULIBS="-licuuc -licudata"
30723 echo "$as_me:$LINENO: checking for ICU libraries" >&5
30724 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6
30725 if test "${ol_cv_lib_icu+set}" = set; then
30726 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 LIBS="$OL_ICULIBS $LIBS"
30731 cat >conftest.$ac_ext <<_ACEOF
30734 cat confdefs.h >>conftest.$ac_ext
30735 cat >>conftest.$ac_ext <<_ACEOF
30736 /* end confdefs.h. */
30738 #include <unicode/utypes.h>
30744 (void) u_errorName(0);
30750 rm -f conftest.$ac_objext conftest$ac_exeext
30751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30752 (eval $ac_link) 2>conftest.er1
30754 grep -v '^ *+' conftest.er1 >conftest.err
30756 cat conftest.err >&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); } &&
30759 { ac_try='test -z "$ac_c_werror_flag"
30760 || test ! -s conftest.err'
30761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762 (eval $ac_try) 2>&5
30764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765 (exit $ac_status); }; } &&
30766 { ac_try='test -s conftest$ac_exeext'
30767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768 (eval $ac_try) 2>&5
30770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771 (exit $ac_status); }; }; then
30774 echo "$as_me: failed program was:" >&5
30775 sed 's/^/| /' conftest.$ac_ext >&5
30779 rm -f conftest.err conftest.$ac_objext \
30780 conftest$ac_exeext conftest.$ac_ext
30784 echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30785 echo "${ECHO_T}$ol_cv_lib_icu" >&6
30787 if test $ol_cv_lib_icu != no ; then
30788 ol_icu="$OL_ICULIBS"
30790 cat >>confdefs.h <<\_ACEOF
30797 if test "$ol_icu" = no ; then
30798 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30799 echo "$as_me: WARNING: ICU not available" >&2;}
30806 if test $ol_with_cyrus_sasl != no ; then
30809 for ac_header in sasl/sasl.h sasl.h
30811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30813 echo "$as_me:$LINENO: checking for $ac_header" >&5
30814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30816 echo $ECHO_N "(cached) $ECHO_C" >&6
30818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30821 # Is the header compilable?
30822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30824 cat >conftest.$ac_ext <<_ACEOF
30827 cat confdefs.h >>conftest.$ac_ext
30828 cat >>conftest.$ac_ext <<_ACEOF
30829 /* end confdefs.h. */
30830 $ac_includes_default
30831 #include <$ac_header>
30833 rm -f conftest.$ac_objext
30834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30835 (eval $ac_compile) 2>conftest.er1
30837 grep -v '^ *+' conftest.er1 >conftest.err
30839 cat conftest.err >&5
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); } &&
30842 { ac_try='test -z "$ac_c_werror_flag"
30843 || test ! -s conftest.err'
30844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30845 (eval $ac_try) 2>&5
30847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30848 (exit $ac_status); }; } &&
30849 { ac_try='test -s conftest.$ac_objext'
30850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30851 (eval $ac_try) 2>&5
30853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30854 (exit $ac_status); }; }; then
30855 ac_header_compiler=yes
30857 echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30860 ac_header_compiler=no
30862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30864 echo "${ECHO_T}$ac_header_compiler" >&6
30866 # Is the header present?
30867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30869 cat >conftest.$ac_ext <<_ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h. */
30875 #include <$ac_header>
30877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30880 grep -v '^ *+' conftest.er1 >conftest.err
30882 cat conftest.err >&5
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); } >/dev/null; then
30885 if test -s conftest.err; then
30886 ac_cpp_err=$ac_c_preproc_warn_flag
30887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30894 if test -z "$ac_cpp_err"; then
30895 ac_header_preproc=yes
30897 echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30900 ac_header_preproc=no
30902 rm -f conftest.err conftest.$ac_ext
30903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30904 echo "${ECHO_T}$ac_header_preproc" >&6
30906 # So? What about this header?
30907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30913 ac_header_preproc=yes
30916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30930 ## --------------------------------------------- ##
30931 ## Report this to <http://www.openldap.org/its/> ##
30932 ## --------------------------------------------- ##
30935 sed "s/^/$as_me: WARNING: /" >&2
30938 echo "$as_me:$LINENO: checking for $ac_header" >&5
30939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30940 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30941 echo $ECHO_N "(cached) $ECHO_C" >&6
30943 eval "$as_ac_Header=\$ac_header_preproc"
30945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30946 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30950 cat >>confdefs.h <<_ACEOF
30951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30959 if test $ac_cv_header_sasl_sasl_h = yes ||
30960 test $ac_cv_header_sasl_h = yes; then
30961 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30962 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
30963 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30964 echo $ECHO_N "(cached) $ECHO_C" >&6
30966 ac_check_lib_save_LIBS=$LIBS
30967 LIBS="-lsasl2 $LIBS"
30968 cat >conftest.$ac_ext <<_ACEOF
30971 cat confdefs.h >>conftest.$ac_ext
30972 cat >>conftest.$ac_ext <<_ACEOF
30973 /* end confdefs.h. */
30975 /* Override any gcc2 internal prototype to avoid an error. */
30979 /* We use char because int might match the return type of a gcc2
30980 builtin and then its argument prototype would still apply. */
30981 char sasl_client_init ();
30985 sasl_client_init ();
30990 rm -f conftest.$ac_objext conftest$ac_exeext
30991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30992 (eval $ac_link) 2>conftest.er1
30994 grep -v '^ *+' conftest.er1 >conftest.err
30996 cat conftest.err >&5
30997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30998 (exit $ac_status); } &&
30999 { ac_try='test -z "$ac_c_werror_flag"
31000 || test ! -s conftest.err'
31001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31002 (eval $ac_try) 2>&5
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); }; } &&
31006 { ac_try='test -s conftest$ac_exeext'
31007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31008 (eval $ac_try) 2>&5
31010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011 (exit $ac_status); }; }; then
31012 ac_cv_lib_sasl2_sasl_client_init=yes
31014 echo "$as_me: failed program was:" >&5
31015 sed 's/^/| /' conftest.$ac_ext >&5
31017 ac_cv_lib_sasl2_sasl_client_init=no
31019 rm -f conftest.err conftest.$ac_objext \
31020 conftest$ac_exeext conftest.$ac_ext
31021 LIBS=$ac_check_lib_save_LIBS
31023 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31024 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
31025 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31026 ol_link_sasl="-lsasl2"
31028 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31029 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
31030 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31031 echo $ECHO_N "(cached) $ECHO_C" >&6
31033 ac_check_lib_save_LIBS=$LIBS
31034 LIBS="-lsasl $LIBS"
31035 cat >conftest.$ac_ext <<_ACEOF
31038 cat confdefs.h >>conftest.$ac_ext
31039 cat >>conftest.$ac_ext <<_ACEOF
31040 /* end confdefs.h. */
31042 /* Override any gcc2 internal prototype to avoid an error. */
31046 /* We use char because int might match the return type of a gcc2
31047 builtin and then its argument prototype would still apply. */
31048 char sasl_client_init ();
31052 sasl_client_init ();
31057 rm -f conftest.$ac_objext conftest$ac_exeext
31058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31059 (eval $ac_link) 2>conftest.er1
31061 grep -v '^ *+' conftest.er1 >conftest.err
31063 cat conftest.err >&5
31064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31065 (exit $ac_status); } &&
31066 { ac_try='test -z "$ac_c_werror_flag"
31067 || test ! -s conftest.err'
31068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31069 (eval $ac_try) 2>&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }; } &&
31073 { ac_try='test -s conftest$ac_exeext'
31074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31075 (eval $ac_try) 2>&5
31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31078 (exit $ac_status); }; }; then
31079 ac_cv_lib_sasl_sasl_client_init=yes
31081 echo "$as_me: failed program was:" >&5
31082 sed 's/^/| /' conftest.$ac_ext >&5
31084 ac_cv_lib_sasl_sasl_client_init=no
31086 rm -f conftest.err conftest.$ac_objext \
31087 conftest$ac_exeext conftest.$ac_ext
31088 LIBS=$ac_check_lib_save_LIBS
31090 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31091 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
31092 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31093 ol_link_sasl="-lsasl"
31100 if test $ol_link_sasl = no ; then
31101 if test $ol_with_cyrus_sasl != auto ; then
31102 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31103 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31104 { (exit 1); exit 1; }; }
31106 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31107 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31109 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31110 if test $ol_link_tls = no ; then
31111 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31112 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31116 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31117 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
31118 if test "${ol_cv_sasl_compat+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31122 cat >conftest.$ac_ext <<_ACEOF
31125 cat confdefs.h >>conftest.$ac_ext
31126 cat >>conftest.$ac_ext <<_ACEOF
31127 /* end confdefs.h. */
31129 #ifdef HAVE_SASL_SASL_H
31130 #include <sasl/sasl.h>
31135 /* Require 2.1.15+ */
31136 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
31137 char *__sasl_compat = "2.2+ or better okay (we guess)";
31138 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
31139 && SASL_VERSION_STEP >=15
31140 char *__sasl_compat = "2.1.15+ or better okay";
31144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31145 $EGREP "__sasl_compat" >/dev/null 2>&1; then
31146 ol_cv_sasl_compat=yes
31148 ol_cv_sasl_compat=no
31153 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31154 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
31156 if test $ol_cv_sasl_compat = no ; then
31158 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31159 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31160 { (exit 1); exit 1; }; }
31164 cat >>confdefs.h <<\_ACEOF
31165 #define HAVE_CYRUS_SASL 1
31168 SASL_LIBS="$ol_link_sasl"
31169 if test $ol_enable_spasswd != no ; then
31170 ol_link_spasswd=yes
31173 ac_save_LIBS="$LIBS"
31174 LIBS="$LIBS $ol_link_sasl"
31175 echo "$as_me:$LINENO: checking for sasl_version" >&5
31176 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
31177 if test "${ac_cv_func_sasl_version+set}" = set; then
31178 echo $ECHO_N "(cached) $ECHO_C" >&6
31180 cat >conftest.$ac_ext <<_ACEOF
31183 cat confdefs.h >>conftest.$ac_ext
31184 cat >>conftest.$ac_ext <<_ACEOF
31185 /* end confdefs.h. */
31186 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31188 #define sasl_version innocuous_sasl_version
31190 /* System header to define __stub macros and hopefully few prototypes,
31191 which can conflict with char sasl_version (); below.
31192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31193 <limits.h> exists even on freestanding compilers. */
31196 # include <limits.h>
31198 # include <assert.h>
31201 #undef sasl_version
31203 /* Override any gcc2 internal prototype to avoid an error. */
31208 /* We use char because int might match the return type of a gcc2
31209 builtin and then its argument prototype would still apply. */
31210 char sasl_version ();
31211 /* The GNU C library defines this for functions which it implements
31212 to always fail with ENOSYS. Some functions are actually named
31213 something starting with __ and the normal name is an alias. */
31214 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
31217 char (*f) () = sasl_version;
31226 return f != sasl_version;
31231 rm -f conftest.$ac_objext conftest$ac_exeext
31232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31233 (eval $ac_link) 2>conftest.er1
31235 grep -v '^ *+' conftest.er1 >conftest.err
31237 cat conftest.err >&5
31238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31239 (exit $ac_status); } &&
31240 { ac_try='test -z "$ac_c_werror_flag"
31241 || test ! -s conftest.err'
31242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31243 (eval $ac_try) 2>&5
31245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246 (exit $ac_status); }; } &&
31247 { ac_try='test -s conftest$ac_exeext'
31248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31249 (eval $ac_try) 2>&5
31251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252 (exit $ac_status); }; }; then
31253 ac_cv_func_sasl_version=yes
31255 echo "$as_me: failed program was:" >&5
31256 sed 's/^/| /' conftest.$ac_ext >&5
31258 ac_cv_func_sasl_version=no
31260 rm -f conftest.err conftest.$ac_objext \
31261 conftest$ac_exeext conftest.$ac_ext
31263 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31264 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
31265 if test $ac_cv_func_sasl_version = yes; then
31267 cat >>confdefs.h <<\_ACEOF
31268 #define HAVE_SASL_VERSION 1
31273 LIBS="$ac_save_LIBS"
31279 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31280 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31281 if test $ol_link_tls = no ; then
31282 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31283 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31287 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31289 if test -r /dev/urandom ; then
31290 dev="/dev/urandom";
31291 elif test -r /idev/urandom ; then
31292 dev="/idev/urandom";
31293 elif test -r /dev/srandom ; then
31294 dev="/dev/srandom";
31295 elif test -r /dev/random ; then
31297 elif test -r /idev/random ; then
31298 dev="/idev/random";
31301 if test $dev != no ; then
31303 cat >>confdefs.h <<_ACEOF
31304 #define URANDOM_DEVICE "$dev"
31311 if test $ol_with_fetch != no ; then
31313 LIBS="-lfetch -lcom_err $LIBS"
31314 echo "$as_me:$LINENO: checking fetch(3) library" >&5
31315 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
31316 if test "${ol_cv_lib_fetch+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31320 cat >conftest.$ac_ext <<_ACEOF
31323 cat confdefs.h >>conftest.$ac_ext
31324 cat >>conftest.$ac_ext <<_ACEOF
31325 /* end confdefs.h. */
31327 #ifdef HAVE_SYS_PARAM_H
31328 #include <sys/param.h>
31335 struct url *u = fetchParseURL("file:///");
31340 rm -f conftest.$ac_objext conftest$ac_exeext
31341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31342 (eval $ac_link) 2>conftest.er1
31344 grep -v '^ *+' conftest.er1 >conftest.err
31346 cat conftest.err >&5
31347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31348 (exit $ac_status); } &&
31349 { ac_try='test -z "$ac_c_werror_flag"
31350 || test ! -s conftest.err'
31351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31352 (eval $ac_try) 2>&5
31354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355 (exit $ac_status); }; } &&
31356 { ac_try='test -s conftest$ac_exeext'
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }; then
31362 ol_cv_lib_fetch=yes
31364 echo "$as_me: failed program was:" >&5
31365 sed 's/^/| /' conftest.$ac_ext >&5
31369 rm -f conftest.err conftest.$ac_objext \
31370 conftest$ac_exeext conftest.$ac_ext
31372 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31373 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
31375 if test $ol_cv_lib_fetch != no ; then
31376 ol_link_fetch="-lfetch -lcom_err"
31378 cat >>confdefs.h <<\_ACEOF
31379 #define HAVE_FETCH 1
31385 if test $ol_cv_lib_fetch != no ; then
31386 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31387 ol_link_fetch=freebsd
31389 elif test $ol_with_fetch != auto ; then
31390 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31391 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31392 { (exit 1); exit 1; }; }
31396 if test $ol_enable_crypt != no ; then
31398 LIBS="$TLS_LIBS $LIBS"
31400 echo "$as_me:$LINENO: checking for crypt" >&5
31401 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
31402 if test "${ac_cv_func_crypt+set}" = set; then
31403 echo $ECHO_N "(cached) $ECHO_C" >&6
31405 cat >conftest.$ac_ext <<_ACEOF
31408 cat confdefs.h >>conftest.$ac_ext
31409 cat >>conftest.$ac_ext <<_ACEOF
31410 /* end confdefs.h. */
31411 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31413 #define crypt innocuous_crypt
31415 /* System header to define __stub macros and hopefully few prototypes,
31416 which can conflict with char crypt (); below.
31417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31418 <limits.h> exists even on freestanding compilers. */
31421 # include <limits.h>
31423 # include <assert.h>
31428 /* Override any gcc2 internal prototype to avoid an error. */
31433 /* We use char because int might match the return type of a gcc2
31434 builtin and then its argument prototype would still apply. */
31436 /* The GNU C library defines this for functions which it implements
31437 to always fail with ENOSYS. Some functions are actually named
31438 something starting with __ and the normal name is an alias. */
31439 #if defined (__stub_crypt) || defined (__stub___crypt)
31442 char (*f) () = crypt;
31456 rm -f conftest.$ac_objext conftest$ac_exeext
31457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31458 (eval $ac_link) 2>conftest.er1
31460 grep -v '^ *+' conftest.er1 >conftest.err
31462 cat conftest.err >&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } &&
31465 { ac_try='test -z "$ac_c_werror_flag"
31466 || test ! -s conftest.err'
31467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468 (eval $ac_try) 2>&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; } &&
31472 { ac_try='test -s conftest$ac_exeext'
31473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474 (eval $ac_try) 2>&5
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; }; then
31478 ac_cv_func_crypt=yes
31480 echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.$ac_ext >&5
31483 ac_cv_func_crypt=no
31485 rm -f conftest.err conftest.$ac_objext \
31486 conftest$ac_exeext conftest.$ac_ext
31488 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31489 echo "${ECHO_T}$ac_cv_func_crypt" >&6
31490 if test $ac_cv_func_crypt = yes; then
31495 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31496 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
31497 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31498 echo $ECHO_N "(cached) $ECHO_C" >&6
31500 ac_check_lib_save_LIBS=$LIBS
31501 LIBS="-lcrypt $LIBS"
31502 cat >conftest.$ac_ext <<_ACEOF
31505 cat confdefs.h >>conftest.$ac_ext
31506 cat >>conftest.$ac_ext <<_ACEOF
31507 /* end confdefs.h. */
31509 /* Override any gcc2 internal prototype to avoid an error. */
31513 /* We use char because int might match the return type of a gcc2
31514 builtin and then its argument prototype would still apply. */
31524 rm -f conftest.$ac_objext conftest$ac_exeext
31525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31526 (eval $ac_link) 2>conftest.er1
31528 grep -v '^ *+' conftest.er1 >conftest.err
31530 cat conftest.err >&5
31531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31532 (exit $ac_status); } &&
31533 { ac_try='test -z "$ac_c_werror_flag"
31534 || test ! -s conftest.err'
31535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31536 (eval $ac_try) 2>&5
31538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539 (exit $ac_status); }; } &&
31540 { ac_try='test -s conftest$ac_exeext'
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31546 ac_cv_lib_crypt_crypt=yes
31548 echo "$as_me: failed program was:" >&5
31549 sed 's/^/| /' conftest.$ac_ext >&5
31551 ac_cv_lib_crypt_crypt=no
31553 rm -f conftest.err conftest.$ac_objext \
31554 conftest$ac_exeext conftest.$ac_ext
31555 LIBS=$ac_check_lib_save_LIBS
31557 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31558 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
31559 if test $ac_cv_lib_crypt_crypt = yes; then
31560 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31571 if test $have_crypt = yes ; then
31573 cat >>confdefs.h <<\_ACEOF
31574 #define HAVE_CRYPT 1
31578 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31579 echo "$as_me: WARNING: could not find crypt" >&2;}
31580 if test $ol_enable_crypt = yes ; then
31581 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31582 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31583 { (exit 1); exit 1; }; }
31586 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31587 echo "$as_me: WARNING: disabling crypt support" >&2;}
31592 if test $ol_enable_proctitle != no ; then
31593 echo "$as_me:$LINENO: checking for setproctitle" >&5
31594 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
31595 if test "${ac_cv_func_setproctitle+set}" = set; then
31596 echo $ECHO_N "(cached) $ECHO_C" >&6
31598 cat >conftest.$ac_ext <<_ACEOF
31601 cat confdefs.h >>conftest.$ac_ext
31602 cat >>conftest.$ac_ext <<_ACEOF
31603 /* end confdefs.h. */
31604 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31606 #define setproctitle innocuous_setproctitle
31608 /* System header to define __stub macros and hopefully few prototypes,
31609 which can conflict with char setproctitle (); below.
31610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31611 <limits.h> exists even on freestanding compilers. */
31614 # include <limits.h>
31616 # include <assert.h>
31619 #undef setproctitle
31621 /* Override any gcc2 internal prototype to avoid an error. */
31626 /* We use char because int might match the return type of a gcc2
31627 builtin and then its argument prototype would still apply. */
31628 char setproctitle ();
31629 /* The GNU C library defines this for functions which it implements
31630 to always fail with ENOSYS. Some functions are actually named
31631 something starting with __ and the normal name is an alias. */
31632 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
31635 char (*f) () = setproctitle;
31644 return f != setproctitle;
31649 rm -f conftest.$ac_objext conftest$ac_exeext
31650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31651 (eval $ac_link) 2>conftest.er1
31653 grep -v '^ *+' conftest.er1 >conftest.err
31655 cat conftest.err >&5
31656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31657 (exit $ac_status); } &&
31658 { ac_try='test -z "$ac_c_werror_flag"
31659 || test ! -s conftest.err'
31660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31661 (eval $ac_try) 2>&5
31663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31664 (exit $ac_status); }; } &&
31665 { ac_try='test -s conftest$ac_exeext'
31666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31667 (eval $ac_try) 2>&5
31669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31670 (exit $ac_status); }; }; then
31671 ac_cv_func_setproctitle=yes
31673 echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31676 ac_cv_func_setproctitle=no
31678 rm -f conftest.err conftest.$ac_objext \
31679 conftest$ac_exeext conftest.$ac_ext
31681 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31682 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
31683 if test $ac_cv_func_setproctitle = yes; then
31684 have_setproctitle=yes
31687 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31688 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
31689 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
31692 ac_check_lib_save_LIBS=$LIBS
31693 LIBS="-lutil $LIBS"
31694 cat >conftest.$ac_ext <<_ACEOF
31697 cat confdefs.h >>conftest.$ac_ext
31698 cat >>conftest.$ac_ext <<_ACEOF
31699 /* end confdefs.h. */
31701 /* Override any gcc2 internal prototype to avoid an error. */
31705 /* We use char because int might match the return type of a gcc2
31706 builtin and then its argument prototype would still apply. */
31707 char setproctitle ();
31716 rm -f conftest.$ac_objext conftest$ac_exeext
31717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31718 (eval $ac_link) 2>conftest.er1
31720 grep -v '^ *+' conftest.er1 >conftest.err
31722 cat conftest.err >&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } &&
31725 { ac_try='test -z "$ac_c_werror_flag"
31726 || test ! -s conftest.err'
31727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31728 (eval $ac_try) 2>&5
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); }; } &&
31732 { ac_try='test -s conftest$ac_exeext'
31733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31734 (eval $ac_try) 2>&5
31736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31737 (exit $ac_status); }; }; then
31738 ac_cv_lib_util_setproctitle=yes
31740 echo "$as_me: failed program was:" >&5
31741 sed 's/^/| /' conftest.$ac_ext >&5
31743 ac_cv_lib_util_setproctitle=no
31745 rm -f conftest.err conftest.$ac_objext \
31746 conftest$ac_exeext conftest.$ac_ext
31747 LIBS=$ac_check_lib_save_LIBS
31749 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31750 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
31751 if test $ac_cv_lib_util_setproctitle = yes; then
31752 have_setproctitle=yes
31753 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31755 have_setproctitle=no
31757 "setproctitle.$ac_objext" | \
31758 *" setproctitle.$ac_objext" | \
31759 "setproctitle.$ac_objext "* | \
31760 *" setproctitle.$ac_objext "* ) ;;
31761 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
31764 LIBSRCS="$LIBSRCS setproctitle.c"
31770 if test $have_setproctitle = yes ; then
31772 cat >>confdefs.h <<\_ACEOF
31773 #define HAVE_SETPROCTITLE 1
31779 if test $ol_enable_slp != no ; then
31781 for ac_header in slp.h
31783 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31785 echo "$as_me:$LINENO: checking for $ac_header" >&5
31786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31788 echo $ECHO_N "(cached) $ECHO_C" >&6
31790 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31791 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31793 # Is the header compilable?
31794 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31796 cat >conftest.$ac_ext <<_ACEOF
31799 cat confdefs.h >>conftest.$ac_ext
31800 cat >>conftest.$ac_ext <<_ACEOF
31801 /* end confdefs.h. */
31802 $ac_includes_default
31803 #include <$ac_header>
31805 rm -f conftest.$ac_objext
31806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31807 (eval $ac_compile) 2>conftest.er1
31809 grep -v '^ *+' conftest.er1 >conftest.err
31811 cat conftest.err >&5
31812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31813 (exit $ac_status); } &&
31814 { ac_try='test -z "$ac_c_werror_flag"
31815 || test ! -s conftest.err'
31816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31817 (eval $ac_try) 2>&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); }; } &&
31821 { ac_try='test -s conftest.$ac_objext'
31822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31823 (eval $ac_try) 2>&5
31825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31826 (exit $ac_status); }; }; then
31827 ac_header_compiler=yes
31829 echo "$as_me: failed program was:" >&5
31830 sed 's/^/| /' conftest.$ac_ext >&5
31832 ac_header_compiler=no
31834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31835 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31836 echo "${ECHO_T}$ac_header_compiler" >&6
31838 # Is the header present?
31839 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31840 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31841 cat >conftest.$ac_ext <<_ACEOF
31844 cat confdefs.h >>conftest.$ac_ext
31845 cat >>conftest.$ac_ext <<_ACEOF
31846 /* end confdefs.h. */
31847 #include <$ac_header>
31849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31852 grep -v '^ *+' conftest.er1 >conftest.err
31854 cat conftest.err >&5
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); } >/dev/null; then
31857 if test -s conftest.err; then
31858 ac_cpp_err=$ac_c_preproc_warn_flag
31859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31866 if test -z "$ac_cpp_err"; then
31867 ac_header_preproc=yes
31869 echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31872 ac_header_preproc=no
31874 rm -f conftest.err conftest.$ac_ext
31875 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31876 echo "${ECHO_T}$ac_header_preproc" >&6
31878 # So? What about this header?
31879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31885 ac_header_preproc=yes
31888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31902 ## --------------------------------------------- ##
31903 ## Report this to <http://www.openldap.org/its/> ##
31904 ## --------------------------------------------- ##
31907 sed "s/^/$as_me: WARNING: /" >&2
31910 echo "$as_me:$LINENO: checking for $ac_header" >&5
31911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31913 echo $ECHO_N "(cached) $ECHO_C" >&6
31915 eval "$as_ac_Header=\$ac_header_preproc"
31917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31922 cat >>confdefs.h <<_ACEOF
31923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31931 if test $ac_cv_header_slp_h = yes ; then
31932 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31933 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
31934 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31935 echo $ECHO_N "(cached) $ECHO_C" >&6
31937 ac_check_lib_save_LIBS=$LIBS
31939 cat >conftest.$ac_ext <<_ACEOF
31942 cat confdefs.h >>conftest.$ac_ext
31943 cat >>conftest.$ac_ext <<_ACEOF
31944 /* end confdefs.h. */
31946 /* Override any gcc2 internal prototype to avoid an error. */
31950 /* We use char because int might match the return type of a gcc2
31951 builtin and then its argument prototype would still apply. */
31961 rm -f conftest.$ac_objext conftest$ac_exeext
31962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31963 (eval $ac_link) 2>conftest.er1
31965 grep -v '^ *+' conftest.er1 >conftest.err
31967 cat conftest.err >&5
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); } &&
31970 { ac_try='test -z "$ac_c_werror_flag"
31971 || test ! -s conftest.err'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; } &&
31977 { ac_try='test -s conftest$ac_exeext'
31978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979 (eval $ac_try) 2>&5
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; }; then
31983 ac_cv_lib_slp_SLPOpen=yes
31985 echo "$as_me: failed program was:" >&5
31986 sed 's/^/| /' conftest.$ac_ext >&5
31988 ac_cv_lib_slp_SLPOpen=no
31990 rm -f conftest.err conftest.$ac_objext \
31991 conftest$ac_exeext conftest.$ac_ext
31992 LIBS=$ac_check_lib_save_LIBS
31994 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31995 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
31996 if test $ac_cv_lib_slp_SLPOpen = yes; then
32002 if test $have_slp = yes ; then
32004 cat >>confdefs.h <<\_ACEOF
32008 SLAPD_SLP_LIBS=-lslp
32011 elif test $ol_enable_slp = yes ; then
32012 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32013 echo "$as_me: error: SLP not found" >&2;}
32014 { (exit 1); exit 1; }; }
32019 echo "$as_me:$LINENO: checking for mode_t" >&5
32020 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32021 if test "${ac_cv_type_mode_t+set}" = set; then
32022 echo $ECHO_N "(cached) $ECHO_C" >&6
32024 cat >conftest.$ac_ext <<_ACEOF
32027 cat confdefs.h >>conftest.$ac_ext
32028 cat >>conftest.$ac_ext <<_ACEOF
32029 /* end confdefs.h. */
32030 $ac_includes_default
32036 if (sizeof (mode_t))
32042 rm -f conftest.$ac_objext
32043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32044 (eval $ac_compile) 2>conftest.er1
32046 grep -v '^ *+' conftest.er1 >conftest.err
32048 cat conftest.err >&5
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); } &&
32051 { ac_try='test -z "$ac_c_werror_flag"
32052 || test ! -s conftest.err'
32053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32054 (eval $ac_try) 2>&5
32056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32057 (exit $ac_status); }; } &&
32058 { ac_try='test -s conftest.$ac_objext'
32059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32060 (eval $ac_try) 2>&5
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); }; }; then
32064 ac_cv_type_mode_t=yes
32066 echo "$as_me: failed program was:" >&5
32067 sed 's/^/| /' conftest.$ac_ext >&5
32069 ac_cv_type_mode_t=no
32071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32073 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32074 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32075 if test $ac_cv_type_mode_t = yes; then
32079 cat >>confdefs.h <<_ACEOF
32085 echo "$as_me:$LINENO: checking for off_t" >&5
32086 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32087 if test "${ac_cv_type_off_t+set}" = set; then
32088 echo $ECHO_N "(cached) $ECHO_C" >&6
32090 cat >conftest.$ac_ext <<_ACEOF
32093 cat confdefs.h >>conftest.$ac_ext
32094 cat >>conftest.$ac_ext <<_ACEOF
32095 /* end confdefs.h. */
32096 $ac_includes_default
32102 if (sizeof (off_t))
32108 rm -f conftest.$ac_objext
32109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32110 (eval $ac_compile) 2>conftest.er1
32112 grep -v '^ *+' conftest.er1 >conftest.err
32114 cat conftest.err >&5
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); } &&
32117 { ac_try='test -z "$ac_c_werror_flag"
32118 || test ! -s conftest.err'
32119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120 (eval $ac_try) 2>&5
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; } &&
32124 { ac_try='test -s conftest.$ac_objext'
32125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32126 (eval $ac_try) 2>&5
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 ac_cv_type_off_t=yes
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32135 ac_cv_type_off_t=no
32137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32139 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32140 echo "${ECHO_T}$ac_cv_type_off_t" >&6
32141 if test $ac_cv_type_off_t = yes; then
32145 cat >>confdefs.h <<_ACEOF
32151 echo "$as_me:$LINENO: checking for pid_t" >&5
32152 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32153 if test "${ac_cv_type_pid_t+set}" = set; then
32154 echo $ECHO_N "(cached) $ECHO_C" >&6
32156 cat >conftest.$ac_ext <<_ACEOF
32159 cat confdefs.h >>conftest.$ac_ext
32160 cat >>conftest.$ac_ext <<_ACEOF
32161 /* end confdefs.h. */
32162 $ac_includes_default
32168 if (sizeof (pid_t))
32174 rm -f conftest.$ac_objext
32175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32176 (eval $ac_compile) 2>conftest.er1
32178 grep -v '^ *+' conftest.er1 >conftest.err
32180 cat conftest.err >&5
32181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182 (exit $ac_status); } &&
32183 { ac_try='test -z "$ac_c_werror_flag"
32184 || test ! -s conftest.err'
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; } &&
32190 { ac_try='test -s conftest.$ac_objext'
32191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32192 (eval $ac_try) 2>&5
32194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32195 (exit $ac_status); }; }; then
32196 ac_cv_type_pid_t=yes
32198 echo "$as_me: failed program was:" >&5
32199 sed 's/^/| /' conftest.$ac_ext >&5
32201 ac_cv_type_pid_t=no
32203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32205 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32206 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32207 if test $ac_cv_type_pid_t = yes; then
32211 cat >>confdefs.h <<_ACEOF
32217 echo "$as_me:$LINENO: checking for ssize_t" >&5
32218 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32219 if test "${ac_cv_type_ssize_t+set}" = set; then
32220 echo $ECHO_N "(cached) $ECHO_C" >&6
32222 cat >conftest.$ac_ext <<_ACEOF
32225 cat confdefs.h >>conftest.$ac_ext
32226 cat >>conftest.$ac_ext <<_ACEOF
32227 /* end confdefs.h. */
32228 $ac_includes_default
32234 if (sizeof (ssize_t))
32240 rm -f conftest.$ac_objext
32241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32242 (eval $ac_compile) 2>conftest.er1
32244 grep -v '^ *+' conftest.er1 >conftest.err
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } &&
32249 { ac_try='test -z "$ac_c_werror_flag"
32250 || test ! -s conftest.err'
32251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32252 (eval $ac_try) 2>&5
32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32255 (exit $ac_status); }; } &&
32256 { ac_try='test -s conftest.$ac_objext'
32257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32258 (eval $ac_try) 2>&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); }; }; then
32262 ac_cv_type_ssize_t=yes
32264 echo "$as_me: failed program was:" >&5
32265 sed 's/^/| /' conftest.$ac_ext >&5
32267 ac_cv_type_ssize_t=no
32269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32271 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32272 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32273 if test $ac_cv_type_ssize_t = yes; then
32277 cat >>confdefs.h <<_ACEOF
32278 #define ssize_t signed int
32283 echo "$as_me:$LINENO: checking for caddr_t" >&5
32284 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
32285 if test "${ac_cv_type_caddr_t+set}" = set; then
32286 echo $ECHO_N "(cached) $ECHO_C" >&6
32288 cat >conftest.$ac_ext <<_ACEOF
32291 cat confdefs.h >>conftest.$ac_ext
32292 cat >>conftest.$ac_ext <<_ACEOF
32293 /* end confdefs.h. */
32294 $ac_includes_default
32300 if (sizeof (caddr_t))
32306 rm -f conftest.$ac_objext
32307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32308 (eval $ac_compile) 2>conftest.er1
32310 grep -v '^ *+' conftest.er1 >conftest.err
32312 cat conftest.err >&5
32313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); } &&
32315 { ac_try='test -z "$ac_c_werror_flag"
32316 || test ! -s conftest.err'
32317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32318 (eval $ac_try) 2>&5
32320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321 (exit $ac_status); }; } &&
32322 { ac_try='test -s conftest.$ac_objext'
32323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32324 (eval $ac_try) 2>&5
32326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32327 (exit $ac_status); }; }; then
32328 ac_cv_type_caddr_t=yes
32330 echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32333 ac_cv_type_caddr_t=no
32335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32337 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32338 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
32339 if test $ac_cv_type_caddr_t = yes; then
32343 cat >>confdefs.h <<_ACEOF
32344 #define caddr_t char *
32349 echo "$as_me:$LINENO: checking for size_t" >&5
32350 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32351 if test "${ac_cv_type_size_t+set}" = set; then
32352 echo $ECHO_N "(cached) $ECHO_C" >&6
32354 cat >conftest.$ac_ext <<_ACEOF
32357 cat confdefs.h >>conftest.$ac_ext
32358 cat >>conftest.$ac_ext <<_ACEOF
32359 /* end confdefs.h. */
32360 $ac_includes_default
32366 if (sizeof (size_t))
32372 rm -f conftest.$ac_objext
32373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32374 (eval $ac_compile) 2>conftest.er1
32376 grep -v '^ *+' conftest.er1 >conftest.err
32378 cat conftest.err >&5
32379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380 (exit $ac_status); } &&
32381 { ac_try='test -z "$ac_c_werror_flag"
32382 || test ! -s conftest.err'
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; } &&
32388 { ac_try='test -s conftest.$ac_objext'
32389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32390 (eval $ac_try) 2>&5
32392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32393 (exit $ac_status); }; }; then
32394 ac_cv_type_size_t=yes
32396 echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32399 ac_cv_type_size_t=no
32401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32403 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32404 echo "${ECHO_T}$ac_cv_type_size_t" >&6
32405 if test $ac_cv_type_size_t = yes; then
32409 cat >>confdefs.h <<_ACEOF
32410 #define size_t unsigned
32416 echo "$as_me:$LINENO: checking for long long" >&5
32417 echo $ECHO_N "checking for long long... $ECHO_C" >&6
32418 if test "${ac_cv_type_long_long+set}" = set; then
32419 echo $ECHO_N "(cached) $ECHO_C" >&6
32421 cat >conftest.$ac_ext <<_ACEOF
32424 cat confdefs.h >>conftest.$ac_ext
32425 cat >>conftest.$ac_ext <<_ACEOF
32426 /* end confdefs.h. */
32427 $ac_includes_default
32431 if ((long long *) 0)
32433 if (sizeof (long long))
32439 rm -f conftest.$ac_objext
32440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32441 (eval $ac_compile) 2>conftest.er1
32443 grep -v '^ *+' conftest.er1 >conftest.err
32445 cat conftest.err >&5
32446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32447 (exit $ac_status); } &&
32448 { ac_try='test -z "$ac_c_werror_flag"
32449 || test ! -s conftest.err'
32450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32451 (eval $ac_try) 2>&5
32453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32454 (exit $ac_status); }; } &&
32455 { ac_try='test -s conftest.$ac_objext'
32456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32457 (eval $ac_try) 2>&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); }; }; then
32461 ac_cv_type_long_long=yes
32463 echo "$as_me: failed program was:" >&5
32464 sed 's/^/| /' conftest.$ac_ext >&5
32466 ac_cv_type_long_long=no
32468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32470 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32471 echo "${ECHO_T}$ac_cv_type_long_long" >&6
32472 if test $ac_cv_type_long_long = yes; then
32474 cat >>confdefs.h <<_ACEOF
32475 #define HAVE_LONG_LONG 1
32481 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32482 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
32483 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32486 cat >conftest.$ac_ext <<_ACEOF
32489 cat confdefs.h >>conftest.$ac_ext
32490 cat >>conftest.$ac_ext <<_ACEOF
32491 /* end confdefs.h. */
32492 $ac_includes_default
32496 if ((ptrdiff_t *) 0)
32498 if (sizeof (ptrdiff_t))
32504 rm -f conftest.$ac_objext
32505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32506 (eval $ac_compile) 2>conftest.er1
32508 grep -v '^ *+' conftest.er1 >conftest.err
32510 cat conftest.err >&5
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); } &&
32513 { ac_try='test -z "$ac_c_werror_flag"
32514 || test ! -s conftest.err'
32515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32516 (eval $ac_try) 2>&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; } &&
32520 { ac_try='test -s conftest.$ac_objext'
32521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522 (eval $ac_try) 2>&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; }; then
32526 ac_cv_type_ptrdiff_t=yes
32528 echo "$as_me: failed program was:" >&5
32529 sed 's/^/| /' conftest.$ac_ext >&5
32531 ac_cv_type_ptrdiff_t=no
32533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32535 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32536 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
32537 if test $ac_cv_type_ptrdiff_t = yes; then
32539 cat >>confdefs.h <<_ACEOF
32540 #define HAVE_PTRDIFF_T 1
32548 echo "$as_me:$LINENO: checking for socklen_t" >&5
32549 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
32550 if test "${ac_cv_type_socklen_t+set}" = set; then
32551 echo $ECHO_N "(cached) $ECHO_C" >&6
32553 cat >conftest.$ac_ext <<_ACEOF
32556 cat confdefs.h >>conftest.$ac_ext
32557 cat >>conftest.$ac_ext <<_ACEOF
32558 /* end confdefs.h. */
32559 $ac_includes_default
32560 #ifdef HAVE_SYS_SOCKET_H
32561 #include <sys/socket.h>
32567 if ((socklen_t *) 0)
32569 if (sizeof (socklen_t))
32575 rm -f conftest.$ac_objext
32576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32577 (eval $ac_compile) 2>conftest.er1
32579 grep -v '^ *+' conftest.er1 >conftest.err
32581 cat conftest.err >&5
32582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32583 (exit $ac_status); } &&
32584 { ac_try='test -z "$ac_c_werror_flag"
32585 || test ! -s conftest.err'
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; } &&
32591 { ac_try='test -s conftest.$ac_objext'
32592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32593 (eval $ac_try) 2>&5
32595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32596 (exit $ac_status); }; }; then
32597 ac_cv_type_socklen_t=yes
32599 echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32602 ac_cv_type_socklen_t=no
32604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32606 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32607 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
32610 echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32611 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6
32612 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32613 echo $ECHO_N "(cached) $ECHO_C" >&6
32616 set socklen_t int unsigned "unsigned long" long size_t
32617 test "$ac_cv_type_socklen_t" = yes || shift
32618 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32619 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32620 cat >conftest.$ac_ext <<_ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h. */
32626 $ac_includes_default
32627 #ifdef HAVE_SYS_SOCKET_H
32628 #include <sys/socket.h>
32630 extern int accept(int s, $addrtype *ap, $lentype *lp);
32636 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32642 rm -f conftest.$ac_objext
32643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32644 (eval $ac_compile) 2>conftest.er1
32646 grep -v '^ *+' conftest.er1 >conftest.err
32648 cat conftest.err >&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); } &&
32651 { ac_try='test -z "$ac_c_werror_flag"
32652 || test ! -s conftest.err'
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; } &&
32658 { ac_try='test -s conftest.$ac_objext'
32659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660 (eval $ac_try) 2>&5
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32666 echo "$as_me: failed program was:" >&5
32667 sed 's/^/| /' conftest.$ac_ext >&5
32670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32674 echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32675 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6
32677 cat >>confdefs.h <<_ACEOF
32678 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32682 if test "$ac_cv_type_socklen_t" != yes; then
32684 cat >>confdefs.h <<_ACEOF
32685 #define socklen_t $ol_cv_type_ber_socklen_t
32691 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32692 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
32693 if test "${ac_cv_type_signal+set}" = set; then
32694 echo $ECHO_N "(cached) $ECHO_C" >&6
32696 cat >conftest.$ac_ext <<_ACEOF
32699 cat confdefs.h >>conftest.$ac_ext
32700 cat >>conftest.$ac_ext <<_ACEOF
32701 /* end confdefs.h. */
32702 #include <sys/types.h>
32703 #include <signal.h>
32708 extern "C" void (*signal (int, void (*)(int)))(int);
32710 void (*signal ()) ();
32721 rm -f conftest.$ac_objext
32722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32723 (eval $ac_compile) 2>conftest.er1
32725 grep -v '^ *+' conftest.er1 >conftest.err
32727 cat conftest.err >&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } &&
32730 { ac_try='test -z "$ac_c_werror_flag"
32731 || test ! -s conftest.err'
32732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32733 (eval $ac_try) 2>&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); }; } &&
32737 { ac_try='test -s conftest.$ac_objext'
32738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32739 (eval $ac_try) 2>&5
32741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742 (exit $ac_status); }; }; then
32743 ac_cv_type_signal=void
32745 echo "$as_me: failed program was:" >&5
32746 sed 's/^/| /' conftest.$ac_ext >&5
32748 ac_cv_type_signal=int
32750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32752 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32753 echo "${ECHO_T}$ac_cv_type_signal" >&6
32755 cat >>confdefs.h <<_ACEOF
32756 #define RETSIGTYPE $ac_cv_type_signal
32761 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32762 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
32763 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32764 echo $ECHO_N "(cached) $ECHO_C" >&6
32766 cat >conftest.$ac_ext <<_ACEOF
32769 cat confdefs.h >>conftest.$ac_ext
32770 cat >>conftest.$ac_ext <<_ACEOF
32771 /* end confdefs.h. */
32772 $ac_includes_default
32773 #include <signal.h>
32779 if ((sig_atomic_t *) 0)
32781 if (sizeof (sig_atomic_t))
32787 rm -f conftest.$ac_objext
32788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32789 (eval $ac_compile) 2>conftest.er1
32791 grep -v '^ *+' conftest.er1 >conftest.err
32793 cat conftest.err >&5
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); } &&
32796 { ac_try='test -z "$ac_c_werror_flag"
32797 || test ! -s conftest.err'
32798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32799 (eval $ac_try) 2>&5
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try='test -s conftest.$ac_objext'
32804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805 (eval $ac_try) 2>&5
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_cv_type_sig_atomic_t=yes
32811 echo "$as_me: failed program was:" >&5
32812 sed 's/^/| /' conftest.$ac_ext >&5
32814 ac_cv_type_sig_atomic_t=no
32816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32818 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32819 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
32820 if test $ac_cv_type_sig_atomic_t = yes; then
32824 cat >>confdefs.h <<_ACEOF
32825 #define sig_atomic_t int
32831 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32832 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32833 if test "${ac_cv_type_uid_t+set}" = set; then
32834 echo $ECHO_N "(cached) $ECHO_C" >&6
32836 cat >conftest.$ac_ext <<_ACEOF
32839 cat confdefs.h >>conftest.$ac_ext
32840 cat >>conftest.$ac_ext <<_ACEOF
32841 /* end confdefs.h. */
32842 #include <sys/types.h>
32845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32846 $EGREP "uid_t" >/dev/null 2>&1; then
32847 ac_cv_type_uid_t=yes
32849 ac_cv_type_uid_t=no
32854 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32855 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32856 if test $ac_cv_type_uid_t = no; then
32858 cat >>confdefs.h <<\_ACEOF
32863 cat >>confdefs.h <<\_ACEOF
32870 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32871 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
32872 if test "${ac_cv_header_time+set}" = set; then
32873 echo $ECHO_N "(cached) $ECHO_C" >&6
32875 cat >conftest.$ac_ext <<_ACEOF
32878 cat confdefs.h >>conftest.$ac_ext
32879 cat >>conftest.$ac_ext <<_ACEOF
32880 /* end confdefs.h. */
32881 #include <sys/types.h>
32882 #include <sys/time.h>
32888 if ((struct tm *) 0)
32894 rm -f conftest.$ac_objext
32895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32896 (eval $ac_compile) 2>conftest.er1
32898 grep -v '^ *+' conftest.er1 >conftest.err
32900 cat conftest.err >&5
32901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32902 (exit $ac_status); } &&
32903 { ac_try='test -z "$ac_c_werror_flag"
32904 || test ! -s conftest.err'
32905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32906 (eval $ac_try) 2>&5
32908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32909 (exit $ac_status); }; } &&
32910 { ac_try='test -s conftest.$ac_objext'
32911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32912 (eval $ac_try) 2>&5
32914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32915 (exit $ac_status); }; }; then
32916 ac_cv_header_time=yes
32918 echo "$as_me: failed program was:" >&5
32919 sed 's/^/| /' conftest.$ac_ext >&5
32921 ac_cv_header_time=no
32923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32925 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32926 echo "${ECHO_T}$ac_cv_header_time" >&6
32927 if test $ac_cv_header_time = yes; then
32929 cat >>confdefs.h <<\_ACEOF
32930 #define TIME_WITH_SYS_TIME 1
32935 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32936 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
32937 if test "${ac_cv_struct_tm+set}" = set; then
32938 echo $ECHO_N "(cached) $ECHO_C" >&6
32940 cat >conftest.$ac_ext <<_ACEOF
32943 cat confdefs.h >>conftest.$ac_ext
32944 cat >>conftest.$ac_ext <<_ACEOF
32945 /* end confdefs.h. */
32946 #include <sys/types.h>
32952 struct tm *tp; tp->tm_sec;
32957 rm -f conftest.$ac_objext
32958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32959 (eval $ac_compile) 2>conftest.er1
32961 grep -v '^ *+' conftest.er1 >conftest.err
32963 cat conftest.err >&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } &&
32966 { ac_try='test -z "$ac_c_werror_flag"
32967 || test ! -s conftest.err'
32968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32969 (eval $ac_try) 2>&5
32971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32972 (exit $ac_status); }; } &&
32973 { ac_try='test -s conftest.$ac_objext'
32974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32975 (eval $ac_try) 2>&5
32977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32978 (exit $ac_status); }; }; then
32979 ac_cv_struct_tm=time.h
32981 echo "$as_me: failed program was:" >&5
32982 sed 's/^/| /' conftest.$ac_ext >&5
32984 ac_cv_struct_tm=sys/time.h
32986 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32988 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32989 echo "${ECHO_T}$ac_cv_struct_tm" >&6
32990 if test $ac_cv_struct_tm = sys/time.h; then
32992 cat >>confdefs.h <<\_ACEOF
32993 #define TM_IN_SYS_TIME 1
32998 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32999 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
33000 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33001 echo $ECHO_N "(cached) $ECHO_C" >&6
33003 cat >conftest.$ac_ext <<_ACEOF
33006 cat confdefs.h >>conftest.$ac_ext
33007 cat >>conftest.$ac_ext <<_ACEOF
33008 /* end confdefs.h. */
33009 $ac_includes_default
33013 static struct stat ac_aggr;
33014 if (ac_aggr.st_blksize)
33020 rm -f conftest.$ac_objext
33021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33022 (eval $ac_compile) 2>conftest.er1
33024 grep -v '^ *+' conftest.er1 >conftest.err
33026 cat conftest.err >&5
33027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); } &&
33029 { ac_try='test -z "$ac_c_werror_flag"
33030 || test ! -s conftest.err'
33031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33032 (eval $ac_try) 2>&5
33034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33035 (exit $ac_status); }; } &&
33036 { ac_try='test -s conftest.$ac_objext'
33037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33038 (eval $ac_try) 2>&5
33040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33041 (exit $ac_status); }; }; then
33042 ac_cv_member_struct_stat_st_blksize=yes
33044 echo "$as_me: failed program was:" >&5
33045 sed 's/^/| /' conftest.$ac_ext >&5
33047 cat >conftest.$ac_ext <<_ACEOF
33050 cat confdefs.h >>conftest.$ac_ext
33051 cat >>conftest.$ac_ext <<_ACEOF
33052 /* end confdefs.h. */
33053 $ac_includes_default
33057 static struct stat ac_aggr;
33058 if (sizeof ac_aggr.st_blksize)
33064 rm -f conftest.$ac_objext
33065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33066 (eval $ac_compile) 2>conftest.er1
33068 grep -v '^ *+' conftest.er1 >conftest.err
33070 cat conftest.err >&5
33071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072 (exit $ac_status); } &&
33073 { ac_try='test -z "$ac_c_werror_flag"
33074 || test ! -s conftest.err'
33075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33076 (eval $ac_try) 2>&5
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); }; } &&
33080 { ac_try='test -s conftest.$ac_objext'
33081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33082 (eval $ac_try) 2>&5
33084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33085 (exit $ac_status); }; }; then
33086 ac_cv_member_struct_stat_st_blksize=yes
33088 echo "$as_me: failed program was:" >&5
33089 sed 's/^/| /' conftest.$ac_ext >&5
33091 ac_cv_member_struct_stat_st_blksize=no
33093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33097 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
33099 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33101 cat >>confdefs.h <<_ACEOF
33102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33108 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33109 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
33110 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33111 echo $ECHO_N "(cached) $ECHO_C" >&6
33113 cat >conftest.$ac_ext <<_ACEOF
33116 cat confdefs.h >>conftest.$ac_ext
33117 cat >>conftest.$ac_ext <<_ACEOF
33118 /* end confdefs.h. */
33119 $ac_includes_default
33125 static struct passwd ac_aggr;
33126 if (ac_aggr.pw_gecos)
33132 rm -f conftest.$ac_objext
33133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33134 (eval $ac_compile) 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
33141 { ac_try='test -z "$ac_c_werror_flag"
33142 || test ! -s conftest.err'
33143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33144 (eval $ac_try) 2>&5
33146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33147 (exit $ac_status); }; } &&
33148 { ac_try='test -s conftest.$ac_objext'
33149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33150 (eval $ac_try) 2>&5
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); }; }; then
33154 ac_cv_member_struct_passwd_pw_gecos=yes
33156 echo "$as_me: failed program was:" >&5
33157 sed 's/^/| /' conftest.$ac_ext >&5
33159 cat >conftest.$ac_ext <<_ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h. */
33165 $ac_includes_default
33171 static struct passwd ac_aggr;
33172 if (sizeof ac_aggr.pw_gecos)
33178 rm -f conftest.$ac_objext
33179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33180 (eval $ac_compile) 2>conftest.er1
33182 grep -v '^ *+' conftest.er1 >conftest.err
33184 cat conftest.err >&5
33185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186 (exit $ac_status); } &&
33187 { ac_try='test -z "$ac_c_werror_flag"
33188 || test ! -s conftest.err'
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; } &&
33194 { ac_try='test -s conftest.$ac_objext'
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; }; then
33200 ac_cv_member_struct_passwd_pw_gecos=yes
33202 echo "$as_me: failed program was:" >&5
33203 sed 's/^/| /' conftest.$ac_ext >&5
33205 ac_cv_member_struct_passwd_pw_gecos=no
33207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33212 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
33213 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33215 cat >>confdefs.h <<_ACEOF
33216 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33222 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33223 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
33224 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33225 echo $ECHO_N "(cached) $ECHO_C" >&6
33227 cat >conftest.$ac_ext <<_ACEOF
33230 cat confdefs.h >>conftest.$ac_ext
33231 cat >>conftest.$ac_ext <<_ACEOF
33232 /* end confdefs.h. */
33233 $ac_includes_default
33239 static struct passwd ac_aggr;
33240 if (ac_aggr.pw_passwd)
33246 rm -f conftest.$ac_objext
33247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33248 (eval $ac_compile) 2>conftest.er1
33250 grep -v '^ *+' conftest.er1 >conftest.err
33252 cat conftest.err >&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } &&
33255 { ac_try='test -z "$ac_c_werror_flag"
33256 || test ! -s conftest.err'
33257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33258 (eval $ac_try) 2>&5
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); }; } &&
33262 { ac_try='test -s conftest.$ac_objext'
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
33268 ac_cv_member_struct_passwd_pw_passwd=yes
33270 echo "$as_me: failed program was:" >&5
33271 sed 's/^/| /' conftest.$ac_ext >&5
33273 cat >conftest.$ac_ext <<_ACEOF
33276 cat confdefs.h >>conftest.$ac_ext
33277 cat >>conftest.$ac_ext <<_ACEOF
33278 /* end confdefs.h. */
33279 $ac_includes_default
33285 static struct passwd ac_aggr;
33286 if (sizeof ac_aggr.pw_passwd)
33292 rm -f conftest.$ac_objext
33293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33294 (eval $ac_compile) 2>conftest.er1
33296 grep -v '^ *+' conftest.er1 >conftest.err
33298 cat conftest.err >&5
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); } &&
33301 { ac_try='test -z "$ac_c_werror_flag"
33302 || test ! -s conftest.err'
33303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33304 (eval $ac_try) 2>&5
33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33307 (exit $ac_status); }; } &&
33308 { ac_try='test -s conftest.$ac_objext'
33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33310 (eval $ac_try) 2>&5
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); }; }; then
33314 ac_cv_member_struct_passwd_pw_passwd=yes
33316 echo "$as_me: failed program was:" >&5
33317 sed 's/^/| /' conftest.$ac_ext >&5
33319 ac_cv_member_struct_passwd_pw_passwd=no
33321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33325 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33326 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
33327 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33329 cat >>confdefs.h <<_ACEOF
33330 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33337 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33338 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
33339 if test "${ol_cv_c_upper_lower+set}" = set; then
33340 echo $ECHO_N "(cached) $ECHO_C" >&6
33343 if test "$cross_compiling" = yes; then
33344 ol_cv_c_upper_lower=safe
33346 cat >conftest.$ac_ext <<_ACEOF
33349 cat confdefs.h >>conftest.$ac_ext
33350 cat >>conftest.$ac_ext <<_ACEOF
33351 /* end confdefs.h. */
33356 if ('C' == toupper('C'))
33362 rm -f conftest$ac_exeext
33363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33364 (eval $ac_link) 2>&5
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33369 (eval $ac_try) 2>&5
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); }; }; then
33373 ol_cv_c_upper_lower=no
33375 echo "$as_me: program exited with status $ac_status" >&5
33376 echo "$as_me: failed program was:" >&5
33377 sed 's/^/| /' conftest.$ac_ext >&5
33379 ( exit $ac_status )
33380 ol_cv_c_upper_lower=yes
33382 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33385 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33386 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
33387 if test $ol_cv_c_upper_lower != no ; then
33389 cat >>confdefs.h <<\_ACEOF
33390 #define C_UPPER_LOWER 1
33395 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33396 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
33397 if test "${ac_cv_c_const+set}" = set; then
33398 echo $ECHO_N "(cached) $ECHO_C" >&6
33400 cat >conftest.$ac_ext <<_ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h. */
33410 /* FIXME: Include the comments suggested by Paul. */
33411 #ifndef __cplusplus
33412 /* Ultrix mips cc rejects this. */
33413 typedef int charset[2];
33415 /* SunOS 4.1.1 cc rejects this. */
33416 char const *const *ccp;
33418 /* NEC SVR4.0.2 mips cc rejects this. */
33419 struct point {int x, y;};
33420 static struct point const zero = {0,0};
33421 /* AIX XL C 1.02.0.0 rejects this.
33422 It does not let you subtract one const X* pointer from another in
33423 an arm of an if-expression whose if-part is not a constant
33425 const char *g = "string";
33426 ccp = &g + (g ? g-g : 0);
33427 /* HPUX 7.0 cc rejects these. */
33430 ccp = (char const *const *) p;
33431 { /* SCO 3.2v4 cc rejects this. */
33433 char const *s = 0 ? (char *) 0 : (char const *) 0;
33437 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33438 int x[] = {25, 17};
33439 const int *foo = &x[0];
33442 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33443 typedef const int *iptr;
33447 { /* AIX XL C 1.02.0.0 rejects this saying
33448 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33449 struct s { int j; const int *ap[3]; };
33450 struct s *b; b->j = 5;
33452 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33453 const int foo = 10;
33461 rm -f conftest.$ac_objext
33462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33463 (eval $ac_compile) 2>conftest.er1
33465 grep -v '^ *+' conftest.er1 >conftest.err
33467 cat conftest.err >&5
33468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33469 (exit $ac_status); } &&
33470 { ac_try='test -z "$ac_c_werror_flag"
33471 || test ! -s conftest.err'
33472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33473 (eval $ac_try) 2>&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); }; } &&
33477 { ac_try='test -s conftest.$ac_objext'
33478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33479 (eval $ac_try) 2>&5
33481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33482 (exit $ac_status); }; }; then
33485 echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33492 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33493 echo "${ECHO_T}$ac_cv_c_const" >&6
33494 if test $ac_cv_c_const = no; then
33496 cat >>confdefs.h <<\_ACEOF
33502 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33503 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
33504 if test "${ol_cv_c_volatile+set}" = set; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33507 cat >conftest.$ac_ext <<_ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h. */
33517 volatile int a; int * volatile b = x ? &y : &z;
33518 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33524 rm -f conftest.$ac_objext
33525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33526 (eval $ac_compile) 2>conftest.er1
33528 grep -v '^ *+' conftest.er1 >conftest.err
33530 cat conftest.err >&5
33531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33532 (exit $ac_status); } &&
33533 { ac_try='test -z "$ac_c_werror_flag"
33534 || test ! -s conftest.err'
33535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33536 (eval $ac_try) 2>&5
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); }; } &&
33540 { ac_try='test -s conftest.$ac_objext'
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; }; then
33546 ol_cv_c_volatile=yes
33548 echo "$as_me: failed program was:" >&5
33549 sed 's/^/| /' conftest.$ac_ext >&5
33551 ol_cv_c_volatile=no
33553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33555 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33556 echo "${ECHO_T}$ol_cv_c_volatile" >&6
33557 if test $ol_cv_c_volatile = yes; then
33561 cat >>confdefs.h <<\_ACEOF
33568 if test $cross_compiling = yes ; then
33569 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33570 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33572 cat >>confdefs.h <<\_ACEOF
33573 #define CROSS_COMPILING 1
33577 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33578 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
33579 if test "${ac_cv_c_bigendian+set}" = set; then
33580 echo $ECHO_N "(cached) $ECHO_C" >&6
33582 # See if sys/param.h defines the BYTE_ORDER macro.
33583 cat >conftest.$ac_ext <<_ACEOF
33586 cat confdefs.h >>conftest.$ac_ext
33587 cat >>conftest.$ac_ext <<_ACEOF
33588 /* end confdefs.h. */
33589 #include <sys/types.h>
33590 #include <sys/param.h>
33595 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
33596 bogus endian macros
33603 rm -f conftest.$ac_objext
33604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33605 (eval $ac_compile) 2>conftest.er1
33607 grep -v '^ *+' conftest.er1 >conftest.err
33609 cat conftest.err >&5
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); } &&
33612 { ac_try='test -z "$ac_c_werror_flag"
33613 || test ! -s conftest.err'
33614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33615 (eval $ac_try) 2>&5
33617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33618 (exit $ac_status); }; } &&
33619 { ac_try='test -s conftest.$ac_objext'
33620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621 (eval $ac_try) 2>&5
33623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624 (exit $ac_status); }; }; then
33625 # It does; now see whether it defined to BIG_ENDIAN or not.
33626 cat >conftest.$ac_ext <<_ACEOF
33629 cat confdefs.h >>conftest.$ac_ext
33630 cat >>conftest.$ac_ext <<_ACEOF
33631 /* end confdefs.h. */
33632 #include <sys/types.h>
33633 #include <sys/param.h>
33638 #if BYTE_ORDER != BIG_ENDIAN
33646 rm -f conftest.$ac_objext
33647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33648 (eval $ac_compile) 2>conftest.er1
33650 grep -v '^ *+' conftest.er1 >conftest.err
33652 cat conftest.err >&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } &&
33655 { ac_try='test -z "$ac_c_werror_flag"
33656 || test ! -s conftest.err'
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; } &&
33662 { ac_try='test -s conftest.$ac_objext'
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; }; then
33668 ac_cv_c_bigendian=yes
33670 echo "$as_me: failed program was:" >&5
33671 sed 's/^/| /' conftest.$ac_ext >&5
33673 ac_cv_c_bigendian=no
33675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33677 echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33680 # It does not; compile a test program.
33681 if test "$cross_compiling" = yes; then
33682 # try to guess the endianness by grepping values into an object file
33683 ac_cv_c_bigendian=unknown
33684 cat >conftest.$ac_ext <<_ACEOF
33687 cat confdefs.h >>conftest.$ac_ext
33688 cat >>conftest.$ac_ext <<_ACEOF
33689 /* end confdefs.h. */
33690 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33691 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33692 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33693 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33694 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33695 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33699 _ascii (); _ebcdic ();
33704 rm -f conftest.$ac_objext
33705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33706 (eval $ac_compile) 2>conftest.er1
33708 grep -v '^ *+' conftest.er1 >conftest.err
33710 cat conftest.err >&5
33711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33712 (exit $ac_status); } &&
33713 { ac_try='test -z "$ac_c_werror_flag"
33714 || test ! -s conftest.err'
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; } &&
33720 { ac_try='test -s conftest.$ac_objext'
33721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33722 (eval $ac_try) 2>&5
33724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33725 (exit $ac_status); }; }; then
33726 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33727 ac_cv_c_bigendian=yes
33729 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33730 if test "$ac_cv_c_bigendian" = unknown; then
33731 ac_cv_c_bigendian=no
33733 # finding both strings is unlikely to happen, but who knows?
33734 ac_cv_c_bigendian=unknown
33738 echo "$as_me: failed program was:" >&5
33739 sed 's/^/| /' conftest.$ac_ext >&5
33742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33744 cat >conftest.$ac_ext <<_ACEOF
33747 cat confdefs.h >>conftest.$ac_ext
33748 cat >>conftest.$ac_ext <<_ACEOF
33749 /* end confdefs.h. */
33753 /* Are we little or big endian? From Harbison&Steele. */
33757 char c[sizeof (long)];
33760 exit (u.c[sizeof (long) - 1] == 1);
33763 rm -f conftest$ac_exeext
33764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33765 (eval $ac_link) 2>&5
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33770 (eval $ac_try) 2>&5
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); }; }; then
33774 ac_cv_c_bigendian=no
33776 echo "$as_me: program exited with status $ac_status" >&5
33777 echo "$as_me: failed program was:" >&5
33778 sed 's/^/| /' conftest.$ac_ext >&5
33780 ( exit $ac_status )
33781 ac_cv_c_bigendian=yes
33783 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33788 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33789 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
33790 case $ac_cv_c_bigendian in
33793 cat >>confdefs.h <<\_ACEOF
33794 #define WORDS_BIGENDIAN 1
33800 { { echo "$as_me:$LINENO: error: unknown endianness
33801 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33802 echo "$as_me: error: unknown endianness
33803 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33804 { (exit 1); exit 1; }; } ;;
33809 echo "$as_me:$LINENO: checking for short" >&5
33810 echo $ECHO_N "checking for short... $ECHO_C" >&6
33811 if test "${ac_cv_type_short+set}" = set; then
33812 echo $ECHO_N "(cached) $ECHO_C" >&6
33814 cat >conftest.$ac_ext <<_ACEOF
33817 cat confdefs.h >>conftest.$ac_ext
33818 cat >>conftest.$ac_ext <<_ACEOF
33819 /* end confdefs.h. */
33820 $ac_includes_default
33826 if (sizeof (short))
33832 rm -f conftest.$ac_objext
33833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33834 (eval $ac_compile) 2>conftest.er1
33836 grep -v '^ *+' conftest.er1 >conftest.err
33838 cat conftest.err >&5
33839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33840 (exit $ac_status); } &&
33841 { ac_try='test -z "$ac_c_werror_flag"
33842 || test ! -s conftest.err'
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); }; } &&
33848 { ac_try='test -s conftest.$ac_objext'
33849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33850 (eval $ac_try) 2>&5
33852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33853 (exit $ac_status); }; }; then
33854 ac_cv_type_short=yes
33856 echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33859 ac_cv_type_short=no
33861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33863 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33864 echo "${ECHO_T}$ac_cv_type_short" >&6
33866 echo "$as_me:$LINENO: checking size of short" >&5
33867 echo $ECHO_N "checking size of short... $ECHO_C" >&6
33868 if test "${ac_cv_sizeof_short+set}" = set; then
33869 echo $ECHO_N "(cached) $ECHO_C" >&6
33871 if test "$ac_cv_type_short" = yes; then
33872 # The cast to unsigned long works around a bug in the HP C Compiler
33873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33875 # This bug is HP SR number 8606223364.
33876 if test "$cross_compiling" = yes; then
33877 # Depending upon the size, compute the lo and hi bounds.
33878 cat >conftest.$ac_ext <<_ACEOF
33881 cat confdefs.h >>conftest.$ac_ext
33882 cat >>conftest.$ac_ext <<_ACEOF
33883 /* end confdefs.h. */
33884 $ac_includes_default
33888 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
33895 rm -f conftest.$ac_objext
33896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33897 (eval $ac_compile) 2>conftest.er1
33899 grep -v '^ *+' conftest.er1 >conftest.err
33901 cat conftest.err >&5
33902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33903 (exit $ac_status); } &&
33904 { ac_try='test -z "$ac_c_werror_flag"
33905 || test ! -s conftest.err'
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); }; } &&
33911 { ac_try='test -s conftest.$ac_objext'
33912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33913 (eval $ac_try) 2>&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); }; }; then
33919 cat >conftest.$ac_ext <<_ACEOF
33922 cat confdefs.h >>conftest.$ac_ext
33923 cat >>conftest.$ac_ext <<_ACEOF
33924 /* end confdefs.h. */
33925 $ac_includes_default
33929 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
33936 rm -f conftest.$ac_objext
33937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33938 (eval $ac_compile) 2>conftest.er1
33940 grep -v '^ *+' conftest.er1 >conftest.err
33942 cat conftest.err >&5
33943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33944 (exit $ac_status); } &&
33945 { ac_try='test -z "$ac_c_werror_flag"
33946 || test ! -s conftest.err'
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); }; } &&
33952 { ac_try='test -s conftest.$ac_objext'
33953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33954 (eval $ac_try) 2>&5
33956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33957 (exit $ac_status); }; }; then
33958 ac_hi=$ac_mid; break
33960 echo "$as_me: failed program was:" >&5
33961 sed 's/^/| /' conftest.$ac_ext >&5
33963 ac_lo=`expr $ac_mid + 1`
33964 if test $ac_lo -le $ac_mid; then
33968 ac_mid=`expr 2 '*' $ac_mid + 1`
33970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33973 echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.$ac_ext >&5
33976 cat >conftest.$ac_ext <<_ACEOF
33979 cat confdefs.h >>conftest.$ac_ext
33980 cat >>conftest.$ac_ext <<_ACEOF
33981 /* end confdefs.h. */
33982 $ac_includes_default
33986 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
33993 rm -f conftest.$ac_objext
33994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33995 (eval $ac_compile) 2>conftest.er1
33997 grep -v '^ *+' conftest.er1 >conftest.err
33999 cat conftest.err >&5
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); } &&
34002 { ac_try='test -z "$ac_c_werror_flag"
34003 || test ! -s conftest.err'
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); }; } &&
34009 { ac_try='test -s conftest.$ac_objext'
34010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34011 (eval $ac_try) 2>&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); }; }; then
34017 cat >conftest.$ac_ext <<_ACEOF
34020 cat confdefs.h >>conftest.$ac_ext
34021 cat >>conftest.$ac_ext <<_ACEOF
34022 /* end confdefs.h. */
34023 $ac_includes_default
34027 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
34034 rm -f conftest.$ac_objext
34035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34036 (eval $ac_compile) 2>conftest.er1
34038 grep -v '^ *+' conftest.er1 >conftest.err
34040 cat conftest.err >&5
34041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042 (exit $ac_status); } &&
34043 { ac_try='test -z "$ac_c_werror_flag"
34044 || test ! -s conftest.err'
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); }; } &&
34050 { ac_try='test -s conftest.$ac_objext'
34051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34052 (eval $ac_try) 2>&5
34054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34055 (exit $ac_status); }; }; then
34056 ac_lo=$ac_mid; break
34058 echo "$as_me: failed program was:" >&5
34059 sed 's/^/| /' conftest.$ac_ext >&5
34061 ac_hi=`expr '(' $ac_mid ')' - 1`
34062 if test $ac_mid -le $ac_hi; then
34066 ac_mid=`expr 2 '*' $ac_mid`
34068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34071 echo "$as_me: failed program was:" >&5
34072 sed 's/^/| /' conftest.$ac_ext >&5
34076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34079 # Binary search between lo and hi bounds.
34080 while test "x$ac_lo" != "x$ac_hi"; do
34081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34082 cat >conftest.$ac_ext <<_ACEOF
34085 cat confdefs.h >>conftest.$ac_ext
34086 cat >>conftest.$ac_ext <<_ACEOF
34087 /* end confdefs.h. */
34088 $ac_includes_default
34092 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
34099 rm -f conftest.$ac_objext
34100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34101 (eval $ac_compile) 2>conftest.er1
34103 grep -v '^ *+' conftest.er1 >conftest.err
34105 cat conftest.err >&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
34108 { ac_try='test -z "$ac_c_werror_flag"
34109 || test ! -s conftest.err'
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); }; } &&
34115 { ac_try='test -s conftest.$ac_objext'
34116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117 (eval $ac_try) 2>&5
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); }; }; then
34123 echo "$as_me: failed program was:" >&5
34124 sed 's/^/| /' conftest.$ac_ext >&5
34126 ac_lo=`expr '(' $ac_mid ')' + 1`
34128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34131 ?*) ac_cv_sizeof_short=$ac_lo;;
34132 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34133 See \`config.log' for more details." >&5
34134 echo "$as_me: error: cannot compute sizeof (short), 77
34135 See \`config.log' for more details." >&2;}
34136 { (exit 1); exit 1; }; } ;;
34139 if test "$cross_compiling" = yes; then
34140 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34141 See \`config.log' for more details." >&5
34142 echo "$as_me: error: cannot run test program while cross compiling
34143 See \`config.log' for more details." >&2;}
34144 { (exit 1); exit 1; }; }
34146 cat >conftest.$ac_ext <<_ACEOF
34149 cat confdefs.h >>conftest.$ac_ext
34150 cat >>conftest.$ac_ext <<_ACEOF
34151 /* end confdefs.h. */
34152 $ac_includes_default
34153 long longval () { return (long) (sizeof (short)); }
34154 unsigned long ulongval () { return (long) (sizeof (short)); }
34156 #include <stdlib.h>
34161 FILE *f = fopen ("conftest.val", "w");
34164 if (((long) (sizeof (short))) < 0)
34166 long i = longval ();
34167 if (i != ((long) (sizeof (short))))
34169 fprintf (f, "%ld\n", i);
34173 unsigned long i = ulongval ();
34174 if (i != ((long) (sizeof (short))))
34176 fprintf (f, "%lu\n", i);
34178 exit (ferror (f) || fclose (f) != 0);
34184 rm -f conftest$ac_exeext
34185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34186 (eval $ac_link) 2>&5
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34191 (eval $ac_try) 2>&5
34193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34194 (exit $ac_status); }; }; then
34195 ac_cv_sizeof_short=`cat conftest.val`
34197 echo "$as_me: program exited with status $ac_status" >&5
34198 echo "$as_me: failed program was:" >&5
34199 sed 's/^/| /' conftest.$ac_ext >&5
34201 ( exit $ac_status )
34202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
34203 See \`config.log' for more details." >&5
34204 echo "$as_me: error: cannot compute sizeof (short), 77
34205 See \`config.log' for more details." >&2;}
34206 { (exit 1); exit 1; }; }
34208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34213 ac_cv_sizeof_short=0
34216 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34217 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
34218 cat >>confdefs.h <<_ACEOF
34219 #define SIZEOF_SHORT $ac_cv_sizeof_short
34223 echo "$as_me:$LINENO: checking for int" >&5
34224 echo $ECHO_N "checking for int... $ECHO_C" >&6
34225 if test "${ac_cv_type_int+set}" = set; then
34226 echo $ECHO_N "(cached) $ECHO_C" >&6
34228 cat >conftest.$ac_ext <<_ACEOF
34231 cat confdefs.h >>conftest.$ac_ext
34232 cat >>conftest.$ac_ext <<_ACEOF
34233 /* end confdefs.h. */
34234 $ac_includes_default
34246 rm -f conftest.$ac_objext
34247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34248 (eval $ac_compile) 2>conftest.er1
34250 grep -v '^ *+' conftest.er1 >conftest.err
34252 cat conftest.err >&5
34253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254 (exit $ac_status); } &&
34255 { ac_try='test -z "$ac_c_werror_flag"
34256 || test ! -s conftest.err'
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); }; } &&
34262 { ac_try='test -s conftest.$ac_objext'
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; }; then
34270 echo "$as_me: failed program was:" >&5
34271 sed 's/^/| /' conftest.$ac_ext >&5
34275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34277 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34278 echo "${ECHO_T}$ac_cv_type_int" >&6
34280 echo "$as_me:$LINENO: checking size of int" >&5
34281 echo $ECHO_N "checking size of int... $ECHO_C" >&6
34282 if test "${ac_cv_sizeof_int+set}" = set; then
34283 echo $ECHO_N "(cached) $ECHO_C" >&6
34285 if test "$ac_cv_type_int" = yes; then
34286 # The cast to unsigned long works around a bug in the HP C Compiler
34287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34289 # This bug is HP SR number 8606223364.
34290 if test "$cross_compiling" = yes; then
34291 # Depending upon the size, compute the lo and hi bounds.
34292 cat >conftest.$ac_ext <<_ACEOF
34295 cat confdefs.h >>conftest.$ac_ext
34296 cat >>conftest.$ac_ext <<_ACEOF
34297 /* end confdefs.h. */
34298 $ac_includes_default
34302 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
34309 rm -f conftest.$ac_objext
34310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34311 (eval $ac_compile) 2>conftest.er1
34313 grep -v '^ *+' conftest.er1 >conftest.err
34315 cat conftest.err >&5
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); } &&
34318 { ac_try='test -z "$ac_c_werror_flag"
34319 || test ! -s conftest.err'
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); }; } &&
34325 { ac_try='test -s conftest.$ac_objext'
34326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327 (eval $ac_try) 2>&5
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34333 cat >conftest.$ac_ext <<_ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h. */
34339 $ac_includes_default
34343 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34350 rm -f conftest.$ac_objext
34351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34352 (eval $ac_compile) 2>conftest.er1
34354 grep -v '^ *+' conftest.er1 >conftest.err
34356 cat conftest.err >&5
34357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34358 (exit $ac_status); } &&
34359 { ac_try='test -z "$ac_c_werror_flag"
34360 || test ! -s conftest.err'
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); }; } &&
34366 { ac_try='test -s conftest.$ac_objext'
34367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34368 (eval $ac_try) 2>&5
34370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34371 (exit $ac_status); }; }; then
34372 ac_hi=$ac_mid; break
34374 echo "$as_me: failed program was:" >&5
34375 sed 's/^/| /' conftest.$ac_ext >&5
34377 ac_lo=`expr $ac_mid + 1`
34378 if test $ac_lo -le $ac_mid; then
34382 ac_mid=`expr 2 '*' $ac_mid + 1`
34384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34387 echo "$as_me: failed program was:" >&5
34388 sed 's/^/| /' conftest.$ac_ext >&5
34390 cat >conftest.$ac_ext <<_ACEOF
34393 cat confdefs.h >>conftest.$ac_ext
34394 cat >>conftest.$ac_ext <<_ACEOF
34395 /* end confdefs.h. */
34396 $ac_includes_default
34400 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
34407 rm -f conftest.$ac_objext
34408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34409 (eval $ac_compile) 2>conftest.er1
34411 grep -v '^ *+' conftest.er1 >conftest.err
34413 cat conftest.err >&5
34414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34415 (exit $ac_status); } &&
34416 { ac_try='test -z "$ac_c_werror_flag"
34417 || test ! -s conftest.err'
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); }; } &&
34423 { ac_try='test -s conftest.$ac_objext'
34424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34425 (eval $ac_try) 2>&5
34427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428 (exit $ac_status); }; }; then
34431 cat >conftest.$ac_ext <<_ACEOF
34434 cat confdefs.h >>conftest.$ac_ext
34435 cat >>conftest.$ac_ext <<_ACEOF
34436 /* end confdefs.h. */
34437 $ac_includes_default
34441 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
34448 rm -f conftest.$ac_objext
34449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34450 (eval $ac_compile) 2>conftest.er1
34452 grep -v '^ *+' conftest.er1 >conftest.err
34454 cat conftest.err >&5
34455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456 (exit $ac_status); } &&
34457 { ac_try='test -z "$ac_c_werror_flag"
34458 || test ! -s conftest.err'
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); }; } &&
34464 { ac_try='test -s conftest.$ac_objext'
34465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466 (eval $ac_try) 2>&5
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); }; }; then
34470 ac_lo=$ac_mid; break
34472 echo "$as_me: failed program was:" >&5
34473 sed 's/^/| /' conftest.$ac_ext >&5
34475 ac_hi=`expr '(' $ac_mid ')' - 1`
34476 if test $ac_mid -le $ac_hi; then
34480 ac_mid=`expr 2 '*' $ac_mid`
34482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34485 echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34493 # Binary search between lo and hi bounds.
34494 while test "x$ac_lo" != "x$ac_hi"; do
34495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34496 cat >conftest.$ac_ext <<_ACEOF
34499 cat confdefs.h >>conftest.$ac_ext
34500 cat >>conftest.$ac_ext <<_ACEOF
34501 /* end confdefs.h. */
34502 $ac_includes_default
34506 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
34513 rm -f conftest.$ac_objext
34514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34515 (eval $ac_compile) 2>conftest.er1
34517 grep -v '^ *+' conftest.er1 >conftest.err
34519 cat conftest.err >&5
34520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521 (exit $ac_status); } &&
34522 { ac_try='test -z "$ac_c_werror_flag"
34523 || test ! -s conftest.err'
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); }; } &&
34529 { ac_try='test -s conftest.$ac_objext'
34530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34531 (eval $ac_try) 2>&5
34533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34534 (exit $ac_status); }; }; then
34537 echo "$as_me: failed program was:" >&5
34538 sed 's/^/| /' conftest.$ac_ext >&5
34540 ac_lo=`expr '(' $ac_mid ')' + 1`
34542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34545 ?*) ac_cv_sizeof_int=$ac_lo;;
34546 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34547 See \`config.log' for more details." >&5
34548 echo "$as_me: error: cannot compute sizeof (int), 77
34549 See \`config.log' for more details." >&2;}
34550 { (exit 1); exit 1; }; } ;;
34553 if test "$cross_compiling" = yes; then
34554 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34555 See \`config.log' for more details." >&5
34556 echo "$as_me: error: cannot run test program while cross compiling
34557 See \`config.log' for more details." >&2;}
34558 { (exit 1); exit 1; }; }
34560 cat >conftest.$ac_ext <<_ACEOF
34563 cat confdefs.h >>conftest.$ac_ext
34564 cat >>conftest.$ac_ext <<_ACEOF
34565 /* end confdefs.h. */
34566 $ac_includes_default
34567 long longval () { return (long) (sizeof (int)); }
34568 unsigned long ulongval () { return (long) (sizeof (int)); }
34570 #include <stdlib.h>
34575 FILE *f = fopen ("conftest.val", "w");
34578 if (((long) (sizeof (int))) < 0)
34580 long i = longval ();
34581 if (i != ((long) (sizeof (int))))
34583 fprintf (f, "%ld\n", i);
34587 unsigned long i = ulongval ();
34588 if (i != ((long) (sizeof (int))))
34590 fprintf (f, "%lu\n", i);
34592 exit (ferror (f) || fclose (f) != 0);
34598 rm -f conftest$ac_exeext
34599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34600 (eval $ac_link) 2>&5
34602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34605 (eval $ac_try) 2>&5
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609 ac_cv_sizeof_int=`cat conftest.val`
34611 echo "$as_me: program exited with status $ac_status" >&5
34612 echo "$as_me: failed program was:" >&5
34613 sed 's/^/| /' conftest.$ac_ext >&5
34615 ( exit $ac_status )
34616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
34617 See \`config.log' for more details." >&5
34618 echo "$as_me: error: cannot compute sizeof (int), 77
34619 See \`config.log' for more details." >&2;}
34620 { (exit 1); exit 1; }; }
34622 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34631 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
34632 cat >>confdefs.h <<_ACEOF
34633 #define SIZEOF_INT $ac_cv_sizeof_int
34637 echo "$as_me:$LINENO: checking for long" >&5
34638 echo $ECHO_N "checking for long... $ECHO_C" >&6
34639 if test "${ac_cv_type_long+set}" = set; then
34640 echo $ECHO_N "(cached) $ECHO_C" >&6
34642 cat >conftest.$ac_ext <<_ACEOF
34645 cat confdefs.h >>conftest.$ac_ext
34646 cat >>conftest.$ac_ext <<_ACEOF
34647 /* end confdefs.h. */
34648 $ac_includes_default
34660 rm -f conftest.$ac_objext
34661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34662 (eval $ac_compile) 2>conftest.er1
34664 grep -v '^ *+' conftest.er1 >conftest.err
34666 cat conftest.err >&5
34667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34668 (exit $ac_status); } &&
34669 { ac_try='test -z "$ac_c_werror_flag"
34670 || test ! -s conftest.err'
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); }; } &&
34676 { ac_try='test -s conftest.$ac_objext'
34677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34678 (eval $ac_try) 2>&5
34680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34681 (exit $ac_status); }; }; then
34682 ac_cv_type_long=yes
34684 echo "$as_me: failed program was:" >&5
34685 sed 's/^/| /' conftest.$ac_ext >&5
34689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34691 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34692 echo "${ECHO_T}$ac_cv_type_long" >&6
34694 echo "$as_me:$LINENO: checking size of long" >&5
34695 echo $ECHO_N "checking size of long... $ECHO_C" >&6
34696 if test "${ac_cv_sizeof_long+set}" = set; then
34697 echo $ECHO_N "(cached) $ECHO_C" >&6
34699 if test "$ac_cv_type_long" = yes; then
34700 # The cast to unsigned long works around a bug in the HP C Compiler
34701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34703 # This bug is HP SR number 8606223364.
34704 if test "$cross_compiling" = yes; then
34705 # Depending upon the size, compute the lo and hi bounds.
34706 cat >conftest.$ac_ext <<_ACEOF
34709 cat confdefs.h >>conftest.$ac_ext
34710 cat >>conftest.$ac_ext <<_ACEOF
34711 /* end confdefs.h. */
34712 $ac_includes_default
34716 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
34723 rm -f conftest.$ac_objext
34724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34725 (eval $ac_compile) 2>conftest.er1
34727 grep -v '^ *+' conftest.er1 >conftest.err
34729 cat conftest.err >&5
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); } &&
34732 { ac_try='test -z "$ac_c_werror_flag"
34733 || test ! -s conftest.err'
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); }; } &&
34739 { ac_try='test -s conftest.$ac_objext'
34740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741 (eval $ac_try) 2>&5
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); }; }; then
34747 cat >conftest.$ac_ext <<_ACEOF
34750 cat confdefs.h >>conftest.$ac_ext
34751 cat >>conftest.$ac_ext <<_ACEOF
34752 /* end confdefs.h. */
34753 $ac_includes_default
34757 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34764 rm -f conftest.$ac_objext
34765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34766 (eval $ac_compile) 2>conftest.er1
34768 grep -v '^ *+' conftest.er1 >conftest.err
34770 cat conftest.err >&5
34771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34772 (exit $ac_status); } &&
34773 { ac_try='test -z "$ac_c_werror_flag"
34774 || test ! -s conftest.err'
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); }; } &&
34780 { ac_try='test -s conftest.$ac_objext'
34781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34782 (eval $ac_try) 2>&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); }; }; then
34786 ac_hi=$ac_mid; break
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34791 ac_lo=`expr $ac_mid + 1`
34792 if test $ac_lo -le $ac_mid; then
34796 ac_mid=`expr 2 '*' $ac_mid + 1`
34798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34801 echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34804 cat >conftest.$ac_ext <<_ACEOF
34807 cat confdefs.h >>conftest.$ac_ext
34808 cat >>conftest.$ac_ext <<_ACEOF
34809 /* end confdefs.h. */
34810 $ac_includes_default
34814 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
34821 rm -f conftest.$ac_objext
34822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34823 (eval $ac_compile) 2>conftest.er1
34825 grep -v '^ *+' conftest.er1 >conftest.err
34827 cat conftest.err >&5
34828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34829 (exit $ac_status); } &&
34830 { ac_try='test -z "$ac_c_werror_flag"
34831 || test ! -s conftest.err'
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); }; } &&
34837 { ac_try='test -s conftest.$ac_objext'
34838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34839 (eval $ac_try) 2>&5
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); }; }; then
34845 cat >conftest.$ac_ext <<_ACEOF
34848 cat confdefs.h >>conftest.$ac_ext
34849 cat >>conftest.$ac_ext <<_ACEOF
34850 /* end confdefs.h. */
34851 $ac_includes_default
34855 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
34862 rm -f conftest.$ac_objext
34863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34864 (eval $ac_compile) 2>conftest.er1
34866 grep -v '^ *+' conftest.er1 >conftest.err
34868 cat conftest.err >&5
34869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870 (exit $ac_status); } &&
34871 { ac_try='test -z "$ac_c_werror_flag"
34872 || test ! -s conftest.err'
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); }; } &&
34878 { ac_try='test -s conftest.$ac_objext'
34879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34880 (eval $ac_try) 2>&5
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); }; }; then
34884 ac_lo=$ac_mid; break
34886 echo "$as_me: failed program was:" >&5
34887 sed 's/^/| /' conftest.$ac_ext >&5
34889 ac_hi=`expr '(' $ac_mid ')' - 1`
34890 if test $ac_mid -le $ac_hi; then
34894 ac_mid=`expr 2 '*' $ac_mid`
34896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34899 echo "$as_me: failed program was:" >&5
34900 sed 's/^/| /' conftest.$ac_ext >&5
34904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34907 # Binary search between lo and hi bounds.
34908 while test "x$ac_lo" != "x$ac_hi"; do
34909 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34910 cat >conftest.$ac_ext <<_ACEOF
34913 cat confdefs.h >>conftest.$ac_ext
34914 cat >>conftest.$ac_ext <<_ACEOF
34915 /* end confdefs.h. */
34916 $ac_includes_default
34920 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
34927 rm -f conftest.$ac_objext
34928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34929 (eval $ac_compile) 2>conftest.er1
34931 grep -v '^ *+' conftest.er1 >conftest.err
34933 cat conftest.err >&5
34934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34935 (exit $ac_status); } &&
34936 { ac_try='test -z "$ac_c_werror_flag"
34937 || test ! -s conftest.err'
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); }; } &&
34943 { ac_try='test -s conftest.$ac_objext'
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; }; then
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34954 ac_lo=`expr '(' $ac_mid ')' + 1`
34956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34959 ?*) ac_cv_sizeof_long=$ac_lo;;
34960 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
34961 See \`config.log' for more details." >&5
34962 echo "$as_me: error: cannot compute sizeof (long), 77
34963 See \`config.log' for more details." >&2;}
34964 { (exit 1); exit 1; }; } ;;
34967 if test "$cross_compiling" = yes; then
34968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34969 See \`config.log' for more details." >&5
34970 echo "$as_me: error: cannot run test program while cross compiling
34971 See \`config.log' for more details." >&2;}
34972 { (exit 1); exit 1; }; }
34974 cat >conftest.$ac_ext <<_ACEOF
34977 cat confdefs.h >>conftest.$ac_ext
34978 cat >>conftest.$ac_ext <<_ACEOF
34979 /* end confdefs.h. */
34980 $ac_includes_default
34981 long longval () { return (long) (sizeof (long)); }
34982 unsigned long ulongval () { return (long) (sizeof (long)); }
34984 #include <stdlib.h>
34989 FILE *f = fopen ("conftest.val", "w");
34992 if (((long) (sizeof (long))) < 0)
34994 long i = longval ();
34995 if (i != ((long) (sizeof (long))))
34997 fprintf (f, "%ld\n", i);
35001 unsigned long i = ulongval ();
35002 if (i != ((long) (sizeof (long))))
35004 fprintf (f, "%lu\n", i);
35006 exit (ferror (f) || fclose (f) != 0);
35012 rm -f conftest$ac_exeext
35013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35014 (eval $ac_link) 2>&5
35016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35019 (eval $ac_try) 2>&5
35021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022 (exit $ac_status); }; }; then
35023 ac_cv_sizeof_long=`cat conftest.val`
35025 echo "$as_me: program exited with status $ac_status" >&5
35026 echo "$as_me: failed program was:" >&5
35027 sed 's/^/| /' conftest.$ac_ext >&5
35029 ( exit $ac_status )
35030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
35031 See \`config.log' for more details." >&5
35032 echo "$as_me: error: cannot compute sizeof (long), 77
35033 See \`config.log' for more details." >&2;}
35034 { (exit 1); exit 1; }; }
35036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35041 ac_cv_sizeof_long=0
35044 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35045 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
35046 cat >>confdefs.h <<_ACEOF
35047 #define SIZEOF_LONG $ac_cv_sizeof_long
35051 echo "$as_me:$LINENO: checking for long long" >&5
35052 echo $ECHO_N "checking for long long... $ECHO_C" >&6
35053 if test "${ac_cv_type_long_long+set}" = set; then
35054 echo $ECHO_N "(cached) $ECHO_C" >&6
35056 cat >conftest.$ac_ext <<_ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h. */
35062 $ac_includes_default
35066 if ((long long *) 0)
35068 if (sizeof (long long))
35074 rm -f conftest.$ac_objext
35075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35076 (eval $ac_compile) 2>conftest.er1
35078 grep -v '^ *+' conftest.er1 >conftest.err
35080 cat conftest.err >&5
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); } &&
35083 { ac_try='test -z "$ac_c_werror_flag"
35084 || test ! -s conftest.err'
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); }; } &&
35090 { ac_try='test -s conftest.$ac_objext'
35091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35092 (eval $ac_try) 2>&5
35094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095 (exit $ac_status); }; }; then
35096 ac_cv_type_long_long=yes
35098 echo "$as_me: failed program was:" >&5
35099 sed 's/^/| /' conftest.$ac_ext >&5
35101 ac_cv_type_long_long=no
35103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35105 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35106 echo "${ECHO_T}$ac_cv_type_long_long" >&6
35108 echo "$as_me:$LINENO: checking size of long long" >&5
35109 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
35110 if test "${ac_cv_sizeof_long_long+set}" = set; then
35111 echo $ECHO_N "(cached) $ECHO_C" >&6
35113 if test "$ac_cv_type_long_long" = yes; then
35114 # The cast to unsigned long works around a bug in the HP C Compiler
35115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35117 # This bug is HP SR number 8606223364.
35118 if test "$cross_compiling" = yes; then
35119 # Depending upon the size, compute the lo and hi bounds.
35120 cat >conftest.$ac_ext <<_ACEOF
35123 cat confdefs.h >>conftest.$ac_ext
35124 cat >>conftest.$ac_ext <<_ACEOF
35125 /* end confdefs.h. */
35126 $ac_includes_default
35130 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
35137 rm -f conftest.$ac_objext
35138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35139 (eval $ac_compile) 2>conftest.er1
35141 grep -v '^ *+' conftest.er1 >conftest.err
35143 cat conftest.err >&5
35144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35145 (exit $ac_status); } &&
35146 { ac_try='test -z "$ac_c_werror_flag"
35147 || test ! -s conftest.err'
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); }; } &&
35153 { ac_try='test -s conftest.$ac_objext'
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; }; then
35161 cat >conftest.$ac_ext <<_ACEOF
35164 cat confdefs.h >>conftest.$ac_ext
35165 cat >>conftest.$ac_ext <<_ACEOF
35166 /* end confdefs.h. */
35167 $ac_includes_default
35171 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35178 rm -f conftest.$ac_objext
35179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35180 (eval $ac_compile) 2>conftest.er1
35182 grep -v '^ *+' conftest.er1 >conftest.err
35184 cat conftest.err >&5
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); } &&
35187 { ac_try='test -z "$ac_c_werror_flag"
35188 || test ! -s conftest.err'
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); }; } &&
35194 { ac_try='test -s conftest.$ac_objext'
35195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35196 (eval $ac_try) 2>&5
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); }; }; then
35200 ac_hi=$ac_mid; break
35202 echo "$as_me: failed program was:" >&5
35203 sed 's/^/| /' conftest.$ac_ext >&5
35205 ac_lo=`expr $ac_mid + 1`
35206 if test $ac_lo -le $ac_mid; then
35210 ac_mid=`expr 2 '*' $ac_mid + 1`
35212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35215 echo "$as_me: failed program was:" >&5
35216 sed 's/^/| /' conftest.$ac_ext >&5
35218 cat >conftest.$ac_ext <<_ACEOF
35221 cat confdefs.h >>conftest.$ac_ext
35222 cat >>conftest.$ac_ext <<_ACEOF
35223 /* end confdefs.h. */
35224 $ac_includes_default
35228 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
35235 rm -f conftest.$ac_objext
35236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35237 (eval $ac_compile) 2>conftest.er1
35239 grep -v '^ *+' conftest.er1 >conftest.err
35241 cat conftest.err >&5
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); } &&
35244 { ac_try='test -z "$ac_c_werror_flag"
35245 || test ! -s conftest.err'
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); }; } &&
35251 { ac_try='test -s conftest.$ac_objext'
35252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35253 (eval $ac_try) 2>&5
35255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35256 (exit $ac_status); }; }; then
35259 cat >conftest.$ac_ext <<_ACEOF
35262 cat confdefs.h >>conftest.$ac_ext
35263 cat >>conftest.$ac_ext <<_ACEOF
35264 /* end confdefs.h. */
35265 $ac_includes_default
35269 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
35276 rm -f conftest.$ac_objext
35277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35278 (eval $ac_compile) 2>conftest.er1
35280 grep -v '^ *+' conftest.er1 >conftest.err
35282 cat conftest.err >&5
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); } &&
35285 { ac_try='test -z "$ac_c_werror_flag"
35286 || test ! -s conftest.err'
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); }; } &&
35292 { ac_try='test -s conftest.$ac_objext'
35293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35294 (eval $ac_try) 2>&5
35296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35297 (exit $ac_status); }; }; then
35298 ac_lo=$ac_mid; break
35300 echo "$as_me: failed program was:" >&5
35301 sed 's/^/| /' conftest.$ac_ext >&5
35303 ac_hi=`expr '(' $ac_mid ')' - 1`
35304 if test $ac_mid -le $ac_hi; then
35308 ac_mid=`expr 2 '*' $ac_mid`
35310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35313 echo "$as_me: failed program was:" >&5
35314 sed 's/^/| /' conftest.$ac_ext >&5
35318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35321 # Binary search between lo and hi bounds.
35322 while test "x$ac_lo" != "x$ac_hi"; do
35323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35324 cat >conftest.$ac_ext <<_ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h. */
35330 $ac_includes_default
35334 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
35341 rm -f conftest.$ac_objext
35342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35343 (eval $ac_compile) 2>conftest.er1
35345 grep -v '^ *+' conftest.er1 >conftest.err
35347 cat conftest.err >&5
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); } &&
35350 { ac_try='test -z "$ac_c_werror_flag"
35351 || test ! -s conftest.err'
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); }; } &&
35357 { ac_try='test -s conftest.$ac_objext'
35358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35359 (eval $ac_try) 2>&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); }; }; then
35365 echo "$as_me: failed program was:" >&5
35366 sed 's/^/| /' conftest.$ac_ext >&5
35368 ac_lo=`expr '(' $ac_mid ')' + 1`
35370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35373 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35374 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35375 See \`config.log' for more details." >&5
35376 echo "$as_me: error: cannot compute sizeof (long long), 77
35377 See \`config.log' for more details." >&2;}
35378 { (exit 1); exit 1; }; } ;;
35381 if test "$cross_compiling" = yes; then
35382 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35383 See \`config.log' for more details." >&5
35384 echo "$as_me: error: cannot run test program while cross compiling
35385 See \`config.log' for more details." >&2;}
35386 { (exit 1); exit 1; }; }
35388 cat >conftest.$ac_ext <<_ACEOF
35391 cat confdefs.h >>conftest.$ac_ext
35392 cat >>conftest.$ac_ext <<_ACEOF
35393 /* end confdefs.h. */
35394 $ac_includes_default
35395 long longval () { return (long) (sizeof (long long)); }
35396 unsigned long ulongval () { return (long) (sizeof (long long)); }
35398 #include <stdlib.h>
35403 FILE *f = fopen ("conftest.val", "w");
35406 if (((long) (sizeof (long long))) < 0)
35408 long i = longval ();
35409 if (i != ((long) (sizeof (long long))))
35411 fprintf (f, "%ld\n", i);
35415 unsigned long i = ulongval ();
35416 if (i != ((long) (sizeof (long long))))
35418 fprintf (f, "%lu\n", i);
35420 exit (ferror (f) || fclose (f) != 0);
35426 rm -f conftest$ac_exeext
35427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35428 (eval $ac_link) 2>&5
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35433 (eval $ac_try) 2>&5
35435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35436 (exit $ac_status); }; }; then
35437 ac_cv_sizeof_long_long=`cat conftest.val`
35439 echo "$as_me: program exited with status $ac_status" >&5
35440 echo "$as_me: failed program was:" >&5
35441 sed 's/^/| /' conftest.$ac_ext >&5
35443 ( exit $ac_status )
35444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
35445 See \`config.log' for more details." >&5
35446 echo "$as_me: error: cannot compute sizeof (long long), 77
35447 See \`config.log' for more details." >&2;}
35448 { (exit 1); exit 1; }; }
35450 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35455 ac_cv_sizeof_long_long=0
35458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35459 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
35460 cat >>confdefs.h <<_ACEOF
35461 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35465 echo "$as_me:$LINENO: checking for wchar_t" >&5
35466 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
35467 if test "${ac_cv_type_wchar_t+set}" = set; then
35468 echo $ECHO_N "(cached) $ECHO_C" >&6
35470 cat >conftest.$ac_ext <<_ACEOF
35473 cat confdefs.h >>conftest.$ac_ext
35474 cat >>conftest.$ac_ext <<_ACEOF
35475 /* end confdefs.h. */
35476 $ac_includes_default
35482 if (sizeof (wchar_t))
35488 rm -f conftest.$ac_objext
35489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35490 (eval $ac_compile) 2>conftest.er1
35492 grep -v '^ *+' conftest.er1 >conftest.err
35494 cat conftest.err >&5
35495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35496 (exit $ac_status); } &&
35497 { ac_try='test -z "$ac_c_werror_flag"
35498 || test ! -s conftest.err'
35499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35500 (eval $ac_try) 2>&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); }; } &&
35504 { ac_try='test -s conftest.$ac_objext'
35505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35506 (eval $ac_try) 2>&5
35508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35509 (exit $ac_status); }; }; then
35510 ac_cv_type_wchar_t=yes
35512 echo "$as_me: failed program was:" >&5
35513 sed 's/^/| /' conftest.$ac_ext >&5
35515 ac_cv_type_wchar_t=no
35517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35519 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35520 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
35522 echo "$as_me:$LINENO: checking size of wchar_t" >&5
35523 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
35524 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35525 echo $ECHO_N "(cached) $ECHO_C" >&6
35527 if test "$ac_cv_type_wchar_t" = yes; then
35528 # The cast to unsigned long works around a bug in the HP C Compiler
35529 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35530 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35531 # This bug is HP SR number 8606223364.
35532 if test "$cross_compiling" = yes; then
35533 # Depending upon the size, compute the lo and hi bounds.
35534 cat >conftest.$ac_ext <<_ACEOF
35537 cat confdefs.h >>conftest.$ac_ext
35538 cat >>conftest.$ac_ext <<_ACEOF
35539 /* end confdefs.h. */
35540 $ac_includes_default
35544 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
35551 rm -f conftest.$ac_objext
35552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35553 (eval $ac_compile) 2>conftest.er1
35555 grep -v '^ *+' conftest.er1 >conftest.err
35557 cat conftest.err >&5
35558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35559 (exit $ac_status); } &&
35560 { ac_try='test -z "$ac_c_werror_flag"
35561 || test ! -s conftest.err'
35562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35563 (eval $ac_try) 2>&5
35565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35566 (exit $ac_status); }; } &&
35567 { ac_try='test -s conftest.$ac_objext'
35568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35569 (eval $ac_try) 2>&5
35571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35572 (exit $ac_status); }; }; then
35575 cat >conftest.$ac_ext <<_ACEOF
35578 cat confdefs.h >>conftest.$ac_ext
35579 cat >>conftest.$ac_ext <<_ACEOF
35580 /* end confdefs.h. */
35581 $ac_includes_default
35585 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35592 rm -f conftest.$ac_objext
35593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35594 (eval $ac_compile) 2>conftest.er1
35596 grep -v '^ *+' conftest.er1 >conftest.err
35598 cat conftest.err >&5
35599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35600 (exit $ac_status); } &&
35601 { ac_try='test -z "$ac_c_werror_flag"
35602 || test ! -s conftest.err'
35603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35604 (eval $ac_try) 2>&5
35606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607 (exit $ac_status); }; } &&
35608 { ac_try='test -s conftest.$ac_objext'
35609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35610 (eval $ac_try) 2>&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); }; }; then
35614 ac_hi=$ac_mid; break
35616 echo "$as_me: failed program was:" >&5
35617 sed 's/^/| /' conftest.$ac_ext >&5
35619 ac_lo=`expr $ac_mid + 1`
35620 if test $ac_lo -le $ac_mid; then
35624 ac_mid=`expr 2 '*' $ac_mid + 1`
35626 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35629 echo "$as_me: failed program was:" >&5
35630 sed 's/^/| /' conftest.$ac_ext >&5
35632 cat >conftest.$ac_ext <<_ACEOF
35635 cat confdefs.h >>conftest.$ac_ext
35636 cat >>conftest.$ac_ext <<_ACEOF
35637 /* end confdefs.h. */
35638 $ac_includes_default
35642 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
35649 rm -f conftest.$ac_objext
35650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35651 (eval $ac_compile) 2>conftest.er1
35653 grep -v '^ *+' conftest.er1 >conftest.err
35655 cat conftest.err >&5
35656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35657 (exit $ac_status); } &&
35658 { ac_try='test -z "$ac_c_werror_flag"
35659 || test ! -s conftest.err'
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; } &&
35665 { ac_try='test -s conftest.$ac_objext'
35666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35667 (eval $ac_try) 2>&5
35669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35670 (exit $ac_status); }; }; then
35673 cat >conftest.$ac_ext <<_ACEOF
35676 cat confdefs.h >>conftest.$ac_ext
35677 cat >>conftest.$ac_ext <<_ACEOF
35678 /* end confdefs.h. */
35679 $ac_includes_default
35683 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
35690 rm -f conftest.$ac_objext
35691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35692 (eval $ac_compile) 2>conftest.er1
35694 grep -v '^ *+' conftest.er1 >conftest.err
35696 cat conftest.err >&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); } &&
35699 { ac_try='test -z "$ac_c_werror_flag"
35700 || test ! -s conftest.err'
35701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35702 (eval $ac_try) 2>&5
35704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35705 (exit $ac_status); }; } &&
35706 { ac_try='test -s conftest.$ac_objext'
35707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35708 (eval $ac_try) 2>&5
35710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35711 (exit $ac_status); }; }; then
35712 ac_lo=$ac_mid; break
35714 echo "$as_me: failed program was:" >&5
35715 sed 's/^/| /' conftest.$ac_ext >&5
35717 ac_hi=`expr '(' $ac_mid ')' - 1`
35718 if test $ac_mid -le $ac_hi; then
35722 ac_mid=`expr 2 '*' $ac_mid`
35724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35727 echo "$as_me: failed program was:" >&5
35728 sed 's/^/| /' conftest.$ac_ext >&5
35732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35735 # Binary search between lo and hi bounds.
35736 while test "x$ac_lo" != "x$ac_hi"; do
35737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35738 cat >conftest.$ac_ext <<_ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h. */
35744 $ac_includes_default
35748 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
35755 rm -f conftest.$ac_objext
35756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35757 (eval $ac_compile) 2>conftest.er1
35759 grep -v '^ *+' conftest.er1 >conftest.err
35761 cat conftest.err >&5
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); } &&
35764 { ac_try='test -z "$ac_c_werror_flag"
35765 || test ! -s conftest.err'
35766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35767 (eval $ac_try) 2>&5
35769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770 (exit $ac_status); }; } &&
35771 { ac_try='test -s conftest.$ac_objext'
35772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35773 (eval $ac_try) 2>&5
35775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35776 (exit $ac_status); }; }; then
35779 echo "$as_me: failed program was:" >&5
35780 sed 's/^/| /' conftest.$ac_ext >&5
35782 ac_lo=`expr '(' $ac_mid ')' + 1`
35784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35787 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35788 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35789 See \`config.log' for more details." >&5
35790 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35791 See \`config.log' for more details." >&2;}
35792 { (exit 1); exit 1; }; } ;;
35795 if test "$cross_compiling" = yes; then
35796 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35797 See \`config.log' for more details." >&5
35798 echo "$as_me: error: cannot run test program while cross compiling
35799 See \`config.log' for more details." >&2;}
35800 { (exit 1); exit 1; }; }
35802 cat >conftest.$ac_ext <<_ACEOF
35805 cat confdefs.h >>conftest.$ac_ext
35806 cat >>conftest.$ac_ext <<_ACEOF
35807 /* end confdefs.h. */
35808 $ac_includes_default
35809 long longval () { return (long) (sizeof (wchar_t)); }
35810 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
35812 #include <stdlib.h>
35817 FILE *f = fopen ("conftest.val", "w");
35820 if (((long) (sizeof (wchar_t))) < 0)
35822 long i = longval ();
35823 if (i != ((long) (sizeof (wchar_t))))
35825 fprintf (f, "%ld\n", i);
35829 unsigned long i = ulongval ();
35830 if (i != ((long) (sizeof (wchar_t))))
35832 fprintf (f, "%lu\n", i);
35834 exit (ferror (f) || fclose (f) != 0);
35840 rm -f conftest$ac_exeext
35841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35842 (eval $ac_link) 2>&5
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35847 (eval $ac_try) 2>&5
35849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35850 (exit $ac_status); }; }; then
35851 ac_cv_sizeof_wchar_t=`cat conftest.val`
35853 echo "$as_me: program exited with status $ac_status" >&5
35854 echo "$as_me: failed program was:" >&5
35855 sed 's/^/| /' conftest.$ac_ext >&5
35857 ( exit $ac_status )
35858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
35859 See \`config.log' for more details." >&5
35860 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
35861 See \`config.log' for more details." >&2;}
35862 { (exit 1); exit 1; }; }
35864 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35869 ac_cv_sizeof_wchar_t=0
35872 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35873 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
35874 cat >>confdefs.h <<_ACEOF
35875 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35880 if test "$ac_cv_sizeof_int" -lt 4 ; then
35881 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35882 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35885 cat >>confdefs.h <<\_ACEOF
35886 #define LBER_INT_T long
35891 cat >>confdefs.h <<\_ACEOF
35892 #define LBER_INT_T int
35898 cat >>confdefs.h <<\_ACEOF
35899 #define LBER_LEN_T long
35903 cat >>confdefs.h <<\_ACEOF
35904 #define LBER_SOCKET_T int
35908 cat >>confdefs.h <<\_ACEOF
35909 #define LBER_TAG_T long
35913 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35914 if test $ac_cv_sizeof_long_long -gt 4 ; then
35915 ol_with_mp=longlong
35917 cat >>confdefs.h <<\_ACEOF
35918 #define USE_MP_LONG_LONG 1
35921 elif test $ol_with_mp = longlong ; then
35922 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35923 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35924 { (exit 1); exit 1; }; }
35927 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35928 if test $ac_cv_sizeof_long -gt 4 ; then
35931 cat >>confdefs.h <<\_ACEOF
35932 #define USE_MP_LONG 1
35935 elif test $ol_with_mp = long ; then
35936 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35937 echo "$as_me: error: long unusable for multiple precision" >&2;}
35938 { (exit 1); exit 1; }; }
35941 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35943 for ac_header in openssl/bn.h
35945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35947 echo "$as_me:$LINENO: checking for $ac_header" >&5
35948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35950 echo $ECHO_N "(cached) $ECHO_C" >&6
35952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35953 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35955 # Is the header compilable?
35956 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35958 cat >conftest.$ac_ext <<_ACEOF
35961 cat confdefs.h >>conftest.$ac_ext
35962 cat >>conftest.$ac_ext <<_ACEOF
35963 /* end confdefs.h. */
35964 $ac_includes_default
35965 #include <$ac_header>
35967 rm -f conftest.$ac_objext
35968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35969 (eval $ac_compile) 2>conftest.er1
35971 grep -v '^ *+' conftest.er1 >conftest.err
35973 cat conftest.err >&5
35974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35975 (exit $ac_status); } &&
35976 { ac_try='test -z "$ac_c_werror_flag"
35977 || test ! -s conftest.err'
35978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35979 (eval $ac_try) 2>&5
35981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35982 (exit $ac_status); }; } &&
35983 { ac_try='test -s conftest.$ac_objext'
35984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35985 (eval $ac_try) 2>&5
35987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35988 (exit $ac_status); }; }; then
35989 ac_header_compiler=yes
35991 echo "$as_me: failed program was:" >&5
35992 sed 's/^/| /' conftest.$ac_ext >&5
35994 ac_header_compiler=no
35996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35997 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35998 echo "${ECHO_T}$ac_header_compiler" >&6
36000 # Is the header present?
36001 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36003 cat >conftest.$ac_ext <<_ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h. */
36009 #include <$ac_header>
36011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36014 grep -v '^ *+' conftest.er1 >conftest.err
36016 cat conftest.err >&5
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); } >/dev/null; then
36019 if test -s conftest.err; then
36020 ac_cpp_err=$ac_c_preproc_warn_flag
36021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36028 if test -z "$ac_cpp_err"; then
36029 ac_header_preproc=yes
36031 echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36034 ac_header_preproc=no
36036 rm -f conftest.err conftest.$ac_ext
36037 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36038 echo "${ECHO_T}$ac_header_preproc" >&6
36040 # So? What about this header?
36041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36047 ac_header_preproc=yes
36050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36064 ## --------------------------------------------- ##
36065 ## Report this to <http://www.openldap.org/its/> ##
36066 ## --------------------------------------------- ##
36069 sed "s/^/$as_me: WARNING: /" >&2
36072 echo "$as_me:$LINENO: checking for $ac_header" >&5
36073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36075 echo $ECHO_N "(cached) $ECHO_C" >&6
36077 eval "$as_ac_Header=\$ac_header_preproc"
36079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36084 cat >>confdefs.h <<_ACEOF
36085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36093 for ac_header in openssl/crypto.h
36095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36097 echo "$as_me:$LINENO: checking for $ac_header" >&5
36098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36100 echo $ECHO_N "(cached) $ECHO_C" >&6
36102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36103 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36105 # Is the header compilable?
36106 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36107 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36108 cat >conftest.$ac_ext <<_ACEOF
36111 cat confdefs.h >>conftest.$ac_ext
36112 cat >>conftest.$ac_ext <<_ACEOF
36113 /* end confdefs.h. */
36114 $ac_includes_default
36115 #include <$ac_header>
36117 rm -f conftest.$ac_objext
36118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36119 (eval $ac_compile) 2>conftest.er1
36121 grep -v '^ *+' conftest.er1 >conftest.err
36123 cat conftest.err >&5
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); } &&
36126 { ac_try='test -z "$ac_c_werror_flag"
36127 || test ! -s conftest.err'
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; } &&
36133 { ac_try='test -s conftest.$ac_objext'
36134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135 (eval $ac_try) 2>&5
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); }; }; then
36139 ac_header_compiler=yes
36141 echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36144 ac_header_compiler=no
36146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36147 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36148 echo "${ECHO_T}$ac_header_compiler" >&6
36150 # Is the header present?
36151 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36152 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36153 cat >conftest.$ac_ext <<_ACEOF
36156 cat confdefs.h >>conftest.$ac_ext
36157 cat >>conftest.$ac_ext <<_ACEOF
36158 /* end confdefs.h. */
36159 #include <$ac_header>
36161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36164 grep -v '^ *+' conftest.er1 >conftest.err
36166 cat conftest.err >&5
36167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36168 (exit $ac_status); } >/dev/null; then
36169 if test -s conftest.err; then
36170 ac_cpp_err=$ac_c_preproc_warn_flag
36171 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36178 if test -z "$ac_cpp_err"; then
36179 ac_header_preproc=yes
36181 echo "$as_me: failed program was:" >&5
36182 sed 's/^/| /' conftest.$ac_ext >&5
36184 ac_header_preproc=no
36186 rm -f conftest.err conftest.$ac_ext
36187 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36188 echo "${ECHO_T}$ac_header_preproc" >&6
36190 # So? What about this header?
36191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36193 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36197 ac_header_preproc=yes
36200 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36202 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36203 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36204 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36206 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36207 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36210 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36214 ## --------------------------------------------- ##
36215 ## Report this to <http://www.openldap.org/its/> ##
36216 ## --------------------------------------------- ##
36219 sed "s/^/$as_me: WARNING: /" >&2
36222 echo "$as_me:$LINENO: checking for $ac_header" >&5
36223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36225 echo $ECHO_N "(cached) $ECHO_C" >&6
36227 eval "$as_ac_Header=\$ac_header_preproc"
36229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36230 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36234 cat >>confdefs.h <<_ACEOF
36235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36242 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36243 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36244 test "$ol_with_tls" = "found" ; then
36247 cat >>confdefs.h <<\_ACEOF
36248 #define USE_MP_BIGNUM 1
36251 elif test $ol_with_mp = bignum ; then
36252 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36253 echo "$as_me: error: bignum not available" >&2;}
36254 { (exit 1); exit 1; }; }
36257 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36259 for ac_header in gmp.h
36261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36263 echo "$as_me:$LINENO: checking for $ac_header" >&5
36264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36265 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36266 echo $ECHO_N "(cached) $ECHO_C" >&6
36268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36269 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36271 # Is the header compilable?
36272 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36274 cat >conftest.$ac_ext <<_ACEOF
36277 cat confdefs.h >>conftest.$ac_ext
36278 cat >>conftest.$ac_ext <<_ACEOF
36279 /* end confdefs.h. */
36280 $ac_includes_default
36281 #include <$ac_header>
36283 rm -f conftest.$ac_objext
36284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36285 (eval $ac_compile) 2>conftest.er1
36287 grep -v '^ *+' conftest.er1 >conftest.err
36289 cat conftest.err >&5
36290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36291 (exit $ac_status); } &&
36292 { ac_try='test -z "$ac_c_werror_flag"
36293 || test ! -s conftest.err'
36294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36295 (eval $ac_try) 2>&5
36297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36298 (exit $ac_status); }; } &&
36299 { ac_try='test -s conftest.$ac_objext'
36300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36301 (eval $ac_try) 2>&5
36303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36304 (exit $ac_status); }; }; then
36305 ac_header_compiler=yes
36307 echo "$as_me: failed program was:" >&5
36308 sed 's/^/| /' conftest.$ac_ext >&5
36310 ac_header_compiler=no
36312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36314 echo "${ECHO_T}$ac_header_compiler" >&6
36316 # Is the header present?
36317 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36319 cat >conftest.$ac_ext <<_ACEOF
36322 cat confdefs.h >>conftest.$ac_ext
36323 cat >>conftest.$ac_ext <<_ACEOF
36324 /* end confdefs.h. */
36325 #include <$ac_header>
36327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36330 grep -v '^ *+' conftest.er1 >conftest.err
36332 cat conftest.err >&5
36333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36334 (exit $ac_status); } >/dev/null; then
36335 if test -s conftest.err; then
36336 ac_cpp_err=$ac_c_preproc_warn_flag
36337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36344 if test -z "$ac_cpp_err"; then
36345 ac_header_preproc=yes
36347 echo "$as_me: failed program was:" >&5
36348 sed 's/^/| /' conftest.$ac_ext >&5
36350 ac_header_preproc=no
36352 rm -f conftest.err conftest.$ac_ext
36353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36354 echo "${ECHO_T}$ac_header_preproc" >&6
36356 # So? What about this header?
36357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36363 ac_header_preproc=yes
36366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36369 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36373 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36380 ## --------------------------------------------- ##
36381 ## Report this to <http://www.openldap.org/its/> ##
36382 ## --------------------------------------------- ##
36385 sed "s/^/$as_me: WARNING: /" >&2
36388 echo "$as_me:$LINENO: checking for $ac_header" >&5
36389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36393 eval "$as_ac_Header=\$ac_header_preproc"
36395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36400 cat >>confdefs.h <<_ACEOF
36401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36409 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36410 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
36411 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36412 echo $ECHO_N "(cached) $ECHO_C" >&6
36414 ac_check_lib_save_LIBS=$LIBS
36416 cat >conftest.$ac_ext <<_ACEOF
36419 cat confdefs.h >>conftest.$ac_ext
36420 cat >>conftest.$ac_ext <<_ACEOF
36421 /* end confdefs.h. */
36423 /* Override any gcc2 internal prototype to avoid an error. */
36427 /* We use char because int might match the return type of a gcc2
36428 builtin and then its argument prototype would still apply. */
36429 char __gmpz_add_ui ();
36438 rm -f conftest.$ac_objext conftest$ac_exeext
36439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36440 (eval $ac_link) 2>conftest.er1
36442 grep -v '^ *+' conftest.er1 >conftest.err
36444 cat conftest.err >&5
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); } &&
36447 { ac_try='test -z "$ac_c_werror_flag"
36448 || test ! -s conftest.err'
36449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36450 (eval $ac_try) 2>&5
36452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36453 (exit $ac_status); }; } &&
36454 { ac_try='test -s conftest$ac_exeext'
36455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456 (eval $ac_try) 2>&5
36458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459 (exit $ac_status); }; }; then
36460 ac_cv_lib_gmp___gmpz_add_ui=yes
36462 echo "$as_me: failed program was:" >&5
36463 sed 's/^/| /' conftest.$ac_ext >&5
36465 ac_cv_lib_gmp___gmpz_add_ui=no
36467 rm -f conftest.err conftest.$ac_objext \
36468 conftest$ac_exeext conftest.$ac_ext
36469 LIBS=$ac_check_lib_save_LIBS
36471 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36472 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
36473 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36474 cat >>confdefs.h <<_ACEOF
36475 #define HAVE_LIBGMP 1
36482 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36484 cat >>confdefs.h <<\_ACEOF
36485 #define USE_MP_GMP 1
36489 elif test $ol_with_mp = gmp ; then
36490 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36491 echo "$as_me: error: gmp not available" >&2;}
36492 { (exit 1); exit 1; }; }
36495 if test $ol_with_mp = auto ; then
36499 echo "$as_me:$LINENO: checking for working memcmp" >&5
36500 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
36501 if test "${ac_cv_func_memcmp_working+set}" = set; then
36502 echo $ECHO_N "(cached) $ECHO_C" >&6
36504 if test "$cross_compiling" = yes; then
36505 ac_cv_func_memcmp_working=no
36507 cat >conftest.$ac_ext <<_ACEOF
36510 cat confdefs.h >>conftest.$ac_ext
36511 cat >>conftest.$ac_ext <<_ACEOF
36512 /* end confdefs.h. */
36513 $ac_includes_default
36518 /* Some versions of memcmp are not 8-bit clean. */
36519 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
36520 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36523 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36524 or more and with at least one buffer not starting on a 4-byte boundary.
36525 William Lewis provided this test program. */
36530 for (i = 0; i < 4; i++)
36534 strcpy (a, "--------01111111");
36535 strcpy (b, "--------10000000");
36536 if (memcmp (a, b, 16) >= 0)
36546 rm -f conftest$ac_exeext
36547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36548 (eval $ac_link) 2>&5
36550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36553 (eval $ac_try) 2>&5
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); }; }; then
36557 ac_cv_func_memcmp_working=yes
36559 echo "$as_me: program exited with status $ac_status" >&5
36560 echo "$as_me: failed program was:" >&5
36561 sed 's/^/| /' conftest.$ac_ext >&5
36563 ( exit $ac_status )
36564 ac_cv_func_memcmp_working=no
36566 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36569 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36570 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
36571 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
36572 "memcmp.$ac_objext" | \
36573 *" memcmp.$ac_objext" | \
36574 "memcmp.$ac_objext "* | \
36575 *" memcmp.$ac_objext "* ) ;;
36576 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
36581 if test $ac_cv_func_memcmp_working = no ; then
36583 cat >>confdefs.h <<\_ACEOF
36584 #define NEED_MEMCMP_REPLACEMENT 1
36590 for ac_func in strftime
36592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36593 echo "$as_me:$LINENO: checking for $ac_func" >&5
36594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36595 if eval "test \"\${$as_ac_var+set}\" = set"; then
36596 echo $ECHO_N "(cached) $ECHO_C" >&6
36598 cat >conftest.$ac_ext <<_ACEOF
36601 cat confdefs.h >>conftest.$ac_ext
36602 cat >>conftest.$ac_ext <<_ACEOF
36603 /* end confdefs.h. */
36604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36606 #define $ac_func innocuous_$ac_func
36608 /* System header to define __stub macros and hopefully few prototypes,
36609 which can conflict with char $ac_func (); below.
36610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36611 <limits.h> exists even on freestanding compilers. */
36614 # include <limits.h>
36616 # include <assert.h>
36621 /* Override any gcc2 internal prototype to avoid an error. */
36626 /* We use char because int might match the return type of a gcc2
36627 builtin and then its argument prototype would still apply. */
36629 /* The GNU C library defines this for functions which it implements
36630 to always fail with ENOSYS. Some functions are actually named
36631 something starting with __ and the normal name is an alias. */
36632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36635 char (*f) () = $ac_func;
36644 return f != $ac_func;
36649 rm -f conftest.$ac_objext conftest$ac_exeext
36650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36651 (eval $ac_link) 2>conftest.er1
36653 grep -v '^ *+' conftest.er1 >conftest.err
36655 cat conftest.err >&5
36656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36657 (exit $ac_status); } &&
36658 { ac_try='test -z "$ac_c_werror_flag"
36659 || test ! -s conftest.err'
36660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36661 (eval $ac_try) 2>&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); }; } &&
36665 { ac_try='test -s conftest$ac_exeext'
36666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36667 (eval $ac_try) 2>&5
36669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36670 (exit $ac_status); }; }; then
36671 eval "$as_ac_var=yes"
36673 echo "$as_me: failed program was:" >&5
36674 sed 's/^/| /' conftest.$ac_ext >&5
36676 eval "$as_ac_var=no"
36678 rm -f conftest.err conftest.$ac_objext \
36679 conftest$ac_exeext conftest.$ac_ext
36681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36683 if test `eval echo '${'$as_ac_var'}'` = yes; then
36684 cat >>confdefs.h <<_ACEOF
36685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36689 # strftime is in -lintl on SCO UNIX.
36690 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36691 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
36692 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36695 ac_check_lib_save_LIBS=$LIBS
36696 LIBS="-lintl $LIBS"
36697 cat >conftest.$ac_ext <<_ACEOF
36700 cat confdefs.h >>conftest.$ac_ext
36701 cat >>conftest.$ac_ext <<_ACEOF
36702 /* end confdefs.h. */
36704 /* Override any gcc2 internal prototype to avoid an error. */
36708 /* We use char because int might match the return type of a gcc2
36709 builtin and then its argument prototype would still apply. */
36719 rm -f conftest.$ac_objext conftest$ac_exeext
36720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36721 (eval $ac_link) 2>conftest.er1
36723 grep -v '^ *+' conftest.er1 >conftest.err
36725 cat conftest.err >&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); } &&
36728 { ac_try='test -z "$ac_c_werror_flag"
36729 || test ! -s conftest.err'
36730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36731 (eval $ac_try) 2>&5
36733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734 (exit $ac_status); }; } &&
36735 { ac_try='test -s conftest$ac_exeext'
36736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36737 (eval $ac_try) 2>&5
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); }; }; then
36741 ac_cv_lib_intl_strftime=yes
36743 echo "$as_me: failed program was:" >&5
36744 sed 's/^/| /' conftest.$ac_ext >&5
36746 ac_cv_lib_intl_strftime=no
36748 rm -f conftest.err conftest.$ac_objext \
36749 conftest$ac_exeext conftest.$ac_ext
36750 LIBS=$ac_check_lib_save_LIBS
36752 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36753 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
36754 if test $ac_cv_lib_intl_strftime = yes; then
36755 cat >>confdefs.h <<\_ACEOF
36756 #define HAVE_STRFTIME 1
36759 LIBS="-lintl $LIBS"
36766 echo "$as_me:$LINENO: checking for inet_aton()" >&5
36767 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
36768 if test "${ol_cv_func_inet_aton+set}" = set; then
36769 echo $ECHO_N "(cached) $ECHO_C" >&6
36771 cat >conftest.$ac_ext <<_ACEOF
36774 cat confdefs.h >>conftest.$ac_ext
36775 cat >>conftest.$ac_ext <<_ACEOF
36776 /* end confdefs.h. */
36778 #ifdef HAVE_SYS_TYPES_H
36779 # include <sys/types.h>
36781 #ifdef HAVE_SYS_SOCKET_H
36782 # include <sys/socket.h>
36783 # ifdef HAVE_SYS_SELECT_H
36784 # include <sys/select.h>
36786 # include <netinet/in.h>
36787 # ifdef HAVE_ARPA_INET_H
36788 # include <arpa/inet.h>
36796 int rc = inet_aton( "255.255.255.255", &in );
36801 rm -f conftest.$ac_objext conftest$ac_exeext
36802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36803 (eval $ac_link) 2>conftest.er1
36805 grep -v '^ *+' conftest.er1 >conftest.err
36807 cat conftest.err >&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } &&
36810 { ac_try='test -z "$ac_c_werror_flag"
36811 || test ! -s conftest.err'
36812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36813 (eval $ac_try) 2>&5
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); }; } &&
36817 { ac_try='test -s conftest$ac_exeext'
36818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36819 (eval $ac_try) 2>&5
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); }; }; then
36823 ol_cv_func_inet_aton=yes
36825 echo "$as_me: failed program was:" >&5
36826 sed 's/^/| /' conftest.$ac_ext >&5
36828 ol_cv_func_inet_aton=no
36830 rm -f conftest.err conftest.$ac_objext \
36831 conftest$ac_exeext conftest.$ac_ext
36833 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36834 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
36835 if test $ol_cv_func_inet_aton != no; then
36837 cat >>confdefs.h <<\_ACEOF
36838 #define HAVE_INET_ATON 1
36844 echo "$as_me:$LINENO: checking for _spawnlp" >&5
36845 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
36846 if test "${ac_cv_func__spawnlp+set}" = set; then
36847 echo $ECHO_N "(cached) $ECHO_C" >&6
36849 cat >conftest.$ac_ext <<_ACEOF
36852 cat confdefs.h >>conftest.$ac_ext
36853 cat >>conftest.$ac_ext <<_ACEOF
36854 /* end confdefs.h. */
36855 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36857 #define _spawnlp innocuous__spawnlp
36859 /* System header to define __stub macros and hopefully few prototypes,
36860 which can conflict with char _spawnlp (); below.
36861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36862 <limits.h> exists even on freestanding compilers. */
36865 # include <limits.h>
36867 # include <assert.h>
36872 /* Override any gcc2 internal prototype to avoid an error. */
36877 /* We use char because int might match the return type of a gcc2
36878 builtin and then its argument prototype would still apply. */
36880 /* The GNU C library defines this for functions which it implements
36881 to always fail with ENOSYS. Some functions are actually named
36882 something starting with __ and the normal name is an alias. */
36883 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
36886 char (*f) () = _spawnlp;
36895 return f != _spawnlp;
36900 rm -f conftest.$ac_objext conftest$ac_exeext
36901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36902 (eval $ac_link) 2>conftest.er1
36904 grep -v '^ *+' conftest.er1 >conftest.err
36906 cat conftest.err >&5
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); } &&
36909 { ac_try='test -z "$ac_c_werror_flag"
36910 || test ! -s conftest.err'
36911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36912 (eval $ac_try) 2>&5
36914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36915 (exit $ac_status); }; } &&
36916 { ac_try='test -s conftest$ac_exeext'
36917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36918 (eval $ac_try) 2>&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); }; }; then
36922 ac_cv_func__spawnlp=yes
36924 echo "$as_me: failed program was:" >&5
36925 sed 's/^/| /' conftest.$ac_ext >&5
36927 ac_cv_func__spawnlp=no
36929 rm -f conftest.err conftest.$ac_objext \
36930 conftest$ac_exeext conftest.$ac_ext
36932 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36933 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
36934 if test $ac_cv_func__spawnlp = yes; then
36936 cat >>confdefs.h <<\_ACEOF
36937 #define HAVE_SPAWNLP 1
36943 echo "$as_me:$LINENO: checking for _snprintf" >&5
36944 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
36945 if test "${ac_cv_func__snprintf+set}" = set; then
36946 echo $ECHO_N "(cached) $ECHO_C" >&6
36948 cat >conftest.$ac_ext <<_ACEOF
36951 cat confdefs.h >>conftest.$ac_ext
36952 cat >>conftest.$ac_ext <<_ACEOF
36953 /* end confdefs.h. */
36954 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36956 #define _snprintf innocuous__snprintf
36958 /* System header to define __stub macros and hopefully few prototypes,
36959 which can conflict with char _snprintf (); below.
36960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36961 <limits.h> exists even on freestanding compilers. */
36964 # include <limits.h>
36966 # include <assert.h>
36971 /* Override any gcc2 internal prototype to avoid an error. */
36976 /* We use char because int might match the return type of a gcc2
36977 builtin and then its argument prototype would still apply. */
36979 /* The GNU C library defines this for functions which it implements
36980 to always fail with ENOSYS. Some functions are actually named
36981 something starting with __ and the normal name is an alias. */
36982 #if defined (__stub__snprintf) || defined (__stub____snprintf)
36985 char (*f) () = _snprintf;
36994 return f != _snprintf;
36999 rm -f conftest.$ac_objext conftest$ac_exeext
37000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37001 (eval $ac_link) 2>conftest.er1
37003 grep -v '^ *+' conftest.er1 >conftest.err
37005 cat conftest.err >&5
37006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37007 (exit $ac_status); } &&
37008 { ac_try='test -z "$ac_c_werror_flag"
37009 || test ! -s conftest.err'
37010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37011 (eval $ac_try) 2>&5
37013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37014 (exit $ac_status); }; } &&
37015 { ac_try='test -s conftest$ac_exeext'
37016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37017 (eval $ac_try) 2>&5
37019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); }; }; then
37021 ac_cv_func__snprintf=yes
37023 echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37026 ac_cv_func__snprintf=no
37028 rm -f conftest.err conftest.$ac_objext \
37029 conftest$ac_exeext conftest.$ac_ext
37031 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
37032 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
37033 if test $ac_cv_func__snprintf = yes; then
37034 ac_cv_func_snprintf=yes
37036 cat >>confdefs.h <<\_ACEOF
37037 #define snprintf _snprintf
37046 for ac_func in vsnprintf _vsnprintf
37048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37049 echo "$as_me:$LINENO: checking for $ac_func" >&5
37050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37051 if eval "test \"\${$as_ac_var+set}\" = set"; then
37052 echo $ECHO_N "(cached) $ECHO_C" >&6
37054 cat >conftest.$ac_ext <<_ACEOF
37057 cat confdefs.h >>conftest.$ac_ext
37058 cat >>conftest.$ac_ext <<_ACEOF
37059 /* end confdefs.h. */
37060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37062 #define $ac_func innocuous_$ac_func
37064 /* System header to define __stub macros and hopefully few prototypes,
37065 which can conflict with char $ac_func (); below.
37066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37067 <limits.h> exists even on freestanding compilers. */
37070 # include <limits.h>
37072 # include <assert.h>
37077 /* Override any gcc2 internal prototype to avoid an error. */
37082 /* We use char because int might match the return type of a gcc2
37083 builtin and then its argument prototype would still apply. */
37085 /* The GNU C library defines this for functions which it implements
37086 to always fail with ENOSYS. Some functions are actually named
37087 something starting with __ and the normal name is an alias. */
37088 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37091 char (*f) () = $ac_func;
37100 return f != $ac_func;
37105 rm -f conftest.$ac_objext conftest$ac_exeext
37106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37107 (eval $ac_link) 2>conftest.er1
37109 grep -v '^ *+' conftest.er1 >conftest.err
37111 cat conftest.err >&5
37112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37113 (exit $ac_status); } &&
37114 { ac_try='test -z "$ac_c_werror_flag"
37115 || test ! -s conftest.err'
37116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37117 (eval $ac_try) 2>&5
37119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120 (exit $ac_status); }; } &&
37121 { ac_try='test -s conftest$ac_exeext'
37122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37123 (eval $ac_try) 2>&5
37125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126 (exit $ac_status); }; }; then
37127 eval "$as_ac_var=yes"
37129 echo "$as_me: failed program was:" >&5
37130 sed 's/^/| /' conftest.$ac_ext >&5
37132 eval "$as_ac_var=no"
37134 rm -f conftest.err conftest.$ac_objext \
37135 conftest$ac_exeext conftest.$ac_ext
37137 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37138 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37139 if test `eval echo '${'$as_ac_var'}'` = yes; then
37140 cat >>confdefs.h <<_ACEOF
37141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37148 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37149 ac_cv_func_vsnprintf=yes
37151 cat >>confdefs.h <<\_ACEOF
37152 #define vsnprintf _vsnprintf
37158 for ac_func in vprintf
37160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37161 echo "$as_me:$LINENO: checking for $ac_func" >&5
37162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37163 if eval "test \"\${$as_ac_var+set}\" = set"; then
37164 echo $ECHO_N "(cached) $ECHO_C" >&6
37166 cat >conftest.$ac_ext <<_ACEOF
37169 cat confdefs.h >>conftest.$ac_ext
37170 cat >>conftest.$ac_ext <<_ACEOF
37171 /* end confdefs.h. */
37172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37174 #define $ac_func innocuous_$ac_func
37176 /* System header to define __stub macros and hopefully few prototypes,
37177 which can conflict with char $ac_func (); below.
37178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37179 <limits.h> exists even on freestanding compilers. */
37182 # include <limits.h>
37184 # include <assert.h>
37189 /* Override any gcc2 internal prototype to avoid an error. */
37194 /* We use char because int might match the return type of a gcc2
37195 builtin and then its argument prototype would still apply. */
37197 /* The GNU C library defines this for functions which it implements
37198 to always fail with ENOSYS. Some functions are actually named
37199 something starting with __ and the normal name is an alias. */
37200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37203 char (*f) () = $ac_func;
37212 return f != $ac_func;
37217 rm -f conftest.$ac_objext conftest$ac_exeext
37218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37219 (eval $ac_link) 2>conftest.er1
37221 grep -v '^ *+' conftest.er1 >conftest.err
37223 cat conftest.err >&5
37224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37225 (exit $ac_status); } &&
37226 { ac_try='test -z "$ac_c_werror_flag"
37227 || test ! -s conftest.err'
37228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37229 (eval $ac_try) 2>&5
37231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232 (exit $ac_status); }; } &&
37233 { ac_try='test -s conftest$ac_exeext'
37234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37235 (eval $ac_try) 2>&5
37237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37238 (exit $ac_status); }; }; then
37239 eval "$as_ac_var=yes"
37241 echo "$as_me: failed program was:" >&5
37242 sed 's/^/| /' conftest.$ac_ext >&5
37244 eval "$as_ac_var=no"
37246 rm -f conftest.err conftest.$ac_objext \
37247 conftest$ac_exeext conftest.$ac_ext
37249 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37250 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37251 if test `eval echo '${'$as_ac_var'}'` = yes; then
37252 cat >>confdefs.h <<_ACEOF
37253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37256 echo "$as_me:$LINENO: checking for _doprnt" >&5
37257 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
37258 if test "${ac_cv_func__doprnt+set}" = set; then
37259 echo $ECHO_N "(cached) $ECHO_C" >&6
37261 cat >conftest.$ac_ext <<_ACEOF
37264 cat confdefs.h >>conftest.$ac_ext
37265 cat >>conftest.$ac_ext <<_ACEOF
37266 /* end confdefs.h. */
37267 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37269 #define _doprnt innocuous__doprnt
37271 /* System header to define __stub macros and hopefully few prototypes,
37272 which can conflict with char _doprnt (); below.
37273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37274 <limits.h> exists even on freestanding compilers. */
37277 # include <limits.h>
37279 # include <assert.h>
37284 /* Override any gcc2 internal prototype to avoid an error. */
37289 /* We use char because int might match the return type of a gcc2
37290 builtin and then its argument prototype would still apply. */
37292 /* The GNU C library defines this for functions which it implements
37293 to always fail with ENOSYS. Some functions are actually named
37294 something starting with __ and the normal name is an alias. */
37295 #if defined (__stub__doprnt) || defined (__stub____doprnt)
37298 char (*f) () = _doprnt;
37307 return f != _doprnt;
37312 rm -f conftest.$ac_objext conftest$ac_exeext
37313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37314 (eval $ac_link) 2>conftest.er1
37316 grep -v '^ *+' conftest.er1 >conftest.err
37318 cat conftest.err >&5
37319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37320 (exit $ac_status); } &&
37321 { ac_try='test -z "$ac_c_werror_flag"
37322 || test ! -s conftest.err'
37323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37324 (eval $ac_try) 2>&5
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); }; } &&
37328 { ac_try='test -s conftest$ac_exeext'
37329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330 (eval $ac_try) 2>&5
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); }; }; then
37334 ac_cv_func__doprnt=yes
37336 echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37339 ac_cv_func__doprnt=no
37341 rm -f conftest.err conftest.$ac_objext \
37342 conftest$ac_exeext conftest.$ac_ext
37344 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37345 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
37346 if test $ac_cv_func__doprnt = yes; then
37348 cat >>confdefs.h <<\_ACEOF
37349 #define HAVE_DOPRNT 1
37359 if test $ac_cv_func_vprintf = yes ; then
37362 for ac_func in snprintf vsnprintf
37364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37365 echo "$as_me:$LINENO: checking for $ac_func" >&5
37366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37367 if eval "test \"\${$as_ac_var+set}\" = set"; then
37368 echo $ECHO_N "(cached) $ECHO_C" >&6
37370 cat >conftest.$ac_ext <<_ACEOF
37373 cat confdefs.h >>conftest.$ac_ext
37374 cat >>conftest.$ac_ext <<_ACEOF
37375 /* end confdefs.h. */
37376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37378 #define $ac_func innocuous_$ac_func
37380 /* System header to define __stub macros and hopefully few prototypes,
37381 which can conflict with char $ac_func (); below.
37382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37383 <limits.h> exists even on freestanding compilers. */
37386 # include <limits.h>
37388 # include <assert.h>
37393 /* Override any gcc2 internal prototype to avoid an error. */
37398 /* We use char because int might match the return type of a gcc2
37399 builtin and then its argument prototype would still apply. */
37401 /* The GNU C library defines this for functions which it implements
37402 to always fail with ENOSYS. Some functions are actually named
37403 something starting with __ and the normal name is an alias. */
37404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37407 char (*f) () = $ac_func;
37416 return f != $ac_func;
37421 rm -f conftest.$ac_objext conftest$ac_exeext
37422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37423 (eval $ac_link) 2>conftest.er1
37425 grep -v '^ *+' conftest.er1 >conftest.err
37427 cat conftest.err >&5
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); } &&
37430 { ac_try='test -z "$ac_c_werror_flag"
37431 || test ! -s conftest.err'
37432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37433 (eval $ac_try) 2>&5
37435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436 (exit $ac_status); }; } &&
37437 { ac_try='test -s conftest$ac_exeext'
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; }; then
37443 eval "$as_ac_var=yes"
37445 echo "$as_me: failed program was:" >&5
37446 sed 's/^/| /' conftest.$ac_ext >&5
37448 eval "$as_ac_var=no"
37450 rm -f conftest.err conftest.$ac_objext \
37451 conftest$ac_exeext conftest.$ac_ext
37453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37454 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37455 if test `eval echo '${'$as_ac_var'}'` = yes; then
37456 cat >>confdefs.h <<_ACEOF
37457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37581 echo "$as_me:$LINENO: checking for $ac_func" >&5
37582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37583 if eval "test \"\${$as_ac_var+set}\" = set"; then
37584 echo $ECHO_N "(cached) $ECHO_C" >&6
37586 cat >conftest.$ac_ext <<_ACEOF
37589 cat confdefs.h >>conftest.$ac_ext
37590 cat >>conftest.$ac_ext <<_ACEOF
37591 /* end confdefs.h. */
37592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37594 #define $ac_func innocuous_$ac_func
37596 /* System header to define __stub macros and hopefully few prototypes,
37597 which can conflict with char $ac_func (); below.
37598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37599 <limits.h> exists even on freestanding compilers. */
37602 # include <limits.h>
37604 # include <assert.h>
37609 /* Override any gcc2 internal prototype to avoid an error. */
37614 /* We use char because int might match the return type of a gcc2
37615 builtin and then its argument prototype would still apply. */
37617 /* The GNU C library defines this for functions which it implements
37618 to always fail with ENOSYS. Some functions are actually named
37619 something starting with __ and the normal name is an alias. */
37620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37623 char (*f) () = $ac_func;
37632 return f != $ac_func;
37637 rm -f conftest.$ac_objext conftest$ac_exeext
37638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37639 (eval $ac_link) 2>conftest.er1
37641 grep -v '^ *+' conftest.er1 >conftest.err
37643 cat conftest.err >&5
37644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37645 (exit $ac_status); } &&
37646 { ac_try='test -z "$ac_c_werror_flag"
37647 || test ! -s conftest.err'
37648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37649 (eval $ac_try) 2>&5
37651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37652 (exit $ac_status); }; } &&
37653 { ac_try='test -s conftest$ac_exeext'
37654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37655 (eval $ac_try) 2>&5
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); }; }; then
37659 eval "$as_ac_var=yes"
37661 echo "$as_me: failed program was:" >&5
37662 sed 's/^/| /' conftest.$ac_ext >&5
37664 eval "$as_ac_var=no"
37666 rm -f conftest.err conftest.$ac_objext \
37667 conftest$ac_exeext conftest.$ac_ext
37669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37671 if test `eval echo '${'$as_ac_var'}'` = yes; then
37672 cat >>confdefs.h <<_ACEOF
37673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37682 for ac_func in getopt getpeereid
37684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37685 echo "$as_me:$LINENO: checking for $ac_func" >&5
37686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37687 if eval "test \"\${$as_ac_var+set}\" = set"; then
37688 echo $ECHO_N "(cached) $ECHO_C" >&6
37690 cat >conftest.$ac_ext <<_ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h. */
37696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37698 #define $ac_func innocuous_$ac_func
37700 /* System header to define __stub macros and hopefully few prototypes,
37701 which can conflict with char $ac_func (); below.
37702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37703 <limits.h> exists even on freestanding compilers. */
37706 # include <limits.h>
37708 # include <assert.h>
37713 /* Override any gcc2 internal prototype to avoid an error. */
37718 /* We use char because int might match the return type of a gcc2
37719 builtin and then its argument prototype would still apply. */
37721 /* The GNU C library defines this for functions which it implements
37722 to always fail with ENOSYS. Some functions are actually named
37723 something starting with __ and the normal name is an alias. */
37724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37727 char (*f) () = $ac_func;
37736 return f != $ac_func;
37741 rm -f conftest.$ac_objext conftest$ac_exeext
37742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37743 (eval $ac_link) 2>conftest.er1
37745 grep -v '^ *+' conftest.er1 >conftest.err
37747 cat conftest.err >&5
37748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37749 (exit $ac_status); } &&
37750 { ac_try='test -z "$ac_c_werror_flag"
37751 || test ! -s conftest.err'
37752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37753 (eval $ac_try) 2>&5
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); }; } &&
37757 { ac_try='test -s conftest$ac_exeext'
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; }; then
37763 eval "$as_ac_var=yes"
37765 echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37768 eval "$as_ac_var=no"
37770 rm -f conftest.err conftest.$ac_objext \
37771 conftest$ac_exeext conftest.$ac_ext
37773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37775 if test `eval echo '${'$as_ac_var'}'` = yes; then
37776 cat >>confdefs.h <<_ACEOF
37777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37782 "$ac_func.$ac_objext" | \
37783 *" $ac_func.$ac_objext" | \
37784 "$ac_func.$ac_objext "* | \
37785 *" $ac_func.$ac_objext "* ) ;;
37786 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
37794 if test "$ac_cv_func_getopt" != yes; then
37795 LIBSRCS="$LIBSRCS getopt.c"
37798 if test "$ac_cv_func_getpeereid" != yes; then
37800 for ac_func in getpeerucred
37802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37803 echo "$as_me:$LINENO: checking for $ac_func" >&5
37804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37805 if eval "test \"\${$as_ac_var+set}\" = set"; then
37806 echo $ECHO_N "(cached) $ECHO_C" >&6
37808 cat >conftest.$ac_ext <<_ACEOF
37811 cat confdefs.h >>conftest.$ac_ext
37812 cat >>conftest.$ac_ext <<_ACEOF
37813 /* end confdefs.h. */
37814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37816 #define $ac_func innocuous_$ac_func
37818 /* System header to define __stub macros and hopefully few prototypes,
37819 which can conflict with char $ac_func (); below.
37820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37821 <limits.h> exists even on freestanding compilers. */
37824 # include <limits.h>
37826 # include <assert.h>
37831 /* Override any gcc2 internal prototype to avoid an error. */
37836 /* We use char because int might match the return type of a gcc2
37837 builtin and then its argument prototype would still apply. */
37839 /* The GNU C library defines this for functions which it implements
37840 to always fail with ENOSYS. Some functions are actually named
37841 something starting with __ and the normal name is an alias. */
37842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37845 char (*f) () = $ac_func;
37854 return f != $ac_func;
37859 rm -f conftest.$ac_objext conftest$ac_exeext
37860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37861 (eval $ac_link) 2>conftest.er1
37863 grep -v '^ *+' conftest.er1 >conftest.err
37865 cat conftest.err >&5
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); } &&
37868 { ac_try='test -z "$ac_c_werror_flag"
37869 || test ! -s conftest.err'
37870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37871 (eval $ac_try) 2>&5
37873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37874 (exit $ac_status); }; } &&
37875 { ac_try='test -s conftest$ac_exeext'
37876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37877 (eval $ac_try) 2>&5
37879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37880 (exit $ac_status); }; }; then
37881 eval "$as_ac_var=yes"
37883 echo "$as_me: failed program was:" >&5
37884 sed 's/^/| /' conftest.$ac_ext >&5
37886 eval "$as_ac_var=no"
37888 rm -f conftest.err conftest.$ac_objext \
37889 conftest$ac_exeext conftest.$ac_ext
37891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37893 if test `eval echo '${'$as_ac_var'}'` = yes; then
37894 cat >>confdefs.h <<_ACEOF
37895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37901 if test "$ac_cv_func_getpeerucred" != yes ; then
37902 echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37903 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6
37904 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37905 echo $ECHO_N "(cached) $ECHO_C" >&6
37907 cat >conftest.$ac_ext <<_ACEOF
37910 cat confdefs.h >>conftest.$ac_ext
37911 cat >>conftest.$ac_ext <<_ACEOF
37912 /* end confdefs.h. */
37913 $ac_includes_default
37914 #ifdef HAVE_SYS_SOCKET_H
37915 #include <sys/socket.h>
37921 static struct msghdr ac_aggr;
37922 if (ac_aggr.msg_accrightslen)
37928 rm -f conftest.$ac_objext
37929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37930 (eval $ac_compile) 2>conftest.er1
37932 grep -v '^ *+' conftest.er1 >conftest.err
37934 cat conftest.err >&5
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } &&
37937 { ac_try='test -z "$ac_c_werror_flag"
37938 || test ! -s conftest.err'
37939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37940 (eval $ac_try) 2>&5
37942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37943 (exit $ac_status); }; } &&
37944 { ac_try='test -s conftest.$ac_objext'
37945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37946 (eval $ac_try) 2>&5
37948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37949 (exit $ac_status); }; }; then
37950 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37952 echo "$as_me: failed program was:" >&5
37953 sed 's/^/| /' conftest.$ac_ext >&5
37955 cat >conftest.$ac_ext <<_ACEOF
37958 cat confdefs.h >>conftest.$ac_ext
37959 cat >>conftest.$ac_ext <<_ACEOF
37960 /* end confdefs.h. */
37961 $ac_includes_default
37962 #ifdef HAVE_SYS_SOCKET_H
37963 #include <sys/socket.h>
37969 static struct msghdr ac_aggr;
37970 if (sizeof ac_aggr.msg_accrightslen)
37976 rm -f conftest.$ac_objext
37977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37978 (eval $ac_compile) 2>conftest.er1
37980 grep -v '^ *+' conftest.er1 >conftest.err
37982 cat conftest.err >&5
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); } &&
37985 { ac_try='test -z "$ac_c_werror_flag"
37986 || test ! -s conftest.err'
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; } &&
37992 { ac_try='test -s conftest.$ac_objext'
37993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37994 (eval $ac_try) 2>&5
37996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997 (exit $ac_status); }; }; then
37998 ac_cv_member_struct_msghdr_msg_accrightslen=yes
38000 echo "$as_me: failed program was:" >&5
38001 sed 's/^/| /' conftest.$ac_ext >&5
38003 ac_cv_member_struct_msghdr_msg_accrightslen=no
38005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38009 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
38010 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6
38011 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
38013 cat >>confdefs.h <<_ACEOF
38014 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
38020 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
38021 echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
38022 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
38023 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
38024 echo $ECHO_N "(cached) $ECHO_C" >&6
38026 cat >conftest.$ac_ext <<_ACEOF
38029 cat confdefs.h >>conftest.$ac_ext
38030 cat >>conftest.$ac_ext <<_ACEOF
38031 /* end confdefs.h. */
38032 $ac_includes_default
38033 #ifdef HAVE_SYS_SOCKET_H
38034 #include <sys/socket.h>
38040 static struct msghdr ac_aggr;
38041 if (ac_aggr.msg_control)
38047 rm -f conftest.$ac_objext
38048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38049 (eval $ac_compile) 2>conftest.er1
38051 grep -v '^ *+' conftest.er1 >conftest.err
38053 cat conftest.err >&5
38054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055 (exit $ac_status); } &&
38056 { ac_try='test -z "$ac_c_werror_flag"
38057 || test ! -s conftest.err'
38058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38059 (eval $ac_try) 2>&5
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); }; } &&
38063 { ac_try='test -s conftest.$ac_objext'
38064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38065 (eval $ac_try) 2>&5
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); }; }; then
38069 ac_cv_member_struct_msghdr_msg_control=yes
38071 echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38074 cat >conftest.$ac_ext <<_ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h. */
38080 $ac_includes_default
38081 #ifdef HAVE_SYS_SOCKET_H
38082 #include <sys/socket.h>
38088 static struct msghdr ac_aggr;
38089 if (sizeof ac_aggr.msg_control)
38095 rm -f conftest.$ac_objext
38096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38097 (eval $ac_compile) 2>conftest.er1
38099 grep -v '^ *+' conftest.er1 >conftest.err
38101 cat conftest.err >&5
38102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38103 (exit $ac_status); } &&
38104 { ac_try='test -z "$ac_c_werror_flag"
38105 || test ! -s conftest.err'
38106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107 (eval $ac_try) 2>&5
38109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); }; } &&
38111 { ac_try='test -s conftest.$ac_objext'
38112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113 (eval $ac_try) 2>&5
38115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116 (exit $ac_status); }; }; then
38117 ac_cv_member_struct_msghdr_msg_control=yes
38119 echo "$as_me: failed program was:" >&5
38120 sed 's/^/| /' conftest.$ac_ext >&5
38122 ac_cv_member_struct_msghdr_msg_control=no
38124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38128 echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
38129 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
38130 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
38132 cat >>confdefs.h <<_ACEOF
38133 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
38140 echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
38141 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6
38142 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
38143 echo $ECHO_N "(cached) $ECHO_C" >&6
38145 cat >conftest.$ac_ext <<_ACEOF
38148 cat confdefs.h >>conftest.$ac_ext
38149 cat >>conftest.$ac_ext <<_ACEOF
38150 /* end confdefs.h. */
38151 $ac_includes_default
38155 static struct stat ac_aggr;
38156 if (ac_aggr.st_fstype)
38162 rm -f conftest.$ac_objext
38163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38164 (eval $ac_compile) 2>conftest.er1
38166 grep -v '^ *+' conftest.er1 >conftest.err
38168 cat conftest.err >&5
38169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38170 (exit $ac_status); } &&
38171 { ac_try='test -z "$ac_c_werror_flag"
38172 || test ! -s conftest.err'
38173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38174 (eval $ac_try) 2>&5
38176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38177 (exit $ac_status); }; } &&
38178 { ac_try='test -s conftest.$ac_objext'
38179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38180 (eval $ac_try) 2>&5
38182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38183 (exit $ac_status); }; }; then
38184 ac_cv_member_struct_stat_st_fstype=yes
38186 echo "$as_me: failed program was:" >&5
38187 sed 's/^/| /' conftest.$ac_ext >&5
38189 cat >conftest.$ac_ext <<_ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h. */
38195 $ac_includes_default
38199 static struct stat ac_aggr;
38200 if (sizeof ac_aggr.st_fstype)
38206 rm -f conftest.$ac_objext
38207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38208 (eval $ac_compile) 2>conftest.er1
38210 grep -v '^ *+' conftest.er1 >conftest.err
38212 cat conftest.err >&5
38213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38214 (exit $ac_status); } &&
38215 { ac_try='test -z "$ac_c_werror_flag"
38216 || test ! -s conftest.err'
38217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218 (eval $ac_try) 2>&5
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); }; } &&
38222 { ac_try='test -s conftest.$ac_objext'
38223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224 (eval $ac_try) 2>&5
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); }; }; then
38228 ac_cv_member_struct_stat_st_fstype=yes
38230 echo "$as_me: failed program was:" >&5
38231 sed 's/^/| /' conftest.$ac_ext >&5
38233 ac_cv_member_struct_stat_st_fstype=no
38235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38239 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38240 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6
38241 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38243 cat >>confdefs.h <<_ACEOF
38244 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38249 echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38250 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6
38251 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38252 echo $ECHO_N "(cached) $ECHO_C" >&6
38254 cat >conftest.$ac_ext <<_ACEOF
38257 cat confdefs.h >>conftest.$ac_ext
38258 cat >>conftest.$ac_ext <<_ACEOF
38259 /* end confdefs.h. */
38260 $ac_includes_default
38264 static struct stat ac_aggr;
38265 if (ac_aggr.st_vfstype)
38271 rm -f conftest.$ac_objext
38272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38273 (eval $ac_compile) 2>conftest.er1
38275 grep -v '^ *+' conftest.er1 >conftest.err
38277 cat conftest.err >&5
38278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38279 (exit $ac_status); } &&
38280 { ac_try='test -z "$ac_c_werror_flag"
38281 || test ! -s conftest.err'
38282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38283 (eval $ac_try) 2>&5
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); }; } &&
38287 { ac_try='test -s conftest.$ac_objext'
38288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38289 (eval $ac_try) 2>&5
38291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38292 (exit $ac_status); }; }; then
38293 ac_cv_member_struct_stat_st_vfstype=yes
38295 echo "$as_me: failed program was:" >&5
38296 sed 's/^/| /' conftest.$ac_ext >&5
38298 cat >conftest.$ac_ext <<_ACEOF
38301 cat confdefs.h >>conftest.$ac_ext
38302 cat >>conftest.$ac_ext <<_ACEOF
38303 /* end confdefs.h. */
38304 $ac_includes_default
38308 static struct stat ac_aggr;
38309 if (sizeof ac_aggr.st_vfstype)
38315 rm -f conftest.$ac_objext
38316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38317 (eval $ac_compile) 2>conftest.er1
38319 grep -v '^ *+' conftest.er1 >conftest.err
38321 cat conftest.err >&5
38322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38323 (exit $ac_status); } &&
38324 { ac_try='test -z "$ac_c_werror_flag"
38325 || test ! -s conftest.err'
38326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327 (eval $ac_try) 2>&5
38329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); }; } &&
38331 { ac_try='test -s conftest.$ac_objext'
38332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38333 (eval $ac_try) 2>&5
38335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); }; }; then
38337 ac_cv_member_struct_stat_st_vfstype=yes
38339 echo "$as_me: failed program was:" >&5
38340 sed 's/^/| /' conftest.$ac_ext >&5
38342 ac_cv_member_struct_stat_st_vfstype=no
38344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38348 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38349 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6
38350 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38352 cat >>confdefs.h <<_ACEOF
38353 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38359 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38360 cat >conftest.$ac_ext <<_ACEOF
38361 struct stat st; char *ptr=st.st_fstype;
38363 rm -f conftest.$ac_objext
38364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38365 (eval $ac_compile) 2>conftest.er1
38367 grep -v '^ *+' conftest.er1 >conftest.err
38369 cat conftest.err >&5
38370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38371 (exit $ac_status); } &&
38372 { ac_try='test -z "$ac_c_werror_flag"
38373 || test ! -s conftest.err'
38374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38375 (eval $ac_try) 2>&5
38377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38378 (exit $ac_status); }; } &&
38379 { ac_try='test -s conftest.$ac_objext'
38380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38381 (eval $ac_try) 2>&5
38383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38384 (exit $ac_status); }; }; then
38386 cat >>confdefs.h <<\_ACEOF
38387 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38391 echo "$as_me: failed program was:" >&5
38392 sed 's/^/| /' conftest.$ac_ext >&5
38395 cat >>confdefs.h <<\_ACEOF
38396 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38403 LIBSRCS="$LIBSRCS getpeereid.c"
38406 if test "$ac_cv_func_snprintf" != yes ||
38407 test "$ac_cv_func_vsnprintf" != yes; then
38408 if test "$ac_cv_func_snprintf" != yes; then
38410 cat >>confdefs.h <<\_ACEOF
38411 #define snprintf ber_pvt_snprintf
38415 if test "$ac_cv_func_vsnprintf" != yes; then
38417 cat >>confdefs.h <<\_ACEOF
38418 #define vsnprintf ber_pvt_vsnprintf
38425 if test "$ol_enable_slapi" != no ; then
38427 for ac_header in ltdl.h
38429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38431 echo "$as_me:$LINENO: checking for $ac_header" >&5
38432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38434 echo $ECHO_N "(cached) $ECHO_C" >&6
38436 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38437 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38439 # Is the header compilable?
38440 echo "$as_me:$LINENO: checking $ac_header usability" >&5
38441 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38442 cat >conftest.$ac_ext <<_ACEOF
38445 cat confdefs.h >>conftest.$ac_ext
38446 cat >>conftest.$ac_ext <<_ACEOF
38447 /* end confdefs.h. */
38448 $ac_includes_default
38449 #include <$ac_header>
38451 rm -f conftest.$ac_objext
38452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38453 (eval $ac_compile) 2>conftest.er1
38455 grep -v '^ *+' conftest.er1 >conftest.err
38457 cat conftest.err >&5
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); } &&
38460 { ac_try='test -z "$ac_c_werror_flag"
38461 || test ! -s conftest.err'
38462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463 (eval $ac_try) 2>&5
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; } &&
38467 { ac_try='test -s conftest.$ac_objext'
38468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469 (eval $ac_try) 2>&5
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); }; }; then
38473 ac_header_compiler=yes
38475 echo "$as_me: failed program was:" >&5
38476 sed 's/^/| /' conftest.$ac_ext >&5
38478 ac_header_compiler=no
38480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38482 echo "${ECHO_T}$ac_header_compiler" >&6
38484 # Is the header present?
38485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
38486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38487 cat >conftest.$ac_ext <<_ACEOF
38490 cat confdefs.h >>conftest.$ac_ext
38491 cat >>conftest.$ac_ext <<_ACEOF
38492 /* end confdefs.h. */
38493 #include <$ac_header>
38495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38498 grep -v '^ *+' conftest.er1 >conftest.err
38500 cat conftest.err >&5
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); } >/dev/null; then
38503 if test -s conftest.err; then
38504 ac_cpp_err=$ac_c_preproc_warn_flag
38505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
38512 if test -z "$ac_cpp_err"; then
38513 ac_header_preproc=yes
38515 echo "$as_me: failed program was:" >&5
38516 sed 's/^/| /' conftest.$ac_ext >&5
38518 ac_header_preproc=no
38520 rm -f conftest.err conftest.$ac_ext
38521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38522 echo "${ECHO_T}$ac_header_preproc" >&6
38524 # So? What about this header?
38525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38531 ac_header_preproc=yes
38534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
38542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38548 ## --------------------------------------------- ##
38549 ## Report this to <http://www.openldap.org/its/> ##
38550 ## --------------------------------------------- ##
38553 sed "s/^/$as_me: WARNING: /" >&2
38556 echo "$as_me:$LINENO: checking for $ac_header" >&5
38557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
38559 echo $ECHO_N "(cached) $ECHO_C" >&6
38561 eval "$as_ac_Header=\$ac_header_preproc"
38563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38564 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38568 cat >>confdefs.h <<_ACEOF
38569 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38577 if test $ac_cv_header_ltdl_h != yes ; then
38578 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38579 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38580 { (exit 1); exit 1; }; }
38582 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38583 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
38584 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38585 echo $ECHO_N "(cached) $ECHO_C" >&6
38587 ac_check_lib_save_LIBS=$LIBS
38588 LIBS="-lltdl $LIBS"
38589 cat >conftest.$ac_ext <<_ACEOF
38592 cat confdefs.h >>conftest.$ac_ext
38593 cat >>conftest.$ac_ext <<_ACEOF
38594 /* end confdefs.h. */
38596 /* Override any gcc2 internal prototype to avoid an error. */
38600 /* We use char because int might match the return type of a gcc2
38601 builtin and then its argument prototype would still apply. */
38611 rm -f conftest.$ac_objext conftest$ac_exeext
38612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38613 (eval $ac_link) 2>conftest.er1
38615 grep -v '^ *+' conftest.er1 >conftest.err
38617 cat conftest.err >&5
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); } &&
38620 { ac_try='test -z "$ac_c_werror_flag"
38621 || test ! -s conftest.err'
38622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38623 (eval $ac_try) 2>&5
38625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38626 (exit $ac_status); }; } &&
38627 { ac_try='test -s conftest$ac_exeext'
38628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38629 (eval $ac_try) 2>&5
38631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38632 (exit $ac_status); }; }; then
38633 ac_cv_lib_ltdl_lt_dlinit=yes
38635 echo "$as_me: failed program was:" >&5
38636 sed 's/^/| /' conftest.$ac_ext >&5
38638 ac_cv_lib_ltdl_lt_dlinit=no
38640 rm -f conftest.err conftest.$ac_objext \
38641 conftest$ac_exeext conftest.$ac_ext
38642 LIBS=$ac_check_lib_save_LIBS
38644 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38645 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
38646 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38649 LIBSLAPI=libslapi.a
38650 LIBSLAPITOOLS=../libslapi.a
38652 cat >>confdefs.h <<\_ACEOF
38653 #define HAVE_LIBLTDL 1
38658 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38659 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38660 { (exit 1); exit 1; }; }
38665 cat >>confdefs.h <<\_ACEOF
38666 #define LDAP_SLAPI 1
38671 if test "$ol_enable_debug" != no ; then
38672 if test "$ol_enable_debug" = traditional; then
38674 cat >>confdefs.h <<\_ACEOF
38675 #define OLD_DEBUG 1
38680 cat >>confdefs.h <<\_ACEOF
38681 #define LDAP_DEBUG 1
38685 if test "$ol_enable_syslog" = yes ; then
38687 cat >>confdefs.h <<\_ACEOF
38688 #define LDAP_SYSLOG 1
38692 if test "$ol_enable_proctitle" != no ; then
38694 cat >>confdefs.h <<\_ACEOF
38695 #define LDAP_PROCTITLE 1
38699 if test "$ol_enable_referrals" != no ; then
38701 cat >>confdefs.h <<\_ACEOF
38702 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38706 if test "$ol_enable_local" != no; then
38708 cat >>confdefs.h <<\_ACEOF
38709 #define LDAP_PF_LOCAL 1
38713 if test "$ol_link_ipv6" != no; then
38715 cat >>confdefs.h <<\_ACEOF
38716 #define LDAP_PF_INET6 1
38720 if test "$ol_enable_cleartext" != no ; then
38722 cat >>confdefs.h <<\_ACEOF
38723 #define SLAPD_CLEARTEXT 1
38727 if test "$ol_enable_crypt" != no ; then
38729 cat >>confdefs.h <<\_ACEOF
38730 #define SLAPD_CRYPT 1
38734 if test "$ol_link_spasswd" != no ; then
38736 cat >>confdefs.h <<\_ACEOF
38737 #define SLAPD_SPASSWD 1
38741 if test "$ol_enable_rlookups" != no ; then
38743 cat >>confdefs.h <<\_ACEOF
38744 #define SLAPD_RLOOKUPS 1
38748 if test "$ol_enable_aci" != no ; then
38749 if test $ol_enable_dynacl = no ; then
38750 ol_enable_dynacl=yes
38751 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38752 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38754 if test "$ol_enable_aci" = mod ; then
38755 MFLAG=SLAPD_MOD_DYNAMIC
38756 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38757 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38758 { (exit 1); exit 1; }; }
38760 MFLAG=SLAPD_MOD_STATIC
38762 WITH_ACI_ENABLED=$ol_enable_aci
38764 cat >>confdefs.h <<_ACEOF
38765 #define SLAPD_ACI_ENABLED $MFLAG
38769 WITH_ACI_ENABLED=no
38771 if test "$ol_enable_dynacl" != no ; then
38773 cat >>confdefs.h <<\_ACEOF
38774 #define SLAP_DYNACL 1
38779 if test "$ol_link_modules" != no ; then
38781 cat >>confdefs.h <<\_ACEOF
38782 #define SLAPD_MODULES 1
38786 SLAPD_MODULES_LDFLAGS="-dlopen self"
38790 cat >>confdefs.h <<\_ACEOF
38791 #define SLAPD_MOD_STATIC 1
38795 cat >>confdefs.h <<\_ACEOF
38796 #define SLAPD_MOD_DYNAMIC 2
38800 if test "$ol_enable_monitor" != no ; then
38802 BUILD_MONITOR=$ol_enable_monitor
38803 if test "$ol_enable_monitor" = mod ; then
38804 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38805 MFLAG=SLAPD_MOD_DYNAMIC
38807 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38808 MFLAG=SLAPD_MOD_STATIC
38811 cat >>confdefs.h <<_ACEOF
38812 #define SLAPD_MONITOR $MFLAG
38817 if test "$ol_enable_bdb" != no ; then
38819 BUILD_BDB=$ol_enable_bdb
38820 if test "$ol_enable_bdb" = mod ; then
38821 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38822 MFLAG=SLAPD_MOD_DYNAMIC
38824 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38825 MFLAG=SLAPD_MOD_STATIC
38828 cat >>confdefs.h <<_ACEOF
38829 #define SLAPD_BDB $MFLAG
38834 if test "$ol_enable_dnssrv" != no ; then
38836 BUILD_DNSSRV=$ol_enable_dnssrv
38837 if test "$ol_enable_dnssrv" = mod ; then
38838 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38839 MFLAG=SLAPD_MOD_DYNAMIC
38841 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38842 MFLAG=SLAPD_MOD_STATIC
38845 cat >>confdefs.h <<_ACEOF
38846 #define SLAPD_DNSSRV $MFLAG
38851 if test "$ol_enable_hdb" != no ; then
38853 BUILD_HDB=$ol_enable_hdb
38854 if test "$ol_enable_hdb" = mod ; then
38855 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38856 MFLAG=SLAPD_MOD_DYNAMIC
38858 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38859 MFLAG=SLAPD_MOD_STATIC
38862 cat >>confdefs.h <<_ACEOF
38863 #define SLAPD_HDB $MFLAG
38868 if test "$ol_enable_ldap" != no ; then
38870 BUILD_LDAP=$ol_enable_ldap
38871 if test "$ol_enable_ldap" = mod ; then
38872 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38873 MFLAG=SLAPD_MOD_DYNAMIC
38875 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38876 MFLAG=SLAPD_MOD_STATIC
38879 cat >>confdefs.h <<_ACEOF
38880 #define SLAPD_LDAP $MFLAG
38885 if test "$ol_enable_meta" != no ; then
38887 BUILD_META=$ol_enable_meta
38889 if test "$ol_enable_meta" = mod ; then
38890 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38891 MFLAG=SLAPD_MOD_DYNAMIC
38893 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38894 MFLAG=SLAPD_MOD_STATIC
38897 cat >>confdefs.h <<_ACEOF
38898 #define SLAPD_META $MFLAG
38903 if test "$ol_enable_ndb" != no ; then
38905 BUILD_NDB=$ol_enable_ndb
38906 if test "$ol_enable_ndb" = mod ; then
38907 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38908 MFLAG=SLAPD_MOD_DYNAMIC
38910 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38911 MFLAG=SLAPD_MOD_STATIC
38914 cat >>confdefs.h <<_ACEOF
38915 #define SLAPD_NDB $MFLAG
38920 if test "$ol_enable_null" != no ; then
38922 BUILD_NULL=$ol_enable_null
38923 if test "$ol_enable_null" = mod ; then
38924 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38925 MFLAG=SLAPD_MOD_DYNAMIC
38927 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38928 MFLAG=SLAPD_MOD_STATIC
38931 cat >>confdefs.h <<_ACEOF
38932 #define SLAPD_NULL $MFLAG
38937 if test "$ol_enable_passwd" != no ; then
38939 BUILD_PASSWD=$ol_enable_passwd
38940 if test "$ol_enable_passwd" = mod ; then
38941 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38942 MFLAG=SLAPD_MOD_DYNAMIC
38944 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38945 MFLAG=SLAPD_MOD_STATIC
38948 cat >>confdefs.h <<_ACEOF
38949 #define SLAPD_PASSWD $MFLAG
38954 if test "$ol_link_perl" != no ; then
38956 BUILD_PERL=$ol_enable_perl
38957 if test "$ol_enable_perl" = mod ; then
38958 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38959 MFLAG=SLAPD_MOD_DYNAMIC
38961 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38962 MFLAG=SLAPD_MOD_STATIC
38965 cat >>confdefs.h <<_ACEOF
38966 #define SLAPD_PERL $MFLAG
38971 if test "$ol_enable_relay" != no ; then
38973 BUILD_RELAY=$ol_enable_relay
38974 if test "$ol_enable_relay" = mod ; then
38975 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38976 MFLAG=SLAPD_MOD_DYNAMIC
38978 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38979 MFLAG=SLAPD_MOD_STATIC
38982 cat >>confdefs.h <<_ACEOF
38983 #define SLAPD_RELAY $MFLAG
38988 if test "$ol_enable_shell" != no ; then
38989 if test "$ol_link_threads" != no ; then
38990 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38991 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38994 BUILD_SHELL=$ol_enable_shell
38995 if test "$ol_enable_shell" = mod ; then
38996 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38997 MFLAG=SLAPD_MOD_DYNAMIC
38999 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
39000 MFLAG=SLAPD_MOD_STATIC
39003 cat >>confdefs.h <<_ACEOF
39004 #define SLAPD_SHELL $MFLAG
39009 if test "$ol_enable_sock" != no ; then
39011 BUILD_SOCK=$ol_enable_sock
39012 if test "$ol_enable_sock" = mod ; then
39013 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
39014 MFLAG=SLAPD_MOD_DYNAMIC
39016 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
39017 MFLAG=SLAPD_MOD_STATIC
39020 cat >>confdefs.h <<_ACEOF
39021 #define SLAPD_SOCK $MFLAG
39026 if test "$ol_link_sql" != no ; then
39028 BUILD_SQL=$ol_enable_sql
39029 if test "$ol_enable_sql" = mod; then
39030 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
39031 MFLAG=SLAPD_MOD_DYNAMIC
39033 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
39034 MFLAG=SLAPD_MOD_STATIC
39037 cat >>confdefs.h <<_ACEOF
39038 #define SLAPD_SQL $MFLAG
39043 if test "$ol_enable_accesslog" != no ; then
39044 BUILD_ACCESSLOG=$ol_enable_accesslog
39045 if test "$ol_enable_accesslog" = mod ; then
39046 MFLAG=SLAPD_MOD_DYNAMIC
39047 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
39049 MFLAG=SLAPD_MOD_STATIC
39050 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
39053 cat >>confdefs.h <<_ACEOF
39054 #define SLAPD_OVER_ACCESSLOG $MFLAG
39059 if test "$ol_enable_auditlog" != no ; then
39060 BUILD_AUDITLOG=$ol_enable_auditlog
39061 if test "$ol_enable_auditlog" = mod ; then
39062 MFLAG=SLAPD_MOD_DYNAMIC
39063 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
39065 MFLAG=SLAPD_MOD_STATIC
39066 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
39069 cat >>confdefs.h <<_ACEOF
39070 #define SLAPD_OVER_AUDITLOG $MFLAG
39075 if test "$ol_enable_collect" != no ; then
39076 BUILD_COLLECT=$ol_enable_collect
39077 if test "$ol_enable_collect" = mod ; then
39078 MFLAG=SLAPD_MOD_DYNAMIC
39079 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
39081 MFLAG=SLAPD_MOD_STATIC
39082 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
39085 cat >>confdefs.h <<_ACEOF
39086 #define SLAPD_OVER_COLLECT $MFLAG
39091 if test "$ol_enable_constraint" != no ; then
39092 BUILD_CONSTRAINT=$ol_enable_constraint
39093 if test "$ol_enable_constraint" = mod ; then
39094 MFLAG=SLAPD_MOD_DYNAMIC
39095 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
39097 MFLAG=SLAPD_MOD_STATIC
39098 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
39101 cat >>confdefs.h <<_ACEOF
39102 #define SLAPD_OVER_CONSTRAINT $MFLAG
39107 if test "$ol_enable_dds" != no ; then
39108 BUILD_DDS=$ol_enable_dds
39109 if test "$ol_enable_dds" = mod ; then
39110 MFLAG=SLAPD_MOD_DYNAMIC
39111 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
39113 MFLAG=SLAPD_MOD_STATIC
39114 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
39117 cat >>confdefs.h <<_ACEOF
39118 #define SLAPD_OVER_DDS $MFLAG
39123 if test "$ol_enable_deref" != no ; then
39124 BUILD_DDS=$ol_enable_deref
39125 if test "$ol_enable_deref" = mod ; then
39126 MFLAG=SLAPD_MOD_DYNAMIC
39127 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
39129 MFLAG=SLAPD_MOD_STATIC
39130 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
39133 cat >>confdefs.h <<_ACEOF
39134 #define SLAPD_OVER_DEREF $MFLAG
39139 if test "$ol_enable_dyngroup" != no ; then
39140 BUILD_DYNGROUP=$ol_enable_dyngroup
39141 if test "$ol_enable_dyngroup" = mod ; then
39142 MFLAG=SLAPD_MOD_DYNAMIC
39143 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
39145 MFLAG=SLAPD_MOD_STATIC
39146 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
39149 cat >>confdefs.h <<_ACEOF
39150 #define SLAPD_OVER_DYNGROUP $MFLAG
39155 if test "$ol_enable_dynlist" != no ; then
39156 BUILD_DYNLIST=$ol_enable_dynlist
39157 if test "$ol_enable_dynlist" = mod ; then
39158 MFLAG=SLAPD_MOD_DYNAMIC
39159 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
39161 MFLAG=SLAPD_MOD_STATIC
39162 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39165 cat >>confdefs.h <<_ACEOF
39166 #define SLAPD_OVER_DYNLIST $MFLAG
39171 if test "$ol_enable_memberof" != no ; then
39172 BUILD_MEMBEROF=$ol_enable_memberof
39173 if test "$ol_enable_memberof" = mod ; then
39174 MFLAG=SLAPD_MOD_DYNAMIC
39175 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39177 MFLAG=SLAPD_MOD_STATIC
39178 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39181 cat >>confdefs.h <<_ACEOF
39182 #define SLAPD_OVER_MEMBEROF $MFLAG
39187 if test "$ol_enable_ppolicy" != no ; then
39188 BUILD_PPOLICY=$ol_enable_ppolicy
39189 if test "$ol_enable_ppolicy" = mod ; then
39190 MFLAG=SLAPD_MOD_DYNAMIC
39191 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39193 MFLAG=SLAPD_MOD_STATIC
39194 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39197 cat >>confdefs.h <<_ACEOF
39198 #define SLAPD_OVER_PPOLICY $MFLAG
39203 if test "$ol_enable_proxycache" != no ; then
39204 BUILD_PROXYCACHE=$ol_enable_proxycache
39205 if test "$ol_enable_proxycache" = mod ; then
39206 MFLAG=SLAPD_MOD_DYNAMIC
39207 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39209 MFLAG=SLAPD_MOD_STATIC
39210 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39213 cat >>confdefs.h <<_ACEOF
39214 #define SLAPD_OVER_PROXYCACHE $MFLAG
39219 if test "$ol_enable_refint" != no ; then
39220 BUILD_REFINT=$ol_enable_refint
39221 if test "$ol_enable_refint" = mod ; then
39222 MFLAG=SLAPD_MOD_DYNAMIC
39223 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39225 MFLAG=SLAPD_MOD_STATIC
39226 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39229 cat >>confdefs.h <<_ACEOF
39230 #define SLAPD_OVER_REFINT $MFLAG
39235 if test "$ol_enable_retcode" != no ; then
39236 BUILD_RETCODE=$ol_enable_retcode
39237 if test "$ol_enable_retcode" = mod ; then
39238 MFLAG=SLAPD_MOD_DYNAMIC
39239 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39241 MFLAG=SLAPD_MOD_STATIC
39242 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39245 cat >>confdefs.h <<_ACEOF
39246 #define SLAPD_OVER_RETCODE $MFLAG
39251 if test "$ol_enable_rwm" != no ; then
39253 BUILD_RWM=$ol_enable_rwm
39254 if test "$ol_enable_rwm" = mod ; then
39255 MFLAG=SLAPD_MOD_DYNAMIC
39256 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39258 MFLAG=SLAPD_MOD_STATIC
39259 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39262 cat >>confdefs.h <<_ACEOF
39263 #define SLAPD_OVER_RWM $MFLAG
39268 if test "$ol_enable_seqmod" != no ; then
39269 BUILD_SEQMOD=$ol_enable_seqmod
39270 if test "$ol_enable_seqmod" = mod ; then
39271 MFLAG=SLAPD_MOD_DYNAMIC
39272 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39274 MFLAG=SLAPD_MOD_STATIC
39275 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39278 cat >>confdefs.h <<_ACEOF
39279 #define SLAPD_OVER_SEQMOD $MFLAG
39284 if test "$ol_enable_syncprov" != no ; then
39285 BUILD_SYNCPROV=$ol_enable_syncprov
39286 if test "$ol_enable_syncprov" = mod ; then
39287 MFLAG=SLAPD_MOD_DYNAMIC
39288 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39290 MFLAG=SLAPD_MOD_STATIC
39291 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39294 cat >>confdefs.h <<_ACEOF
39295 #define SLAPD_OVER_SYNCPROV $MFLAG
39300 if test "$ol_enable_translucent" != no ; then
39301 BUILD_TRANSLUCENT=$ol_enable_translucent
39302 if test "$ol_enable_translucent" = mod ; then
39303 MFLAG=SLAPD_MOD_DYNAMIC
39304 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39306 MFLAG=SLAPD_MOD_STATIC
39307 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39310 cat >>confdefs.h <<_ACEOF
39311 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39316 if test "$ol_enable_unique" != no ; then
39317 BUILD_UNIQUE=$ol_enable_unique
39318 if test "$ol_enable_unique" = mod ; then
39319 MFLAG=SLAPD_MOD_DYNAMIC
39320 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39322 MFLAG=SLAPD_MOD_STATIC
39323 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39326 cat >>confdefs.h <<_ACEOF
39327 #define SLAPD_OVER_UNIQUE $MFLAG
39332 if test "$ol_enable_valsort" != no ; then
39333 BUILD_VALSORT=$ol_enable_valsort
39334 if test "$ol_enable_valsort" = mod ; then
39335 MFLAG=SLAPD_MOD_DYNAMIC
39336 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39338 MFLAG=SLAPD_MOD_STATIC
39339 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39342 cat >>confdefs.h <<_ACEOF
39343 #define SLAPD_OVER_VALSORT $MFLAG
39348 if test "$ol_enable_rewrite" != no ; then
39350 cat >>confdefs.h <<\_ACEOF
39351 #define ENABLE_REWRITE 1
39357 if test "$ol_enable_slapi" != no ; then
39359 cat >>confdefs.h <<\_ACEOF
39360 #define ENABLE_SLAPI 1
39364 SLAPD_SLAPI_DEPEND=libslapi.a
39369 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39371 SLAPD_MODULES_LDFLAGS=
39465 # Check whether --with-xxinstall or --without-xxinstall was given.
39466 if test "${with_xxinstall+set}" = set; then
39467 withval="$with_xxinstall"
39472 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"
39475 ac_config_commands="$ac_config_commands default"
39479 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39480 # Let make expand exec_prefix.
39481 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39485 # trailing colons and then remove the whole line if VPATH becomes empty
39486 # (actually we leave an empty line to preserve line numbers).
39487 if test "x$srcdir" = x.; then
39488 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39489 s/:*\$(srcdir):*/:/;
39490 s/:*\${srcdir}:*/:/;
39492 s/^\([^=]*=[ ]*\):*/\1/;
39498 DEFS=-DHAVE_CONFIG_H
39502 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39503 # 1. Remove the extension, and $U if already installed.
39504 ac_i=`echo "$ac_i" |
39505 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39507 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39508 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39510 LIBOBJS=$ac_libobjs
39512 LTLIBOBJS=$ac_ltlibobjs
39515 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39516 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39517 Usually this means the macro was only invoked conditionally." >&5
39518 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39519 Usually this means the macro was only invoked conditionally." >&2;}
39520 { (exit 1); exit 1; }; }
39522 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39523 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39524 Usually this means the macro was only invoked conditionally." >&5
39525 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39526 Usually this means the macro was only invoked conditionally." >&2;}
39527 { (exit 1); exit 1; }; }
39529 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39530 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39531 Usually this means the macro was only invoked conditionally." >&5
39532 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39533 Usually this means the macro was only invoked conditionally." >&2;}
39534 { (exit 1); exit 1; }; }
39537 : ${CONFIG_STATUS=./config.status}
39538 ac_clean_files_save=$ac_clean_files
39539 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39540 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39541 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39542 cat >$CONFIG_STATUS <<_ACEOF
39544 # Generated by $as_me.
39545 # Run this file to recreate the current configuration.
39546 # Compiler output produced by configure, useful for debugging
39547 # configure, is in config.log if it exists.
39550 ac_cs_recheck=false
39552 SHELL=\${CONFIG_SHELL-$SHELL}
39555 cat >>$CONFIG_STATUS <<\_ACEOF
39556 ## --------------------- ##
39557 ## M4sh Initialization. ##
39558 ## --------------------- ##
39560 # Be Bourne compatible
39561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39564 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39565 # is contrary to our usage. Disable this feature.
39566 alias -g '${1+"$@"}'='"$@"'
39567 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39570 DUALCASE=1; export DUALCASE # for MKS sh
39572 # Support unset when possible.
39573 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39580 # Work around bugs in pre-3.0 UWIN ksh.
39581 $as_unset ENV MAIL MAILPATH
39588 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39589 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39590 LC_TELEPHONE LC_TIME
39592 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39593 eval $as_var=C; export $as_var
39599 # Required to use basename.
39600 if expr a : '\(a\)' >/dev/null 2>&1; then
39606 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39607 as_basename=basename
39613 # Name of the executable.
39614 as_me=`$as_basename "$0" ||
39615 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39616 X"$0" : 'X\(//\)$' \| \
39617 X"$0" : 'X\(/\)$' \| \
39618 . : '\(.\)' 2>/dev/null ||
39620 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39621 /^X\/\(\/\/\)$/{ s//\1/; q; }
39622 /^X\/\(\/\).*/{ s//\1/; q; }
39626 # PATH needs CR, and LINENO needs CR and PATH.
39627 # Avoid depending upon Character Ranges.
39628 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39629 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39630 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39631 as_cr_digits='0123456789'
39632 as_cr_alnum=$as_cr_Letters$as_cr_digits
39634 # The user is always right.
39635 if test "${PATH_SEPARATOR+set}" != set; then
39636 echo "#! /bin/sh" >conf$$.sh
39637 echo "exit 0" >>conf$$.sh
39639 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39648 as_lineno_1=$LINENO
39649 as_lineno_2=$LINENO
39650 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39651 test "x$as_lineno_1" != "x$as_lineno_2" &&
39652 test "x$as_lineno_3" = "x$as_lineno_2" || {
39653 # Find who we are. Look in the path if we contain no path at all
39656 *[\\/]* ) as_myself=$0 ;;
39657 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39658 for as_dir in $PATH
39661 test -z "$as_dir" && as_dir=.
39662 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39667 # We did not find ourselves, most probably we were run as `sh COMMAND'
39668 # in which case we are not to be found in the path.
39669 if test "x$as_myself" = x; then
39672 if test ! -f "$as_myself"; then
39673 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39674 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39675 { (exit 1); exit 1; }; }
39677 case $CONFIG_SHELL in
39679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39680 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39683 test -z "$as_dir" && as_dir=.
39684 for as_base in sh bash ksh sh5; do
39687 if ("$as_dir/$as_base" -c '
39688 as_lineno_1=$LINENO
39689 as_lineno_2=$LINENO
39690 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39691 test "x$as_lineno_1" != "x$as_lineno_2" &&
39692 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39693 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39694 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39695 CONFIG_SHELL=$as_dir/$as_base
39696 export CONFIG_SHELL
39697 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39705 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39706 # uniformly replaced by the line number. The first 'sed' inserts a
39707 # line-number line before each line; the second 'sed' does the real
39708 # work. The second script uses 'N' to pair each line-number line
39709 # with the numbered line, and appends trailing '-' during
39710 # substitution so that $LINENO is not a special case at line end.
39711 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39712 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39713 sed '=' <$as_myself |
39718 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39721 s,^['$as_cr_digits']*\n,,
39722 ' >$as_me.lineno &&
39723 chmod +x $as_me.lineno ||
39724 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39725 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39726 { (exit 1); exit 1; }; }
39728 # Don't try to exec as it changes $[0], causing all sort of problems
39729 # (the dirname of $[0] is not the place where we might find the
39730 # original and so on. Autoconf is especially sensible to this).
39732 # Exit status is that of the last command.
39737 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39738 *c*,-n*) ECHO_N= ECHO_C='
39740 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39741 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39744 if expr a : '\(a\)' >/dev/null 2>&1; then
39750 rm -f conf$$ conf$$.exe conf$$.file
39752 if ln -s conf$$.file conf$$ 2>/dev/null; then
39753 # We could just check for DJGPP; but this test a) works b) is more generic
39754 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39755 if test -f conf$$.exe; then
39756 # Don't use ln at all; we don't have any links
39761 elif ln conf$$.file conf$$ 2>/dev/null; then
39766 rm -f conf$$ conf$$.exe conf$$.file
39768 if mkdir -p . 2>/dev/null; then
39771 test -d ./-p && rmdir ./-p
39775 as_executable_p="test -f"
39777 # Sed expression to map a string onto a valid CPP name.
39778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39780 # Sed expression to map a string onto a valid variable name.
39781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39785 # We need space, tab and new line, in precisely that order.
39795 # Open the log real soon, to keep \$[0] and so on meaningful, and to
39796 # report actual input values of CONFIG_FILES etc. instead of their
39797 # values after options handling. Logging --version etc. is OK.
39801 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39802 ## Running $as_me. ##
39807 This file was extended by $as_me, which was
39808 generated by GNU Autoconf 2.59. Invocation command line was
39810 CONFIG_FILES = $CONFIG_FILES
39811 CONFIG_HEADERS = $CONFIG_HEADERS
39812 CONFIG_LINKS = $CONFIG_LINKS
39813 CONFIG_COMMANDS = $CONFIG_COMMANDS
39817 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39821 # Files that config.status was made for.
39822 if test -n "$ac_config_files"; then
39823 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39826 if test -n "$ac_config_headers"; then
39827 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39830 if test -n "$ac_config_links"; then
39831 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39834 if test -n "$ac_config_commands"; then
39835 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39838 cat >>$CONFIG_STATUS <<\_ACEOF
39841 \`$as_me' instantiates files from templates according to the
39842 current configuration.
39844 Usage: $0 [OPTIONS] [FILE]...
39846 -h, --help print this help, then exit
39847 -V, --version print version number, then exit
39848 -q, --quiet do not print progress messages
39849 -d, --debug don't remove temporary files
39850 --recheck update $as_me by reconfiguring in the same conditions
39851 --file=FILE[:TEMPLATE]
39852 instantiate the configuration file FILE
39853 --header=FILE[:TEMPLATE]
39854 instantiate the configuration header FILE
39856 Configuration files:
39859 Configuration headers:
39862 Configuration commands:
39865 Report bugs to <bug-autoconf@gnu.org>."
39868 cat >>$CONFIG_STATUS <<_ACEOF
39871 configured by $0, generated by GNU Autoconf 2.59,
39872 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39874 Copyright (C) 2003 Free Software Foundation, Inc.
39875 This config.status script is free software; the Free Software Foundation
39876 gives unlimited permission to copy, distribute and modify it."
39881 cat >>$CONFIG_STATUS <<\_ACEOF
39882 # If no file are specified by the user, then we need to provide default
39883 # value. By we need to know if files were specified by the user.
39889 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39890 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39898 *) # This is not an option, so the user has probably given explicit
39901 ac_need_defaults=false;;
39905 # Handling of the options.
39907 cat >>$CONFIG_STATUS <<\_ACEOF
39908 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39910 --version | --vers* | -V )
39911 echo "$ac_cs_version"; exit 0 ;;
39913 # Conflict between --help and --header
39914 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39915 Try \`$0 --help' for more information." >&5
39916 echo "$as_me: error: ambiguous option: $1
39917 Try \`$0 --help' for more information." >&2;}
39918 { (exit 1); exit 1; }; };;
39919 --help | --hel | -h )
39920 echo "$ac_cs_usage"; exit 0 ;;
39921 --debug | --d* | -d )
39923 --file | --fil | --fi | --f )
39925 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39926 ac_need_defaults=false;;
39927 --header | --heade | --head | --hea )
39929 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39930 ac_need_defaults=false;;
39931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39932 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39935 # This is an error.
39936 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39937 Try \`$0 --help' for more information." >&5
39938 echo "$as_me: error: unrecognized option: $1
39939 Try \`$0 --help' for more information." >&2;}
39940 { (exit 1); exit 1; }; } ;;
39942 *) ac_config_targets="$ac_config_targets $1" ;;
39948 ac_configure_extra_args=
39950 if $ac_cs_silent; then
39952 ac_configure_extra_args="$ac_configure_extra_args --silent"
39956 cat >>$CONFIG_STATUS <<_ACEOF
39957 if \$ac_cs_recheck; then
39958 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39959 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39964 cat >>$CONFIG_STATUS <<_ACEOF
39966 # INIT-COMMANDS section.
39969 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39971 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39972 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39979 cat >>$CONFIG_STATUS <<\_ACEOF
39980 for ac_config_target in $ac_config_targets
39982 case "$ac_config_target" in
39983 # Handling of arguments.
39984 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39985 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39986 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39987 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39988 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39989 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39990 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39991 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39992 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39993 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39994 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39995 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39996 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39997 "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" ;;
39998 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39999 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40000 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
40001 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
40002 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
40003 "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" ;;
40004 "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" ;;
40005 "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" ;;
40006 "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" ;;
40007 "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" ;;
40008 "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" ;;
40009 "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" ;;
40010 "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" ;;
40011 "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" ;;
40012 "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" ;;
40013 "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" ;;
40014 "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" ;;
40015 "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" ;;
40016 "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" ;;
40017 "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" ;;
40018 "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" ;;
40019 "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" ;;
40020 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
40021 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
40022 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
40023 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
40024 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40025 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40026 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
40027 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
40028 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
40029 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40030 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40031 { (exit 1); exit 1; }; };;
40035 # If the user did not use the arguments to specify the items to instantiate,
40036 # then the envvar interface is used. Set only those that are not.
40037 # We use the long form for the default assignment because of an extremely
40038 # bizarre bug on SunOS 4.1.3.
40039 if $ac_need_defaults; then
40040 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40041 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40042 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40045 # Have a temporary directory for convenience. Make it in the build tree
40046 # simply because there is no reason to put it here, and in addition,
40047 # creating and moving files from /tmp can sometimes cause problems.
40048 # Create a temporary directory, and hook for its removal unless debugging.
40051 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40052 trap '{ (exit 1); exit 1; }' 1 2 13 15
40055 # Create a (secure) tmp directory for tmp files.
40058 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40059 test -n "$tmp" && test -d "$tmp"
40062 tmp=./confstat$$-$RANDOM
40063 (umask 077 && mkdir $tmp)
40066 echo "$me: cannot create a temporary directory in ." >&2
40067 { (exit 1); exit 1; }
40072 cat >>$CONFIG_STATUS <<_ACEOF
40075 # CONFIG_FILES section.
40078 # No need to generate the scripts if there are no CONFIG_FILES.
40079 # This happens for instance when ./config.status config.h
40080 if test -n "\$CONFIG_FILES"; then
40081 # Protect against being on the right side of a sed subst in config.status.
40082 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40083 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40084 s,@SHELL@,$SHELL,;t t
40085 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40086 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40087 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40088 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40089 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40090 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40091 s,@exec_prefix@,$exec_prefix,;t t
40092 s,@prefix@,$prefix,;t t
40093 s,@program_transform_name@,$program_transform_name,;t t
40094 s,@bindir@,$bindir,;t t
40095 s,@sbindir@,$sbindir,;t t
40096 s,@libexecdir@,$libexecdir,;t t
40097 s,@datadir@,$datadir,;t t
40098 s,@sysconfdir@,$sysconfdir,;t t
40099 s,@sharedstatedir@,$sharedstatedir,;t t
40100 s,@localstatedir@,$localstatedir,;t t
40101 s,@libdir@,$libdir,;t t
40102 s,@includedir@,$includedir,;t t
40103 s,@oldincludedir@,$oldincludedir,;t t
40104 s,@infodir@,$infodir,;t t
40105 s,@mandir@,$mandir,;t t
40106 s,@build_alias@,$build_alias,;t t
40107 s,@host_alias@,$host_alias,;t t
40108 s,@target_alias@,$target_alias,;t t
40109 s,@DEFS@,$DEFS,;t t
40110 s,@ECHO_C@,$ECHO_C,;t t
40111 s,@ECHO_N@,$ECHO_N,;t t
40112 s,@ECHO_T@,$ECHO_T,;t t
40113 s,@LIBS@,$LIBS,;t t
40114 s,@build@,$build,;t t
40115 s,@build_cpu@,$build_cpu,;t t
40116 s,@build_vendor@,$build_vendor,;t t
40117 s,@build_os@,$build_os,;t t
40118 s,@host@,$host,;t t
40119 s,@host_cpu@,$host_cpu,;t t
40120 s,@host_vendor@,$host_vendor,;t t
40121 s,@host_os@,$host_os,;t t
40122 s,@target@,$target,;t t
40123 s,@target_cpu@,$target_cpu,;t t
40124 s,@target_vendor@,$target_vendor,;t t
40125 s,@target_os@,$target_os,;t t
40126 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40127 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40128 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40129 s,@CYGPATH_W@,$CYGPATH_W,;t t
40130 s,@PACKAGE@,$PACKAGE,;t t
40131 s,@VERSION@,$VERSION,;t t
40132 s,@ACLOCAL@,$ACLOCAL,;t t
40133 s,@AUTOCONF@,$AUTOCONF,;t t
40134 s,@AUTOMAKE@,$AUTOMAKE,;t t
40135 s,@AUTOHEADER@,$AUTOHEADER,;t t
40136 s,@MAKEINFO@,$MAKEINFO,;t t
40137 s,@install_sh@,$install_sh,;t t
40138 s,@STRIP@,$STRIP,;t t
40139 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40140 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
40141 s,@mkdir_p@,$mkdir_p,;t t
40143 s,@SET_MAKE@,$SET_MAKE,;t t
40144 s,@am__leading_dot@,$am__leading_dot,;t t
40145 s,@AMTAR@,$AMTAR,;t t
40146 s,@am__tar@,$am__tar,;t t
40147 s,@am__untar@,$am__untar,;t t
40148 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
40149 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
40150 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
40151 s,@top_builddir@,$top_builddir,;t t
40152 s,@ldap_subdir@,$ldap_subdir,;t t
40155 s,@CFLAGS@,$CFLAGS,;t t
40156 s,@LDFLAGS@,$LDFLAGS,;t t
40157 s,@CPPFLAGS@,$CPPFLAGS,;t t
40158 s,@ac_ct_CC@,$ac_ct_CC,;t t
40159 s,@EXEEXT@,$EXEEXT,;t t
40160 s,@OBJEXT@,$OBJEXT,;t t
40161 s,@DEPDIR@,$DEPDIR,;t t
40162 s,@am__include@,$am__include,;t t
40163 s,@am__quote@,$am__quote,;t t
40164 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
40165 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
40166 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
40167 s,@CCDEPMODE@,$CCDEPMODE,;t t
40168 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
40169 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
40170 s,@EGREP@,$EGREP,;t t
40171 s,@LN_S@,$LN_S,;t t
40172 s,@ECHO@,$ECHO,;t t
40173 s,@ac_ct_AR@,$ac_ct_AR,;t t
40174 s,@RANLIB@,$RANLIB,;t t
40175 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40176 s,@DLLTOOL@,$DLLTOOL,;t t
40177 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
40179 s,@ac_ct_AS@,$ac_ct_AS,;t t
40180 s,@OBJDUMP@,$OBJDUMP,;t t
40181 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
40183 s,@LIBTOOL@,$LIBTOOL,;t t
40184 s,@PERLBIN@,$PERLBIN,;t t
40185 s,@OL_MKDEP@,$OL_MKDEP,;t t
40186 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
40187 s,@LTSTATIC@,$LTSTATIC,;t t
40188 s,@MYSQL@,$MYSQL,;t t
40189 s,@LIBOBJS@,$LIBOBJS,;t t
40190 s,@LIBSRCS@,$LIBSRCS,;t t
40191 s,@PLAT@,$PLAT,;t t
40192 s,@WITH_SASL@,$WITH_SASL,;t t
40193 s,@WITH_TLS@,$WITH_TLS,;t t
40194 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
40195 s,@WITH_ACI_ENABLED@,$WITH_ACI_ENABLED,;t t
40196 s,@BUILD_THREAD@,$BUILD_THREAD,;t t
40197 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
40198 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
40199 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
40200 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
40201 s,@BUILD_BDB@,$BUILD_BDB,;t t
40202 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
40203 s,@BUILD_HDB@,$BUILD_HDB,;t t
40204 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
40205 s,@BUILD_META@,$BUILD_META,;t t
40206 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
40207 s,@BUILD_NDB@,$BUILD_NDB,;t t
40208 s,@BUILD_NULL@,$BUILD_NULL,;t t
40209 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
40210 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
40211 s,@BUILD_PERL@,$BUILD_PERL,;t t
40212 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
40213 s,@BUILD_SOCK@,$BUILD_SOCK,;t t
40214 s,@BUILD_SQL@,$BUILD_SQL,;t t
40215 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
40216 s,@BUILD_AUDITLOG@,$BUILD_AUDITLOG,;t t
40217 s,@BUILD_COLLECT@,$BUILD_COLLECT,;t t
40218 s,@BUILD_CONSTRAINT@,$BUILD_CONSTRAINT,;t t
40219 s,@BUILD_DDS@,$BUILD_DDS,;t t
40220 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
40221 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
40222 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
40223 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
40224 s,@BUILD_MEMBEROF@,$BUILD_MEMBEROF,;t t
40225 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
40226 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
40227 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
40228 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
40229 s,@BUILD_RWM@,$BUILD_RWM,;t t
40230 s,@BUILD_SEQMOD@,$BUILD_SEQMOD,;t t
40231 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
40232 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
40233 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
40234 s,@BUILD_VALSORT@,$BUILD_VALSORT,;t t
40235 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
40236 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
40237 s,@BDB_LIBS@,$BDB_LIBS,;t t
40238 s,@SLAPD_NDB_LIBS@,$SLAPD_NDB_LIBS,;t t
40239 s,@SLAPD_NDB_INCS@,$SLAPD_NDB_INCS,;t t
40240 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
40241 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
40242 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
40243 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
40244 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
40245 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
40246 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
40247 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
40248 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
40249 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
40250 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
40251 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
40252 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
40253 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
40254 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
40255 s,@SASL_LIBS@,$SASL_LIBS,;t t
40256 s,@GSSAPI_LIBS@,$GSSAPI_LIBS,;t t
40257 s,@TLS_LIBS@,$TLS_LIBS,;t t
40258 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
40259 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
40260 s,@LIBSLAPI@,$LIBSLAPI,;t t
40261 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
40262 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
40263 s,@ICU_LIBS@,$ICU_LIBS,;t t
40264 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
40265 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
40266 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
40267 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
40268 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
40269 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
40274 cat >>$CONFIG_STATUS <<\_ACEOF
40275 # Split the substitutions into bite-sized pieces for seds with
40276 # small command number limits, like on Digital OSF/1 and HP-UX.
40277 ac_max_sed_lines=48
40278 ac_sed_frag=1 # Number of current file.
40279 ac_beg=1 # First line for current file.
40280 ac_end=$ac_max_sed_lines # Line after last line for current file.
40283 while $ac_more_lines; do
40284 if test $ac_beg -gt 1; then
40285 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40287 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40289 if test ! -s $tmp/subs.frag; then
40290 ac_more_lines=false
40292 # The purpose of the label and of the branching condition is to
40293 # speed up the sed processing (if there are no `@' at all, there
40294 # is no need to browse any of the substitutions).
40295 # These are the two extra sed commands mentioned above.
40297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40298 if test -z "$ac_sed_cmds"; then
40299 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40301 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40303 ac_sed_frag=`expr $ac_sed_frag + 1`
40305 ac_end=`expr $ac_end + $ac_max_sed_lines`
40308 if test -z "$ac_sed_cmds"; then
40311 fi # test -n "$CONFIG_FILES"
40314 cat >>$CONFIG_STATUS <<\_ACEOF
40315 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40316 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40318 - | *:- | *:-:* ) # input from stdin
40320 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40321 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40322 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40324 * ) ac_file_in=$ac_file.in ;;
40327 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40328 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40329 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40330 X"$ac_file" : 'X\(//\)[^/]' \| \
40331 X"$ac_file" : 'X\(//\)$' \| \
40332 X"$ac_file" : 'X\(/\)' \| \
40333 . : '\(.\)' 2>/dev/null ||
40335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40336 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40337 /^X\(\/\/\)$/{ s//\1/; q; }
40338 /^X\(\/\).*/{ s//\1/; q; }
40340 { if $as_mkdir_p; then
40345 while test ! -d "$as_dir"; do
40346 as_dirs="$as_dir $as_dirs"
40347 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40349 X"$as_dir" : 'X\(//\)[^/]' \| \
40350 X"$as_dir" : 'X\(//\)$' \| \
40351 X"$as_dir" : 'X\(/\)' \| \
40352 . : '\(.\)' 2>/dev/null ||
40354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40355 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40356 /^X\(\/\/\)$/{ s//\1/; q; }
40357 /^X\(\/\).*/{ s//\1/; q; }
40360 test ! -n "$as_dirs" || mkdir $as_dirs
40361 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40362 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40363 { (exit 1); exit 1; }; }; }
40367 if test "$ac_dir" != .; then
40368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40369 # A "../" for each directory in $ac_dir_suffix.
40370 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40372 ac_dir_suffix= ac_top_builddir=
40376 .) # No --srcdir option. We are building in place.
40378 if test -z "$ac_top_builddir"; then
40381 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40383 [\\/]* | ?:[\\/]* ) # Absolute path.
40384 ac_srcdir=$srcdir$ac_dir_suffix;
40385 ac_top_srcdir=$srcdir ;;
40386 *) # Relative path.
40387 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40388 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40391 # Do not use `cd foo && pwd` to compute absolute paths, because
40392 # the directories may not exist.
40394 .) ac_abs_builddir="$ac_dir";;
40397 .) ac_abs_builddir=`pwd`;;
40398 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40399 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40402 case $ac_abs_builddir in
40403 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40405 case ${ac_top_builddir}. in
40406 .) ac_abs_top_builddir=$ac_abs_builddir;;
40407 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40408 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40411 case $ac_abs_builddir in
40412 .) ac_abs_srcdir=$ac_srcdir;;
40415 .) ac_abs_srcdir=$ac_abs_builddir;;
40416 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40417 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40420 case $ac_abs_builddir in
40421 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40423 case $ac_top_srcdir in
40424 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40425 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40426 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40432 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40433 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40436 if test x"$ac_file" != x-; then
40437 { echo "$as_me:$LINENO: creating $ac_file" >&5
40438 echo "$as_me: creating $ac_file" >&6;}
40441 # Let's still pretend it is `configure' which instantiates (i.e., don't
40442 # use $as_me), people would be surprised to read:
40443 # /* config.h. Generated by config.status. */
40444 if test x"$ac_file" = x-; then
40447 configure_input="$ac_file. "
40449 configure_input=$configure_input"Generated from `echo $ac_file_in |
40450 sed 's,.*/,,'` by configure."
40452 # First look for the input files in the build tree, otherwise in the
40454 ac_file_inputs=`IFS=:
40455 for f in $ac_file_in; do
40457 -) echo $tmp/stdin ;;
40459 # Absolute (can't be DOS-style, as IFS=:)
40460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40461 echo "$as_me: error: cannot find input file: $f" >&2;}
40462 { (exit 1); exit 1; }; }
40465 if test -f "$f"; then
40468 elif test -f "$srcdir/$f"; then
40473 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40474 echo "$as_me: error: cannot find input file: $f" >&2;}
40475 { (exit 1); exit 1; }; }
40478 done` || { (exit 1); exit 1; }
40480 cat >>$CONFIG_STATUS <<_ACEOF
40484 cat >>$CONFIG_STATUS <<\_ACEOF
40486 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40487 s,@configure_input@,$configure_input,;t t
40488 s,@srcdir@,$ac_srcdir,;t t
40489 s,@abs_srcdir@,$ac_abs_srcdir,;t t
40490 s,@top_srcdir@,$ac_top_srcdir,;t t
40491 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40492 s,@builddir@,$ac_builddir,;t t
40493 s,@abs_builddir@,$ac_abs_builddir,;t t
40494 s,@top_builddir@,$ac_top_builddir,;t t
40495 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40496 s,@INSTALL@,$ac_INSTALL,;t t
40497 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40499 if test x"$ac_file" != x-; then
40500 mv $tmp/out $ac_file
40508 cat >>$CONFIG_STATUS <<\_ACEOF
40511 # CONFIG_HEADER section.
40514 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40515 # NAME is the cpp macro being defined and VALUE is the value it is being given.
40517 # ac_d sets the value in "#define NAME VALUE" lines.
40518 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40519 ac_dB='[ ].*$,\1#\2'
40522 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40523 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
40524 ac_uB='$,\1#\2define\3'
40528 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40529 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40531 - | *:- | *:-:* ) # input from stdin
40533 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40534 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40535 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40536 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40537 * ) ac_file_in=$ac_file.in ;;
40540 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40541 echo "$as_me: creating $ac_file" >&6;}
40543 # First look for the input files in the build tree, otherwise in the
40545 ac_file_inputs=`IFS=:
40546 for f in $ac_file_in; do
40548 -) echo $tmp/stdin ;;
40550 # Absolute (can't be DOS-style, as IFS=:)
40551 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40552 echo "$as_me: error: cannot find input file: $f" >&2;}
40553 { (exit 1); exit 1; }; }
40554 # Do quote $f, to prevent DOS paths from being IFS'd.
40557 if test -f "$f"; then
40560 elif test -f "$srcdir/$f"; then
40565 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40566 echo "$as_me: error: cannot find input file: $f" >&2;}
40567 { (exit 1); exit 1; }; }
40570 done` || { (exit 1); exit 1; }
40571 # Remove the trailing spaces.
40572 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
40576 # Transform confdefs.h into two sed scripts, `conftest.defines' and
40577 # `conftest.undefs', that substitutes the proper values into
40578 # config.h.in to produce config.h. The first handles `#define'
40579 # templates, and the second `#undef' templates.
40580 # And first: Protect against being on the right side of a sed subst in
40581 # config.status. Protect against being in an unquoted here document
40582 # in config.status.
40583 rm -f conftest.defines conftest.undefs
40584 # Using a here document instead of a string reduces the quoting nightmare.
40585 # Putting comments in sed scripts is not portable.
40587 # `end' is used to avoid that the second main sed command (meant for
40588 # 0-ary CPP macros) applies to n-ary macro definitions.
40589 # See the Autoconf documentation for `clear'.
40590 cat >confdef2sed.sed <<\_ACEOF
40595 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40597 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40600 # If some macros were called several times there might be several times
40601 # the same #defines, which is useless. Nevertheless, we may not want to
40602 # sort them, since we want the *last* AC-DEFINE to be honored.
40603 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40604 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40605 rm -f confdef2sed.sed
40607 # This sed command replaces #undef with comments. This is necessary, for
40608 # example, in the case of _POSIX_SOURCE, which is predefined and required
40609 # on some systems where configure will not decide to define it.
40610 cat >>conftest.undefs <<\_ACEOF
40611 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40614 # Break up conftest.defines because some shells have a limit on the size
40615 # of here documents, and old seds have small limits too (100 cmds).
40616 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40617 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40618 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40619 echo ' :' >>$CONFIG_STATUS
40620 rm -f conftest.tail
40621 while grep . conftest.defines >/dev/null
40623 # Write a limited-size here document to $tmp/defines.sed.
40624 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40625 # Speed up: don't consider the non `#define' lines.
40626 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
40627 # Work around the forget-to-reset-the-flag bug.
40628 echo 't clr' >>$CONFIG_STATUS
40629 echo ': clr' >>$CONFIG_STATUS
40630 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40632 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40634 mv $tmp/out $tmp/in
40636 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40637 rm -f conftest.defines
40638 mv conftest.tail conftest.defines
40640 rm -f conftest.defines
40641 echo ' fi # grep' >>$CONFIG_STATUS
40642 echo >>$CONFIG_STATUS
40644 # Break up conftest.undefs because some shells have a limit on the size
40645 # of here documents, and old seds have small limits too (100 cmds).
40646 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
40647 rm -f conftest.tail
40648 while grep . conftest.undefs >/dev/null
40650 # Write a limited-size here document to $tmp/undefs.sed.
40651 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40652 # Speed up: don't consider the non `#undef'
40653 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
40654 # Work around the forget-to-reset-the-flag bug.
40655 echo 't clr' >>$CONFIG_STATUS
40656 echo ': clr' >>$CONFIG_STATUS
40657 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40659 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40661 mv $tmp/out $tmp/in
40663 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40664 rm -f conftest.undefs
40665 mv conftest.tail conftest.undefs
40667 rm -f conftest.undefs
40669 cat >>$CONFIG_STATUS <<\_ACEOF
40670 # Let's still pretend it is `configure' which instantiates (i.e., don't
40671 # use $as_me), people would be surprised to read:
40672 # /* config.h. Generated by config.status. */
40673 if test x"$ac_file" = x-; then
40674 echo "/* Generated by configure. */" >$tmp/config.h
40676 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
40678 cat $tmp/in >>$tmp/config.h
40680 if test x"$ac_file" != x-; then
40681 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40682 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40683 echo "$as_me: $ac_file is unchanged" >&6;}
40685 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40686 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40687 X"$ac_file" : 'X\(//\)[^/]' \| \
40688 X"$ac_file" : 'X\(//\)$' \| \
40689 X"$ac_file" : 'X\(/\)' \| \
40690 . : '\(.\)' 2>/dev/null ||
40692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40694 /^X\(\/\/\)$/{ s//\1/; q; }
40695 /^X\(\/\).*/{ s//\1/; q; }
40697 { if $as_mkdir_p; then
40702 while test ! -d "$as_dir"; do
40703 as_dirs="$as_dir $as_dirs"
40704 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40705 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40706 X"$as_dir" : 'X\(//\)[^/]' \| \
40707 X"$as_dir" : 'X\(//\)$' \| \
40708 X"$as_dir" : 'X\(/\)' \| \
40709 . : '\(.\)' 2>/dev/null ||
40711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40713 /^X\(\/\/\)$/{ s//\1/; q; }
40714 /^X\(\/\).*/{ s//\1/; q; }
40717 test ! -n "$as_dirs" || mkdir $as_dirs
40718 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40719 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40720 { (exit 1); exit 1; }; }; }
40723 mv $tmp/config.h $ac_file
40727 rm -f $tmp/config.h
40729 # Compute $ac_file's index in $config_headers.
40731 for _am_header in $config_headers :; do
40732 case $_am_header in
40733 $ac_file | $ac_file:* )
40736 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40739 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40740 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40741 X$ac_file : 'X\(//\)[^/]' \| \
40742 X$ac_file : 'X\(//\)$' \| \
40743 X$ac_file : 'X\(/\)' \| \
40744 . : '\(.\)' 2>/dev/null ||
40746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40747 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40748 /^X\(\/\/\)$/{ s//\1/; q; }
40749 /^X\(\/\).*/{ s//\1/; q; }
40750 s/.*/./; q'`/stamp-h$_am_stamp_count
40753 cat >>$CONFIG_STATUS <<\_ACEOF
40756 # CONFIG_COMMANDS section.
40758 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40759 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40760 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40761 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40762 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40763 X"$ac_dest" : 'X\(//\)[^/]' \| \
40764 X"$ac_dest" : 'X\(//\)$' \| \
40765 X"$ac_dest" : 'X\(/\)' \| \
40766 . : '\(.\)' 2>/dev/null ||
40768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40770 /^X\(\/\/\)$/{ s//\1/; q; }
40771 /^X\(\/\).*/{ s//\1/; q; }
40773 { if $as_mkdir_p; then
40778 while test ! -d "$as_dir"; do
40779 as_dirs="$as_dir $as_dirs"
40780 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40782 X"$as_dir" : 'X\(//\)[^/]' \| \
40783 X"$as_dir" : 'X\(//\)$' \| \
40784 X"$as_dir" : 'X\(/\)' \| \
40785 . : '\(.\)' 2>/dev/null ||
40787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40789 /^X\(\/\/\)$/{ s//\1/; q; }
40790 /^X\(\/\).*/{ s//\1/; q; }
40793 test ! -n "$as_dirs" || mkdir $as_dirs
40794 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40795 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40796 { (exit 1); exit 1; }; }; }
40800 if test "$ac_dir" != .; then
40801 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40802 # A "../" for each directory in $ac_dir_suffix.
40803 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40805 ac_dir_suffix= ac_top_builddir=
40809 .) # No --srcdir option. We are building in place.
40811 if test -z "$ac_top_builddir"; then
40814 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40816 [\\/]* | ?:[\\/]* ) # Absolute path.
40817 ac_srcdir=$srcdir$ac_dir_suffix;
40818 ac_top_srcdir=$srcdir ;;
40819 *) # Relative path.
40820 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40821 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40824 # Do not use `cd foo && pwd` to compute absolute paths, because
40825 # the directories may not exist.
40827 .) ac_abs_builddir="$ac_dir";;
40830 .) ac_abs_builddir=`pwd`;;
40831 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40832 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40835 case $ac_abs_builddir in
40836 .) ac_abs_top_builddir=${ac_top_builddir}.;;
40838 case ${ac_top_builddir}. in
40839 .) ac_abs_top_builddir=$ac_abs_builddir;;
40840 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40841 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40844 case $ac_abs_builddir in
40845 .) ac_abs_srcdir=$ac_srcdir;;
40848 .) ac_abs_srcdir=$ac_abs_builddir;;
40849 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40850 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40853 case $ac_abs_builddir in
40854 .) ac_abs_top_srcdir=$ac_top_srcdir;;
40856 case $ac_top_srcdir in
40857 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40858 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40859 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40864 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40865 echo "$as_me: executing $ac_dest commands" >&6;}
40867 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40868 # Strip MF so we end up with the name of the file.
40869 mf=`echo "$mf" | sed -e 's/:.*$//'`
40870 # Check whether this is an Automake generated Makefile or not.
40871 # We used to match only the files named `Makefile.in', but
40872 # some people rename them; so instead we look at the file content.
40873 # Grep'ing the first line is not enough: some people post-process
40874 # each Makefile.in and add a new line on top of each file to say so.
40875 # So let's grep whole file.
40876 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40877 dirpart=`(dirname "$mf") 2>/dev/null ||
40878 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40879 X"$mf" : 'X\(//\)[^/]' \| \
40880 X"$mf" : 'X\(//\)$' \| \
40881 X"$mf" : 'X\(/\)' \| \
40882 . : '\(.\)' 2>/dev/null ||
40884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40886 /^X\(\/\/\)$/{ s//\1/; q; }
40887 /^X\(\/\).*/{ s//\1/; q; }
40892 # Extract the definition of DEPDIR, am__include, and am__quote
40893 # from the Makefile without running `make'.
40894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40895 test -z "$DEPDIR" && continue
40896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40897 test -z "am__include" && continue
40898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40899 # When using ansi2knr, U may be empty or an underscore; expand it
40900 U=`sed -n 's/^U = //p' < "$mf"`
40901 # Find all dependency output files, they are included files with
40902 # $(DEPDIR) in their names. We invoke sed twice because it is the
40903 # simplest approach to changing $(DEPDIR) to its actual value in the
40905 for file in `sed -n "
40906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40908 # Make sure the directory exists.
40909 test -f "$dirpart/$file" && continue
40910 fdir=`(dirname "$file") 2>/dev/null ||
40911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40912 X"$file" : 'X\(//\)[^/]' \| \
40913 X"$file" : 'X\(//\)$' \| \
40914 X"$file" : 'X\(/\)' \| \
40915 . : '\(.\)' 2>/dev/null ||
40917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40918 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40919 /^X\(\/\/\)$/{ s//\1/; q; }
40920 /^X\(\/\).*/{ s//\1/; q; }
40922 { if $as_mkdir_p; then
40923 mkdir -p $dirpart/$fdir
40925 as_dir=$dirpart/$fdir
40927 while test ! -d "$as_dir"; do
40928 as_dirs="$as_dir $as_dirs"
40929 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40931 X"$as_dir" : 'X\(//\)[^/]' \| \
40932 X"$as_dir" : 'X\(//\)$' \| \
40933 X"$as_dir" : 'X\(/\)' \| \
40934 . : '\(.\)' 2>/dev/null ||
40936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40937 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40938 /^X\(\/\/\)$/{ s//\1/; q; }
40939 /^X\(\/\).*/{ s//\1/; q; }
40942 test ! -n "$as_dirs" || mkdir $as_dirs
40943 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40944 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40945 { (exit 1); exit 1; }; }; }
40947 # echo "creating $dirpart/$file"
40948 echo '# dummy' > "$dirpart/$file"
40955 BACKENDSC="servers/slapd/backends.c"
40956 echo "Making $BACKENDSC"
40958 cat > $BACKENDSC << ENDX
40959 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40961 * Copyright 1998-2009 The OpenLDAP Foundation.
40962 * All rights reserved.
40964 * Redistribution and use in source and binary forms, with or without
40965 * modification, are permitted only as authorized by the OpenLDAP
40968 * A copy of this license is available in the file LICENSE in the
40969 * top-level directory of the distribution or, alternatively, at
40970 * <http://www.OpenLDAP.org/license.html>.
40972 /* This file is automatically generated by configure; please do not edit. */
40974 #include "portable.h"
40978 if test "${STATIC_BACKENDS}"; then
40979 for b in config ${STATIC_BACKENDS}; do
40980 bb=`echo "${b}" | sed -e 's/back-//'`
40981 cat >> $BACKENDSC << ENDX
40982 extern BI_init ${bb}_back_initialize;
40986 cat >> $BACKENDSC << ENDX
40988 BackendInfo slap_binfo[] = {
40991 for b in config ${STATIC_BACKENDS}; do
40992 bb=`echo "${b}" | sed -e 's/back-//'`
40993 echo " Add ${bb} ..."
40994 cat >> $BACKENDSC << ENDX
40995 { "${bb}", ${bb}_back_initialize },
40999 cat >> $BACKENDSC << ENDX
41003 /* end of generated file */
41006 OVERLAYSC="servers/slapd/overlays/statover.c"
41007 echo "Making $OVERLAYSC"
41009 cat > $OVERLAYSC << ENDX
41010 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
41012 * Copyright 1998-2009 The OpenLDAP Foundation.
41013 * All rights reserved.
41015 * Redistribution and use in source and binary forms, with or without
41016 * modification, are permitted only as authorized by the OpenLDAP
41019 * A copy of this license is available in the file LICENSE in the
41020 * top-level directory of the distribution or, alternatively, at
41021 * <http://www.OpenLDAP.org/license.html>.
41023 /* This file is automatically generated by configure; please do not edit. */
41025 #include "portable.h"
41029 if test "${STATIC_OVERLAYS}"; then
41030 for o in ${STATIC_OVERLAYS}; do
41031 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41032 cat >> $OVERLAYSC << ENDX
41033 extern OV_init ${oo}_initialize;
41038 cat >> $OVERLAYSC << ENDX
41040 OverlayInit slap_oinfo[] = {
41043 if test "${STATIC_OVERLAYS}"; then
41044 for o in ${STATIC_OVERLAYS}; do
41045 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
41046 echo " Add ${oo} ..."
41047 cat >> $OVERLAYSC << ENDX
41048 { "${oo}", ${oo}_initialize },
41053 cat >> $OVERLAYSC << ENDX
41057 /* end of generated file */
41060 if test "${ol_cv_mkdep}" = no; then
41061 echo '(Do not "make depend"; we do not know how to build dependencies)'
41063 echo 'Please run "make depend" to build dependencies'
41070 cat >>$CONFIG_STATUS <<\_ACEOF
41072 { (exit 0); exit 0; }
41074 chmod +x $CONFIG_STATUS
41075 ac_clean_files=$ac_clean_files_save
41078 # configure is writing to config.log, and then calls config.status.
41079 # config.status does its own redirection, appending to config.log.
41080 # Unfortunately, on DOS this fails, as config.log is still kept open
41081 # by configure, so config.status won't be able to write to it; its
41082 # output is simply discarded. So we exec the FD to /dev/null,
41083 # effectively closing config.log, so it can be properly (re)opened and
41084 # appended to by config.status. When coming back to configure, we
41085 # need to make the FD available again.
41086 if test "$no_create" != yes; then
41088 ac_config_status_args=
41089 test "$silent" = yes &&
41090 ac_config_status_args="$ac_config_status_args --quiet"
41092 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41094 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41095 # would make configure fail if this is the last instruction.
41096 $ac_cs_success || { (exit 1); exit 1; }