2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.701 2009/07/13 13:45:25 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in
28 *posix*) set -o posix ;;
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46 echo "#! /bin/sh" >conf$$.sh
47 echo "exit 0" >>conf$$.sh
49 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
66 # We need space, tab and new line, in precisely that order. Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
74 # Find who we are. Look in the path if we contain no directory separator.
76 *[\\/]* ) as_myself=$0 ;;
77 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
81 test -z "$as_dir" && as_dir=.
82 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
93 if test ! -f "$as_myself"; then
94 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
112 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113 eval $as_var=C; export $as_var
115 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121 test "X`expr 00001 : '.*\(...\)'`" = X001; then
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137 X"$0" : 'X\(//\)$' \| \
138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
140 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 if test "x$CONFIG_SHELL" = x; then
159 if (eval ":") 2>/dev/null; then
165 if test $as_have_required = yes && (eval ":
175 as_func_ret_success () {
178 as_func_ret_failure () {
183 if as_func_success; then
187 echo as_func_success failed.
190 if as_func_failure; then
192 echo as_func_failure succeeded.
195 if as_func_ret_success; then
199 echo as_func_ret_success failed.
202 if as_func_ret_failure; then
204 echo as_func_ret_failure succeeded.
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
211 echo positional parameters were not saved.
214 test \$exitcode = 0) || { (exit 1); exit 1; }
219 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
229 test -z "$as_dir" && as_dir=.
232 for as_base in sh bash ksh sh5; do
233 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
240 for as_shell in $as_candidate_shells $SHELL; do
241 # Try only shells that exist, to save several forks.
242 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
247 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248 # is contrary to our usage. Disable this feature.
249 alias -g '${1+"$@"}'='"$@"'
252 case `(set -o) 2>/dev/null` in
253 *posix*) set -o posix ;;
262 CONFIG_SHELL=$as_shell
264 if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
268 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in
274 *posix*) set -o posix ;;
290 as_func_ret_success () {
293 as_func_ret_failure () {
298 if as_func_success; then
302 echo as_func_success failed.
305 if as_func_failure; then
307 echo as_func_failure succeeded.
310 if as_func_ret_success; then
314 echo as_func_ret_success failed.
317 if as_func_ret_failure; then
319 echo as_func_ret_failure succeeded.
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
326 echo positional parameters were not saved.
329 test $exitcode = 0) || { (exit 1); exit 1; }
334 test "x$as_lineno_1" != "x$as_lineno_2" &&
335 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
346 if test "x$CONFIG_SHELL" != x; then
347 for as_var in BASH_ENV ENV
348 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
351 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
355 if test $as_have_required = no; then
356 echo This script requires a shell more modern than all the
357 echo shells that I found on your system. Please install a
358 echo modern shell, or manually run the script under such a
359 echo shell if you do have one.
360 { (exit 1); exit 1; }
370 (eval "as_func_return () {
379 as_func_ret_success () {
382 as_func_ret_failure () {
387 if as_func_success; then
391 echo as_func_success failed.
394 if as_func_failure; then
396 echo as_func_failure succeeded.
399 if as_func_ret_success; then
403 echo as_func_ret_success failed.
406 if as_func_ret_failure; then
408 echo as_func_ret_failure succeeded.
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
415 echo positional parameters were not saved.
418 test \$exitcode = 0") || {
419 echo No shell found that supports shell functions.
420 echo Please tell autoconf@gnu.org about your system,
421 echo including any error possibly output before this
429 test "x$as_lineno_1" != "x$as_lineno_2" &&
430 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
432 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433 # uniformly replaced by the line number. The first 'sed' inserts a
434 # line-number line after each line using $LINENO; the second 'sed'
435 # does the real work. The second script uses 'N' to pair each
436 # line-number line with the line containing $LINENO, and appends
437 # trailing '-' during substitution so that $LINENO is not a special
439 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440 # scripts with optimization help from Paolo Bonzini. Blame Lee
441 # E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x "$as_me.lineno" ||
458 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459 { (exit 1); exit 1; }; }
461 # Don't try to exec as it changes $[0], causing all sort of problems
462 # (the dirname of $[0] is not the place where we might find the
463 # original and so on. Autoconf is especially sensitive to this).
465 # Exit status is that of the last command.
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
476 ECHO_C= ECHO_N= ECHO_T=
480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488 test "X`expr 00001 : '.*\(...\)'`" = X001; then
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496 rm -f conf$$.dir/conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
504 # ... but there are two gotchas:
505 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507 # In both cases, we have to default to `cp -p'.
508 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
510 elif ln conf$$.file conf$$ 2>/dev/null; then
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
518 if mkdir -p . 2>/dev/null; then
521 test -d ./-p && rmdir ./-p
525 if test -x / >/dev/null 2>&1; then
528 if ls -dL / >/dev/null 2>&1; then
535 if test -d "$1"; then
541 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542 ???[sx]*):;;*)false;;esac;fi
546 as_executable_p=$as_test_x
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
562 # Remove one level of quotation (which was required for Make).
563 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 if test "X$1" = X--no-reexec; then
569 # Discard the --no-reexec flag, and continue.
571 elif test "X$1" = X--fallback-echo; then
572 # Avoid inline document here, it may be left over
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575 # Yippee, $echo works!
578 # Restart under the correct shell.
579 exec $SHELL "$0" --no-reexec ${1+"$@"}
582 if test "X$1" = X--fallback-echo; then
583 # used as fallback echo
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601 echo_test_string=`eval $cmd` &&
602 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
618 # So, first we look for a working echo in the user's PATH.
620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
633 if test "X$echo" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
640 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
651 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 echo="$CONFIG_SHELL $0 --fallback-echo"
671 # maybe with a smaller string...
674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
687 # Oops. We lost completely, so just stick with echo.
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
834 INSTALL_STRIP_PROGRAM
844 OPENLDAP_RELEASE_DATE
934 SLAPD_MODULES_CPPFLAGS
935 SLAPD_MODULES_LDFLAGS
937 SLAPD_STATIC_BACKENDS
938 SLAPD_DYNAMIC_BACKENDS
939 SLAPD_STATIC_OVERLAYS
940 SLAPD_DYNAMIC_OVERLAYS
961 ac_precious_vars='build_alias
972 # Initialize some variables set by options.
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
984 program_transform_name=s,x,x,
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1022 # If the previous option needs an argument, assign it.
1023 if test -n "$ac_prev"; then
1024 eval $ac_prev=\$ac_option
1030 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1034 # Accept the important Cygnus configure options, so we can diagnose typos.
1036 case $ac_dashdash$ac_option in
1040 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043 bindir=$ac_optarg ;;
1045 -build | --build | --buil | --bui | --bu)
1046 ac_prev=build_alias ;;
1047 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048 build_alias=$ac_optarg ;;
1050 -cache-file | --cache-file | --cache-fil | --cache-fi \
1051 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052 ac_prev=cache_file ;;
1053 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055 cache_file=$ac_optarg ;;
1057 --config-cache | -C)
1058 cache_file=config.cache ;;
1060 -datadir | --datadir | --datadi | --datad)
1062 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063 datadir=$ac_optarg ;;
1065 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066 | --dataroo | --dataro | --datar)
1067 ac_prev=datarootdir ;;
1068 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070 datarootdir=$ac_optarg ;;
1072 -disable-* | --disable-*)
1073 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074 # Reject names that are not valid shell variable names.
1075 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077 { (exit 1); exit 1; }; }
1078 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079 eval enable_$ac_feature=no ;;
1081 -docdir | --docdir | --docdi | --doc | --do)
1083 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084 docdir=$ac_optarg ;;
1086 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089 dvidir=$ac_optarg ;;
1091 -enable-* | --enable-*)
1092 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096 { (exit 1); exit 1; }; }
1097 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098 eval enable_$ac_feature=\$ac_optarg ;;
1100 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102 | --exec | --exe | --ex)
1103 ac_prev=exec_prefix ;;
1104 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106 | --exec=* | --exe=* | --ex=*)
1107 exec_prefix=$ac_optarg ;;
1109 -gas | --gas | --ga | --g)
1110 # Obsolete; use --with-gas.
1113 -help | --help | --hel | --he | -h)
1114 ac_init_help=long ;;
1115 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116 ac_init_help=recursive ;;
1117 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118 ac_init_help=short ;;
1120 -host | --host | --hos | --ho)
1121 ac_prev=host_alias ;;
1122 -host=* | --host=* | --hos=* | --ho=*)
1123 host_alias=$ac_optarg ;;
1125 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129 htmldir=$ac_optarg ;;
1131 -includedir | --includedir | --includedi | --included | --include \
1132 | --includ | --inclu | --incl | --inc)
1133 ac_prev=includedir ;;
1134 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135 | --includ=* | --inclu=* | --incl=* | --inc=*)
1136 includedir=$ac_optarg ;;
1138 -infodir | --infodir | --infodi | --infod | --info | --inf)
1140 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141 infodir=$ac_optarg ;;
1143 -libdir | --libdir | --libdi | --libd)
1145 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146 libdir=$ac_optarg ;;
1148 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149 | --libexe | --libex | --libe)
1150 ac_prev=libexecdir ;;
1151 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152 | --libexe=* | --libex=* | --libe=*)
1153 libexecdir=$ac_optarg ;;
1155 -localedir | --localedir | --localedi | --localed | --locale)
1156 ac_prev=localedir ;;
1157 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158 localedir=$ac_optarg ;;
1160 -localstatedir | --localstatedir | --localstatedi | --localstated \
1161 | --localstate | --localstat | --localsta | --localst | --locals)
1162 ac_prev=localstatedir ;;
1163 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165 localstatedir=$ac_optarg ;;
1167 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170 mandir=$ac_optarg ;;
1172 -nfp | --nfp | --nf)
1173 # Obsolete; use --without-fp.
1176 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177 | --no-cr | --no-c | -n)
1180 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1184 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186 | --oldin | --oldi | --old | --ol | --o)
1187 ac_prev=oldincludedir ;;
1188 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191 oldincludedir=$ac_optarg ;;
1193 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196 prefix=$ac_optarg ;;
1198 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199 | --program-pre | --program-pr | --program-p)
1200 ac_prev=program_prefix ;;
1201 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203 program_prefix=$ac_optarg ;;
1205 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206 | --program-suf | --program-su | --program-s)
1207 ac_prev=program_suffix ;;
1208 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210 program_suffix=$ac_optarg ;;
1212 -program-transform-name | --program-transform-name \
1213 | --program-transform-nam | --program-transform-na \
1214 | --program-transform-n | --program-transform- \
1215 | --program-transform | --program-transfor \
1216 | --program-transfo | --program-transf \
1217 | --program-trans | --program-tran \
1218 | --progr-tra | --program-tr | --program-t)
1219 ac_prev=program_transform_name ;;
1220 -program-transform-name=* | --program-transform-name=* \
1221 | --program-transform-nam=* | --program-transform-na=* \
1222 | --program-transform-n=* | --program-transform-=* \
1223 | --program-transform=* | --program-transfor=* \
1224 | --program-transfo=* | --program-transf=* \
1225 | --program-trans=* | --program-tran=* \
1226 | --progr-tra=* | --program-tr=* | --program-t=*)
1227 program_transform_name=$ac_optarg ;;
1229 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232 pdfdir=$ac_optarg ;;
1234 -psdir | --psdir | --psdi | --psd | --ps)
1236 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240 | -silent | --silent | --silen | --sile | --sil)
1243 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247 sbindir=$ac_optarg ;;
1249 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251 | --sharedst | --shareds | --shared | --share | --shar \
1253 ac_prev=sharedstatedir ;;
1254 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258 sharedstatedir=$ac_optarg ;;
1260 -site | --site | --sit)
1262 -site=* | --site=* | --sit=*)
1265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268 srcdir=$ac_optarg ;;
1270 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271 | --syscon | --sysco | --sysc | --sys | --sy)
1272 ac_prev=sysconfdir ;;
1273 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275 sysconfdir=$ac_optarg ;;
1277 -target | --target | --targe | --targ | --tar | --ta | --t)
1278 ac_prev=target_alias ;;
1279 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280 target_alias=$ac_optarg ;;
1282 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1285 -version | --version | --versio | --versi | --vers | -V)
1286 ac_init_version=: ;;
1289 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290 # Reject names that are not valid shell variable names.
1291 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292 { echo "$as_me: error: invalid package name: $ac_package" >&2
1293 { (exit 1); exit 1; }; }
1294 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295 eval with_$ac_package=\$ac_optarg ;;
1297 -without-* | --without-*)
1298 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299 # Reject names that are not valid shell variable names.
1300 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301 { echo "$as_me: error: invalid package name: $ac_package" >&2
1302 { (exit 1); exit 1; }; }
1303 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304 eval with_$ac_package=no ;;
1307 # Obsolete; use --with-x.
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1324 -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326 { (exit 1); exit 1; }; }
1330 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334 { (exit 1); exit 1; }; }
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1339 # FIXME: should be removed in autoconf 3.0.
1340 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 { echo "$as_me: error: missing argument to $ac_option" >&2
1352 { (exit 1); exit 1; }; }
1355 # Be sure to have absolute directory names.
1356 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357 datadir sysconfdir sharedstatedir localstatedir includedir \
1358 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359 libdir localedir mandir
1361 eval ac_val=\$$ac_var
1363 [\\/$]* | ?:[\\/]* ) continue;;
1364 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367 { (exit 1); exit 1; }; }
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 { echo "$as_me: error: Working directory cannot be determined" >&2
1398 { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400 { echo "$as_me: error: pwd does not report name of working directory" >&2
1401 { (exit 1); exit 1; }; }
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406 ac_srcdir_defaulted=yes
1407 # Try the directory containing this script, then the parent directory.
1408 ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410 X"$0" : 'X\(//\)[^/]' \| \
1411 X"$0" : 'X\(//\)$' \| \
1412 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1432 if test ! -r "$srcdir/$ac_unique_file"; then
1436 ac_srcdir_defaulted=no
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441 { (exit 1); exit 1; }; }
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446 { (exit 1); exit 1; }; }
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 for ac_var in $ac_precious_vars; do
1459 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460 eval ac_env_${ac_var}_value=\$${ac_var}
1461 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1466 # Report the --help message.
1468 if test "$ac_init_help" = "long"; then
1469 # Omit some internal or obsolete options to make the list less imposing.
1470 # This message is too long to be a string in the A/UX 3.1 sh.
1472 \`configure' configures this package to adapt to many kinds of systems.
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE. See below for descriptions of some of the useful variables.
1479 Defaults for the options are specified in brackets.
1482 -h, --help display this help and exit
1483 --help=short display options specific to this package
1484 --help=recursive display the short help of all the included packages
1485 -V, --version display version information and exit
1486 -q, --quiet, --silent do not print \`checking...' messages
1487 --cache-file=FILE cache test results in FILE [disabled]
1488 -C, --config-cache alias for \`--cache-file=config.cache'
1489 -n, --no-create do not create output files
1490 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1492 Installation directories:
1493 --prefix=PREFIX install architecture-independent files in PREFIX
1494 [$ac_default_prefix]
1495 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1503 For better control, use the options below.
1505 Fine tuning of the installation directories:
1506 --bindir=DIR user executables [EPREFIX/bin]
1507 --sbindir=DIR system admin executables [EPREFIX/sbin]
1508 --libexecdir=DIR program executables [EPREFIX/libexec]
1509 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1510 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1511 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 --target=TARGET configure for building compilers for TARGET [HOST]
1541 if test -n "$ac_init_help"; then
1546 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1547 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1548 --enable-debug enable debugging no|yes|traditional [yes]
1549 --enable-dynamic enable linking built binaries with dynamic libs [no]
1550 --enable-syslog enable syslog support [auto]
1551 --enable-proctitle enable proctitle support [yes]
1552 --enable-ipv6 enable IPv6 support [auto]
1553 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1555 SLAPD (Standalone LDAP Daemon) Options:
1556 --enable-slapd enable building slapd [yes]
1557 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1558 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1559 --enable-cleartext enable cleartext passwords [yes]
1560 --enable-crypt enable crypt(3) passwords [no]
1561 --enable-lmpasswd enable LAN Manager passwords [no]
1562 --enable-spasswd enable (Cyrus) SASL password verification [no]
1563 --enable-modules enable dynamic module support [no]
1564 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1565 --enable-rlookups enable reverse lookups of client hostnames [no]
1566 --enable-slapi enable SLAPI support (experimental) [no]
1567 --enable-slp enable SLPv2 support [no]
1568 --enable-wrappers enable tcp wrapper support [no]
1570 SLAPD Backend Options:
1571 --enable-backends enable all available backends no|yes|mod
1572 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1573 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1574 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1575 --enable-ldap enable ldap backend no|yes|mod [no]
1576 --enable-meta enable metadirectory backend no|yes|mod [no]
1577 --enable-monitor enable monitor backend no|yes|mod [yes]
1578 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1579 --enable-null enable null backend no|yes|mod [no]
1580 --enable-passwd enable passwd backend no|yes|mod [no]
1581 --enable-perl enable perl backend no|yes|mod [no]
1582 --enable-relay enable relay backend no|yes|mod [yes]
1583 --enable-shell enable shell backend no|yes|mod [no]
1584 --enable-sock enable sock backend no|yes|mod [no]
1585 --enable-sql enable sql backend no|yes|mod [no]
1587 SLAPD Overlay Options:
1588 --enable-overlays enable all available overlays no|yes|mod
1589 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1590 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1591 --enable-collect Collect overlay no|yes|mod [no]
1592 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1593 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1594 --enable-deref Dereference overlay no|yes|mod [no]
1595 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1596 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1597 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1598 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1599 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1600 --enable-refint Referential Integrity overlay no|yes|mod [no]
1601 --enable-retcode Return Code testing overlay no|yes|mod [no]
1602 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1603 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1604 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1605 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1606 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1607 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1608 --enable-valsort Value Sorting overlay no|yes|mod [no]
1610 Library Generation & Linking Options
1611 --enable-static[=PKGS] build static libraries [default=yes]
1612 --enable-shared[=PKGS] build shared libraries [default=yes]
1613 --enable-fast-install[=PKGS]
1614 optimize for fast installation [default=yes]
1615 --disable-dependency-tracking speeds up one-time build
1616 --enable-dependency-tracking do not reject slow dependency extractors
1617 --disable-libtool-lock avoid locking (might break parallel builds)
1620 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1621 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1622 --with-subdir=DIR change default subdirectory used for installs
1623 --with-cyrus-sasl with Cyrus SASL support [auto]
1624 --with-fetch with fetch(3) URL support [auto]
1625 --with-threads with threads [auto]
1626 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1627 --with-yielding-select with implicitly yielding select [auto]
1628 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1631 --with-pic try to use only PIC/non-PIC objects [default=use
1633 --with-tags[=TAGS] include additional configurations [automatic]
1635 See INSTALL file for further details.
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1654 if test "$ac_init_help" = "recursive"; then
1655 # If there are subdirs, report their specific --help.
1656 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657 test -d "$ac_dir" || continue
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1677 .) # We are building in place.
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1682 ac_srcdir=$srcdir$ac_dir_suffix;
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1701 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1711 generated by GNU Autoconf 2.61
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1718 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61. Invocation command line was
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1749 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1750 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1753 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1754 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1755 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763 test -z "$as_dir" && as_dir=.
1764 echo "PATH: $as_dir"
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1788 ac_must_keep_next=false
1794 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796 | -silent | --silent | --silen | --sile | --sil)
1799 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805 if test $ac_must_keep_next = true; then
1806 ac_must_keep_next=false # Got value, back to normal.
1809 *=* | --config-cache | -C | -disable-* | --disable-* \
1810 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812 | -with-* | --with-* | -without-* | --without-* | --x)
1813 case "$ac_configure_args0 " in
1814 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1817 -* ) ac_must_keep_next=true ;;
1820 ac_configure_args="$ac_configure_args '$ac_arg'"
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log. We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834 # Save into config.log some information that might help in debugging.
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1844 # The following way of writing the cache mishandles newlines in values,
1846 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847 eval ac_val=\$$ac_var
1851 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1855 _ | IFS | as_nl) ;; #(
1856 *) $as_unset $ac_var ;;
1861 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862 *${as_nl}ac_space=\ *)
1864 "s/'\''/'\''\\\\'\'''\''/g;
1865 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1868 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1881 for ac_var in $ac_subst_vars
1883 eval ac_val=\$$ac_var
1885 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887 echo "$ac_var='\''$ac_val'\''"
1891 if test -n "$ac_subst_files"; then
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1898 for ac_var in $ac_subst_files
1900 eval ac_val=\$$ac_var
1902 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904 echo "$ac_var='\''$ac_val'\''"
1909 if test -s confdefs.h; then
1919 test "$ac_signal" != 0 &&
1920 echo "$as_me: caught signal $ac_signal"
1921 echo "$as_me: exit $exit_status"
1923 rm -f core *.core core.conftest.* &&
1924 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1927 for ac_signal in 1 2 13 15; do
1928 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1935 # Predefined preprocessor variables.
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965 set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1969 set x "$ac_default_prefix/share/config.site" \
1970 "$ac_default_prefix/etc/config.site"
1975 if test -r "$ac_site_file"; then
1976 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978 sed 's/^/| /' "$ac_site_file" >&5
1984 # Check that the precious variables saved in the cache have kept the same
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989 eval ac_new_set=\$ac_env_${ac_var}_set
1990 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991 eval ac_new_val=\$ac_env_${ac_var}_value
1992 case $ac_old_set,$ac_new_set in
1994 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996 ac_cache_corrupted=: ;;
1998 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000 ac_cache_corrupted=: ;;
2003 if test "x$ac_old_val" != "x$ac_new_val"; then
2004 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2007 echo "$as_me: former value: $ac_old_val" >&2;}
2008 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2009 echo "$as_me: current value: $ac_new_val" >&2;}
2010 ac_cache_corrupted=:
2013 # Pass precious variables to config.status.
2014 if test "$ac_new_set" = set; then
2016 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017 *) ac_arg=$ac_var=$ac_new_val ;;
2019 case " $ac_configure_args " in
2020 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2021 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2025 if $ac_cache_corrupted; then
2026 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030 { (exit 1); exit 1; }; }
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 for ac_dir in build "$srcdir"/build; do
2084 if test -f "$ac_dir/install-sh"; then
2086 ac_install_sh="$ac_aux_dir/install-sh -c"
2088 elif test -f "$ac_dir/install.sh"; then
2090 ac_install_sh="$ac_aux_dir/install.sh -c"
2092 elif test -f "$ac_dir/shtool"; then
2094 ac_install_sh="$ac_aux_dir/shtool install -c"
2098 if test -z "$ac_aux_dir"; then
2099 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101 { (exit 1); exit 1; }; }
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117 { (exit 1); exit 1; }; }
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121 ac_cv_shtool="$ac_aux_dir/shtool"
2123 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125 { (exit 1); exit 1; }; }
2128 SHTOOL="$ac_cv_shtool"
2132 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2137 if test -d $ac_aux_dir/CVS; then
2138 OPENLDAP_CVS="(from CVS sources) "
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160 { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164 { (exit 1); exit 1; }; }
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173 { (exit 1); exit 1; }; };;
2176 ac_save_IFS=$IFS; IFS='-'
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 if test "x$host_alias" = x; then
2195 ac_cv_host=$ac_cv_build
2197 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200 { (exit 1); exit 1; }; }
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210 { (exit 1); exit 1; }; };;
2213 ac_save_IFS=$IFS; IFS='-'
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 if test "x$target_alias" = x; then
2232 ac_cv_target=$ac_cv_host
2234 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237 { (exit 1); exit 1; }; }
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247 { (exit 1); exit 1; }; };;
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266 test "$program_prefix$program_suffix$program_transform_name" = \
2268 program_prefix=${target_alias}-
2270 am__api_version="1.9"
2271 # Find a good install program. We prefer a C program (faster),
2272 # so one script is as good as another. But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 test -z "$as_dir" && as_dir=.
2295 # Account for people who put trailing slashes in PATH elements.
2297 ./ | .// | /cC/* | \
2298 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2302 # OSF1 and SCO ODT 3.0 have their own names for install.
2303 # Don't use installbsd from OSF since it installs stuff as root
2305 for ac_prog in ginstall scoinst install; do
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308 if test $ac_prog = install &&
2309 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310 # AIX install. It has an incompatible calling convention.
2312 elif test $ac_prog = install &&
2313 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314 # program-specific install script used by HP pwplus--don't use.
2317 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2330 if test "${ac_cv_path_install+set}" = set; then
2331 INSTALL=$ac_cv_path_install
2333 # As a last resort, use the slow shell script. Don't cache a
2334 # value for INSTALL within a source directory, because that will
2335 # break other packages using the cache if that directory is
2336 # removed, or if the value is a relative name.
2337 INSTALL=$ac_install_sh
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments. Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2362 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363 if test "$*" = "X"; then
2365 set X `ls -t $srcdir/configure conftest.file`
2368 if test "$*" != "X $srcdir/configure conftest.file" \
2369 && test "$*" != "X conftest.file $srcdir/configure"; then
2371 # If neither matched, then we have a broken ls. This can happen
2372 # if, for instance, CONFIG_SHELL is bash and it inherits a
2373 # broken ls alias from the environment. This has actually
2374 # happened. Such a system could not be considered "sane".
2375 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2378 alias in your environment" >&2;}
2379 { (exit 1); exit 1; }; }
2382 test "$2" = conftest.file
2388 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392 { (exit 1); exit 1; }; }
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $. echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415 am_missing_run="$MISSING --run "
2418 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423 # We used to keeping the `.' as first argument, in order to
2424 # allow $(mkdir_p) to be used without argument. As in
2425 # $(mkdir_p) $(somedir)
2426 # where $(somedir) is conditionally defined. However this is wrong
2428 # 1. if the package is installed by a user who cannot write `.'
2429 # make install will fail,
2430 # 2. the above comment should most certainly read
2431 # $(mkdir_p) $(DESTDIR)$(somedir)
2432 # so it does not work when $(somedir) is undefined and
2433 # $(DESTDIR) is not.
2434 # To support the latter case, we have to write
2435 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436 # so the `.' trick is pointless.
2437 mkdir_p='mkdir -p --'
2439 # On NextStep and OpenStep, the `mkdir' command does not
2440 # recognize any option. It will interpret all options as
2441 # directories to create, and then abort because `.' already
2443 for d in ./-p ./--version;
2445 test -d $d && rmdir $d
2447 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448 if test -f "$ac_aux_dir/mkinstalldirs"; then
2449 mkdir_p='$(mkinstalldirs)'
2451 mkdir_p='$(install_sh) -d'
2455 for ac_prog in gawk mawk nawk awk
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$AWK"; then
2465 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_AWK="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$AWK"; then
2486 { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2494 test -n "$AWK" && break
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
2503 cat >conftest.make <<\_ACEOF
2506 @echo '@@@%%%=$(MAKE)=@@@%%%'
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2511 eval ac_cv_prog_make_${ac_make}_set=yes;;
2513 eval ac_cv_prog_make_${ac_make}_set=no;;
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518 { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524 SET_MAKE="MAKE=${MAKE-make}"
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2534 rmdir .tst 2>/dev/null
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538 test -f $srcdir/config.status; then
2539 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541 { (exit 1); exit 1; }; }
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546 if (cygpath --version) >/dev/null 2>/dev/null; then
2547 CYGPATH_W='cygpath -w'
2554 # Define the identity of the package.
2559 # Some tools Automake needs.
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'. However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$STRIP"; then
2591 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612 { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2621 if test -z "$ac_cv_prog_STRIP"; then
2623 # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$ac_ct_STRIP"; then
2631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_STRIP="strip"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2659 if test "x$ac_ct_STRIP" = x; then
2662 case $cross_compiling:$ac_tool_warned in
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2675 STRIP="$ac_cv_prog_STRIP"
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2681 # We need awk for the "check" target. The system "awk" is bad on
2683 # Always define AMTAR for backward compatibility.
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2749 ldap_subdir="/openldap"
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754 withval=$with_subdir; case "$withval" in
2760 ldap_subdir="$withval"
2763 ldap_subdir="/$withval"
2770 # OpenLDAP --enable-debug
2772 # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774 enableval=$enable_debug;
2776 for ol_val in no yes traditional ; do
2777 if test "$enableval" = "$ol_val" ; then
2781 if test "$ol_arg" = "invalid" ; then
2782 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784 { (exit 1); exit 1; }; }
2786 ol_enable_debug="$ol_arg"
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2795 # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797 enableval=$enable_dynamic;
2799 for ol_val in auto yes no ; do
2800 if test "$enableval" = "$ol_val" ; then
2804 if test "$ol_arg" = "invalid" ; then
2805 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807 { (exit 1); exit 1; }; }
2809 ol_enable_dynamic="$ol_arg"
2812 ol_enable_dynamic=no
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2818 # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820 enableval=$enable_syslog;
2822 for ol_val in auto yes no ; do
2823 if test "$enableval" = "$ol_val" ; then
2827 if test "$ol_arg" = "invalid" ; then
2828 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830 { (exit 1); exit 1; }; }
2832 ol_enable_syslog="$ol_arg"
2835 ol_enable_syslog=auto
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2841 # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843 enableval=$enable_proctitle;
2845 for ol_val in auto yes no ; do
2846 if test "$enableval" = "$ol_val" ; then
2850 if test "$ol_arg" = "invalid" ; then
2851 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853 { (exit 1); exit 1; }; }
2855 ol_enable_proctitle="$ol_arg"
2858 ol_enable_proctitle=yes
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2865 # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867 enableval=$enable_ipv6;
2869 for ol_val in auto yes no ; do
2870 if test "$enableval" = "$ol_val" ; then
2874 if test "$ol_arg" = "invalid" ; then
2875 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877 { (exit 1); exit 1; }; }
2879 ol_enable_ipv6="$ol_arg"
2886 # OpenLDAP --enable-local
2888 # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890 enableval=$enable_local;
2892 for ol_val in auto yes no ; do
2893 if test "$enableval" = "$ol_val" ; then
2897 if test "$ol_arg" = "invalid" ; then
2898 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900 { (exit 1); exit 1; }; }
2902 ol_enable_local="$ol_arg"
2905 ol_enable_local=auto
2908 # end --enable-local
2910 # OpenLDAP --with-cyrus_sasl
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914 withval=$with_cyrus_sasl;
2916 for ol_val in auto yes no ; do
2917 if test "$withval" = "$ol_val" ; then
2921 if test "$ol_arg" = "invalid" ; then
2922 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924 { (exit 1); exit 1; }; }
2926 ol_with_cyrus_sasl="$ol_arg"
2929 ol_with_cyrus_sasl="auto"
2931 # end --with-cyrus_sasl
2933 # OpenLDAP --with-fetch
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937 withval=$with_fetch;
2939 for ol_val in auto yes no ; do
2940 if test "$withval" = "$ol_val" ; then
2944 if test "$ol_arg" = "invalid" ; then
2945 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947 { (exit 1); exit 1; }; }
2949 ol_with_fetch="$ol_arg"
2952 ol_with_fetch="auto"
2956 # OpenLDAP --with-threads
2958 # Check whether --with-threads was given.
2959 if test "${with_threads+set}" = set; then
2960 withval=$with_threads;
2962 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2963 if test "$withval" = "$ol_val" ; then
2967 if test "$ol_arg" = "invalid" ; then
2968 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2969 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2970 { (exit 1); exit 1; }; }
2972 ol_with_threads="$ol_arg"
2975 ol_with_threads="auto"
2977 # end --with-threads
2979 # OpenLDAP --with-tls
2981 # Check whether --with-tls was given.
2982 if test "${with_tls+set}" = set; then
2985 for ol_val in auto openssl gnutls moznss yes no ; do
2986 if test "$withval" = "$ol_val" ; then
2990 if test "$ol_arg" = "invalid" ; then
2991 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2992 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2993 { (exit 1); exit 1; }; }
2995 ol_with_tls="$ol_arg"
3002 # OpenLDAP --with-yielding_select
3004 # Check whether --with-yielding_select was given.
3005 if test "${with_yielding_select+set}" = set; then
3006 withval=$with_yielding_select;
3008 for ol_val in auto yes no manual ; do
3009 if test "$withval" = "$ol_val" ; then
3013 if test "$ol_arg" = "invalid" ; then
3014 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3015 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3016 { (exit 1); exit 1; }; }
3018 ol_with_yielding_select="$ol_arg"
3021 ol_with_yielding_select="auto"
3023 # end --with-yielding_select
3025 # OpenLDAP --with-mp
3027 # Check whether --with-mp was given.
3028 if test "${with_mp+set}" = set; then
3031 for ol_val in auto longlong long bignum gmp yes no ; do
3032 if test "$withval" = "$ol_val" ; then
3036 if test "$ol_arg" = "invalid" ; then
3037 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3038 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3039 { (exit 1); exit 1; }; }
3041 ol_with_mp="$ol_arg"
3048 # OpenLDAP --with-odbc
3050 # Check whether --with-odbc was given.
3051 if test "${with_odbc+set}" = set; then
3054 for ol_val in auto iodbc unixodbc odbc32 ; do
3055 if test "$withval" = "$ol_val" ; then
3059 if test "$ol_arg" = "invalid" ; then
3060 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3061 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3062 { (exit 1); exit 1; }; }
3064 ol_with_odbc="$ol_arg"
3073 # Check whether --enable-xxslapdoptions was given.
3074 if test "${enable_xxslapdoptions+set}" = set; then
3075 enableval=$enable_xxslapdoptions;
3078 # OpenLDAP --enable-slapd
3080 # Check whether --enable-slapd was given.
3081 if test "${enable_slapd+set}" = set; then
3082 enableval=$enable_slapd;
3084 for ol_val in auto yes no ; do
3085 if test "$enableval" = "$ol_val" ; then
3089 if test "$ol_arg" = "invalid" ; then
3090 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3092 { (exit 1); exit 1; }; }
3094 ol_enable_slapd="$ol_arg"
3100 # end --enable-slapd
3101 # OpenLDAP --enable-dynacl
3103 # Check whether --enable-dynacl was given.
3104 if test "${enable_dynacl+set}" = set; then
3105 enableval=$enable_dynacl;
3107 for ol_val in auto yes no ; do
3108 if test "$enableval" = "$ol_val" ; then
3112 if test "$ol_arg" = "invalid" ; then
3113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3115 { (exit 1); exit 1; }; }
3117 ol_enable_dynacl="$ol_arg"
3123 # end --enable-dynacl
3124 # OpenLDAP --enable-aci
3126 # Check whether --enable-aci was given.
3127 if test "${enable_aci+set}" = set; then
3128 enableval=$enable_aci;
3130 for ol_val in no yes mod ; do
3131 if test "$enableval" = "$ol_val" ; then
3135 if test "$ol_arg" = "invalid" ; then
3136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3138 { (exit 1); exit 1; }; }
3140 ol_enable_aci="$ol_arg"
3147 # OpenLDAP --enable-cleartext
3149 # Check whether --enable-cleartext was given.
3150 if test "${enable_cleartext+set}" = set; then
3151 enableval=$enable_cleartext;
3153 for ol_val in auto yes no ; do
3154 if test "$enableval" = "$ol_val" ; then
3158 if test "$ol_arg" = "invalid" ; then
3159 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3161 { (exit 1); exit 1; }; }
3163 ol_enable_cleartext="$ol_arg"
3166 ol_enable_cleartext=yes
3169 # end --enable-cleartext
3170 # OpenLDAP --enable-crypt
3172 # Check whether --enable-crypt was given.
3173 if test "${enable_crypt+set}" = set; then
3174 enableval=$enable_crypt;
3176 for ol_val in auto yes no ; do
3177 if test "$enableval" = "$ol_val" ; then
3181 if test "$ol_arg" = "invalid" ; then
3182 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3184 { (exit 1); exit 1; }; }
3186 ol_enable_crypt="$ol_arg"
3192 # end --enable-crypt
3193 # OpenLDAP --enable-lmpasswd
3195 # Check whether --enable-lmpasswd was given.
3196 if test "${enable_lmpasswd+set}" = set; then
3197 enableval=$enable_lmpasswd;
3199 for ol_val in auto yes no ; do
3200 if test "$enableval" = "$ol_val" ; then
3204 if test "$ol_arg" = "invalid" ; then
3205 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3207 { (exit 1); exit 1; }; }
3209 ol_enable_lmpasswd="$ol_arg"
3212 ol_enable_lmpasswd=no
3215 # end --enable-lmpasswd
3216 # OpenLDAP --enable-spasswd
3218 # Check whether --enable-spasswd was given.
3219 if test "${enable_spasswd+set}" = set; then
3220 enableval=$enable_spasswd;
3222 for ol_val in auto yes no ; do
3223 if test "$enableval" = "$ol_val" ; then
3227 if test "$ol_arg" = "invalid" ; then
3228 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3230 { (exit 1); exit 1; }; }
3232 ol_enable_spasswd="$ol_arg"
3235 ol_enable_spasswd=no
3238 # end --enable-spasswd
3239 # OpenLDAP --enable-modules
3241 # Check whether --enable-modules was given.
3242 if test "${enable_modules+set}" = set; then
3243 enableval=$enable_modules;
3245 for ol_val in auto yes no ; do
3246 if test "$enableval" = "$ol_val" ; then
3250 if test "$ol_arg" = "invalid" ; then
3251 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3253 { (exit 1); exit 1; }; }
3255 ol_enable_modules="$ol_arg"
3258 ol_enable_modules=no
3261 # end --enable-modules
3262 # OpenLDAP --enable-rewrite
3264 # Check whether --enable-rewrite was given.
3265 if test "${enable_rewrite+set}" = set; then
3266 enableval=$enable_rewrite;
3268 for ol_val in auto yes no ; do
3269 if test "$enableval" = "$ol_val" ; then
3273 if test "$ol_arg" = "invalid" ; then
3274 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3276 { (exit 1); exit 1; }; }
3278 ol_enable_rewrite="$ol_arg"
3281 ol_enable_rewrite=auto
3284 # end --enable-rewrite
3285 # OpenLDAP --enable-rlookups
3287 # Check whether --enable-rlookups was given.
3288 if test "${enable_rlookups+set}" = set; then
3289 enableval=$enable_rlookups;
3291 for ol_val in auto yes no ; do
3292 if test "$enableval" = "$ol_val" ; then
3296 if test "$ol_arg" = "invalid" ; then
3297 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3299 { (exit 1); exit 1; }; }
3301 ol_enable_rlookups="$ol_arg"
3304 ol_enable_rlookups=no
3307 # end --enable-rlookups
3308 # OpenLDAP --enable-slapi
3310 # Check whether --enable-slapi was given.
3311 if test "${enable_slapi+set}" = set; then
3312 enableval=$enable_slapi;
3314 for ol_val in auto yes no ; do
3315 if test "$enableval" = "$ol_val" ; then
3319 if test "$ol_arg" = "invalid" ; then
3320 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3322 { (exit 1); exit 1; }; }
3324 ol_enable_slapi="$ol_arg"
3330 # end --enable-slapi
3331 # OpenLDAP --enable-slp
3333 # Check whether --enable-slp was given.
3334 if test "${enable_slp+set}" = set; then
3335 enableval=$enable_slp;
3337 for ol_val in auto yes no ; do
3338 if test "$enableval" = "$ol_val" ; then
3342 if test "$ol_arg" = "invalid" ; then
3343 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3345 { (exit 1); exit 1; }; }
3347 ol_enable_slp="$ol_arg"
3354 # OpenLDAP --enable-wrappers
3356 # Check whether --enable-wrappers was given.
3357 if test "${enable_wrappers+set}" = set; then
3358 enableval=$enable_wrappers;
3360 for ol_val in auto yes no ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_wrappers="$ol_arg"
3373 ol_enable_wrappers=no
3376 # end --enable-wrappers
3393 # Check whether --enable-xxslapbackends was given.
3394 if test "${enable_xxslapbackends+set}" = set; then
3395 enableval=$enable_xxslapbackends;
3399 # OpenLDAP --enable-backends
3401 # Check whether --enable-backends was given.
3402 if test "${enable_backends+set}" = set; then
3403 enableval=$enable_backends;
3405 for ol_val in no yes mod ; do
3406 if test "$enableval" = "$ol_val" ; then
3410 if test "$ol_arg" = "invalid" ; then
3411 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3412 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3413 { (exit 1); exit 1; }; }
3415 ol_enable_backends="$ol_arg"
3419 # end --enable-backends
3420 # OpenLDAP --enable-bdb
3422 # Check whether --enable-bdb was given.
3423 if test "${enable_bdb+set}" = set; then
3424 enableval=$enable_bdb;
3426 for ol_val in no yes mod ; do
3427 if test "$enableval" = "$ol_val" ; then
3431 if test "$ol_arg" = "invalid" ; then
3432 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3434 { (exit 1); exit 1; }; }
3436 ol_enable_bdb="$ol_arg"
3439 ol_enable_bdb=${ol_enable_backends:-no}
3443 # OpenLDAP --enable-dnssrv
3445 # Check whether --enable-dnssrv was given.
3446 if test "${enable_dnssrv+set}" = set; then
3447 enableval=$enable_dnssrv;
3449 for ol_val in no yes mod ; do
3450 if test "$enableval" = "$ol_val" ; then
3454 if test "$ol_arg" = "invalid" ; then
3455 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3457 { (exit 1); exit 1; }; }
3459 ol_enable_dnssrv="$ol_arg"
3462 ol_enable_dnssrv=${ol_enable_backends:-no}
3465 # end --enable-dnssrv
3466 # OpenLDAP --enable-hdb
3468 # Check whether --enable-hdb was given.
3469 if test "${enable_hdb+set}" = set; then
3470 enableval=$enable_hdb;
3472 for ol_val in no yes mod ; do
3473 if test "$enableval" = "$ol_val" ; then
3477 if test "$ol_arg" = "invalid" ; then
3478 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3480 { (exit 1); exit 1; }; }
3482 ol_enable_hdb="$ol_arg"
3485 ol_enable_hdb=${ol_enable_backends:-yes}
3489 # OpenLDAP --enable-ldap
3491 # Check whether --enable-ldap was given.
3492 if test "${enable_ldap+set}" = set; then
3493 enableval=$enable_ldap;
3495 for ol_val in no yes mod ; do
3496 if test "$enableval" = "$ol_val" ; then
3500 if test "$ol_arg" = "invalid" ; then
3501 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3503 { (exit 1); exit 1; }; }
3505 ol_enable_ldap="$ol_arg"
3508 ol_enable_ldap=${ol_enable_backends:-no}
3512 # OpenLDAP --enable-meta
3514 # Check whether --enable-meta was given.
3515 if test "${enable_meta+set}" = set; then
3516 enableval=$enable_meta;
3518 for ol_val in no yes mod ; do
3519 if test "$enableval" = "$ol_val" ; then
3523 if test "$ol_arg" = "invalid" ; then
3524 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3526 { (exit 1); exit 1; }; }
3528 ol_enable_meta="$ol_arg"
3531 ol_enable_meta=${ol_enable_backends:-no}
3535 # OpenLDAP --enable-monitor
3537 # Check whether --enable-monitor was given.
3538 if test "${enable_monitor+set}" = set; then
3539 enableval=$enable_monitor;
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-monitor" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3549 { (exit 1); exit 1; }; }
3551 ol_enable_monitor="$ol_arg"
3554 ol_enable_monitor=${ol_enable_backends:-yes}
3557 # end --enable-monitor
3558 # OpenLDAP --enable-ndb
3560 # Check whether --enable-ndb was given.
3561 if test "${enable_ndb+set}" = set; then
3562 enableval=$enable_ndb;
3564 for ol_val in no yes mod ; do
3565 if test "$enableval" = "$ol_val" ; then
3569 if test "$ol_arg" = "invalid" ; then
3570 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3572 { (exit 1); exit 1; }; }
3574 ol_enable_ndb="$ol_arg"
3577 ol_enable_ndb=${ol_enable_backends:-no}
3581 # OpenLDAP --enable-null
3583 # Check whether --enable-null was given.
3584 if test "${enable_null+set}" = set; then
3585 enableval=$enable_null;
3587 for ol_val in no yes mod ; do
3588 if test "$enableval" = "$ol_val" ; then
3592 if test "$ol_arg" = "invalid" ; then
3593 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3595 { (exit 1); exit 1; }; }
3597 ol_enable_null="$ol_arg"
3600 ol_enable_null=${ol_enable_backends:-no}
3604 # OpenLDAP --enable-passwd
3606 # Check whether --enable-passwd was given.
3607 if test "${enable_passwd+set}" = set; then
3608 enableval=$enable_passwd;
3610 for ol_val in no yes mod ; do
3611 if test "$enableval" = "$ol_val" ; then
3615 if test "$ol_arg" = "invalid" ; then
3616 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3618 { (exit 1); exit 1; }; }
3620 ol_enable_passwd="$ol_arg"
3623 ol_enable_passwd=${ol_enable_backends:-no}
3626 # end --enable-passwd
3627 # OpenLDAP --enable-perl
3629 # Check whether --enable-perl was given.
3630 if test "${enable_perl+set}" = set; then
3631 enableval=$enable_perl;
3633 for ol_val in no yes mod ; do
3634 if test "$enableval" = "$ol_val" ; then
3638 if test "$ol_arg" = "invalid" ; then
3639 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3641 { (exit 1); exit 1; }; }
3643 ol_enable_perl="$ol_arg"
3646 ol_enable_perl=${ol_enable_backends:-no}
3650 # OpenLDAP --enable-relay
3652 # Check whether --enable-relay was given.
3653 if test "${enable_relay+set}" = set; then
3654 enableval=$enable_relay;
3656 for ol_val in no yes mod ; do
3657 if test "$enableval" = "$ol_val" ; then
3661 if test "$ol_arg" = "invalid" ; then
3662 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3664 { (exit 1); exit 1; }; }
3666 ol_enable_relay="$ol_arg"
3669 ol_enable_relay=${ol_enable_backends:-yes}
3672 # end --enable-relay
3673 # OpenLDAP --enable-shell
3675 # Check whether --enable-shell was given.
3676 if test "${enable_shell+set}" = set; then
3677 enableval=$enable_shell;
3679 for ol_val in no yes mod ; do
3680 if test "$enableval" = "$ol_val" ; then
3684 if test "$ol_arg" = "invalid" ; then
3685 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3687 { (exit 1); exit 1; }; }
3689 ol_enable_shell="$ol_arg"
3692 ol_enable_shell=${ol_enable_backends:-no}
3695 # end --enable-shell
3696 # OpenLDAP --enable-sock
3698 # Check whether --enable-sock was given.
3699 if test "${enable_sock+set}" = set; then
3700 enableval=$enable_sock;
3702 for ol_val in no yes mod ; do
3703 if test "$enableval" = "$ol_val" ; then
3707 if test "$ol_arg" = "invalid" ; then
3708 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3710 { (exit 1); exit 1; }; }
3712 ol_enable_sock="$ol_arg"
3715 ol_enable_sock=${ol_enable_backends:-no}
3719 # OpenLDAP --enable-sql
3721 # Check whether --enable-sql was given.
3722 if test "${enable_sql+set}" = set; then
3723 enableval=$enable_sql;
3725 for ol_val in no yes mod ; do
3726 if test "$enableval" = "$ol_val" ; then
3730 if test "$ol_arg" = "invalid" ; then
3731 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3733 { (exit 1); exit 1; }; }
3735 ol_enable_sql="$ol_arg"
3738 ol_enable_sql=${ol_enable_backends:-no}
3743 Overlays="accesslog \
3764 # Check whether --enable-xxslapoverlays was given.
3765 if test "${enable_xxslapoverlays+set}" = set; then
3766 enableval=$enable_xxslapoverlays;
3770 # OpenLDAP --enable-overlays
3772 # Check whether --enable-overlays was given.
3773 if test "${enable_overlays+set}" = set; then
3774 enableval=$enable_overlays;
3776 for ol_val in no yes mod ; do
3777 if test "$enableval" = "$ol_val" ; then
3781 if test "$ol_arg" = "invalid" ; then
3782 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3783 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3784 { (exit 1); exit 1; }; }
3786 ol_enable_overlays="$ol_arg"
3790 # end --enable-overlays
3791 # OpenLDAP --enable-accesslog
3793 # Check whether --enable-accesslog was given.
3794 if test "${enable_accesslog+set}" = set; then
3795 enableval=$enable_accesslog;
3797 for ol_val in no yes mod ; do
3798 if test "$enableval" = "$ol_val" ; then
3802 if test "$ol_arg" = "invalid" ; then
3803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3805 { (exit 1); exit 1; }; }
3807 ol_enable_accesslog="$ol_arg"
3810 ol_enable_accesslog=${ol_enable_overlays:-no}
3813 # end --enable-accesslog
3815 # OpenLDAP --enable-auditlog
3817 # Check whether --enable-auditlog was given.
3818 if test "${enable_auditlog+set}" = set; then
3819 enableval=$enable_auditlog;
3821 for ol_val in no yes mod ; do
3822 if test "$enableval" = "$ol_val" ; then
3826 if test "$ol_arg" = "invalid" ; then
3827 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3828 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3829 { (exit 1); exit 1; }; }
3831 ol_enable_auditlog="$ol_arg"
3834 ol_enable_auditlog=${ol_enable_overlays:-no}
3837 # end --enable-auditlog
3839 # OpenLDAP --enable-collect
3841 # Check whether --enable-collect was given.
3842 if test "${enable_collect+set}" = set; then
3843 enableval=$enable_collect;
3845 for ol_val in no yes mod ; do
3846 if test "$enableval" = "$ol_val" ; then
3850 if test "$ol_arg" = "invalid" ; then
3851 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3852 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3853 { (exit 1); exit 1; }; }
3855 ol_enable_collect="$ol_arg"
3858 ol_enable_collect=${ol_enable_overlays:-no}
3861 # end --enable-collect
3863 # OpenLDAP --enable-constraint
3865 # Check whether --enable-constraint was given.
3866 if test "${enable_constraint+set}" = set; then
3867 enableval=$enable_constraint;
3869 for ol_val in no yes mod ; do
3870 if test "$enableval" = "$ol_val" ; then
3874 if test "$ol_arg" = "invalid" ; then
3875 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3876 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3877 { (exit 1); exit 1; }; }
3879 ol_enable_constraint="$ol_arg"
3882 ol_enable_constraint=${ol_enable_overlays:-no}
3885 # end --enable-constraint
3887 # OpenLDAP --enable-dds
3889 # Check whether --enable-dds was given.
3890 if test "${enable_dds+set}" = set; then
3891 enableval=$enable_dds;
3893 for ol_val in no yes mod ; do
3894 if test "$enableval" = "$ol_val" ; then
3898 if test "$ol_arg" = "invalid" ; then
3899 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3900 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3901 { (exit 1); exit 1; }; }
3903 ol_enable_dds="$ol_arg"
3906 ol_enable_dds=${ol_enable_overlays:-no}
3911 # OpenLDAP --enable-deref
3913 # Check whether --enable-deref was given.
3914 if test "${enable_deref+set}" = set; then
3915 enableval=$enable_deref;
3917 for ol_val in no yes mod ; do
3918 if test "$enableval" = "$ol_val" ; then
3922 if test "$ol_arg" = "invalid" ; then
3923 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3924 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3925 { (exit 1); exit 1; }; }
3927 ol_enable_deref="$ol_arg"
3930 ol_enable_deref=${ol_enable_overlays:-no}
3933 # end --enable-deref
3935 # OpenLDAP --enable-dyngroup
3937 # Check whether --enable-dyngroup was given.
3938 if test "${enable_dyngroup+set}" = set; then
3939 enableval=$enable_dyngroup;
3941 for ol_val in no yes mod ; do
3942 if test "$enableval" = "$ol_val" ; then
3946 if test "$ol_arg" = "invalid" ; then
3947 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3948 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3949 { (exit 1); exit 1; }; }
3951 ol_enable_dyngroup="$ol_arg"
3954 ol_enable_dyngroup=${ol_enable_overlays:-no}
3957 # end --enable-dyngroup
3959 # OpenLDAP --enable-dynlist
3961 # Check whether --enable-dynlist was given.
3962 if test "${enable_dynlist+set}" = set; then
3963 enableval=$enable_dynlist;
3965 for ol_val in no yes mod ; do
3966 if test "$enableval" = "$ol_val" ; then
3970 if test "$ol_arg" = "invalid" ; then
3971 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3972 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3973 { (exit 1); exit 1; }; }
3975 ol_enable_dynlist="$ol_arg"
3978 ol_enable_dynlist=${ol_enable_overlays:-no}
3981 # end --enable-dynlist
3983 # OpenLDAP --enable-memberof
3985 # Check whether --enable-memberof was given.
3986 if test "${enable_memberof+set}" = set; then
3987 enableval=$enable_memberof;
3989 for ol_val in no yes mod ; do
3990 if test "$enableval" = "$ol_val" ; then
3994 if test "$ol_arg" = "invalid" ; then
3995 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3996 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3997 { (exit 1); exit 1; }; }
3999 ol_enable_memberof="$ol_arg"
4002 ol_enable_memberof=${ol_enable_overlays:-no}
4005 # end --enable-memberof
4007 # OpenLDAP --enable-ppolicy
4009 # Check whether --enable-ppolicy was given.
4010 if test "${enable_ppolicy+set}" = set; then
4011 enableval=$enable_ppolicy;
4013 for ol_val in no yes mod ; do
4014 if test "$enableval" = "$ol_val" ; then
4018 if test "$ol_arg" = "invalid" ; then
4019 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4020 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4021 { (exit 1); exit 1; }; }
4023 ol_enable_ppolicy="$ol_arg"
4026 ol_enable_ppolicy=${ol_enable_overlays:-no}
4029 # end --enable-ppolicy
4031 # OpenLDAP --enable-proxycache
4033 # Check whether --enable-proxycache was given.
4034 if test "${enable_proxycache+set}" = set; then
4035 enableval=$enable_proxycache;
4037 for ol_val in no yes mod ; do
4038 if test "$enableval" = "$ol_val" ; then
4042 if test "$ol_arg" = "invalid" ; then
4043 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4044 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4045 { (exit 1); exit 1; }; }
4047 ol_enable_proxycache="$ol_arg"
4050 ol_enable_proxycache=${ol_enable_overlays:-no}
4053 # end --enable-proxycache
4055 # OpenLDAP --enable-refint
4057 # Check whether --enable-refint was given.
4058 if test "${enable_refint+set}" = set; then
4059 enableval=$enable_refint;
4061 for ol_val in no yes mod ; do
4062 if test "$enableval" = "$ol_val" ; then
4066 if test "$ol_arg" = "invalid" ; then
4067 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4068 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4069 { (exit 1); exit 1; }; }
4071 ol_enable_refint="$ol_arg"
4074 ol_enable_refint=${ol_enable_overlays:-no}
4077 # end --enable-refint
4079 # OpenLDAP --enable-retcode
4081 # Check whether --enable-retcode was given.
4082 if test "${enable_retcode+set}" = set; then
4083 enableval=$enable_retcode;
4085 for ol_val in no yes mod ; do
4086 if test "$enableval" = "$ol_val" ; then
4090 if test "$ol_arg" = "invalid" ; then
4091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4092 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4093 { (exit 1); exit 1; }; }
4095 ol_enable_retcode="$ol_arg"
4098 ol_enable_retcode=${ol_enable_overlays:-no}
4101 # end --enable-retcode
4103 # OpenLDAP --enable-rwm
4105 # Check whether --enable-rwm was given.
4106 if test "${enable_rwm+set}" = set; then
4107 enableval=$enable_rwm;
4109 for ol_val in no yes mod ; do
4110 if test "$enableval" = "$ol_val" ; then
4114 if test "$ol_arg" = "invalid" ; then
4115 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4116 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4117 { (exit 1); exit 1; }; }
4119 ol_enable_rwm="$ol_arg"
4122 ol_enable_rwm=${ol_enable_overlays:-no}
4127 # OpenLDAP --enable-seqmod
4129 # Check whether --enable-seqmod was given.
4130 if test "${enable_seqmod+set}" = set; then
4131 enableval=$enable_seqmod;
4133 for ol_val in no yes mod ; do
4134 if test "$enableval" = "$ol_val" ; then
4138 if test "$ol_arg" = "invalid" ; then
4139 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4140 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4141 { (exit 1); exit 1; }; }
4143 ol_enable_seqmod="$ol_arg"
4146 ol_enable_seqmod=${ol_enable_overlays:-no}
4149 # end --enable-seqmod
4151 # OpenLDAP --enable-sssvlv
4153 # Check whether --enable-sssvlv was given.
4154 if test "${enable_sssvlv+set}" = set; then
4155 enableval=$enable_sssvlv;
4157 for ol_val in no yes mod ; do
4158 if test "$enableval" = "$ol_val" ; then
4162 if test "$ol_arg" = "invalid" ; then
4163 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4164 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4165 { (exit 1); exit 1; }; }
4167 ol_enable_sssvlv="$ol_arg"
4170 ol_enable_sssvlv=${ol_enable_overlays:-no}
4173 # end --enable-sssvlv
4175 # OpenLDAP --enable-syncprov
4177 # Check whether --enable-syncprov was given.
4178 if test "${enable_syncprov+set}" = set; then
4179 enableval=$enable_syncprov;
4181 for ol_val in no yes mod ; do
4182 if test "$enableval" = "$ol_val" ; then
4186 if test "$ol_arg" = "invalid" ; then
4187 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4188 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4189 { (exit 1); exit 1; }; }
4191 ol_enable_syncprov="$ol_arg"
4194 ol_enable_syncprov=${ol_enable_overlays:-yes}
4197 # end --enable-syncprov
4199 # OpenLDAP --enable-translucent
4201 # Check whether --enable-translucent was given.
4202 if test "${enable_translucent+set}" = set; then
4203 enableval=$enable_translucent;
4205 for ol_val in no yes mod ; do
4206 if test "$enableval" = "$ol_val" ; then
4210 if test "$ol_arg" = "invalid" ; then
4211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4212 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4213 { (exit 1); exit 1; }; }
4215 ol_enable_translucent="$ol_arg"
4218 ol_enable_translucent=${ol_enable_overlays:-no}
4221 # end --enable-translucent
4223 # OpenLDAP --enable-unique
4225 # Check whether --enable-unique was given.
4226 if test "${enable_unique+set}" = set; then
4227 enableval=$enable_unique;
4229 for ol_val in no yes mod ; do
4230 if test "$enableval" = "$ol_val" ; then
4234 if test "$ol_arg" = "invalid" ; then
4235 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4236 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4237 { (exit 1); exit 1; }; }
4239 ol_enable_unique="$ol_arg"
4242 ol_enable_unique=${ol_enable_overlays:-no}
4245 # end --enable-unique
4247 # OpenLDAP --enable-valsort
4249 # Check whether --enable-valsort was given.
4250 if test "${enable_valsort+set}" = set; then
4251 enableval=$enable_valsort;
4253 for ol_val in no yes mod ; do
4254 if test "$enableval" = "$ol_val" ; then
4258 if test "$ol_arg" = "invalid" ; then
4259 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4260 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4261 { (exit 1); exit 1; }; }
4263 ol_enable_valsort="$ol_arg"
4266 ol_enable_valsort=${ol_enable_overlays:-no}
4269 # end --enable-valsort
4272 # Check whether --enable-xxliboptions was given.
4273 if test "${enable_xxliboptions+set}" = set; then
4274 enableval=$enable_xxliboptions;
4277 # Check whether --enable-static was given.
4278 if test "${enable_static+set}" = set; then
4279 enableval=$enable_static; p=${PACKAGE-default}
4281 yes) enable_static=yes ;;
4282 no) enable_static=no ;;
4285 # Look at the argument we got. We use all the common list separators.
4286 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4287 for pkg in $enableval; do
4289 if test "X$pkg" = "X$p"; then
4301 # Check whether --enable-shared was given.
4302 if test "${enable_shared+set}" = set; then
4303 enableval=$enable_shared; p=${PACKAGE-default}
4305 yes) enable_shared=yes ;;
4306 no) enable_shared=no ;;
4309 # Look at the argument we got. We use all the common list separators.
4310 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4311 for pkg in $enableval; do
4313 if test "X$pkg" = "X$p"; then
4328 if test $ol_enable_slapd = no ; then
4329 if test $ol_enable_slapi = yes ; then
4330 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4331 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4333 case "$ol_enable_backends" in yes | mod)
4334 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4335 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4337 for i in $Backends; do
4338 eval "ol_tmp=\$ol_enable_$i"
4339 if test $ol_tmp != no ; then
4340 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4341 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4342 eval "ol_enable_$i=no"
4345 if test $ol_enable_modules = yes ; then
4346 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4347 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4349 if test $ol_enable_wrappers = yes ; then
4350 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4351 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4353 if test $ol_enable_rlookups = yes ; then
4354 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4355 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4357 if test $ol_enable_dynacl = yes ; then
4358 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4359 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4361 if test $ol_enable_aci != no ; then
4362 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4365 if test $ol_enable_rewrite = yes ; then
4366 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4367 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4369 case "$ol_enable_overlays" in yes | mod)
4370 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4371 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4373 for i in $Overlays; do
4374 eval "ol_tmp=\$ol_enable_$i"
4375 if test $ol_tmp != no ; then
4376 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4378 eval "ol_enable_$i=no"
4382 # force settings to no
4387 ol_enable_modules=no
4388 ol_enable_rlookups=no
4391 ol_enable_wrappers=no
4393 ol_enable_rewrite=no
4395 elif test $ol_enable_modules != yes &&
4396 test $ol_enable_bdb = no &&
4397 test $ol_enable_dnssrv = no &&
4398 test $ol_enable_hdb = no &&
4399 test $ol_enable_ldap = no &&
4400 test $ol_enable_meta = no &&
4401 test $ol_enable_monitor = no &&
4402 test $ol_enable_ndb = no &&
4403 test $ol_enable_null = no &&
4404 test $ol_enable_passwd = no &&
4405 test $ol_enable_perl = no &&
4406 test $ol_enable_relay = no &&
4407 test $ol_enable_shell = no &&
4408 test $ol_enable_sock = no &&
4409 test $ol_enable_sql = no ; then
4411 if test $ol_enable_slapd = yes ; then
4412 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4413 echo "$as_me: error: slapd requires a backend" >&2;}
4414 { (exit 1); exit 1; }; }
4416 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4417 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4422 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4423 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4424 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4425 { (exit 1); exit 1; }; }
4428 if test $ol_enable_lmpasswd = yes ; then
4429 if test $ol_with_tls = no ; then
4430 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4431 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4432 { (exit 1); exit 1; }; }
4436 if test $ol_enable_spasswd = yes ; then
4437 if test $ol_with_cyrus_sasl = no ; then
4438 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4439 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4440 { (exit 1); exit 1; }; }
4442 ol_with_cyrus_sasl=yes
4445 { echo "$as_me:$LINENO: result: done" >&5
4446 echo "${ECHO_T}done" >&6; }
4496 BUILD_TRANSLUCENT=no
4500 SLAPD_STATIC_OVERLAYS=
4501 SLAPD_DYNAMIC_OVERLAYS=
4503 SLAPD_MODULES_LDFLAGS=
4504 SLAPD_MODULES_CPPFLAGS=
4506 SLAPD_STATIC_BACKENDS=back-ldif
4507 SLAPD_DYNAMIC_BACKENDS=
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_MKVERSION 1
4542 *-*-aix*) if test -z "$CC" ; then
4543 case "$ol_with_threads" in
4544 auto | yes | posix) ol_aix_threads=yes ;;
4550 if test $ol_aix_threads = yes ; then
4551 if test -z "${CC}" ; then
4552 for ac_prog in cc_r xlc_r cc
4554 # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_CC+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -n "$CC"; then
4562 ac_cv_prog_CC="$CC" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_CC="$ac_prog"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 if test -n "$CC"; then
4583 { echo "$as_me:$LINENO: result: $CC" >&5
4584 echo "${ECHO_T}$CC" >&6; }
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4591 test -n "$CC" && break
4595 if test "$CC" = cc ; then
4596 if test $ol_with_threads != auto ; then
4597 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4598 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4599 { (exit 1); exit 1; }; }
4601 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4602 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4608 case ${CC} in cc_r | xlc_r)
4609 ol_with_threads=posix
4610 ol_cv_pthread_create=yes
4615 if test -z "${CC}"; then
4616 for ac_prog in cc gcc
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="$ac_prog"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4655 test -n "$CC" && break
4657 test -n "$CC" || CC="missing"
4660 if test "${CC}" = "missing" ; then
4661 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4662 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4663 { (exit 1); exit 1; }; }
4667 if test -z "${AR}"; then
4668 for ac_prog in ar gar
4670 # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AR+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 if test -n "$AR"; then
4678 ac_cv_prog_AR="$AR" # Let the user override the test.
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 test -z "$as_dir" && as_dir=.
4685 for ac_exec_ext in '' $ac_executable_extensions; do
4686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687 ac_cv_prog_AR="$ac_prog"
4688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 if test -n "$AR"; then
4699 { echo "$as_me:$LINENO: result: $AR" >&5
4700 echo "${ECHO_T}$AR" >&6; }
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4707 test -n "$AR" && break
4709 test -n "$AR" || AR="missing"
4712 if test "${AR}" = "missing" ; then
4713 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4714 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4715 { (exit 1); exit 1; }; }
4723 # Check whether --enable-fast-install was given.
4724 if test "${enable_fast_install+set}" = set; then
4725 enableval=$enable_fast_install; p=${PACKAGE-default}
4727 yes) enable_fast_install=yes ;;
4728 no) enable_fast_install=no ;;
4730 enable_fast_install=no
4731 # Look at the argument we got. We use all the common list separators.
4732 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4733 for pkg in $enableval; do
4735 if test "X$pkg" = "X$p"; then
4736 enable_fast_install=yes
4743 enable_fast_install=yes
4747 DEPDIR="${am__leading_dot}deps"
4749 ac_config_commands="$ac_config_commands depfiles"
4752 am_make=${MAKE-make}
4753 cat > confinc << 'END'
4758 # If we don't find an include directive, just comment out the code.
4759 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4760 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4764 # First try GNU make style include.
4765 echo "include confinc" > confmf
4766 # We grep out `Entering directory' and `Leaving directory'
4767 # messages which can occur if `w' ends up in MAKEFLAGS.
4768 # In particular we don't look at `^make:' because GNU make might
4769 # be invoked under some other name (usually "gmake"), in which
4770 # case it prints its new name instead of `make'.
4771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4776 # Now try BSD make style include.
4777 if test "$am__include" = "#"; then
4778 echo '.include "confinc"' > confmf
4779 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4780 am__include=.include
4787 { echo "$as_me:$LINENO: result: $_am_result" >&5
4788 echo "${ECHO_T}$_am_result" >&6; }
4789 rm -f confinc confmf
4791 # Check whether --enable-dependency-tracking was given.
4792 if test "${enable_dependency_tracking+set}" = set; then
4793 enableval=$enable_dependency_tracking;
4796 if test "x$enable_dependency_tracking" != xno; then
4797 am_depcomp="$ac_aux_dir/depcomp"
4802 if test "x$enable_dependency_tracking" != xno; then
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 if test -n "$CC"; then
4826 ac_cv_prog_CC="$CC" # Let the user override the test.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846 if test -n "$CC"; then
4847 { echo "$as_me:$LINENO: result: $CC" >&5
4848 echo "${ECHO_T}$CC" >&6; }
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4856 if test -z "$ac_cv_prog_CC"; then
4858 # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 if test -n "$ac_ct_CC"; then
4866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_ac_ct_CC="gcc"
4876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4888 echo "${ECHO_T}$ac_ct_CC" >&6; }
4890 { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4894 if test "x$ac_ct_CC" = x; then
4897 case $cross_compiling:$ac_tool_warned in
4899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4900 whose name does not start with the host triplet. If you think this
4901 configuration is useful to you, please write to autoconf@gnu.org." >&5
4902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4903 whose name does not start with the host triplet. If you think this
4904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4905 ac_tool_warned=yes ;;
4913 if test -z "$CC"; then
4914 if test -n "$ac_tool_prefix"; then
4915 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}cc; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4922 if test -n "$CC"; then
4923 ac_cv_prog_CC="$CC" # Let the user override the test.
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_CC="${ac_tool_prefix}cc"
4933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 if test -n "$CC"; then
4944 { echo "$as_me:$LINENO: result: $CC" >&5
4945 echo "${ECHO_T}$CC" >&6; }
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4954 if test -z "$CC"; then
4955 # Extract the first word of "cc", so it can be a program name with args.
4956 set dummy cc; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then
4960 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 if test -n "$CC"; then
4963 ac_cv_prog_CC="$CC" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4974 ac_prog_rejected=yes
4978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 if test $ac_prog_rejected = yes; then
4986 # We found a bogon in the path, so make sure we never use it.
4987 set dummy $ac_cv_prog_CC
4989 if test $# != 0; then
4990 # We chose a different compiler from the bogus one.
4991 # However, it has the same basename, so the bogon will be chosen
4992 # first if we set CC to just the basename; use the full file name.
4994 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5000 if test -n "$CC"; then
5001 { echo "$as_me:$LINENO: result: $CC" >&5
5002 echo "${ECHO_T}$CC" >&6; }
5004 { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5010 if test -z "$CC"; then
5011 if test -n "$ac_tool_prefix"; then
5012 for ac_prog in cl.exe
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 if test -n "$CC"; then
5022 ac_cv_prog_CC="$CC" # Let the user override the test.
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test -n "$CC"; then
5043 { echo "$as_me:$LINENO: result: $CC" >&5
5044 echo "${ECHO_T}$CC" >&6; }
5046 { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5051 test -n "$CC" && break
5054 if test -z "$CC"; then
5056 for ac_prog in cl.exe
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 if test -n "$ac_ct_CC"; then
5066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_ac_ct_CC="$ac_prog"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5086 if test -n "$ac_ct_CC"; then
5087 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5088 echo "${ECHO_T}$ac_ct_CC" >&6; }
5090 { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5095 test -n "$ac_ct_CC" && break
5098 if test "x$ac_ct_CC" = x; then
5101 case $cross_compiling:$ac_tool_warned in
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet. If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet. If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&2;}
5122 { (exit 1); exit 1; }; }
5124 # Provide some information about the compiler.
5125 echo "$as_me:$LINENO: checking for C compiler version" >&5
5126 ac_compiler=`set X $ac_compile; echo $2`
5127 { (ac_try="$ac_compiler --version >&5"
5129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130 *) ac_try_echo=$ac_try;;
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133 (eval "$ac_compiler --version >&5") 2>&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); }
5137 { (ac_try="$ac_compiler -v >&5"
5139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140 *) ac_try_echo=$ac_try;;
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143 (eval "$ac_compiler -v >&5") 2>&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }
5147 { (ac_try="$ac_compiler -V >&5"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compiler -V >&5") 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5158 cat >conftest.$ac_ext <<_ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5173 ac_clean_files_save=$ac_clean_files
5174 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5175 # Try to create an executable without -o first, disregard a.out.
5176 # It will help us diagnose broken compilers, and finding out an intuition
5178 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5180 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5182 # List of possible output files, starting from the most likely.
5183 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5184 # only as a last resort. b.out is created by i960 compilers.
5185 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5187 # The IRIX 6 linker writes into existing files which may not be
5188 # executable, retaining their permissions. Remove them first so a
5189 # subsequent execution test works.
5191 for ac_file in $ac_files
5194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5195 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5200 if { (ac_try="$ac_link_default"
5202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203 *) ac_try_echo=$ac_try;;
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206 (eval "$ac_link_default") 2>&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; then
5210 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5213 # so that the user can short-circuit this test for compilers unknown to
5215 for ac_file in $ac_files ''
5217 test -f "$ac_file" || continue
5219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5222 # We found the default executable, but exeext='' is most
5226 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5228 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5230 # We set ac_cv_exeext here because the later test for it is not
5231 # safe: cross compilers may not add the suffix if given an `-o'
5232 # argument, so we may need to know it at that point already.
5233 # Even if this section looks crufty: it has the advantage of
5240 test "$ac_cv_exeext" = no && ac_cv_exeext=
5246 { echo "$as_me:$LINENO: result: $ac_file" >&5
5247 echo "${ECHO_T}$ac_file" >&6; }
5248 if test -z "$ac_file"; then
5249 echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5252 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&2;}
5256 { (exit 77); exit 77; }; }
5259 ac_exeext=$ac_cv_exeext
5261 # Check that the compiler produces executables we can run. If not, either
5262 # the compiler is broken, or we cross compile.
5263 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5266 # If not cross compiling, check that we can run a simple program.
5267 if test "$cross_compiling" != yes; then
5268 if { ac_try='./$ac_file'
5269 { (case "(($ac_try" in
5270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271 *) ac_try_echo=$ac_try;;
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274 (eval "$ac_try") 2>&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5280 if test "$cross_compiling" = maybe; then
5283 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5284 If you meant to cross compile, use \`--host'.
5285 See \`config.log' for more details." >&5
5286 echo "$as_me: error: cannot run C compiled programs.
5287 If you meant to cross compile, use \`--host'.
5288 See \`config.log' for more details." >&2;}
5289 { (exit 1); exit 1; }; }
5293 { echo "$as_me:$LINENO: result: yes" >&5
5294 echo "${ECHO_T}yes" >&6; }
5296 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5297 ac_clean_files=$ac_clean_files_save
5298 # Check that the compiler produces executables we can run. If not, either
5299 # the compiler is broken, or we cross compile.
5300 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5301 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5302 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5303 echo "${ECHO_T}$cross_compiling" >&6; }
5305 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5306 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5307 if { (ac_try="$ac_link"
5309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310 *) ac_try_echo=$ac_try;;
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313 (eval "$ac_link") 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; then
5317 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5318 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5319 # work properly (i.e., refer to `conftest.exe'), while it won't with
5321 for ac_file in conftest.exe conftest conftest.*; do
5322 test -f "$ac_file" || continue
5324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5325 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5331 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&5
5333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&2;}
5335 { (exit 1); exit 1; }; }
5338 rm -f conftest$ac_cv_exeext
5339 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5340 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5342 rm -f conftest.$ac_ext
5343 EXEEXT=$ac_cv_exeext
5345 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5347 if test "${ac_cv_objext+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 cat >conftest.$ac_ext <<_ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5365 rm -f conftest.o conftest.obj
5366 if { (ac_try="$ac_compile"
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; then
5376 for ac_file in conftest.o conftest.obj conftest.*; do
5377 test -f "$ac_file" || continue;
5379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5380 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&5
5390 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&2;}
5392 { (exit 1); exit 1; }; }
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5398 echo "${ECHO_T}$ac_cv_objext" >&6; }
5399 OBJEXT=$ac_cv_objext
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5404 echo $ECHO_N "(cached) $ECHO_C" >&6
5406 cat >conftest.$ac_ext <<_ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_compile") 2>conftest.er1
5433 grep -v '^ *+' conftest.er1 >conftest.err
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } && {
5438 test -z "$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 } && test -s conftest.$ac_objext; then
5443 echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5455 GCC=`test $ac_compiler_gnu = yes && echo yes`
5456 ac_test_CFLAGS=${CFLAGS+set}
5457 ac_save_CFLAGS=$CFLAGS
5458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5460 if test "${ac_cv_prog_cc_g+set}" = set; then
5461 echo $ECHO_N "(cached) $ECHO_C" >&6
5463 ac_save_c_werror_flag=$ac_c_werror_flag
5464 ac_c_werror_flag=yes
5467 cat >conftest.$ac_ext <<_ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524 *) ac_try_echo=$ac_try;;
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527 (eval "$ac_compile") 2>conftest.er1
5529 grep -v '^ *+' conftest.er1 >conftest.err
5531 cat conftest.err >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); } && {
5534 test -z "$ac_c_werror_flag" ||
5535 test ! -s conftest.err
5536 } && test -s conftest.$ac_objext; then
5539 echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5542 ac_c_werror_flag=$ac_save_c_werror_flag
5544 cat >conftest.$ac_ext <<_ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563 *) ac_try_echo=$ac_try;;
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566 (eval "$ac_compile") 2>conftest.er1
5568 grep -v '^ *+' conftest.er1 >conftest.err
5570 cat conftest.err >&5
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); } && {
5573 test -z "$ac_c_werror_flag" ||
5574 test ! -s conftest.err
5575 } && test -s conftest.$ac_objext; then
5578 echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 ac_c_werror_flag=$ac_save_c_werror_flag
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595 if test "$ac_test_CFLAGS" = set; then
5596 CFLAGS=$ac_save_CFLAGS
5597 elif test $ac_cv_prog_cc_g = yes; then
5598 if test "$GCC" = yes; then
5604 if test "$GCC" = yes; then
5610 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cc_c89+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 ac_cv_prog_cc_c89=no
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5625 #include <sys/types.h>
5626 #include <sys/stat.h>
5627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5628 struct buf { int x; };
5629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630 static char *e (p, i)
5636 static char *f (char * (*g) (char **, int), char **p, ...)
5641 s = g (p, va_arg (v,int));
5646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5647 function prototypes and stuff, but not '\xHH' hex character constants.
5648 These don't provoke an error unfortunately, instead are silently treated
5649 as 'x'. The following induces an error, until -std is added to get
5650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5651 array size at least. It's necessary to write '\x00'==0 to get something
5652 that's true only with -std. */
5653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656 inside strings and character constants. */
5658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5660 int test (int i, double x);
5661 struct s1 {int (*f) (int a);};
5662 struct s2 {int (*f) (double a);};
5663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5677 CC="$ac_save_CC $ac_arg"
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682 *) ac_try_echo=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1 >conftest.err
5689 cat conftest.err >&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.$ac_objext; then
5695 ac_cv_prog_cc_c89=$ac_arg
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5703 rm -f core conftest.err conftest.$ac_objext
5704 test "x$ac_cv_prog_cc_c89" != "xno" && break
5706 rm -f conftest.$ac_ext
5711 case "x$ac_cv_prog_cc_c89" in
5713 { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5716 { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5719 CC="$CC $ac_cv_prog_cc_c89"
5720 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5731 depcc="$CC" am_compiler_list=
5733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5739 # We make a subdir and do the tests there. Otherwise we can end up
5740 # making bogus files that we don't know about and never remove. For
5741 # instance it was reported that on HP-UX the gcc test will end up
5742 # making a dummy file named `D' -- because `-MD' means `put the output
5745 # Copy depcomp to subdir because otherwise we won't find it if we're
5746 # using a relative directory.
5747 cp "$am_depcomp" conftest.dir
5749 # We will build objects and dependencies in a subdirectory because
5750 # it helps to detect inapplicable dependency modes. For instance
5751 # both Tru64's cc and ICC support -MD to output dependencies as a
5752 # side effect of compilation, but ICC will put the dependencies in
5753 # the current directory while Tru64 will put them in the object
5757 am_cv_CC_dependencies_compiler_type=none
5758 if test "$am_compiler_list" = ""; then
5759 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5761 for depmode in $am_compiler_list; do
5762 # Setup a source with many dependencies, because some compilers
5763 # like to wrap large dependency lists on column 80 (with \), and
5764 # we should not choose a depcomp mode which is confused by this.
5766 # We need to recreate these files for each test, as the compiler may
5767 # overwrite some of them when testing with obscure command lines.
5768 # This happens at least with the AIX C compiler.
5770 for i in 1 2 3 4 5 6; do
5771 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773 # Solaris 8's {/usr,}/bin/sh.
5774 touch sub/conftst$i.h
5776 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5780 # after this tag, mechanisms are not by side-effect, so they'll
5781 # only be used when explicitly requested
5782 if test "x$enable_dependency_tracking" = xyes; then
5790 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5791 # mode. It turns out that the SunPro C++ compiler does not properly
5792 # handle `-M -o', and we need to detect this.
5793 if depmode=$depmode \
5794 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5797 >/dev/null 2>conftest.err &&
5798 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5800 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801 # icc doesn't choke on unknown options, it will just issue warnings
5802 # or remarks (even with -Werror). So we grep stderr for any message
5803 # that says an option was ignored or not supported.
5804 # When given -MP, icc 7.0 and 7.1 complain thusly:
5805 # icc: Command line warning: ignoring option '-M'; no argument required
5806 # The diagnosis changed in icc 8.0:
5807 # icc: Command line remark: option '-MP' not supported
5808 if (grep 'ignoring option' conftest.err ||
5809 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810 am_cv_CC_dependencies_compiler_type=$depmode
5819 am_cv_CC_dependencies_compiler_type=none
5823 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5830 test "x$enable_dependency_tracking" != xno \
5831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5833 am__fastdepCC_FALSE='#'
5835 am__fastdepCC_TRUE='#'
5836 am__fastdepCC_FALSE=
5840 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5841 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5842 if test "${lt_cv_path_SED+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 # Loop through the user's path and test for sed and gsed.
5846 # Then use that list of sed's as ones to test for truncation.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for lt_ac_prog in sed gsed; do
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5855 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5862 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5863 # along with /bin/sed that truncates output.
5864 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5865 test ! -f $lt_ac_sed && continue
5866 cat /dev/null > conftest.in
5868 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5869 # Check for GNU sed and select it if it is found.
5870 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5871 lt_cv_path_SED=$lt_ac_sed
5875 cat conftest.in conftest.in >conftest.tmp
5876 mv conftest.tmp conftest.in
5877 cp conftest.in conftest.nl
5879 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5880 cmp -s conftest.out conftest.nl || break
5881 # 10000 chars as input seems more than enough
5882 test $lt_ac_count -gt 10 && break
5883 lt_ac_count=`expr $lt_ac_count + 1`
5884 if test $lt_ac_count -gt $lt_ac_max; then
5885 lt_ac_max=$lt_ac_count
5886 lt_cv_path_SED=$lt_ac_sed
5894 { echo "$as_me:$LINENO: result: $SED" >&5
5895 echo "${ECHO_T}$SED" >&6; }
5897 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5898 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_GREP+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 # Extract the first word of "grep ggrep" to use in msg output
5903 if test -z "$GREP"; then
5904 set dummy grep ggrep; ac_prog_name=$2
5905 if test "${ac_cv_path_GREP+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_path_GREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5914 test -z "$as_dir" && as_dir=.
5915 for ac_prog in grep ggrep; do
5916 for ac_exec_ext in '' $ac_executable_extensions; do
5917 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5918 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5919 # Check for GNU ac_path_GREP and select it if it is found.
5920 # Check for GNU $ac_path_GREP
5921 case `"$ac_path_GREP" --version 2>&1` in
5923 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5926 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5929 cat "conftest.in" "conftest.in" >"conftest.tmp"
5930 mv "conftest.tmp" "conftest.in"
5931 cp "conftest.in" "conftest.nl"
5932 echo 'GREP' >> "conftest.nl"
5933 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935 ac_count=`expr $ac_count + 1`
5936 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5937 # Best one so far, save it but keep looking for a better one
5938 ac_cv_path_GREP="$ac_path_GREP"
5939 ac_path_GREP_max=$ac_count
5941 # 10*(2^10) chars as input seems more than enough
5942 test $ac_count -gt 10 && break
5944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5948 $ac_path_GREP_found && break 3
5958 GREP="$ac_cv_path_GREP"
5959 if test -z "$GREP"; then
5960 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5962 { (exit 1); exit 1; }; }
5966 ac_cv_path_GREP=$GREP
5971 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5972 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5973 GREP="$ac_cv_path_GREP"
5976 { echo "$as_me:$LINENO: checking for egrep" >&5
5977 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5978 if test "${ac_cv_path_EGREP+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5982 then ac_cv_path_EGREP="$GREP -E"
5984 # Extract the first word of "egrep" to use in msg output
5985 if test -z "$EGREP"; then
5986 set dummy egrep; ac_prog_name=$2
5987 if test "${ac_cv_path_EGREP+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_path_EGREP_found=false
5991 # Loop through the user's path and test for each of PROGNAME-LIST
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5996 test -z "$as_dir" && as_dir=.
5997 for ac_prog in egrep; do
5998 for ac_exec_ext in '' $ac_executable_extensions; do
5999 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6000 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6001 # Check for GNU ac_path_EGREP and select it if it is found.
6002 # Check for GNU $ac_path_EGREP
6003 case `"$ac_path_EGREP" --version 2>&1` in
6005 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6008 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6011 cat "conftest.in" "conftest.in" >"conftest.tmp"
6012 mv "conftest.tmp" "conftest.in"
6013 cp "conftest.in" "conftest.nl"
6014 echo 'EGREP' >> "conftest.nl"
6015 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6016 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6017 ac_count=`expr $ac_count + 1`
6018 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6019 # Best one so far, save it but keep looking for a better one
6020 ac_cv_path_EGREP="$ac_path_EGREP"
6021 ac_path_EGREP_max=$ac_count
6023 # 10*(2^10) chars as input seems more than enough
6024 test $ac_count -gt 10 && break
6026 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6030 $ac_path_EGREP_found && break 3
6040 EGREP="$ac_cv_path_EGREP"
6041 if test -z "$EGREP"; then
6042 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6044 { (exit 1); exit 1; }; }
6048 ac_cv_path_EGREP=$EGREP
6054 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6055 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6056 EGREP="$ac_cv_path_EGREP"
6060 # Check whether --with-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6068 if test "$GCC" = yes; then
6069 # Check if gcc -print-prog-name=ld gives a path.
6070 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6074 # gcc leaves a trailing carriage return which upsets mingw
6075 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6077 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6080 # Accept absolute paths.
6082 re_direlt='/[^/][^/]*/\.\./'
6083 # Canonicalize the pathname of ld
6084 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6085 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6086 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6088 test -z "$LD" && LD="$ac_prog"
6091 # If it fails, then pretend we aren't using GCC.
6095 # If it is relative, then search for the first ld in PATH.
6099 elif test "$with_gnu_ld" = yes; then
6100 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6103 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6106 if test "${lt_cv_path_LD+set}" = set; then
6107 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 if test -z "$LD"; then
6110 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6111 for ac_dir in $PATH; do
6113 test -z "$ac_dir" && ac_dir=.
6114 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6115 lt_cv_path_LD="$ac_dir/$ac_prog"
6116 # Check to see if the program is GNU ld. I'd rather use --version,
6117 # but apparently some variants of GNU ld only accept -v.
6118 # Break only if it was the GNU/non-GNU ld that we prefer.
6119 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6120 *GNU* | *'with BFD'*)
6121 test "$with_gnu_ld" != no && break
6124 test "$with_gnu_ld" != yes && break
6131 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6136 if test -n "$LD"; then
6137 { echo "$as_me:$LINENO: result: $LD" >&5
6138 echo "${ECHO_T}$LD" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6145 { (exit 1); exit 1; }; }
6146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6152 case `$LD -v 2>&1 </dev/null` in
6153 *GNU* | *'with BFD'*)
6154 lt_cv_prog_gnu_ld=yes
6157 lt_cv_prog_gnu_ld=no
6161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6163 with_gnu_ld=$lt_cv_prog_gnu_ld
6166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6168 if test "${lt_cv_ld_reload_flag+set}" = set; then
6169 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 lt_cv_ld_reload_flag='-r'
6173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6175 reload_flag=$lt_cv_ld_reload_flag
6176 case $reload_flag in
6178 *) reload_flag=" $reload_flag" ;;
6180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6183 if test "$GCC" = yes; then
6184 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6191 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6192 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6193 if test "${lt_cv_path_NM+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 if test -n "$NM"; then
6197 # Let the user override the test.
6200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6201 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6203 test -z "$ac_dir" && ac_dir=.
6204 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6205 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6206 # Check to see if the nm accepts a BSD-compat flag.
6207 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6208 # nm: unknown option "B" ignored
6209 # Tru64's nm complains that /dev/null is an invalid object file
6210 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6211 */dev/null* | *'Invalid file or object type'*)
6212 lt_cv_path_NM="$tmp_nm -B"
6216 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6218 lt_cv_path_NM="$tmp_nm -p"
6222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6223 continue # so that we can try to find one that supports BSD flags
6230 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6237 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6240 if test "$LN_S" = "ln -s"; then
6241 { echo "$as_me:$LINENO: result: yes" >&5
6242 echo "${ECHO_T}yes" >&6; }
6244 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6245 echo "${ECHO_T}no, using $LN_S" >&6; }
6248 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6249 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6250 if test "${lt_cv_deplibs_check_method+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # `unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # which responds to the $file_magic_cmd with a given extended regex.
6264 # If you have `file' or equivalent on your system and you're not sure
6265 # whether `pass_all' will *always* work, you probably want this one.
6269 lt_cv_deplibs_check_method=pass_all
6273 lt_cv_deplibs_check_method=pass_all
6277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278 lt_cv_file_magic_cmd='/usr/bin/file -L'
6279 lt_cv_file_magic_test_file=/shlib/libc.so
6283 # func_win32_libid is a shell function defined in ltmain.sh
6284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285 lt_cv_file_magic_cmd='func_win32_libid'
6289 # Base MSYS/MinGW do not provide the 'file' command needed by
6290 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6291 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6292 lt_cv_file_magic_cmd='$OBJDUMP -f'
6295 darwin* | rhapsody*)
6296 lt_cv_deplibs_check_method=pass_all
6299 freebsd* | kfreebsd*-gnu | dragonfly*)
6300 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6303 # Not sure whether the presence of OpenBSD here was a mistake.
6304 # Let's accept both of them until this is cleared up.
6305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6306 lt_cv_file_magic_cmd=/usr/bin/file
6307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6311 lt_cv_deplibs_check_method=pass_all
6316 lt_cv_deplibs_check_method=pass_all
6319 hpux10.20* | hpux11*)
6320 lt_cv_file_magic_cmd=/usr/bin/file
6323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6327 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]'
6328 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6332 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6337 irix5* | irix6* | nonstopux*)
6339 *-32|*"-32 ") libmagic=32-bit;;
6340 *-n32|*"-n32 ") libmagic=N32;;
6341 *-64|*"-64 ") libmagic=64-bit;;
6342 *) libmagic=never-match;;
6344 lt_cv_deplibs_check_method=pass_all
6347 # This must be Linux ELF.
6349 lt_cv_deplibs_check_method=pass_all
6353 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6362 lt_cv_file_magic_cmd=/usr/bin/file
6363 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6367 lt_cv_deplibs_check_method=unknown
6371 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6378 osf3* | osf4* | osf5*)
6379 lt_cv_deplibs_check_method=pass_all
6383 lt_cv_deplibs_check_method=pass_all
6387 lt_cv_deplibs_check_method=pass_all
6390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6391 case $host_vendor in
6393 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]'
6394 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6397 lt_cv_deplibs_check_method=pass_all
6400 lt_cv_file_magic_cmd='/bin/file'
6401 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6404 lt_cv_file_magic_cmd='/bin/file'
6405 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406 lt_cv_file_magic_test_file=/lib/libc.so
6409 lt_cv_deplibs_check_method=pass_all
6414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6415 lt_cv_deplibs_check_method=pass_all
6420 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6421 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6422 file_magic_cmd=$lt_cv_file_magic_cmd
6423 deplibs_check_method=$lt_cv_deplibs_check_method
6424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6429 # If no C compiler was specified, use CC.
6432 # Allow CC to be a program name with arguments.
6436 # Check whether --enable-libtool-lock was given.
6437 if test "${enable_libtool_lock+set}" = set; then
6438 enableval=$enable_libtool_lock;
6441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6443 # Some flags need to be propagated to the compiler or linker for good
6447 # Find out which ABI we are using.
6448 echo 'int i;' > conftest.$ac_ext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450 (eval $ac_compile) 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; then
6454 case `/usr/bin/file conftest.$ac_objext` in
6466 # Find out which ABI we are using.
6467 echo '#line 6467 "configure"' > conftest.$ac_ext
6468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469 (eval $ac_compile) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; then
6473 if test "$lt_cv_prog_gnu_ld" = yes; then
6474 case `/usr/bin/file conftest.$ac_objext` in
6476 LD="${LD-ld} -melf32bsmip"
6479 LD="${LD-ld} -melf32bmipn32"
6482 LD="${LD-ld} -melf64bmip"
6486 case `/usr/bin/file conftest.$ac_objext` in
6502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6503 # Find out which ABI we are using.
6504 echo 'int i;' > conftest.$ac_ext
6505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506 (eval $ac_compile) 2>&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; then
6510 case `/usr/bin/file conftest.o` in
6514 LD="${LD-ld} -m elf_i386"
6516 ppc64-*linux*|powerpc64-*linux*)
6517 LD="${LD-ld} -m elf32ppclinux"
6520 LD="${LD-ld} -m elf_s390"
6523 LD="${LD-ld} -m elf32_sparc"
6530 LD="${LD-ld} -m elf_x86_64"
6532 ppc*-*linux*|powerpc*-*linux*)
6533 LD="${LD-ld} -m elf64ppc"
6536 LD="${LD-ld} -m elf64_s390"
6539 LD="${LD-ld} -m elf64_sparc"
6549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550 SAVE_CFLAGS="$CFLAGS"
6551 CFLAGS="$CFLAGS -belf"
6552 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6554 if test "${lt_cv_cc_needs_belf+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6563 cat >conftest.$ac_ext <<_ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582 *) ac_try_echo=$ac_try;;
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585 (eval "$ac_link") 2>conftest.er1
6587 grep -v '^ *+' conftest.er1 >conftest.err
6589 cat conftest.err >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest$ac_exeext &&
6595 $as_test_x conftest$ac_exeext; then
6596 lt_cv_cc_needs_belf=yes
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6601 lt_cv_cc_needs_belf=no
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605 conftest$ac_exeext conftest.$ac_ext
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617 CFLAGS="$SAVE_CFLAGS"
6620 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 if test -n "$DLLTOOL"; then
6630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6652 echo "${ECHO_T}$DLLTOOL" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661 ac_ct_DLLTOOL=$DLLTOOL
6662 # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$ac_ct_DLLTOOL"; then
6670 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6690 if test -n "$ac_ct_DLLTOOL"; then
6691 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6698 if test "x$ac_ct_DLLTOOL" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet. If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6711 DLLTOOL=$ac_ct_DLLTOOL
6714 DLLTOOL="$ac_cv_prog_DLLTOOL"
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}as; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_AS+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$AS"; then
6726 ac_cv_prog_AS="$AS" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_AS="${ac_tool_prefix}as"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 if test -n "$AS"; then
6747 { echo "$as_me:$LINENO: result: $AS" >&5
6748 echo "${ECHO_T}$AS" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6756 if test -z "$ac_cv_prog_AS"; then
6758 # Extract the first word of "as", so it can be a program name with args.
6759 set dummy as; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_AS"; then
6766 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_AS="as"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6786 if test -n "$ac_ct_AS"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6788 echo "${ECHO_T}$ac_ct_AS" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6794 if test "x$ac_ct_AS" = x; then
6797 case $cross_compiling:$ac_tool_warned in
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet. If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$OBJDUMP"; then
6822 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 OBJDUMP=$ac_cv_prog_OBJDUMP
6842 if test -n "$OBJDUMP"; then
6843 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6844 echo "${ECHO_T}$OBJDUMP" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6852 if test -z "$ac_cv_prog_OBJDUMP"; then
6853 ac_ct_OBJDUMP=$OBJDUMP
6854 # Extract the first word of "objdump", so it can be a program name with args.
6855 set dummy objdump; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$ac_ct_OBJDUMP"; then
6862 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6882 if test -n "$ac_ct_OBJDUMP"; then
6883 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6884 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6890 if test "x$ac_ct_OBJDUMP" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet. If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6903 OBJDUMP=$ac_ct_OBJDUMP
6906 OBJDUMP="$ac_cv_prog_OBJDUMP"
6913 need_locks="$enable_libtool_lock"
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6923 # On Suns, sometimes $CPP names a directory.
6924 if test -n "$CPP" && test -d "$CPP"; then
6927 if test -z "$CPP"; then
6928 if test "${ac_cv_prog_CPP+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6931 # Double quotes because CPP needs to be expanded
6932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6935 for ac_c_preproc_warn_flag in '' yes
6937 # Use a header file that comes with gcc, so configuring glibc
6938 # with a fresh cross-compiler works.
6939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940 # <limits.h> exists even on freestanding compilers.
6941 # On the NeXT, cc -E runs the code through the compiler's parser,
6942 # not just through cpp. "Syntax error" is here to catch this case.
6943 cat >conftest.$ac_ext <<_ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6950 # include <limits.h>
6952 # include <assert.h>
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } >/dev/null && {
6969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 # Broken: fails on valid input.
6981 rm -f conftest.err conftest.$ac_ext
6983 # OK, works on sane cases. Now check whether nonexistent headers
6984 # can be detected and how.
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <ac_nonexistent.h>
6993 if { (ac_try="$ac_cpp conftest.$ac_ext"
6995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996 *) ac_try_echo=$ac_try;;
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005 (exit $ac_status); } >/dev/null && {
7006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7009 # Broken: success on invalid input.
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 # Passes both tests.
7020 rm -f conftest.err conftest.$ac_ext
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then
7037 { echo "$as_me:$LINENO: result: $CPP" >&5
7038 echo "${ECHO_T}$CPP" >&6; }
7040 for ac_c_preproc_warn_flag in '' yes
7042 # Use a header file that comes with gcc, so configuring glibc
7043 # with a fresh cross-compiler works.
7044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045 # <limits.h> exists even on freestanding compilers.
7046 # On the NeXT, cc -E runs the code through the compiler's parser,
7047 # not just through cpp. "Syntax error" is here to catch this case.
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7055 # include <limits.h>
7057 # include <assert.h>
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1 >conftest.err
7071 cat conftest.err >&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } >/dev/null && {
7074 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7082 # Broken: fails on valid input.
7086 rm -f conftest.err conftest.$ac_ext
7088 # OK, works on sane cases. Now check whether nonexistent headers
7089 # can be detected and how.
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 #include <ac_nonexistent.h>
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7106 grep -v '^ *+' conftest.er1 >conftest.err
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); } >/dev/null && {
7111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7114 # Broken: success on invalid input.
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7120 # Passes both tests.
7125 rm -f conftest.err conftest.$ac_ext
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then
7133 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&5
7135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&2;}
7137 { (exit 1); exit 1; }; }
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7147 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 cat >conftest.$ac_ext <<_ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h. */
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7188 ac_cv_header_stdc=yes
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 ac_cv_header_stdc=no
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198 if test $ac_cv_header_stdc = yes; then
7199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200 cat >conftest.$ac_ext <<_ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h. */
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210 $EGREP "memchr" >/dev/null 2>&1; then
7213 ac_cv_header_stdc=no
7219 if test $ac_cv_header_stdc = yes; then
7220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221 cat >conftest.$ac_ext <<_ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231 $EGREP "free" >/dev/null 2>&1; then
7234 ac_cv_header_stdc=no
7240 if test $ac_cv_header_stdc = yes; then
7241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242 if test "$cross_compiling" = yes; then
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7253 #if ((' ' & 0x0FF) == 0x020)
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7257 # define ISLOWER(c) \
7258 (('a' <= (c) && (c) <= 'i') \
7259 || ('j' <= (c) && (c) <= 'r') \
7260 || ('s' <= (c) && (c) <= 'z'))
7261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7269 for (i = 0; i < 256; i++)
7270 if (XOR (islower (i), ISLOWER (i))
7271 || toupper (i) != TOUPPER (i))
7276 rm -f conftest$ac_exeext
7277 if { (ac_try="$ac_link"
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_link") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7287 { (case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_try") 2>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); }; }; then
7298 echo "$as_me: program exited with status $ac_status" >&5
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7303 ac_cv_header_stdc=no
7305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7313 if test $ac_cv_header_stdc = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define STDC_HEADERS 1
7321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332 inttypes.h stdint.h unistd.h
7334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 cat >conftest.$ac_ext <<_ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 $ac_includes_default
7348 #include <$ac_header>
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_compile") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } && {
7364 test -z "$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest.$ac_objext; then
7367 eval "$as_ac_Header=yes"
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 eval "$as_ac_Header=no"
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377 ac_res=`eval echo '${'$as_ac_Header'}'`
7378 { echo "$as_me:$LINENO: result: $ac_res" >&5
7379 echo "${ECHO_T}$ac_res" >&6; }
7380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381 cat >>confdefs.h <<_ACEOF
7382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7391 for ac_header in dlfcn.h
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7400 ac_res=`eval echo '${'$as_ac_Header'}'`
7401 { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 echo "${ECHO_T}$ac_res" >&6; }
7404 # Is the header compilable?
7405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7407 cat >conftest.$ac_ext <<_ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */
7413 $ac_includes_default
7414 #include <$ac_header>
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_header_compiler=yes
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_header_compiler=no
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6; }
7445 # Is the header present?
7446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <$ac_header>
7456 if { (ac_try="$ac_cpp conftest.$ac_ext"
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } >/dev/null && {
7469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7470 test ! -s conftest.err
7472 ac_header_preproc=yes
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7477 ac_header_preproc=no
7480 rm -f conftest.err conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7482 echo "${ECHO_T}$ac_header_preproc" >&6; }
7484 # So? What about this header?
7485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7491 ac_header_preproc=yes
7494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7507 ## --------------------------------------------- ##
7508 ## Report this to <http://www.openldap.org/its/> ##
7509 ## --------------------------------------------- ##
7511 ) | sed "s/^/$as_me: WARNING: /" >&2
7514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 eval "$as_ac_Header=\$ac_header_preproc"
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522 { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527 cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7538 # find the maximum length of command line arguments
7539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 # On DJGPP, this test can blow up pretty badly due to problems in libc
7550 # (any single argument exceeding 2000 bytes causes a buffer overrun
7551 # during glob expansion). Even if it were fixed, the result of this
7552 # check would be larger than it should be.
7553 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7557 # Under GNU Hurd, this test is not required because there is
7558 # no limit to the length of command line arguments.
7559 # Libtool will interpret -1 as no limit whatsoever
7560 lt_cv_sys_max_cmd_len=-1;
7564 # On Win9x/ME, this test blows up -- it succeeds, but takes
7565 # about 5 minutes as the teststring grows exponentially.
7566 # Worse, since 9x/ME are not pre-emptively multitasking,
7567 # you end up with a "frozen" computer, even though with patience
7568 # the test eventually succeeds (with a max line length of 256k).
7569 # Instead, let's just punt: use the minimum linelength reported by
7570 # all of the supported platforms: 8192 (on NT/2K/XP).
7571 lt_cv_sys_max_cmd_len=8192;
7575 # On AmigaOS with pdksh, this test takes hours, literally.
7576 # So we just punt and use a minimum line length of 8192.
7577 lt_cv_sys_max_cmd_len=8192;
7580 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7581 # This has been around since 386BSD, at least. Likely further.
7582 if test -x /sbin/sysctl; then
7583 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7584 elif test -x /usr/sbin/sysctl; then
7585 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7587 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7589 # And add a safety zone
7590 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7591 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7594 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7595 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7596 # nice to cause kernel panics so lets avoid the loop below.
7597 # First set a reasonable default.
7598 lt_cv_sys_max_cmd_len=16384
7600 if test -x /sbin/sysconfig; then
7601 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7602 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7607 # If test is not a shell built-in, we'll probably end up computing a
7608 # maximum length that is only half of the actual maximum length, but
7610 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7612 = "XX$teststring") >/dev/null 2>&1 &&
7613 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7614 lt_cv_sys_max_cmd_len=$new_result &&
7615 test $i != 17 # 1/2 MB should be enough
7618 teststring=$teststring$teststring
7621 # Add a significant safety factor because C++ compilers can tack on massive
7622 # amounts of additional arguments before passing them to the linker.
7623 # It appears as though 1/2 is a usable value.
7624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7630 if test -n $lt_cv_sys_max_cmd_len ; then
7631 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7632 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7634 { echo "$as_me:$LINENO: result: none" >&5
7635 echo "${ECHO_T}none" >&6; }
7641 # Check for command to grab the raw symbol name followed by C symbol from nm.
7642 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7643 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7644 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7648 # These are sane defaults that work on at least a few old systems.
7649 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7651 # Character class describing NM global symbol codes.
7652 symcode='[BCDEGRST]'
7654 # Regexp to match symbols that can be accessed directly from C.
7655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7657 # Transform an extracted symbol line into a proper C declaration
7658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7660 # Transform an extracted symbol line into symbol name and symbol address
7661 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'"
7663 # Define system-specific variables.
7668 cygwin* | mingw* | pw32*)
7669 symcode='[ABCDGISTW]'
7671 hpux*) # Its linker distinguishes data from code symbols
7672 if test "$host_cpu" = ia64; then
7673 symcode='[ABCDEGRST]'
7675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7676 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'"
7679 if test "$host_cpu" = ia64; then
7680 symcode='[ABCDGIRSTW]'
7681 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682 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'"
7686 symcode='[BCDEGRST]'
7689 symcode='[BCDEGQRST]'
7699 # Handle CRLF in mingw tool chain
7703 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7707 # If we're using GNU nm, then use its standard symbol codes.
7708 case `$NM -V 2>&1` in
7709 *GNU* | *'with BFD'*)
7710 symcode='[ABCDGIRSTW]' ;;
7713 # Try without a prefix undercore, then with it.
7714 for ac_symprfx in "" "_"; do
7716 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7717 symxfrm="\\1 $ac_symprfx\\2 \\2"
7719 # Write the raw and C identifiers.
7720 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7722 # Check to see that the pipe works correctly.
7726 cat > conftest.$ac_ext <<EOF
7731 void nm_test_func(){}
7735 int main(){nm_test_var='a';nm_test_func();return(0);}
7738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739 (eval $ac_compile) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; then
7743 # Now try to grab the symbols.
7745 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7746 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); } && test -s "$nlist"; then
7750 # Try sorting and uniquifying the output.
7751 if sort "$nlist" | uniq > "$nlist"T; then
7752 mv -f "$nlist"T "$nlist"
7757 # Make sure that we snagged all the symbols we need.
7758 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7759 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7760 cat <<EOF > conftest.$ac_ext
7766 # Now generate the symbol file.
7767 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7769 cat <<EOF >> conftest.$ac_ext
7770 #if defined (__STDC__) && __STDC__
7771 # define lt_ptr_t void *
7773 # define lt_ptr_t char *
7777 /* The mapping between symbol names and symbols. */
7782 lt_preloaded_symbols[] =
7785 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7786 cat <<\EOF >> conftest.$ac_ext
7794 # Now try linking the two files.
7795 mv conftest.$ac_objext conftstm.$ac_objext
7796 lt_save_LIBS="$LIBS"
7797 lt_save_CFLAGS="$CFLAGS"
7798 LIBS="conftstm.$ac_objext"
7799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801 (eval $ac_link) 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7807 LIBS="$lt_save_LIBS"
7808 CFLAGS="$lt_save_CFLAGS"
7810 echo "cannot find nm_test_func in $nlist" >&5
7813 echo "cannot find nm_test_var in $nlist" >&5
7816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7819 echo "$progname: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7822 rm -f conftest* conftst*
7824 # Do not use the global_symbol_pipe unless it works.
7825 if test "$pipe_works" = yes; then
7828 lt_cv_sys_global_symbol_pipe=
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835 lt_cv_sys_global_symbol_to_cdecl=
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838 { echo "$as_me:$LINENO: result: failed" >&5
7839 echo "${ECHO_T}failed" >&6; }
7841 { echo "$as_me:$LINENO: result: ok" >&5
7842 echo "${ECHO_T}ok" >&6; }
7845 { echo "$as_me:$LINENO: checking for objdir" >&5
7846 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7855 # MS-DOS does not allow filenames that begin with a dot.
7858 rmdir .libs 2>/dev/null
7860 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7861 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7870 # AIX sometimes has problems with the GCC collect2 program. For some
7871 # reason, if we set the COLLECT_NAMES environment variable, the problems
7872 # vanish in a puff of smoke.
7873 if test "X${COLLECT_NAMES+set}" != Xset; then
7875 export COLLECT_NAMES
7880 # Sed substitution that helps us do robust quoting. It backslashifies
7881 # metacharacters that are still active within double-quoted strings.
7882 Xsed='sed -e 1s/^X//'
7883 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7885 # Same as above, but do not quote variable references.
7886 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7888 # Sed substitution to delay expansion of an escaped shell variable in a
7889 # double_quote_subst'ed string.
7890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7899 default_ofile=libtool
7900 can_build_shared=yes
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7905 ltmain="$ac_aux_dir/ltmain.sh"
7906 ofile="$default_ofile"
7907 with_gnu_ld="$lt_cv_prog_gnu_ld"
7909 if test -n "$ac_tool_prefix"; then
7910 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}ar; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_AR+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 if test -n "$AR"; then
7918 ac_cv_prog_AR="$AR" # Let the user override the test.
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927 ac_cv_prog_AR="${ac_tool_prefix}ar"
7928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 if test -n "$AR"; then
7939 { echo "$as_me:$LINENO: result: $AR" >&5
7940 echo "${ECHO_T}$AR" >&6; }
7942 { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7948 if test -z "$ac_cv_prog_AR"; then
7950 # Extract the first word of "ar", so it can be a program name with args.
7951 set dummy ar; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7955 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 if test -n "$ac_ct_AR"; then
7958 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir=.
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_prog_ac_ct_AR="ar"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7978 if test -n "$ac_ct_AR"; then
7979 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7980 echo "${ECHO_T}$ac_ct_AR" >&6; }
7982 { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7986 if test "x$ac_ct_AR" = x; then
7989 case $cross_compiling:$ac_tool_warned in
7991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet. If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&5
7994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7995 whose name does not start with the host triplet. If you think this
7996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7997 ac_tool_warned=yes ;;
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 if test -n "$RANLIB"; then
8014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 RANLIB=$ac_cv_prog_RANLIB
8034 if test -n "$RANLIB"; then
8035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8036 echo "${ECHO_T}$RANLIB" >&6; }
8038 { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8044 if test -z "$ac_cv_prog_RANLIB"; then
8045 ac_ct_RANLIB=$RANLIB
8046 # Extract the first word of "ranlib", so it can be a program name with args.
8047 set dummy ranlib; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8051 echo $ECHO_N "(cached) $ECHO_C" >&6
8053 if test -n "$ac_ct_RANLIB"; then
8054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060 test -z "$as_dir" && as_dir=.
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063 ac_cv_prog_ac_ct_RANLIB="ranlib"
8064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8074 if test -n "$ac_ct_RANLIB"; then
8075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8078 { echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6; }
8082 if test "x$ac_ct_RANLIB" = x; then
8085 case $cross_compiling:$ac_tool_warned in
8087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8088 whose name does not start with the host triplet. If you think this
8089 configuration is useful to you, please write to autoconf@gnu.org." >&5
8090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8091 whose name does not start with the host triplet. If you think this
8092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8093 ac_tool_warned=yes ;;
8095 RANLIB=$ac_ct_RANLIB
8098 RANLIB="$ac_cv_prog_RANLIB"
8101 if test -n "$ac_tool_prefix"; then
8102 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}strip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_STRIP+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 if test -n "$STRIP"; then
8110 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 STRIP=$ac_cv_prog_STRIP
8130 if test -n "$STRIP"; then
8131 { echo "$as_me:$LINENO: result: $STRIP" >&5
8132 echo "${ECHO_T}$STRIP" >&6; }
8134 { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8140 if test -z "$ac_cv_prog_STRIP"; then
8142 # Extract the first word of "strip", so it can be a program name with args.
8143 set dummy strip; ac_word=$2
8144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 if test -n "$ac_ct_STRIP"; then
8150 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 test -z "$as_dir" && as_dir=.
8157 for ac_exec_ext in '' $ac_executable_extensions; do
8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159 ac_cv_prog_ac_ct_STRIP="strip"
8160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8170 if test -n "$ac_ct_STRIP"; then
8171 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8172 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8174 { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8178 if test "x$ac_ct_STRIP" = x; then
8181 case $cross_compiling:$ac_tool_warned in
8183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8184 whose name does not start with the host triplet. If you think this
8185 configuration is useful to you, please write to autoconf@gnu.org." >&5
8186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8187 whose name does not start with the host triplet. If you think this
8188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8189 ac_tool_warned=yes ;;
8194 STRIP="$ac_cv_prog_STRIP"
8199 old_CFLAGS="$CFLAGS"
8201 # Set sane defaults for various variables
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8204 test -z "$AS" && AS=as
8205 test -z "$CC" && CC=cc
8206 test -z "$LTCC" && LTCC=$CC
8207 test -z "$DLLTOOL" && DLLTOOL=dlltool
8208 test -z "$LD" && LD=ld
8209 test -z "$LN_S" && LN_S="ln -s"
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 test -z "$NM" && NM=nm
8212 test -z "$SED" && SED=sed
8213 test -z "$OBJDUMP" && OBJDUMP=objdump
8214 test -z "$RANLIB" && RANLIB=:
8215 test -z "$STRIP" && STRIP=:
8216 test -z "$ac_objext" && ac_objext=o
8218 # Determine commands to create old-style static archives.
8219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8220 old_postinstall_cmds='chmod 644 $oldlib'
8221 old_postuninstall_cmds=
8223 if test -n "$RANLIB"; then
8226 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8229 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8232 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8235 for cc_temp in $compiler""; do
8237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8246 # Only perform the check for file, if the check method requires it
8247 case $deplibs_check_method in
8249 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8250 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8257 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8260 lt_save_MAGIC_CMD="$MAGIC_CMD"
8261 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263 for ac_dir in $ac_dummy; do
8265 test -z "$ac_dir" && ac_dir=.
8266 if test -f $ac_dir/${ac_tool_prefix}file; then
8267 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8268 if test -n "$file_magic_test_file"; then
8269 case $deplibs_check_method in
8271 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8272 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274 $EGREP "$file_magic_regex" > /dev/null; then
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such. This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem. Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8296 MAGIC_CMD="$lt_save_MAGIC_CMD"
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8306 { echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6; }
8310 if test -z "$lt_cv_path_MAGIC_CMD"; then
8311 if test -n "$ac_tool_prefix"; then
8312 { echo "$as_me:$LINENO: checking for file" >&5
8313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8322 lt_save_MAGIC_CMD="$MAGIC_CMD"
8323 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325 for ac_dir in $ac_dummy; do
8327 test -z "$ac_dir" && ac_dir=.
8328 if test -f $ac_dir/file; then
8329 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8330 if test -n "$file_magic_test_file"; then
8331 case $deplibs_check_method in
8333 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336 $EGREP "$file_magic_regex" > /dev/null; then
8341 *** Warning: the command libtool uses to detect shared libraries,
8342 *** $file_magic_cmd, produces output that libtool cannot recognize.
8343 *** The result is that libtool may fail to recognize shared libraries
8344 *** as such. This will affect the creation of libtool libraries that
8345 *** depend on shared libraries, but programs linked with such libtool
8346 *** libraries will work regardless of this problem. Nevertheless, you
8347 *** may want to report the problem to your system manager and/or to
8348 *** bug-libtool@gnu.org
8358 MAGIC_CMD="$lt_save_MAGIC_CMD"
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if test -n "$MAGIC_CMD"; then
8365 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8368 { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8382 enable_win32_dll=yes
8384 # Check whether --enable-libtool-lock was given.
8385 if test "${enable_libtool_lock+set}" = set; then
8386 enableval=$enable_libtool_lock;
8389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8392 # Check whether --with-pic was given.
8393 if test "${with_pic+set}" = set; then
8394 withval=$with_pic; pic_mode="$withval"
8399 test -z "$pic_mode" && pic_mode=default
8401 # Use C for the default configuration in the libtool script
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8411 # Source file extension for C test sources.
8414 # Object file extension for compiled C test sources.
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;\n"
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}\n'
8425 # If no C compiler was specified, use CC.
8428 # Allow CC to be a program name with arguments.
8432 # save warnings/boilerplate of simple test code
8433 ac_outfile=conftest.$ac_objext
8434 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8436 _lt_compiler_boilerplate=`cat conftest.err`
8439 ac_outfile=conftest.$ac_objext
8440 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8442 _lt_linker_boilerplate=`cat conftest.err`
8447 # Check for any special shared library compilation flags.
8450 if test "$GCC" = no; then
8453 lt_prog_cc_shlib='-belf'
8457 if test -n "$lt_prog_cc_shlib"; then
8458 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8459 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8460 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8462 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8463 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8464 lt_cv_prog_cc_can_build_shared=no
8470 # Check to make sure the static flag actually works.
8472 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8473 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8474 if test "${lt_prog_compiler_static_works+set}" = set; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 lt_prog_compiler_static_works=no
8478 save_LDFLAGS="$LDFLAGS"
8479 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8480 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8482 # The linker can only warn and ignore the option if not recognized
8483 # So say no if there are warnings
8484 if test -s conftest.err; then
8485 # Append any errors to the config.log.
8486 cat conftest.err 1>&5
8487 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8488 $SED '/^$/d' conftest.err >conftest.er2
8489 if diff conftest.exp conftest.er2 >/dev/null; then
8490 lt_prog_compiler_static_works=yes
8493 lt_prog_compiler_static_works=yes
8497 LDFLAGS="$save_LDFLAGS"
8500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8501 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8503 if test x"$lt_prog_compiler_static_works" = xyes; then
8506 lt_prog_compiler_static=
8512 lt_prog_compiler_no_builtin_flag=
8514 if test "$GCC" = yes; then
8515 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8523 lt_cv_prog_compiler_rtti_exceptions=no
8524 ac_outfile=conftest.$ac_objext
8525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526 lt_compiler_flag="-fno-rtti -fno-exceptions"
8527 # Insert the option either (1) after the last *FLAGS variable, or
8528 # (2) before a word containing "conftest.", or (3) at the end.
8529 # Note that $ac_compile itself does not contain backslashes and begins
8530 # with a dollar sign (not a hyphen), so the echo should work correctly.
8531 # The option is referenced via a variable to avoid confusing sed.
8532 lt_compile=`echo "$ac_compile" | $SED \
8533 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535 -e 's:$: $lt_compiler_flag:'`
8536 (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
8537 (eval "$lt_compile" 2>conftest.err)
8539 cat conftest.err >&5
8540 echo "$as_me:8540: \$? = $ac_status" >&5
8541 if (exit $ac_status) && test -s "$ac_outfile"; then
8542 # The compiler can only warn and ignore the option if not recognized
8543 # So say no if there are warnings other than the usual output.
8544 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8545 $SED '/^$/d' conftest.err >conftest.er2
8546 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8547 lt_cv_prog_compiler_rtti_exceptions=yes
8553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8557 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8564 lt_prog_compiler_wl=
8565 lt_prog_compiler_pic=
8566 lt_prog_compiler_static=
8568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8571 if test "$GCC" = yes; then
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_static='-static'
8577 # All AIX code is PIC.
8578 if test "$host_cpu" = ia64; then
8579 # AIX 5 now supports IA64 processor
8580 lt_prog_compiler_static='-Bstatic'
8585 # FIXME: we need at least 68020 code to build shared libraries, but
8586 # adding the `-m68020' flag to GCC prevents building anything better,
8588 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8592 # PIC is the default for these OSes.
8595 mingw* | pw32* | os2*)
8596 # This hack is so that the source file can tell whether it is being
8597 # built for inclusion in a dll (and should export symbols for example).
8598 lt_prog_compiler_pic='-DDLL_EXPORT'
8601 darwin* | rhapsody*)
8602 # PIC is the default on this platform
8603 # Common symbols not allowed in MH_DYLIB files
8604 lt_prog_compiler_pic='-fno-common'
8608 # Just because we use GCC doesn't mean we suddenly get shared libraries
8609 # on systems that don't support them.
8610 lt_prog_compiler_can_build_shared=no
8615 if test -d /usr/nec; then
8616 lt_prog_compiler_pic=-Kconform_pic
8621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8628 lt_prog_compiler_pic='-fPIC'
8634 lt_prog_compiler_pic='-fPIC'
8638 # PORTME Check for flag to pass linker flags through the system compiler.
8641 lt_prog_compiler_wl='-Wl,'
8642 if test "$host_cpu" = ia64; then
8643 # AIX 5 now supports IA64 processor
8644 lt_prog_compiler_static='-Bstatic'
8646 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8650 # PIC is the default on this platform
8651 # Common symbols not allowed in MH_DYLIB files
8652 case $cc_basename in
8654 lt_prog_compiler_pic='-qnocommon'
8655 lt_prog_compiler_wl='-Wl,'
8660 mingw* | pw32* | os2*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8675 lt_prog_compiler_pic='+Z'
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8689 lt_prog_compiler_pic='-KPIC'
8690 lt_prog_compiler_static='-Bstatic'
8694 case $cc_basename in
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-static'
8700 pgcc* | pgf77* | pgf90* | pgf95*)
8701 # Portland Group compilers (*not* the Pentium gcc compiler,
8702 # which looks to be a dead project)
8703 lt_prog_compiler_wl='-Wl,'
8704 lt_prog_compiler_pic='-fpic'
8705 lt_prog_compiler_static='-Bstatic'
8708 lt_prog_compiler_wl='-Wl,'
8709 # All Alpha code is PIC.
8710 lt_prog_compiler_static='-non_shared'
8715 osf3* | osf4* | osf5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 # All OSF/1 code is PIC.
8718 lt_prog_compiler_static='-non_shared'
8722 lt_prog_compiler_pic='-Kpic'
8723 lt_prog_compiler_static='-dn'
8727 lt_prog_compiler_pic='-KPIC'
8728 lt_prog_compiler_static='-Bstatic'
8729 case $cc_basename in
8731 lt_prog_compiler_wl='-Qoption ld ';;
8733 lt_prog_compiler_wl='-Wl,';;
8738 lt_prog_compiler_wl='-Qoption ld '
8739 lt_prog_compiler_pic='-PIC'
8740 lt_prog_compiler_static='-Bstatic'
8743 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8744 lt_prog_compiler_wl='-Wl,'
8745 lt_prog_compiler_pic='-KPIC'
8746 lt_prog_compiler_static='-Bstatic'
8750 if test -d /usr/nec ;then
8751 lt_prog_compiler_pic='-Kconform_pic'
8752 lt_prog_compiler_static='-Bstatic'
8757 lt_prog_compiler_wl='-Wl,'
8758 lt_prog_compiler_can_build_shared=no
8762 lt_prog_compiler_pic='-pic'
8763 lt_prog_compiler_static='-Bstatic'
8767 lt_prog_compiler_can_build_shared=no
8772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8773 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8776 # Check to make sure the PIC flag actually works.
8778 if test -n "$lt_prog_compiler_pic"; then
8780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8782 if test "${lt_prog_compiler_pic_works+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 lt_prog_compiler_pic_works=no
8786 ac_outfile=conftest.$ac_objext
8787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789 # Insert the option either (1) after the last *FLAGS variable, or
8790 # (2) before a word containing "conftest.", or (3) at the end.
8791 # Note that $ac_compile itself does not contain backslashes and begins
8792 # with a dollar sign (not a hyphen), so the echo should work correctly.
8793 # The option is referenced via a variable to avoid confusing sed.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>conftest.err)
8801 cat conftest.err >&5
8802 echo "$as_me:8802: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s "$ac_outfile"; then
8804 # The compiler can only warn and ignore the option if not recognized
8805 # So say no if there are warnings other than the usual output.
8806 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8807 $SED '/^$/d' conftest.err >conftest.er2
8808 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8809 lt_prog_compiler_pic_works=yes
8815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8816 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8818 if test x"$lt_prog_compiler_pic_works" = xyes; then
8819 case $lt_prog_compiler_pic in
8821 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824 lt_prog_compiler_pic=
8825 lt_prog_compiler_can_build_shared=no
8830 # For platforms which do not support PIC, -DPIC is meaningless:
8832 lt_prog_compiler_pic=
8835 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 lt_cv_prog_compiler_c_o=no
8845 $rm -r conftest 2>/dev/null
8849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8851 lt_compiler_flag="-o out/conftest2.$ac_objext"
8852 # Insert the option either (1) after the last *FLAGS variable, or
8853 # (2) before a word containing "conftest.", or (3) at the end.
8854 # Note that $ac_compile itself does not contain backslashes and begins
8855 # with a dollar sign (not a hyphen), so the echo should work correctly.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:8860: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>out/conftest.err)
8863 cat out/conftest.err >&5
8864 echo "$as_me:8864: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 # The compiler can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8870 $SED '/^$/d' out/conftest.err >out/conftest.er2
8871 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872 lt_cv_prog_compiler_c_o=yes
8877 # SGI C++ compiler will create directory out/ii_files/ for
8878 # template instantiation
8879 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8880 $rm out/* && rmdir out
8886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892 # do not overwrite the value of need_locks provided by the user
8893 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8897 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899 ln conftest.a conftest.b 2>&5 || hard_links=no
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 { echo "$as_me:$LINENO: result: $hard_links" >&5
8902 echo "${ECHO_T}$hard_links" >&6; }
8903 if test "$hard_links" = no; then
8904 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8916 allow_undefined_flag=
8917 enable_shared_with_static_runtimes=no
8919 archive_expsym_cmds=
8920 old_archive_From_new_cmds=
8921 old_archive_from_expsyms_cmds=
8922 export_dynamic_flag_spec=
8923 whole_archive_flag_spec=
8924 thread_safe_flag_spec=
8925 hardcode_libdir_flag_spec=
8926 hardcode_libdir_flag_spec_ld=
8927 hardcode_libdir_separator=
8930 hardcode_shlibpath_var=unsupported
8931 link_all_deplibs=unknown
8932 hardcode_automatic=no
8935 always_export_symbols=no
8936 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937 # include_expsyms should be a list of space-separated symbols to be *always*
8938 # included in the symbol list
8940 # exclude_expsyms can be an extended regexp of symbols to exclude
8941 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8942 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8943 # as well as any symbol that contains `d'.
8944 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8945 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8946 # platforms (ab)use it in PIC code, but their linkers get confused if
8947 # the symbol is explicitly referenced. Since portable code cannot
8948 # rely on this symbol name, it's probably fine to never include it in
8949 # preloaded symbol tables.
8950 extract_expsyms_cmds=
8951 # Just being paranoid about ensuring that cc_basename is set.
8952 for cc_temp in $compiler""; do
8954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8963 cygwin* | mingw* | pw32*)
8964 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965 # When not using gcc, we currently assume that we are using
8966 # Microsoft Visual C++.
8967 if test "$GCC" != yes; then
8977 if test "$with_gnu_ld" = yes; then
8978 # If archive_cmds runs LD, not CC, wlarc should be empty
8981 # Set some defaults for GNU ld with shared library support. These
8982 # are reset later if shared libraries are not supported. Putting them
8983 # here allows them to be overridden if necessary.
8984 runpath_var=LD_RUN_PATH
8985 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8986 export_dynamic_flag_spec='${wl}--export-dynamic'
8987 # ancient GNU ld didn't support --whole-archive et. al.
8988 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8989 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8991 whole_archive_flag_spec=
8993 supports_anon_versioning=no
8994 case `$LD -v 2>/dev/null` in
8995 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998 *\ 2.11.*) ;; # other 2.11 versions
8999 *) supports_anon_versioning=yes ;;
9002 # See if GNU ld supports shared libraries.
9004 aix3* | aix4* | aix5*)
9005 # On AIX/PPC, the GNU linker is very broken
9006 if test "$host_cpu" != ia64; then
9010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9011 *** to be unable to reliably create shared libraries on AIX.
9012 *** Therefore, libtool is disabling shared libraries support. If you
9013 *** really care for shared libraries, you may want to modify your PATH
9014 *** so that a non-GNU linker is found, and then restart.
9021 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)'
9022 hardcode_libdir_flag_spec='-L$libdir'
9023 hardcode_minus_L=yes
9025 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9026 # that the semantics of dynamic libraries on AmigaOS, at least up
9027 # to version 4, is to share data among multiple programs linked
9028 # with the same dynamic library. Since this doesn't match the
9029 # behavior of shared libraries on other platforms, we can't use
9035 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036 allow_undefined_flag=unsupported
9037 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038 # support --undefined. This deserves some investigation. FIXME
9039 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9045 cygwin* | mingw* | pw32*)
9046 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047 # as there is no search path for DLLs.
9048 hardcode_libdir_flag_spec='-L$libdir'
9049 allow_undefined_flag=unsupported
9050 always_export_symbols=no
9051 enable_shared_with_static_runtimes=yes
9052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9054 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9056 # If the export-symbols file already is a .def file (1st line
9057 # is EXPORTS), use it as is; otherwise, prepend...
9058 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9059 cp $export_symbols $output_objdir/$soname.def;
9061 echo EXPORTS > $output_objdir/$soname.def;
9062 cat $export_symbols >> $output_objdir/$soname.def;
9064 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9073 case $cc_basename,$host_cpu in
9074 pgcc*) # Portland Group C compiler
9075 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'
9076 tmp_addflag=' $pic_flag'
9078 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9079 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'
9080 tmp_addflag=' $pic_flag -Mnomain' ;;
9081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9082 tmp_addflag=' -i_dynamic' ;;
9083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9084 tmp_addflag=' -i_dynamic -nofor_main' ;;
9085 ifc* | ifort*) # Intel Fortran compiler
9086 tmp_addflag=' -nofor_main' ;;
9088 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9090 if test $supports_anon_versioning = yes; then
9091 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093 $echo "local: *; };" >> $output_objdir/$libname.ver~
9094 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9103 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9106 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9112 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117 *** create shared libraries on Solaris systems. Therefore, libtool
9118 *** is disabling shared libraries support. We urge you to upgrade GNU
9119 *** binutils to release 2.9.1 or newer. Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9124 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9133 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9136 hardcode_shlibpath_var=no
9140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9141 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9149 if test "$ld_shlibs" = no; then
9151 hardcode_libdir_flag_spec=
9152 export_dynamic_flag_spec=
9153 whole_archive_flag_spec=
9156 # PORTME fill in a description of your system's linker (not GNU ld)
9159 allow_undefined_flag=unsupported
9160 always_export_symbols=yes
9161 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'
9162 # Note: this linker hardcodes the directories in LIBPATH if there
9163 # are no directories specified by -L.
9164 hardcode_minus_L=yes
9165 if test "$GCC" = yes && test -z "$link_static_flag"; then
9166 # Neither direct hardcoding nor static linking is supported with a
9168 hardcode_direct=unsupported
9173 if test "$host_cpu" = ia64; then
9174 # On IA64, the linker does run time linking by default, so we don't
9175 # have to do anything special.
9176 aix_use_runtimelinking=no
9177 exp_sym_flag='-Bexport'
9180 # If we're using GNU nm, then we don't want the "-C" option.
9181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9183 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'
9185 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'
9187 aix_use_runtimelinking=no
9189 # Test if we are trying to use run time linking or normal
9190 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191 # need to do runtime linking.
9192 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9193 for ld_flag in $LDFLAGS; do
9194 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195 aix_use_runtimelinking=yes
9201 exp_sym_flag='-bexport'
9202 no_entry_flag='-bnoentry'
9205 # When large executables or shared objects are built, AIX ld can
9206 # have problems creating the table of contents. If linking a library
9207 # or program results in "error TOC overflow" add -mminimal-toc to
9208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9213 hardcode_libdir_separator=':'
9214 link_all_deplibs=yes
9216 if test "$GCC" = yes; then
9217 case $host_os in aix4.[012]|aix4.[012].*)
9218 # We only want to do this on AIX 4.2 and lower, the check
9219 # below for broken collect2 doesn't work under 4.3+
9220 collect2name=`${CC} -print-prog-name=collect2`
9221 if test -f "$collect2name" && \
9222 strings "$collect2name" | grep resolve_lib_name >/dev/null
9224 # We have reworked collect2
9227 # We have old collect2
9228 hardcode_direct=unsupported
9229 # It fails to find uninstalled libraries when the uninstalled
9230 # path is not listed in the libpath. Setting hardcode_minus_L
9231 # to unsupported forces relinking
9232 hardcode_minus_L=yes
9233 hardcode_libdir_flag_spec='-L$libdir'
9234 hardcode_libdir_separator=
9237 shared_flag='-shared'
9238 if test "$aix_use_runtimelinking" = yes; then
9239 shared_flag="$shared_flag "'${wl}-G'
9243 if test "$host_cpu" = ia64; then
9244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245 # chokes on -Wl,-G. The following line is correct:
9248 if test "$aix_use_runtimelinking" = yes; then
9249 shared_flag='${wl}-G'
9251 shared_flag='${wl}-bM:SRE'
9256 # It seems that -bexpall does not export symbols beginning with
9257 # underscore (_), so it is better to generate a list of symbols to export.
9258 always_export_symbols=yes
9259 if test "$aix_use_runtimelinking" = yes; then
9260 # Warning - without using the other runtime loading flags (-brtl),
9261 # -berok will link without error, but may produce a broken library.
9262 allow_undefined_flag='-berok'
9263 # Determine the default libpath from the value encoded in an empty executable.
9264 cat >conftest.$ac_ext <<_ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_link") 2>conftest.er1
9288 grep -v '^ *+' conftest.er1 >conftest.err
9290 cat conftest.err >&5
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && {
9293 test -z "$ac_c_werror_flag" ||
9294 test ! -s conftest.err
9295 } && test -s conftest$ac_exeext &&
9296 $as_test_x conftest$ac_exeext; then
9298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9300 # Check for a 64-bit object if we didn't find anything.
9301 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; }
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311 conftest$ac_exeext conftest.$ac_ext
9312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9314 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315 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"
9317 if test "$host_cpu" = ia64; then
9318 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319 allow_undefined_flag="-z nodefs"
9320 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"
9322 # Determine the default libpath from the value encoded in an empty executable.
9323 cat >conftest.$ac_ext <<_ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h. */
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342 *) ac_try_echo=$ac_try;;
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345 (eval "$ac_link") 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } && {
9352 test -z "$ac_c_werror_flag" ||
9353 test ! -s conftest.err
9354 } && test -s conftest$ac_exeext &&
9355 $as_test_x conftest$ac_exeext; then
9357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9359 # Check for a 64-bit object if we didn't find anything.
9360 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; }
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370 conftest$ac_exeext conftest.$ac_ext
9371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9373 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9374 # Warning - without using the other run time loading flags,
9375 # -berok will link without error, but may produce a broken library.
9376 no_undefined_flag=' ${wl}-bernotok'
9377 allow_undefined_flag=' ${wl}-berok'
9378 # -bexpall does not export symbols beginning with underscore (_)
9379 always_export_symbols=yes
9380 # Exported symbols can be pulled into shared objects from archives
9381 whole_archive_flag_spec=' '
9382 archive_cmds_need_lc=yes
9383 # This is similar to how AIX traditionally builds its shared libraries.
9384 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'
9390 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)'
9391 hardcode_libdir_flag_spec='-L$libdir'
9392 hardcode_minus_L=yes
9393 # see comment about different semantics on the GNU ld section
9398 export_dynamic_flag_spec=-rdynamic
9401 cygwin* | mingw* | pw32*)
9402 # When not using gcc, we currently assume that we are using
9403 # Microsoft Visual C++.
9404 # hardcode_libdir_flag_spec is actually meaningless, as there is
9405 # no search path for DLLs.
9406 hardcode_libdir_flag_spec=' '
9407 allow_undefined_flag=unsupported
9408 # Tell ltmain to make .lib files, not .a files.
9410 # Tell ltmain to make .dll files, not .so files.
9412 # FIXME: Setting linknames here is a bad hack.
9413 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9414 # The linker will automatically build a .lib file if we build a DLL.
9415 old_archive_From_new_cmds='true'
9416 # FIXME: Should let the user specify the lib program.
9417 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9418 fix_srcfile_path='`cygpath -w "$srcfile"`'
9419 enable_shared_with_static_runtimes=yes
9422 darwin* | rhapsody*)
9424 rhapsody* | darwin1.[012])
9425 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9428 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9429 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9431 case ${MACOSX_DEPLOYMENT_TARGET} in
9433 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9436 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9442 archive_cmds_need_lc=no
9444 hardcode_automatic=yes
9445 hardcode_shlibpath_var=unsupported
9446 whole_archive_flag_spec=''
9447 link_all_deplibs=yes
9448 if test "$GCC" = yes ; then
9449 output_verbose_link_cmd='echo'
9450 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9451 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453 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}'
9454 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}'
9456 case $cc_basename in
9458 output_verbose_link_cmd='echo'
9459 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9460 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9461 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9462 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}'
9463 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}'
9473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474 hardcode_libdir_flag_spec='-L$libdir'
9475 hardcode_shlibpath_var=no
9482 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9483 # support. Future versions do this automatically, but an explicit c++rt0.o
9484 # does not break anything, and helps significantly (at the cost of a little
9487 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9488 hardcode_libdir_flag_spec='-R$libdir'
9490 hardcode_shlibpath_var=no
9493 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9495 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9497 hardcode_minus_L=yes
9498 hardcode_shlibpath_var=no
9501 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9502 freebsd* | kfreebsd*-gnu | dragonfly*)
9503 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9504 hardcode_libdir_flag_spec='-R$libdir'
9506 hardcode_shlibpath_var=no
9510 if test "$GCC" = yes; then
9511 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'
9513 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'
9515 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516 hardcode_libdir_separator=:
9519 # hardcode_minus_L: Not really in the search PATH,
9520 # but as the default location of the library.
9521 hardcode_minus_L=yes
9522 export_dynamic_flag_spec='${wl}-E'
9526 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9529 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9532 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9538 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9541 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9545 if test "$with_gnu_ld" = no; then
9548 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549 hardcode_libdir_flag_spec_ld='+b $libdir'
9550 hardcode_libdir_separator=:
9552 hardcode_shlibpath_var=no
9555 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_shlibpath_var=no
9559 # hardcode_minus_L: Not really in the search PATH,
9560 # but as the default location of the library.
9561 hardcode_minus_L=yes
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_separator=:
9567 export_dynamic_flag_spec='${wl}-E'
9569 # hardcode_minus_L: Not really in the search PATH,
9570 # but as the default location of the library.
9571 hardcode_minus_L=yes
9577 irix5* | irix6* | nonstopux*)
9578 if test "$GCC" = yes; then
9579 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'
9581 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'
9582 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9584 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585 hardcode_libdir_separator=:
9586 link_all_deplibs=yes
9590 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9593 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9595 hardcode_libdir_flag_spec='-R$libdir'
9597 hardcode_shlibpath_var=no
9601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9603 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604 hardcode_libdir_separator=:
9605 hardcode_shlibpath_var=no
9610 hardcode_shlibpath_var=no
9611 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615 export_dynamic_flag_spec='${wl}-E'
9618 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='-R$libdir'
9623 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631 hardcode_libdir_flag_spec='-L$libdir'
9632 hardcode_minus_L=yes
9633 allow_undefined_flag=unsupported
9634 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'
9635 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9639 if test "$GCC" = yes; then
9640 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641 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'
9643 allow_undefined_flag=' -expect_unresolved \*'
9644 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'
9646 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647 hardcode_libdir_separator=:
9650 osf4* | osf5*) # as osf3* with the addition of -msym flag
9651 if test "$GCC" = yes; then
9652 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9653 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'
9654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9656 allow_undefined_flag=' -expect_unresolved \*'
9657 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'
9658 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9659 $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'
9661 # Both c and cxx compiler support -rpath directly
9662 hardcode_libdir_flag_spec='-rpath $libdir'
9664 hardcode_libdir_separator=:
9668 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_shlibpath_var=no
9670 export_dynamic_flag_spec='${wl}-Bexport'
9671 runpath_var=LD_RUN_PATH
9672 hardcode_runpath_var=yes
9676 no_undefined_flag=' -z text'
9677 if test "$GCC" = yes; then
9679 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9681 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9684 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9686 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9688 hardcode_libdir_flag_spec='-R$libdir'
9689 hardcode_shlibpath_var=no
9691 solaris2.[0-5] | solaris2.[0-5].*) ;;
9693 # The compiler driver will combine linker options so we
9694 # cannot just pass the convience library names through
9695 # without $wl, iff we do not link with $LD.
9696 # Luckily, gcc supports the same syntax we need for Sun Studio.
9697 # Supported since Solaris 2.6 (maybe 2.5.1?)
9700 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9702 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' ;;
9705 link_all_deplibs=yes
9709 if test "x$host_vendor" = xsequent; then
9710 # Use $CC to link under sequent, because it throws in some extra .o
9711 # files that make .init and .fini sections work.
9712 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-L$libdir'
9718 hardcode_minus_L=yes
9719 hardcode_shlibpath_var=no
9723 case $host_vendor in
9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_direct=yes # is this really true???
9729 ## LD is ld it makes a PLAMLIB
9730 ## CC just makes a GrossModule.
9731 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9732 reload_cmds='$CC -r -o $output$reload_objs'
9736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9740 runpath_var='LD_RUN_PATH'
9741 hardcode_shlibpath_var=no
9745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746 hardcode_shlibpath_var=no
9747 export_dynamic_flag_spec='-Bexport'
9751 if test -d /usr/nec; then
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_shlibpath_var=no
9754 runpath_var=LD_RUN_PATH
9755 hardcode_runpath_var=yes
9761 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9764 hardcode_shlibpath_var=no
9765 hardcode_runpath_var=yes
9766 runpath_var=LD_RUN_PATH
9769 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9770 no_undefined_flag='${wl}-z ${wl}text'
9771 if test "$GCC" = yes; then
9772 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 runpath_var='LD_RUN_PATH'
9777 hardcode_shlibpath_var=no
9781 no_undefined_flag=' -z text'
9782 # $CC -shared without GNU ld will not create a library from C++
9783 # object files and a static libstdc++, better avoid it by now
9784 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9786 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9787 hardcode_libdir_flag_spec=
9788 hardcode_shlibpath_var=no
9789 runpath_var='LD_RUN_PATH'
9793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794 hardcode_libdir_flag_spec='-L$libdir'
9795 hardcode_shlibpath_var=no
9804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9805 echo "${ECHO_T}$ld_shlibs" >&6; }
9806 test "$ld_shlibs" = no && can_build_shared=no
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9814 # Do we need to explicitly link libc?
9816 case "x$archive_cmds_need_lc" in
9818 # Assume -lc should be added
9819 archive_cmds_need_lc=yes
9821 if test "$enable_shared" = yes && test "$GCC" = yes; then
9822 case $archive_cmds in
9824 # FIXME: we may have to deal with multi-command sequences.
9827 # Test whether the compiler implicitly links with -lc since on some
9828 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829 # to ld, don't add -lc before -lgcc.
9830 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836 (eval $ac_compile) 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } 2>conftest.err; then
9842 libobjs=conftest.$ac_objext
9844 wl=$lt_prog_compiler_wl
9850 lt_save_allow_undefined_flag=$allow_undefined_flag
9851 allow_undefined_flag=
9852 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9853 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }
9858 archive_cmds_need_lc=no
9860 archive_cmds_need_lc=yes
9862 allow_undefined_flag=$lt_save_allow_undefined_flag
9864 cat conftest.err 1>&5
9867 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9868 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9878 libname_spec='lib$name'
9886 shlibpath_overrides_runpath=unknown
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 if test "$GCC" = yes; then
9891 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9892 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9893 # if the path contains ";" then we assume it to be the separator
9894 # otherwise default to the standard path separator (i.e. ":") - it is
9895 # assumed that no part of a normal pathname contains ";" but that should
9896 # okay in the real world where ";" in dirpaths is itself problematic.
9897 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9904 need_lib_prefix=unknown
9905 hardcode_into_libs=no
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version=unknown
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9915 shlibpath_var=LIBPATH
9917 # AIX 3 has no versioning support, so we append a major version to the name.
9918 soname_spec='${libname}${release}${shared_ext}$major'
9925 hardcode_into_libs=yes
9926 if test "$host_cpu" = ia64; then
9927 # AIX 5 supports IA64
9928 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929 shlibpath_var=LD_LIBRARY_PATH
9931 # With GCC up to 2.95.x, collect2 would create an import file
9932 # for dependence libraries. The import file would start with
9933 # the line `#! .'. This would cause the generated library to
9934 # depend on `.', always an invalid library. This was fixed in
9935 # development snapshots of GCC prior to 3.0.
9937 aix4 | aix4.[01] | aix4.[01].*)
9938 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9940 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9947 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948 # soname into executable. Probably we can add versioning support to
9949 # collect2, so additional links can be useful in future.
9950 if test "$aix_use_runtimelinking" = yes; then
9951 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952 # instead of lib<name>.a to let people know that these are not
9953 # typical AIX shared libraries.
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956 # We preserve .a as extension for shared libraries through AIX4.2
9957 # and later when we are not doing run time linking.
9958 library_names_spec='${libname}${release}.a $libname.a'
9959 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LIBPATH
9966 library_names_spec='$libname.ixlibrary $libname.a'
9967 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968 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'
9972 library_names_spec='${libname}${shared_ext}'
9973 dynamic_linker="$host_os ld.so"
9974 shlibpath_var=LIBRARY_PATH
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9983 shlibpath_var=LD_LIBRARY_PATH
9984 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9986 # the default ld.so.conf also contains /usr/contrib/lib and
9987 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988 # libtool to hard-code these into programs
9991 cygwin* | mingw* | pw32*)
9992 version_type=windows
9997 case $GCC,$host_os in
9998 yes,cygwin* | yes,mingw* | yes,pw32*)
9999 library_names_spec='$libname.dll.a'
10000 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001 postinstall_cmds='base_file=`basename \${file}`~
10002 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003 dldir=$destdir/`dirname \$dlpath`~
10004 test -d \$dldir || mkdir -p \$dldir~
10005 $install_prog $dir/$dlname \$dldir/$dlname~
10006 chmod a+x \$dldir/$dlname'
10007 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008 dlpath=$dir/\$dldll~
10010 shlibpath_overrides_runpath=yes
10014 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10019 # MinGW DLLs use traditional 'lib' prefix
10020 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10023 # It is most probably a Windows format PATH printed by
10024 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025 # path with ; separators, and with drive letters. We can handle the
10026 # drive letters (cygwin fileutils understands them), so leave them,
10027 # especially as we might pass files found there to a mingw objdump,
10028 # which wouldn't understand a cygwinified path. Ahh.
10029 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10035 # pw32 DLLs use 'pw' prefix rather than 'lib'
10036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10042 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10045 dynamic_linker='Win32 ld.exe'
10046 # FIXME: first we should search . and the directory the executable is in
10050 darwin* | rhapsody*)
10051 dynamic_linker="$host_os dyld"
10052 version_type=darwin
10055 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056 soname_spec='${libname}${release}${major}$shared_ext'
10057 shlibpath_overrides_runpath=yes
10058 shlibpath_var=DYLD_LIBRARY_PATH
10059 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10060 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10061 if test "$GCC" = yes; then
10062 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"`
10064 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 shlibpath_overrides_runpath=no
10090 hardcode_into_libs=yes
10091 dynamic_linker='GNU ld.so'
10094 freebsd* | dragonfly*)
10095 # DragonFly does not have aout. When/if they implement a new
10096 # versioning mechanism, adjust this.
10097 if test -x /usr/bin/objformat; then
10098 objformat=`/usr/bin/objformat`
10101 freebsd[123]*) objformat=aout ;;
10102 *) objformat=elf ;;
10105 version_type=freebsd-$objformat
10106 case $version_type in
10108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10117 shlibpath_var=LD_LIBRARY_PATH
10120 shlibpath_overrides_runpath=yes
10122 freebsd3.[01]* | freebsdelf3.[01]*)
10123 shlibpath_overrides_runpath=yes
10124 hardcode_into_libs=yes
10127 shlibpath_overrides_runpath=no
10128 hardcode_into_libs=yes
10137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10138 soname_spec='${libname}${release}${shared_ext}$major'
10139 shlibpath_var=LD_LIBRARY_PATH
10140 hardcode_into_libs=yes
10143 hpux9* | hpux10* | hpux11*)
10144 # Give a soname corresponding to the major version so that dld.sl refuses to
10145 # link against other versions.
10152 hardcode_into_libs=yes
10153 dynamic_linker="$host_os dld.so"
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec='${libname}${release}${shared_ext}$major'
10158 if test "X$HPUX_IA64_MODE" = X32; then
10159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10167 hardcode_into_libs=yes
10168 dynamic_linker="$host_os dld.sl"
10169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 soname_spec='${libname}${release}${shared_ext}$major'
10173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10178 dynamic_linker="$host_os dld.sl"
10179 shlibpath_var=SHLIB_PATH
10180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10185 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10186 postinstall_cmds='chmod 555 $lib'
10189 irix5* | irix6* | nonstopux*)
10191 nonstopux*) version_type=nonstopux ;;
10193 if test "$lt_cv_prog_gnu_ld" = yes; then
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10204 irix5* | nonstopux*)
10205 libsuff= shlibsuff=
10208 case $LD in # libtool.m4 will add one of these switches to LD
10209 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210 libsuff= shlibsuff= libmagic=32-bit;;
10211 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212 libsuff=32 shlibsuff=N32 libmagic=N32;;
10213 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215 *) libsuff= shlibsuff= libmagic=never-match;;
10219 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220 shlibpath_overrides_runpath=no
10221 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223 hardcode_into_libs=yes
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10231 # This must be Linux ELF.
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=no
10241 # This implies no fast_install, which is unacceptable.
10242 # Some rework will be needed to allow for fast_install
10243 # before this can be enabled.
10244 hardcode_into_libs=yes
10246 # Append ld.so.conf contents to the search path
10247 if test -f /etc/ld.so.conf; then
10248 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' ' '`
10249 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10252 # We used to test for /lib/ld.so.1 and disable shared libraries on
10253 # powerpc, because MkLinux only supported shared libraries with the
10254 # GNU dynamic linker. Since this was broken with cross compilers,
10255 # most powerpc-linux boxes support dynamic linking these days and
10256 # people can always --disable-shared, the test was removed, and we
10257 # assume the GNU/Linux dynamic linker is in use.
10258 dynamic_linker='GNU/Linux ld.so'
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 shlibpath_overrides_runpath=no
10269 hardcode_into_libs=yes
10270 dynamic_linker='GNU ld.so'
10277 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280 dynamic_linker='NetBSD (a.out) ld.so'
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 dynamic_linker='NetBSD ld.elf_so'
10286 shlibpath_var=LD_LIBRARY_PATH
10287 shlibpath_overrides_runpath=yes
10288 hardcode_into_libs=yes
10293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 shlibpath_overrides_runpath=yes
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=yes
10311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314 *) need_version=no ;;
10316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318 shlibpath_var=LD_LIBRARY_PATH
10319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10321 openbsd2.[89] | openbsd2.[89].*)
10322 shlibpath_overrides_runpath=no
10325 shlibpath_overrides_runpath=yes
10329 shlibpath_overrides_runpath=yes
10334 libname_spec='$name'
10337 library_names_spec='$libname${shared_ext} $libname.a'
10338 dynamic_linker='OS/2 ld.exe'
10339 shlibpath_var=LIBPATH
10342 osf3* | osf4* | osf5*)
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348 shlibpath_var=LD_LIBRARY_PATH
10349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10355 soname_spec='${libname}${release}${shared_ext}$major'
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=yes
10368 hardcode_into_libs=yes
10369 # ldd complains unless libraries are executable
10370 postinstall_cmds='chmod +x $lib'
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377 shlibpath_var=LD_LIBRARY_PATH
10378 shlibpath_overrides_runpath=yes
10379 if test "$with_gnu_ld" = yes; then
10385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 soname_spec='${libname}${release}${shared_ext}$major'
10389 shlibpath_var=LD_LIBRARY_PATH
10390 case $host_vendor in
10392 shlibpath_overrides_runpath=no
10394 export_dynamic_flag_spec='${wl}-Blargedynsym'
10395 runpath_var=LD_RUN_PATH
10403 shlibpath_overrides_runpath=no
10404 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10410 if test -d /usr/nec ;then
10412 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413 soname_spec='$libname${shared_ext}.$major'
10414 shlibpath_var=LD_LIBRARY_PATH
10420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421 soname_spec='${libname}${release}${shared_ext}$major'
10422 shlibpath_var=LD_LIBRARY_PATH
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10433 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10436 if test -n "$hardcode_libdir_flag_spec" || \
10437 test -n "$runpath_var" || \
10438 test "X$hardcode_automatic" = "Xyes" ; then
10440 # We can hardcode non-existant directories.
10441 if test "$hardcode_direct" != no &&
10442 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443 # have to relink, otherwise we might link with an installed library
10444 # when we should be linking with a yet-to-be-installed one
10445 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446 test "$hardcode_minus_L" != no; then
10447 # Linking always hardcodes the temporary library directory.
10448 hardcode_action=relink
10450 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451 hardcode_action=immediate
10454 # We cannot hardcode anything, or else we can only hardcode existing
10456 hardcode_action=unsupported
10458 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459 echo "${ECHO_T}$hardcode_action" >&6; }
10461 if test "$hardcode_action" = relink; then
10462 # Fast installation is not supported
10463 enable_fast_install=no
10464 elif test "$shlibpath_overrides_runpath" = yes ||
10465 test "$enable_shared" = no; then
10466 # Fast installation is not necessary
10467 enable_fast_install=needless
10472 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477 { echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6; }
10480 # FIXME - insert some real tests, host_os isn't really good enough
10483 if test -n "$STRIP" ; then
10484 striplib="$STRIP -x"
10485 { echo "$as_me:$LINENO: result: yes" >&5
10486 echo "${ECHO_T}yes" >&6; }
10488 { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10493 { echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6; }
10499 if test "x$enable_dlopen" != xyes; then
10500 enable_dlopen=unknown
10501 enable_dlopen_self=unknown
10502 enable_dlopen_self_static=unknown
10509 lt_cv_dlopen="load_add_on"
10511 lt_cv_dlopen_self=yes
10515 lt_cv_dlopen="LoadLibrary"
10520 lt_cv_dlopen="dlopen"
10525 # if libdl is installed we need to link against it
10526 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 ac_check_lib_save_LIBS=$LIBS
10533 cat >conftest.$ac_ext <<_ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559 *) ac_try_echo=$ac_try;;
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562 (eval "$ac_link") 2>conftest.er1
10564 grep -v '^ *+' conftest.er1 >conftest.err
10566 cat conftest.err >&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest$ac_exeext &&
10572 $as_test_x conftest$ac_exeext; then
10573 ac_cv_lib_dl_dlopen=yes
10575 echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10578 ac_cv_lib_dl_dlopen=no
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582 conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10591 lt_cv_dlopen="dyld"
10593 lt_cv_dlopen_self=yes
10600 { echo "$as_me:$LINENO: checking for shl_load" >&5
10601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10602 if test "${ac_cv_func_shl_load+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10612 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10613 #define shl_load innocuous_shl_load
10615 /* System header to define __stub macros and hopefully few prototypes,
10616 which can conflict with char shl_load (); below.
10617 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10618 <limits.h> exists even on freestanding compilers. */
10621 # include <limits.h>
10623 # include <assert.h>
10628 /* Override any GCC internal prototype to avoid an error.
10629 Use char because int might match the return type of a GCC
10630 builtin and then its argument prototype would still apply. */
10635 /* The GNU C library defines this for functions which it implements
10636 to always fail with ENOSYS. Some functions are actually named
10637 something starting with __ and the normal name is an alias. */
10638 #if defined __stub_shl_load || defined __stub___shl_load
10645 return shl_load ();
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654 *) ac_try_echo=$ac_try;;
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657 (eval "$ac_link") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest$ac_exeext &&
10667 $as_test_x conftest$ac_exeext; then
10668 ac_cv_func_shl_load=yes
10670 echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10673 ac_cv_func_shl_load=no
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677 conftest$ac_exeext conftest.$ac_ext
10679 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10681 if test $ac_cv_func_shl_load = yes; then
10682 lt_cv_dlopen="shl_load"
10684 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 ac_check_lib_save_LIBS=$LIBS
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10698 /* Override any GCC internal prototype to avoid an error.
10699 Use char because int might match the return type of a GCC
10700 builtin and then its argument prototype would still apply. */
10708 return shl_load ();
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10722 grep -v '^ *+' conftest.er1 >conftest.err
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest$ac_exeext &&
10730 $as_test_x conftest$ac_exeext; then
10731 ac_cv_lib_dld_shl_load=yes
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 ac_cv_lib_dld_shl_load=no
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10745 if test $ac_cv_lib_dld_shl_load = yes; then
10746 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10748 { echo "$as_me:$LINENO: checking for dlopen" >&5
10749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10750 if test "${ac_cv_func_dlopen+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10761 #define dlopen innocuous_dlopen
10763 /* System header to define __stub macros and hopefully few prototypes,
10764 which can conflict with char dlopen (); below.
10765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766 <limits.h> exists even on freestanding compilers. */
10769 # include <limits.h>
10771 # include <assert.h>
10776 /* Override any GCC internal prototype to avoid an error.
10777 Use char because int might match the return type of a GCC
10778 builtin and then its argument prototype would still apply. */
10783 /* The GNU C library defines this for functions which it implements
10784 to always fail with ENOSYS. Some functions are actually named
10785 something starting with __ and the normal name is an alias. */
10786 #if defined __stub_dlopen || defined __stub___dlopen
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_link") 2>conftest.er1
10807 grep -v '^ *+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } && {
10812 test -z "$ac_c_werror_flag" ||
10813 test ! -s conftest.err
10814 } && test -s conftest$ac_exeext &&
10815 $as_test_x conftest$ac_exeext; then
10816 ac_cv_func_dlopen=yes
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_cv_func_dlopen=no
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825 conftest$ac_exeext conftest.$ac_ext
10827 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10829 if test $ac_cv_func_dlopen = yes; then
10830 lt_cv_dlopen="dlopen"
10832 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 ac_check_lib_save_LIBS=$LIBS
10839 cat >conftest.$ac_ext <<_ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h. */
10846 /* Override any GCC internal prototype to avoid an error.
10847 Use char because int might match the return type of a GCC
10848 builtin and then its argument prototype would still apply. */
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865 *) ac_try_echo=$ac_try;;
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868 (eval "$ac_link") 2>conftest.er1
10870 grep -v '^ *+' conftest.er1 >conftest.err
10872 cat conftest.err >&5
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); } && {
10875 test -z "$ac_c_werror_flag" ||
10876 test ! -s conftest.err
10877 } && test -s conftest$ac_exeext &&
10878 $as_test_x conftest$ac_exeext; then
10879 ac_cv_lib_dl_dlopen=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_lib_dl_dlopen=no
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10896 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h. */
10910 /* Override any GCC internal prototype to avoid an error.
10911 Use char because int might match the return type of a GCC
10912 builtin and then its argument prototype would still apply. */
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_link") 2>conftest.er1
10934 grep -v '^ *+' conftest.er1 >conftest.err
10936 cat conftest.err >&5
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } && {
10939 test -z "$ac_c_werror_flag" ||
10940 test ! -s conftest.err
10941 } && test -s conftest$ac_exeext &&
10942 $as_test_x conftest$ac_exeext; then
10943 ac_cv_lib_svld_dlopen=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 ac_cv_lib_svld_dlopen=no
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952 conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10957 if test $ac_cv_lib_svld_dlopen = yes; then
10958 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10960 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963 echo $ECHO_N "(cached) $ECHO_C" >&6
10965 ac_check_lib_save_LIBS=$LIBS
10967 cat >conftest.$ac_ext <<_ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h. */
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10984 return dld_link ();
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993 *) ac_try_echo=$ac_try;;
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996 (eval "$ac_link") 2>conftest.er1
10998 grep -v '^ *+' conftest.er1 >conftest.err
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } && {
11003 test -z "$ac_c_werror_flag" ||
11004 test ! -s conftest.err
11005 } && test -s conftest$ac_exeext &&
11006 $as_test_x conftest$ac_exeext; then
11007 ac_cv_lib_dld_dld_link=yes
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11012 ac_cv_lib_dld_dld_link=no
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11021 if test $ac_cv_lib_dld_dld_link = yes; then
11022 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11043 if test "x$lt_cv_dlopen" != xno; then
11049 case $lt_cv_dlopen in
11051 save_CPPFLAGS="$CPPFLAGS"
11052 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11054 save_LDFLAGS="$LDFLAGS"
11055 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11058 LIBS="$lt_cv_dlopen_libs $LIBS"
11060 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11061 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11062 if test "${lt_cv_dlopen_self+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 if test "$cross_compiling" = yes; then :
11066 lt_cv_dlopen_self=cross
11068 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11069 lt_status=$lt_dlunknown
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11081 # define LT_DLGLOBAL RTLD_GLOBAL
11084 # define LT_DLGLOBAL DL_GLOBAL
11086 # define LT_DLGLOBAL 0
11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11091 find out it does not work in some platform. */
11092 #ifndef LT_DLLAZY_OR_NOW
11094 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11097 # define LT_DLLAZY_OR_NOW DL_LAZY
11100 # define LT_DLLAZY_OR_NOW RTLD_NOW
11103 # define LT_DLLAZY_OR_NOW DL_NOW
11105 # define LT_DLLAZY_OR_NOW 0
11113 extern "C" void exit (int);
11116 void fnord() { int i=42;}
11119 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120 int status = $lt_dlunknown;
11124 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11125 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126 /* dlclose (self); */
11132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133 (eval $ac_link) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11137 (./conftest; exit; ) >&5 2>/dev/null
11139 case x$lt_status in
11140 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11141 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11142 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11145 # compilation failed
11146 lt_cv_dlopen_self=no
11153 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11154 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11156 if test "x$lt_cv_dlopen_self" = xyes; then
11157 LDFLAGS="$LDFLAGS $link_static_flag"
11158 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11159 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11160 if test "${lt_cv_dlopen_self_static+set}" = set; then
11161 echo $ECHO_N "(cached) $ECHO_C" >&6
11163 if test "$cross_compiling" = yes; then :
11164 lt_cv_dlopen_self_static=cross
11166 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167 lt_status=$lt_dlunknown
11168 cat > conftest.$ac_ext <<EOF
11169 #line 11169 "configure"
11170 #include "confdefs.h"
11179 # define LT_DLGLOBAL RTLD_GLOBAL
11182 # define LT_DLGLOBAL DL_GLOBAL
11184 # define LT_DLGLOBAL 0
11188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189 find out it does not work in some platform. */
11190 #ifndef LT_DLLAZY_OR_NOW
11192 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11195 # define LT_DLLAZY_OR_NOW DL_LAZY
11198 # define LT_DLLAZY_OR_NOW RTLD_NOW
11201 # define LT_DLLAZY_OR_NOW DL_NOW
11203 # define LT_DLLAZY_OR_NOW 0
11211 extern "C" void exit (int);
11214 void fnord() { int i=42;}
11217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11218 int status = $lt_dlunknown;
11222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11223 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11224 /* dlclose (self); */
11230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231 (eval $ac_link) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235 (./conftest; exit; ) >&5 2>/dev/null
11237 case x$lt_status in
11238 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11243 # compilation failed
11244 lt_cv_dlopen_self_static=no
11251 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11255 CPPFLAGS="$save_CPPFLAGS"
11256 LDFLAGS="$save_LDFLAGS"
11261 case $lt_cv_dlopen_self in
11262 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263 *) enable_dlopen_self=unknown ;;
11266 case $lt_cv_dlopen_self_static in
11267 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268 *) enable_dlopen_self_static=unknown ;;
11273 # Report which librarie types wil actually be built
11274 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11275 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11276 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11277 echo "${ECHO_T}$can_build_shared" >&6; }
11279 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11280 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11281 test "$can_build_shared" = "no" && enable_shared=no
11283 # On AIX, shared libraries and static libraries use the same namespace, and
11284 # are all built from PIC.
11287 test "$enable_shared" = yes && enable_static=no
11288 if test -n "$RANLIB"; then
11289 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11290 postinstall_cmds='$RANLIB $lib'
11295 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11296 test "$enable_shared" = yes && enable_static=no
11300 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11301 echo "${ECHO_T}$enable_shared" >&6; }
11303 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11304 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11305 # Make sure either enable_shared or enable_static is yes.
11306 test "$enable_shared" = yes || enable_static=yes
11307 { echo "$as_me:$LINENO: result: $enable_static" >&5
11308 echo "${ECHO_T}$enable_static" >&6; }
11310 # The else clause should only fire when bootstrapping the
11311 # libtool distribution, otherwise you forgot to ship ltmain.sh
11312 # with your package, and you will get complaints that there are
11313 # no rules to generate ltmain.sh.
11314 if test -f "$ltmain"; then
11315 # See if we are running on zsh, and set the options which allow our commands through
11316 # without removal of \ escapes.
11317 if test -n "${ZSH_VERSION+set}" ; then
11318 setopt NO_GLOB_SUBST
11320 # Now quote all the things that may contain metacharacters while being
11321 # careful not to overquote the AC_SUBSTed values. We take copies of the
11322 # variables and quote the copies for generation of the libtool script.
11323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11327 deplibs_check_method reload_flag reload_cmds need_locks \
11328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11329 lt_cv_sys_global_symbol_to_c_name_address \
11330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11331 old_postinstall_cmds old_postuninstall_cmds \
11335 lt_prog_compiler_wl \
11336 lt_prog_compiler_pic \
11337 lt_prog_compiler_static \
11338 lt_prog_compiler_no_builtin_flag \
11339 export_dynamic_flag_spec \
11340 thread_safe_flag_spec \
11341 whole_archive_flag_spec \
11342 enable_shared_with_static_runtimes \
11344 old_archive_from_new_cmds \
11349 compiler_lib_search_path \
11351 archive_expsym_cmds \
11353 postuninstall_cmds \
11354 old_archive_from_expsyms_cmds \
11355 allow_undefined_flag \
11356 no_undefined_flag \
11357 export_symbols_cmds \
11358 hardcode_libdir_flag_spec \
11359 hardcode_libdir_flag_spec_ld \
11360 hardcode_libdir_separator \
11361 hardcode_automatic \
11363 module_expsym_cmds \
11364 lt_cv_prog_compiler_c_o \
11366 include_expsyms; do
11369 old_archive_cmds | \
11370 old_archive_from_new_cmds | \
11372 archive_expsym_cmds | \
11374 module_expsym_cmds | \
11375 old_archive_from_expsyms_cmds | \
11376 export_symbols_cmds | \
11377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11378 postinstall_cmds | postuninstall_cmds | \
11379 old_postinstall_cmds | old_postuninstall_cmds | \
11380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11381 # Double-quote double-evaled strings.
11382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11391 *'\$0 --fallback-echo"')
11392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11396 cfgfile="${ofile}T"
11397 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11399 { echo "$as_me:$LINENO: creating $ofile" >&5
11400 echo "$as_me: creating $ofile" >&6;}
11402 cat <<__EOF__ >> "$cfgfile"
11405 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11406 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11410 # Free Software Foundation, Inc.
11412 # This file is part of GNU Libtool:
11413 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11415 # This program is free software; you can redistribute it and/or modify
11416 # it under the terms of the GNU General Public License as published by
11417 # the Free Software Foundation; either version 2 of the License, or
11418 # (at your option) any later version.
11420 # This program is distributed in the hope that it will be useful, but
11421 # WITHOUT ANY WARRANTY; without even the implied warranty of
11422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11423 # General Public License for more details.
11425 # You should have received a copy of the GNU General Public License
11426 # along with this program; if not, write to the Free Software
11427 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11429 # As a special exception to the GNU General Public License, if you
11430 # distribute this file as part of a program that contains a
11431 # configuration script generated by Autoconf, you may include it under
11432 # the same distribution terms that you use for the rest of that program.
11434 # A sed program that does not truncate output.
11437 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11438 Xsed="$SED -e 1s/^X//"
11440 # The HP-UX ksh and POSIX shell print the target directory to stdout
11441 # if CDPATH is set.
11442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11444 # The names of the tagged configurations supported by this script.
11447 # ### BEGIN LIBTOOL CONFIG
11449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11451 # Shell to use when invoking shell scripts.
11454 # Whether or not to build shared libraries.
11455 build_libtool_libs=$enable_shared
11457 # Whether or not to build static libraries.
11458 build_old_libs=$enable_static
11460 # Whether or not to add -lc for building shared libraries.
11461 build_libtool_need_lc=$archive_cmds_need_lc
11463 # Whether or not to disallow shared libs when runtime libs are static
11464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11466 # Whether or not to optimize for fast installation.
11467 fast_install=$enable_fast_install
11470 host_alias=$host_alias
11474 # The build system.
11475 build_alias=$build_alias
11479 # An echo program that does not interpret backslashes.
11484 AR_FLAGS=$lt_AR_FLAGS
11489 # A language-specific compiler.
11492 # Is the compiler the GNU C compiler?
11498 # The linker used to build libraries.
11501 # Whether we need hard or soft links.
11504 # A BSD-compatible nm program.
11507 # A symbol stripping program
11510 # Used to examine libraries when file_magic_cmd begins "file"
11511 MAGIC_CMD=$MAGIC_CMD
11513 # Used on cygwin: DLL creation program.
11516 # Used on cygwin: object dumper.
11519 # Used on cygwin: assembler.
11522 # The name of the directory that contains temporary libtool files.
11525 # How to create reloadable object files.
11526 reload_flag=$lt_reload_flag
11527 reload_cmds=$lt_reload_cmds
11529 # How to pass a linker flag through the compiler.
11530 wl=$lt_lt_prog_compiler_wl
11532 # Object file suffix (normally "o").
11533 objext="$ac_objext"
11535 # Old archive suffix (normally "a").
11538 # Shared library suffix (normally ".so").
11539 shrext_cmds='$shrext_cmds'
11541 # Executable file suffix (normally "").
11544 # Additional compiler flags for building library objects.
11545 pic_flag=$lt_lt_prog_compiler_pic
11548 # What is the maximum length of a command?
11549 max_cmd_len=$lt_cv_sys_max_cmd_len
11551 # Does compiler simultaneously support -c and -o options?
11552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11554 # Must we lock files when doing compilation?
11555 need_locks=$lt_need_locks
11557 # Do we need the lib prefix for modules?
11558 need_lib_prefix=$need_lib_prefix
11560 # Do we need a version for libraries?
11561 need_version=$need_version
11563 # Whether dlopen is supported.
11564 dlopen_support=$enable_dlopen
11566 # Whether dlopen of programs is supported.
11567 dlopen_self=$enable_dlopen_self
11569 # Whether dlopen of statically linked programs is supported.
11570 dlopen_self_static=$enable_dlopen_self_static
11572 # Compiler flag to prevent dynamic linking.
11573 link_static_flag=$lt_lt_prog_compiler_static
11575 # Compiler flag to turn off builtin functions.
11576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11578 # Compiler flag to allow reflexive dlopens.
11579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11581 # Compiler flag to generate shared objects directly from archives.
11582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11584 # Compiler flag to generate thread-safe objects.
11585 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11587 # Library versioning type.
11588 version_type=$version_type
11590 # Format of library name prefix.
11591 libname_spec=$lt_libname_spec
11593 # List of archive names. First name is the real one, the rest are links.
11594 # The last name is the one that the linker finds with -lNAME.
11595 library_names_spec=$lt_library_names_spec
11597 # The coded name of the library, if different from the real name.
11598 soname_spec=$lt_soname_spec
11600 # Commands used to build and install an old-style archive.
11602 old_archive_cmds=$lt_old_archive_cmds
11603 old_postinstall_cmds=$lt_old_postinstall_cmds
11604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11606 # Create an old-style archive from a shared archive.
11607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11609 # Create a temporary old-style archive to link instead of a shared archive.
11610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11612 # Commands used to build and install a shared archive.
11613 archive_cmds=$lt_archive_cmds
11614 archive_expsym_cmds=$lt_archive_expsym_cmds
11615 postinstall_cmds=$lt_postinstall_cmds
11616 postuninstall_cmds=$lt_postuninstall_cmds
11618 # Commands used to build a loadable module (assumed same as above if empty)
11619 module_cmds=$lt_module_cmds
11620 module_expsym_cmds=$lt_module_expsym_cmds
11622 # Commands to strip libraries.
11623 old_striplib=$lt_old_striplib
11624 striplib=$lt_striplib
11626 # Dependencies to place before the objects being linked to create a
11628 predep_objects=$lt_predep_objects
11630 # Dependencies to place after the objects being linked to create a
11632 postdep_objects=$lt_postdep_objects
11634 # Dependencies to place before the objects being linked to create a
11636 predeps=$lt_predeps
11638 # Dependencies to place after the objects being linked to create a
11640 postdeps=$lt_postdeps
11642 # The library search path used internally by the compiler when linking
11643 # a shared library.
11644 compiler_lib_search_path=$lt_compiler_lib_search_path
11646 # Method to check whether dependent libraries are shared objects.
11647 deplibs_check_method=$lt_deplibs_check_method
11649 # Command to use when deplibs_check_method == file_magic.
11650 file_magic_cmd=$lt_file_magic_cmd
11652 # Flag that allows shared libraries with undefined symbols to be built.
11653 allow_undefined_flag=$lt_allow_undefined_flag
11655 # Flag that forces no undefined symbols.
11656 no_undefined_flag=$lt_no_undefined_flag
11658 # Commands used to finish a libtool library installation in a directory.
11659 finish_cmds=$lt_finish_cmds
11661 # Same as above, but a single script fragment to be evaled but not shown.
11662 finish_eval=$lt_finish_eval
11664 # Take the output of nm and produce a listing of raw symbols and C names.
11665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11667 # Transform the output of nm in a proper C declaration
11668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11670 # Transform the output of nm in a C name address pair
11671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11673 # This is the shared library runtime path variable.
11674 runpath_var=$runpath_var
11676 # This is the shared library path variable.
11677 shlibpath_var=$shlibpath_var
11679 # Is shlibpath searched before the hard-coded library search path?
11680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11682 # How to hardcode a shared library path into an executable.
11683 hardcode_action=$hardcode_action
11685 # Whether we should hardcode library paths into libraries.
11686 hardcode_into_libs=$hardcode_into_libs
11688 # Flag to hardcode \$libdir into a binary during linking.
11689 # This must work even if \$libdir does not exist.
11690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11692 # If ld is used when linking, flag to hardcode \$libdir into
11693 # a binary during linking. This must work even if \$libdir does
11695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11697 # Whether we need a single -rpath flag with a separated argument.
11698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11700 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11701 # resulting binary.
11702 hardcode_direct=$hardcode_direct
11704 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11705 # resulting binary.
11706 hardcode_minus_L=$hardcode_minus_L
11708 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11709 # the resulting binary.
11710 hardcode_shlibpath_var=$hardcode_shlibpath_var
11712 # Set to yes if building a shared library automatically hardcodes DIR into the library
11713 # and all subsequent libraries and executables linked against it.
11714 hardcode_automatic=$hardcode_automatic
11716 # Variables whose values should be saved in libtool wrapper scripts and
11717 # restored at relink time.
11718 variables_saved_for_relink="$variables_saved_for_relink"
11720 # Whether libtool must link a program against all its dependency libraries.
11721 link_all_deplibs=$link_all_deplibs
11723 # Compile-time system search path for libraries
11724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11726 # Run-time system search path for libraries
11727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11729 # Fix the shell variable \$srcfile for the compiler.
11730 fix_srcfile_path="$fix_srcfile_path"
11732 # Set to yes if exported symbols are required.
11733 always_export_symbols=$always_export_symbols
11735 # The commands to list exported symbols.
11736 export_symbols_cmds=$lt_export_symbols_cmds
11738 # The commands to extract the exported symbol list from a shared archive.
11739 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11741 # Symbols that should not be listed in the preloaded symbols.
11742 exclude_expsyms=$lt_exclude_expsyms
11744 # Symbols that must always be exported.
11745 include_expsyms=$lt_include_expsyms
11747 # ### END LIBTOOL CONFIG
11754 cat <<\EOF >> "$cfgfile"
11756 # AIX sometimes has problems with the GCC collect2 program. For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test "X${COLLECT_NAMES+set}" != Xset; then
11761 export COLLECT_NAMES
11767 # We use sed instead of cat because bash on DJGPP gets confused if
11768 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11769 # text mode, it properly converts lines to CR/LF. This bash problem
11770 # is reportedly fixed, but why not run on old versions too?
11771 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11773 mv -f "$cfgfile" "$ofile" || \
11774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11778 # If there is no Makefile yet, we rely on a make rule to execute
11779 # `config.status --recheck' to rerun these tests and create the
11780 # libtool script then.
11781 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11782 if test -f "$ltmain_in"; then
11783 test -f Makefile && make "$ltmain"
11789 ac_cpp='$CPP $CPPFLAGS'
11790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11797 # Check whether --with-tags was given.
11798 if test "${with_tags+set}" = set; then
11799 withval=$with_tags; tagnames="$withval"
11803 if test -f "$ltmain" && test -n "$tagnames"; then
11804 if test ! -f "${ofile}"; then
11805 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11806 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11809 if test -z "$LTCC"; then
11810 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11811 if test -z "$LTCC"; then
11812 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11815 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11816 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11820 # Extract list of available tagged configurations in $ofile.
11821 # Note that this assumes the entire list is on one line.
11822 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11825 for tagname in $tagnames; do
11827 # Check whether tagname contains only valid characters
11828 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11830 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11831 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11832 { (exit 1); exit 1; }; }
11836 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11838 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11839 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11840 { (exit 1); exit 1; }; }
11843 # Update the list of available tags.
11844 if test -n "$tagname"; then
11845 echo appending configuration tag \"$tagname\" to $ofile
11849 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11850 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11851 (test "X$CXX" != "Xg++"))) ; then
11859 if test -n "$F77" && test "X$F77" != "Xno"; then
11867 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11877 # Source file extension for RC test sources.
11880 # Object file extension for compiled RC test sources.
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code="$lt_simple_compile_test_code"
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11892 # If no C compiler was specified, use CC.
11895 # Allow CC to be a program name with arguments.
11899 # save warnings/boilerplate of simple test code
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11903 _lt_compiler_boilerplate=`cat conftest.err`
11906 ac_outfile=conftest.$ac_objext
11907 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11909 _lt_linker_boilerplate=`cat conftest.err`
11913 # Allow CC to be a program name with arguments.
11918 for cc_temp in $compiler""; do
11920 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11921 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11928 lt_cv_prog_compiler_c_o_RC=yes
11930 # The else clause should only fire when bootstrapping the
11931 # libtool distribution, otherwise you forgot to ship ltmain.sh
11932 # with your package, and you will get complaints that there are
11933 # no rules to generate ltmain.sh.
11934 if test -f "$ltmain"; then
11935 # See if we are running on zsh, and set the options which allow our commands through
11936 # without removal of \ escapes.
11937 if test -n "${ZSH_VERSION+set}" ; then
11938 setopt NO_GLOB_SUBST
11940 # Now quote all the things that may contain metacharacters while being
11941 # careful not to overquote the AC_SUBSTed values. We take copies of the
11942 # variables and quote the copies for generation of the libtool script.
11943 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11945 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947 deplibs_check_method reload_flag reload_cmds need_locks \
11948 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949 lt_cv_sys_global_symbol_to_c_name_address \
11950 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951 old_postinstall_cmds old_postuninstall_cmds \
11955 lt_prog_compiler_wl_RC \
11956 lt_prog_compiler_pic_RC \
11957 lt_prog_compiler_static_RC \
11958 lt_prog_compiler_no_builtin_flag_RC \
11959 export_dynamic_flag_spec_RC \
11960 thread_safe_flag_spec_RC \
11961 whole_archive_flag_spec_RC \
11962 enable_shared_with_static_runtimes_RC \
11963 old_archive_cmds_RC \
11964 old_archive_from_new_cmds_RC \
11965 predep_objects_RC \
11966 postdep_objects_RC \
11969 compiler_lib_search_path_RC \
11971 archive_expsym_cmds_RC \
11972 postinstall_cmds_RC \
11973 postuninstall_cmds_RC \
11974 old_archive_from_expsyms_cmds_RC \
11975 allow_undefined_flag_RC \
11976 no_undefined_flag_RC \
11977 export_symbols_cmds_RC \
11978 hardcode_libdir_flag_spec_RC \
11979 hardcode_libdir_flag_spec_ld_RC \
11980 hardcode_libdir_separator_RC \
11981 hardcode_automatic_RC \
11983 module_expsym_cmds_RC \
11984 lt_cv_prog_compiler_c_o_RC \
11985 exclude_expsyms_RC \
11986 include_expsyms_RC; do
11989 old_archive_cmds_RC | \
11990 old_archive_from_new_cmds_RC | \
11991 archive_cmds_RC | \
11992 archive_expsym_cmds_RC | \
11994 module_expsym_cmds_RC | \
11995 old_archive_from_expsyms_cmds_RC | \
11996 export_symbols_cmds_RC | \
11997 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998 postinstall_cmds | postuninstall_cmds | \
11999 old_postinstall_cmds | old_postuninstall_cmds | \
12000 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001 # Double-quote double-evaled strings.
12002 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12005 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12011 *'\$0 --fallback-echo"')
12012 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12018 cat <<__EOF__ >> "$cfgfile"
12019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12023 # Shell to use when invoking shell scripts.
12026 # Whether or not to build shared libraries.
12027 build_libtool_libs=$enable_shared
12029 # Whether or not to build static libraries.
12030 build_old_libs=$enable_static
12032 # Whether or not to add -lc for building shared libraries.
12033 build_libtool_need_lc=$archive_cmds_need_lc_RC
12035 # Whether or not to disallow shared libs when runtime libs are static
12036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12038 # Whether or not to optimize for fast installation.
12039 fast_install=$enable_fast_install
12042 host_alias=$host_alias
12046 # The build system.
12047 build_alias=$build_alias
12051 # An echo program that does not interpret backslashes.
12056 AR_FLAGS=$lt_AR_FLAGS
12061 # A language-specific compiler.
12064 # Is the compiler the GNU C compiler?
12070 # The linker used to build libraries.
12073 # Whether we need hard or soft links.
12076 # A BSD-compatible nm program.
12079 # A symbol stripping program
12082 # Used to examine libraries when file_magic_cmd begins "file"
12083 MAGIC_CMD=$MAGIC_CMD
12085 # Used on cygwin: DLL creation program.
12088 # Used on cygwin: object dumper.
12091 # Used on cygwin: assembler.
12094 # The name of the directory that contains temporary libtool files.
12097 # How to create reloadable object files.
12098 reload_flag=$lt_reload_flag
12099 reload_cmds=$lt_reload_cmds
12101 # How to pass a linker flag through the compiler.
12102 wl=$lt_lt_prog_compiler_wl_RC
12104 # Object file suffix (normally "o").
12105 objext="$ac_objext"
12107 # Old archive suffix (normally "a").
12110 # Shared library suffix (normally ".so").
12111 shrext_cmds='$shrext_cmds'
12113 # Executable file suffix (normally "").
12116 # Additional compiler flags for building library objects.
12117 pic_flag=$lt_lt_prog_compiler_pic_RC
12120 # What is the maximum length of a command?
12121 max_cmd_len=$lt_cv_sys_max_cmd_len
12123 # Does compiler simultaneously support -c and -o options?
12124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12126 # Must we lock files when doing compilation?
12127 need_locks=$lt_need_locks
12129 # Do we need the lib prefix for modules?
12130 need_lib_prefix=$need_lib_prefix
12132 # Do we need a version for libraries?
12133 need_version=$need_version
12135 # Whether dlopen is supported.
12136 dlopen_support=$enable_dlopen
12138 # Whether dlopen of programs is supported.
12139 dlopen_self=$enable_dlopen_self
12141 # Whether dlopen of statically linked programs is supported.
12142 dlopen_self_static=$enable_dlopen_self_static
12144 # Compiler flag to prevent dynamic linking.
12145 link_static_flag=$lt_lt_prog_compiler_static_RC
12147 # Compiler flag to turn off builtin functions.
12148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12150 # Compiler flag to allow reflexive dlopens.
12151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12153 # Compiler flag to generate shared objects directly from archives.
12154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12156 # Compiler flag to generate thread-safe objects.
12157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12159 # Library versioning type.
12160 version_type=$version_type
12162 # Format of library name prefix.
12163 libname_spec=$lt_libname_spec
12165 # List of archive names. First name is the real one, the rest are links.
12166 # The last name is the one that the linker finds with -lNAME.
12167 library_names_spec=$lt_library_names_spec
12169 # The coded name of the library, if different from the real name.
12170 soname_spec=$lt_soname_spec
12172 # Commands used to build and install an old-style archive.
12174 old_archive_cmds=$lt_old_archive_cmds_RC
12175 old_postinstall_cmds=$lt_old_postinstall_cmds
12176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12178 # Create an old-style archive from a shared archive.
12179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12181 # Create a temporary old-style archive to link instead of a shared archive.
12182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12184 # Commands used to build and install a shared archive.
12185 archive_cmds=$lt_archive_cmds_RC
12186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12187 postinstall_cmds=$lt_postinstall_cmds
12188 postuninstall_cmds=$lt_postuninstall_cmds
12190 # Commands used to build a loadable module (assumed same as above if empty)
12191 module_cmds=$lt_module_cmds_RC
12192 module_expsym_cmds=$lt_module_expsym_cmds_RC
12194 # Commands to strip libraries.
12195 old_striplib=$lt_old_striplib
12196 striplib=$lt_striplib
12198 # Dependencies to place before the objects being linked to create a
12200 predep_objects=$lt_predep_objects_RC
12202 # Dependencies to place after the objects being linked to create a
12204 postdep_objects=$lt_postdep_objects_RC
12206 # Dependencies to place before the objects being linked to create a
12208 predeps=$lt_predeps_RC
12210 # Dependencies to place after the objects being linked to create a
12212 postdeps=$lt_postdeps_RC
12214 # The library search path used internally by the compiler when linking
12215 # a shared library.
12216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12218 # Method to check whether dependent libraries are shared objects.
12219 deplibs_check_method=$lt_deplibs_check_method
12221 # Command to use when deplibs_check_method == file_magic.
12222 file_magic_cmd=$lt_file_magic_cmd
12224 # Flag that allows shared libraries with undefined symbols to be built.
12225 allow_undefined_flag=$lt_allow_undefined_flag_RC
12227 # Flag that forces no undefined symbols.
12228 no_undefined_flag=$lt_no_undefined_flag_RC
12230 # Commands used to finish a libtool library installation in a directory.
12231 finish_cmds=$lt_finish_cmds
12233 # Same as above, but a single script fragment to be evaled but not shown.
12234 finish_eval=$lt_finish_eval
12236 # Take the output of nm and produce a listing of raw symbols and C names.
12237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12239 # Transform the output of nm in a proper C declaration
12240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12242 # Transform the output of nm in a C name address pair
12243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12245 # This is the shared library runtime path variable.
12246 runpath_var=$runpath_var
12248 # This is the shared library path variable.
12249 shlibpath_var=$shlibpath_var
12251 # Is shlibpath searched before the hard-coded library search path?
12252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12254 # How to hardcode a shared library path into an executable.
12255 hardcode_action=$hardcode_action_RC
12257 # Whether we should hardcode library paths into libraries.
12258 hardcode_into_libs=$hardcode_into_libs
12260 # Flag to hardcode \$libdir into a binary during linking.
12261 # This must work even if \$libdir does not exist.
12262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12264 # If ld is used when linking, flag to hardcode \$libdir into
12265 # a binary during linking. This must work even if \$libdir does
12267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12269 # Whether we need a single -rpath flag with a separated argument.
12270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12273 # resulting binary.
12274 hardcode_direct=$hardcode_direct_RC
12276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12277 # resulting binary.
12278 hardcode_minus_L=$hardcode_minus_L_RC
12280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12281 # the resulting binary.
12282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12284 # Set to yes if building a shared library automatically hardcodes DIR into the library
12285 # and all subsequent libraries and executables linked against it.
12286 hardcode_automatic=$hardcode_automatic_RC
12288 # Variables whose values should be saved in libtool wrapper scripts and
12289 # restored at relink time.
12290 variables_saved_for_relink="$variables_saved_for_relink"
12292 # Whether libtool must link a program against all its dependency libraries.
12293 link_all_deplibs=$link_all_deplibs_RC
12295 # Compile-time system search path for libraries
12296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12298 # Run-time system search path for libraries
12299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12301 # Fix the shell variable \$srcfile for the compiler.
12302 fix_srcfile_path="$fix_srcfile_path_RC"
12304 # Set to yes if exported symbols are required.
12305 always_export_symbols=$always_export_symbols_RC
12307 # The commands to list exported symbols.
12308 export_symbols_cmds=$lt_export_symbols_cmds_RC
12310 # The commands to extract the exported symbol list from a shared archive.
12311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12313 # Symbols that should not be listed in the preloaded symbols.
12314 exclude_expsyms=$lt_exclude_expsyms_RC
12316 # Symbols that must always be exported.
12317 include_expsyms=$lt_include_expsyms_RC
12319 # ### END LIBTOOL TAG CONFIG: $tagname
12325 # If there is no Makefile yet, we rely on a make rule to execute
12326 # `config.status --recheck' to rerun these tests and create the
12327 # libtool script then.
12328 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12329 if test -f "$ltmain_in"; then
12330 test -f Makefile && make "$ltmain"
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12346 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12348 { (exit 1); exit 1; }; }
12352 # Append the new tag name to the list of available tags.
12353 if test -n "$tagname" ; then
12354 available_tags="$available_tags $tagname"
12360 # Now substitute the updated list of available tags.
12361 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12362 mv "${ofile}T" "$ofile"
12366 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12368 { (exit 1); exit 1; }; }
12374 # This can be used to rebuild libtool when needed
12375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12377 # Always use our own libtool.
12378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12380 # Prevent multiple expansion
12392 if test $ol_enable_perl != no ; then
12393 # Extract the first word of "perl", so it can be a program name with args.
12394 set dummy perl; ac_word=$2
12395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12397 if test "${ac_cv_path_PERLBIN+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12409 test -z "$as_dir" && as_dir=.
12410 for ac_exec_ext in '' $ac_executable_extensions; do
12411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12420 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12424 PERLBIN=$ac_cv_path_PERLBIN
12425 if test -n "$PERLBIN"; then
12426 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12427 echo "${ECHO_T}$PERLBIN" >&6; }
12429 { echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6; }
12435 if test "no$PERLBIN" = "no" ; then
12436 if test $ol_enable_perl = yes ; then
12437 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12438 echo "$as_me: error: could not locate perl" >&2;}
12439 { (exit 1); exit 1; }; }
12443 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12444 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12446 if test x"$ol_enable_perl" = "xyes" ; then
12447 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12449 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12461 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12462 # On Suns, sometimes $CPP names a directory.
12463 if test -n "$CPP" && test -d "$CPP"; then
12466 if test -z "$CPP"; then
12467 if test "${ac_cv_prog_CPP+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 # Double quotes because CPP needs to be expanded
12471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12473 ac_preproc_ok=false
12474 for ac_c_preproc_warn_flag in '' yes
12476 # Use a header file that comes with gcc, so configuring glibc
12477 # with a fresh cross-compiler works.
12478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479 # <limits.h> exists even on freestanding compilers.
12480 # On the NeXT, cc -E runs the code through the compiler's parser,
12481 # not just through cpp. "Syntax error" is here to catch this case.
12482 cat >conftest.$ac_ext <<_ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h. */
12489 # include <limits.h>
12491 # include <assert.h>
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498 *) ac_try_echo=$ac_try;;
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12503 grep -v '^ *+' conftest.er1 >conftest.err
12505 cat conftest.err >&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } >/dev/null && {
12508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12509 test ! -s conftest.err
12513 echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12516 # Broken: fails on valid input.
12520 rm -f conftest.err conftest.$ac_ext
12522 # OK, works on sane cases. Now check whether nonexistent headers
12523 # can be detected and how.
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 #include <ac_nonexistent.h>
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535 *) ac_try_echo=$ac_try;;
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null && {
12545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12546 test ! -s conftest.err
12548 # Broken: success on invalid input.
12551 echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12554 # Passes both tests.
12559 rm -f conftest.err conftest.$ac_ext
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12569 ac_cv_prog_CPP=$CPP
12572 CPP=$ac_cv_prog_CPP
12574 ac_cv_prog_CPP=$CPP
12576 { echo "$as_me:$LINENO: result: $CPP" >&5
12577 echo "${ECHO_T}$CPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_c_preproc_warn_flag in '' yes
12581 # Use a header file that comes with gcc, so configuring glibc
12582 # with a fresh cross-compiler works.
12583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 # <limits.h> exists even on freestanding compilers.
12585 # On the NeXT, cc -E runs the code through the compiler's parser,
12586 # not just through cpp. "Syntax error" is here to catch this case.
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 # include <limits.h>
12596 # include <assert.h>
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } >/dev/null && {
12613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 # Broken: fails on valid input.
12625 rm -f conftest.err conftest.$ac_ext
12627 # OK, works on sane cases. Now check whether nonexistent headers
12628 # can be detected and how.
12629 cat >conftest.$ac_ext <<_ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h. */
12635 #include <ac_nonexistent.h>
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12645 grep -v '^ *+' conftest.er1 >conftest.err
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } >/dev/null && {
12650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12653 # Broken: success on invalid input.
12656 echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12659 # Passes both tests.
12664 rm -f conftest.err conftest.$ac_ext
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&5
12674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&2;}
12676 { (exit 1); exit 1; }; }
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12685 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12686 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12687 if test "${ol_cv_msvc+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12698 #include <__FOO__/generate_error.h>
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } >/dev/null && {
12715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12726 rm -f conftest.err conftest.$ac_ext
12728 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12729 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12732 *mingw32* ) ac_cv_mingw32=yes ;;
12733 *cygwin* ) ac_cv_cygwin=yes ;;
12734 *interix* ) ac_cv_interix=yes ;;
12740 cat >>confdefs.h <<_ACEOF
12741 #define EXEEXT "${EXEEXT}"
12745 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12746 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_be_be_app+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lbe -lroot -lnet $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext &&
12791 $as_test_x conftest$ac_exeext; then
12792 ac_cv_lib_be_be_app=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_lib_be_be_app=no
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12805 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12806 if test $ac_cv_lib_be_be_app = yes; then
12807 LIBS="$LIBS -lbe -lroot -lnet"
12814 ac_cpp='$CPP $CPPFLAGS'
12815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818 if test -n "$ac_tool_prefix"; then
12819 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12823 if test "${ac_cv_prog_CC+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 if test -n "$CC"; then
12827 ac_cv_prog_CC="$CC" # Let the user override the test.
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 if test -n "$CC"; then
12848 { echo "$as_me:$LINENO: result: $CC" >&5
12849 echo "${ECHO_T}$CC" >&6; }
12851 { echo "$as_me:$LINENO: result: no" >&5
12852 echo "${ECHO_T}no" >&6; }
12857 if test -z "$ac_cv_prog_CC"; then
12859 # Extract the first word of "gcc", so it can be a program name with args.
12860 set dummy gcc; ac_word=$2
12861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 if test -n "$ac_ct_CC"; then
12867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876 ac_cv_prog_ac_ct_CC="gcc"
12877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12887 if test -n "$ac_ct_CC"; then
12888 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12889 echo "${ECHO_T}$ac_ct_CC" >&6; }
12891 { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12895 if test "x$ac_ct_CC" = x; then
12898 case $cross_compiling:$ac_tool_warned in
12900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12901 whose name does not start with the host triplet. If you think this
12902 configuration is useful to you, please write to autoconf@gnu.org." >&5
12903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12904 whose name does not start with the host triplet. If you think this
12905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12906 ac_tool_warned=yes ;;
12911 CC="$ac_cv_prog_CC"
12914 if test -z "$CC"; then
12915 if test -n "$ac_tool_prefix"; then
12916 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}cc; ac_word=$2
12918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12920 if test "${ac_cv_prog_CC+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 if test -n "$CC"; then
12924 ac_cv_prog_CC="$CC" # Let the user override the test.
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_CC="${ac_tool_prefix}cc"
12934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 if test -n "$CC"; then
12945 { echo "$as_me:$LINENO: result: $CC" >&5
12946 echo "${ECHO_T}$CC" >&6; }
12948 { echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6; }
12955 if test -z "$CC"; then
12956 # Extract the first word of "cc", so it can be a program name with args.
12957 set dummy cc; ac_word=$2
12958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12960 if test "${ac_cv_prog_CC+set}" = set; then
12961 echo $ECHO_N "(cached) $ECHO_C" >&6
12963 if test -n "$CC"; then
12964 ac_cv_prog_CC="$CC" # Let the user override the test.
12966 ac_prog_rejected=no
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12971 test -z "$as_dir" && as_dir=.
12972 for ac_exec_ext in '' $ac_executable_extensions; do
12973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12975 ac_prog_rejected=yes
12979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12986 if test $ac_prog_rejected = yes; then
12987 # We found a bogon in the path, so make sure we never use it.
12988 set dummy $ac_cv_prog_CC
12990 if test $# != 0; then
12991 # We chose a different compiler from the bogus one.
12992 # However, it has the same basename, so the bogon will be chosen
12993 # first if we set CC to just the basename; use the full file name.
12995 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13001 if test -n "$CC"; then
13002 { echo "$as_me:$LINENO: result: $CC" >&5
13003 echo "${ECHO_T}$CC" >&6; }
13005 { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13011 if test -z "$CC"; then
13012 if test -n "$ac_tool_prefix"; then
13013 for ac_prog in cl.exe
13015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_CC+set}" = set; then
13020 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 if test -n "$CC"; then
13023 ac_cv_prog_CC="$CC" # Let the user override the test.
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 if test -n "$CC"; then
13044 { echo "$as_me:$LINENO: result: $CC" >&5
13045 echo "${ECHO_T}$CC" >&6; }
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13052 test -n "$CC" && break
13055 if test -z "$CC"; then
13057 for ac_prog in cl.exe
13059 # Extract the first word of "$ac_prog", so it can be a program name with args.
13060 set dummy $ac_prog; ac_word=$2
13061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 if test -n "$ac_ct_CC"; then
13067 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13073 test -z "$as_dir" && as_dir=.
13074 for ac_exec_ext in '' $ac_executable_extensions; do
13075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076 ac_cv_prog_ac_ct_CC="$ac_prog"
13077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13087 if test -n "$ac_ct_CC"; then
13088 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13089 echo "${ECHO_T}$ac_ct_CC" >&6; }
13091 { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13096 test -n "$ac_ct_CC" && break
13099 if test "x$ac_ct_CC" = x; then
13102 case $cross_compiling:$ac_tool_warned in
13104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13105 whose name does not start with the host triplet. If you think this
13106 configuration is useful to you, please write to autoconf@gnu.org." >&5
13107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13108 whose name does not start with the host triplet. If you think this
13109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13110 ac_tool_warned=yes ;;
13119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&2;}
13123 { (exit 1); exit 1; }; }
13125 # Provide some information about the compiler.
13126 echo "$as_me:$LINENO: checking for C compiler version" >&5
13127 ac_compiler=`set X $ac_compile; echo $2`
13128 { (ac_try="$ac_compiler --version >&5"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_compiler --version >&5") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }
13138 { (ac_try="$ac_compiler -v >&5"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_compiler -v >&5") 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }
13148 { (ac_try="$ac_compiler -V >&5"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_compiler -V >&5") 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }
13159 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13164 cat >conftest.$ac_ext <<_ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13182 rm -f conftest.$ac_objext
13183 if { (ac_try="$ac_compile"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_compile") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } && {
13196 test -z "$ac_c_werror_flag" ||
13197 test ! -s conftest.err
13198 } && test -s conftest.$ac_objext; then
13199 ac_compiler_gnu=yes
13201 echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13213 GCC=`test $ac_compiler_gnu = yes && echo yes`
13214 ac_test_CFLAGS=${CFLAGS+set}
13215 ac_save_CFLAGS=$CFLAGS
13216 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13218 if test "${ac_cv_prog_cc_g+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13221 ac_save_c_werror_flag=$ac_c_werror_flag
13222 ac_c_werror_flag=yes
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_compile") 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } && {
13254 test -z "$ac_c_werror_flag" ||
13255 test ! -s conftest.err
13256 } && test -s conftest.$ac_objext; then
13257 ac_cv_prog_cc_g=yes
13259 echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282 *) ac_try_echo=$ac_try;;
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285 (eval "$ac_compile") 2>conftest.er1
13287 grep -v '^ *+' conftest.er1 >conftest.err
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } && {
13292 test -z "$ac_c_werror_flag" ||
13293 test ! -s conftest.err
13294 } && test -s conftest.$ac_objext; then
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13300 ac_c_werror_flag=$ac_save_c_werror_flag
13302 cat >conftest.$ac_ext <<_ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h. */
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321 *) ac_try_echo=$ac_try;;
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324 (eval "$ac_compile") 2>conftest.er1
13326 grep -v '^ *+' conftest.er1 >conftest.err
13328 cat conftest.err >&5
13329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330 (exit $ac_status); } && {
13331 test -z "$ac_c_werror_flag" ||
13332 test ! -s conftest.err
13333 } && test -s conftest.$ac_objext; then
13334 ac_cv_prog_cc_g=yes
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 ac_c_werror_flag=$ac_save_c_werror_flag
13351 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13353 if test "$ac_test_CFLAGS" = set; then
13354 CFLAGS=$ac_save_CFLAGS
13355 elif test $ac_cv_prog_cc_g = yes; then
13356 if test "$GCC" = yes; then
13362 if test "$GCC" = yes; then
13368 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13369 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13370 if test "${ac_cv_prog_cc_c89+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 ac_cv_prog_cc_c89=no
13375 cat >conftest.$ac_ext <<_ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include <stdarg.h>
13383 #include <sys/types.h>
13384 #include <sys/stat.h>
13385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13386 struct buf { int x; };
13387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13388 static char *e (p, i)
13394 static char *f (char * (*g) (char **, int), char **p, ...)
13399 s = g (p, va_arg (v,int));
13404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13405 function prototypes and stuff, but not '\xHH' hex character constants.
13406 These don't provoke an error unfortunately, instead are silently treated
13407 as 'x'. The following induces an error, until -std is added to get
13408 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13409 array size at least. It's necessary to write '\x00'==0 to get something
13410 that's true only with -std. */
13411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13414 inside strings and character constants. */
13416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13418 int test (int i, double x);
13419 struct s1 {int (*f) (int a);};
13420 struct s2 {int (*f) (double a);};
13421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13427 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13433 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13435 CC="$ac_save_CC $ac_arg"
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^ *+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_cv_prog_cc_c89=$ac_arg
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13461 rm -f core conftest.err conftest.$ac_objext
13462 test "x$ac_cv_prog_cc_c89" != "xno" && break
13464 rm -f conftest.$ac_ext
13469 case "x$ac_cv_prog_cc_c89" in
13471 { echo "$as_me:$LINENO: result: none needed" >&5
13472 echo "${ECHO_T}none needed" >&6; } ;;
13474 { echo "$as_me:$LINENO: result: unsupported" >&5
13475 echo "${ECHO_T}unsupported" >&6; } ;;
13477 CC="$CC $ac_cv_prog_cc_c89"
13478 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13479 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489 depcc="$CC" am_compiler_list=
13491 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13494 echo $ECHO_N "(cached) $ECHO_C" >&6
13496 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13497 # We make a subdir and do the tests there. Otherwise we can end up
13498 # making bogus files that we don't know about and never remove. For
13499 # instance it was reported that on HP-UX the gcc test will end up
13500 # making a dummy file named `D' -- because `-MD' means `put the output
13503 # Copy depcomp to subdir because otherwise we won't find it if we're
13504 # using a relative directory.
13505 cp "$am_depcomp" conftest.dir
13507 # We will build objects and dependencies in a subdirectory because
13508 # it helps to detect inapplicable dependency modes. For instance
13509 # both Tru64's cc and ICC support -MD to output dependencies as a
13510 # side effect of compilation, but ICC will put the dependencies in
13511 # the current directory while Tru64 will put them in the object
13515 am_cv_CC_dependencies_compiler_type=none
13516 if test "$am_compiler_list" = ""; then
13517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13519 for depmode in $am_compiler_list; do
13520 # Setup a source with many dependencies, because some compilers
13521 # like to wrap large dependency lists on column 80 (with \), and
13522 # we should not choose a depcomp mode which is confused by this.
13524 # We need to recreate these files for each test, as the compiler may
13525 # overwrite some of them when testing with obscure command lines.
13526 # This happens at least with the AIX C compiler.
13528 for i in 1 2 3 4 5 6; do
13529 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13530 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13531 # Solaris 8's {/usr,}/bin/sh.
13532 touch sub/conftst$i.h
13534 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13538 # after this tag, mechanisms are not by side-effect, so they'll
13539 # only be used when explicitly requested
13540 if test "x$enable_dependency_tracking" = xyes; then
13548 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13549 # mode. It turns out that the SunPro C++ compiler does not properly
13550 # handle `-M -o', and we need to detect this.
13551 if depmode=$depmode \
13552 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13553 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13554 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13555 >/dev/null 2>conftest.err &&
13556 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13557 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13558 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13559 # icc doesn't choke on unknown options, it will just issue warnings
13560 # or remarks (even with -Werror). So we grep stderr for any message
13561 # that says an option was ignored or not supported.
13562 # When given -MP, icc 7.0 and 7.1 complain thusly:
13563 # icc: Command line warning: ignoring option '-M'; no argument required
13564 # The diagnosis changed in icc 8.0:
13565 # icc: Command line remark: option '-MP' not supported
13566 if (grep 'ignoring option' conftest.err ||
13567 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13568 am_cv_CC_dependencies_compiler_type=$depmode
13575 rm -rf conftest.dir
13577 am_cv_CC_dependencies_compiler_type=none
13581 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13582 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13588 test "x$enable_dependency_tracking" != xno \
13589 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13590 am__fastdepCC_TRUE=
13591 am__fastdepCC_FALSE='#'
13593 am__fastdepCC_TRUE='#'
13594 am__fastdepCC_FALSE=
13598 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13599 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13600 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13601 { (exit 1); exit 1; }; }
13604 # test for make depend flag
13607 if test -z "${MKDEP}"; then
13608 OL_MKDEP="${CC-cc}"
13609 if test -z "${MKDEP_FLAGS}"; then
13610 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13611 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13612 if test "${ol_cv_mkdep+set}" = set; then
13613 echo $ECHO_N "(cached) $ECHO_C" >&6
13617 for flag in "-M" "-xM"; do
13618 cat > conftest.c <<EOF
13621 if { ac_try='$OL_MKDEP $flag conftest.c'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } \
13627 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13629 if test ! -f conftest."${ac_object}" ; then
13631 OL_MKDEP_FLAGS="$flag"
13639 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13640 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13641 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13644 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13648 OL_MKDEP="${MKDEP}"
13649 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13654 if test "${ol_cv_mkdep}" = no ; then
13655 # this will soon become an error
13656 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13657 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13660 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13661 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_s_afopen+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13665 ac_check_lib_save_LIBS=$LIBS
13667 cat >conftest.$ac_ext <<_ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13674 /* Override any GCC internal prototype to avoid an error.
13675 Use char because int might match the return type of a GCC
13676 builtin and then its argument prototype would still apply. */
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_link") 2>conftest.er1
13698 grep -v '^ *+' conftest.er1 >conftest.err
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest$ac_exeext &&
13706 $as_test_x conftest$ac_exeext; then
13707 ac_cv_lib_s_afopen=yes
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_lib_s_afopen=no
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13721 if test $ac_cv_lib_s_afopen = yes; then
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_AIX_SECURITY 1
13735 ac_cv_func_getopt=no
13737 cat >>confdefs.h <<\_ACEOF
13738 #define BOTH_STRINGS_H 1
13745 WITH_MODULES_ENABLED=no
13746 if test $ol_enable_modules != no ; then
13748 for ac_header in ltdl.h
13750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755 echo $ECHO_N "(cached) $ECHO_C" >&6
13757 ac_res=`eval echo '${'$as_ac_Header'}'`
13758 { echo "$as_me:$LINENO: result: $ac_res" >&5
13759 echo "${ECHO_T}$ac_res" >&6; }
13761 # Is the header compilable?
13762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13764 cat >conftest.$ac_ext <<_ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h. */
13770 $ac_includes_default
13771 #include <$ac_header>
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780 (eval "$ac_compile") 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 test -z "$ac_c_werror_flag" ||
13788 test ! -s conftest.err
13789 } && test -s conftest.$ac_objext; then
13790 ac_header_compiler=yes
13792 echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13795 ac_header_compiler=no
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13800 echo "${ECHO_T}$ac_header_compiler" >&6; }
13802 # Is the header present?
13803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h. */
13811 #include <$ac_header>
13813 if { (ac_try="$ac_cpp conftest.$ac_ext"
13814 case "(($ac_try" in
13815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } >/dev/null && {
13826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13829 ac_header_preproc=yes
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 ac_header_preproc=no
13837 rm -f conftest.err conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13839 echo "${ECHO_T}$ac_header_preproc" >&6; }
13841 # So? What about this header?
13842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13848 ac_header_preproc=yes
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13864 ## --------------------------------------------- ##
13865 ## Report this to <http://www.openldap.org/its/> ##
13866 ## --------------------------------------------- ##
13868 ) | sed "s/^/$as_me: WARNING: /" >&2
13871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 eval "$as_ac_Header=\$ac_header_preproc"
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879 { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13884 cat >>confdefs.h <<_ACEOF
13885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13893 if test $ac_cv_header_ltdl_h = no ; then
13894 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13895 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13896 { (exit 1); exit 1; }; }
13899 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13900 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13901 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lltdl $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13913 /* Override any GCC internal prototype to avoid an error.
13914 Use char because int might match the return type of a GCC
13915 builtin and then its argument prototype would still apply. */
13923 return lt_dlinit ();
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_link") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } && {
13942 test -z "$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13944 } && test -s conftest$ac_exeext &&
13945 $as_test_x conftest$ac_exeext; then
13946 ac_cv_lib_ltdl_lt_dlinit=yes
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13951 ac_cv_lib_ltdl_lt_dlinit=no
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955 conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13958 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13959 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13960 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13962 MODULES_LIBS=-lltdl
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_LIBLTDL 1
13972 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13973 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13974 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13975 { (exit 1); exit 1; }; }
13977 ol_link_modules=yes
13978 WITH_MODULES_ENABLED=yes
13981 for i in $Backends; do
13982 eval "ol_tmp=\$ol_enable_$i"
13983 if test $ol_tmp = mod ; then
13984 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13985 echo "$as_me: WARNING: building static $i backend" >&2;}
13986 eval "ol_enable_$i=yes"
13989 for i in $Overlays; do
13990 eval "ol_tmp=\$ol_enable_$i"
13991 if test $ol_tmp = mod ; then
13992 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13993 echo "$as_me: WARNING: building static $i overlay" >&2;}
13994 eval "ol_enable_$i=yes"
14000 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14001 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14002 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14014 #include <__ASCII__/generate_error.h>
14018 if { (ac_try="$ac_cpp conftest.$ac_ext"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } >/dev/null && {
14031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14032 test ! -s conftest.err
14034 ol_cv_cpp_ebcdic=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ol_cv_cpp_ebcdic=no
14042 rm -f conftest.err conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14045 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14046 if test $ol_cv_cpp_ebcdic = yes ; then
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_EBCDIC 1
14054 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14056 if test "${ol_cv_header_stdc+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 #include <stdlib.h>
14066 #include <stdarg.h>
14067 #include <string.h>
14070 if { (ac_try="$ac_cpp conftest.$ac_ext"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } >/dev/null && {
14083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14086 ol_cv_header_stdc=yes
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ol_cv_header_stdc=no
14094 rm -f conftest.err conftest.$ac_ext
14096 if test $ol_cv_header_stdc = yes; then
14097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <string.h>
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108 $EGREP "memchr" >/dev/null 2>&1; then
14111 ol_cv_header_stdc=no
14117 if test $ol_cv_header_stdc = yes; then
14118 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129 $EGREP "free" >/dev/null 2>&1; then
14132 ol_cv_header_stdc=no
14138 if test $ol_cv_header_stdc = yes; then
14139 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14140 if test "$cross_compiling" = yes; then
14143 cat >conftest.$ac_ext <<_ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14150 #ifndef HAVE_EBCDIC
14151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14154 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14155 || ('j' <= (c) && (c) <= 'r') \
14156 || ('s' <= (c) && (c) <= 'z'))
14157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14160 int main () { int i; for (i = 0; i < 256; i++)
14161 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169 *) ac_try_echo=$ac_try;;
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172 (eval "$ac_link") 2>&5
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14187 echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ( exit $ac_status )
14192 ol_cv_header_stdc=no
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14200 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14201 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14202 if test $ol_cv_header_stdc = yes; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define STDC_HEADERS 1
14208 ac_cv_header_stdc=disable
14211 if test $ol_cv_header_stdc != yes; then
14212 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14213 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14221 ac_header_dirent=no
14222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14223 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 cat >conftest.$ac_ext <<_ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h. */
14235 #include <sys/types.h>
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 eval "$as_ac_Header=yes"
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14269 eval "$as_ac_Header=no"
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 ac_res=`eval echo '${'$as_ac_Header'}'`
14275 { echo "$as_me:$LINENO: result: $ac_res" >&5
14276 echo "${ECHO_T}$ac_res" >&6; }
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278 cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14282 ac_header_dirent=$ac_hdr; break
14286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14287 if test $ac_header_dirent = dirent.h; then
14288 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_opendir+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14301 /* Override any GCC internal prototype to avoid an error.
14302 Use char because int might match the return type of a GCC
14303 builtin and then its argument prototype would still apply. */
14316 for ac_lib in '' dir; do
14317 if test -z "$ac_lib"; then
14318 ac_res="none required"
14321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14323 rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>conftest.er1
14332 grep -v '^ *+' conftest.er1 >conftest.err
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } && {
14337 test -z "$ac_c_werror_flag" ||
14338 test ! -s conftest.err
14339 } && test -s conftest$ac_exeext &&
14340 $as_test_x conftest$ac_exeext; then
14341 ac_cv_search_opendir=$ac_res
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14351 if test "${ac_cv_search_opendir+set}" = set; then
14355 if test "${ac_cv_search_opendir+set}" = set; then
14358 ac_cv_search_opendir=no
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14365 ac_res=$ac_cv_search_opendir
14366 if test "$ac_res" != no; then
14367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14372 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375 echo $ECHO_N "(cached) $ECHO_C" >&6
14377 ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14385 /* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14400 for ac_lib in '' x; do
14401 if test -z "$ac_lib"; then
14402 ac_res="none required"
14405 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14407 rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411 *) ac_try_echo=$ac_try;;
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414 (eval "$ac_link") 2>conftest.er1
14416 grep -v '^ *+' conftest.er1 >conftest.err
14418 cat conftest.err >&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } && {
14421 test -z "$ac_c_werror_flag" ||
14422 test ! -s conftest.err
14423 } && test -s conftest$ac_exeext &&
14424 $as_test_x conftest$ac_exeext; then
14425 ac_cv_search_opendir=$ac_res
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14435 if test "${ac_cv_search_opendir+set}" = set; then
14439 if test "${ac_cv_search_opendir+set}" = set; then
14442 ac_cv_search_opendir=no
14444 rm conftest.$ac_ext
14445 LIBS=$ac_func_search_save_LIBS
14447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14449 ac_res=$ac_cv_search_opendir
14450 if test "$ac_res" != no; then
14451 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 cat >conftest.$ac_ext <<_ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 #include <sys/types.h>
14469 #include <sys/wait.h>
14470 #ifndef WEXITSTATUS
14471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14482 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_compile") 2>conftest.er1
14496 grep -v '^ *+' conftest.er1 >conftest.err
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest.$ac_objext; then
14504 ac_cv_header_sys_wait_h=yes
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 ac_cv_header_sys_wait_h=no
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14516 if test $ac_cv_header_sys_wait_h = yes; then
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_SYS_WAIT_H 1
14524 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14525 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14526 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 #include <sys/types.h>
14536 #include <termios.h>
14542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14543 $EGREP "yes" >/dev/null 2>&1; then
14544 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14546 ac_cv_sys_tiocgwinsz_in_termios_h=no
14551 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14552 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14554 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14555 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14556 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14557 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14558 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <sys/types.h>
14567 #include <sys/ioctl.h>
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574 $EGREP "yes" >/dev/null 2>&1; then
14575 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14577 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14582 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14583 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14585 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14587 cat >>confdefs.h <<\_ACEOF
14588 #define GWINSZ_IN_SYS_IOCTL 1
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697 echo $ECHO_N "(cached) $ECHO_C" >&6
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700 { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14703 # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 #include <$ac_header>
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719 *) ac_try_echo=$ac_try;;
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722 (eval "$ac_compile") 2>conftest.er1
14724 grep -v '^ *+' conftest.er1 >conftest.err
14726 cat conftest.err >&5
14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728 (exit $ac_status); } && {
14729 test -z "$ac_c_werror_flag" ||
14730 test ! -s conftest.err
14731 } && test -s conftest.$ac_objext; then
14732 ac_header_compiler=yes
14734 echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14737 ac_header_compiler=no
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14753 #include <$ac_header>
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14763 grep -v '^ *+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } >/dev/null && {
14768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14771 ac_header_preproc=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 ac_header_preproc=no
14779 rm -f conftest.err conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14781 echo "${ECHO_T}$ac_header_preproc" >&6; }
14783 # So? What about this header?
14784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14790 ac_header_preproc=yes
14793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14806 ## --------------------------------------------- ##
14807 ## Report this to <http://www.openldap.org/its/> ##
14808 ## --------------------------------------------- ##
14810 ) | sed "s/^/$as_me: WARNING: /" >&2
14813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 eval "$as_ac_Header=\$ac_header_preproc"
14820 ac_res=`eval echo '${'$as_ac_Header'}'`
14821 { echo "$as_me:$LINENO: result: $ac_res" >&5
14822 echo "${ECHO_T}$ac_res" >&6; }
14825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826 cat >>confdefs.h <<_ACEOF
14827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14835 if test "$ac_cv_mingw32" = yes \
14836 -o "$ac_cv_interix" = yes \
14837 -o "$ol_cv_msvc" = yes
14841 for ac_header in winsock.h winsock2.h
14843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851 { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14854 # Is the header compilable?
14855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h. */
14863 $ac_includes_default
14864 #include <$ac_header>
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870 *) ac_try_echo=$ac_try;;
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873 (eval "$ac_compile") 2>conftest.er1
14875 grep -v '^ *+' conftest.er1 >conftest.err
14877 cat conftest.err >&5
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); } && {
14880 test -z "$ac_c_werror_flag" ||
14881 test ! -s conftest.err
14882 } && test -s conftest.$ac_objext; then
14883 ac_header_compiler=yes
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14888 ac_header_compiler=no
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h. */
14904 #include <$ac_header>
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909 *) ac_try_echo=$ac_try;;
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14914 grep -v '^ *+' conftest.er1 >conftest.err
14916 cat conftest.err >&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); } >/dev/null && {
14919 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14920 test ! -s conftest.err
14922 ac_header_preproc=yes
14924 echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_header_preproc=no
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14934 # So? What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941 ac_header_preproc=yes
14944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14957 ## --------------------------------------------- ##
14958 ## Report this to <http://www.openldap.org/its/> ##
14959 ## --------------------------------------------- ##
14961 ) | sed "s/^/$as_me: WARNING: /" >&2
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 echo $ECHO_N "(cached) $ECHO_C" >&6
14969 eval "$as_ac_Header=\$ac_header_preproc"
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977 cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14988 for ac_header in resolv.h
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15003 #include <netinet/in.h>
15006 #include <$ac_header>
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012 *) ac_try_echo=$ac_try;;
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015 (eval "$ac_compile") 2>conftest.er1
15017 grep -v '^ *+' conftest.er1 >conftest.err
15019 cat conftest.err >&5
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); } && {
15022 test -z "$ac_c_werror_flag" ||
15023 test ! -s conftest.err
15024 } && test -s conftest.$ac_objext; then
15025 eval "$as_ac_Header=yes"
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15030 eval "$as_ac_Header=no"
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039 cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15049 for ac_header in netinet/tcp.h
15051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 $ac_includes_default
15064 #include <netinet/in.h>
15067 #include <$ac_header>
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073 *) ac_try_echo=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_compile") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest.$ac_objext; then
15086 eval "$as_ac_Header=yes"
15088 echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15091 eval "$as_ac_Header=no"
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097 { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15100 cat >>confdefs.h <<_ACEOF
15101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15110 for ac_header in sys/ucred.h
15112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15125 #ifdef HAVE_SYS_PARAM_H
15126 #include <sys/param.h>
15130 #include <$ac_header>
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 eval "$as_ac_Header=yes"
15151 echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15154 eval "$as_ac_Header=no"
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160 { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15163 cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15175 for ac_func in sigaction sigset
15177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15181 echo $ECHO_N "(cached) $ECHO_C" >&6
15183 cat >conftest.$ac_ext <<_ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15191 #define $ac_func innocuous_$ac_func
15193 /* System header to define __stub macros and hopefully few prototypes,
15194 which can conflict with char $ac_func (); below.
15195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196 <limits.h> exists even on freestanding compilers. */
15199 # include <limits.h>
15201 # include <assert.h>
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply. */
15213 /* The GNU C library defines this for functions which it implements
15214 to always fail with ENOSYS. Some functions are actually named
15215 something starting with __ and the normal name is an alias. */
15216 #if defined __stub_$ac_func || defined __stub___$ac_func
15223 return $ac_func ();
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15246 eval "$as_ac_var=yes"
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 eval "$as_ac_var=no"
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255 conftest$ac_exeext conftest.$ac_ext
15257 ac_res=`eval echo '${'$as_ac_var'}'`
15258 { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261 cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15269 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15271 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15272 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15274 echo $ECHO_N "(cached) $ECHO_C" >&6
15276 ac_check_lib_save_LIBS=$LIBS
15278 cat >conftest.$ac_ext <<_ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h. */
15285 /* Override any GCC internal prototype to avoid an error.
15286 Use char because int might match the return type of a GCC
15287 builtin and then its argument prototype would still apply. */
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304 *) ac_try_echo=$ac_try;;
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307 (eval "$ac_link") 2>conftest.er1
15309 grep -v '^ *+' conftest.er1 >conftest.err
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest$ac_exeext &&
15317 $as_test_x conftest$ac_exeext; then
15318 ac_cv_lib_V3_sigset=yes
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15323 ac_cv_lib_V3_sigset=no
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327 conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15331 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15332 if test $ac_cv_lib_V3_sigset = yes; then
15333 cat >>confdefs.h <<_ACEOF
15334 #define HAVE_LIBV3 1
15343 if test $ol_cv_msvc = yes ; then
15347 if test "$ac_cv_header_winsock_h" = yes; then
15348 { echo "$as_me:$LINENO: checking for winsock" >&5
15349 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15350 if test "${ol_cv_winsock+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15355 for curlib in none ws2_32 wsock32; do
15356 if test $curlib != none ; then
15357 LIBS="$save_LIBS -l$curlib"
15359 cat >conftest.$ac_ext <<_ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h. */
15365 #include <winsock.h>
15372 select(0,NULL,NULL,NULL,NULL);
15374 gethostname(NULL,0);
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384 *) ac_try_echo=$ac_try;;
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387 (eval "$ac_link") 2>conftest.er1
15389 grep -v '^ *+' conftest.er1 >conftest.err
15391 cat conftest.err >&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } && {
15394 test -z "$ac_c_werror_flag" ||
15395 test ! -s conftest.err
15396 } && test -s conftest$ac_exeext &&
15397 $as_test_x conftest$ac_exeext; then
15398 ol_cv_winsock=$curlib
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15407 conftest$ac_exeext conftest.$ac_ext
15409 test "$ol_cv_winsock" != no && break
15414 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15415 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15417 if test $ol_cv_winsock != no ; then
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_WINSOCK 1
15423 ac_cv_func_socket=yes
15424 ac_cv_func_select=yes
15425 ac_cv_func_closesocket=yes
15426 ac_cv_func_gethostname=yes
15428 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15429 LIBS="$LIBS -l$ol_cv_winsock"
15432 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_WINSOCK2 1
15443 { echo "$as_me:$LINENO: checking for socket" >&5
15444 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15445 if test "${ac_cv_func_socket+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15448 cat >conftest.$ac_ext <<_ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15456 #define socket innocuous_socket
15458 /* System header to define __stub macros and hopefully few prototypes,
15459 which can conflict with char socket (); below.
15460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461 <limits.h> exists even on freestanding compilers. */
15464 # include <limits.h>
15466 # include <assert.h>
15471 /* Override any GCC internal prototype to avoid an error.
15472 Use char because int might match the return type of a GCC
15473 builtin and then its argument prototype would still apply. */
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined __stub_socket || defined __stub___socket
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>conftest.er1
15502 grep -v '^ *+' conftest.er1 >conftest.err
15504 cat conftest.err >&5
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); } && {
15507 test -z "$ac_c_werror_flag" ||
15508 test ! -s conftest.err
15509 } && test -s conftest$ac_exeext &&
15510 $as_test_x conftest$ac_exeext; then
15511 ac_cv_func_socket=yes
15513 echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15516 ac_cv_func_socket=no
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520 conftest$ac_exeext conftest.$ac_ext
15522 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15523 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15524 if test $ac_cv_func_socket = yes; then
15529 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15530 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15531 if test "${ac_cv_lib_socket_main+set}" = set; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-lsocket $LIBS"
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556 *) ac_try_echo=$ac_try;;
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559 (eval "$ac_link") 2>conftest.er1
15561 grep -v '^ *+' conftest.er1 >conftest.err
15563 cat conftest.err >&5
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); } && {
15566 test -z "$ac_c_werror_flag" ||
15567 test ! -s conftest.err
15568 } && test -s conftest$ac_exeext &&
15569 $as_test_x conftest$ac_exeext; then
15570 ac_cv_lib_socket_main=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15575 ac_cv_lib_socket_main=no
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15583 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15584 if test $ac_cv_lib_socket_main = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBSOCKET 1
15589 LIBS="-lsocket $LIBS"
15594 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15595 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_net_main+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15599 ac_check_lib_save_LIBS=$LIBS
15601 cat >conftest.$ac_ext <<_ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h. */
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (ac_try="$ac_link"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_link") 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } && {
15631 test -z "$ac_c_werror_flag" ||
15632 test ! -s conftest.err
15633 } && test -s conftest$ac_exeext &&
15634 $as_test_x conftest$ac_exeext; then
15635 ac_cv_lib_net_main=yes
15637 echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 ac_cv_lib_net_main=no
15643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15644 conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15647 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15648 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15649 if test $ac_cv_lib_net_main = yes; then
15650 cat >>confdefs.h <<_ACEOF
15651 #define HAVE_LIBNET 1
15659 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15660 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15661 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lnsl_s $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h. */
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_link") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest$ac_exeext &&
15699 $as_test_x conftest$ac_exeext; then
15700 ac_cv_lib_nsl_s_main=yes
15702 echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 ac_cv_lib_nsl_s_main=no
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709 conftest$ac_exeext conftest.$ac_ext
15710 LIBS=$ac_check_lib_save_LIBS
15712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15713 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15714 if test $ac_cv_lib_nsl_s_main = yes; then
15715 cat >>confdefs.h <<_ACEOF
15716 #define HAVE_LIBNSL_S 1
15719 LIBS="-lnsl_s $LIBS"
15724 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15725 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15726 if test "${ac_cv_lib_nsl_main+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 ac_check_lib_save_LIBS=$LIBS
15731 cat >conftest.$ac_ext <<_ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751 *) ac_try_echo=$ac_try;;
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754 (eval "$ac_link") 2>conftest.er1
15756 grep -v '^ *+' conftest.er1 >conftest.err
15758 cat conftest.err >&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } && {
15761 test -z "$ac_c_werror_flag" ||
15762 test ! -s conftest.err
15763 } && test -s conftest$ac_exeext &&
15764 $as_test_x conftest$ac_exeext; then
15765 ac_cv_lib_nsl_main=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_cv_lib_nsl_main=no
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774 conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15778 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15779 if test $ac_cv_lib_nsl_main = yes; then
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_LIBNSL 1
15789 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_inet_socket+set}" = set; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-linet $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h. */
15803 /* Override any GCC internal prototype to avoid an error.
15804 Use char because int might match the return type of a GCC
15805 builtin and then its argument prototype would still apply. */
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_link") 2>conftest.er1
15827 grep -v '^ *+' conftest.er1 >conftest.err
15829 cat conftest.err >&5
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } && {
15832 test -z "$ac_c_werror_flag" ||
15833 test ! -s conftest.err
15834 } && test -s conftest$ac_exeext &&
15835 $as_test_x conftest$ac_exeext; then
15836 ac_cv_lib_inet_socket=yes
15838 echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_cv_lib_inet_socket=no
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845 conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15849 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15850 if test $ac_cv_lib_inet_socket = yes; then
15851 cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBINET 1
15855 LIBS="-linet $LIBS"
15860 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15861 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_gen_main+set}" = set; then
15863 echo $ECHO_N "(cached) $ECHO_C" >&6
15865 ac_check_lib_save_LIBS=$LIBS
15867 cat >conftest.$ac_ext <<_ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887 *) ac_try_echo=$ac_try;;
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890 (eval "$ac_link") 2>conftest.er1
15892 grep -v '^ *+' conftest.er1 >conftest.err
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } && {
15897 test -z "$ac_c_werror_flag" ||
15898 test ! -s conftest.err
15899 } && test -s conftest$ac_exeext &&
15900 $as_test_x conftest$ac_exeext; then
15901 ac_cv_lib_gen_main=yes
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15906 ac_cv_lib_gen_main=no
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910 conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15915 if test $ac_cv_lib_gen_main = yes; then
15916 cat >>confdefs.h <<_ACEOF
15917 #define HAVE_LIBGEN 1
15928 { echo "$as_me:$LINENO: checking for select" >&5
15929 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15930 if test "${ac_cv_func_select+set}" = set; then
15931 echo $ECHO_N "(cached) $ECHO_C" >&6
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 /* Define select to an innocuous variant, in case <limits.h> declares select.
15940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15941 #define select innocuous_select
15943 /* System header to define __stub macros and hopefully few prototypes,
15944 which can conflict with char select (); below.
15945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946 <limits.h> exists even on freestanding compilers. */
15949 # include <limits.h>
15951 # include <assert.h>
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15963 /* The GNU C library defines this for functions which it implements
15964 to always fail with ENOSYS. Some functions are actually named
15965 something starting with __ and the normal name is an alias. */
15966 #if defined __stub_select || defined __stub___select
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982 *) ac_try_echo=$ac_try;;
15984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15985 (eval "$ac_link") 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 test -z "$ac_c_werror_flag" ||
15993 test ! -s conftest.err
15994 } && test -s conftest$ac_exeext &&
15995 $as_test_x conftest$ac_exeext; then
15996 ac_cv_func_select=yes
15998 echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_cv_func_select=no
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005 conftest$ac_exeext conftest.$ac_ext
16007 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16008 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16009 if test $ac_cv_func_select = yes; then
16012 { { echo "$as_me:$LINENO: error: select() required." >&5
16013 echo "$as_me: error: select() required." >&2;}
16014 { (exit 1); exit 1; }; }
16018 if test "${ac_cv_header_winsock_h}" != yes; then
16021 for ac_header in sys/select.h sys/socket.h
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028 echo $ECHO_N "(cached) $ECHO_C" >&6
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031 { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16034 # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 $ac_includes_default
16044 #include <$ac_header>
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_compile") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } && {
16060 test -z "$ac_c_werror_flag" ||
16061 test ! -s conftest.err
16062 } && test -s conftest.$ac_objext; then
16063 ac_header_compiler=yes
16065 echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16068 ac_header_compiler=no
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16073 echo "${ECHO_T}$ac_header_compiler" >&6; }
16075 # Is the header present?
16076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 #include <$ac_header>
16086 if { (ac_try="$ac_cpp conftest.$ac_ext"
16087 case "(($ac_try" in
16088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089 *) ac_try_echo=$ac_try;;
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16094 grep -v '^ *+' conftest.er1 >conftest.err
16096 cat conftest.err >&5
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } >/dev/null && {
16099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16100 test ! -s conftest.err
16102 ac_header_preproc=yes
16104 echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16107 ac_header_preproc=no
16110 rm -f conftest.err conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6; }
16114 # So? What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16121 ac_header_preproc=yes
16124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16141 ) | sed "s/^/$as_me: WARNING: /" >&2
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 eval "$as_ac_Header=\$ac_header_preproc"
16151 ac_res=`eval echo '${'$as_ac_Header'}'`
16152 { echo "$as_me:$LINENO: result: $ac_res" >&5
16153 echo "${ECHO_T}$ac_res" >&6; }
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157 cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16165 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16166 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16167 if test "${ac_cv_func_select_args+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16170 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16171 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16172 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16179 $ac_includes_default
16180 #ifdef HAVE_SYS_SELECT_H
16181 # include <sys/select.h>
16183 #ifdef HAVE_SYS_SOCKET_H
16184 # include <sys/socket.h>
16190 extern int select ($ac_arg1,
16191 $ac_arg234, $ac_arg234, $ac_arg234,
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_compile") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); } && {
16211 test -z "$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16213 } && test -s conftest.$ac_objext; then
16214 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 # Provide a safe default value.
16227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16230 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16231 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16232 ac_save_IFS=$IFS; IFS=','
16233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16237 cat >>confdefs.h <<_ACEOF
16238 #define SELECT_TYPE_ARG1 $1
16242 cat >>confdefs.h <<_ACEOF
16243 #define SELECT_TYPE_ARG234 ($2)
16247 cat >>confdefs.h <<_ACEOF
16248 #define SELECT_TYPE_ARG5 ($3)
16257 for ac_func in poll
16259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16273 #define $ac_func innocuous_$ac_func
16275 /* System header to define __stub macros and hopefully few prototypes,
16276 which can conflict with char $ac_func (); below.
16277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278 <limits.h> exists even on freestanding compilers. */
16281 # include <limits.h>
16283 # include <assert.h>
16288 /* Override any GCC internal prototype to avoid an error.
16289 Use char because int might match the return type of a GCC
16290 builtin and then its argument prototype would still apply. */
16295 /* The GNU C library defines this for functions which it implements
16296 to always fail with ENOSYS. Some functions are actually named
16297 something starting with __ and the normal name is an alias. */
16298 #if defined __stub_$ac_func || defined __stub___$ac_func
16305 return $ac_func ();
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314 *) ac_try_echo=$ac_try;;
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317 (eval "$ac_link") 2>conftest.er1
16319 grep -v '^ *+' conftest.er1 >conftest.err
16321 cat conftest.err >&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } && {
16324 test -z "$ac_c_werror_flag" ||
16325 test ! -s conftest.err
16326 } && test -s conftest$ac_exeext &&
16327 $as_test_x conftest$ac_exeext; then
16328 eval "$as_ac_var=yes"
16330 echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16333 eval "$as_ac_var=no"
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337 conftest$ac_exeext conftest.$ac_ext
16339 ac_res=`eval echo '${'$as_ac_var'}'`
16340 { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16342 if test `eval echo '${'$as_ac_var'}'` = yes; then
16343 cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16350 if test $ac_cv_func_poll = yes; then
16353 for ac_header in poll.h sys/poll.h
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16366 # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 $ac_includes_default
16376 #include <$ac_header>
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_compile") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest.$ac_objext; then
16395 ac_header_compiler=yes
16397 echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 ac_header_compiler=no
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405 echo "${ECHO_T}$ac_header_compiler" >&6; }
16407 # Is the header present?
16408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16416 #include <$ac_header>
16418 if { (ac_try="$ac_cpp conftest.$ac_ext"
16419 case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16426 grep -v '^ *+' conftest.er1 >conftest.err
16428 cat conftest.err >&5
16429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null && {
16431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16434 ac_header_preproc=yes
16436 echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_preproc=no
16442 rm -f conftest.err conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 echo "${ECHO_T}$ac_header_preproc" >&6; }
16446 # So? What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16453 ac_header_preproc=yes
16456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16469 ## --------------------------------------------- ##
16470 ## Report this to <http://www.openldap.org/its/> ##
16471 ## --------------------------------------------- ##
16473 ) | sed "s/^/$as_me: WARNING: /" >&2
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 eval "$as_ac_Header=\$ac_header_preproc"
16483 ac_res=`eval echo '${'$as_ac_Header'}'`
16484 { echo "$as_me:$LINENO: result: $ac_res" >&5
16485 echo "${ECHO_T}$ac_res" >&6; }
16488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16489 cat >>confdefs.h <<_ACEOF
16490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16500 for ac_header in sys/epoll.h
16502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 ac_res=`eval echo '${'$as_ac_Header'}'`
16510 { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16513 # Is the header compilable?
16514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 $ac_includes_default
16523 #include <$ac_header>
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529 *) ac_try_echo=$ac_try;;
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532 (eval "$ac_compile") 2>conftest.er1
16534 grep -v '^ *+' conftest.er1 >conftest.err
16536 cat conftest.err >&5
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } && {
16539 test -z "$ac_c_werror_flag" ||
16540 test ! -s conftest.err
16541 } && test -s conftest.$ac_objext; then
16542 ac_header_compiler=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16547 ac_header_compiler=no
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6; }
16554 # Is the header present?
16555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h. */
16563 #include <$ac_header>
16565 if { (ac_try="$ac_cpp conftest.$ac_ext"
16566 case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16573 grep -v '^ *+' conftest.er1 >conftest.err
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } >/dev/null && {
16578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16579 test ! -s conftest.err
16581 ac_header_preproc=yes
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16586 ac_header_preproc=no
16589 rm -f conftest.err conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591 echo "${ECHO_T}$ac_header_preproc" >&6; }
16593 # So? What about this header?
16594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16600 ac_header_preproc=yes
16603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16616 ## --------------------------------------------- ##
16617 ## Report this to <http://www.openldap.org/its/> ##
16618 ## --------------------------------------------- ##
16620 ) | sed "s/^/$as_me: WARNING: /" >&2
16623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 eval "$as_ac_Header=\$ac_header_preproc"
16630 ac_res=`eval echo '${'$as_ac_Header'}'`
16631 { echo "$as_me:$LINENO: result: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636 cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16644 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16645 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16646 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16647 if test "$cross_compiling" = yes; then
16648 { echo "$as_me:$LINENO: result: no" >&5
16649 echo "${ECHO_T}no" >&6; }
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16657 int main(int argc, char **argv)
16659 int epfd = epoll_create(256);
16660 exit (epfd == -1 ? 1 : 0);
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_link") 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674 { (case "(($ac_try" in
16675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676 *) ac_try_echo=$ac_try;;
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679 (eval "$ac_try") 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_EPOLL 1
16691 echo "$as_me: program exited with status $ac_status" >&5
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ( exit $ac_status )
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16706 for ac_header in sys/devpoll.h
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713 echo $ECHO_N "(cached) $ECHO_C" >&6
16715 ac_res=`eval echo '${'$as_ac_Header'}'`
16716 { echo "$as_me:$LINENO: result: $ac_res" >&5
16717 echo "${ECHO_T}$ac_res" >&6; }
16719 # Is the header compilable?
16720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16728 $ac_includes_default
16729 #include <$ac_header>
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_compile") 2>conftest.er1
16740 grep -v '^ *+' conftest.er1 >conftest.err
16742 cat conftest.err >&5
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); } && {
16745 test -z "$ac_c_werror_flag" ||
16746 test ! -s conftest.err
16747 } && test -s conftest.$ac_objext; then
16748 ac_header_compiler=yes
16750 echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16753 ac_header_compiler=no
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16758 echo "${ECHO_T}$ac_header_compiler" >&6; }
16760 # Is the header present?
16761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h. */
16769 #include <$ac_header>
16771 if { (ac_try="$ac_cpp conftest.$ac_ext"
16772 case "(($ac_try" in
16773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774 *) ac_try_echo=$ac_try;;
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16779 grep -v '^ *+' conftest.er1 >conftest.err
16781 cat conftest.err >&5
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); } >/dev/null && {
16784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16785 test ! -s conftest.err
16787 ac_header_preproc=yes
16789 echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16792 ac_header_preproc=no
16795 rm -f conftest.err conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6; }
16799 # So? What about this header?
16800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16806 ac_header_preproc=yes
16809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16822 ## --------------------------------------------- ##
16823 ## Report this to <http://www.openldap.org/its/> ##
16824 ## --------------------------------------------- ##
16826 ) | sed "s/^/$as_me: WARNING: /" >&2
16829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16832 echo $ECHO_N "(cached) $ECHO_C" >&6
16834 eval "$as_ac_Header=\$ac_header_preproc"
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837 { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16842 cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16850 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16851 -a "${ac_cv_header_poll_h}" = yes ; \
16853 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16854 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16855 if test "$cross_compiling" = yes; then
16856 { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16859 cat >conftest.$ac_ext <<_ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h. */
16865 int main(int argc, char **argv)
16867 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16868 exit (devpollfd == -1 ? 1 : 0);
16871 rm -f conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_link") 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882 { (case "(($ac_try" in
16883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884 *) ac_try_echo=$ac_try;;
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887 (eval "$ac_try") 2>&5
16889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 (exit $ac_status); }; }; then
16891 { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16894 cat >>confdefs.h <<\_ACEOF
16895 #define HAVE_DEVPOLL 1
16899 echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16903 ( exit $ac_status )
16904 { echo "$as_me:$LINENO: result: no" >&5
16905 echo "${ECHO_T}no" >&6; }
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16914 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16915 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16916 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16927 #include <sys/types.h>
16930 #include <stdlib.h>
16935 char *c = (char *) *sys_errlist
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest.$ac_objext; then
16957 ol_cv_dcl_sys_errlist=yes
16958 ol_cv_have_sys_errlist=yes
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 ol_cv_dcl_sys_errlist=no
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16969 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16971 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16972 if test $ol_cv_dcl_sys_errlist = no ; then
16974 cat >>confdefs.h <<\_ACEOF
16975 #define DECL_SYS_ERRLIST 1
16979 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16980 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16981 if test "${ol_cv_have_sys_errlist+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16995 char *c = (char *) *sys_errlist
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004 *) ac_try_echo=$ac_try;;
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007 (eval "$ac_link") 2>conftest.er1
17009 grep -v '^ *+' conftest.er1 >conftest.err
17011 cat conftest.err >&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } && {
17014 test -z "$ac_c_werror_flag" ||
17015 test ! -s conftest.err
17016 } && test -s conftest$ac_exeext &&
17017 $as_test_x conftest$ac_exeext; then
17018 ol_cv_have_sys_errlist=yes
17020 echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17023 ol_cv_have_sys_errlist=no
17026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17027 conftest$ac_exeext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17030 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17032 if test $ol_cv_have_sys_errlist = yes ; then
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_SYS_ERRLIST 1
17041 for ac_func in strerror strerror_r
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17057 #define $ac_func innocuous_$ac_func
17059 /* System header to define __stub macros and hopefully few prototypes,
17060 which can conflict with char $ac_func (); below.
17061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062 <limits.h> exists even on freestanding compilers. */
17065 # include <limits.h>
17067 # include <assert.h>
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17079 /* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17089 return $ac_func ();
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>conftest.er1
17103 grep -v '^ *+' conftest.er1 >conftest.err
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } && {
17108 test -z "$ac_c_werror_flag" ||
17109 test ! -s conftest.err
17110 } && test -s conftest$ac_exeext &&
17111 $as_test_x conftest$ac_exeext; then
17112 eval "$as_ac_var=yes"
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 eval "$as_ac_var=no"
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121 conftest$ac_exeext conftest.$ac_ext
17123 ac_res=`eval echo '${'$as_ac_var'}'`
17124 { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 if test `eval echo '${'$as_ac_var'}'` = yes; then
17127 cat >>confdefs.h <<_ACEOF
17128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17134 ol_cv_func_strerror_r=no
17135 if test "${ac_cv_func_strerror_r}" = yes ; then
17136 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17137 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17138 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17142 cat >conftest.$ac_ext <<_ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h. */
17148 #include <string.h>
17150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17151 $EGREP "strerror_r" >/dev/null 2>&1; then
17152 ol_decl_strerror_r=yes
17154 ol_decl_strerror_r=no
17158 if test $ol_decl_strerror_r = yes ; then
17159 cat >conftest.$ac_ext <<_ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h. */
17165 #include <string.h>
17169 /* from autoconf 2.59 */
17171 char x = *strerror_r (0, buf, sizeof buf);
17172 char *p = strerror_r (0, buf, sizeof buf);
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ol_cv_nonposix_strerror_r=yes
17197 echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ol_cv_nonposix_strerror_r=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17205 if test "$cross_compiling" = yes; then
17206 ol_cv_nonposix_strerror=no
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17218 strerror_r( 1, buf, sizeof buf );
17219 exit( buf[0] == 0 );
17223 rm -f conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227 *) ac_try_echo=$ac_try;;
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230 (eval "$ac_link") 2>&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 ol_cv_nonposix_strerror_r=yes
17245 echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ( exit $ac_status )
17250 ol_cv_nonposix_strerror=no
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17259 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17260 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17261 if test $ol_cv_nonposix_strerror_r = yes ; then
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_NONPOSIX_STRERROR_R 1
17269 elif test "${ac_cv_func_strerror}" = no ; then
17270 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17284 #include <sys/types.h>
17287 #include <stdlib.h>
17292 char *c = (char *) *sys_errlist
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_compile") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest.$ac_objext; then
17314 ol_cv_dcl_sys_errlist=yes
17315 ol_cv_have_sys_errlist=yes
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ol_cv_dcl_sys_errlist=no
17323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17325 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17326 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17328 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17329 if test $ol_cv_dcl_sys_errlist = no ; then
17331 cat >>confdefs.h <<\_ACEOF
17332 #define DECL_SYS_ERRLIST 1
17336 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17337 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17338 if test "${ol_cv_have_sys_errlist+set}" = set; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 cat >conftest.$ac_ext <<_ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17352 char *c = (char *) *sys_errlist
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_link") 2>conftest.er1
17366 grep -v '^ *+' conftest.er1 >conftest.err
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } && {
17371 test -z "$ac_c_werror_flag" ||
17372 test ! -s conftest.err
17373 } && test -s conftest$ac_exeext &&
17374 $as_test_x conftest$ac_exeext; then
17375 ol_cv_have_sys_errlist=yes
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ol_cv_have_sys_errlist=no
17383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17384 conftest$ac_exeext conftest.$ac_ext
17386 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17387 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17389 if test $ol_cv_have_sys_errlist = yes ; then
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_SYS_ERRLIST 1
17401 for ac_header in regex.h
17403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407 echo $ECHO_N "(cached) $ECHO_C" >&6
17409 cat >conftest.$ac_ext <<_ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h. */
17415 $ac_includes_default
17416 #ifdef HAVE_SYS_TYPES_H
17417 #include <sys/types.h>
17421 #include <$ac_header>
17423 rm -f conftest.$ac_objext
17424 if { (ac_try="$ac_compile"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_compile") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest.$ac_objext; then
17440 eval "$as_ac_Header=yes"
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 eval "$as_ac_Header=no"
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17450 ac_res=`eval echo '${'$as_ac_Header'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17454 cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17463 if test "$ac_cv_header_regex_h" != yes ; then
17464 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17465 echo "$as_me: error: POSIX regex.h required." >&2;}
17466 { (exit 1); exit 1; }; }
17468 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17469 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17470 if test "${ac_cv_search_regfree+set}" = set; then
17471 echo $ECHO_N "(cached) $ECHO_C" >&6
17473 ac_func_search_save_LIBS=$LIBS
17474 cat >conftest.$ac_ext <<_ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h. */
17481 /* Override any GCC internal prototype to avoid an error.
17482 Use char because int might match the return type of a GCC
17483 builtin and then its argument prototype would still apply. */
17496 for ac_lib in '' regex gnuregex; do
17497 if test -z "$ac_lib"; then
17498 ac_res="none required"
17501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17503 rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_link") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } && {
17517 test -z "$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 } && test -s conftest$ac_exeext &&
17520 $as_test_x conftest$ac_exeext; then
17521 ac_cv_search_regfree=$ac_res
17523 echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17531 if test "${ac_cv_search_regfree+set}" = set; then
17535 if test "${ac_cv_search_regfree+set}" = set; then
17538 ac_cv_search_regfree=no
17540 rm conftest.$ac_ext
17541 LIBS=$ac_func_search_save_LIBS
17543 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17544 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17545 ac_res=$ac_cv_search_regfree
17546 if test "$ac_res" != no; then
17547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17550 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17551 echo "$as_me: error: POSIX regex required." >&2;}
17552 { (exit 1); exit 1; }; }
17557 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17558 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17559 if test "${ol_cv_c_posix_regex+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17563 if test "$cross_compiling" = yes; then
17564 ol_cv_c_posix_regex=cross
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17573 #include <sys/types.h>
17575 static char *pattern, *string;
17583 if(regcomp(&re, pattern, 0)) {
17587 string = "ALL MATCH";
17589 rc = regexec(&re, string, 0, (void*)0, 0);
17596 rm -f conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_link") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607 { (case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_try") 2>&5
17614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615 (exit $ac_status); }; }; then
17616 ol_cv_c_posix_regex=yes
17618 echo "$as_me: program exited with status $ac_status" >&5
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 ( exit $ac_status )
17623 ol_cv_c_posix_regex=no
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17630 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17631 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17633 if test "$ol_cv_c_posix_regex" = no ; then
17634 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17635 echo "$as_me: error: broken POSIX regex!" >&2;}
17636 { (exit 1); exit 1; }; }
17642 for ac_header in sys/uuid.h
17644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652 { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17655 # Is the header compilable?
17656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17658 cat >conftest.$ac_ext <<_ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 $ac_includes_default
17665 #include <$ac_header>
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_compile") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest.$ac_objext; then
17684 ac_header_compiler=yes
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_header_compiler=no
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17694 echo "${ECHO_T}$ac_header_compiler" >&6; }
17696 # Is the header present?
17697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 #include <$ac_header>
17707 if { (ac_try="$ac_cpp conftest.$ac_ext"
17708 case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } >/dev/null && {
17720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17721 test ! -s conftest.err
17723 ac_header_preproc=yes
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 ac_header_preproc=no
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17735 # So? What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17738 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742 ac_header_preproc=yes
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17758 ## --------------------------------------------- ##
17759 ## Report this to <http://www.openldap.org/its/> ##
17760 ## --------------------------------------------- ##
17762 ) | sed "s/^/$as_me: WARNING: /" >&2
17765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17768 echo $ECHO_N "(cached) $ECHO_C" >&6
17770 eval "$as_ac_Header=\$ac_header_preproc"
17772 ac_res=`eval echo '${'$as_ac_Header'}'`
17773 { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17786 if test $ac_cv_header_sys_uuid_h = yes ; then
17788 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17789 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17790 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 ac_func_search_save_LIBS=$LIBS
17794 cat >conftest.$ac_ext <<_ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h. */
17801 /* Override any GCC internal prototype to avoid an error.
17802 Use char because int might match the return type of a GCC
17803 builtin and then its argument prototype would still apply. */
17807 char uuid_to_str ();
17811 return uuid_to_str ();
17816 for ac_lib in '' uuid; do
17817 if test -z "$ac_lib"; then
17818 ac_res="none required"
17821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17823 rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_link") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest$ac_exeext &&
17840 $as_test_x conftest$ac_exeext; then
17841 ac_cv_search_uuid_to_str=$ac_res
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17851 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17855 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17858 ac_cv_search_uuid_to_str=no
17860 rm conftest.$ac_ext
17861 LIBS=$ac_func_search_save_LIBS
17863 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17864 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17865 ac_res=$ac_cv_search_uuid_to_str
17866 if test "$ac_res" != no; then
17867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17873 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17874 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17875 if test "${ac_cv_search_uuid_create+set}" = set; then
17876 echo $ECHO_N "(cached) $ECHO_C" >&6
17878 ac_func_search_save_LIBS=$LIBS
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17886 /* Override any GCC internal prototype to avoid an error.
17887 Use char because int might match the return type of a GCC
17888 builtin and then its argument prototype would still apply. */
17892 char uuid_create ();
17896 return uuid_create ();
17901 for ac_lib in '' uuid; do
17902 if test -z "$ac_lib"; then
17903 ac_res="none required"
17906 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17908 rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912 *) ac_try_echo=$ac_try;;
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915 (eval "$ac_link") 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } && {
17922 test -z "$ac_c_werror_flag" ||
17923 test ! -s conftest.err
17924 } && test -s conftest$ac_exeext &&
17925 $as_test_x conftest$ac_exeext; then
17926 ac_cv_search_uuid_create=$ac_res
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17936 if test "${ac_cv_search_uuid_create+set}" = set; then
17940 if test "${ac_cv_search_uuid_create+set}" = set; then
17943 ac_cv_search_uuid_create=no
17945 rm conftest.$ac_ext
17946 LIBS=$ac_func_search_save_LIBS
17948 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17949 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17950 ac_res=$ac_cv_search_uuid_create
17951 if test "$ac_res" != no; then
17952 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17960 if test $have_uuid = yes ; then
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_UUID_TO_STR 1
17967 test "$ac_cv_search_uuid_to_str" = "none required" || \
17968 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17972 if test $have_uuid = no ; then
17974 for ac_header in uuid/uuid.h
17976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17983 ac_res=`eval echo '${'$as_ac_Header'}'`
17984 { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17987 # Is the header compilable?
17988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 $ac_includes_default
17997 #include <$ac_header>
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003 *) ac_try_echo=$ac_try;;
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006 (eval "$ac_compile") 2>conftest.er1
18008 grep -v '^ *+' conftest.er1 >conftest.err
18010 cat conftest.err >&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); } && {
18013 test -z "$ac_c_werror_flag" ||
18014 test ! -s conftest.err
18015 } && test -s conftest.$ac_objext; then
18016 ac_header_compiler=yes
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 ac_header_compiler=no
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6; }
18028 # Is the header present?
18029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18031 cat >conftest.$ac_ext <<_ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h. */
18037 #include <$ac_header>
18039 if { (ac_try="$ac_cpp conftest.$ac_ext"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } >/dev/null && {
18052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18053 test ! -s conftest.err
18055 ac_header_preproc=yes
18057 echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18060 ac_header_preproc=no
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18067 # So? What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074 ac_header_preproc=yes
18077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18090 ## --------------------------------------------- ##
18091 ## Report this to <http://www.openldap.org/its/> ##
18092 ## --------------------------------------------- ##
18094 ) | sed "s/^/$as_me: WARNING: /" >&2
18097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100 echo $ECHO_N "(cached) $ECHO_C" >&6
18102 eval "$as_ac_Header=\$ac_header_preproc"
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105 { echo "$as_me:$LINENO: result: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110 cat >>confdefs.h <<_ACEOF
18111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18118 if test $ac_cv_header_uuid_uuid_h = yes ; then
18120 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18121 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18122 if test "${ac_cv_search_uuid_generate+set}" = set; then
18123 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 ac_func_search_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h. */
18133 /* Override any GCC internal prototype to avoid an error.
18134 Use char because int might match the return type of a GCC
18135 builtin and then its argument prototype would still apply. */
18139 char uuid_generate ();
18143 return uuid_generate ();
18148 for ac_lib in '' uuid; do
18149 if test -z "$ac_lib"; then
18150 ac_res="none required"
18153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18155 rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_link") 2>conftest.er1
18164 grep -v '^ *+' conftest.er1 >conftest.err
18166 cat conftest.err >&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); } && {
18169 test -z "$ac_c_werror_flag" ||
18170 test ! -s conftest.err
18171 } && test -s conftest$ac_exeext &&
18172 $as_test_x conftest$ac_exeext; then
18173 ac_cv_search_uuid_generate=$ac_res
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18183 if test "${ac_cv_search_uuid_generate+set}" = set; then
18187 if test "${ac_cv_search_uuid_generate+set}" = set; then
18190 ac_cv_search_uuid_generate=no
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18196 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18197 ac_res=$ac_cv_search_uuid_generate
18198 if test "$ac_res" != no; then
18199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18205 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18206 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18207 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18210 ac_func_search_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18218 /* Override any GCC internal prototype to avoid an error.
18219 Use char because int might match the return type of a GCC
18220 builtin and then its argument prototype would still apply. */
18224 char uuid_unparse_lower ();
18228 return uuid_unparse_lower ();
18233 for ac_lib in '' uuid; do
18234 if test -z "$ac_lib"; then
18235 ac_res="none required"
18238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_link") 2>conftest.er1
18249 grep -v '^ *+' conftest.er1 >conftest.err
18251 cat conftest.err >&5
18252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext &&
18257 $as_test_x conftest$ac_exeext; then
18258 ac_cv_search_uuid_unparse_lower=$ac_res
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18268 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18272 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18275 ac_cv_search_uuid_unparse_lower=no
18277 rm conftest.$ac_ext
18278 LIBS=$ac_func_search_save_LIBS
18280 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18281 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18282 ac_res=$ac_cv_search_uuid_unparse_lower
18283 if test "$ac_res" != no; then
18284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18292 if test $have_uuid = yes ; then
18294 cat >>confdefs.h <<\_ACEOF
18295 #define HAVE_UUID_GENERATE 1
18299 test "$ac_cv_search_uuid_generate" = "none required" || \
18300 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18305 if test $have_uuid = no ; then
18306 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18307 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18309 LIBS="$LIBS -lrpcrt4"
18310 cat >conftest.$ac_ext <<_ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18317 int __stdcall UuidCreate(void *);
18318 int __stdcall UuidToStringA(void *,void **);
18325 UuidToStringA(0,0);
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335 *) ac_try_echo=$ac_try;;
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338 (eval "$ac_link") 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } && {
18345 test -z "$ac_c_werror_flag" ||
18346 test ! -s conftest.err
18347 } && test -s conftest$ac_exeext &&
18348 $as_test_x conftest$ac_exeext; then
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18358 conftest$ac_exeext conftest.$ac_ext
18359 if test $need_rpcrt = yes; then
18360 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18363 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18364 echo "${ECHO_T}$need_rpcrt" >&6; }
18367 ol_cv_lib_resolver=no
18368 if test $ol_cv_lib_resolver = no ; then
18369 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18370 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18371 if test "${ol_cv_resolver_none+set}" = set; then
18372 echo $ECHO_N "(cached) $ECHO_C" >&6
18377 LIBS="$ol_RESOLVER_LIB $LIBS"
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18386 #ifdef HAVE_SYS_TYPES_H
18387 # include <sys/types.h>
18389 #include <netinet/in.h>
18390 #ifdef HAVE_ARPA_NAMESER_H
18391 # include <arpa/nameser.h>
18393 #ifdef HAVE_RESOLV_H
18394 # include <resolv.h>
18402 char *request = NULL;
18403 unsigned char reply[64*1024];
18404 unsigned char host[64*1024];
18408 /* Bind 8/9 interface */
18409 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18411 /* Bind 4 interface */
18415 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18419 /* Bind 8/9 interface */
18421 #elif defined(HFIXEDSZ)
18422 /* Bind 4 interface w/ HFIXEDSZ */
18425 /* Bind 4 interface w/o HFIXEDSZ */
18426 p += sizeof(HEADER);
18428 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_link") 2>conftest.er1
18443 grep -v '^ *+' conftest.er1 >conftest.err
18445 cat conftest.err >&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); } && {
18448 test -z "$ac_c_werror_flag" ||
18449 test ! -s conftest.err
18450 } && test -s conftest$ac_exeext &&
18451 $as_test_x conftest$ac_exeext; then
18452 ol_cv_resolver_none=yes
18454 echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ol_cv_resolver_none=no
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461 conftest$ac_exeext conftest.$ac_ext
18466 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18467 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18469 if test $ol_cv_resolver_none = yes ; then
18470 ol_cv_lib_resolver=yes
18474 if test $ol_cv_lib_resolver = no ; then
18475 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18476 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18477 if test "${ol_cv_resolver_resolv+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ol_RESOLVER_LIB=-lresolv
18483 LIBS="$ol_RESOLVER_LIB $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18492 #ifdef HAVE_SYS_TYPES_H
18493 # include <sys/types.h>
18495 #include <netinet/in.h>
18496 #ifdef HAVE_ARPA_NAMESER_H
18497 # include <arpa/nameser.h>
18499 #ifdef HAVE_RESOLV_H
18500 # include <resolv.h>
18508 char *request = NULL;
18509 unsigned char reply[64*1024];
18510 unsigned char host[64*1024];
18514 /* Bind 8/9 interface */
18515 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18517 /* Bind 4 interface */
18521 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18525 /* Bind 8/9 interface */
18527 #elif defined(HFIXEDSZ)
18528 /* Bind 4 interface w/ HFIXEDSZ */
18531 /* Bind 4 interface w/o HFIXEDSZ */
18532 p += sizeof(HEADER);
18534 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_link") 2>conftest.er1
18549 grep -v '^ *+' conftest.er1 >conftest.err
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext &&
18557 $as_test_x conftest$ac_exeext; then
18558 ol_cv_resolver_resolv=yes
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ol_cv_resolver_resolv=no
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18572 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18573 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18575 if test $ol_cv_resolver_resolv = yes ; then
18576 ol_cv_lib_resolver=-lresolv
18580 if test $ol_cv_lib_resolver = no ; then
18581 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18582 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18583 if test "${ol_cv_resolver_bind+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18587 ol_RESOLVER_LIB=-lbind
18589 LIBS="$ol_RESOLVER_LIB $LIBS"
18591 cat >conftest.$ac_ext <<_ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18598 #ifdef HAVE_SYS_TYPES_H
18599 # include <sys/types.h>
18601 #include <netinet/in.h>
18602 #ifdef HAVE_ARPA_NAMESER_H
18603 # include <arpa/nameser.h>
18605 #ifdef HAVE_RESOLV_H
18606 # include <resolv.h>
18614 char *request = NULL;
18615 unsigned char reply[64*1024];
18616 unsigned char host[64*1024];
18620 /* Bind 8/9 interface */
18621 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18623 /* Bind 4 interface */
18627 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18631 /* Bind 8/9 interface */
18633 #elif defined(HFIXEDSZ)
18634 /* Bind 4 interface w/ HFIXEDSZ */
18637 /* Bind 4 interface w/o HFIXEDSZ */
18638 p += sizeof(HEADER);
18640 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_link") 2>conftest.er1
18655 grep -v '^ *+' conftest.er1 >conftest.err
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } && {
18660 test -z "$ac_c_werror_flag" ||
18661 test ! -s conftest.err
18662 } && test -s conftest$ac_exeext &&
18663 $as_test_x conftest$ac_exeext; then
18664 ol_cv_resolver_bind=yes
18666 echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18669 ol_cv_resolver_bind=no
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673 conftest$ac_exeext conftest.$ac_ext
18678 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18679 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18681 if test $ol_cv_resolver_bind = yes ; then
18682 ol_cv_lib_resolver=-lbind
18689 if test "$ol_cv_lib_resolver" != no ; then
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_RES_QUERY 1
18696 if test "$ol_enable_dnssrv" != no ; then
18700 if test "$ol_cv_lib_resolver" != yes ; then
18701 LIBS="$ol_cv_lib_resolver $LIBS"
18705 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18706 if test "$ol_link_dnssrv" = no ; then
18707 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18708 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18709 { (exit 1); exit 1; }; }
18712 ol_enable_dnssrv=no
18716 for ac_func in hstrerror
18718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18722 echo $ECHO_N "(cached) $ECHO_C" >&6
18724 cat >conftest.$ac_ext <<_ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18732 #define $ac_func innocuous_$ac_func
18734 /* System header to define __stub macros and hopefully few prototypes,
18735 which can conflict with char $ac_func (); below.
18736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737 <limits.h> exists even on freestanding compilers. */
18740 # include <limits.h>
18742 # include <assert.h>
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18754 /* The GNU C library defines this for functions which it implements
18755 to always fail with ENOSYS. Some functions are actually named
18756 something starting with __ and the normal name is an alias. */
18757 #if defined __stub_$ac_func || defined __stub___$ac_func
18764 return $ac_func ();
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_link") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); } && {
18783 test -z "$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18785 } && test -s conftest$ac_exeext &&
18786 $as_test_x conftest$ac_exeext; then
18787 eval "$as_ac_var=yes"
18789 echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18792 eval "$as_ac_var=no"
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796 conftest$ac_exeext conftest.$ac_ext
18798 ac_res=`eval echo '${'$as_ac_var'}'`
18799 { echo "$as_me:$LINENO: result: $ac_res" >&5
18800 echo "${ECHO_T}$ac_res" >&6; }
18801 if test `eval echo '${'$as_ac_var'}'` = yes; then
18802 cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 cat >conftest.$ac_ext <<_ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h. */
18828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18830 #define $ac_func innocuous_$ac_func
18832 /* System header to define __stub macros and hopefully few prototypes,
18833 which can conflict with char $ac_func (); below.
18834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18835 <limits.h> exists even on freestanding compilers. */
18838 # include <limits.h>
18840 # include <assert.h>
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18852 /* The GNU C library defines this for functions which it implements
18853 to always fail with ENOSYS. Some functions are actually named
18854 something starting with __ and the normal name is an alias. */
18855 #if defined __stub_$ac_func || defined __stub___$ac_func
18862 return $ac_func ();
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_link") 2>conftest.er1
18876 grep -v '^ *+' conftest.er1 >conftest.err
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } && {
18881 test -z "$ac_c_werror_flag" ||
18882 test ! -s conftest.err
18883 } && test -s conftest$ac_exeext &&
18884 $as_test_x conftest$ac_exeext; then
18885 eval "$as_ac_var=yes"
18887 echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18890 eval "$as_ac_var=no"
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894 conftest$ac_exeext conftest.$ac_ext
18896 ac_res=`eval echo '${'$as_ac_var'}'`
18897 { echo "$as_me:$LINENO: result: $ac_res" >&5
18898 echo "${ECHO_T}$ac_res" >&6; }
18899 if test `eval echo '${'$as_ac_var'}'` = yes; then
18900 cat >>confdefs.h <<_ACEOF
18901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18909 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18910 if test $ol_enable_ipv6 = yes ; then
18911 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18912 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18913 { (exit 1); exit 1; }; }
18915 elif test $ol_enable_ipv6 != no ; then
18916 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18917 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18918 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18919 echo $ECHO_N "(cached) $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18929 # include <netinet/in.h>
18930 # ifdef INET6_ADDRSTRLEN
18931 __has_inet6_addrstrlen__;
18935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18936 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18937 ol_cv_inet6_addrstrlen=yes
18939 ol_cv_inet6_addrstrlen=no
18944 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18945 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18948 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18949 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18950 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18954 cat >conftest.$ac_ext <<_ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h. */
18961 #include <sys/types.h>
18962 #include <sys/socket.h>
18968 struct sockaddr_storage ss;
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_compile") 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && {
18988 test -z "$ac_c_werror_flag" ||
18989 test ! -s conftest.err
18990 } && test -s conftest.$ac_objext; then
18991 ol_cv_struct_sockaddr_storage=yes
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ol_cv_struct_sockaddr_storage=no
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19001 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19002 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19004 if test $ol_cv_inet6_addrstrlen = yes &&
19005 test $ol_cv_struct_sockaddr_storage = yes ; then
19007 elif test $ol_enable_ipv6 = yes &&
19008 test $ol_cv_inet6_addrstrlen = no ; then
19009 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19010 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19011 { (exit 1); exit 1; }; }
19012 elif test $ol_enable_ipv6 = yes &&
19013 test $ol_cv_struct_sockaddr_storage = no ; then
19014 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19015 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19016 { (exit 1); exit 1; }; }
19020 if test $ol_enable_local != no ; then
19022 for ac_header in sys/un.h
19024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19026 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 ac_res=`eval echo '${'$as_ac_Header'}'`
19032 { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19035 # Is the header compilable?
19036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19044 $ac_includes_default
19045 #include <$ac_header>
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_compile") 2>conftest.er1
19056 grep -v '^ *+' conftest.er1 >conftest.err
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } && {
19061 test -z "$ac_c_werror_flag" ||
19062 test ! -s conftest.err
19063 } && test -s conftest.$ac_objext; then
19064 ac_header_compiler=yes
19066 echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19069 ac_header_compiler=no
19072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19074 echo "${ECHO_T}$ac_header_compiler" >&6; }
19076 # Is the header present?
19077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19085 #include <$ac_header>
19087 if { (ac_try="$ac_cpp conftest.$ac_ext"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } >/dev/null && {
19100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19101 test ! -s conftest.err
19103 ac_header_preproc=yes
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 ac_header_preproc=no
19111 rm -f conftest.err conftest.$ac_ext
19112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19113 echo "${ECHO_T}$ac_header_preproc" >&6; }
19115 # So? What about this header?
19116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19118 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19122 ac_header_preproc=yes
19125 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19128 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19132 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19138 ## --------------------------------------------- ##
19139 ## Report this to <http://www.openldap.org/its/> ##
19140 ## --------------------------------------------- ##
19142 ) | sed "s/^/$as_me: WARNING: /" >&2
19145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 eval "$as_ac_Header=\$ac_header_preproc"
19152 ac_res=`eval echo '${'$as_ac_Header'}'`
19153 { echo "$as_me:$LINENO: result: $ac_res" >&5
19154 echo "${ECHO_T}$ac_res" >&6; }
19157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19158 cat >>confdefs.h <<_ACEOF
19159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19167 if test $ol_enable_local = auto ; then
19168 ol_enable_local=$ac_cv_header_sys_un_h
19169 elif test $ac_cv_header_sys_un_h = no ; then
19170 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19172 { (exit 1); exit 1; }; }
19177 if test $ol_with_tls = yes ; then
19182 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19184 for ac_header in openssl/ssl.h
19186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 ac_res=`eval echo '${'$as_ac_Header'}'`
19194 { echo "$as_me:$LINENO: result: $ac_res" >&5
19195 echo "${ECHO_T}$ac_res" >&6; }
19197 # Is the header compilable?
19198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200 cat >conftest.$ac_ext <<_ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h. */
19206 $ac_includes_default
19207 #include <$ac_header>
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_compile") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest.$ac_objext; then
19226 ac_header_compiler=yes
19228 echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19231 ac_header_compiler=no
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6; }
19238 # Is the header present?
19239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <$ac_header>
19249 if { (ac_try="$ac_cpp conftest.$ac_ext"
19250 case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19257 grep -v '^ *+' conftest.er1 >conftest.err
19259 cat conftest.err >&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); } >/dev/null && {
19262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263 test ! -s conftest.err
19265 ac_header_preproc=yes
19267 echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19270 ac_header_preproc=no
19273 rm -f conftest.err conftest.$ac_ext
19274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275 echo "${ECHO_T}$ac_header_preproc" >&6; }
19277 # So? What about this header?
19278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284 ac_header_preproc=yes
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19300 ## --------------------------------------------- ##
19301 ## Report this to <http://www.openldap.org/its/> ##
19302 ## --------------------------------------------- ##
19304 ) | sed "s/^/$as_me: WARNING: /" >&2
19307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19312 eval "$as_ac_Header=\$ac_header_preproc"
19314 ac_res=`eval echo '${'$as_ac_Header'}'`
19315 { echo "$as_me:$LINENO: result: $ac_res" >&5
19316 echo "${ECHO_T}$ac_res" >&6; }
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320 cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19329 if test $ac_cv_header_openssl_ssl_h = yes ; then
19330 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19331 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19333 echo $ECHO_N "(cached) $ECHO_C" >&6
19335 ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lssl -lcrypto $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19344 /* Override any GCC internal prototype to avoid an error.
19345 Use char because int might match the return type of a GCC
19346 builtin and then its argument prototype would still apply. */
19350 char SSL_library_init ();
19354 return SSL_library_init ();
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_link") 2>conftest.er1
19368 grep -v '^ *+' conftest.er1 >conftest.err
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } && {
19373 test -z "$ac_c_werror_flag" ||
19374 test ! -s conftest.err
19375 } && test -s conftest$ac_exeext &&
19376 $as_test_x conftest$ac_exeext; then
19377 ac_cv_lib_ssl_SSL_library_init=yes
19379 echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_lib_ssl_SSL_library_init=no
19385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386 conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19399 if test $have_openssl = no ; then
19400 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403 echo $ECHO_N "(cached) $ECHO_C" >&6
19405 ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19420 char ssl3_accept ();
19424 return ssl3_accept ();
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_link") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } && {
19443 test -z "$ac_c_werror_flag" ||
19444 test ! -s conftest.err
19445 } && test -s conftest$ac_exeext &&
19446 $as_test_x conftest$ac_exeext; then
19447 ac_cv_lib_ssl_ssl3_accept=yes
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ac_cv_lib_ssl_ssl3_accept=no
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456 conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19460 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19461 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19470 if test $have_openssl = yes ; then
19471 ol_with_tls=openssl
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_OPENSSL 1
19480 if test $need_rsaref = yes; then
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE_RSAREF 1
19487 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19489 TLS_LIBS="-lssl -lcrypto"
19492 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19493 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19494 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 cat >conftest.$ac_ext <<_ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h. */
19505 #ifdef HAVE_OPENSSL_SSL_H
19506 #include <openssl/ssl.h>
19509 /* Require 0.9.7d+ */
19510 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19511 char *__ssl_compat = "0.9.7d";
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19517 ol_cv_ssl_crl_compat=yes
19519 ol_cv_ssl_crl_compat=no
19524 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19525 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19527 if test $ol_cv_ssl_crl_compat = yes ; then
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_OPENSSL_CRL 1
19538 if test $ol_link_tls = no ; then
19539 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19541 for ac_header in gnutls/gnutls.h
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19548 echo $ECHO_N "(cached) $ECHO_C" >&6
19550 ac_res=`eval echo '${'$as_ac_Header'}'`
19551 { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19554 # Is the header compilable?
19555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 $ac_includes_default
19564 #include <$ac_header>
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_compile") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest.$ac_objext; then
19583 ac_header_compiler=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_header_compiler=no
19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19593 echo "${ECHO_T}$ac_header_compiler" >&6; }
19595 # Is the header present?
19596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 #include <$ac_header>
19606 if { (ac_try="$ac_cpp conftest.$ac_ext"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } >/dev/null && {
19619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19622 ac_header_preproc=yes
19624 echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19627 ac_header_preproc=no
19630 rm -f conftest.err conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19632 echo "${ECHO_T}$ac_header_preproc" >&6; }
19634 # So? What about this header?
19635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19641 ac_header_preproc=yes
19644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19657 ## --------------------------------------------- ##
19658 ## Report this to <http://www.openldap.org/its/> ##
19659 ## --------------------------------------------- ##
19661 ) | sed "s/^/$as_me: WARNING: /" >&2
19664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 eval "$as_ac_Header=\$ac_header_preproc"
19671 ac_res=`eval echo '${'$as_ac_Header'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19677 cat >>confdefs.h <<_ACEOF
19678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19686 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19687 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19688 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgnutls $LIBS"
19694 cat >conftest.$ac_ext <<_ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h. */
19701 /* Override any GCC internal prototype to avoid an error.
19702 Use char because int might match the return type of a GCC
19703 builtin and then its argument prototype would still apply. */
19707 char gnutls_init ();
19711 return gnutls_init ();
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest$ac_exeext &&
19733 $as_test_x conftest$ac_exeext; then
19734 ac_cv_lib_gnutls_gnutls_init=yes
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 ac_cv_lib_gnutls_gnutls_init=no
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19748 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19755 if test $have_gnutls = yes ; then
19759 TLS_LIBS="-lgnutls"
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_GNUTLS 1
19771 if test $ol_link_tls = no ; then
19772 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19775 for ac_header in nssutil.h
19777 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 ac_res=`eval echo '${'$as_ac_Header'}'`
19785 { echo "$as_me:$LINENO: result: $ac_res" >&5
19786 echo "${ECHO_T}$ac_res" >&6; }
19788 # Is the header compilable?
19789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 $ac_includes_default
19798 #include <$ac_header>
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807 (eval "$ac_compile") 2>conftest.er1
19809 grep -v '^ *+' conftest.er1 >conftest.err
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } && {
19814 test -z "$ac_c_werror_flag" ||
19815 test ! -s conftest.err
19816 } && test -s conftest.$ac_objext; then
19817 ac_header_compiler=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ac_header_compiler=no
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827 echo "${ECHO_T}$ac_header_compiler" >&6; }
19829 # Is the header present?
19830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h. */
19838 #include <$ac_header>
19840 if { (ac_try="$ac_cpp conftest.$ac_ext"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } >/dev/null && {
19853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19856 ac_header_preproc=yes
19858 echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19861 ac_header_preproc=no
19864 rm -f conftest.err conftest.$ac_ext
19865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6; }
19868 # So? What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19875 ac_header_preproc=yes
19878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19891 ## --------------------------------------------- ##
19892 ## Report this to <http://www.openldap.org/its/> ##
19893 ## --------------------------------------------- ##
19895 ) | sed "s/^/$as_me: WARNING: /" >&2
19898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19903 eval "$as_ac_Header=\$ac_header_preproc"
19905 ac_res=`eval echo '${'$as_ac_Header'}'`
19906 { echo "$as_me:$LINENO: result: $ac_res" >&5
19907 echo "${ECHO_T}$ac_res" >&6; }
19910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19911 cat >>confdefs.h <<_ACEOF
19912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19919 if test "$ac_cv_header_nssutil_h" = yes ; then
19920 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19921 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19922 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19925 ac_check_lib_save_LIBS=$LIBS
19926 LIBS="-lnss3 $LIBS"
19927 cat >conftest.$ac_ext <<_ACEOF
19930 cat confdefs.h >>conftest.$ac_ext
19931 cat >>conftest.$ac_ext <<_ACEOF
19932 /* end confdefs.h. */
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19940 char NSS_Initialize ();
19944 return NSS_Initialize ();
19949 rm -f conftest.$ac_objext conftest$ac_exeext
19950 if { (ac_try="$ac_link"
19951 case "(($ac_try" in
19952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19953 *) ac_try_echo=$ac_try;;
19955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19956 (eval "$ac_link") 2>conftest.er1
19958 grep -v '^ *+' conftest.er1 >conftest.err
19960 cat conftest.err >&5
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); } && {
19963 test -z "$ac_c_werror_flag" ||
19964 test ! -s conftest.err
19965 } && test -s conftest$ac_exeext &&
19966 $as_test_x conftest$ac_exeext; then
19967 ac_cv_lib_nss3_NSS_Initialize=yes
19969 echo "$as_me: failed program was:" >&5
19970 sed 's/^/| /' conftest.$ac_ext >&5
19972 ac_cv_lib_nss3_NSS_Initialize=no
19975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19976 conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19979 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19980 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19981 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19989 if test "$have_moznss" = yes ; then
19993 cat >>confdefs.h <<\_ACEOF
19994 #define HAVE_MOZNSS 1
19997 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
19999 { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20000 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20001 { (exit 1); exit 1; }; }
20007 if test $ol_link_tls = yes ; then
20009 cat >>confdefs.h <<\_ACEOF
20014 elif test $ol_with_tls = auto ; then
20015 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20016 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20017 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20018 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20019 elif test $ol_with_tls != no ; then
20020 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20021 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20022 { (exit 1); exit 1; }; }
20024 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20025 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20028 if test $ol_enable_lmpasswd != no; then
20029 if test $ol_link_tls != yes ; then
20030 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20031 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20032 { (exit 1); exit 1; }; }
20036 cat >>confdefs.h <<\_ACEOF
20037 #define SLAPD_LMHASH 1
20044 case $ol_with_threads in auto | yes | nt)
20047 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20048 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20049 if test "${ac_cv_func__beginthread+set}" = set; then
20050 echo $ECHO_N "(cached) $ECHO_C" >&6
20052 cat >conftest.$ac_ext <<_ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h. */
20058 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20060 #define _beginthread innocuous__beginthread
20062 /* System header to define __stub macros and hopefully few prototypes,
20063 which can conflict with char _beginthread (); below.
20064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065 <limits.h> exists even on freestanding compilers. */
20068 # include <limits.h>
20070 # include <assert.h>
20073 #undef _beginthread
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20081 char _beginthread ();
20082 /* The GNU C library defines this for functions which it implements
20083 to always fail with ENOSYS. Some functions are actually named
20084 something starting with __ and the normal name is an alias. */
20085 #if defined __stub__beginthread || defined __stub____beginthread
20092 return _beginthread ();
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101 *) ac_try_echo=$ac_try;;
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104 (eval "$ac_link") 2>conftest.er1
20106 grep -v '^ *+' conftest.er1 >conftest.err
20108 cat conftest.err >&5
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); } && {
20111 test -z "$ac_c_werror_flag" ||
20112 test ! -s conftest.err
20113 } && test -s conftest$ac_exeext &&
20114 $as_test_x conftest$ac_exeext; then
20115 ac_cv_func__beginthread=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 ac_cv_func__beginthread=no
20123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20124 conftest$ac_exeext conftest.$ac_ext
20126 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20127 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20130 if test $ac_cv_func__beginthread = yes ; then
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_NT_THREADS 1
20136 ol_cv_nt_threads=yes
20140 if test "$ol_cv_nt_threads" = yes ; then
20142 ol_with_threads=found
20143 ol_with_yielding_select=yes
20146 cat >>confdefs.h <<\_ACEOF
20147 #define HAVE_NT_SERVICE_MANAGER 1
20151 cat >>confdefs.h <<\_ACEOF
20152 #define HAVE_NT_EVENT_LOG 1
20157 if test $ol_with_threads = nt ; then
20158 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20159 echo "$as_me: error: could not locate NT Threads" >&2;}
20160 { (exit 1); exit 1; }; }
20165 case $ol_with_threads in auto | yes | posix)
20168 for ac_header in pthread.h
20170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20175 echo $ECHO_N "(cached) $ECHO_C" >&6
20177 ac_res=`eval echo '${'$as_ac_Header'}'`
20178 { echo "$as_me:$LINENO: result: $ac_res" >&5
20179 echo "${ECHO_T}$ac_res" >&6; }
20181 # Is the header compilable?
20182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20184 cat >conftest.$ac_ext <<_ACEOF
20187 cat confdefs.h >>conftest.$ac_ext
20188 cat >>conftest.$ac_ext <<_ACEOF
20189 /* end confdefs.h. */
20190 $ac_includes_default
20191 #include <$ac_header>
20193 rm -f conftest.$ac_objext
20194 if { (ac_try="$ac_compile"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_compile") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } && {
20207 test -z "$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20209 } && test -s conftest.$ac_objext; then
20210 ac_header_compiler=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_compiler=no
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <$ac_header>
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20241 grep -v '^ *+' conftest.er1 >conftest.err
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } >/dev/null && {
20246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20247 test ! -s conftest.err
20249 ac_header_preproc=yes
20251 echo "$as_me: failed program was:" >&5
20252 sed 's/^/| /' conftest.$ac_ext >&5
20254 ac_header_preproc=no
20257 rm -f conftest.err conftest.$ac_ext
20258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20259 echo "${ECHO_T}$ac_header_preproc" >&6; }
20261 # So? What about this header?
20262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20268 ac_header_preproc=yes
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20284 ## --------------------------------------------- ##
20285 ## Report this to <http://www.openldap.org/its/> ##
20286 ## --------------------------------------------- ##
20288 ) | sed "s/^/$as_me: WARNING: /" >&2
20291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20296 eval "$as_ac_Header=\$ac_header_preproc"
20298 ac_res=`eval echo '${'$as_ac_Header'}'`
20299 { echo "$as_me:$LINENO: result: $ac_res" >&5
20300 echo "${ECHO_T}$ac_res" >&6; }
20303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20304 cat >>confdefs.h <<_ACEOF
20305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20313 if test $ac_cv_header_pthread_h = yes ; then
20314 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20315 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20316 if test "${ol_cv_pthread_version+set}" = set; then
20317 echo $ECHO_N "(cached) $ECHO_C" >&6
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20327 # include <pthread.h>
20333 int i = PTHREAD_CREATE_JOINABLE;
20339 rm -f conftest.$ac_objext
20340 if { (ac_try="$ac_compile"
20341 case "(($ac_try" in
20342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20343 *) ac_try_echo=$ac_try;;
20345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20346 (eval "$ac_compile") 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } && {
20353 test -z "$ac_c_werror_flag" ||
20354 test ! -s conftest.err
20355 } && test -s conftest.$ac_objext; then
20357 cat >conftest.$ac_ext <<_ACEOF
20360 cat confdefs.h >>conftest.$ac_ext
20361 cat >>conftest.$ac_ext <<_ACEOF
20362 /* end confdefs.h. */
20363 #include <pthread.h>
20366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20367 $EGREP "pthread_detach" >/dev/null 2>&1; then
20368 ol_cv_pthread_version=10
20370 ol_cv_pthread_version=8
20375 echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 # include <pthread.h>
20387 # ifdef PTHREAD_CREATE_UNDETACHED
20392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20393 $EGREP "draft7" >/dev/null 2>&1; then
20394 ol_cv_pthread_version=7
20397 cat >conftest.$ac_ext <<_ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h. */
20403 #include <pthread.h>
20406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20407 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20408 ol_cv_pthread_version=6
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 # include <pthread.h>
20419 #ifdef PTHREAD_MUTEX_INITIALIZER
20424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20425 $EGREP "draft5" >/dev/null 2>&1; then
20426 ol_cv_pthread_version=5
20428 ol_cv_pthread_version=4
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20444 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20447 if test $ol_cv_pthread_version != 0 ; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_PTHREADS $ol_cv_pthread_version
20454 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20455 echo "$as_me: error: unknown pthread version" >&2;}
20456 { (exit 1); exit 1; }; }
20459 # consider threads found
20460 ol_with_threads=found
20463 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20464 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20465 if test "${ol_cv_header_linux_threads+set}" = set; then
20466 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 cat >conftest.$ac_ext <<_ACEOF
20471 cat confdefs.h >>conftest.$ac_ext
20472 cat >>conftest.$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <pthread.h>
20476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20477 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20478 ol_cv_header_linux_threads=yes
20480 ol_cv_header_linux_threads=no
20486 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20487 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20488 if test $ol_cv_header_linux_threads = yes; then
20490 cat >>confdefs.h <<\_ACEOF
20491 #define HAVE_LINUX_THREADS 1
20497 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20498 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20499 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20500 echo $ECHO_N "(cached) $ECHO_C" >&6
20502 cat >conftest.$ac_ext <<_ACEOF
20505 cat confdefs.h >>conftest.$ac_ext
20506 cat >>conftest.$ac_ext <<_ACEOF
20507 /* end confdefs.h. */
20508 #include <pthread.h>
20509 #ifdef _POSIX_THREAD_IS_GNU_PTH
20514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20515 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20516 ol_cv_header_gnu_pth_pthread_h=yes
20518 ol_cv_header_gnu_pth_pthread_h=no
20524 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20525 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20528 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20530 for ac_header in sched.h
20532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20534 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_res=`eval echo '${'$as_ac_Header'}'`
20540 { echo "$as_me:$LINENO: result: $ac_res" >&5
20541 echo "${ECHO_T}$ac_res" >&6; }
20543 # Is the header compilable?
20544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20546 cat >conftest.$ac_ext <<_ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h. */
20552 $ac_includes_default
20553 #include <$ac_header>
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20562 (eval "$ac_compile") 2>conftest.er1
20564 grep -v '^ *+' conftest.er1 >conftest.err
20566 cat conftest.err >&5
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && {
20569 test -z "$ac_c_werror_flag" ||
20570 test ! -s conftest.err
20571 } && test -s conftest.$ac_objext; then
20572 ac_header_compiler=yes
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_header_compiler=no
20580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20582 echo "${ECHO_T}$ac_header_compiler" >&6; }
20584 # Is the header present?
20585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <$ac_header>
20595 if { (ac_try="$ac_cpp conftest.$ac_ext"
20596 case "(($ac_try" in
20597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598 *) ac_try_echo=$ac_try;;
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20603 grep -v '^ *+' conftest.er1 >conftest.err
20605 cat conftest.err >&5
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } >/dev/null && {
20608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20611 ac_header_preproc=yes
20613 echo "$as_me: failed program was:" >&5
20614 sed 's/^/| /' conftest.$ac_ext >&5
20616 ac_header_preproc=no
20619 rm -f conftest.err conftest.$ac_ext
20620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20621 echo "${ECHO_T}$ac_header_preproc" >&6; }
20623 # So? What about this header?
20624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20630 ac_header_preproc=yes
20633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20646 ## --------------------------------------------- ##
20647 ## Report this to <http://www.openldap.org/its/> ##
20648 ## --------------------------------------------- ##
20650 ) | sed "s/^/$as_me: WARNING: /" >&2
20653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 eval "$as_ac_Header=\$ac_header_preproc"
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661 { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20666 cat >>confdefs.h <<_ACEOF
20667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20677 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20678 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20679 if test "${ol_cv_pthread_create+set}" = set; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 if test "$cross_compiling" = yes; then
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20691 /* pthread test headers */
20692 #include <pthread.h>
20693 #if HAVE_PTHREADS < 7
20697 #define NULL (void*)0
20700 static void *task(p)
20703 return (void *) (p == NULL);
20710 /* pthread test function */
20711 #ifndef PTHREAD_CREATE_DETACHED
20712 #define PTHREAD_CREATE_DETACHED 1
20716 int detach = PTHREAD_CREATE_DETACHED;
20718 #if HAVE_PTHREADS > 4
20719 /* Final pthreads */
20720 pthread_attr_t attr;
20722 status = pthread_attr_init(&attr);
20723 if( status ) return status;
20725 #if HAVE_PTHREADS < 7
20726 status = pthread_attr_setdetachstate(&attr, &detach);
20727 if( status < 0 ) status = errno;
20729 status = pthread_attr_setdetachstate(&attr, detach);
20731 if( status ) return status;
20732 status = pthread_create( &t, &attr, task, NULL );
20733 #if HAVE_PTHREADS < 7
20734 if( status < 0 ) status = errno;
20736 if( status ) return status;
20738 /* Draft 4 pthreads */
20739 status = pthread_create( &t, pthread_attr_default, task, NULL );
20740 if( status ) return errno;
20742 /* give thread a chance to complete */
20743 /* it should remain joinable and hence detachable */
20746 status = pthread_detach( &t );
20747 if( status ) return errno;
20750 #ifdef HAVE_LINUX_THREADS
20751 pthread_kill_other_threads_np();
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_link") 2>conftest.er1
20769 grep -v '^ *+' conftest.er1 >conftest.err
20771 cat conftest.err >&5
20772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && {
20774 test -z "$ac_c_werror_flag" ||
20775 test ! -s conftest.err
20776 } && test -s conftest$ac_exeext &&
20777 $as_test_x conftest$ac_exeext; then
20778 ol_cv_pthread_create=yes
20780 echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20783 ol_cv_pthread_create=no
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787 conftest$ac_exeext conftest.$ac_ext
20789 cat >conftest.$ac_ext <<_ACEOF
20792 cat confdefs.h >>conftest.$ac_ext
20793 cat >>conftest.$ac_ext <<_ACEOF
20794 /* end confdefs.h. */
20796 /* pthread test headers */
20797 #include <pthread.h>
20798 #if HAVE_PTHREADS < 7
20802 #define NULL (void*)0
20805 static void *task(p)
20808 return (void *) (p == NULL);
20812 int main(argc, argv)
20817 /* pthread test function */
20818 #ifndef PTHREAD_CREATE_DETACHED
20819 #define PTHREAD_CREATE_DETACHED 1
20823 int detach = PTHREAD_CREATE_DETACHED;
20825 #if HAVE_PTHREADS > 4
20826 /* Final pthreads */
20827 pthread_attr_t attr;
20829 status = pthread_attr_init(&attr);
20830 if( status ) return status;
20832 #if HAVE_PTHREADS < 7
20833 status = pthread_attr_setdetachstate(&attr, &detach);
20834 if( status < 0 ) status = errno;
20836 status = pthread_attr_setdetachstate(&attr, detach);
20838 if( status ) return status;
20839 status = pthread_create( &t, &attr, task, NULL );
20840 #if HAVE_PTHREADS < 7
20841 if( status < 0 ) status = errno;
20843 if( status ) return status;
20845 /* Draft 4 pthreads */
20846 status = pthread_create( &t, pthread_attr_default, task, NULL );
20847 if( status ) return errno;
20849 /* give thread a chance to complete */
20850 /* it should remain joinable and hence detachable */
20853 status = pthread_detach( &t );
20854 if( status ) return errno;
20857 #ifdef HAVE_LINUX_THREADS
20858 pthread_kill_other_threads_np();
20866 rm -f conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_link") 2>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20877 { (case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_try") 2>&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); }; }; then
20886 ol_cv_pthread_create=yes
20888 echo "$as_me: program exited with status $ac_status" >&5
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20892 ( exit $ac_status )
20893 ol_cv_pthread_create=no
20895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20901 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20903 if test $ol_cv_pthread_create != no ; then
20904 ol_link_threads=posix
20905 ol_link_pthreads=""
20908 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20909 if test "$ol_link_threads" = no ; then
20911 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20912 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20913 if test "${ol_cv_pthread_kthread+set}" = set; then
20914 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 LIBS="-kthread $LIBS"
20921 if test "$cross_compiling" = yes; then
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20929 /* pthread test headers */
20930 #include <pthread.h>
20931 #if HAVE_PTHREADS < 7
20935 #define NULL (void*)0
20938 static void *task(p)
20941 return (void *) (p == NULL);
20948 /* pthread test function */
20949 #ifndef PTHREAD_CREATE_DETACHED
20950 #define PTHREAD_CREATE_DETACHED 1
20954 int detach = PTHREAD_CREATE_DETACHED;
20956 #if HAVE_PTHREADS > 4
20957 /* Final pthreads */
20958 pthread_attr_t attr;
20960 status = pthread_attr_init(&attr);
20961 if( status ) return status;
20963 #if HAVE_PTHREADS < 7
20964 status = pthread_attr_setdetachstate(&attr, &detach);
20965 if( status < 0 ) status = errno;
20967 status = pthread_attr_setdetachstate(&attr, detach);
20969 if( status ) return status;
20970 status = pthread_create( &t, &attr, task, NULL );
20971 #if HAVE_PTHREADS < 7
20972 if( status < 0 ) status = errno;
20974 if( status ) return status;
20976 /* Draft 4 pthreads */
20977 status = pthread_create( &t, pthread_attr_default, task, NULL );
20978 if( status ) return errno;
20980 /* give thread a chance to complete */
20981 /* it should remain joinable and hence detachable */
20984 status = pthread_detach( &t );
20985 if( status ) return errno;
20988 #ifdef HAVE_LINUX_THREADS
20989 pthread_kill_other_threads_np();
20998 rm -f conftest.$ac_objext conftest$ac_exeext
20999 if { (ac_try="$ac_link"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_link") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } && {
21012 test -z "$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 } && test -s conftest$ac_exeext &&
21015 $as_test_x conftest$ac_exeext; then
21016 ol_cv_pthread_kthread=yes
21018 echo "$as_me: failed program was:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ol_cv_pthread_kthread=no
21024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21025 conftest$ac_exeext conftest.$ac_ext
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21034 /* pthread test headers */
21035 #include <pthread.h>
21036 #if HAVE_PTHREADS < 7
21040 #define NULL (void*)0
21043 static void *task(p)
21046 return (void *) (p == NULL);
21050 int main(argc, argv)
21055 /* pthread test function */
21056 #ifndef PTHREAD_CREATE_DETACHED
21057 #define PTHREAD_CREATE_DETACHED 1
21061 int detach = PTHREAD_CREATE_DETACHED;
21063 #if HAVE_PTHREADS > 4
21064 /* Final pthreads */
21065 pthread_attr_t attr;
21067 status = pthread_attr_init(&attr);
21068 if( status ) return status;
21070 #if HAVE_PTHREADS < 7
21071 status = pthread_attr_setdetachstate(&attr, &detach);
21072 if( status < 0 ) status = errno;
21074 status = pthread_attr_setdetachstate(&attr, detach);
21076 if( status ) return status;
21077 status = pthread_create( &t, &attr, task, NULL );
21078 #if HAVE_PTHREADS < 7
21079 if( status < 0 ) status = errno;
21081 if( status ) return status;
21083 /* Draft 4 pthreads */
21084 status = pthread_create( &t, pthread_attr_default, task, NULL );
21085 if( status ) return errno;
21087 /* give thread a chance to complete */
21088 /* it should remain joinable and hence detachable */
21091 status = pthread_detach( &t );
21092 if( status ) return errno;
21095 #ifdef HAVE_LINUX_THREADS
21096 pthread_kill_other_threads_np();
21104 rm -f conftest$ac_exeext
21105 if { (ac_try="$ac_link"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_link") 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21115 { (case "(($ac_try" in
21116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21117 *) ac_try_echo=$ac_try;;
21119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21120 (eval "$ac_try") 2>&5
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; }; then
21124 ol_cv_pthread_kthread=yes
21126 echo "$as_me: program exited with status $ac_status" >&5
21127 echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21130 ( exit $ac_status )
21131 ol_cv_pthread_kthread=no
21133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21143 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21145 if test $ol_cv_pthread_kthread = yes ; then
21146 ol_link_pthreads="-kthread"
21147 ol_link_threads=posix
21151 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21152 if test "$ol_link_threads" = no ; then
21154 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21155 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21156 if test "${ol_cv_pthread_pthread+set}" = set; then
21157 echo $ECHO_N "(cached) $ECHO_C" >&6
21162 LIBS="-pthread $LIBS"
21164 if test "$cross_compiling" = yes; then
21165 cat >conftest.$ac_ext <<_ACEOF
21168 cat confdefs.h >>conftest.$ac_ext
21169 cat >>conftest.$ac_ext <<_ACEOF
21170 /* end confdefs.h. */
21172 /* pthread test headers */
21173 #include <pthread.h>
21174 #if HAVE_PTHREADS < 7
21178 #define NULL (void*)0
21181 static void *task(p)
21184 return (void *) (p == NULL);
21191 /* pthread test function */
21192 #ifndef PTHREAD_CREATE_DETACHED
21193 #define PTHREAD_CREATE_DETACHED 1
21197 int detach = PTHREAD_CREATE_DETACHED;
21199 #if HAVE_PTHREADS > 4
21200 /* Final pthreads */
21201 pthread_attr_t attr;
21203 status = pthread_attr_init(&attr);
21204 if( status ) return status;
21206 #if HAVE_PTHREADS < 7
21207 status = pthread_attr_setdetachstate(&attr, &detach);
21208 if( status < 0 ) status = errno;
21210 status = pthread_attr_setdetachstate(&attr, detach);
21212 if( status ) return status;
21213 status = pthread_create( &t, &attr, task, NULL );
21214 #if HAVE_PTHREADS < 7
21215 if( status < 0 ) status = errno;
21217 if( status ) return status;
21219 /* Draft 4 pthreads */
21220 status = pthread_create( &t, pthread_attr_default, task, NULL );
21221 if( status ) return errno;
21223 /* give thread a chance to complete */
21224 /* it should remain joinable and hence detachable */
21227 status = pthread_detach( &t );
21228 if( status ) return errno;
21231 #ifdef HAVE_LINUX_THREADS
21232 pthread_kill_other_threads_np();
21241 rm -f conftest.$ac_objext conftest$ac_exeext
21242 if { (ac_try="$ac_link"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_link") 2>conftest.er1
21250 grep -v '^ *+' conftest.er1 >conftest.err
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && {
21255 test -z "$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 } && test -s conftest$ac_exeext &&
21258 $as_test_x conftest$ac_exeext; then
21259 ol_cv_pthread_pthread=yes
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ol_cv_pthread_pthread=no
21267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21268 conftest$ac_exeext conftest.$ac_ext
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21277 /* pthread test headers */
21278 #include <pthread.h>
21279 #if HAVE_PTHREADS < 7
21283 #define NULL (void*)0
21286 static void *task(p)
21289 return (void *) (p == NULL);
21293 int main(argc, argv)
21298 /* pthread test function */
21299 #ifndef PTHREAD_CREATE_DETACHED
21300 #define PTHREAD_CREATE_DETACHED 1
21304 int detach = PTHREAD_CREATE_DETACHED;
21306 #if HAVE_PTHREADS > 4
21307 /* Final pthreads */
21308 pthread_attr_t attr;
21310 status = pthread_attr_init(&attr);
21311 if( status ) return status;
21313 #if HAVE_PTHREADS < 7
21314 status = pthread_attr_setdetachstate(&attr, &detach);
21315 if( status < 0 ) status = errno;
21317 status = pthread_attr_setdetachstate(&attr, detach);
21319 if( status ) return status;
21320 status = pthread_create( &t, &attr, task, NULL );
21321 #if HAVE_PTHREADS < 7
21322 if( status < 0 ) status = errno;
21324 if( status ) return status;
21326 /* Draft 4 pthreads */
21327 status = pthread_create( &t, pthread_attr_default, task, NULL );
21328 if( status ) return errno;
21330 /* give thread a chance to complete */
21331 /* it should remain joinable and hence detachable */
21334 status = pthread_detach( &t );
21335 if( status ) return errno;
21338 #ifdef HAVE_LINUX_THREADS
21339 pthread_kill_other_threads_np();
21347 rm -f conftest$ac_exeext
21348 if { (ac_try="$ac_link"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_link") 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21358 { (case "(($ac_try" in
21359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21360 *) ac_try_echo=$ac_try;;
21362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21363 (eval "$ac_try") 2>&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ol_cv_pthread_pthread=yes
21369 echo "$as_me: program exited with status $ac_status" >&5
21370 echo "$as_me: failed program was:" >&5
21371 sed 's/^/| /' conftest.$ac_ext >&5
21373 ( exit $ac_status )
21374 ol_cv_pthread_pthread=no
21376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21385 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21386 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21388 if test $ol_cv_pthread_pthread = yes ; then
21389 ol_link_pthreads="-pthread"
21390 ol_link_threads=posix
21394 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21395 if test "$ol_link_threads" = no ; then
21397 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21398 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21399 if test "${ol_cv_pthread_pthreads+set}" = set; then
21400 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 LIBS="-pthreads $LIBS"
21407 if test "$cross_compiling" = yes; then
21408 cat >conftest.$ac_ext <<_ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h. */
21415 /* pthread test headers */
21416 #include <pthread.h>
21417 #if HAVE_PTHREADS < 7
21421 #define NULL (void*)0
21424 static void *task(p)
21427 return (void *) (p == NULL);
21434 /* pthread test function */
21435 #ifndef PTHREAD_CREATE_DETACHED
21436 #define PTHREAD_CREATE_DETACHED 1
21440 int detach = PTHREAD_CREATE_DETACHED;
21442 #if HAVE_PTHREADS > 4
21443 /* Final pthreads */
21444 pthread_attr_t attr;
21446 status = pthread_attr_init(&attr);
21447 if( status ) return status;
21449 #if HAVE_PTHREADS < 7
21450 status = pthread_attr_setdetachstate(&attr, &detach);
21451 if( status < 0 ) status = errno;
21453 status = pthread_attr_setdetachstate(&attr, detach);
21455 if( status ) return status;
21456 status = pthread_create( &t, &attr, task, NULL );
21457 #if HAVE_PTHREADS < 7
21458 if( status < 0 ) status = errno;
21460 if( status ) return status;
21462 /* Draft 4 pthreads */
21463 status = pthread_create( &t, pthread_attr_default, task, NULL );
21464 if( status ) return errno;
21466 /* give thread a chance to complete */
21467 /* it should remain joinable and hence detachable */
21470 status = pthread_detach( &t );
21471 if( status ) return errno;
21474 #ifdef HAVE_LINUX_THREADS
21475 pthread_kill_other_threads_np();
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (ac_try="$ac_link"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_link") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest$ac_exeext &&
21501 $as_test_x conftest$ac_exeext; then
21502 ol_cv_pthread_pthreads=yes
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ol_cv_pthread_pthreads=no
21510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21511 conftest$ac_exeext conftest.$ac_ext
21513 cat >conftest.$ac_ext <<_ACEOF
21516 cat confdefs.h >>conftest.$ac_ext
21517 cat >>conftest.$ac_ext <<_ACEOF
21518 /* end confdefs.h. */
21520 /* pthread test headers */
21521 #include <pthread.h>
21522 #if HAVE_PTHREADS < 7
21526 #define NULL (void*)0
21529 static void *task(p)
21532 return (void *) (p == NULL);
21536 int main(argc, argv)
21541 /* pthread test function */
21542 #ifndef PTHREAD_CREATE_DETACHED
21543 #define PTHREAD_CREATE_DETACHED 1
21547 int detach = PTHREAD_CREATE_DETACHED;
21549 #if HAVE_PTHREADS > 4
21550 /* Final pthreads */
21551 pthread_attr_t attr;
21553 status = pthread_attr_init(&attr);
21554 if( status ) return status;
21556 #if HAVE_PTHREADS < 7
21557 status = pthread_attr_setdetachstate(&attr, &detach);
21558 if( status < 0 ) status = errno;
21560 status = pthread_attr_setdetachstate(&attr, detach);
21562 if( status ) return status;
21563 status = pthread_create( &t, &attr, task, NULL );
21564 #if HAVE_PTHREADS < 7
21565 if( status < 0 ) status = errno;
21567 if( status ) return status;
21569 /* Draft 4 pthreads */
21570 status = pthread_create( &t, pthread_attr_default, task, NULL );
21571 if( status ) return errno;
21573 /* give thread a chance to complete */
21574 /* it should remain joinable and hence detachable */
21577 status = pthread_detach( &t );
21578 if( status ) return errno;
21581 #ifdef HAVE_LINUX_THREADS
21582 pthread_kill_other_threads_np();
21590 rm -f conftest$ac_exeext
21591 if { (ac_try="$ac_link"
21592 case "(($ac_try" in
21593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21594 *) ac_try_echo=$ac_try;;
21596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21597 (eval "$ac_link") 2>&5
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21601 { (case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_try") 2>&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 ol_cv_pthread_pthreads=yes
21612 echo "$as_me: program exited with status $ac_status" >&5
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ( exit $ac_status )
21617 ol_cv_pthread_pthreads=no
21619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21628 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21629 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21631 if test $ol_cv_pthread_pthreads = yes ; then
21632 ol_link_pthreads="-pthreads"
21633 ol_link_threads=posix
21637 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21638 if test "$ol_link_threads" = no ; then
21640 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21641 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21642 if test "${ol_cv_pthread_mthreads+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 LIBS="-mthreads $LIBS"
21650 if test "$cross_compiling" = yes; then
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21658 /* pthread test headers */
21659 #include <pthread.h>
21660 #if HAVE_PTHREADS < 7
21664 #define NULL (void*)0
21667 static void *task(p)
21670 return (void *) (p == NULL);
21677 /* pthread test function */
21678 #ifndef PTHREAD_CREATE_DETACHED
21679 #define PTHREAD_CREATE_DETACHED 1
21683 int detach = PTHREAD_CREATE_DETACHED;
21685 #if HAVE_PTHREADS > 4
21686 /* Final pthreads */
21687 pthread_attr_t attr;
21689 status = pthread_attr_init(&attr);
21690 if( status ) return status;
21692 #if HAVE_PTHREADS < 7
21693 status = pthread_attr_setdetachstate(&attr, &detach);
21694 if( status < 0 ) status = errno;
21696 status = pthread_attr_setdetachstate(&attr, detach);
21698 if( status ) return status;
21699 status = pthread_create( &t, &attr, task, NULL );
21700 #if HAVE_PTHREADS < 7
21701 if( status < 0 ) status = errno;
21703 if( status ) return status;
21705 /* Draft 4 pthreads */
21706 status = pthread_create( &t, pthread_attr_default, task, NULL );
21707 if( status ) return errno;
21709 /* give thread a chance to complete */
21710 /* it should remain joinable and hence detachable */
21713 status = pthread_detach( &t );
21714 if( status ) return errno;
21717 #ifdef HAVE_LINUX_THREADS
21718 pthread_kill_other_threads_np();
21727 rm -f conftest.$ac_objext conftest$ac_exeext
21728 if { (ac_try="$ac_link"
21729 case "(($ac_try" in
21730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21731 *) ac_try_echo=$ac_try;;
21733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21734 (eval "$ac_link") 2>conftest.er1
21736 grep -v '^ *+' conftest.er1 >conftest.err
21738 cat conftest.err >&5
21739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740 (exit $ac_status); } && {
21741 test -z "$ac_c_werror_flag" ||
21742 test ! -s conftest.err
21743 } && test -s conftest$ac_exeext &&
21744 $as_test_x conftest$ac_exeext; then
21745 ol_cv_pthread_mthreads=yes
21747 echo "$as_me: failed program was:" >&5
21748 sed 's/^/| /' conftest.$ac_ext >&5
21750 ol_cv_pthread_mthreads=no
21753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21754 conftest$ac_exeext conftest.$ac_ext
21756 cat >conftest.$ac_ext <<_ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21763 /* pthread test headers */
21764 #include <pthread.h>
21765 #if HAVE_PTHREADS < 7
21769 #define NULL (void*)0
21772 static void *task(p)
21775 return (void *) (p == NULL);
21779 int main(argc, argv)
21784 /* pthread test function */
21785 #ifndef PTHREAD_CREATE_DETACHED
21786 #define PTHREAD_CREATE_DETACHED 1
21790 int detach = PTHREAD_CREATE_DETACHED;
21792 #if HAVE_PTHREADS > 4
21793 /* Final pthreads */
21794 pthread_attr_t attr;
21796 status = pthread_attr_init(&attr);
21797 if( status ) return status;
21799 #if HAVE_PTHREADS < 7
21800 status = pthread_attr_setdetachstate(&attr, &detach);
21801 if( status < 0 ) status = errno;
21803 status = pthread_attr_setdetachstate(&attr, detach);
21805 if( status ) return status;
21806 status = pthread_create( &t, &attr, task, NULL );
21807 #if HAVE_PTHREADS < 7
21808 if( status < 0 ) status = errno;
21810 if( status ) return status;
21812 /* Draft 4 pthreads */
21813 status = pthread_create( &t, pthread_attr_default, task, NULL );
21814 if( status ) return errno;
21816 /* give thread a chance to complete */
21817 /* it should remain joinable and hence detachable */
21820 status = pthread_detach( &t );
21821 if( status ) return errno;
21824 #ifdef HAVE_LINUX_THREADS
21825 pthread_kill_other_threads_np();
21833 rm -f conftest$ac_exeext
21834 if { (ac_try="$ac_link"
21835 case "(($ac_try" in
21836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837 *) ac_try_echo=$ac_try;;
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840 (eval "$ac_link") 2>&5
21842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21844 { (case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_try") 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ol_cv_pthread_mthreads=yes
21855 echo "$as_me: program exited with status $ac_status" >&5
21856 echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21859 ( exit $ac_status )
21860 ol_cv_pthread_mthreads=no
21862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21871 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21872 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21874 if test $ol_cv_pthread_mthreads = yes ; then
21875 ol_link_pthreads="-mthreads"
21876 ol_link_threads=posix
21880 # Pthread try link: -thread (ol_cv_pthread_thread)
21881 if test "$ol_link_threads" = no ; then
21883 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21884 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21885 if test "${ol_cv_pthread_thread+set}" = set; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21891 LIBS="-thread $LIBS"
21893 if test "$cross_compiling" = yes; then
21894 cat >conftest.$ac_ext <<_ACEOF
21897 cat confdefs.h >>conftest.$ac_ext
21898 cat >>conftest.$ac_ext <<_ACEOF
21899 /* end confdefs.h. */
21901 /* pthread test headers */
21902 #include <pthread.h>
21903 #if HAVE_PTHREADS < 7
21907 #define NULL (void*)0
21910 static void *task(p)
21913 return (void *) (p == NULL);
21920 /* pthread test function */
21921 #ifndef PTHREAD_CREATE_DETACHED
21922 #define PTHREAD_CREATE_DETACHED 1
21926 int detach = PTHREAD_CREATE_DETACHED;
21928 #if HAVE_PTHREADS > 4
21929 /* Final pthreads */
21930 pthread_attr_t attr;
21932 status = pthread_attr_init(&attr);
21933 if( status ) return status;
21935 #if HAVE_PTHREADS < 7
21936 status = pthread_attr_setdetachstate(&attr, &detach);
21937 if( status < 0 ) status = errno;
21939 status = pthread_attr_setdetachstate(&attr, detach);
21941 if( status ) return status;
21942 status = pthread_create( &t, &attr, task, NULL );
21943 #if HAVE_PTHREADS < 7
21944 if( status < 0 ) status = errno;
21946 if( status ) return status;
21948 /* Draft 4 pthreads */
21949 status = pthread_create( &t, pthread_attr_default, task, NULL );
21950 if( status ) return errno;
21952 /* give thread a chance to complete */
21953 /* it should remain joinable and hence detachable */
21956 status = pthread_detach( &t );
21957 if( status ) return errno;
21960 #ifdef HAVE_LINUX_THREADS
21961 pthread_kill_other_threads_np();
21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977 (eval "$ac_link") 2>conftest.er1
21979 grep -v '^ *+' conftest.er1 >conftest.err
21981 cat conftest.err >&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); } && {
21984 test -z "$ac_c_werror_flag" ||
21985 test ! -s conftest.err
21986 } && test -s conftest$ac_exeext &&
21987 $as_test_x conftest$ac_exeext; then
21988 ol_cv_pthread_thread=yes
21990 echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21993 ol_cv_pthread_thread=no
21996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21997 conftest$ac_exeext conftest.$ac_ext
21999 cat >conftest.$ac_ext <<_ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h. */
22006 /* pthread test headers */
22007 #include <pthread.h>
22008 #if HAVE_PTHREADS < 7
22012 #define NULL (void*)0
22015 static void *task(p)
22018 return (void *) (p == NULL);
22022 int main(argc, argv)
22027 /* pthread test function */
22028 #ifndef PTHREAD_CREATE_DETACHED
22029 #define PTHREAD_CREATE_DETACHED 1
22033 int detach = PTHREAD_CREATE_DETACHED;
22035 #if HAVE_PTHREADS > 4
22036 /* Final pthreads */
22037 pthread_attr_t attr;
22039 status = pthread_attr_init(&attr);
22040 if( status ) return status;
22042 #if HAVE_PTHREADS < 7
22043 status = pthread_attr_setdetachstate(&attr, &detach);
22044 if( status < 0 ) status = errno;
22046 status = pthread_attr_setdetachstate(&attr, detach);
22048 if( status ) return status;
22049 status = pthread_create( &t, &attr, task, NULL );
22050 #if HAVE_PTHREADS < 7
22051 if( status < 0 ) status = errno;
22053 if( status ) return status;
22055 /* Draft 4 pthreads */
22056 status = pthread_create( &t, pthread_attr_default, task, NULL );
22057 if( status ) return errno;
22059 /* give thread a chance to complete */
22060 /* it should remain joinable and hence detachable */
22063 status = pthread_detach( &t );
22064 if( status ) return errno;
22067 #ifdef HAVE_LINUX_THREADS
22068 pthread_kill_other_threads_np();
22076 rm -f conftest$ac_exeext
22077 if { (ac_try="$ac_link"
22078 case "(($ac_try" in
22079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22080 *) ac_try_echo=$ac_try;;
22082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22083 (eval "$ac_link") 2>&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22087 { (case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_try") 2>&5
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ol_cv_pthread_thread=yes
22098 echo "$as_me: program exited with status $ac_status" >&5
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22102 ( exit $ac_status )
22103 ol_cv_pthread_thread=no
22105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22114 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22115 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22117 if test $ol_cv_pthread_thread = yes ; then
22118 ol_link_pthreads="-thread"
22119 ol_link_threads=posix
22124 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22125 if test "$ol_link_threads" = no ; then
22126 # try -lpthread -lmach -lexc -lc_r
22127 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22128 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22129 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22130 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22137 if test "$cross_compiling" = yes; then
22138 cat >conftest.$ac_ext <<_ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22145 /* pthread test headers */
22146 #include <pthread.h>
22147 #if HAVE_PTHREADS < 7
22151 #define NULL (void*)0
22154 static void *task(p)
22157 return (void *) (p == NULL);
22164 /* pthread test function */
22165 #ifndef PTHREAD_CREATE_DETACHED
22166 #define PTHREAD_CREATE_DETACHED 1
22170 int detach = PTHREAD_CREATE_DETACHED;
22172 #if HAVE_PTHREADS > 4
22173 /* Final pthreads */
22174 pthread_attr_t attr;
22176 status = pthread_attr_init(&attr);
22177 if( status ) return status;
22179 #if HAVE_PTHREADS < 7
22180 status = pthread_attr_setdetachstate(&attr, &detach);
22181 if( status < 0 ) status = errno;
22183 status = pthread_attr_setdetachstate(&attr, detach);
22185 if( status ) return status;
22186 status = pthread_create( &t, &attr, task, NULL );
22187 #if HAVE_PTHREADS < 7
22188 if( status < 0 ) status = errno;
22190 if( status ) return status;
22192 /* Draft 4 pthreads */
22193 status = pthread_create( &t, pthread_attr_default, task, NULL );
22194 if( status ) return errno;
22196 /* give thread a chance to complete */
22197 /* it should remain joinable and hence detachable */
22200 status = pthread_detach( &t );
22201 if( status ) return errno;
22204 #ifdef HAVE_LINUX_THREADS
22205 pthread_kill_other_threads_np();
22214 rm -f conftest.$ac_objext conftest$ac_exeext
22215 if { (ac_try="$ac_link"
22216 case "(($ac_try" in
22217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218 *) ac_try_echo=$ac_try;;
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221 (eval "$ac_link") 2>conftest.er1
22223 grep -v '^ *+' conftest.er1 >conftest.err
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } && {
22228 test -z "$ac_c_werror_flag" ||
22229 test ! -s conftest.err
22230 } && test -s conftest$ac_exeext &&
22231 $as_test_x conftest$ac_exeext; then
22232 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22237 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22241 conftest$ac_exeext conftest.$ac_ext
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22250 /* pthread test headers */
22251 #include <pthread.h>
22252 #if HAVE_PTHREADS < 7
22256 #define NULL (void*)0
22259 static void *task(p)
22262 return (void *) (p == NULL);
22266 int main(argc, argv)
22271 /* pthread test function */
22272 #ifndef PTHREAD_CREATE_DETACHED
22273 #define PTHREAD_CREATE_DETACHED 1
22277 int detach = PTHREAD_CREATE_DETACHED;
22279 #if HAVE_PTHREADS > 4
22280 /* Final pthreads */
22281 pthread_attr_t attr;
22283 status = pthread_attr_init(&attr);
22284 if( status ) return status;
22286 #if HAVE_PTHREADS < 7
22287 status = pthread_attr_setdetachstate(&attr, &detach);
22288 if( status < 0 ) status = errno;
22290 status = pthread_attr_setdetachstate(&attr, detach);
22292 if( status ) return status;
22293 status = pthread_create( &t, &attr, task, NULL );
22294 #if HAVE_PTHREADS < 7
22295 if( status < 0 ) status = errno;
22297 if( status ) return status;
22299 /* Draft 4 pthreads */
22300 status = pthread_create( &t, pthread_attr_default, task, NULL );
22301 if( status ) return errno;
22303 /* give thread a chance to complete */
22304 /* it should remain joinable and hence detachable */
22307 status = pthread_detach( &t );
22308 if( status ) return errno;
22311 #ifdef HAVE_LINUX_THREADS
22312 pthread_kill_other_threads_np();
22320 rm -f conftest$ac_exeext
22321 if { (ac_try="$ac_link"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_link") 2>&5
22329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22331 { (case "(($ac_try" in
22332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22333 *) ac_try_echo=$ac_try;;
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_try") 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; }; then
22340 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22342 echo "$as_me: program exited with status $ac_status" >&5
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ( exit $ac_status )
22347 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22359 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22361 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22362 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22363 ol_link_threads=posix
22367 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22368 if test "$ol_link_threads" = no ; then
22369 # try -lpthread -lmach -lexc
22370 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22371 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22372 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 LIBS="-lpthread -lmach -lexc $LIBS"
22380 if test "$cross_compiling" = yes; then
22381 cat >conftest.$ac_ext <<_ACEOF
22384 cat confdefs.h >>conftest.$ac_ext
22385 cat >>conftest.$ac_ext <<_ACEOF
22386 /* end confdefs.h. */
22388 /* pthread test headers */
22389 #include <pthread.h>
22390 #if HAVE_PTHREADS < 7
22394 #define NULL (void*)0
22397 static void *task(p)
22400 return (void *) (p == NULL);
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();
22457 rm -f conftest.$ac_objext conftest$ac_exeext
22458 if { (ac_try="$ac_link"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_link") 2>conftest.er1
22466 grep -v '^ *+' conftest.er1 >conftest.err
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } && {
22471 test -z "$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 } && test -s conftest$ac_exeext &&
22474 $as_test_x conftest$ac_exeext; then
22475 ol_cv_pthread_lpthread_lmach_lexc=yes
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22480 ol_cv_pthread_lpthread_lmach_lexc=no
22483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22484 conftest$ac_exeext conftest.$ac_ext
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22493 /* pthread test headers */
22494 #include <pthread.h>
22495 #if HAVE_PTHREADS < 7
22499 #define NULL (void*)0
22502 static void *task(p)
22505 return (void *) (p == NULL);
22509 int main(argc, argv)
22514 /* pthread test function */
22515 #ifndef PTHREAD_CREATE_DETACHED
22516 #define PTHREAD_CREATE_DETACHED 1
22520 int detach = PTHREAD_CREATE_DETACHED;
22522 #if HAVE_PTHREADS > 4
22523 /* Final pthreads */
22524 pthread_attr_t attr;
22526 status = pthread_attr_init(&attr);
22527 if( status ) return status;
22529 #if HAVE_PTHREADS < 7
22530 status = pthread_attr_setdetachstate(&attr, &detach);
22531 if( status < 0 ) status = errno;
22533 status = pthread_attr_setdetachstate(&attr, detach);
22535 if( status ) return status;
22536 status = pthread_create( &t, &attr, task, NULL );
22537 #if HAVE_PTHREADS < 7
22538 if( status < 0 ) status = errno;
22540 if( status ) return status;
22542 /* Draft 4 pthreads */
22543 status = pthread_create( &t, pthread_attr_default, task, NULL );
22544 if( status ) return errno;
22546 /* give thread a chance to complete */
22547 /* it should remain joinable and hence detachable */
22550 status = pthread_detach( &t );
22551 if( status ) return errno;
22554 #ifdef HAVE_LINUX_THREADS
22555 pthread_kill_other_threads_np();
22563 rm -f conftest$ac_exeext
22564 if { (ac_try="$ac_link"
22565 case "(($ac_try" in
22566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22567 *) ac_try_echo=$ac_try;;
22569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22570 (eval "$ac_link") 2>&5
22572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22574 { (case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_try") 2>&5
22581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582 (exit $ac_status); }; }; then
22583 ol_cv_pthread_lpthread_lmach_lexc=yes
22585 echo "$as_me: program exited with status $ac_status" >&5
22586 echo "$as_me: failed program was:" >&5
22587 sed 's/^/| /' conftest.$ac_ext >&5
22589 ( exit $ac_status )
22590 ol_cv_pthread_lpthread_lmach_lexc=no
22592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22602 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22604 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22605 ol_link_pthreads="-lpthread -lmach -lexc"
22606 ol_link_threads=posix
22611 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22612 if test "$ol_link_threads" = no ; then
22613 # try -lpthread -Wl,-woff,85
22614 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22615 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22616 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22617 echo $ECHO_N "(cached) $ECHO_C" >&6
22622 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22624 if test "$cross_compiling" = yes; then
22625 cat >conftest.$ac_ext <<_ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22632 /* pthread test headers */
22633 #include <pthread.h>
22634 #if HAVE_PTHREADS < 7
22638 #define NULL (void*)0
22641 static void *task(p)
22644 return (void *) (p == NULL);
22651 /* pthread test function */
22652 #ifndef PTHREAD_CREATE_DETACHED
22653 #define PTHREAD_CREATE_DETACHED 1
22657 int detach = PTHREAD_CREATE_DETACHED;
22659 #if HAVE_PTHREADS > 4
22660 /* Final pthreads */
22661 pthread_attr_t attr;
22663 status = pthread_attr_init(&attr);
22664 if( status ) return status;
22666 #if HAVE_PTHREADS < 7
22667 status = pthread_attr_setdetachstate(&attr, &detach);
22668 if( status < 0 ) status = errno;
22670 status = pthread_attr_setdetachstate(&attr, detach);
22672 if( status ) return status;
22673 status = pthread_create( &t, &attr, task, NULL );
22674 #if HAVE_PTHREADS < 7
22675 if( status < 0 ) status = errno;
22677 if( status ) return status;
22679 /* Draft 4 pthreads */
22680 status = pthread_create( &t, pthread_attr_default, task, NULL );
22681 if( status ) return errno;
22683 /* give thread a chance to complete */
22684 /* it should remain joinable and hence detachable */
22687 status = pthread_detach( &t );
22688 if( status ) return errno;
22691 #ifdef HAVE_LINUX_THREADS
22692 pthread_kill_other_threads_np();
22701 rm -f conftest.$ac_objext conftest$ac_exeext
22702 if { (ac_try="$ac_link"
22703 case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_link") 2>conftest.er1
22710 grep -v '^ *+' conftest.er1 >conftest.err
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } && {
22715 test -z "$ac_c_werror_flag" ||
22716 test ! -s conftest.err
22717 } && test -s conftest$ac_exeext &&
22718 $as_test_x conftest$ac_exeext; then
22719 ol_cv_pthread_lib_lpthread_woff=yes
22721 echo "$as_me: failed program was:" >&5
22722 sed 's/^/| /' conftest.$ac_ext >&5
22724 ol_cv_pthread_lib_lpthread_woff=no
22727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22728 conftest$ac_exeext conftest.$ac_ext
22730 cat >conftest.$ac_ext <<_ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22737 /* pthread test headers */
22738 #include <pthread.h>
22739 #if HAVE_PTHREADS < 7
22743 #define NULL (void*)0
22746 static void *task(p)
22749 return (void *) (p == NULL);
22753 int main(argc, argv)
22758 /* pthread test function */
22759 #ifndef PTHREAD_CREATE_DETACHED
22760 #define PTHREAD_CREATE_DETACHED 1
22764 int detach = PTHREAD_CREATE_DETACHED;
22766 #if HAVE_PTHREADS > 4
22767 /* Final pthreads */
22768 pthread_attr_t attr;
22770 status = pthread_attr_init(&attr);
22771 if( status ) return status;
22773 #if HAVE_PTHREADS < 7
22774 status = pthread_attr_setdetachstate(&attr, &detach);
22775 if( status < 0 ) status = errno;
22777 status = pthread_attr_setdetachstate(&attr, detach);
22779 if( status ) return status;
22780 status = pthread_create( &t, &attr, task, NULL );
22781 #if HAVE_PTHREADS < 7
22782 if( status < 0 ) status = errno;
22784 if( status ) return status;
22786 /* Draft 4 pthreads */
22787 status = pthread_create( &t, pthread_attr_default, task, NULL );
22788 if( status ) return errno;
22790 /* give thread a chance to complete */
22791 /* it should remain joinable and hence detachable */
22794 status = pthread_detach( &t );
22795 if( status ) return errno;
22798 #ifdef HAVE_LINUX_THREADS
22799 pthread_kill_other_threads_np();
22807 rm -f conftest$ac_exeext
22808 if { (ac_try="$ac_link"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814 (eval "$ac_link") 2>&5
22816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22818 { (case "(($ac_try" in
22819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820 *) ac_try_echo=$ac_try;;
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823 (eval "$ac_try") 2>&5
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); }; }; then
22827 ol_cv_pthread_lib_lpthread_woff=yes
22829 echo "$as_me: program exited with status $ac_status" >&5
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ( exit $ac_status )
22834 ol_cv_pthread_lib_lpthread_woff=no
22836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22846 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22848 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22849 ol_link_pthreads="-lpthread -Wl,-woff,85"
22850 ol_link_threads=posix
22855 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22856 if test "$ol_link_threads" = no ; then
22858 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22859 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22860 if test "${ol_cv_pthread_lpthread+set}" = set; then
22861 echo $ECHO_N "(cached) $ECHO_C" >&6
22866 LIBS="-lpthread $LIBS"
22868 if test "$cross_compiling" = yes; then
22869 cat >conftest.$ac_ext <<_ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h. */
22876 /* pthread test headers */
22877 #include <pthread.h>
22878 #if HAVE_PTHREADS < 7
22882 #define NULL (void*)0
22885 static void *task(p)
22888 return (void *) (p == NULL);
22895 /* pthread test function */
22896 #ifndef PTHREAD_CREATE_DETACHED
22897 #define PTHREAD_CREATE_DETACHED 1
22901 int detach = PTHREAD_CREATE_DETACHED;
22903 #if HAVE_PTHREADS > 4
22904 /* Final pthreads */
22905 pthread_attr_t attr;
22907 status = pthread_attr_init(&attr);
22908 if( status ) return status;
22910 #if HAVE_PTHREADS < 7
22911 status = pthread_attr_setdetachstate(&attr, &detach);
22912 if( status < 0 ) status = errno;
22914 status = pthread_attr_setdetachstate(&attr, detach);
22916 if( status ) return status;
22917 status = pthread_create( &t, &attr, task, NULL );
22918 #if HAVE_PTHREADS < 7
22919 if( status < 0 ) status = errno;
22921 if( status ) return status;
22923 /* Draft 4 pthreads */
22924 status = pthread_create( &t, pthread_attr_default, task, NULL );
22925 if( status ) return errno;
22927 /* give thread a chance to complete */
22928 /* it should remain joinable and hence detachable */
22931 status = pthread_detach( &t );
22932 if( status ) return errno;
22935 #ifdef HAVE_LINUX_THREADS
22936 pthread_kill_other_threads_np();
22945 rm -f conftest.$ac_objext conftest$ac_exeext
22946 if { (ac_try="$ac_link"
22947 case "(($ac_try" in
22948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22949 *) ac_try_echo=$ac_try;;
22951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22952 (eval "$ac_link") 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && {
22959 test -z "$ac_c_werror_flag" ||
22960 test ! -s conftest.err
22961 } && test -s conftest$ac_exeext &&
22962 $as_test_x conftest$ac_exeext; then
22963 ol_cv_pthread_lpthread=yes
22965 echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22968 ol_cv_pthread_lpthread=no
22971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22972 conftest$ac_exeext conftest.$ac_ext
22974 cat >conftest.$ac_ext <<_ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22981 /* pthread test headers */
22982 #include <pthread.h>
22983 #if HAVE_PTHREADS < 7
22987 #define NULL (void*)0
22990 static void *task(p)
22993 return (void *) (p == NULL);
22997 int main(argc, argv)
23002 /* pthread test function */
23003 #ifndef PTHREAD_CREATE_DETACHED
23004 #define PTHREAD_CREATE_DETACHED 1
23008 int detach = PTHREAD_CREATE_DETACHED;
23010 #if HAVE_PTHREADS > 4
23011 /* Final pthreads */
23012 pthread_attr_t attr;
23014 status = pthread_attr_init(&attr);
23015 if( status ) return status;
23017 #if HAVE_PTHREADS < 7
23018 status = pthread_attr_setdetachstate(&attr, &detach);
23019 if( status < 0 ) status = errno;
23021 status = pthread_attr_setdetachstate(&attr, detach);
23023 if( status ) return status;
23024 status = pthread_create( &t, &attr, task, NULL );
23025 #if HAVE_PTHREADS < 7
23026 if( status < 0 ) status = errno;
23028 if( status ) return status;
23030 /* Draft 4 pthreads */
23031 status = pthread_create( &t, pthread_attr_default, task, NULL );
23032 if( status ) return errno;
23034 /* give thread a chance to complete */
23035 /* it should remain joinable and hence detachable */
23038 status = pthread_detach( &t );
23039 if( status ) return errno;
23042 #ifdef HAVE_LINUX_THREADS
23043 pthread_kill_other_threads_np();
23051 rm -f conftest$ac_exeext
23052 if { (ac_try="$ac_link"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_link") 2>&5
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23062 { (case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23067 (eval "$ac_try") 2>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; }; then
23071 ol_cv_pthread_lpthread=yes
23073 echo "$as_me: program exited with status $ac_status" >&5
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ( exit $ac_status )
23078 ol_cv_pthread_lpthread=no
23080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23089 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23090 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23092 if test $ol_cv_pthread_lpthread = yes ; then
23093 ol_link_pthreads="-lpthread"
23094 ol_link_threads=posix
23098 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23099 if test "$ol_link_threads" = no ; then
23101 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23102 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23103 if test "${ol_cv_pthread_lc_r+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23111 if test "$cross_compiling" = yes; then
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23119 /* pthread test headers */
23120 #include <pthread.h>
23121 #if HAVE_PTHREADS < 7
23125 #define NULL (void*)0
23128 static void *task(p)
23131 return (void *) (p == NULL);
23138 /* pthread test function */
23139 #ifndef PTHREAD_CREATE_DETACHED
23140 #define PTHREAD_CREATE_DETACHED 1
23144 int detach = PTHREAD_CREATE_DETACHED;
23146 #if HAVE_PTHREADS > 4
23147 /* Final pthreads */
23148 pthread_attr_t attr;
23150 status = pthread_attr_init(&attr);
23151 if( status ) return status;
23153 #if HAVE_PTHREADS < 7
23154 status = pthread_attr_setdetachstate(&attr, &detach);
23155 if( status < 0 ) status = errno;
23157 status = pthread_attr_setdetachstate(&attr, detach);
23159 if( status ) return status;
23160 status = pthread_create( &t, &attr, task, NULL );
23161 #if HAVE_PTHREADS < 7
23162 if( status < 0 ) status = errno;
23164 if( status ) return status;
23166 /* Draft 4 pthreads */
23167 status = pthread_create( &t, pthread_attr_default, task, NULL );
23168 if( status ) return errno;
23170 /* give thread a chance to complete */
23171 /* it should remain joinable and hence detachable */
23174 status = pthread_detach( &t );
23175 if( status ) return errno;
23178 #ifdef HAVE_LINUX_THREADS
23179 pthread_kill_other_threads_np();
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (ac_try="$ac_link"
23190 case "(($ac_try" in
23191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23192 *) ac_try_echo=$ac_try;;
23194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23195 (eval "$ac_link") 2>conftest.er1
23197 grep -v '^ *+' conftest.er1 >conftest.err
23199 cat conftest.err >&5
23200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest$ac_exeext &&
23205 $as_test_x conftest$ac_exeext; then
23206 ol_cv_pthread_lc_r=yes
23208 echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.$ac_ext >&5
23211 ol_cv_pthread_lc_r=no
23214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23215 conftest$ac_exeext conftest.$ac_ext
23217 cat >conftest.$ac_ext <<_ACEOF
23220 cat confdefs.h >>conftest.$ac_ext
23221 cat >>conftest.$ac_ext <<_ACEOF
23222 /* end confdefs.h. */
23224 /* pthread test headers */
23225 #include <pthread.h>
23226 #if HAVE_PTHREADS < 7
23230 #define NULL (void*)0
23233 static void *task(p)
23236 return (void *) (p == NULL);
23240 int main(argc, argv)
23245 /* pthread test function */
23246 #ifndef PTHREAD_CREATE_DETACHED
23247 #define PTHREAD_CREATE_DETACHED 1
23251 int detach = PTHREAD_CREATE_DETACHED;
23253 #if HAVE_PTHREADS > 4
23254 /* Final pthreads */
23255 pthread_attr_t attr;
23257 status = pthread_attr_init(&attr);
23258 if( status ) return status;
23260 #if HAVE_PTHREADS < 7
23261 status = pthread_attr_setdetachstate(&attr, &detach);
23262 if( status < 0 ) status = errno;
23264 status = pthread_attr_setdetachstate(&attr, detach);
23266 if( status ) return status;
23267 status = pthread_create( &t, &attr, task, NULL );
23268 #if HAVE_PTHREADS < 7
23269 if( status < 0 ) status = errno;
23271 if( status ) return status;
23273 /* Draft 4 pthreads */
23274 status = pthread_create( &t, pthread_attr_default, task, NULL );
23275 if( status ) return errno;
23277 /* give thread a chance to complete */
23278 /* it should remain joinable and hence detachable */
23281 status = pthread_detach( &t );
23282 if( status ) return errno;
23285 #ifdef HAVE_LINUX_THREADS
23286 pthread_kill_other_threads_np();
23294 rm -f conftest$ac_exeext
23295 if { (ac_try="$ac_link"
23296 case "(($ac_try" in
23297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298 *) ac_try_echo=$ac_try;;
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301 (eval "$ac_link") 2>&5
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23305 { (case "(($ac_try" in
23306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307 *) ac_try_echo=$ac_try;;
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310 (eval "$ac_try") 2>&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314 ol_cv_pthread_lc_r=yes
23316 echo "$as_me: program exited with status $ac_status" >&5
23317 echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.$ac_ext >&5
23320 ( exit $ac_status )
23321 ol_cv_pthread_lc_r=no
23323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23332 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23333 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23335 if test $ol_cv_pthread_lc_r = yes ; then
23336 ol_link_pthreads="-lc_r"
23337 ol_link_threads=posix
23342 # Pthread try link: -threads (ol_cv_pthread_threads)
23343 if test "$ol_link_threads" = no ; then
23345 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23346 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23347 if test "${ol_cv_pthread_threads+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
23353 LIBS="-threads $LIBS"
23355 if test "$cross_compiling" = yes; then
23356 cat >conftest.$ac_ext <<_ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23363 /* pthread test headers */
23364 #include <pthread.h>
23365 #if HAVE_PTHREADS < 7
23369 #define NULL (void*)0
23372 static void *task(p)
23375 return (void *) (p == NULL);
23382 /* pthread test function */
23383 #ifndef PTHREAD_CREATE_DETACHED
23384 #define PTHREAD_CREATE_DETACHED 1
23388 int detach = PTHREAD_CREATE_DETACHED;
23390 #if HAVE_PTHREADS > 4
23391 /* Final pthreads */
23392 pthread_attr_t attr;
23394 status = pthread_attr_init(&attr);
23395 if( status ) return status;
23397 #if HAVE_PTHREADS < 7
23398 status = pthread_attr_setdetachstate(&attr, &detach);
23399 if( status < 0 ) status = errno;
23401 status = pthread_attr_setdetachstate(&attr, detach);
23403 if( status ) return status;
23404 status = pthread_create( &t, &attr, task, NULL );
23405 #if HAVE_PTHREADS < 7
23406 if( status < 0 ) status = errno;
23408 if( status ) return status;
23410 /* Draft 4 pthreads */
23411 status = pthread_create( &t, pthread_attr_default, task, NULL );
23412 if( status ) return errno;
23414 /* give thread a chance to complete */
23415 /* it should remain joinable and hence detachable */
23418 status = pthread_detach( &t );
23419 if( status ) return errno;
23422 #ifdef HAVE_LINUX_THREADS
23423 pthread_kill_other_threads_np();
23432 rm -f conftest.$ac_objext conftest$ac_exeext
23433 if { (ac_try="$ac_link"
23434 case "(($ac_try" in
23435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436 *) ac_try_echo=$ac_try;;
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439 (eval "$ac_link") 2>conftest.er1
23441 grep -v '^ *+' conftest.er1 >conftest.err
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } && {
23446 test -z "$ac_c_werror_flag" ||
23447 test ! -s conftest.err
23448 } && test -s conftest$ac_exeext &&
23449 $as_test_x conftest$ac_exeext; then
23450 ol_cv_pthread_threads=yes
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23455 ol_cv_pthread_threads=no
23458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23459 conftest$ac_exeext conftest.$ac_ext
23461 cat >conftest.$ac_ext <<_ACEOF
23464 cat confdefs.h >>conftest.$ac_ext
23465 cat >>conftest.$ac_ext <<_ACEOF
23466 /* end confdefs.h. */
23468 /* pthread test headers */
23469 #include <pthread.h>
23470 #if HAVE_PTHREADS < 7
23474 #define NULL (void*)0
23477 static void *task(p)
23480 return (void *) (p == NULL);
23484 int main(argc, argv)
23489 /* pthread test function */
23490 #ifndef PTHREAD_CREATE_DETACHED
23491 #define PTHREAD_CREATE_DETACHED 1
23495 int detach = PTHREAD_CREATE_DETACHED;
23497 #if HAVE_PTHREADS > 4
23498 /* Final pthreads */
23499 pthread_attr_t attr;
23501 status = pthread_attr_init(&attr);
23502 if( status ) return status;
23504 #if HAVE_PTHREADS < 7
23505 status = pthread_attr_setdetachstate(&attr, &detach);
23506 if( status < 0 ) status = errno;
23508 status = pthread_attr_setdetachstate(&attr, detach);
23510 if( status ) return status;
23511 status = pthread_create( &t, &attr, task, NULL );
23512 #if HAVE_PTHREADS < 7
23513 if( status < 0 ) status = errno;
23515 if( status ) return status;
23517 /* Draft 4 pthreads */
23518 status = pthread_create( &t, pthread_attr_default, task, NULL );
23519 if( status ) return errno;
23521 /* give thread a chance to complete */
23522 /* it should remain joinable and hence detachable */
23525 status = pthread_detach( &t );
23526 if( status ) return errno;
23529 #ifdef HAVE_LINUX_THREADS
23530 pthread_kill_other_threads_np();
23538 rm -f conftest$ac_exeext
23539 if { (ac_try="$ac_link"
23540 case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_link") 2>&5
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23549 { (case "(($ac_try" in
23550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551 *) ac_try_echo=$ac_try;;
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554 (eval "$ac_try") 2>&5
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 ol_cv_pthread_threads=yes
23560 echo "$as_me: program exited with status $ac_status" >&5
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23564 ( exit $ac_status )
23565 ol_cv_pthread_threads=no
23567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23576 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23577 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23579 if test $ol_cv_pthread_threads = yes ; then
23580 ol_link_pthreads="-threads"
23581 ol_link_threads=posix
23586 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23587 if test "$ol_link_threads" = no ; then
23588 # try -lpthreads -lmach -lexc -lc_r
23589 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23590 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23591 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23592 echo $ECHO_N "(cached) $ECHO_C" >&6
23597 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23599 if test "$cross_compiling" = yes; then
23600 cat >conftest.$ac_ext <<_ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23607 /* pthread test headers */
23608 #include <pthread.h>
23609 #if HAVE_PTHREADS < 7
23613 #define NULL (void*)0
23616 static void *task(p)
23619 return (void *) (p == NULL);
23626 /* pthread test function */
23627 #ifndef PTHREAD_CREATE_DETACHED
23628 #define PTHREAD_CREATE_DETACHED 1
23632 int detach = PTHREAD_CREATE_DETACHED;
23634 #if HAVE_PTHREADS > 4
23635 /* Final pthreads */
23636 pthread_attr_t attr;
23638 status = pthread_attr_init(&attr);
23639 if( status ) return status;
23641 #if HAVE_PTHREADS < 7
23642 status = pthread_attr_setdetachstate(&attr, &detach);
23643 if( status < 0 ) status = errno;
23645 status = pthread_attr_setdetachstate(&attr, detach);
23647 if( status ) return status;
23648 status = pthread_create( &t, &attr, task, NULL );
23649 #if HAVE_PTHREADS < 7
23650 if( status < 0 ) status = errno;
23652 if( status ) return status;
23654 /* Draft 4 pthreads */
23655 status = pthread_create( &t, pthread_attr_default, task, NULL );
23656 if( status ) return errno;
23658 /* give thread a chance to complete */
23659 /* it should remain joinable and hence detachable */
23662 status = pthread_detach( &t );
23663 if( status ) return errno;
23666 #ifdef HAVE_LINUX_THREADS
23667 pthread_kill_other_threads_np();
23676 rm -f conftest.$ac_objext conftest$ac_exeext
23677 if { (ac_try="$ac_link"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_link") 2>conftest.er1
23685 grep -v '^ *+' conftest.er1 >conftest.err
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest$ac_exeext &&
23693 $as_test_x conftest$ac_exeext; then
23694 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23696 echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23699 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23703 conftest$ac_exeext conftest.$ac_ext
23705 cat >conftest.$ac_ext <<_ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h. */
23712 /* pthread test headers */
23713 #include <pthread.h>
23714 #if HAVE_PTHREADS < 7
23718 #define NULL (void*)0
23721 static void *task(p)
23724 return (void *) (p == NULL);
23728 int main(argc, argv)
23733 /* pthread test function */
23734 #ifndef PTHREAD_CREATE_DETACHED
23735 #define PTHREAD_CREATE_DETACHED 1
23739 int detach = PTHREAD_CREATE_DETACHED;
23741 #if HAVE_PTHREADS > 4
23742 /* Final pthreads */
23743 pthread_attr_t attr;
23745 status = pthread_attr_init(&attr);
23746 if( status ) return status;
23748 #if HAVE_PTHREADS < 7
23749 status = pthread_attr_setdetachstate(&attr, &detach);
23750 if( status < 0 ) status = errno;
23752 status = pthread_attr_setdetachstate(&attr, detach);
23754 if( status ) return status;
23755 status = pthread_create( &t, &attr, task, NULL );
23756 #if HAVE_PTHREADS < 7
23757 if( status < 0 ) status = errno;
23759 if( status ) return status;
23761 /* Draft 4 pthreads */
23762 status = pthread_create( &t, pthread_attr_default, task, NULL );
23763 if( status ) return errno;
23765 /* give thread a chance to complete */
23766 /* it should remain joinable and hence detachable */
23769 status = pthread_detach( &t );
23770 if( status ) return errno;
23773 #ifdef HAVE_LINUX_THREADS
23774 pthread_kill_other_threads_np();
23782 rm -f conftest$ac_exeext
23783 if { (ac_try="$ac_link"
23784 case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_link") 2>&5
23791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23793 { (case "(($ac_try" in
23794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23795 *) ac_try_echo=$ac_try;;
23797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23798 (eval "$ac_try") 2>&5
23800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23801 (exit $ac_status); }; }; then
23802 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23804 echo "$as_me: program exited with status $ac_status" >&5
23805 echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23808 ( exit $ac_status )
23809 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23820 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23821 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23823 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23824 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23825 ol_link_threads=posix
23829 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23830 if test "$ol_link_threads" = no ; then
23831 # try -lpthreads -lmach -lexc
23832 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23833 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23834 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23835 echo $ECHO_N "(cached) $ECHO_C" >&6
23840 LIBS="-lpthreads -lmach -lexc $LIBS"
23842 if test "$cross_compiling" = yes; then
23843 cat >conftest.$ac_ext <<_ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h. */
23850 /* pthread test headers */
23851 #include <pthread.h>
23852 #if HAVE_PTHREADS < 7
23856 #define NULL (void*)0
23859 static void *task(p)
23862 return (void *) (p == NULL);
23869 /* pthread test function */
23870 #ifndef PTHREAD_CREATE_DETACHED
23871 #define PTHREAD_CREATE_DETACHED 1
23875 int detach = PTHREAD_CREATE_DETACHED;
23877 #if HAVE_PTHREADS > 4
23878 /* Final pthreads */
23879 pthread_attr_t attr;
23881 status = pthread_attr_init(&attr);
23882 if( status ) return status;
23884 #if HAVE_PTHREADS < 7
23885 status = pthread_attr_setdetachstate(&attr, &detach);
23886 if( status < 0 ) status = errno;
23888 status = pthread_attr_setdetachstate(&attr, detach);
23890 if( status ) return status;
23891 status = pthread_create( &t, &attr, task, NULL );
23892 #if HAVE_PTHREADS < 7
23893 if( status < 0 ) status = errno;
23895 if( status ) return status;
23897 /* Draft 4 pthreads */
23898 status = pthread_create( &t, pthread_attr_default, task, NULL );
23899 if( status ) return errno;
23901 /* give thread a chance to complete */
23902 /* it should remain joinable and hence detachable */
23905 status = pthread_detach( &t );
23906 if( status ) return errno;
23909 #ifdef HAVE_LINUX_THREADS
23910 pthread_kill_other_threads_np();
23919 rm -f conftest.$ac_objext conftest$ac_exeext
23920 if { (ac_try="$ac_link"
23921 case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926 (eval "$ac_link") 2>conftest.er1
23928 grep -v '^ *+' conftest.er1 >conftest.err
23930 cat conftest.err >&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } && {
23933 test -z "$ac_c_werror_flag" ||
23934 test ! -s conftest.err
23935 } && test -s conftest$ac_exeext &&
23936 $as_test_x conftest$ac_exeext; then
23937 ol_cv_pthread_lpthreads_lmach_lexc=yes
23939 echo "$as_me: failed program was:" >&5
23940 sed 's/^/| /' conftest.$ac_ext >&5
23942 ol_cv_pthread_lpthreads_lmach_lexc=no
23945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23946 conftest$ac_exeext conftest.$ac_ext
23948 cat >conftest.$ac_ext <<_ACEOF
23951 cat confdefs.h >>conftest.$ac_ext
23952 cat >>conftest.$ac_ext <<_ACEOF
23953 /* end confdefs.h. */
23955 /* pthread test headers */
23956 #include <pthread.h>
23957 #if HAVE_PTHREADS < 7
23961 #define NULL (void*)0
23964 static void *task(p)
23967 return (void *) (p == NULL);
23971 int main(argc, argv)
23976 /* pthread test function */
23977 #ifndef PTHREAD_CREATE_DETACHED
23978 #define PTHREAD_CREATE_DETACHED 1
23982 int detach = PTHREAD_CREATE_DETACHED;
23984 #if HAVE_PTHREADS > 4
23985 /* Final pthreads */
23986 pthread_attr_t attr;
23988 status = pthread_attr_init(&attr);
23989 if( status ) return status;
23991 #if HAVE_PTHREADS < 7
23992 status = pthread_attr_setdetachstate(&attr, &detach);
23993 if( status < 0 ) status = errno;
23995 status = pthread_attr_setdetachstate(&attr, detach);
23997 if( status ) return status;
23998 status = pthread_create( &t, &attr, task, NULL );
23999 #if HAVE_PTHREADS < 7
24000 if( status < 0 ) status = errno;
24002 if( status ) return status;
24004 /* Draft 4 pthreads */
24005 status = pthread_create( &t, pthread_attr_default, task, NULL );
24006 if( status ) return errno;
24008 /* give thread a chance to complete */
24009 /* it should remain joinable and hence detachable */
24012 status = pthread_detach( &t );
24013 if( status ) return errno;
24016 #ifdef HAVE_LINUX_THREADS
24017 pthread_kill_other_threads_np();
24025 rm -f conftest$ac_exeext
24026 if { (ac_try="$ac_link"
24027 case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24032 (eval "$ac_link") 2>&5
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24036 { (case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041 (eval "$ac_try") 2>&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); }; }; then
24045 ol_cv_pthread_lpthreads_lmach_lexc=yes
24047 echo "$as_me: program exited with status $ac_status" >&5
24048 echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24051 ( exit $ac_status )
24052 ol_cv_pthread_lpthreads_lmach_lexc=no
24054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24063 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24064 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24066 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24067 ol_link_pthreads="-lpthreads -lmach -lexc"
24068 ol_link_threads=posix
24072 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24073 if test "$ol_link_threads" = no ; then
24074 # try -lpthreads -lexc
24075 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24076 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24077 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24078 echo $ECHO_N "(cached) $ECHO_C" >&6
24083 LIBS="-lpthreads -lexc $LIBS"
24085 if test "$cross_compiling" = yes; then
24086 cat >conftest.$ac_ext <<_ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h. */
24093 /* pthread test headers */
24094 #include <pthread.h>
24095 #if HAVE_PTHREADS < 7
24099 #define NULL (void*)0
24102 static void *task(p)
24105 return (void *) (p == NULL);
24112 /* pthread test function */
24113 #ifndef PTHREAD_CREATE_DETACHED
24114 #define PTHREAD_CREATE_DETACHED 1
24118 int detach = PTHREAD_CREATE_DETACHED;
24120 #if HAVE_PTHREADS > 4
24121 /* Final pthreads */
24122 pthread_attr_t attr;
24124 status = pthread_attr_init(&attr);
24125 if( status ) return status;
24127 #if HAVE_PTHREADS < 7
24128 status = pthread_attr_setdetachstate(&attr, &detach);
24129 if( status < 0 ) status = errno;
24131 status = pthread_attr_setdetachstate(&attr, detach);
24133 if( status ) return status;
24134 status = pthread_create( &t, &attr, task, NULL );
24135 #if HAVE_PTHREADS < 7
24136 if( status < 0 ) status = errno;
24138 if( status ) return status;
24140 /* Draft 4 pthreads */
24141 status = pthread_create( &t, pthread_attr_default, task, NULL );
24142 if( status ) return errno;
24144 /* give thread a chance to complete */
24145 /* it should remain joinable and hence detachable */
24148 status = pthread_detach( &t );
24149 if( status ) return errno;
24152 #ifdef HAVE_LINUX_THREADS
24153 pthread_kill_other_threads_np();
24162 rm -f conftest.$ac_objext conftest$ac_exeext
24163 if { (ac_try="$ac_link"
24164 case "(($ac_try" in
24165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166 *) ac_try_echo=$ac_try;;
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169 (eval "$ac_link") 2>conftest.er1
24171 grep -v '^ *+' conftest.er1 >conftest.err
24173 cat conftest.err >&5
24174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175 (exit $ac_status); } && {
24176 test -z "$ac_c_werror_flag" ||
24177 test ! -s conftest.err
24178 } && test -s conftest$ac_exeext &&
24179 $as_test_x conftest$ac_exeext; then
24180 ol_cv_pthread_lpthreads_lexc=yes
24182 echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24185 ol_cv_pthread_lpthreads_lexc=no
24188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24189 conftest$ac_exeext conftest.$ac_ext
24191 cat >conftest.$ac_ext <<_ACEOF
24194 cat confdefs.h >>conftest.$ac_ext
24195 cat >>conftest.$ac_ext <<_ACEOF
24196 /* end confdefs.h. */
24198 /* pthread test headers */
24199 #include <pthread.h>
24200 #if HAVE_PTHREADS < 7
24204 #define NULL (void*)0
24207 static void *task(p)
24210 return (void *) (p == NULL);
24214 int main(argc, argv)
24219 /* pthread test function */
24220 #ifndef PTHREAD_CREATE_DETACHED
24221 #define PTHREAD_CREATE_DETACHED 1
24225 int detach = PTHREAD_CREATE_DETACHED;
24227 #if HAVE_PTHREADS > 4
24228 /* Final pthreads */
24229 pthread_attr_t attr;
24231 status = pthread_attr_init(&attr);
24232 if( status ) return status;
24234 #if HAVE_PTHREADS < 7
24235 status = pthread_attr_setdetachstate(&attr, &detach);
24236 if( status < 0 ) status = errno;
24238 status = pthread_attr_setdetachstate(&attr, detach);
24240 if( status ) return status;
24241 status = pthread_create( &t, &attr, task, NULL );
24242 #if HAVE_PTHREADS < 7
24243 if( status < 0 ) status = errno;
24245 if( status ) return status;
24247 /* Draft 4 pthreads */
24248 status = pthread_create( &t, pthread_attr_default, task, NULL );
24249 if( status ) return errno;
24251 /* give thread a chance to complete */
24252 /* it should remain joinable and hence detachable */
24255 status = pthread_detach( &t );
24256 if( status ) return errno;
24259 #ifdef HAVE_LINUX_THREADS
24260 pthread_kill_other_threads_np();
24268 rm -f conftest$ac_exeext
24269 if { (ac_try="$ac_link"
24270 case "(($ac_try" in
24271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24272 *) ac_try_echo=$ac_try;;
24274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24275 (eval "$ac_link") 2>&5
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24279 { (case "(($ac_try" in
24280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281 *) ac_try_echo=$ac_try;;
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284 (eval "$ac_try") 2>&5
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); }; }; then
24288 ol_cv_pthread_lpthreads_lexc=yes
24290 echo "$as_me: program exited with status $ac_status" >&5
24291 echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24294 ( exit $ac_status )
24295 ol_cv_pthread_lpthreads_lexc=no
24297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24306 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24307 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24309 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24310 ol_link_pthreads="-lpthreads -lexc"
24311 ol_link_threads=posix
24316 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24317 if test "$ol_link_threads" = no ; then
24319 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24320 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24321 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
24327 LIBS="-lpthreads $LIBS"
24329 if test "$cross_compiling" = yes; then
24330 cat >conftest.$ac_ext <<_ACEOF
24333 cat confdefs.h >>conftest.$ac_ext
24334 cat >>conftest.$ac_ext <<_ACEOF
24335 /* end confdefs.h. */
24337 /* pthread test headers */
24338 #include <pthread.h>
24339 #if HAVE_PTHREADS < 7
24343 #define NULL (void*)0
24346 static void *task(p)
24349 return (void *) (p == NULL);
24356 /* pthread test function */
24357 #ifndef PTHREAD_CREATE_DETACHED
24358 #define PTHREAD_CREATE_DETACHED 1
24362 int detach = PTHREAD_CREATE_DETACHED;
24364 #if HAVE_PTHREADS > 4
24365 /* Final pthreads */
24366 pthread_attr_t attr;
24368 status = pthread_attr_init(&attr);
24369 if( status ) return status;
24371 #if HAVE_PTHREADS < 7
24372 status = pthread_attr_setdetachstate(&attr, &detach);
24373 if( status < 0 ) status = errno;
24375 status = pthread_attr_setdetachstate(&attr, detach);
24377 if( status ) return status;
24378 status = pthread_create( &t, &attr, task, NULL );
24379 #if HAVE_PTHREADS < 7
24380 if( status < 0 ) status = errno;
24382 if( status ) return status;
24384 /* Draft 4 pthreads */
24385 status = pthread_create( &t, pthread_attr_default, task, NULL );
24386 if( status ) return errno;
24388 /* give thread a chance to complete */
24389 /* it should remain joinable and hence detachable */
24392 status = pthread_detach( &t );
24393 if( status ) return errno;
24396 #ifdef HAVE_LINUX_THREADS
24397 pthread_kill_other_threads_np();
24406 rm -f conftest.$ac_objext conftest$ac_exeext
24407 if { (ac_try="$ac_link"
24408 case "(($ac_try" in
24409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24410 *) ac_try_echo=$ac_try;;
24412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24413 (eval "$ac_link") 2>conftest.er1
24415 grep -v '^ *+' conftest.er1 >conftest.err
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } && {
24420 test -z "$ac_c_werror_flag" ||
24421 test ! -s conftest.err
24422 } && test -s conftest$ac_exeext &&
24423 $as_test_x conftest$ac_exeext; then
24424 ol_cv_pthread_lib_lpthreads=yes
24426 echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24429 ol_cv_pthread_lib_lpthreads=no
24432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24433 conftest$ac_exeext conftest.$ac_ext
24435 cat >conftest.$ac_ext <<_ACEOF
24438 cat confdefs.h >>conftest.$ac_ext
24439 cat >>conftest.$ac_ext <<_ACEOF
24440 /* end confdefs.h. */
24442 /* pthread test headers */
24443 #include <pthread.h>
24444 #if HAVE_PTHREADS < 7
24448 #define NULL (void*)0
24451 static void *task(p)
24454 return (void *) (p == NULL);
24458 int main(argc, argv)
24463 /* pthread test function */
24464 #ifndef PTHREAD_CREATE_DETACHED
24465 #define PTHREAD_CREATE_DETACHED 1
24469 int detach = PTHREAD_CREATE_DETACHED;
24471 #if HAVE_PTHREADS > 4
24472 /* Final pthreads */
24473 pthread_attr_t attr;
24475 status = pthread_attr_init(&attr);
24476 if( status ) return status;
24478 #if HAVE_PTHREADS < 7
24479 status = pthread_attr_setdetachstate(&attr, &detach);
24480 if( status < 0 ) status = errno;
24482 status = pthread_attr_setdetachstate(&attr, detach);
24484 if( status ) return status;
24485 status = pthread_create( &t, &attr, task, NULL );
24486 #if HAVE_PTHREADS < 7
24487 if( status < 0 ) status = errno;
24489 if( status ) return status;
24491 /* Draft 4 pthreads */
24492 status = pthread_create( &t, pthread_attr_default, task, NULL );
24493 if( status ) return errno;
24495 /* give thread a chance to complete */
24496 /* it should remain joinable and hence detachable */
24499 status = pthread_detach( &t );
24500 if( status ) return errno;
24503 #ifdef HAVE_LINUX_THREADS
24504 pthread_kill_other_threads_np();
24512 rm -f conftest$ac_exeext
24513 if { (ac_try="$ac_link"
24514 case "(($ac_try" in
24515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24516 *) ac_try_echo=$ac_try;;
24518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24519 (eval "$ac_link") 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24523 { (case "(($ac_try" in
24524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525 *) ac_try_echo=$ac_try;;
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528 (eval "$ac_try") 2>&5
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; }; then
24532 ol_cv_pthread_lib_lpthreads=yes
24534 echo "$as_me: program exited with status $ac_status" >&5
24535 echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24538 ( exit $ac_status )
24539 ol_cv_pthread_lib_lpthreads=no
24541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24550 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24551 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24553 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24554 ol_link_pthreads="-lpthreads"
24555 ol_link_threads=posix
24560 if test $ol_link_threads != no ; then
24561 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24563 save_CPPFLAGS="$CPPFLAGS"
24565 LIBS="$LTHREAD_LIBS $LIBS"
24570 for ac_func in sched_yield pthread_yield thr_yield
24572 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24573 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24574 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24575 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24578 cat >conftest.$ac_ext <<_ACEOF
24581 cat confdefs.h >>conftest.$ac_ext
24582 cat >>conftest.$ac_ext <<_ACEOF
24583 /* end confdefs.h. */
24584 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24586 #define $ac_func innocuous_$ac_func
24588 /* System header to define __stub macros and hopefully few prototypes,
24589 which can conflict with char $ac_func (); below.
24590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24591 <limits.h> exists even on freestanding compilers. */
24594 # include <limits.h>
24596 # include <assert.h>
24601 /* Override any GCC internal prototype to avoid an error.
24602 Use char because int might match the return type of a GCC
24603 builtin and then its argument prototype would still apply. */
24608 /* The GNU C library defines this for functions which it implements
24609 to always fail with ENOSYS. Some functions are actually named
24610 something starting with __ and the normal name is an alias. */
24611 #if defined __stub_$ac_func || defined __stub___$ac_func
24618 return $ac_func ();
24623 rm -f conftest.$ac_objext conftest$ac_exeext
24624 if { (ac_try="$ac_link"
24625 case "(($ac_try" in
24626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24627 *) ac_try_echo=$ac_try;;
24629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24630 (eval "$ac_link") 2>conftest.er1
24632 grep -v '^ *+' conftest.er1 >conftest.err
24634 cat conftest.err >&5
24635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); } && {
24637 test -z "$ac_c_werror_flag" ||
24638 test ! -s conftest.err
24639 } && test -s conftest$ac_exeext &&
24640 $as_test_x conftest$ac_exeext; then
24641 eval "$as_ac_var=yes"
24643 echo "$as_me: failed program was:" >&5
24644 sed 's/^/| /' conftest.$ac_ext >&5
24646 eval "$as_ac_var=no"
24649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24650 conftest$ac_exeext conftest.$ac_ext
24652 ac_res=`eval echo '${'$as_ac_var'}'`
24653 { echo "$as_me:$LINENO: result: $ac_res" >&5
24654 echo "${ECHO_T}$ac_res" >&6; }
24655 if test `eval echo '${'$as_ac_var'}'` = yes; then
24656 cat >>confdefs.h <<_ACEOF
24657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24664 if test $ac_cv_func_sched_yield = no &&
24665 test $ac_cv_func_pthread_yield = no &&
24666 test $ac_cv_func_thr_yield = no ; then
24667 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24668 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24669 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24670 echo $ECHO_N "(cached) $ECHO_C" >&6
24672 ac_check_lib_save_LIBS=$LIBS
24674 cat >conftest.$ac_ext <<_ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h. */
24681 /* Override any GCC internal prototype to avoid an error.
24682 Use char because int might match the return type of a GCC
24683 builtin and then its argument prototype would still apply. */
24687 char sched_yield ();
24691 return sched_yield ();
24696 rm -f conftest.$ac_objext conftest$ac_exeext
24697 if { (ac_try="$ac_link"
24698 case "(($ac_try" in
24699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24700 *) ac_try_echo=$ac_try;;
24702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24703 (eval "$ac_link") 2>conftest.er1
24705 grep -v '^ *+' conftest.er1 >conftest.err
24707 cat conftest.err >&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } && {
24710 test -z "$ac_c_werror_flag" ||
24711 test ! -s conftest.err
24712 } && test -s conftest$ac_exeext &&
24713 $as_test_x conftest$ac_exeext; then
24714 ac_cv_lib_rt_sched_yield=yes
24716 echo "$as_me: failed program was:" >&5
24717 sed 's/^/| /' conftest.$ac_ext >&5
24719 ac_cv_lib_rt_sched_yield=no
24722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24723 conftest$ac_exeext conftest.$ac_ext
24724 LIBS=$ac_check_lib_save_LIBS
24726 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24727 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24728 if test $ac_cv_lib_rt_sched_yield = yes; then
24729 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_SCHED_YIELD 1
24735 ac_cv_func_sched_yield=yes
24737 ac_cv_func_sched_yield=no
24741 if test $ac_cv_func_sched_yield = no &&
24742 test $ac_cv_func_pthread_yield = no &&
24743 test "$ac_cv_func_thr_yield" = no ; then
24744 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24745 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24749 for ac_func in pthread_kill
24751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24765 #define $ac_func innocuous_$ac_func
24767 /* System header to define __stub macros and hopefully few prototypes,
24768 which can conflict with char $ac_func (); below.
24769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24770 <limits.h> exists even on freestanding compilers. */
24773 # include <limits.h>
24775 # include <assert.h>
24780 /* Override any GCC internal prototype to avoid an error.
24781 Use char because int might match the return type of a GCC
24782 builtin and then its argument prototype would still apply. */
24787 /* The GNU C library defines this for functions which it implements
24788 to always fail with ENOSYS. Some functions are actually named
24789 something starting with __ and the normal name is an alias. */
24790 #if defined __stub_$ac_func || defined __stub___$ac_func
24797 return $ac_func ();
24802 rm -f conftest.$ac_objext conftest$ac_exeext
24803 if { (ac_try="$ac_link"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_link") 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest$ac_exeext &&
24819 $as_test_x conftest$ac_exeext; then
24820 eval "$as_ac_var=yes"
24822 echo "$as_me: failed program was:" >&5
24823 sed 's/^/| /' conftest.$ac_ext >&5
24825 eval "$as_ac_var=no"
24828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24829 conftest$ac_exeext conftest.$ac_ext
24831 ac_res=`eval echo '${'$as_ac_var'}'`
24832 { echo "$as_me:$LINENO: result: $ac_res" >&5
24833 echo "${ECHO_T}$ac_res" >&6; }
24834 if test `eval echo '${'$as_ac_var'}'` = yes; then
24835 cat >>confdefs.h <<_ACEOF
24836 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24843 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24844 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24845 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24849 cat >conftest.$ac_ext <<_ACEOF
24852 cat confdefs.h >>conftest.$ac_ext
24853 cat >>conftest.$ac_ext <<_ACEOF
24854 /* end confdefs.h. */
24856 #include <pthread.h>
24857 pthread_rwlock_t rwlock;
24862 pthread_rwlock_destroy(&rwlock);
24867 rm -f conftest.$ac_objext conftest$ac_exeext
24868 if { (ac_try="$ac_link"
24869 case "(($ac_try" in
24870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871 *) ac_try_echo=$ac_try;;
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 test -z "$ac_c_werror_flag" ||
24882 test ! -s conftest.err
24883 } && test -s conftest$ac_exeext &&
24884 $as_test_x conftest$ac_exeext; then
24885 ol_cv_func_pthread_rwlock_destroy=yes
24887 echo "$as_me: failed program was:" >&5
24888 sed 's/^/| /' conftest.$ac_ext >&5
24890 ol_cv_func_pthread_rwlock_destroy=no
24893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24894 conftest$ac_exeext conftest.$ac_ext
24897 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24898 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24899 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24901 cat >>confdefs.h <<\_ACEOF
24902 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24907 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24908 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24909 if test "${ol_cv_func_pthread_detach+set}" = set; then
24910 echo $ECHO_N "(cached) $ECHO_C" >&6
24913 cat >conftest.$ac_ext <<_ACEOF
24916 cat confdefs.h >>conftest.$ac_ext
24917 cat >>conftest.$ac_ext <<_ACEOF
24918 /* end confdefs.h. */
24920 #include <pthread.h>
24922 #define NULL (void*)0
24928 pthread_detach(NULL);
24933 rm -f conftest.$ac_objext conftest$ac_exeext
24934 if { (ac_try="$ac_link"
24935 case "(($ac_try" in
24936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24937 *) ac_try_echo=$ac_try;;
24939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24940 (eval "$ac_link") 2>conftest.er1
24942 grep -v '^ *+' conftest.er1 >conftest.err
24944 cat conftest.err >&5
24945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } && {
24947 test -z "$ac_c_werror_flag" ||
24948 test ! -s conftest.err
24949 } && test -s conftest$ac_exeext &&
24950 $as_test_x conftest$ac_exeext; then
24951 ol_cv_func_pthread_detach=yes
24953 echo "$as_me: failed program was:" >&5
24954 sed 's/^/| /' conftest.$ac_ext >&5
24956 ol_cv_func_pthread_detach=no
24959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24960 conftest$ac_exeext conftest.$ac_ext
24963 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24964 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24966 if test $ol_cv_func_pthread_detach = no ; then
24967 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24968 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24969 { (exit 1); exit 1; }; }
24973 cat >>confdefs.h <<\_ACEOF
24974 #define HAVE_PTHREAD_DETACH 1
24983 pthread_setconcurrency \
24984 pthread_getconcurrency \
24985 thr_setconcurrency \
24986 thr_getconcurrency \
24989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24995 cat >conftest.$ac_ext <<_ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25003 #define $ac_func innocuous_$ac_func
25005 /* System header to define __stub macros and hopefully few prototypes,
25006 which can conflict with char $ac_func (); below.
25007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25008 <limits.h> exists even on freestanding compilers. */
25011 # include <limits.h>
25013 # include <assert.h>
25018 /* Override any GCC internal prototype to avoid an error.
25019 Use char because int might match the return type of a GCC
25020 builtin and then its argument prototype would still apply. */
25025 /* The GNU C library defines this for functions which it implements
25026 to always fail with ENOSYS. Some functions are actually named
25027 something starting with __ and the normal name is an alias. */
25028 #if defined __stub_$ac_func || defined __stub___$ac_func
25035 return $ac_func ();
25040 rm -f conftest.$ac_objext conftest$ac_exeext
25041 if { (ac_try="$ac_link"
25042 case "(($ac_try" in
25043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25044 *) ac_try_echo=$ac_try;;
25046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25047 (eval "$ac_link") 2>conftest.er1
25049 grep -v '^ *+' conftest.er1 >conftest.err
25051 cat conftest.err >&5
25052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053 (exit $ac_status); } && {
25054 test -z "$ac_c_werror_flag" ||
25055 test ! -s conftest.err
25056 } && test -s conftest$ac_exeext &&
25057 $as_test_x conftest$ac_exeext; then
25058 eval "$as_ac_var=yes"
25060 echo "$as_me: failed program was:" >&5
25061 sed 's/^/| /' conftest.$ac_ext >&5
25063 eval "$as_ac_var=no"
25066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25067 conftest$ac_exeext conftest.$ac_ext
25069 ac_res=`eval echo '${'$as_ac_var'}'`
25070 { echo "$as_me:$LINENO: result: $ac_res" >&5
25071 echo "${ECHO_T}$ac_res" >&6; }
25072 if test `eval echo '${'$as_ac_var'}'` = yes; then
25073 cat >>confdefs.h <<_ACEOF
25074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25083 for ac_func in pthread_kill_other_threads_np
25085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25089 echo $ECHO_N "(cached) $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25099 #define $ac_func innocuous_$ac_func
25101 /* System header to define __stub macros and hopefully few prototypes,
25102 which can conflict with char $ac_func (); below.
25103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25104 <limits.h> exists even on freestanding compilers. */
25107 # include <limits.h>
25109 # include <assert.h>
25114 /* Override any GCC internal prototype to avoid an error.
25115 Use char because int might match the return type of a GCC
25116 builtin and then its argument prototype would still apply. */
25121 /* The GNU C library defines this for functions which it implements
25122 to always fail with ENOSYS. Some functions are actually named
25123 something starting with __ and the normal name is an alias. */
25124 #if defined __stub_$ac_func || defined __stub___$ac_func
25131 return $ac_func ();
25136 rm -f conftest.$ac_objext conftest$ac_exeext
25137 if { (ac_try="$ac_link"
25138 case "(($ac_try" in
25139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25140 *) ac_try_echo=$ac_try;;
25142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25143 (eval "$ac_link") 2>conftest.er1
25145 grep -v '^ *+' conftest.er1 >conftest.err
25147 cat conftest.err >&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } && {
25150 test -z "$ac_c_werror_flag" ||
25151 test ! -s conftest.err
25152 } && test -s conftest$ac_exeext &&
25153 $as_test_x conftest$ac_exeext; then
25154 eval "$as_ac_var=yes"
25156 echo "$as_me: failed program was:" >&5
25157 sed 's/^/| /' conftest.$ac_ext >&5
25159 eval "$as_ac_var=no"
25162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25163 conftest$ac_exeext conftest.$ac_ext
25165 ac_res=`eval echo '${'$as_ac_var'}'`
25166 { echo "$as_me:$LINENO: result: $ac_res" >&5
25167 echo "${ECHO_T}$ac_res" >&6; }
25168 if test `eval echo '${'$as_ac_var'}'` = yes; then
25169 cat >>confdefs.h <<_ACEOF
25170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25176 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25177 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25178 if test "${ol_cv_sys_linux_threads+set}" = set; then
25179 echo $ECHO_N "(cached) $ECHO_C" >&6
25181 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25183 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25184 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25189 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25190 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25191 if test "${ol_cv_linux_threads+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25195 if test $ol_cv_header_linux_threads = yes &&
25196 test $ol_cv_sys_linux_threads = yes; then
25197 ol_cv_linux_threads=yes
25198 elif test $ol_cv_header_linux_threads = no &&
25199 test $ol_cv_sys_linux_threads = no; then
25200 ol_cv_linux_threads=no
25202 ol_cv_linux_threads=error
25206 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25207 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25210 if test $ol_cv_linux_threads = error; then
25211 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25212 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25213 { (exit 1); exit 1; }; };
25216 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25217 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25218 if test "${ol_cv_pthread_create_works+set}" = set; then
25219 echo $ECHO_N "(cached) $ECHO_C" >&6
25222 if test "$cross_compiling" = yes; then
25223 ol_cv_pthread_create_works=yes
25225 cat >conftest.$ac_ext <<_ACEOF
25228 cat confdefs.h >>conftest.$ac_ext
25229 cat >>conftest.$ac_ext <<_ACEOF
25230 /* end confdefs.h. */
25232 /* pthread test headers */
25233 #include <pthread.h>
25234 #if HAVE_PTHREADS < 7
25238 #define NULL (void*)0
25241 static void *task(p)
25244 return (void *) (p == NULL);
25248 int main(argc, argv)
25253 /* pthread test function */
25254 #ifndef PTHREAD_CREATE_DETACHED
25255 #define PTHREAD_CREATE_DETACHED 1
25259 int detach = PTHREAD_CREATE_DETACHED;
25261 #if HAVE_PTHREADS > 4
25262 /* Final pthreads */
25263 pthread_attr_t attr;
25265 status = pthread_attr_init(&attr);
25266 if( status ) return status;
25268 #if HAVE_PTHREADS < 7
25269 status = pthread_attr_setdetachstate(&attr, &detach);
25270 if( status < 0 ) status = errno;
25272 status = pthread_attr_setdetachstate(&attr, detach);
25274 if( status ) return status;
25275 status = pthread_create( &t, &attr, task, NULL );
25276 #if HAVE_PTHREADS < 7
25277 if( status < 0 ) status = errno;
25279 if( status ) return status;
25281 /* Draft 4 pthreads */
25282 status = pthread_create( &t, pthread_attr_default, task, NULL );
25283 if( status ) return errno;
25285 /* give thread a chance to complete */
25286 /* it should remain joinable and hence detachable */
25289 status = pthread_detach( &t );
25290 if( status ) return errno;
25293 #ifdef HAVE_LINUX_THREADS
25294 pthread_kill_other_threads_np();
25302 rm -f conftest$ac_exeext
25303 if { (ac_try="$ac_link"
25304 case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_link") 2>&5
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25313 { (case "(($ac_try" in
25314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315 *) ac_try_echo=$ac_try;;
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318 (eval "$ac_try") 2>&5
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; }; then
25322 ol_cv_pthread_create_works=yes
25324 echo "$as_me: program exited with status $ac_status" >&5
25325 echo "$as_me: failed program was:" >&5
25326 sed 's/^/| /' conftest.$ac_ext >&5
25328 ( exit $ac_status )
25329 ol_cv_pthread_create_works=no
25331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25336 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25337 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25339 if test $ol_cv_pthread_create_works = no ; then
25340 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25341 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25342 { (exit 1); exit 1; }; }
25345 ol_replace_broken_yield=no
25347 if test $ol_replace_broken_yield = yes ; then
25349 cat >>confdefs.h <<\_ACEOF
25350 #define REPLACE_BROKEN_YIELD 1
25355 if test $ol_with_yielding_select = auto ; then
25356 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25357 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25358 if test "${ol_cv_pthread_select_yields+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
25362 if test "$cross_compiling" = yes; then
25363 ol_cv_pthread_select_yields=cross
25365 cat >conftest.$ac_ext <<_ACEOF
25368 cat confdefs.h >>conftest.$ac_ext
25369 cat >>conftest.$ac_ext <<_ACEOF
25370 /* end confdefs.h. */
25372 #include <sys/types.h>
25373 #include <sys/time.h>
25374 #include <unistd.h>
25375 #include <pthread.h>
25377 #define NULL (void*) 0
25380 static int fildes[2];
25382 static void *task(p)
25394 FD_SET(fildes[0], &rfds);
25396 /* we're not interested in any fds */
25397 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25404 exit(0); /* if we exit here, the select blocked the whole process */
25407 int main(argc, argv)
25413 /* create a pipe to select */
25414 if(pipe(&fildes[0])) {
25419 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25420 (void) pthread_setconcurrency(2);
25422 #ifdef HAVE_THR_SETCONCURRENCY
25423 /* Set Solaris LWP concurrency to 2 */
25424 thr_setconcurrency(2);
25428 #if HAVE_PTHREADS < 6
25429 pthread_create(&t, pthread_attr_default, task, NULL);
25431 pthread_create(&t, NULL, task, NULL);
25434 /* make sure task runs first */
25435 #ifdef HAVE_THR_YIELD
25437 #elif defined( HAVE_SCHED_YIELD )
25439 #elif defined( HAVE_PTHREAD_YIELD )
25446 rm -f conftest$ac_exeext
25447 if { (ac_try="$ac_link"
25448 case "(($ac_try" in
25449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25450 *) ac_try_echo=$ac_try;;
25452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25453 (eval "$ac_link") 2>&5
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25457 { (case "(($ac_try" in
25458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25459 *) ac_try_echo=$ac_try;;
25461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25462 (eval "$ac_try") 2>&5
25464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); }; }; then
25466 ol_cv_pthread_select_yields=no
25468 echo "$as_me: program exited with status $ac_status" >&5
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25472 ( exit $ac_status )
25473 ol_cv_pthread_select_yields=yes
25475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25480 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25481 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25483 if test $ol_cv_pthread_select_yields = cross ; then
25484 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25485 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25486 { (exit 1); exit 1; }; }
25489 if test $ol_cv_pthread_select_yields = yes ; then
25490 ol_with_yielding_select=yes
25494 CPPFLAGS="$save_CPPFLAGS"
25497 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25498 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25499 { (exit 1); exit 1; }; }
25503 if test $ol_with_threads = posix ; then
25504 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25505 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25506 { (exit 1); exit 1; }; }
25511 case $ol_with_threads in auto | yes | mach)
25515 for ac_header in mach/cthreads.h cthreads.h
25517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25524 ac_res=`eval echo '${'$as_ac_Header'}'`
25525 { echo "$as_me:$LINENO: result: $ac_res" >&5
25526 echo "${ECHO_T}$ac_res" >&6; }
25528 # Is the header compilable?
25529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25531 cat >conftest.$ac_ext <<_ACEOF
25534 cat confdefs.h >>conftest.$ac_ext
25535 cat >>conftest.$ac_ext <<_ACEOF
25536 /* end confdefs.h. */
25537 $ac_includes_default
25538 #include <$ac_header>
25540 rm -f conftest.$ac_objext
25541 if { (ac_try="$ac_compile"
25542 case "(($ac_try" in
25543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544 *) ac_try_echo=$ac_try;;
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547 (eval "$ac_compile") 2>conftest.er1
25549 grep -v '^ *+' conftest.er1 >conftest.err
25551 cat conftest.err >&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && {
25554 test -z "$ac_c_werror_flag" ||
25555 test ! -s conftest.err
25556 } && test -s conftest.$ac_objext; then
25557 ac_header_compiler=yes
25559 echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25562 ac_header_compiler=no
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25567 echo "${ECHO_T}$ac_header_compiler" >&6; }
25569 # Is the header present?
25570 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25571 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25572 cat >conftest.$ac_ext <<_ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 #include <$ac_header>
25580 if { (ac_try="$ac_cpp conftest.$ac_ext"
25581 case "(($ac_try" in
25582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25583 *) ac_try_echo=$ac_try;;
25585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25588 grep -v '^ *+' conftest.er1 >conftest.err
25590 cat conftest.err >&5
25591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592 (exit $ac_status); } >/dev/null && {
25593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25594 test ! -s conftest.err
25596 ac_header_preproc=yes
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25601 ac_header_preproc=no
25604 rm -f conftest.err conftest.$ac_ext
25605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25606 echo "${ECHO_T}$ac_header_preproc" >&6; }
25608 # So? What about this header?
25609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25612 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25614 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25615 ac_header_preproc=yes
25618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25619 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25621 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25623 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25625 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25627 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25629 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25631 ## --------------------------------------------- ##
25632 ## Report this to <http://www.openldap.org/its/> ##
25633 ## --------------------------------------------- ##
25635 ) | sed "s/^/$as_me: WARNING: /" >&2
25638 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25641 echo $ECHO_N "(cached) $ECHO_C" >&6
25643 eval "$as_ac_Header=\$ac_header_preproc"
25645 ac_res=`eval echo '${'$as_ac_Header'}'`
25646 { echo "$as_me:$LINENO: result: $ac_res" >&5
25647 echo "${ECHO_T}$ac_res" >&6; }
25650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25651 cat >>confdefs.h <<_ACEOF
25652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25659 if test $ac_cv_header_mach_cthreads_h = yes ; then
25660 ol_with_threads=found
25662 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25663 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25664 if test "${ac_cv_func_cthread_fork+set}" = set; then
25665 echo $ECHO_N "(cached) $ECHO_C" >&6
25667 cat >conftest.$ac_ext <<_ACEOF
25670 cat confdefs.h >>conftest.$ac_ext
25671 cat >>conftest.$ac_ext <<_ACEOF
25672 /* end confdefs.h. */
25673 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25675 #define cthread_fork innocuous_cthread_fork
25677 /* System header to define __stub macros and hopefully few prototypes,
25678 which can conflict with char cthread_fork (); below.
25679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25680 <limits.h> exists even on freestanding compilers. */
25683 # include <limits.h>
25685 # include <assert.h>
25688 #undef cthread_fork
25690 /* Override any GCC internal prototype to avoid an error.
25691 Use char because int might match the return type of a GCC
25692 builtin and then its argument prototype would still apply. */
25696 char cthread_fork ();
25697 /* The GNU C library defines this for functions which it implements
25698 to always fail with ENOSYS. Some functions are actually named
25699 something starting with __ and the normal name is an alias. */
25700 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25707 return cthread_fork ();
25712 rm -f conftest.$ac_objext conftest$ac_exeext
25713 if { (ac_try="$ac_link"
25714 case "(($ac_try" in
25715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716 *) ac_try_echo=$ac_try;;
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719 (eval "$ac_link") 2>conftest.er1
25721 grep -v '^ *+' conftest.er1 >conftest.err
25723 cat conftest.err >&5
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); } && {
25726 test -z "$ac_c_werror_flag" ||
25727 test ! -s conftest.err
25728 } && test -s conftest$ac_exeext &&
25729 $as_test_x conftest$ac_exeext; then
25730 ac_cv_func_cthread_fork=yes
25732 echo "$as_me: failed program was:" >&5
25733 sed 's/^/| /' conftest.$ac_ext >&5
25735 ac_cv_func_cthread_fork=no
25738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25739 conftest$ac_exeext conftest.$ac_ext
25741 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25742 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25743 if test $ac_cv_func_cthread_fork = yes; then
25744 ol_link_threads=yes
25748 if test $ol_link_threads = no ; then
25749 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25750 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25751 if test "${ol_cv_cthread_all_load+set}" = set; then
25752 echo $ECHO_N "(cached) $ECHO_C" >&6
25756 LIBS="-all_load $LIBS"
25757 cat >conftest.$ac_ext <<_ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h. */
25763 #include <mach/cthreads.h>
25768 cthread_fork((void *)0, (void *)0);
25774 rm -f conftest.$ac_objext conftest$ac_exeext
25775 if { (ac_try="$ac_link"
25776 case "(($ac_try" in
25777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25778 *) ac_try_echo=$ac_try;;
25780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25781 (eval "$ac_link") 2>conftest.er1
25783 grep -v '^ *+' conftest.er1 >conftest.err
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } && {
25788 test -z "$ac_c_werror_flag" ||
25789 test ! -s conftest.err
25790 } && test -s conftest$ac_exeext &&
25791 $as_test_x conftest$ac_exeext; then
25792 ol_cv_cthread_all_load=yes
25794 echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25797 ol_cv_cthread_all_load=no
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801 conftest$ac_exeext conftest.$ac_ext
25805 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25806 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25808 if test $ol_cv_cthread_all_load = yes ; then
25809 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25810 ol_link_threads=mach
25811 ol_with_threads=found
25815 elif test $ac_cv_header_cthreads_h = yes ; then
25817 ol_with_threads=found
25820 LIBS="$LIBS -lthreads"
25821 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25822 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25823 if test "${ac_cv_func_cthread_fork+set}" = set; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25834 #define cthread_fork innocuous_cthread_fork
25836 /* System header to define __stub macros and hopefully few prototypes,
25837 which can conflict with char cthread_fork (); below.
25838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25839 <limits.h> exists even on freestanding compilers. */
25842 # include <limits.h>
25844 # include <assert.h>
25847 #undef cthread_fork
25849 /* Override any GCC internal prototype to avoid an error.
25850 Use char because int might match the return type of a GCC
25851 builtin and then its argument prototype would still apply. */
25855 char cthread_fork ();
25856 /* The GNU C library defines this for functions which it implements
25857 to always fail with ENOSYS. Some functions are actually named
25858 something starting with __ and the normal name is an alias. */
25859 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25866 return cthread_fork ();
25871 rm -f conftest.$ac_objext conftest$ac_exeext
25872 if { (ac_try="$ac_link"
25873 case "(($ac_try" in
25874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875 *) ac_try_echo=$ac_try;;
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878 (eval "$ac_link") 2>conftest.er1
25880 grep -v '^ *+' conftest.er1 >conftest.err
25882 cat conftest.err >&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } && {
25885 test -z "$ac_c_werror_flag" ||
25886 test ! -s conftest.err
25887 } && test -s conftest$ac_exeext &&
25888 $as_test_x conftest$ac_exeext; then
25889 ac_cv_func_cthread_fork=yes
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 ac_cv_func_cthread_fork=no
25897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25898 conftest$ac_exeext conftest.$ac_ext
25900 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25901 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25902 if test $ac_cv_func_cthread_fork = yes; then
25903 ol_link_threads=yes
25908 if test $ol_link_threads = yes ; then
25909 LTHREAD_LIBS="-lthreads"
25910 ol_link_threads=mach
25911 ol_with_threads=found
25913 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25914 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25915 { (exit 1); exit 1; }; }
25918 elif test $ol_with_threads = mach ; then
25919 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25920 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25921 { (exit 1); exit 1; }; }
25924 if test $ol_link_threads = mach ; then
25926 cat >>confdefs.h <<\_ACEOF
25927 #define HAVE_MACH_CTHREADS 1
25930 elif test $ol_with_threads = found ; then
25931 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25932 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25933 { (exit 1); exit 1; }; }
25938 case $ol_with_threads in auto | yes | pth)
25941 for ac_header in pth.h
25943 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25945 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25946 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25948 echo $ECHO_N "(cached) $ECHO_C" >&6
25950 ac_res=`eval echo '${'$as_ac_Header'}'`
25951 { echo "$as_me:$LINENO: result: $ac_res" >&5
25952 echo "${ECHO_T}$ac_res" >&6; }
25954 # Is the header compilable?
25955 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25956 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25957 cat >conftest.$ac_ext <<_ACEOF
25960 cat confdefs.h >>conftest.$ac_ext
25961 cat >>conftest.$ac_ext <<_ACEOF
25962 /* end confdefs.h. */
25963 $ac_includes_default
25964 #include <$ac_header>
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970 *) ac_try_echo=$ac_try;;
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973 (eval "$ac_compile") 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } && {
25980 test -z "$ac_c_werror_flag" ||
25981 test ! -s conftest.err
25982 } && test -s conftest.$ac_objext; then
25983 ac_header_compiler=yes
25985 echo "$as_me: failed program was:" >&5
25986 sed 's/^/| /' conftest.$ac_ext >&5
25988 ac_header_compiler=no
25991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25993 echo "${ECHO_T}$ac_header_compiler" >&6; }
25995 # Is the header present?
25996 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25998 cat >conftest.$ac_ext <<_ACEOF
26001 cat confdefs.h >>conftest.$ac_ext
26002 cat >>conftest.$ac_ext <<_ACEOF
26003 /* end confdefs.h. */
26004 #include <$ac_header>
26006 if { (ac_try="$ac_cpp conftest.$ac_ext"
26007 case "(($ac_try" in
26008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26009 *) ac_try_echo=$ac_try;;
26011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26014 grep -v '^ *+' conftest.er1 >conftest.err
26016 cat conftest.err >&5
26017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26018 (exit $ac_status); } >/dev/null && {
26019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26020 test ! -s conftest.err
26022 ac_header_preproc=yes
26024 echo "$as_me: failed program was:" >&5
26025 sed 's/^/| /' conftest.$ac_ext >&5
26027 ac_header_preproc=no
26030 rm -f conftest.err conftest.$ac_ext
26031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26032 echo "${ECHO_T}$ac_header_preproc" >&6; }
26034 # So? What about this header?
26035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26041 ac_header_preproc=yes
26044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26057 ## --------------------------------------------- ##
26058 ## Report this to <http://www.openldap.org/its/> ##
26059 ## --------------------------------------------- ##
26061 ) | sed "s/^/$as_me: WARNING: /" >&2
26064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26067 echo $ECHO_N "(cached) $ECHO_C" >&6
26069 eval "$as_ac_Header=\$ac_header_preproc"
26071 ac_res=`eval echo '${'$as_ac_Header'}'`
26072 { echo "$as_me:$LINENO: result: $ac_res" >&5
26073 echo "${ECHO_T}$ac_res" >&6; }
26076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26077 cat >>confdefs.h <<_ACEOF
26078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26086 if test $ac_cv_header_pth_h = yes ; then
26087 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26088 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26089 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26090 echo $ECHO_N "(cached) $ECHO_C" >&6
26092 ac_check_lib_save_LIBS=$LIBS
26094 cat >conftest.$ac_ext <<_ACEOF
26097 cat confdefs.h >>conftest.$ac_ext
26098 cat >>conftest.$ac_ext <<_ACEOF
26099 /* end confdefs.h. */
26101 /* Override any GCC internal prototype to avoid an error.
26102 Use char because int might match the return type of a GCC
26103 builtin and then its argument prototype would still apply. */
26107 char pth_version ();
26111 return pth_version ();
26116 rm -f conftest.$ac_objext conftest$ac_exeext
26117 if { (ac_try="$ac_link"
26118 case "(($ac_try" in
26119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120 *) ac_try_echo=$ac_try;;
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123 (eval "$ac_link") 2>conftest.er1
26125 grep -v '^ *+' conftest.er1 >conftest.err
26127 cat conftest.err >&5
26128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129 (exit $ac_status); } && {
26130 test -z "$ac_c_werror_flag" ||
26131 test ! -s conftest.err
26132 } && test -s conftest$ac_exeext &&
26133 $as_test_x conftest$ac_exeext; then
26134 ac_cv_lib_pth_pth_version=yes
26136 echo "$as_me: failed program was:" >&5
26137 sed 's/^/| /' conftest.$ac_ext >&5
26139 ac_cv_lib_pth_pth_version=no
26142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26143 conftest$ac_exeext conftest.$ac_ext
26144 LIBS=$ac_check_lib_save_LIBS
26146 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26147 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26148 if test $ac_cv_lib_pth_pth_version = yes; then
26155 if test $have_pth = yes ; then
26157 cat >>confdefs.h <<\_ACEOF
26158 #define HAVE_GNU_PTH 1
26161 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26162 ol_link_threads=pth
26163 ol_with_threads=found
26165 if test $ol_with_yielding_select = auto ; then
26166 ol_with_yielding_select=yes
26173 case $ol_with_threads in auto | yes | lwp)
26177 for ac_header in thread.h synch.h
26179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26184 echo $ECHO_N "(cached) $ECHO_C" >&6
26186 ac_res=`eval echo '${'$as_ac_Header'}'`
26187 { echo "$as_me:$LINENO: result: $ac_res" >&5
26188 echo "${ECHO_T}$ac_res" >&6; }
26190 # Is the header compilable?
26191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26193 cat >conftest.$ac_ext <<_ACEOF
26196 cat confdefs.h >>conftest.$ac_ext
26197 cat >>conftest.$ac_ext <<_ACEOF
26198 /* end confdefs.h. */
26199 $ac_includes_default
26200 #include <$ac_header>
26202 rm -f conftest.$ac_objext
26203 if { (ac_try="$ac_compile"
26204 case "(($ac_try" in
26205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206 *) ac_try_echo=$ac_try;;
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209 (eval "$ac_compile") 2>conftest.er1
26211 grep -v '^ *+' conftest.er1 >conftest.err
26213 cat conftest.err >&5
26214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } && {
26216 test -z "$ac_c_werror_flag" ||
26217 test ! -s conftest.err
26218 } && test -s conftest.$ac_objext; then
26219 ac_header_compiler=yes
26221 echo "$as_me: failed program was:" >&5
26222 sed 's/^/| /' conftest.$ac_ext >&5
26224 ac_header_compiler=no
26227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26229 echo "${ECHO_T}$ac_header_compiler" >&6; }
26231 # Is the header present?
26232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26234 cat >conftest.$ac_ext <<_ACEOF
26237 cat confdefs.h >>conftest.$ac_ext
26238 cat >>conftest.$ac_ext <<_ACEOF
26239 /* end confdefs.h. */
26240 #include <$ac_header>
26242 if { (ac_try="$ac_cpp conftest.$ac_ext"
26243 case "(($ac_try" in
26244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26245 *) ac_try_echo=$ac_try;;
26247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26250 grep -v '^ *+' conftest.er1 >conftest.err
26252 cat conftest.err >&5
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); } >/dev/null && {
26255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26256 test ! -s conftest.err
26258 ac_header_preproc=yes
26260 echo "$as_me: failed program was:" >&5
26261 sed 's/^/| /' conftest.$ac_ext >&5
26263 ac_header_preproc=no
26266 rm -f conftest.err conftest.$ac_ext
26267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26268 echo "${ECHO_T}$ac_header_preproc" >&6; }
26270 # So? What about this header?
26271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26277 ac_header_preproc=yes
26280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26293 ## --------------------------------------------- ##
26294 ## Report this to <http://www.openldap.org/its/> ##
26295 ## --------------------------------------------- ##
26297 ) | sed "s/^/$as_me: WARNING: /" >&2
26300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26303 echo $ECHO_N "(cached) $ECHO_C" >&6
26305 eval "$as_ac_Header=\$ac_header_preproc"
26307 ac_res=`eval echo '${'$as_ac_Header'}'`
26308 { echo "$as_me:$LINENO: result: $ac_res" >&5
26309 echo "${ECHO_T}$ac_res" >&6; }
26312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26313 cat >>confdefs.h <<_ACEOF
26314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26321 if test $ac_cv_header_thread_h = yes &&
26322 test $ac_cv_header_synch_h = yes ; then
26323 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26324 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26325 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26326 echo $ECHO_N "(cached) $ECHO_C" >&6
26328 ac_check_lib_save_LIBS=$LIBS
26329 LIBS="-lthread $LIBS"
26330 cat >conftest.$ac_ext <<_ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26337 /* Override any GCC internal prototype to avoid an error.
26338 Use char because int might match the return type of a GCC
26339 builtin and then its argument prototype would still apply. */
26343 char thr_create ();
26347 return thr_create ();
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (ac_try="$ac_link"
26354 case "(($ac_try" in
26355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356 *) ac_try_echo=$ac_try;;
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359 (eval "$ac_link") 2>conftest.er1
26361 grep -v '^ *+' conftest.er1 >conftest.err
26363 cat conftest.err >&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } && {
26366 test -z "$ac_c_werror_flag" ||
26367 test ! -s conftest.err
26368 } && test -s conftest$ac_exeext &&
26369 $as_test_x conftest$ac_exeext; then
26370 ac_cv_lib_thread_thr_create=yes
26372 echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26375 ac_cv_lib_thread_thr_create=no
26378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26379 conftest$ac_exeext conftest.$ac_ext
26380 LIBS=$ac_check_lib_save_LIBS
26382 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26383 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26384 if test $ac_cv_lib_thread_thr_create = yes; then
26391 if test $have_thr = yes ; then
26393 cat >>confdefs.h <<\_ACEOF
26397 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26398 ol_link_threads=thr
26400 if test $ol_with_yielding_select = auto ; then
26401 ol_with_yielding_select=yes
26407 thr_setconcurrency \
26408 thr_getconcurrency \
26411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26412 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26415 echo $ECHO_N "(cached) $ECHO_C" >&6
26417 cat >conftest.$ac_ext <<_ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h. */
26423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26425 #define $ac_func innocuous_$ac_func
26427 /* System header to define __stub macros and hopefully few prototypes,
26428 which can conflict with char $ac_func (); below.
26429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26430 <limits.h> exists even on freestanding compilers. */
26433 # include <limits.h>
26435 # include <assert.h>
26440 /* Override any GCC internal prototype to avoid an error.
26441 Use char because int might match the return type of a GCC
26442 builtin and then its argument prototype would still apply. */
26447 /* The GNU C library defines this for functions which it implements
26448 to always fail with ENOSYS. Some functions are actually named
26449 something starting with __ and the normal name is an alias. */
26450 #if defined __stub_$ac_func || defined __stub___$ac_func
26457 return $ac_func ();
26462 rm -f conftest.$ac_objext conftest$ac_exeext
26463 if { (ac_try="$ac_link"
26464 case "(($ac_try" in
26465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26466 *) ac_try_echo=$ac_try;;
26468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26469 (eval "$ac_link") 2>conftest.er1
26471 grep -v '^ *+' conftest.er1 >conftest.err
26473 cat conftest.err >&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } && {
26476 test -z "$ac_c_werror_flag" ||
26477 test ! -s conftest.err
26478 } && test -s conftest$ac_exeext &&
26479 $as_test_x conftest$ac_exeext; then
26480 eval "$as_ac_var=yes"
26482 echo "$as_me: failed program was:" >&5
26483 sed 's/^/| /' conftest.$ac_ext >&5
26485 eval "$as_ac_var=no"
26488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26489 conftest$ac_exeext conftest.$ac_ext
26491 ac_res=`eval echo '${'$as_ac_var'}'`
26492 { echo "$as_me:$LINENO: result: $ac_res" >&5
26493 echo "${ECHO_T}$ac_res" >&6; }
26494 if test `eval echo '${'$as_ac_var'}'` = yes; then
26495 cat >>confdefs.h <<_ACEOF
26496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26506 for ac_header in lwp/lwp.h
26508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26513 echo $ECHO_N "(cached) $ECHO_C" >&6
26515 ac_res=`eval echo '${'$as_ac_Header'}'`
26516 { echo "$as_me:$LINENO: result: $ac_res" >&5
26517 echo "${ECHO_T}$ac_res" >&6; }
26519 # Is the header compilable?
26520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26522 cat >conftest.$ac_ext <<_ACEOF
26525 cat confdefs.h >>conftest.$ac_ext
26526 cat >>conftest.$ac_ext <<_ACEOF
26527 /* end confdefs.h. */
26528 $ac_includes_default
26529 #include <$ac_header>
26531 rm -f conftest.$ac_objext
26532 if { (ac_try="$ac_compile"
26533 case "(($ac_try" in
26534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26535 *) ac_try_echo=$ac_try;;
26537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26538 (eval "$ac_compile") 2>conftest.er1
26540 grep -v '^ *+' conftest.er1 >conftest.err
26542 cat conftest.err >&5
26543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26544 (exit $ac_status); } && {
26545 test -z "$ac_c_werror_flag" ||
26546 test ! -s conftest.err
26547 } && test -s conftest.$ac_objext; then
26548 ac_header_compiler=yes
26550 echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26553 ac_header_compiler=no
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26558 echo "${ECHO_T}$ac_header_compiler" >&6; }
26560 # Is the header present?
26561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26563 cat >conftest.$ac_ext <<_ACEOF
26566 cat confdefs.h >>conftest.$ac_ext
26567 cat >>conftest.$ac_ext <<_ACEOF
26568 /* end confdefs.h. */
26569 #include <$ac_header>
26571 if { (ac_try="$ac_cpp conftest.$ac_ext"
26572 case "(($ac_try" in
26573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26574 *) ac_try_echo=$ac_try;;
26576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26579 grep -v '^ *+' conftest.er1 >conftest.err
26581 cat conftest.err >&5
26582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583 (exit $ac_status); } >/dev/null && {
26584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26585 test ! -s conftest.err
26587 ac_header_preproc=yes
26589 echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26592 ac_header_preproc=no
26595 rm -f conftest.err conftest.$ac_ext
26596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26597 echo "${ECHO_T}$ac_header_preproc" >&6; }
26599 # So? What about this header?
26600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26606 ac_header_preproc=yes
26609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26622 ## --------------------------------------------- ##
26623 ## Report this to <http://www.openldap.org/its/> ##
26624 ## --------------------------------------------- ##
26626 ) | sed "s/^/$as_me: WARNING: /" >&2
26629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26632 echo $ECHO_N "(cached) $ECHO_C" >&6
26634 eval "$as_ac_Header=\$ac_header_preproc"
26636 ac_res=`eval echo '${'$as_ac_Header'}'`
26637 { echo "$as_me:$LINENO: result: $ac_res" >&5
26638 echo "${ECHO_T}$ac_res" >&6; }
26641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26642 cat >>confdefs.h <<_ACEOF
26643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26650 if test $ac_cv_header_lwp_lwp_h = yes ; then
26651 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26652 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26653 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26656 ac_check_lib_save_LIBS=$LIBS
26658 cat >conftest.$ac_ext <<_ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h. */
26665 /* Override any GCC internal prototype to avoid an error.
26666 Use char because int might match the return type of a GCC
26667 builtin and then its argument prototype would still apply. */
26671 char lwp_create ();
26675 return lwp_create ();
26680 rm -f conftest.$ac_objext conftest$ac_exeext
26681 if { (ac_try="$ac_link"
26682 case "(($ac_try" in
26683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684 *) ac_try_echo=$ac_try;;
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687 (eval "$ac_link") 2>conftest.er1
26689 grep -v '^ *+' conftest.er1 >conftest.err
26691 cat conftest.err >&5
26692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } && {
26694 test -z "$ac_c_werror_flag" ||
26695 test ! -s conftest.err
26696 } && test -s conftest$ac_exeext &&
26697 $as_test_x conftest$ac_exeext; then
26698 ac_cv_lib_lwp_lwp_create=yes
26700 echo "$as_me: failed program was:" >&5
26701 sed 's/^/| /' conftest.$ac_ext >&5
26703 ac_cv_lib_lwp_lwp_create=no
26706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26707 conftest$ac_exeext conftest.$ac_ext
26708 LIBS=$ac_check_lib_save_LIBS
26710 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26711 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26712 if test $ac_cv_lib_lwp_lwp_create = yes; then
26719 if test $have_lwp = yes ; then
26721 cat >>confdefs.h <<\_ACEOF
26725 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26726 ol_link_threads=lwp
26728 if test $ol_with_yielding_select = auto ; then
26729 ol_with_yielding_select=no
26736 if test $ol_with_yielding_select = yes ; then
26738 cat >>confdefs.h <<\_ACEOF
26739 #define HAVE_YIELDING_SELECT 1
26744 if test $ol_with_threads = manual ; then
26745 ol_link_threads=yes
26747 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26748 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26752 for ac_header in pthread.h sched.h
26754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26759 echo $ECHO_N "(cached) $ECHO_C" >&6
26761 ac_res=`eval echo '${'$as_ac_Header'}'`
26762 { echo "$as_me:$LINENO: result: $ac_res" >&5
26763 echo "${ECHO_T}$ac_res" >&6; }
26765 # Is the header compilable?
26766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26768 cat >conftest.$ac_ext <<_ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h. */
26774 $ac_includes_default
26775 #include <$ac_header>
26777 rm -f conftest.$ac_objext
26778 if { (ac_try="$ac_compile"
26779 case "(($ac_try" in
26780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26781 *) ac_try_echo=$ac_try;;
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784 (eval "$ac_compile") 2>conftest.er1
26786 grep -v '^ *+' conftest.er1 >conftest.err
26788 cat conftest.err >&5
26789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790 (exit $ac_status); } && {
26791 test -z "$ac_c_werror_flag" ||
26792 test ! -s conftest.err
26793 } && test -s conftest.$ac_objext; then
26794 ac_header_compiler=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_header_compiler=no
26802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26804 echo "${ECHO_T}$ac_header_compiler" >&6; }
26806 # Is the header present?
26807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26809 cat >conftest.$ac_ext <<_ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h. */
26815 #include <$ac_header>
26817 if { (ac_try="$ac_cpp conftest.$ac_ext"
26818 case "(($ac_try" in
26819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820 *) ac_try_echo=$ac_try;;
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26825 grep -v '^ *+' conftest.er1 >conftest.err
26827 cat conftest.err >&5
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); } >/dev/null && {
26830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26831 test ! -s conftest.err
26833 ac_header_preproc=yes
26835 echo "$as_me: failed program was:" >&5
26836 sed 's/^/| /' conftest.$ac_ext >&5
26838 ac_header_preproc=no
26841 rm -f conftest.err conftest.$ac_ext
26842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26843 echo "${ECHO_T}$ac_header_preproc" >&6; }
26845 # So? What about this header?
26846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26852 ac_header_preproc=yes
26855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26868 ## --------------------------------------------- ##
26869 ## Report this to <http://www.openldap.org/its/> ##
26870 ## --------------------------------------------- ##
26872 ) | sed "s/^/$as_me: WARNING: /" >&2
26875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26878 echo $ECHO_N "(cached) $ECHO_C" >&6
26880 eval "$as_ac_Header=\$ac_header_preproc"
26882 ac_res=`eval echo '${'$as_ac_Header'}'`
26883 { echo "$as_me:$LINENO: result: $ac_res" >&5
26884 echo "${ECHO_T}$ac_res" >&6; }
26887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26888 cat >>confdefs.h <<_ACEOF
26889 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26898 for ac_func in sched_yield pthread_yield
26900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26904 echo $ECHO_N "(cached) $ECHO_C" >&6
26906 cat >conftest.$ac_ext <<_ACEOF
26909 cat confdefs.h >>conftest.$ac_ext
26910 cat >>conftest.$ac_ext <<_ACEOF
26911 /* end confdefs.h. */
26912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26914 #define $ac_func innocuous_$ac_func
26916 /* System header to define __stub macros and hopefully few prototypes,
26917 which can conflict with char $ac_func (); below.
26918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26919 <limits.h> exists even on freestanding compilers. */
26922 # include <limits.h>
26924 # include <assert.h>
26929 /* Override any GCC internal prototype to avoid an error.
26930 Use char because int might match the return type of a GCC
26931 builtin and then its argument prototype would still apply. */
26936 /* The GNU C library defines this for functions which it implements
26937 to always fail with ENOSYS. Some functions are actually named
26938 something starting with __ and the normal name is an alias. */
26939 #if defined __stub_$ac_func || defined __stub___$ac_func
26946 return $ac_func ();
26951 rm -f conftest.$ac_objext conftest$ac_exeext
26952 if { (ac_try="$ac_link"
26953 case "(($ac_try" in
26954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26955 *) ac_try_echo=$ac_try;;
26957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26958 (eval "$ac_link") 2>conftest.er1
26960 grep -v '^ *+' conftest.er1 >conftest.err
26962 cat conftest.err >&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } && {
26965 test -z "$ac_c_werror_flag" ||
26966 test ! -s conftest.err
26967 } && test -s conftest$ac_exeext &&
26968 $as_test_x conftest$ac_exeext; then
26969 eval "$as_ac_var=yes"
26971 echo "$as_me: failed program was:" >&5
26972 sed 's/^/| /' conftest.$ac_ext >&5
26974 eval "$as_ac_var=no"
26977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26978 conftest$ac_exeext conftest.$ac_ext
26980 ac_res=`eval echo '${'$as_ac_var'}'`
26981 { echo "$as_me:$LINENO: result: $ac_res" >&5
26982 echo "${ECHO_T}$ac_res" >&6; }
26983 if test `eval echo '${'$as_ac_var'}'` = yes; then
26984 cat >>confdefs.h <<_ACEOF
26985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26992 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26993 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26994 if test "${ol_cv_header_linux_threads+set}" = set; then
26995 echo $ECHO_N "(cached) $ECHO_C" >&6
26997 cat >conftest.$ac_ext <<_ACEOF
27000 cat confdefs.h >>conftest.$ac_ext
27001 cat >>conftest.$ac_ext <<_ACEOF
27002 /* end confdefs.h. */
27003 #include <pthread.h>
27005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27006 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27007 ol_cv_header_linux_threads=yes
27009 ol_cv_header_linux_threads=no
27015 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27016 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27017 if test $ol_cv_header_linux_threads = yes; then
27019 cat >>confdefs.h <<\_ACEOF
27020 #define HAVE_LINUX_THREADS 1
27027 for ac_header in mach/cthreads.h
27029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27034 echo $ECHO_N "(cached) $ECHO_C" >&6
27036 ac_res=`eval echo '${'$as_ac_Header'}'`
27037 { echo "$as_me:$LINENO: result: $ac_res" >&5
27038 echo "${ECHO_T}$ac_res" >&6; }
27040 # Is the header compilable?
27041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27043 cat >conftest.$ac_ext <<_ACEOF
27046 cat confdefs.h >>conftest.$ac_ext
27047 cat >>conftest.$ac_ext <<_ACEOF
27048 /* end confdefs.h. */
27049 $ac_includes_default
27050 #include <$ac_header>
27052 rm -f conftest.$ac_objext
27053 if { (ac_try="$ac_compile"
27054 case "(($ac_try" in
27055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27056 *) ac_try_echo=$ac_try;;
27058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27059 (eval "$ac_compile") 2>conftest.er1
27061 grep -v '^ *+' conftest.er1 >conftest.err
27063 cat conftest.err >&5
27064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27065 (exit $ac_status); } && {
27066 test -z "$ac_c_werror_flag" ||
27067 test ! -s conftest.err
27068 } && test -s conftest.$ac_objext; then
27069 ac_header_compiler=yes
27071 echo "$as_me: failed program was:" >&5
27072 sed 's/^/| /' conftest.$ac_ext >&5
27074 ac_header_compiler=no
27077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27079 echo "${ECHO_T}$ac_header_compiler" >&6; }
27081 # Is the header present?
27082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27084 cat >conftest.$ac_ext <<_ACEOF
27087 cat confdefs.h >>conftest.$ac_ext
27088 cat >>conftest.$ac_ext <<_ACEOF
27089 /* end confdefs.h. */
27090 #include <$ac_header>
27092 if { (ac_try="$ac_cpp conftest.$ac_ext"
27093 case "(($ac_try" in
27094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095 *) ac_try_echo=$ac_try;;
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27100 grep -v '^ *+' conftest.er1 >conftest.err
27102 cat conftest.err >&5
27103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104 (exit $ac_status); } >/dev/null && {
27105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27106 test ! -s conftest.err
27108 ac_header_preproc=yes
27110 echo "$as_me: failed program was:" >&5
27111 sed 's/^/| /' conftest.$ac_ext >&5
27113 ac_header_preproc=no
27116 rm -f conftest.err conftest.$ac_ext
27117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27118 echo "${ECHO_T}$ac_header_preproc" >&6; }
27120 # So? What about this header?
27121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27127 ac_header_preproc=yes
27130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27143 ## --------------------------------------------- ##
27144 ## Report this to <http://www.openldap.org/its/> ##
27145 ## --------------------------------------------- ##
27147 ) | sed "s/^/$as_me: WARNING: /" >&2
27150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27153 echo $ECHO_N "(cached) $ECHO_C" >&6
27155 eval "$as_ac_Header=\$ac_header_preproc"
27157 ac_res=`eval echo '${'$as_ac_Header'}'`
27158 { echo "$as_me:$LINENO: result: $ac_res" >&5
27159 echo "${ECHO_T}$ac_res" >&6; }
27162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27163 cat >>confdefs.h <<_ACEOF
27164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27172 for ac_header in lwp/lwp.h
27174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27181 ac_res=`eval echo '${'$as_ac_Header'}'`
27182 { echo "$as_me:$LINENO: result: $ac_res" >&5
27183 echo "${ECHO_T}$ac_res" >&6; }
27185 # Is the header compilable?
27186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27188 cat >conftest.$ac_ext <<_ACEOF
27191 cat confdefs.h >>conftest.$ac_ext
27192 cat >>conftest.$ac_ext <<_ACEOF
27193 /* end confdefs.h. */
27194 $ac_includes_default
27195 #include <$ac_header>
27197 rm -f conftest.$ac_objext
27198 if { (ac_try="$ac_compile"
27199 case "(($ac_try" in
27200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27201 *) ac_try_echo=$ac_try;;
27203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27204 (eval "$ac_compile") 2>conftest.er1
27206 grep -v '^ *+' conftest.er1 >conftest.err
27208 cat conftest.err >&5
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); } && {
27211 test -z "$ac_c_werror_flag" ||
27212 test ! -s conftest.err
27213 } && test -s conftest.$ac_objext; then
27214 ac_header_compiler=yes
27216 echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27219 ac_header_compiler=no
27222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27224 echo "${ECHO_T}$ac_header_compiler" >&6; }
27226 # Is the header present?
27227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27229 cat >conftest.$ac_ext <<_ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h. */
27235 #include <$ac_header>
27237 if { (ac_try="$ac_cpp conftest.$ac_ext"
27238 case "(($ac_try" in
27239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27240 *) ac_try_echo=$ac_try;;
27242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27245 grep -v '^ *+' conftest.er1 >conftest.err
27247 cat conftest.err >&5
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); } >/dev/null && {
27250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27251 test ! -s conftest.err
27253 ac_header_preproc=yes
27255 echo "$as_me: failed program was:" >&5
27256 sed 's/^/| /' conftest.$ac_ext >&5
27258 ac_header_preproc=no
27261 rm -f conftest.err conftest.$ac_ext
27262 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27263 echo "${ECHO_T}$ac_header_preproc" >&6; }
27265 # So? What about this header?
27266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27268 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27269 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27271 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27272 ac_header_preproc=yes
27275 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27276 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27277 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27278 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27280 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27281 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27282 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27284 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27285 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27286 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27288 ## --------------------------------------------- ##
27289 ## Report this to <http://www.openldap.org/its/> ##
27290 ## --------------------------------------------- ##
27292 ) | sed "s/^/$as_me: WARNING: /" >&2
27295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27298 echo $ECHO_N "(cached) $ECHO_C" >&6
27300 eval "$as_ac_Header=\$ac_header_preproc"
27302 ac_res=`eval echo '${'$as_ac_Header'}'`
27303 { echo "$as_me:$LINENO: result: $ac_res" >&5
27304 echo "${ECHO_T}$ac_res" >&6; }
27307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27308 cat >>confdefs.h <<_ACEOF
27309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27318 for ac_header in thread.h synch.h
27320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27325 echo $ECHO_N "(cached) $ECHO_C" >&6
27327 ac_res=`eval echo '${'$as_ac_Header'}'`
27328 { echo "$as_me:$LINENO: result: $ac_res" >&5
27329 echo "${ECHO_T}$ac_res" >&6; }
27331 # Is the header compilable?
27332 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27333 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27334 cat >conftest.$ac_ext <<_ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27340 $ac_includes_default
27341 #include <$ac_header>
27343 rm -f conftest.$ac_objext
27344 if { (ac_try="$ac_compile"
27345 case "(($ac_try" in
27346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347 *) ac_try_echo=$ac_try;;
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350 (eval "$ac_compile") 2>conftest.er1
27352 grep -v '^ *+' conftest.er1 >conftest.err
27354 cat conftest.err >&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } && {
27357 test -z "$ac_c_werror_flag" ||
27358 test ! -s conftest.err
27359 } && test -s conftest.$ac_objext; then
27360 ac_header_compiler=yes
27362 echo "$as_me: failed program was:" >&5
27363 sed 's/^/| /' conftest.$ac_ext >&5
27365 ac_header_compiler=no
27368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27369 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27370 echo "${ECHO_T}$ac_header_compiler" >&6; }
27372 # Is the header present?
27373 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27374 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27375 cat >conftest.$ac_ext <<_ACEOF
27378 cat confdefs.h >>conftest.$ac_ext
27379 cat >>conftest.$ac_ext <<_ACEOF
27380 /* end confdefs.h. */
27381 #include <$ac_header>
27383 if { (ac_try="$ac_cpp conftest.$ac_ext"
27384 case "(($ac_try" in
27385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27386 *) ac_try_echo=$ac_try;;
27388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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 && {
27396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27397 test ! -s conftest.err
27399 ac_header_preproc=yes
27401 echo "$as_me: failed program was:" >&5
27402 sed 's/^/| /' conftest.$ac_ext >&5
27404 ac_header_preproc=no
27407 rm -f conftest.err conftest.$ac_ext
27408 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27409 echo "${ECHO_T}$ac_header_preproc" >&6; }
27411 # So? What about this header?
27412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27418 ac_header_preproc=yes
27421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27434 ## --------------------------------------------- ##
27435 ## Report this to <http://www.openldap.org/its/> ##
27436 ## --------------------------------------------- ##
27438 ) | sed "s/^/$as_me: WARNING: /" >&2
27441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27444 echo $ECHO_N "(cached) $ECHO_C" >&6
27446 eval "$as_ac_Header=\$ac_header_preproc"
27448 ac_res=`eval echo '${'$as_ac_Header'}'`
27449 { echo "$as_me:$LINENO: result: $ac_res" >&5
27450 echo "${ECHO_T}$ac_res" >&6; }
27453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27454 cat >>confdefs.h <<_ACEOF
27455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27464 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27465 cat >>confdefs.h <<\_ACEOF
27466 #define REENTRANT 1
27469 cat >>confdefs.h <<\_ACEOF
27470 #define _REENTRANT 1
27473 cat >>confdefs.h <<\_ACEOF
27474 #define THREAD_SAFE 1
27477 cat >>confdefs.h <<\_ACEOF
27478 #define _THREAD_SAFE 1
27481 cat >>confdefs.h <<\_ACEOF
27482 #define THREADSAFE 1
27485 cat >>confdefs.h <<\_ACEOF
27486 #define _THREADSAFE 1
27489 cat >>confdefs.h <<\_ACEOF
27490 #define _SGI_MP_SOURCE 1
27494 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27495 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27496 if test "${ol_cv_errno_thread_specific+set}" = set; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27500 cat >conftest.$ac_ext <<_ACEOF
27503 cat confdefs.h >>conftest.$ac_ext
27504 cat >>conftest.$ac_ext <<_ACEOF
27505 /* end confdefs.h. */
27515 rm -f conftest.$ac_objext conftest$ac_exeext
27516 if { (ac_try="$ac_link"
27517 case "(($ac_try" in
27518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519 *) ac_try_echo=$ac_try;;
27521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27522 (eval "$ac_link") 2>conftest.er1
27524 grep -v '^ *+' conftest.er1 >conftest.err
27526 cat conftest.err >&5
27527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27528 (exit $ac_status); } && {
27529 test -z "$ac_c_werror_flag" ||
27530 test ! -s conftest.err
27531 } && test -s conftest$ac_exeext &&
27532 $as_test_x conftest$ac_exeext; then
27533 ol_cv_errno_thread_specific=yes
27535 echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27538 ol_cv_errno_thread_specific=no
27541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27542 conftest$ac_exeext conftest.$ac_ext
27545 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27546 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27548 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27549 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27550 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27554 cat >conftest.$ac_ext <<_ACEOF
27557 cat confdefs.h >>conftest.$ac_ext
27558 cat >>conftest.$ac_ext <<_ACEOF
27559 /* end confdefs.h. */
27569 rm -f conftest.$ac_objext conftest$ac_exeext
27570 if { (ac_try="$ac_link"
27571 case "(($ac_try" in
27572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27573 *) ac_try_echo=$ac_try;;
27575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27576 (eval "$ac_link") 2>conftest.er1
27578 grep -v '^ *+' conftest.er1 >conftest.err
27580 cat conftest.err >&5
27581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } && {
27583 test -z "$ac_c_werror_flag" ||
27584 test ! -s conftest.err
27585 } && test -s conftest$ac_exeext &&
27586 $as_test_x conftest$ac_exeext; then
27587 ol_cv_h_errno_thread_specific=yes
27589 echo "$as_me: failed program was:" >&5
27590 sed 's/^/| /' conftest.$ac_ext >&5
27592 ol_cv_h_errno_thread_specific=no
27595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27596 conftest$ac_exeext conftest.$ac_ext
27599 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27600 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27602 if test $ol_cv_errno_thread_specific != yes ||
27603 test $ol_cv_h_errno_thread_specific != yes ; then
27604 LIBS="$LTHREAD_LIBS $LIBS"
27610 if test $ol_link_threads = no ; then
27611 if test $ol_with_threads = yes ; then
27612 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27613 echo "$as_me: error: no suitable thread support" >&2;}
27614 { (exit 1); exit 1; }; }
27617 if test $ol_with_threads = auto ; then
27618 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27619 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27624 cat >>confdefs.h <<\_ACEOF
27625 #define NO_THREADS 1
27634 if test $ol_link_threads != no ; then
27636 cat >>confdefs.h <<\_ACEOF
27637 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27647 gethostbyname_r gethostbyaddr_r \
27650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27654 echo $ECHO_N "(cached) $ECHO_C" >&6
27656 cat >conftest.$ac_ext <<_ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h. */
27662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27664 #define $ac_func innocuous_$ac_func
27666 /* System header to define __stub macros and hopefully few prototypes,
27667 which can conflict with char $ac_func (); below.
27668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27669 <limits.h> exists even on freestanding compilers. */
27672 # include <limits.h>
27674 # include <assert.h>
27679 /* Override any GCC internal prototype to avoid an error.
27680 Use char because int might match the return type of a GCC
27681 builtin and then its argument prototype would still apply. */
27686 /* The GNU C library defines this for functions which it implements
27687 to always fail with ENOSYS. Some functions are actually named
27688 something starting with __ and the normal name is an alias. */
27689 #if defined __stub_$ac_func || defined __stub___$ac_func
27696 return $ac_func ();
27701 rm -f conftest.$ac_objext conftest$ac_exeext
27702 if { (ac_try="$ac_link"
27703 case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27708 (eval "$ac_link") 2>conftest.er1
27710 grep -v '^ *+' conftest.er1 >conftest.err
27712 cat conftest.err >&5
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); } && {
27715 test -z "$ac_c_werror_flag" ||
27716 test ! -s conftest.err
27717 } && test -s conftest$ac_exeext &&
27718 $as_test_x conftest$ac_exeext; then
27719 eval "$as_ac_var=yes"
27721 echo "$as_me: failed program was:" >&5
27722 sed 's/^/| /' conftest.$ac_ext >&5
27724 eval "$as_ac_var=no"
27727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27728 conftest$ac_exeext conftest.$ac_ext
27730 ac_res=`eval echo '${'$as_ac_var'}'`
27731 { echo "$as_me:$LINENO: result: $ac_res" >&5
27732 echo "${ECHO_T}$ac_res" >&6; }
27733 if test `eval echo '${'$as_ac_var'}'` = yes; then
27734 cat >>confdefs.h <<_ACEOF
27735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27742 if test "$ac_cv_func_ctime_r" = no ; then
27743 ol_cv_func_ctime_r_nargs=0
27745 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27746 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27747 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27748 echo $ECHO_N "(cached) $ECHO_C" >&6
27750 cat >conftest.$ac_ext <<_ACEOF
27753 cat confdefs.h >>conftest.$ac_ext
27754 cat >>conftest.$ac_ext <<_ACEOF
27755 /* end confdefs.h. */
27760 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27765 rm -f conftest.$ac_objext
27766 if { (ac_try="$ac_compile"
27767 case "(($ac_try" in
27768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27769 *) ac_try_echo=$ac_try;;
27771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27772 (eval "$ac_compile") 2>conftest.er1
27774 grep -v '^ *+' conftest.er1 >conftest.err
27776 cat conftest.err >&5
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } && {
27779 test -z "$ac_c_werror_flag" ||
27780 test ! -s conftest.err
27781 } && test -s conftest.$ac_objext; then
27782 ol_cv_func_ctime_r_nargs3=yes
27784 echo "$as_me: failed program was:" >&5
27785 sed 's/^/| /' conftest.$ac_ext >&5
27787 ol_cv_func_ctime_r_nargs3=no
27790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27792 cat >conftest.$ac_ext <<_ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h. */
27802 time_t ti; char *buffer; ctime_r(&ti,buffer);
27807 rm -f conftest.$ac_objext
27808 if { (ac_try="$ac_compile"
27809 case "(($ac_try" in
27810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27811 *) ac_try_echo=$ac_try;;
27813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27814 (eval "$ac_compile") 2>conftest.er1
27816 grep -v '^ *+' conftest.er1 >conftest.err
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } && {
27821 test -z "$ac_c_werror_flag" ||
27822 test ! -s conftest.err
27823 } && test -s conftest.$ac_objext; then
27824 ol_cv_func_ctime_r_nargs2=yes
27826 echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.$ac_ext >&5
27829 ol_cv_func_ctime_r_nargs2=no
27832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27834 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27835 test $ol_cv_func_ctime_r_nargs2 = no ; then
27837 ol_cv_func_ctime_r_nargs=3
27839 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27840 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27842 ol_cv_func_ctime_r_nargs=2
27845 ol_cv_func_ctime_r_nargs=0
27849 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27850 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27852 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27854 cat >>confdefs.h <<_ACEOF
27855 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27862 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27863 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27864 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27865 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27866 echo $ECHO_N "(cached) $ECHO_C" >&6
27868 cat >conftest.$ac_ext <<_ACEOF
27871 cat confdefs.h >>conftest.$ac_ext
27872 cat >>conftest.$ac_ext <<_ACEOF
27873 /* end confdefs.h. */
27874 #include <sys/types.h>
27875 #include <sys/socket.h>
27876 #include <netinet/in.h>
27878 #define BUFSIZE (sizeof(struct hostent)+10)
27882 struct hostent hent; char buffer[BUFSIZE];
27883 int bufsize=BUFSIZE;int h_errno;
27884 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27885 buffer, bufsize, &h_errno);
27890 rm -f conftest.$ac_objext
27891 if { (ac_try="$ac_compile"
27892 case "(($ac_try" in
27893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27894 *) ac_try_echo=$ac_try;;
27896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27897 (eval "$ac_compile") 2>conftest.er1
27899 grep -v '^ *+' conftest.er1 >conftest.err
27901 cat conftest.err >&5
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); } && {
27904 test -z "$ac_c_werror_flag" ||
27905 test ! -s conftest.err
27906 } && test -s conftest.$ac_objext; then
27907 ol_cv_func_gethostbyname_r_nargs5=yes
27909 echo "$as_me: failed program was:" >&5
27910 sed 's/^/| /' conftest.$ac_ext >&5
27912 ol_cv_func_gethostbyname_r_nargs5=no
27915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27917 cat >conftest.$ac_ext <<_ACEOF
27920 cat confdefs.h >>conftest.$ac_ext
27921 cat >>conftest.$ac_ext <<_ACEOF
27922 /* end confdefs.h. */
27923 #include <sys/types.h>
27924 #include <sys/socket.h>
27925 #include <netinet/in.h>
27927 #define BUFSIZE (sizeof(struct hostent)+10)
27931 struct hostent hent;struct hostent *rhent;
27932 char buffer[BUFSIZE];
27933 int bufsize=BUFSIZE;int h_errno;
27934 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27940 rm -f conftest.$ac_objext
27941 if { (ac_try="$ac_compile"
27942 case "(($ac_try" in
27943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27944 *) ac_try_echo=$ac_try;;
27946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27947 (eval "$ac_compile") 2>conftest.er1
27949 grep -v '^ *+' conftest.er1 >conftest.err
27951 cat conftest.err >&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); } && {
27954 test -z "$ac_c_werror_flag" ||
27955 test ! -s conftest.err
27956 } && test -s conftest.$ac_objext; then
27957 ol_cv_func_gethostbyname_r_nargs6=yes
27959 echo "$as_me: failed program was:" >&5
27960 sed 's/^/| /' conftest.$ac_ext >&5
27962 ol_cv_func_gethostbyname_r_nargs6=no
27965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27967 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27968 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27970 ol_cv_func_gethostbyname_r_nargs=5
27972 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27973 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27975 ol_cv_func_gethostbyname_r_nargs=6
27978 ol_cv_func_gethostbyname_r_nargs=0
27982 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27983 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27984 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27986 cat >>confdefs.h <<_ACEOF
27987 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27993 ol_cv_func_gethostbyname_r_nargs=0
27996 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27997 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27998 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27999 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28000 echo $ECHO_N "(cached) $ECHO_C" >&6
28002 cat >conftest.$ac_ext <<_ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h. */
28008 #include <sys/types.h>
28009 #include <sys/socket.h>
28010 #include <netinet/in.h>
28012 #define BUFSIZE (sizeof(struct hostent)+10)
28016 struct hostent hent; char buffer[BUFSIZE];
28017 struct in_addr add;
28018 size_t alen=sizeof(struct in_addr);
28019 int bufsize=BUFSIZE;int h_errno;
28020 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28021 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28026 rm -f conftest.$ac_objext
28027 if { (ac_try="$ac_compile"
28028 case "(($ac_try" in
28029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28030 *) ac_try_echo=$ac_try;;
28032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28033 (eval "$ac_compile") 2>conftest.er1
28035 grep -v '^ *+' conftest.er1 >conftest.err
28037 cat conftest.err >&5
28038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } && {
28040 test -z "$ac_c_werror_flag" ||
28041 test ! -s conftest.err
28042 } && test -s conftest.$ac_objext; then
28043 ol_cv_func_gethostbyaddr_r_nargs7=yes
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28048 ol_cv_func_gethostbyaddr_r_nargs7=no
28051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28053 cat >conftest.$ac_ext <<_ACEOF
28056 cat confdefs.h >>conftest.$ac_ext
28057 cat >>conftest.$ac_ext <<_ACEOF
28058 /* end confdefs.h. */
28059 #include <sys/types.h>
28060 #include <sys/socket.h>
28061 #include <netinet/in.h>
28063 #define BUFSIZE (sizeof(struct hostent)+10)
28067 struct hostent hent;
28068 struct hostent *rhent; char buffer[BUFSIZE];
28069 struct in_addr add;
28070 size_t alen=sizeof(struct in_addr);
28071 int bufsize=BUFSIZE;int h_errno;
28072 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28073 alen, AF_INET, &hent, buffer, bufsize,
28079 rm -f conftest.$ac_objext
28080 if { (ac_try="$ac_compile"
28081 case "(($ac_try" in
28082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28083 *) ac_try_echo=$ac_try;;
28085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28086 (eval "$ac_compile") 2>conftest.er1
28088 grep -v '^ *+' conftest.er1 >conftest.err
28090 cat conftest.err >&5
28091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28092 (exit $ac_status); } && {
28093 test -z "$ac_c_werror_flag" ||
28094 test ! -s conftest.err
28095 } && test -s conftest.$ac_objext; then
28096 ol_cv_func_gethostbyaddr_r_nargs8=yes
28098 echo "$as_me: failed program was:" >&5
28099 sed 's/^/| /' conftest.$ac_ext >&5
28101 ol_cv_func_gethostbyaddr_r_nargs8=no
28104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28106 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28107 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28109 ol_cv_func_gethostbyaddr_r_nargs=7
28111 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28112 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28114 ol_cv_func_gethostbyaddr_r_nargs=8
28117 ol_cv_func_gethostbyaddr_r_nargs=0
28121 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28122 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28123 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28125 cat >>confdefs.h <<_ACEOF
28126 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28132 ol_cv_func_gethostbyaddr_r_nargs=0
28137 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28138 ol_cv_berkeley_db=no
28140 for ac_header in db.h
28142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28147 echo $ECHO_N "(cached) $ECHO_C" >&6
28149 ac_res=`eval echo '${'$as_ac_Header'}'`
28150 { echo "$as_me:$LINENO: result: $ac_res" >&5
28151 echo "${ECHO_T}$ac_res" >&6; }
28153 # Is the header compilable?
28154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28156 cat >conftest.$ac_ext <<_ACEOF
28159 cat confdefs.h >>conftest.$ac_ext
28160 cat >>conftest.$ac_ext <<_ACEOF
28161 /* end confdefs.h. */
28162 $ac_includes_default
28163 #include <$ac_header>
28165 rm -f conftest.$ac_objext
28166 if { (ac_try="$ac_compile"
28167 case "(($ac_try" in
28168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28169 *) ac_try_echo=$ac_try;;
28171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28172 (eval "$ac_compile") 2>conftest.er1
28174 grep -v '^ *+' conftest.er1 >conftest.err
28176 cat conftest.err >&5
28177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 (exit $ac_status); } && {
28179 test -z "$ac_c_werror_flag" ||
28180 test ! -s conftest.err
28181 } && test -s conftest.$ac_objext; then
28182 ac_header_compiler=yes
28184 echo "$as_me: failed program was:" >&5
28185 sed 's/^/| /' conftest.$ac_ext >&5
28187 ac_header_compiler=no
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28192 echo "${ECHO_T}$ac_header_compiler" >&6; }
28194 # Is the header present?
28195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28197 cat >conftest.$ac_ext <<_ACEOF
28200 cat confdefs.h >>conftest.$ac_ext
28201 cat >>conftest.$ac_ext <<_ACEOF
28202 /* end confdefs.h. */
28203 #include <$ac_header>
28205 if { (ac_try="$ac_cpp conftest.$ac_ext"
28206 case "(($ac_try" in
28207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28208 *) ac_try_echo=$ac_try;;
28210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28213 grep -v '^ *+' conftest.er1 >conftest.err
28215 cat conftest.err >&5
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } >/dev/null && {
28218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28219 test ! -s conftest.err
28221 ac_header_preproc=yes
28223 echo "$as_me: failed program was:" >&5
28224 sed 's/^/| /' conftest.$ac_ext >&5
28226 ac_header_preproc=no
28229 rm -f conftest.err conftest.$ac_ext
28230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28231 echo "${ECHO_T}$ac_header_preproc" >&6; }
28233 # So? What about this header?
28234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28240 ac_header_preproc=yes
28243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28256 ## --------------------------------------------- ##
28257 ## Report this to <http://www.openldap.org/its/> ##
28258 ## --------------------------------------------- ##
28260 ) | sed "s/^/$as_me: WARNING: /" >&2
28263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28266 echo $ECHO_N "(cached) $ECHO_C" >&6
28268 eval "$as_ac_Header=\$ac_header_preproc"
28270 ac_res=`eval echo '${'$as_ac_Header'}'`
28271 { echo "$as_me:$LINENO: result: $ac_res" >&5
28272 echo "${ECHO_T}$ac_res" >&6; }
28275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28276 cat >>confdefs.h <<_ACEOF
28277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28284 if test $ac_cv_header_db_h = yes; then
28285 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28286 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28287 if test "${ol_cv_bdb_major+set}" = set; then
28288 echo $ECHO_N "(cached) $ECHO_C" >&6
28291 cat >conftest.$ac_ext <<_ACEOF
28294 #ifndef DB_VERSION_MAJOR
28295 # define DB_VERSION_MAJOR 1
28297 __db_version DB_VERSION_MAJOR
28300 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28301 ol_cv_bdb_major=${3}
28304 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28305 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28306 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28307 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28308 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28309 { (exit 1); exit 1; }; } ;;
28312 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28313 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28314 if test "${ol_cv_bdb_minor+set}" = set; then
28315 echo $ECHO_N "(cached) $ECHO_C" >&6
28318 cat >conftest.$ac_ext <<_ACEOF
28321 #ifndef DB_VERSION_MINOR
28322 # define DB_VERSION_MINOR 0
28324 __db_version DB_VERSION_MINOR
28327 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28328 ol_cv_bdb_minor=${3}
28331 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28332 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28333 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28334 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28335 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28336 { (exit 1); exit 1; }; } ;;
28339 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28340 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28341 if test "${ol_cv_bdb_compat+set}" = set; then
28342 echo $ECHO_N "(cached) $ECHO_C" >&6
28345 cat >conftest.$ac_ext <<_ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h. */
28354 /* this check could be improved */
28355 #ifndef DB_VERSION_MAJOR
28356 # define DB_VERSION_MAJOR 1
28358 #ifndef DB_VERSION_MINOR
28359 # define DB_VERSION_MINOR 0
28362 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28364 /* require 4.4 or later */
28365 #if DB_VERSION_MM >= 0x0404
28366 __db_version_compat
28370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28371 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28372 ol_cv_bdb_compat=yes
28374 ol_cv_bdb_compat=no
28379 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28380 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28383 if test $ol_cv_bdb_compat != yes ; then
28384 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28385 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28386 { (exit 1); exit 1; }; }
28391 if test $ol_cv_bdb_major = 4 ; then
28392 if test $ol_cv_lib_db = no ; then
28393 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28394 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28395 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28396 echo $ECHO_N "(cached) $ECHO_C" >&6
28399 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28401 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28403 cat >conftest.$ac_ext <<_ACEOF
28406 cat confdefs.h >>conftest.$ac_ext
28407 cat >>conftest.$ac_ext <<_ACEOF
28408 /* end confdefs.h. */
28410 #ifdef HAVE_DB_185_H
28411 # include <db_185.h>
28416 #ifndef DB_VERSION_MAJOR
28417 # define DB_VERSION_MAJOR 1
28421 #define NULL ((void*)0)
28428 #if DB_VERSION_MAJOR > 2
28429 db_env_create( NULL, 0 );
28430 #elif DB_VERSION_MAJOR > 1
28431 db_appexit( NULL );
28433 (void) dbopen( NULL, 0, 0, 0, NULL);
28440 rm -f conftest.$ac_objext conftest$ac_exeext
28441 if { (ac_try="$ac_link"
28442 case "(($ac_try" in
28443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28444 *) ac_try_echo=$ac_try;;
28446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28447 (eval "$ac_link") 2>conftest.er1
28449 grep -v '^ *+' conftest.er1 >conftest.err
28451 cat conftest.err >&5
28452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453 (exit $ac_status); } && {
28454 test -z "$ac_c_werror_flag" ||
28455 test ! -s conftest.err
28456 } && test -s conftest$ac_exeext &&
28457 $as_test_x conftest$ac_exeext; then
28458 ol_cv_db_db_4_dot_m=yes
28460 echo "$as_me: failed program was:" >&5
28461 sed 's/^/| /' conftest.$ac_ext >&5
28463 ol_cv_db_db_4_dot_m=no
28466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28467 conftest$ac_exeext conftest.$ac_ext
28472 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28473 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28475 if test $ol_cv_db_db_4_dot_m = yes ; then
28476 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28480 if test $ol_cv_lib_db = no ; then
28481 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28482 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28483 if test "${ol_cv_db_db4m+set}" = set; then
28484 echo $ECHO_N "(cached) $ECHO_C" >&6
28487 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28489 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28491 cat >conftest.$ac_ext <<_ACEOF
28494 cat confdefs.h >>conftest.$ac_ext
28495 cat >>conftest.$ac_ext <<_ACEOF
28496 /* end confdefs.h. */
28498 #ifdef HAVE_DB_185_H
28499 # include <db_185.h>
28504 #ifndef DB_VERSION_MAJOR
28505 # define DB_VERSION_MAJOR 1
28509 #define NULL ((void*)0)
28516 #if DB_VERSION_MAJOR > 2
28517 db_env_create( NULL, 0 );
28518 #elif DB_VERSION_MAJOR > 1
28519 db_appexit( NULL );
28521 (void) dbopen( NULL, 0, 0, 0, NULL);
28528 rm -f conftest.$ac_objext conftest$ac_exeext
28529 if { (ac_try="$ac_link"
28530 case "(($ac_try" in
28531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28532 *) ac_try_echo=$ac_try;;
28534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28535 (eval "$ac_link") 2>conftest.er1
28537 grep -v '^ *+' conftest.er1 >conftest.err
28539 cat conftest.err >&5
28540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && {
28542 test -z "$ac_c_werror_flag" ||
28543 test ! -s conftest.err
28544 } && test -s conftest$ac_exeext &&
28545 $as_test_x conftest$ac_exeext; then
28548 echo "$as_me: failed program was:" >&5
28549 sed 's/^/| /' conftest.$ac_ext >&5
28554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28555 conftest$ac_exeext conftest.$ac_ext
28560 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28561 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28563 if test $ol_cv_db_db4m = yes ; then
28564 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28568 if test $ol_cv_lib_db = no ; then
28569 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28570 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28571 if test "${ol_cv_db_db_4m+set}" = set; then
28572 echo $ECHO_N "(cached) $ECHO_C" >&6
28575 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28577 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28579 cat >conftest.$ac_ext <<_ACEOF
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28586 #ifdef HAVE_DB_185_H
28587 # include <db_185.h>
28592 #ifndef DB_VERSION_MAJOR
28593 # define DB_VERSION_MAJOR 1
28597 #define NULL ((void*)0)
28604 #if DB_VERSION_MAJOR > 2
28605 db_env_create( NULL, 0 );
28606 #elif DB_VERSION_MAJOR > 1
28607 db_appexit( NULL );
28609 (void) dbopen( NULL, 0, 0, 0, NULL);
28616 rm -f conftest.$ac_objext conftest$ac_exeext
28617 if { (ac_try="$ac_link"
28618 case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28623 (eval "$ac_link") 2>conftest.er1
28625 grep -v '^ *+' conftest.er1 >conftest.err
28627 cat conftest.err >&5
28628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } && {
28630 test -z "$ac_c_werror_flag" ||
28631 test ! -s conftest.err
28632 } && test -s conftest$ac_exeext &&
28633 $as_test_x conftest$ac_exeext; then
28636 echo "$as_me: failed program was:" >&5
28637 sed 's/^/| /' conftest.$ac_ext >&5
28642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28643 conftest$ac_exeext conftest.$ac_ext
28648 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28649 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28651 if test $ol_cv_db_db_4m = yes ; then
28652 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28656 if test $ol_cv_lib_db = no ; then
28657 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28658 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28659 if test "${ol_cv_db_db_4_m+set}" = set; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28663 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28665 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28667 cat >conftest.$ac_ext <<_ACEOF
28670 cat confdefs.h >>conftest.$ac_ext
28671 cat >>conftest.$ac_ext <<_ACEOF
28672 /* end confdefs.h. */
28674 #ifdef HAVE_DB_185_H
28675 # include <db_185.h>
28680 #ifndef DB_VERSION_MAJOR
28681 # define DB_VERSION_MAJOR 1
28685 #define NULL ((void*)0)
28692 #if DB_VERSION_MAJOR > 2
28693 db_env_create( NULL, 0 );
28694 #elif DB_VERSION_MAJOR > 1
28695 db_appexit( NULL );
28697 (void) dbopen( NULL, 0, 0, 0, NULL);
28704 rm -f conftest.$ac_objext conftest$ac_exeext
28705 if { (ac_try="$ac_link"
28706 case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_link") 2>conftest.er1
28713 grep -v '^ *+' conftest.er1 >conftest.err
28715 cat conftest.err >&5
28716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28717 (exit $ac_status); } && {
28718 test -z "$ac_c_werror_flag" ||
28719 test ! -s conftest.err
28720 } && test -s conftest$ac_exeext &&
28721 $as_test_x conftest$ac_exeext; then
28722 ol_cv_db_db_4_m=yes
28724 echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.$ac_ext >&5
28730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28731 conftest$ac_exeext conftest.$ac_ext
28736 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28737 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28739 if test $ol_cv_db_db_4_m = yes ; then
28740 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28744 if test $ol_cv_lib_db = no ; then
28745 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28746 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28747 if test "${ol_cv_db_db_4+set}" = set; then
28748 echo $ECHO_N "(cached) $ECHO_C" >&6
28753 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28755 cat >conftest.$ac_ext <<_ACEOF
28758 cat confdefs.h >>conftest.$ac_ext
28759 cat >>conftest.$ac_ext <<_ACEOF
28760 /* end confdefs.h. */
28762 #ifdef HAVE_DB_185_H
28763 # include <db_185.h>
28768 #ifndef DB_VERSION_MAJOR
28769 # define DB_VERSION_MAJOR 1
28773 #define NULL ((void*)0)
28780 #if DB_VERSION_MAJOR > 2
28781 db_env_create( NULL, 0 );
28782 #elif DB_VERSION_MAJOR > 1
28783 db_appexit( NULL );
28785 (void) dbopen( NULL, 0, 0, 0, NULL);
28792 rm -f conftest.$ac_objext conftest$ac_exeext
28793 if { (ac_try="$ac_link"
28794 case "(($ac_try" in
28795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28796 *) ac_try_echo=$ac_try;;
28798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28799 (eval "$ac_link") 2>conftest.er1
28801 grep -v '^ *+' conftest.er1 >conftest.err
28803 cat conftest.err >&5
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); } && {
28806 test -z "$ac_c_werror_flag" ||
28807 test ! -s conftest.err
28808 } && test -s conftest$ac_exeext &&
28809 $as_test_x conftest$ac_exeext; then
28812 echo "$as_me: failed program was:" >&5
28813 sed 's/^/| /' conftest.$ac_ext >&5
28818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28819 conftest$ac_exeext conftest.$ac_ext
28824 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28825 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28827 if test $ol_cv_db_db_4 = yes ; then
28828 ol_cv_lib_db=-ldb-4
28832 if test $ol_cv_lib_db = no ; then
28833 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28834 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28835 if test "${ol_cv_db_db4+set}" = set; then
28836 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28843 cat >conftest.$ac_ext <<_ACEOF
28846 cat confdefs.h >>conftest.$ac_ext
28847 cat >>conftest.$ac_ext <<_ACEOF
28848 /* end confdefs.h. */
28850 #ifdef HAVE_DB_185_H
28851 # include <db_185.h>
28856 #ifndef DB_VERSION_MAJOR
28857 # define DB_VERSION_MAJOR 1
28861 #define NULL ((void*)0)
28868 #if DB_VERSION_MAJOR > 2
28869 db_env_create( NULL, 0 );
28870 #elif DB_VERSION_MAJOR > 1
28871 db_appexit( NULL );
28873 (void) dbopen( NULL, 0, 0, 0, NULL);
28880 rm -f conftest.$ac_objext conftest$ac_exeext
28881 if { (ac_try="$ac_link"
28882 case "(($ac_try" in
28883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28884 *) ac_try_echo=$ac_try;;
28886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28887 (eval "$ac_link") 2>conftest.er1
28889 grep -v '^ *+' conftest.er1 >conftest.err
28891 cat conftest.err >&5
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); } && {
28894 test -z "$ac_c_werror_flag" ||
28895 test ! -s conftest.err
28896 } && test -s conftest$ac_exeext &&
28897 $as_test_x conftest$ac_exeext; then
28900 echo "$as_me: failed program was:" >&5
28901 sed 's/^/| /' conftest.$ac_ext >&5
28906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28907 conftest$ac_exeext conftest.$ac_ext
28912 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28913 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28915 if test $ol_cv_db_db4 = yes ; then
28920 if test $ol_cv_lib_db = no ; then
28921 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28922 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28923 if test "${ol_cv_db_db+set}" = set; then
28924 echo $ECHO_N "(cached) $ECHO_C" >&6
28929 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28931 cat >conftest.$ac_ext <<_ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h. */
28938 #ifdef HAVE_DB_185_H
28939 # include <db_185.h>
28944 #ifndef DB_VERSION_MAJOR
28945 # define DB_VERSION_MAJOR 1
28949 #define NULL ((void*)0)
28956 #if DB_VERSION_MAJOR > 2
28957 db_env_create( NULL, 0 );
28958 #elif DB_VERSION_MAJOR > 1
28959 db_appexit( NULL );
28961 (void) dbopen( NULL, 0, 0, 0, NULL);
28968 rm -f conftest.$ac_objext conftest$ac_exeext
28969 if { (ac_try="$ac_link"
28970 case "(($ac_try" in
28971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972 *) ac_try_echo=$ac_try;;
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975 (eval "$ac_link") 2>conftest.er1
28977 grep -v '^ *+' conftest.er1 >conftest.err
28979 cat conftest.err >&5
28980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28981 (exit $ac_status); } && {
28982 test -z "$ac_c_werror_flag" ||
28983 test ! -s conftest.err
28984 } && test -s conftest$ac_exeext &&
28985 $as_test_x conftest$ac_exeext; then
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28995 conftest$ac_exeext conftest.$ac_ext
29000 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29001 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29003 if test $ol_cv_db_db = yes ; then
29009 if test $ol_cv_lib_db = no ; then
29010 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29011 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29012 if test "${ol_cv_db_none+set}" = set; then
29013 echo $ECHO_N "(cached) $ECHO_C" >&6
29018 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29020 cat >conftest.$ac_ext <<_ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h. */
29027 #ifdef HAVE_DB_185_H
29028 # include <db_185.h>
29033 #ifndef DB_VERSION_MAJOR
29034 # define DB_VERSION_MAJOR 1
29038 #define NULL ((void*)0)
29045 #if DB_VERSION_MAJOR > 2
29046 db_env_create( NULL, 0 );
29047 #elif DB_VERSION_MAJOR > 1
29048 db_appexit( NULL );
29050 (void) dbopen( NULL, 0, 0, 0, NULL);
29057 rm -f conftest.$ac_objext conftest$ac_exeext
29058 if { (ac_try="$ac_link"
29059 case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064 (eval "$ac_link") 2>conftest.er1
29066 grep -v '^ *+' conftest.er1 >conftest.err
29068 cat conftest.err >&5
29069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29070 (exit $ac_status); } && {
29071 test -z "$ac_c_werror_flag" ||
29072 test ! -s conftest.err
29073 } && test -s conftest$ac_exeext &&
29074 $as_test_x conftest$ac_exeext; then
29077 echo "$as_me: failed program was:" >&5
29078 sed 's/^/| /' conftest.$ac_ext >&5
29083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29084 conftest$ac_exeext conftest.$ac_ext
29089 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29090 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29092 if test $ol_cv_db_none = yes ; then
29098 if test "$ol_cv_lib_db" != no ; then
29099 ol_cv_berkeley_db=yes
29100 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29101 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29102 if test "${ol_cv_berkeley_db_version+set}" = set; then
29103 echo $ECHO_N "(cached) $ECHO_C" >&6
29107 LIBS="$LTHREAD_LIBS $LIBS"
29108 if test $ol_cv_lib_db != yes ; then
29109 LIBS="$ol_cv_lib_db $LIBS"
29112 if test "$cross_compiling" = yes; then
29113 ol_cv_berkeley_db_version=cross
29115 cat >conftest.$ac_ext <<_ACEOF
29118 cat confdefs.h >>conftest.$ac_ext
29119 cat >>conftest.$ac_ext <<_ACEOF
29120 /* end confdefs.h. */
29122 #ifdef HAVE_DB_185_H
29127 #ifndef DB_VERSION_MAJOR
29128 # define DB_VERSION_MAJOR 1
29131 #define NULL ((void *)0)
29135 #if DB_VERSION_MAJOR > 1
29137 int major, minor, patch;
29139 version = db_version( &major, &minor, &patch );
29141 if( major != DB_VERSION_MAJOR ||
29142 minor != DB_VERSION_MINOR ||
29143 patch != DB_VERSION_PATCH )
29145 printf("Berkeley DB version mismatch\n"
29146 "\theader: %s\n\tlibrary: %s\n",
29147 DB_VERSION_STRING, version);
29155 rm -f conftest$ac_exeext
29156 if { (ac_try="$ac_link"
29157 case "(($ac_try" in
29158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29159 *) ac_try_echo=$ac_try;;
29161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29162 (eval "$ac_link") 2>&5
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29166 { (case "(($ac_try" in
29167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29168 *) ac_try_echo=$ac_try;;
29170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29171 (eval "$ac_try") 2>&5
29173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174 (exit $ac_status); }; }; then
29175 ol_cv_berkeley_db_version=yes
29177 echo "$as_me: program exited with status $ac_status" >&5
29178 echo "$as_me: failed program was:" >&5
29179 sed 's/^/| /' conftest.$ac_ext >&5
29181 ( exit $ac_status )
29182 ol_cv_berkeley_db_version=no
29184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29192 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29193 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29195 if test $ol_cv_berkeley_db_version = no ; then
29196 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29197 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29198 { (exit 1); exit 1; }; }
29201 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29202 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29203 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29204 echo $ECHO_N "(cached) $ECHO_C" >&6
29208 LIBS="$LTHREAD_LIBS $LIBS"
29209 if test $ol_cv_lib_db != yes ; then
29210 LIBS="$ol_cv_lib_db $LIBS"
29213 if test "$cross_compiling" = yes; then
29214 ol_cv_berkeley_db_thread=cross
29216 cat >conftest.$ac_ext <<_ACEOF
29219 cat confdefs.h >>conftest.$ac_ext
29220 cat >>conftest.$ac_ext <<_ACEOF
29221 /* end confdefs.h. */
29223 #ifdef HAVE_DB_185_H
29229 #define NULL ((void *)0)
29234 u_int32_t flags = DB_CREATE |
29240 #if DB_VERSION_MAJOR > 2
29241 DB_ENV *env = NULL;
29243 rc = db_env_create( &env, 0 );
29245 flags |= DB_INIT_MPOOL;
29246 #ifdef DB_MPOOL_PRIVATE
29247 flags |= DB_MPOOL_PRIVATE;
29251 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29255 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29256 rc = (env->open)( env, NULL, flags, 0 );
29258 rc = (env->open)( env, NULL, NULL, flags, 0 );
29262 rc = env->close( env, 0 );
29266 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29272 memset( &env, '\0', sizeof(env) );
29274 rc = db_appinit( NULL, NULL, &env, flags );
29277 db_appexit( &env );
29280 unlink("__db_mpool.share");
29281 unlink("__db_lock.share");
29287 rm -f conftest$ac_exeext
29288 if { (ac_try="$ac_link"
29289 case "(($ac_try" in
29290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29291 *) ac_try_echo=$ac_try;;
29293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29294 (eval "$ac_link") 2>&5
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29298 { (case "(($ac_try" in
29299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300 *) ac_try_echo=$ac_try;;
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303 (eval "$ac_try") 2>&5
29305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306 (exit $ac_status); }; }; then
29307 ol_cv_berkeley_db_thread=yes
29309 echo "$as_me: program exited with status $ac_status" >&5
29310 echo "$as_me: failed program was:" >&5
29311 sed 's/^/| /' conftest.$ac_ext >&5
29313 ( exit $ac_status )
29314 ol_cv_berkeley_db_thread=no
29316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29324 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29325 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29327 if test $ol_cv_berkeley_db_thread != no ; then
29329 cat >>confdefs.h <<\_ACEOF
29330 #define HAVE_BERKELEY_DB_THREAD 1
29339 if test $ol_cv_berkeley_db = no ; then
29340 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29341 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29342 { (exit 1); exit 1; }; }
29346 cat >>confdefs.h <<\_ACEOF
29347 #define HAVE_BERKELEY_DB 1
29351 if test $ol_cv_lib_db != yes ; then
29352 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29355 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29361 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29362 BUILD_LIBS_DYNAMIC=shared
29364 cat >>confdefs.h <<\_ACEOF
29365 #define LDAP_LIBS_DYNAMIC 1
29370 BUILD_LIBS_DYNAMIC=static
29374 if test $ol_enable_wrappers != no ; then
29376 for ac_header in tcpd.h
29378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29383 echo $ECHO_N "(cached) $ECHO_C" >&6
29385 ac_res=`eval echo '${'$as_ac_Header'}'`
29386 { echo "$as_me:$LINENO: result: $ac_res" >&5
29387 echo "${ECHO_T}$ac_res" >&6; }
29389 # Is the header compilable?
29390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29392 cat >conftest.$ac_ext <<_ACEOF
29395 cat confdefs.h >>conftest.$ac_ext
29396 cat >>conftest.$ac_ext <<_ACEOF
29397 /* end confdefs.h. */
29398 $ac_includes_default
29399 #include <$ac_header>
29401 rm -f conftest.$ac_objext
29402 if { (ac_try="$ac_compile"
29403 case "(($ac_try" in
29404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405 *) ac_try_echo=$ac_try;;
29407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29408 (eval "$ac_compile") 2>conftest.er1
29410 grep -v '^ *+' conftest.er1 >conftest.err
29412 cat conftest.err >&5
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); } && {
29415 test -z "$ac_c_werror_flag" ||
29416 test ! -s conftest.err
29417 } && test -s conftest.$ac_objext; then
29418 ac_header_compiler=yes
29420 echo "$as_me: failed program was:" >&5
29421 sed 's/^/| /' conftest.$ac_ext >&5
29423 ac_header_compiler=no
29426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29428 echo "${ECHO_T}$ac_header_compiler" >&6; }
29430 # Is the header present?
29431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29433 cat >conftest.$ac_ext <<_ACEOF
29436 cat confdefs.h >>conftest.$ac_ext
29437 cat >>conftest.$ac_ext <<_ACEOF
29438 /* end confdefs.h. */
29439 #include <$ac_header>
29441 if { (ac_try="$ac_cpp conftest.$ac_ext"
29442 case "(($ac_try" in
29443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444 *) ac_try_echo=$ac_try;;
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29449 grep -v '^ *+' conftest.er1 >conftest.err
29451 cat conftest.err >&5
29452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29453 (exit $ac_status); } >/dev/null && {
29454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29455 test ! -s conftest.err
29457 ac_header_preproc=yes
29459 echo "$as_me: failed program was:" >&5
29460 sed 's/^/| /' conftest.$ac_ext >&5
29462 ac_header_preproc=no
29465 rm -f conftest.err conftest.$ac_ext
29466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29467 echo "${ECHO_T}$ac_header_preproc" >&6; }
29469 # So? What about this header?
29470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29476 ac_header_preproc=yes
29479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29492 ## --------------------------------------------- ##
29493 ## Report this to <http://www.openldap.org/its/> ##
29494 ## --------------------------------------------- ##
29496 ) | sed "s/^/$as_me: WARNING: /" >&2
29499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29502 echo $ECHO_N "(cached) $ECHO_C" >&6
29504 eval "$as_ac_Header=\$ac_header_preproc"
29506 ac_res=`eval echo '${'$as_ac_Header'}'`
29507 { echo "$as_me:$LINENO: result: $ac_res" >&5
29508 echo "${ECHO_T}$ac_res" >&6; }
29511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29512 cat >>confdefs.h <<_ACEOF
29513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29516 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29517 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29519 LIBS="$LIBS -lwrap"
29520 cat >conftest.$ac_ext <<_ACEOF
29523 cat confdefs.h >>conftest.$ac_ext
29524 cat >>conftest.$ac_ext <<_ACEOF
29525 /* end confdefs.h. */
29528 int allow_severity = 0;
29529 int deny_severity = 0;
29531 struct request_info *req;
29543 rm -f conftest.$ac_objext conftest$ac_exeext
29544 if { (ac_try="$ac_link"
29545 case "(($ac_try" in
29546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547 *) ac_try_echo=$ac_try;;
29549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550 (eval "$ac_link") 2>conftest.er1
29552 grep -v '^ *+' conftest.er1 >conftest.err
29554 cat conftest.err >&5
29555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 (exit $ac_status); } && {
29557 test -z "$ac_c_werror_flag" ||
29558 test ! -s conftest.err
29559 } && test -s conftest$ac_exeext &&
29560 $as_test_x conftest$ac_exeext; then
29561 { echo "$as_me:$LINENO: result: -lwrap" >&5
29562 echo "${ECHO_T}-lwrap" >&6; }
29566 echo "$as_me: failed program was:" >&5
29567 sed 's/^/| /' conftest.$ac_ext >&5
29571 cat >conftest.$ac_ext <<_ACEOF
29574 cat confdefs.h >>conftest.$ac_ext
29575 cat >>conftest.$ac_ext <<_ACEOF
29576 /* end confdefs.h. */
29579 int allow_severity = 0;
29580 int deny_severity = 0;
29582 struct request_info *req;
29594 rm -f conftest.$ac_objext conftest$ac_exeext
29595 if { (ac_try="$ac_link"
29596 case "(($ac_try" in
29597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29598 *) ac_try_echo=$ac_try;;
29600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29601 (eval "$ac_link") 2>conftest.er1
29603 grep -v '^ *+' conftest.er1 >conftest.err
29605 cat conftest.err >&5
29606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29607 (exit $ac_status); } && {
29608 test -z "$ac_c_werror_flag" ||
29609 test ! -s conftest.err
29610 } && test -s conftest$ac_exeext &&
29611 $as_test_x conftest$ac_exeext; then
29612 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29613 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29615 LIBS="$save_LIBS -lnsl"
29617 echo "$as_me: failed program was:" >&5
29618 sed 's/^/| /' conftest.$ac_ext >&5
29621 { echo "$as_me:$LINENO: result: no" >&5
29622 echo "${ECHO_T}no" >&6; }
29627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29628 conftest$ac_exeext conftest.$ac_ext
29631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29632 conftest$ac_exeext conftest.$ac_ext
29640 if test $have_wrappers = yes ; then
29642 cat >>confdefs.h <<\_ACEOF
29643 #define HAVE_TCPD 1
29647 elif test $ol_enable_wrappers = yes ; then
29648 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29649 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29650 { (exit 1); exit 1; }; }
29652 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29653 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29658 if test $ol_enable_syslog != no ; then
29659 { echo "$as_me:$LINENO: checking for openlog" >&5
29660 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29661 if test "${ac_cv_func_openlog+set}" = set; then
29662 echo $ECHO_N "(cached) $ECHO_C" >&6
29664 cat >conftest.$ac_ext <<_ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h. */
29670 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29672 #define openlog innocuous_openlog
29674 /* System header to define __stub macros and hopefully few prototypes,
29675 which can conflict with char openlog (); below.
29676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29677 <limits.h> exists even on freestanding compilers. */
29680 # include <limits.h>
29682 # include <assert.h>
29687 /* Override any GCC internal prototype to avoid an error.
29688 Use char because int might match the return type of a GCC
29689 builtin and then its argument prototype would still apply. */
29694 /* The GNU C library defines this for functions which it implements
29695 to always fail with ENOSYS. Some functions are actually named
29696 something starting with __ and the normal name is an alias. */
29697 #if defined __stub_openlog || defined __stub___openlog
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713 *) ac_try_echo=$ac_try;;
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716 (eval "$ac_link") 2>conftest.er1
29718 grep -v '^ *+' conftest.er1 >conftest.err
29720 cat conftest.err >&5
29721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722 (exit $ac_status); } && {
29723 test -z "$ac_c_werror_flag" ||
29724 test ! -s conftest.err
29725 } && test -s conftest$ac_exeext &&
29726 $as_test_x conftest$ac_exeext; then
29727 ac_cv_func_openlog=yes
29729 echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29732 ac_cv_func_openlog=no
29735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29736 conftest$ac_exeext conftest.$ac_ext
29738 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29739 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29741 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29742 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29743 echo "$as_me: error: could not find syslog" >&2;}
29744 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29746 ol_enable_syslog=$ac_cv_func_openlog
29750 if test $ol_enable_sql != no ; then
29753 for ac_header in sql.h sqlext.h
29755 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29760 echo $ECHO_N "(cached) $ECHO_C" >&6
29762 ac_res=`eval echo '${'$as_ac_Header'}'`
29763 { echo "$as_me:$LINENO: result: $ac_res" >&5
29764 echo "${ECHO_T}$ac_res" >&6; }
29766 # Is the header compilable?
29767 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29768 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h. */
29775 $ac_includes_default
29776 #include <$ac_header>
29778 rm -f conftest.$ac_objext
29779 if { (ac_try="$ac_compile"
29780 case "(($ac_try" in
29781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782 *) ac_try_echo=$ac_try;;
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785 (eval "$ac_compile") 2>conftest.er1
29787 grep -v '^ *+' conftest.er1 >conftest.err
29789 cat conftest.err >&5
29790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791 (exit $ac_status); } && {
29792 test -z "$ac_c_werror_flag" ||
29793 test ! -s conftest.err
29794 } && test -s conftest.$ac_objext; then
29795 ac_header_compiler=yes
29797 echo "$as_me: failed program was:" >&5
29798 sed 's/^/| /' conftest.$ac_ext >&5
29800 ac_header_compiler=no
29803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29804 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29805 echo "${ECHO_T}$ac_header_compiler" >&6; }
29807 # Is the header present?
29808 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29810 cat >conftest.$ac_ext <<_ACEOF
29813 cat confdefs.h >>conftest.$ac_ext
29814 cat >>conftest.$ac_ext <<_ACEOF
29815 /* end confdefs.h. */
29816 #include <$ac_header>
29818 if { (ac_try="$ac_cpp conftest.$ac_ext"
29819 case "(($ac_try" in
29820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29821 *) ac_try_echo=$ac_try;;
29823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29826 grep -v '^ *+' conftest.er1 >conftest.err
29828 cat conftest.err >&5
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } >/dev/null && {
29831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29832 test ! -s conftest.err
29834 ac_header_preproc=yes
29836 echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29839 ac_header_preproc=no
29842 rm -f conftest.err conftest.$ac_ext
29843 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29844 echo "${ECHO_T}$ac_header_preproc" >&6; }
29846 # So? What about this header?
29847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29850 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29852 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29853 ac_header_preproc=yes
29856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29857 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29859 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29861 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29863 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29865 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29867 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29869 ## --------------------------------------------- ##
29870 ## Report this to <http://www.openldap.org/its/> ##
29871 ## --------------------------------------------- ##
29873 ) | sed "s/^/$as_me: WARNING: /" >&2
29876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29879 echo $ECHO_N "(cached) $ECHO_C" >&6
29881 eval "$as_ac_Header=\$ac_header_preproc"
29883 ac_res=`eval echo '${'$as_ac_Header'}'`
29884 { echo "$as_me:$LINENO: result: $ac_res" >&5
29885 echo "${ECHO_T}$ac_res" >&6; }
29888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29889 cat >>confdefs.h <<_ACEOF
29890 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29895 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29896 echo "$as_me: error: could not locate SQL headers" >&2;}
29897 { (exit 1); exit 1; }; }
29905 LIBS="$LTHREAD_LIBS"
29907 if test $ol_with_odbc = auto ; then
29908 ol_with_odbc="iodbc unixodbc odbc32"
29911 for odbc in $ol_with_odbc ; do
29912 if test $ol_link_sql = no ; then
29915 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29916 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29917 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29918 echo $ECHO_N "(cached) $ECHO_C" >&6
29920 ac_check_lib_save_LIBS=$LIBS
29921 LIBS="-liodbc $LIBS"
29922 cat >conftest.$ac_ext <<_ACEOF
29925 cat confdefs.h >>conftest.$ac_ext
29926 cat >>conftest.$ac_ext <<_ACEOF
29927 /* end confdefs.h. */
29929 /* Override any GCC internal prototype to avoid an error.
29930 Use char because int might match the return type of a GCC
29931 builtin and then its argument prototype would still apply. */
29935 char SQLDriverConnect ();
29939 return SQLDriverConnect ();
29944 rm -f conftest.$ac_objext conftest$ac_exeext
29945 if { (ac_try="$ac_link"
29946 case "(($ac_try" in
29947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29948 *) ac_try_echo=$ac_try;;
29950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29951 (eval "$ac_link") 2>conftest.er1
29953 grep -v '^ *+' conftest.er1 >conftest.err
29955 cat conftest.err >&5
29956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29957 (exit $ac_status); } && {
29958 test -z "$ac_c_werror_flag" ||
29959 test ! -s conftest.err
29960 } && test -s conftest$ac_exeext &&
29961 $as_test_x conftest$ac_exeext; then
29962 ac_cv_lib_iodbc_SQLDriverConnect=yes
29964 echo "$as_me: failed program was:" >&5
29965 sed 's/^/| /' conftest.$ac_ext >&5
29967 ac_cv_lib_iodbc_SQLDriverConnect=no
29970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29971 conftest$ac_exeext conftest.$ac_ext
29972 LIBS=$ac_check_lib_save_LIBS
29974 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29975 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29976 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29982 if test $have_iodbc = yes ; then
29983 ol_link_sql="-liodbc"
29988 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29989 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29990 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29993 ac_check_lib_save_LIBS=$LIBS
29994 LIBS="-lodbc $LIBS"
29995 cat >conftest.$ac_ext <<_ACEOF
29998 cat confdefs.h >>conftest.$ac_ext
29999 cat >>conftest.$ac_ext <<_ACEOF
30000 /* end confdefs.h. */
30002 /* Override any GCC internal prototype to avoid an error.
30003 Use char because int might match the return type of a GCC
30004 builtin and then its argument prototype would still apply. */
30008 char SQLDriverConnect ();
30012 return SQLDriverConnect ();
30017 rm -f conftest.$ac_objext conftest$ac_exeext
30018 if { (ac_try="$ac_link"
30019 case "(($ac_try" in
30020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30021 *) ac_try_echo=$ac_try;;
30023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30024 (eval "$ac_link") 2>conftest.er1
30026 grep -v '^ *+' conftest.er1 >conftest.err
30028 cat conftest.err >&5
30029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30030 (exit $ac_status); } && {
30031 test -z "$ac_c_werror_flag" ||
30032 test ! -s conftest.err
30033 } && test -s conftest$ac_exeext &&
30034 $as_test_x conftest$ac_exeext; then
30035 ac_cv_lib_odbc_SQLDriverConnect=yes
30037 echo "$as_me: failed program was:" >&5
30038 sed 's/^/| /' conftest.$ac_ext >&5
30040 ac_cv_lib_odbc_SQLDriverConnect=no
30043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30044 conftest$ac_exeext conftest.$ac_ext
30045 LIBS=$ac_check_lib_save_LIBS
30047 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30048 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30049 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30055 if test $have_odbc = yes ; then
30056 ol_link_sql="-lodbc"
30061 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30062 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30063 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30064 echo $ECHO_N "(cached) $ECHO_C" >&6
30066 ac_check_lib_save_LIBS=$LIBS
30067 LIBS="-lodbc32 $LIBS"
30068 cat >conftest.$ac_ext <<_ACEOF
30071 cat confdefs.h >>conftest.$ac_ext
30072 cat >>conftest.$ac_ext <<_ACEOF
30073 /* end confdefs.h. */
30075 /* Override any GCC internal prototype to avoid an error.
30076 Use char because int might match the return type of a GCC
30077 builtin and then its argument prototype would still apply. */
30081 char SQLDriverConnect ();
30085 return SQLDriverConnect ();
30090 rm -f conftest.$ac_objext conftest$ac_exeext
30091 if { (ac_try="$ac_link"
30092 case "(($ac_try" in
30093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30094 *) ac_try_echo=$ac_try;;
30096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30097 (eval "$ac_link") 2>conftest.er1
30099 grep -v '^ *+' conftest.er1 >conftest.err
30101 cat conftest.err >&5
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); } && {
30104 test -z "$ac_c_werror_flag" ||
30105 test ! -s conftest.err
30106 } && test -s conftest$ac_exeext &&
30107 $as_test_x conftest$ac_exeext; then
30108 ac_cv_lib_odbc32_SQLDriverConnect=yes
30110 echo "$as_me: failed program was:" >&5
30111 sed 's/^/| /' conftest.$ac_ext >&5
30113 ac_cv_lib_odbc32_SQLDriverConnect=no
30116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30117 conftest$ac_exeext conftest.$ac_ext
30118 LIBS=$ac_check_lib_save_LIBS
30120 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30121 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30122 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30128 if test $have_odbc32 = yes ; then
30129 ol_link_sql="-lodbc32"
30134 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30135 echo "$as_me: error: unknown ODBC library" >&2;}
30136 { (exit 1); exit 1; }; }
30144 if test $ol_link_sql != no ; then
30145 SLAPD_SQL_LIBS="$ol_link_sql"
30147 elif test $ol_enable_sql != auto ; then
30148 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30149 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30150 { (exit 1); exit 1; }; }
30155 if test $ol_enable_ndb != no ; then
30156 # Extract the first word of "mysql_config", so it can be a program name with args.
30157 set dummy mysql_config; ac_word=$2
30158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30160 if test "${ac_cv_prog_MYSQL+set}" = set; then
30161 echo $ECHO_N "(cached) $ECHO_C" >&6
30163 if test -n "$MYSQL"; then
30164 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30167 for as_dir in $PATH
30170 test -z "$as_dir" && as_dir=.
30171 for ac_exec_ext in '' $ac_executable_extensions; do
30172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30173 ac_cv_prog_MYSQL="yes"
30174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30183 MYSQL=$ac_cv_prog_MYSQL
30184 if test -n "$MYSQL"; then
30185 { echo "$as_me:$LINENO: result: $MYSQL" >&5
30186 echo "${ECHO_T}$MYSQL" >&6; }
30188 { echo "$as_me:$LINENO: result: no" >&5
30189 echo "${ECHO_T}no" >&6; }
30193 if test "$MYSQL" != yes ; then
30194 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30195 echo "$as_me: error: could not locate mysql_config" >&2;}
30196 { (exit 1); exit 1; }; }
30199 SQL_INC=`mysql_config --include`
30200 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30202 save_CPPFLAGS="$CPPFLAGS"
30203 CPPFLAGS="$SLAPD_NDB_INCS"
30204 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30205 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30206 cat >conftest.$ac_ext <<_ACEOF
30209 cat confdefs.h >>conftest.$ac_ext
30210 cat >>conftest.$ac_ext <<_ACEOF
30211 /* end confdefs.h. */
30212 #include <NdbApi.hpp>
30214 if { (ac_try="$ac_cpp conftest.$ac_ext"
30215 case "(($ac_try" in
30216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30217 *) ac_try_echo=$ac_try;;
30219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30222 grep -v '^ *+' conftest.er1 >conftest.err
30224 cat conftest.err >&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); } >/dev/null && {
30227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30228 test ! -s conftest.err
30230 { echo "$as_me:$LINENO: result: yes" >&5
30231 echo "${ECHO_T}yes" >&6; }
30233 echo "$as_me: failed program was:" >&5
30234 sed 's/^/| /' conftest.$ac_ext >&5
30236 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30237 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30238 { (exit 1); exit 1; }; }
30242 rm -f conftest.err conftest.$ac_ext
30243 CPPFLAGS="$save_CPPFLAGS"
30245 SQL_LIB=`mysql_config --libs_r`
30246 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30248 save_LDFLAGS="$LDFLAGS"
30251 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30252 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30253 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30254 echo $ECHO_N "(cached) $ECHO_C" >&6
30256 ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-lndbclient -lstdc++ $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h. */
30265 /* Override any GCC internal prototype to avoid an error.
30266 Use char because int might match the return type of a GCC
30267 builtin and then its argument prototype would still apply. */
30275 return ndb_init ();
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284 *) ac_try_echo=$ac_try;;
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287 (eval "$ac_link") 2>conftest.er1
30289 grep -v '^ *+' conftest.er1 >conftest.err
30291 cat conftest.err >&5
30292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293 (exit $ac_status); } && {
30294 test -z "$ac_c_werror_flag" ||
30295 test ! -s conftest.err
30296 } && test -s conftest$ac_exeext &&
30297 $as_test_x conftest$ac_exeext; then
30298 ac_cv_lib_ndbclient_ndb_init=yes
30300 echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30303 ac_cv_lib_ndbclient_ndb_init=no
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307 conftest$ac_exeext conftest.$ac_ext
30308 LIBS=$ac_check_lib_save_LIBS
30310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30311 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30312 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30316 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30317 echo "$as_me: error: could not locate ndbclient library" >&2;}
30318 { (exit 1); exit 1; }; }
30323 LDFLAGS="$save_LDFLAGS"
30325 if test "$ol_enable_ndb" = yes ; then
30326 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30332 for ac_header in unicode/utypes.h
30334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30339 echo $ECHO_N "(cached) $ECHO_C" >&6
30341 ac_res=`eval echo '${'$as_ac_Header'}'`
30342 { echo "$as_me:$LINENO: result: $ac_res" >&5
30343 echo "${ECHO_T}$ac_res" >&6; }
30345 # Is the header compilable?
30346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30348 cat >conftest.$ac_ext <<_ACEOF
30351 cat confdefs.h >>conftest.$ac_ext
30352 cat >>conftest.$ac_ext <<_ACEOF
30353 /* end confdefs.h. */
30354 $ac_includes_default
30355 #include <$ac_header>
30357 rm -f conftest.$ac_objext
30358 if { (ac_try="$ac_compile"
30359 case "(($ac_try" in
30360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30361 *) ac_try_echo=$ac_try;;
30363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30364 (eval "$ac_compile") 2>conftest.er1
30366 grep -v '^ *+' conftest.er1 >conftest.err
30368 cat conftest.err >&5
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } && {
30371 test -z "$ac_c_werror_flag" ||
30372 test ! -s conftest.err
30373 } && test -s conftest.$ac_objext; then
30374 ac_header_compiler=yes
30376 echo "$as_me: failed program was:" >&5
30377 sed 's/^/| /' conftest.$ac_ext >&5
30379 ac_header_compiler=no
30382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30383 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30384 echo "${ECHO_T}$ac_header_compiler" >&6; }
30386 # Is the header present?
30387 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30388 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30389 cat >conftest.$ac_ext <<_ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h. */
30395 #include <$ac_header>
30397 if { (ac_try="$ac_cpp conftest.$ac_ext"
30398 case "(($ac_try" in
30399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400 *) ac_try_echo=$ac_try;;
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30405 grep -v '^ *+' conftest.er1 >conftest.err
30407 cat conftest.err >&5
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); } >/dev/null && {
30410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30411 test ! -s conftest.err
30413 ac_header_preproc=yes
30415 echo "$as_me: failed program was:" >&5
30416 sed 's/^/| /' conftest.$ac_ext >&5
30418 ac_header_preproc=no
30421 rm -f conftest.err conftest.$ac_ext
30422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30423 echo "${ECHO_T}$ac_header_preproc" >&6; }
30425 # So? What about this header?
30426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30432 ac_header_preproc=yes
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30438 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30442 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30448 ## --------------------------------------------- ##
30449 ## Report this to <http://www.openldap.org/its/> ##
30450 ## --------------------------------------------- ##
30452 ) | sed "s/^/$as_me: WARNING: /" >&2
30455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30458 echo $ECHO_N "(cached) $ECHO_C" >&6
30460 eval "$as_ac_Header=\$ac_header_preproc"
30462 ac_res=`eval echo '${'$as_ac_Header'}'`
30463 { echo "$as_me:$LINENO: result: $ac_res" >&5
30464 echo "${ECHO_T}$ac_res" >&6; }
30467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30468 cat >>confdefs.h <<_ACEOF
30469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30476 if test $ac_cv_header_unicode_utypes_h = yes ; then
30477 OL_ICULIBS="-licuuc -licudata"
30479 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30480 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30481 if test "${ol_cv_lib_icu+set}" = set; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30486 LIBS="$OL_ICULIBS $LIBS"
30487 cat >conftest.$ac_ext <<_ACEOF
30490 cat confdefs.h >>conftest.$ac_ext
30491 cat >>conftest.$ac_ext <<_ACEOF
30492 /* end confdefs.h. */
30494 #include <unicode/utypes.h>
30500 (void) u_errorName(0);
30506 rm -f conftest.$ac_objext conftest$ac_exeext
30507 if { (ac_try="$ac_link"
30508 case "(($ac_try" in
30509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30510 *) ac_try_echo=$ac_try;;
30512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30513 (eval "$ac_link") 2>conftest.er1
30515 grep -v '^ *+' conftest.er1 >conftest.err
30517 cat conftest.err >&5
30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30519 (exit $ac_status); } && {
30520 test -z "$ac_c_werror_flag" ||
30521 test ! -s conftest.err
30522 } && test -s conftest$ac_exeext &&
30523 $as_test_x conftest$ac_exeext; then
30526 echo "$as_me: failed program was:" >&5
30527 sed 's/^/| /' conftest.$ac_ext >&5
30532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30533 conftest$ac_exeext conftest.$ac_ext
30537 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30538 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30540 if test $ol_cv_lib_icu != no ; then
30541 ol_icu="$OL_ICULIBS"
30543 cat >>confdefs.h <<\_ACEOF
30550 if test "$ol_icu" = no ; then
30551 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30552 echo "$as_me: WARNING: ICU not available" >&2;}
30559 if test $ol_with_cyrus_sasl != no ; then
30562 for ac_header in sasl/sasl.h sasl.h
30564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30569 echo $ECHO_N "(cached) $ECHO_C" >&6
30571 ac_res=`eval echo '${'$as_ac_Header'}'`
30572 { echo "$as_me:$LINENO: result: $ac_res" >&5
30573 echo "${ECHO_T}$ac_res" >&6; }
30575 # Is the header compilable?
30576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30578 cat >conftest.$ac_ext <<_ACEOF
30581 cat confdefs.h >>conftest.$ac_ext
30582 cat >>conftest.$ac_ext <<_ACEOF
30583 /* end confdefs.h. */
30584 $ac_includes_default
30585 #include <$ac_header>
30587 rm -f conftest.$ac_objext
30588 if { (ac_try="$ac_compile"
30589 case "(($ac_try" in
30590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30591 *) ac_try_echo=$ac_try;;
30593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30594 (eval "$ac_compile") 2>conftest.er1
30596 grep -v '^ *+' conftest.er1 >conftest.err
30598 cat conftest.err >&5
30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); } && {
30601 test -z "$ac_c_werror_flag" ||
30602 test ! -s conftest.err
30603 } && test -s conftest.$ac_objext; then
30604 ac_header_compiler=yes
30606 echo "$as_me: failed program was:" >&5
30607 sed 's/^/| /' conftest.$ac_ext >&5
30609 ac_header_compiler=no
30612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30614 echo "${ECHO_T}$ac_header_compiler" >&6; }
30616 # Is the header present?
30617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30619 cat >conftest.$ac_ext <<_ACEOF
30622 cat confdefs.h >>conftest.$ac_ext
30623 cat >>conftest.$ac_ext <<_ACEOF
30624 /* end confdefs.h. */
30625 #include <$ac_header>
30627 if { (ac_try="$ac_cpp conftest.$ac_ext"
30628 case "(($ac_try" in
30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30630 *) ac_try_echo=$ac_try;;
30632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30635 grep -v '^ *+' conftest.er1 >conftest.err
30637 cat conftest.err >&5
30638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30639 (exit $ac_status); } >/dev/null && {
30640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30641 test ! -s conftest.err
30643 ac_header_preproc=yes
30645 echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.$ac_ext >&5
30648 ac_header_preproc=no
30651 rm -f conftest.err conftest.$ac_ext
30652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30653 echo "${ECHO_T}$ac_header_preproc" >&6; }
30655 # So? What about this header?
30656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30662 ac_header_preproc=yes
30665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30678 ## --------------------------------------------- ##
30679 ## Report this to <http://www.openldap.org/its/> ##
30680 ## --------------------------------------------- ##
30682 ) | sed "s/^/$as_me: WARNING: /" >&2
30685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30688 echo $ECHO_N "(cached) $ECHO_C" >&6
30690 eval "$as_ac_Header=\$ac_header_preproc"
30692 ac_res=`eval echo '${'$as_ac_Header'}'`
30693 { echo "$as_me:$LINENO: result: $ac_res" >&5
30694 echo "${ECHO_T}$ac_res" >&6; }
30697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30698 cat >>confdefs.h <<_ACEOF
30699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30707 if test $ac_cv_header_sasl_sasl_h = yes ||
30708 test $ac_cv_header_sasl_h = yes; then
30709 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30710 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30711 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30712 echo $ECHO_N "(cached) $ECHO_C" >&6
30714 ac_check_lib_save_LIBS=$LIBS
30715 LIBS="-lsasl2 $LIBS"
30716 cat >conftest.$ac_ext <<_ACEOF
30719 cat confdefs.h >>conftest.$ac_ext
30720 cat >>conftest.$ac_ext <<_ACEOF
30721 /* end confdefs.h. */
30723 /* Override any GCC internal prototype to avoid an error.
30724 Use char because int might match the return type of a GCC
30725 builtin and then its argument prototype would still apply. */
30729 char sasl_client_init ();
30733 return sasl_client_init ();
30738 rm -f conftest.$ac_objext conftest$ac_exeext
30739 if { (ac_try="$ac_link"
30740 case "(($ac_try" in
30741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30742 *) ac_try_echo=$ac_try;;
30744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30745 (eval "$ac_link") 2>conftest.er1
30747 grep -v '^ *+' conftest.er1 >conftest.err
30749 cat conftest.err >&5
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } && {
30752 test -z "$ac_c_werror_flag" ||
30753 test ! -s conftest.err
30754 } && test -s conftest$ac_exeext &&
30755 $as_test_x conftest$ac_exeext; then
30756 ac_cv_lib_sasl2_sasl_client_init=yes
30758 echo "$as_me: failed program was:" >&5
30759 sed 's/^/| /' conftest.$ac_ext >&5
30761 ac_cv_lib_sasl2_sasl_client_init=no
30764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30765 conftest$ac_exeext conftest.$ac_ext
30766 LIBS=$ac_check_lib_save_LIBS
30768 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30769 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30770 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30771 ol_link_sasl="-lsasl2"
30773 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30774 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30775 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30776 echo $ECHO_N "(cached) $ECHO_C" >&6
30778 ac_check_lib_save_LIBS=$LIBS
30779 LIBS="-lsasl $LIBS"
30780 cat >conftest.$ac_ext <<_ACEOF
30783 cat confdefs.h >>conftest.$ac_ext
30784 cat >>conftest.$ac_ext <<_ACEOF
30785 /* end confdefs.h. */
30787 /* Override any GCC internal prototype to avoid an error.
30788 Use char because int might match the return type of a GCC
30789 builtin and then its argument prototype would still apply. */
30793 char sasl_client_init ();
30797 return sasl_client_init ();
30802 rm -f conftest.$ac_objext conftest$ac_exeext
30803 if { (ac_try="$ac_link"
30804 case "(($ac_try" in
30805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806 *) ac_try_echo=$ac_try;;
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809 (eval "$ac_link") 2>conftest.er1
30811 grep -v '^ *+' conftest.er1 >conftest.err
30813 cat conftest.err >&5
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); } && {
30816 test -z "$ac_c_werror_flag" ||
30817 test ! -s conftest.err
30818 } && test -s conftest$ac_exeext &&
30819 $as_test_x conftest$ac_exeext; then
30820 ac_cv_lib_sasl_sasl_client_init=yes
30822 echo "$as_me: failed program was:" >&5
30823 sed 's/^/| /' conftest.$ac_ext >&5
30825 ac_cv_lib_sasl_sasl_client_init=no
30828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30829 conftest$ac_exeext conftest.$ac_ext
30830 LIBS=$ac_check_lib_save_LIBS
30832 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30833 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30834 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30835 ol_link_sasl="-lsasl"
30842 if test $ol_link_sasl = no ; then
30843 if test $ol_with_cyrus_sasl != auto ; then
30844 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30845 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30846 { (exit 1); exit 1; }; }
30848 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30849 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30850 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30851 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30852 if test $ol_link_tls = no ; then
30853 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30854 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30858 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30859 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30860 if test "${ol_cv_sasl_compat+set}" = set; then
30861 echo $ECHO_N "(cached) $ECHO_C" >&6
30864 cat >conftest.$ac_ext <<_ACEOF
30867 cat confdefs.h >>conftest.$ac_ext
30868 cat >>conftest.$ac_ext <<_ACEOF
30869 /* end confdefs.h. */
30871 #ifdef HAVE_SASL_SASL_H
30872 #include <sasl/sasl.h>
30877 /* Require 2.1.15+ */
30878 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30879 char *__sasl_compat = "2.2+ or better okay (we guess)";
30880 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30881 && SASL_VERSION_STEP >=15
30882 char *__sasl_compat = "2.1.15+ or better okay";
30886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30887 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30888 ol_cv_sasl_compat=yes
30890 ol_cv_sasl_compat=no
30895 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30896 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30898 if test $ol_cv_sasl_compat = no ; then
30900 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30901 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30902 { (exit 1); exit 1; }; }
30906 cat >>confdefs.h <<\_ACEOF
30907 #define HAVE_CYRUS_SASL 1
30910 SASL_LIBS="$ol_link_sasl"
30911 if test $ol_enable_spasswd != no ; then
30912 ol_link_spasswd=yes
30915 ac_save_LIBS="$LIBS"
30916 LIBS="$LIBS $ol_link_sasl"
30917 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30918 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30919 if test "${ac_cv_func_sasl_version+set}" = set; then
30920 echo $ECHO_N "(cached) $ECHO_C" >&6
30922 cat >conftest.$ac_ext <<_ACEOF
30925 cat confdefs.h >>conftest.$ac_ext
30926 cat >>conftest.$ac_ext <<_ACEOF
30927 /* end confdefs.h. */
30928 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30930 #define sasl_version innocuous_sasl_version
30932 /* System header to define __stub macros and hopefully few prototypes,
30933 which can conflict with char sasl_version (); below.
30934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30935 <limits.h> exists even on freestanding compilers. */
30938 # include <limits.h>
30940 # include <assert.h>
30943 #undef sasl_version
30945 /* Override any GCC internal prototype to avoid an error.
30946 Use char because int might match the return type of a GCC
30947 builtin and then its argument prototype would still apply. */
30951 char sasl_version ();
30952 /* The GNU C library defines this for functions which it implements
30953 to always fail with ENOSYS. Some functions are actually named
30954 something starting with __ and the normal name is an alias. */
30955 #if defined __stub_sasl_version || defined __stub___sasl_version
30962 return sasl_version ();
30967 rm -f conftest.$ac_objext conftest$ac_exeext
30968 if { (ac_try="$ac_link"
30969 case "(($ac_try" in
30970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30971 *) ac_try_echo=$ac_try;;
30973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30974 (eval "$ac_link") 2>conftest.er1
30976 grep -v '^ *+' conftest.er1 >conftest.err
30978 cat conftest.err >&5
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); } && {
30981 test -z "$ac_c_werror_flag" ||
30982 test ! -s conftest.err
30983 } && test -s conftest$ac_exeext &&
30984 $as_test_x conftest$ac_exeext; then
30985 ac_cv_func_sasl_version=yes
30987 echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30990 ac_cv_func_sasl_version=no
30993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30994 conftest$ac_exeext conftest.$ac_ext
30996 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30997 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30998 if test $ac_cv_func_sasl_version = yes; then
31000 cat >>confdefs.h <<\_ACEOF
31001 #define HAVE_SASL_VERSION 1
31006 LIBS="$ac_save_LIBS"
31012 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31013 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31014 if test $ol_link_tls = no ; then
31015 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31016 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31020 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31022 if test -r /dev/urandom ; then
31023 dev="/dev/urandom";
31024 elif test -r /idev/urandom ; then
31025 dev="/idev/urandom";
31026 elif test -r /dev/srandom ; then
31027 dev="/dev/srandom";
31028 elif test -r /dev/random ; then
31030 elif test -r /idev/random ; then
31031 dev="/idev/random";
31034 if test $dev != no ; then
31036 cat >>confdefs.h <<_ACEOF
31037 #define URANDOM_DEVICE "$dev"
31044 if test $ol_with_fetch != no ; then
31046 LIBS="-lfetch -lcom_err $LIBS"
31047 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31048 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31049 if test "${ol_cv_lib_fetch+set}" = set; then
31050 echo $ECHO_N "(cached) $ECHO_C" >&6
31053 cat >conftest.$ac_ext <<_ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h. */
31060 #ifdef HAVE_SYS_PARAM_H
31061 #include <sys/param.h>
31068 struct url *u = fetchParseURL("file:///");
31073 rm -f conftest.$ac_objext conftest$ac_exeext
31074 if { (ac_try="$ac_link"
31075 case "(($ac_try" in
31076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31077 *) ac_try_echo=$ac_try;;
31079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31080 (eval "$ac_link") 2>conftest.er1
31082 grep -v '^ *+' conftest.er1 >conftest.err
31084 cat conftest.err >&5
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); } && {
31087 test -z "$ac_c_werror_flag" ||
31088 test ! -s conftest.err
31089 } && test -s conftest$ac_exeext &&
31090 $as_test_x conftest$ac_exeext; then
31091 ol_cv_lib_fetch=yes
31093 echo "$as_me: failed program was:" >&5
31094 sed 's/^/| /' conftest.$ac_ext >&5
31099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31100 conftest$ac_exeext conftest.$ac_ext
31102 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31103 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31105 if test $ol_cv_lib_fetch != no ; then
31106 ol_link_fetch="-lfetch -lcom_err"
31108 cat >>confdefs.h <<\_ACEOF
31109 #define HAVE_FETCH 1
31115 if test $ol_cv_lib_fetch != no ; then
31116 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31117 ol_link_fetch=freebsd
31119 elif test $ol_with_fetch != auto ; then
31120 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31121 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31122 { (exit 1); exit 1; }; }
31126 if test $ol_enable_crypt != no ; then
31128 LIBS="$TLS_LIBS $LIBS"
31130 { echo "$as_me:$LINENO: checking for crypt" >&5
31131 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31132 if test "${ac_cv_func_crypt+set}" = set; then
31133 echo $ECHO_N "(cached) $ECHO_C" >&6
31135 cat >conftest.$ac_ext <<_ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h. */
31141 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31143 #define crypt innocuous_crypt
31145 /* System header to define __stub macros and hopefully few prototypes,
31146 which can conflict with char crypt (); below.
31147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31148 <limits.h> exists even on freestanding compilers. */
31151 # include <limits.h>
31153 # include <assert.h>
31158 /* Override any GCC internal prototype to avoid an error.
31159 Use char because int might match the return type of a GCC
31160 builtin and then its argument prototype would still apply. */
31165 /* The GNU C library defines this for functions which it implements
31166 to always fail with ENOSYS. Some functions are actually named
31167 something starting with __ and the normal name is an alias. */
31168 #if defined __stub_crypt || defined __stub___crypt
31180 rm -f conftest.$ac_objext conftest$ac_exeext
31181 if { (ac_try="$ac_link"
31182 case "(($ac_try" in
31183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31184 *) ac_try_echo=$ac_try;;
31186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31187 (eval "$ac_link") 2>conftest.er1
31189 grep -v '^ *+' conftest.er1 >conftest.err
31191 cat conftest.err >&5
31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31193 (exit $ac_status); } && {
31194 test -z "$ac_c_werror_flag" ||
31195 test ! -s conftest.err
31196 } && test -s conftest$ac_exeext &&
31197 $as_test_x conftest$ac_exeext; then
31198 ac_cv_func_crypt=yes
31200 echo "$as_me: failed program was:" >&5
31201 sed 's/^/| /' conftest.$ac_ext >&5
31203 ac_cv_func_crypt=no
31206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31207 conftest$ac_exeext conftest.$ac_ext
31209 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31210 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31211 if test $ac_cv_func_crypt = yes; then
31216 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31217 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31218 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31221 ac_check_lib_save_LIBS=$LIBS
31222 LIBS="-lcrypt $LIBS"
31223 cat >conftest.$ac_ext <<_ACEOF
31226 cat confdefs.h >>conftest.$ac_ext
31227 cat >>conftest.$ac_ext <<_ACEOF
31228 /* end confdefs.h. */
31230 /* Override any GCC internal prototype to avoid an error.
31231 Use char because int might match the return type of a GCC
31232 builtin and then its argument prototype would still apply. */
31245 rm -f conftest.$ac_objext conftest$ac_exeext
31246 if { (ac_try="$ac_link"
31247 case "(($ac_try" in
31248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31249 *) ac_try_echo=$ac_try;;
31251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31252 (eval "$ac_link") 2>conftest.er1
31254 grep -v '^ *+' conftest.er1 >conftest.err
31256 cat conftest.err >&5
31257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31258 (exit $ac_status); } && {
31259 test -z "$ac_c_werror_flag" ||
31260 test ! -s conftest.err
31261 } && test -s conftest$ac_exeext &&
31262 $as_test_x conftest$ac_exeext; then
31263 ac_cv_lib_crypt_crypt=yes
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ac_cv_lib_crypt_crypt=no
31271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31272 conftest$ac_exeext conftest.$ac_ext
31273 LIBS=$ac_check_lib_save_LIBS
31275 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31276 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31277 if test $ac_cv_lib_crypt_crypt = yes; then
31278 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31289 if test $have_crypt = yes ; then
31291 cat >>confdefs.h <<\_ACEOF
31292 #define HAVE_CRYPT 1
31296 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31297 echo "$as_me: WARNING: could not find crypt" >&2;}
31298 if test $ol_enable_crypt = yes ; then
31299 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31300 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31301 { (exit 1); exit 1; }; }
31304 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31305 echo "$as_me: WARNING: disabling crypt support" >&2;}
31310 if test $ol_enable_proctitle != no ; then
31311 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31312 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31313 if test "${ac_cv_func_setproctitle+set}" = set; then
31314 echo $ECHO_N "(cached) $ECHO_C" >&6
31316 cat >conftest.$ac_ext <<_ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h. */
31322 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31324 #define setproctitle innocuous_setproctitle
31326 /* System header to define __stub macros and hopefully few prototypes,
31327 which can conflict with char setproctitle (); below.
31328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31329 <limits.h> exists even on freestanding compilers. */
31332 # include <limits.h>
31334 # include <assert.h>
31337 #undef setproctitle
31339 /* Override any GCC internal prototype to avoid an error.
31340 Use char because int might match the return type of a GCC
31341 builtin and then its argument prototype would still apply. */
31345 char setproctitle ();
31346 /* The GNU C library defines this for functions which it implements
31347 to always fail with ENOSYS. Some functions are actually named
31348 something starting with __ and the normal name is an alias. */
31349 #if defined __stub_setproctitle || defined __stub___setproctitle
31356 return setproctitle ();
31361 rm -f conftest.$ac_objext conftest$ac_exeext
31362 if { (ac_try="$ac_link"
31363 case "(($ac_try" in
31364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365 *) ac_try_echo=$ac_try;;
31367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368 (eval "$ac_link") 2>conftest.er1
31370 grep -v '^ *+' conftest.er1 >conftest.err
31372 cat conftest.err >&5
31373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374 (exit $ac_status); } && {
31375 test -z "$ac_c_werror_flag" ||
31376 test ! -s conftest.err
31377 } && test -s conftest$ac_exeext &&
31378 $as_test_x conftest$ac_exeext; then
31379 ac_cv_func_setproctitle=yes
31381 echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31384 ac_cv_func_setproctitle=no
31387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31388 conftest$ac_exeext conftest.$ac_ext
31390 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31391 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31392 if test $ac_cv_func_setproctitle = yes; then
31393 have_setproctitle=yes
31396 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31397 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31398 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31399 echo $ECHO_N "(cached) $ECHO_C" >&6
31401 ac_check_lib_save_LIBS=$LIBS
31402 LIBS="-lutil $LIBS"
31403 cat >conftest.$ac_ext <<_ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h. */
31410 /* Override any GCC internal prototype to avoid an error.
31411 Use char because int might match the return type of a GCC
31412 builtin and then its argument prototype would still apply. */
31416 char setproctitle ();
31420 return setproctitle ();
31425 rm -f conftest.$ac_objext conftest$ac_exeext
31426 if { (ac_try="$ac_link"
31427 case "(($ac_try" in
31428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429 *) ac_try_echo=$ac_try;;
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432 (eval "$ac_link") 2>conftest.er1
31434 grep -v '^ *+' conftest.er1 >conftest.err
31436 cat conftest.err >&5
31437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438 (exit $ac_status); } && {
31439 test -z "$ac_c_werror_flag" ||
31440 test ! -s conftest.err
31441 } && test -s conftest$ac_exeext &&
31442 $as_test_x conftest$ac_exeext; then
31443 ac_cv_lib_util_setproctitle=yes
31445 echo "$as_me: failed program was:" >&5
31446 sed 's/^/| /' conftest.$ac_ext >&5
31448 ac_cv_lib_util_setproctitle=no
31451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31452 conftest$ac_exeext conftest.$ac_ext
31453 LIBS=$ac_check_lib_save_LIBS
31455 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31456 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31457 if test $ac_cv_lib_util_setproctitle = yes; then
31458 have_setproctitle=yes
31459 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31461 have_setproctitle=no
31462 case " $LIBOBJS " in
31463 *" setproctitle.$ac_objext "* ) ;;
31464 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31468 LIBSRCS="$LIBSRCS setproctitle.c"
31474 if test $have_setproctitle = yes ; then
31476 cat >>confdefs.h <<\_ACEOF
31477 #define HAVE_SETPROCTITLE 1
31483 if test $ol_enable_slp != no ; then
31485 for ac_header in slp.h
31487 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31492 echo $ECHO_N "(cached) $ECHO_C" >&6
31494 ac_res=`eval echo '${'$as_ac_Header'}'`
31495 { echo "$as_me:$LINENO: result: $ac_res" >&5
31496 echo "${ECHO_T}$ac_res" >&6; }
31498 # Is the header compilable?
31499 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31500 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31501 cat >conftest.$ac_ext <<_ACEOF
31504 cat confdefs.h >>conftest.$ac_ext
31505 cat >>conftest.$ac_ext <<_ACEOF
31506 /* end confdefs.h. */
31507 $ac_includes_default
31508 #include <$ac_header>
31510 rm -f conftest.$ac_objext
31511 if { (ac_try="$ac_compile"
31512 case "(($ac_try" in
31513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31514 *) ac_try_echo=$ac_try;;
31516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31517 (eval "$ac_compile") 2>conftest.er1
31519 grep -v '^ *+' conftest.er1 >conftest.err
31521 cat conftest.err >&5
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } && {
31524 test -z "$ac_c_werror_flag" ||
31525 test ! -s conftest.err
31526 } && test -s conftest.$ac_objext; then
31527 ac_header_compiler=yes
31529 echo "$as_me: failed program was:" >&5
31530 sed 's/^/| /' conftest.$ac_ext >&5
31532 ac_header_compiler=no
31535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31537 echo "${ECHO_T}$ac_header_compiler" >&6; }
31539 # Is the header present?
31540 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31541 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31542 cat >conftest.$ac_ext <<_ACEOF
31545 cat confdefs.h >>conftest.$ac_ext
31546 cat >>conftest.$ac_ext <<_ACEOF
31547 /* end confdefs.h. */
31548 #include <$ac_header>
31550 if { (ac_try="$ac_cpp conftest.$ac_ext"
31551 case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31558 grep -v '^ *+' conftest.er1 >conftest.err
31560 cat conftest.err >&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } >/dev/null && {
31563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31564 test ! -s conftest.err
31566 ac_header_preproc=yes
31568 echo "$as_me: failed program was:" >&5
31569 sed 's/^/| /' conftest.$ac_ext >&5
31571 ac_header_preproc=no
31574 rm -f conftest.err conftest.$ac_ext
31575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31576 echo "${ECHO_T}$ac_header_preproc" >&6; }
31578 # So? What about this header?
31579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31582 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31584 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31585 ac_header_preproc=yes
31588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31589 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31591 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31593 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31595 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31599 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31601 ## --------------------------------------------- ##
31602 ## Report this to <http://www.openldap.org/its/> ##
31603 ## --------------------------------------------- ##
31605 ) | sed "s/^/$as_me: WARNING: /" >&2
31608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31611 echo $ECHO_N "(cached) $ECHO_C" >&6
31613 eval "$as_ac_Header=\$ac_header_preproc"
31615 ac_res=`eval echo '${'$as_ac_Header'}'`
31616 { echo "$as_me:$LINENO: result: $ac_res" >&5
31617 echo "${ECHO_T}$ac_res" >&6; }
31620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31621 cat >>confdefs.h <<_ACEOF
31622 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31630 if test $ac_cv_header_slp_h = yes ; then
31631 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31632 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31633 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 ac_check_lib_save_LIBS=$LIBS
31638 cat >conftest.$ac_ext <<_ACEOF
31641 cat confdefs.h >>conftest.$ac_ext
31642 cat >>conftest.$ac_ext <<_ACEOF
31643 /* end confdefs.h. */
31645 /* Override any GCC internal prototype to avoid an error.
31646 Use char because int might match the return type of a GCC
31647 builtin and then its argument prototype would still apply. */
31660 rm -f conftest.$ac_objext conftest$ac_exeext
31661 if { (ac_try="$ac_link"
31662 case "(($ac_try" in
31663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31664 *) ac_try_echo=$ac_try;;
31666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31667 (eval "$ac_link") 2>conftest.er1
31669 grep -v '^ *+' conftest.er1 >conftest.err
31671 cat conftest.err >&5
31672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31673 (exit $ac_status); } && {
31674 test -z "$ac_c_werror_flag" ||
31675 test ! -s conftest.err
31676 } && test -s conftest$ac_exeext &&
31677 $as_test_x conftest$ac_exeext; then
31678 ac_cv_lib_slp_SLPOpen=yes
31680 echo "$as_me: failed program was:" >&5
31681 sed 's/^/| /' conftest.$ac_ext >&5
31683 ac_cv_lib_slp_SLPOpen=no
31686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31687 conftest$ac_exeext conftest.$ac_ext
31688 LIBS=$ac_check_lib_save_LIBS
31690 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31691 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31692 if test $ac_cv_lib_slp_SLPOpen = yes; then
31698 if test $have_slp = yes ; then
31700 cat >>confdefs.h <<\_ACEOF
31704 SLAPD_SLP_LIBS=-lslp
31707 elif test $ol_enable_slp = yes ; then
31708 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31709 echo "$as_me: error: SLP not found" >&2;}
31710 { (exit 1); exit 1; }; }
31715 { echo "$as_me:$LINENO: checking for mode_t" >&5
31716 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31717 if test "${ac_cv_type_mode_t+set}" = set; then
31718 echo $ECHO_N "(cached) $ECHO_C" >&6
31720 cat >conftest.$ac_ext <<_ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h. */
31726 $ac_includes_default
31727 typedef mode_t ac__type_new_;
31731 if ((ac__type_new_ *) 0)
31733 if (sizeof (ac__type_new_))
31739 rm -f conftest.$ac_objext
31740 if { (ac_try="$ac_compile"
31741 case "(($ac_try" in
31742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31743 *) ac_try_echo=$ac_try;;
31745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31746 (eval "$ac_compile") 2>conftest.er1
31748 grep -v '^ *+' conftest.er1 >conftest.err
31750 cat conftest.err >&5
31751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752 (exit $ac_status); } && {
31753 test -z "$ac_c_werror_flag" ||
31754 test ! -s conftest.err
31755 } && test -s conftest.$ac_objext; then
31756 ac_cv_type_mode_t=yes
31758 echo "$as_me: failed program was:" >&5
31759 sed 's/^/| /' conftest.$ac_ext >&5
31761 ac_cv_type_mode_t=no
31764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31766 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31767 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31768 if test $ac_cv_type_mode_t = yes; then
31772 cat >>confdefs.h <<_ACEOF
31778 { echo "$as_me:$LINENO: checking for off_t" >&5
31779 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31780 if test "${ac_cv_type_off_t+set}" = set; then
31781 echo $ECHO_N "(cached) $ECHO_C" >&6
31783 cat >conftest.$ac_ext <<_ACEOF
31786 cat confdefs.h >>conftest.$ac_ext
31787 cat >>conftest.$ac_ext <<_ACEOF
31788 /* end confdefs.h. */
31789 $ac_includes_default
31790 typedef off_t ac__type_new_;
31794 if ((ac__type_new_ *) 0)
31796 if (sizeof (ac__type_new_))
31802 rm -f conftest.$ac_objext
31803 if { (ac_try="$ac_compile"
31804 case "(($ac_try" in
31805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31806 *) ac_try_echo=$ac_try;;
31808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31809 (eval "$ac_compile") 2>conftest.er1
31811 grep -v '^ *+' conftest.er1 >conftest.err
31813 cat conftest.err >&5
31814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815 (exit $ac_status); } && {
31816 test -z "$ac_c_werror_flag" ||
31817 test ! -s conftest.err
31818 } && test -s conftest.$ac_objext; then
31819 ac_cv_type_off_t=yes
31821 echo "$as_me: failed program was:" >&5
31822 sed 's/^/| /' conftest.$ac_ext >&5
31824 ac_cv_type_off_t=no
31827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31829 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31830 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31831 if test $ac_cv_type_off_t = yes; then
31835 cat >>confdefs.h <<_ACEOF
31841 { echo "$as_me:$LINENO: checking for pid_t" >&5
31842 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31843 if test "${ac_cv_type_pid_t+set}" = set; then
31844 echo $ECHO_N "(cached) $ECHO_C" >&6
31846 cat >conftest.$ac_ext <<_ACEOF
31849 cat confdefs.h >>conftest.$ac_ext
31850 cat >>conftest.$ac_ext <<_ACEOF
31851 /* end confdefs.h. */
31852 $ac_includes_default
31853 typedef pid_t ac__type_new_;
31857 if ((ac__type_new_ *) 0)
31859 if (sizeof (ac__type_new_))
31865 rm -f conftest.$ac_objext
31866 if { (ac_try="$ac_compile"
31867 case "(($ac_try" in
31868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31869 *) ac_try_echo=$ac_try;;
31871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31872 (eval "$ac_compile") 2>conftest.er1
31874 grep -v '^ *+' conftest.er1 >conftest.err
31876 cat conftest.err >&5
31877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878 (exit $ac_status); } && {
31879 test -z "$ac_c_werror_flag" ||
31880 test ! -s conftest.err
31881 } && test -s conftest.$ac_objext; then
31882 ac_cv_type_pid_t=yes
31884 echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.$ac_ext >&5
31887 ac_cv_type_pid_t=no
31890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31892 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31893 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31894 if test $ac_cv_type_pid_t = yes; then
31898 cat >>confdefs.h <<_ACEOF
31904 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31905 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31906 if test "${ac_cv_type_ssize_t+set}" = set; then
31907 echo $ECHO_N "(cached) $ECHO_C" >&6
31909 cat >conftest.$ac_ext <<_ACEOF
31912 cat confdefs.h >>conftest.$ac_ext
31913 cat >>conftest.$ac_ext <<_ACEOF
31914 /* end confdefs.h. */
31915 $ac_includes_default
31916 typedef ssize_t ac__type_new_;
31920 if ((ac__type_new_ *) 0)
31922 if (sizeof (ac__type_new_))
31928 rm -f conftest.$ac_objext
31929 if { (ac_try="$ac_compile"
31930 case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_compile") 2>conftest.er1
31937 grep -v '^ *+' conftest.er1 >conftest.err
31939 cat conftest.err >&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } && {
31942 test -z "$ac_c_werror_flag" ||
31943 test ! -s conftest.err
31944 } && test -s conftest.$ac_objext; then
31945 ac_cv_type_ssize_t=yes
31947 echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31950 ac_cv_type_ssize_t=no
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31955 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31956 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31957 if test $ac_cv_type_ssize_t = yes; then
31961 cat >>confdefs.h <<_ACEOF
31962 #define ssize_t signed int
31967 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31968 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31969 if test "${ac_cv_type_caddr_t+set}" = set; then
31970 echo $ECHO_N "(cached) $ECHO_C" >&6
31972 cat >conftest.$ac_ext <<_ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31978 $ac_includes_default
31979 typedef caddr_t ac__type_new_;
31983 if ((ac__type_new_ *) 0)
31985 if (sizeof (ac__type_new_))
31991 rm -f conftest.$ac_objext
31992 if { (ac_try="$ac_compile"
31993 case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31998 (eval "$ac_compile") 2>conftest.er1
32000 grep -v '^ *+' conftest.er1 >conftest.err
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } && {
32005 test -z "$ac_c_werror_flag" ||
32006 test ! -s conftest.err
32007 } && test -s conftest.$ac_objext; then
32008 ac_cv_type_caddr_t=yes
32010 echo "$as_me: failed program was:" >&5
32011 sed 's/^/| /' conftest.$ac_ext >&5
32013 ac_cv_type_caddr_t=no
32016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32018 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32019 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32020 if test $ac_cv_type_caddr_t = yes; then
32024 cat >>confdefs.h <<_ACEOF
32025 #define caddr_t char *
32030 { echo "$as_me:$LINENO: checking for size_t" >&5
32031 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32032 if test "${ac_cv_type_size_t+set}" = set; then
32033 echo $ECHO_N "(cached) $ECHO_C" >&6
32035 cat >conftest.$ac_ext <<_ACEOF
32038 cat confdefs.h >>conftest.$ac_ext
32039 cat >>conftest.$ac_ext <<_ACEOF
32040 /* end confdefs.h. */
32041 $ac_includes_default
32042 typedef size_t ac__type_new_;
32046 if ((ac__type_new_ *) 0)
32048 if (sizeof (ac__type_new_))
32054 rm -f conftest.$ac_objext
32055 if { (ac_try="$ac_compile"
32056 case "(($ac_try" in
32057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058 *) ac_try_echo=$ac_try;;
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061 (eval "$ac_compile") 2>conftest.er1
32063 grep -v '^ *+' conftest.er1 >conftest.err
32065 cat conftest.err >&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); } && {
32068 test -z "$ac_c_werror_flag" ||
32069 test ! -s conftest.err
32070 } && test -s conftest.$ac_objext; then
32071 ac_cv_type_size_t=yes
32073 echo "$as_me: failed program was:" >&5
32074 sed 's/^/| /' conftest.$ac_ext >&5
32076 ac_cv_type_size_t=no
32079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32081 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32082 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32083 if test $ac_cv_type_size_t = yes; then
32087 cat >>confdefs.h <<_ACEOF
32088 #define size_t unsigned
32094 { echo "$as_me:$LINENO: checking for long long" >&5
32095 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32096 if test "${ac_cv_type_long_long+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32099 cat >conftest.$ac_ext <<_ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32105 $ac_includes_default
32106 typedef long long ac__type_new_;
32110 if ((ac__type_new_ *) 0)
32112 if (sizeof (ac__type_new_))
32118 rm -f conftest.$ac_objext
32119 if { (ac_try="$ac_compile"
32120 case "(($ac_try" in
32121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32122 *) ac_try_echo=$ac_try;;
32124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32125 (eval "$ac_compile") 2>conftest.er1
32127 grep -v '^ *+' conftest.er1 >conftest.err
32129 cat conftest.err >&5
32130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32131 (exit $ac_status); } && {
32132 test -z "$ac_c_werror_flag" ||
32133 test ! -s conftest.err
32134 } && test -s conftest.$ac_objext; then
32135 ac_cv_type_long_long=yes
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ac_cv_type_long_long=no
32143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32145 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32146 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32147 if test $ac_cv_type_long_long = yes; then
32149 cat >>confdefs.h <<_ACEOF
32150 #define HAVE_LONG_LONG 1
32156 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32157 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32158 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
32161 cat >conftest.$ac_ext <<_ACEOF
32164 cat confdefs.h >>conftest.$ac_ext
32165 cat >>conftest.$ac_ext <<_ACEOF
32166 /* end confdefs.h. */
32167 $ac_includes_default
32168 typedef ptrdiff_t ac__type_new_;
32172 if ((ac__type_new_ *) 0)
32174 if (sizeof (ac__type_new_))
32180 rm -f conftest.$ac_objext
32181 if { (ac_try="$ac_compile"
32182 case "(($ac_try" in
32183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32184 *) ac_try_echo=$ac_try;;
32186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32187 (eval "$ac_compile") 2>conftest.er1
32189 grep -v '^ *+' conftest.er1 >conftest.err
32191 cat conftest.err >&5
32192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32193 (exit $ac_status); } && {
32194 test -z "$ac_c_werror_flag" ||
32195 test ! -s conftest.err
32196 } && test -s conftest.$ac_objext; then
32197 ac_cv_type_ptrdiff_t=yes
32199 echo "$as_me: failed program was:" >&5
32200 sed 's/^/| /' conftest.$ac_ext >&5
32202 ac_cv_type_ptrdiff_t=no
32205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32207 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32208 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32209 if test $ac_cv_type_ptrdiff_t = yes; then
32211 cat >>confdefs.h <<_ACEOF
32212 #define HAVE_PTRDIFF_T 1
32220 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32221 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32222 if test "${ac_cv_type_socklen_t+set}" = set; then
32223 echo $ECHO_N "(cached) $ECHO_C" >&6
32225 cat >conftest.$ac_ext <<_ACEOF
32228 cat confdefs.h >>conftest.$ac_ext
32229 cat >>conftest.$ac_ext <<_ACEOF
32230 /* end confdefs.h. */
32231 $ac_includes_default
32232 #ifdef HAVE_SYS_SOCKET_H
32233 #include <sys/socket.h>
32236 typedef socklen_t ac__type_new_;
32240 if ((ac__type_new_ *) 0)
32242 if (sizeof (ac__type_new_))
32248 rm -f conftest.$ac_objext
32249 if { (ac_try="$ac_compile"
32250 case "(($ac_try" in
32251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32252 *) ac_try_echo=$ac_try;;
32254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32255 (eval "$ac_compile") 2>conftest.er1
32257 grep -v '^ *+' conftest.er1 >conftest.err
32259 cat conftest.err >&5
32260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32261 (exit $ac_status); } && {
32262 test -z "$ac_c_werror_flag" ||
32263 test ! -s conftest.err
32264 } && test -s conftest.$ac_objext; then
32265 ac_cv_type_socklen_t=yes
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32270 ac_cv_type_socklen_t=no
32273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32275 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32276 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32279 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32280 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32281 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32282 echo $ECHO_N "(cached) $ECHO_C" >&6
32285 set socklen_t int unsigned "unsigned long" long size_t
32286 test "$ac_cv_type_socklen_t" = yes || shift
32287 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32288 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32289 cat >conftest.$ac_ext <<_ACEOF
32292 cat confdefs.h >>conftest.$ac_ext
32293 cat >>conftest.$ac_ext <<_ACEOF
32294 /* end confdefs.h. */
32295 $ac_includes_default
32296 #ifdef HAVE_SYS_SOCKET_H
32297 #include <sys/socket.h>
32299 extern int accept(int s, $addrtype *ap, $lentype *lp);
32305 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32311 rm -f conftest.$ac_objext
32312 if { (ac_try="$ac_compile"
32313 case "(($ac_try" in
32314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32315 *) ac_try_echo=$ac_try;;
32317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32318 (eval "$ac_compile") 2>conftest.er1
32320 grep -v '^ *+' conftest.er1 >conftest.err
32322 cat conftest.err >&5
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); } && {
32325 test -z "$ac_c_werror_flag" ||
32326 test ! -s conftest.err
32327 } && test -s conftest.$ac_objext; then
32328 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32330 echo "$as_me: failed program was:" >&5
32331 sed 's/^/| /' conftest.$ac_ext >&5
32336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32340 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32341 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32343 cat >>confdefs.h <<_ACEOF
32344 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32348 if test "$ac_cv_type_socklen_t" != yes; then
32350 cat >>confdefs.h <<_ACEOF
32351 #define socklen_t $ol_cv_type_ber_socklen_t
32357 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32358 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32359 if test "${ac_cv_type_signal+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
32362 cat >conftest.$ac_ext <<_ACEOF
32365 cat confdefs.h >>conftest.$ac_ext
32366 cat >>conftest.$ac_ext <<_ACEOF
32367 /* end confdefs.h. */
32368 #include <sys/types.h>
32369 #include <signal.h>
32374 return *(signal (0, 0)) (0) == 1;
32379 rm -f conftest.$ac_objext
32380 if { (ac_try="$ac_compile"
32381 case "(($ac_try" in
32382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32383 *) ac_try_echo=$ac_try;;
32385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32386 (eval "$ac_compile") 2>conftest.er1
32388 grep -v '^ *+' conftest.er1 >conftest.err
32390 cat conftest.err >&5
32391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392 (exit $ac_status); } && {
32393 test -z "$ac_c_werror_flag" ||
32394 test ! -s conftest.err
32395 } && test -s conftest.$ac_objext; then
32396 ac_cv_type_signal=int
32398 echo "$as_me: failed program was:" >&5
32399 sed 's/^/| /' conftest.$ac_ext >&5
32401 ac_cv_type_signal=void
32404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32407 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32409 cat >>confdefs.h <<_ACEOF
32410 #define RETSIGTYPE $ac_cv_type_signal
32415 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32416 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32417 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32418 echo $ECHO_N "(cached) $ECHO_C" >&6
32420 cat >conftest.$ac_ext <<_ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h. */
32426 $ac_includes_default
32427 #include <signal.h>
32430 typedef sig_atomic_t ac__type_new_;
32434 if ((ac__type_new_ *) 0)
32436 if (sizeof (ac__type_new_))
32442 rm -f conftest.$ac_objext
32443 if { (ac_try="$ac_compile"
32444 case "(($ac_try" in
32445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32446 *) ac_try_echo=$ac_try;;
32448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32449 (eval "$ac_compile") 2>conftest.er1
32451 grep -v '^ *+' conftest.er1 >conftest.err
32453 cat conftest.err >&5
32454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32455 (exit $ac_status); } && {
32456 test -z "$ac_c_werror_flag" ||
32457 test ! -s conftest.err
32458 } && test -s conftest.$ac_objext; then
32459 ac_cv_type_sig_atomic_t=yes
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32464 ac_cv_type_sig_atomic_t=no
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32469 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32470 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32471 if test $ac_cv_type_sig_atomic_t = yes; then
32475 cat >>confdefs.h <<_ACEOF
32476 #define sig_atomic_t int
32482 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32483 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32484 if test "${ac_cv_type_uid_t+set}" = set; then
32485 echo $ECHO_N "(cached) $ECHO_C" >&6
32487 cat >conftest.$ac_ext <<_ACEOF
32490 cat confdefs.h >>conftest.$ac_ext
32491 cat >>conftest.$ac_ext <<_ACEOF
32492 /* end confdefs.h. */
32493 #include <sys/types.h>
32496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32497 $EGREP "uid_t" >/dev/null 2>&1; then
32498 ac_cv_type_uid_t=yes
32500 ac_cv_type_uid_t=no
32505 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32506 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32507 if test $ac_cv_type_uid_t = no; then
32509 cat >>confdefs.h <<\_ACEOF
32514 cat >>confdefs.h <<\_ACEOF
32521 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32522 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32523 if test "${ac_cv_header_time+set}" = set; then
32524 echo $ECHO_N "(cached) $ECHO_C" >&6
32526 cat >conftest.$ac_ext <<_ACEOF
32529 cat confdefs.h >>conftest.$ac_ext
32530 cat >>conftest.$ac_ext <<_ACEOF
32531 /* end confdefs.h. */
32532 #include <sys/types.h>
32533 #include <sys/time.h>
32539 if ((struct tm *) 0)
32545 rm -f conftest.$ac_objext
32546 if { (ac_try="$ac_compile"
32547 case "(($ac_try" in
32548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32549 *) ac_try_echo=$ac_try;;
32551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32552 (eval "$ac_compile") 2>conftest.er1
32554 grep -v '^ *+' conftest.er1 >conftest.err
32556 cat conftest.err >&5
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); } && {
32559 test -z "$ac_c_werror_flag" ||
32560 test ! -s conftest.err
32561 } && test -s conftest.$ac_objext; then
32562 ac_cv_header_time=yes
32564 echo "$as_me: failed program was:" >&5
32565 sed 's/^/| /' conftest.$ac_ext >&5
32567 ac_cv_header_time=no
32570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32572 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32573 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32574 if test $ac_cv_header_time = yes; then
32576 cat >>confdefs.h <<\_ACEOF
32577 #define TIME_WITH_SYS_TIME 1
32582 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32583 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32584 if test "${ac_cv_struct_tm+set}" = set; then
32585 echo $ECHO_N "(cached) $ECHO_C" >&6
32587 cat >conftest.$ac_ext <<_ACEOF
32590 cat confdefs.h >>conftest.$ac_ext
32591 cat >>conftest.$ac_ext <<_ACEOF
32592 /* end confdefs.h. */
32593 #include <sys/types.h>
32600 int *p = &tm.tm_sec;
32606 rm -f conftest.$ac_objext
32607 if { (ac_try="$ac_compile"
32608 case "(($ac_try" in
32609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32610 *) ac_try_echo=$ac_try;;
32612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32613 (eval "$ac_compile") 2>conftest.er1
32615 grep -v '^ *+' conftest.er1 >conftest.err
32617 cat conftest.err >&5
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); } && {
32620 test -z "$ac_c_werror_flag" ||
32621 test ! -s conftest.err
32622 } && test -s conftest.$ac_objext; then
32623 ac_cv_struct_tm=time.h
32625 echo "$as_me: failed program was:" >&5
32626 sed 's/^/| /' conftest.$ac_ext >&5
32628 ac_cv_struct_tm=sys/time.h
32631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32633 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32634 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32635 if test $ac_cv_struct_tm = sys/time.h; then
32637 cat >>confdefs.h <<\_ACEOF
32638 #define TM_IN_SYS_TIME 1
32643 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32644 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32645 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32646 echo $ECHO_N "(cached) $ECHO_C" >&6
32648 cat >conftest.$ac_ext <<_ACEOF
32651 cat confdefs.h >>conftest.$ac_ext
32652 cat >>conftest.$ac_ext <<_ACEOF
32653 /* end confdefs.h. */
32654 $ac_includes_default
32658 static struct stat ac_aggr;
32659 if (ac_aggr.st_blksize)
32665 rm -f conftest.$ac_objext
32666 if { (ac_try="$ac_compile"
32667 case "(($ac_try" in
32668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32669 *) ac_try_echo=$ac_try;;
32671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32672 (eval "$ac_compile") 2>conftest.er1
32674 grep -v '^ *+' conftest.er1 >conftest.err
32676 cat conftest.err >&5
32677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678 (exit $ac_status); } && {
32679 test -z "$ac_c_werror_flag" ||
32680 test ! -s conftest.err
32681 } && test -s conftest.$ac_objext; then
32682 ac_cv_member_struct_stat_st_blksize=yes
32684 echo "$as_me: failed program was:" >&5
32685 sed 's/^/| /' conftest.$ac_ext >&5
32687 cat >conftest.$ac_ext <<_ACEOF
32690 cat confdefs.h >>conftest.$ac_ext
32691 cat >>conftest.$ac_ext <<_ACEOF
32692 /* end confdefs.h. */
32693 $ac_includes_default
32697 static struct stat ac_aggr;
32698 if (sizeof ac_aggr.st_blksize)
32704 rm -f conftest.$ac_objext
32705 if { (ac_try="$ac_compile"
32706 case "(($ac_try" in
32707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32708 *) ac_try_echo=$ac_try;;
32710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32711 (eval "$ac_compile") 2>conftest.er1
32713 grep -v '^ *+' conftest.er1 >conftest.err
32715 cat conftest.err >&5
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); } && {
32718 test -z "$ac_c_werror_flag" ||
32719 test ! -s conftest.err
32720 } && test -s conftest.$ac_objext; then
32721 ac_cv_member_struct_stat_st_blksize=yes
32723 echo "$as_me: failed program was:" >&5
32724 sed 's/^/| /' conftest.$ac_ext >&5
32726 ac_cv_member_struct_stat_st_blksize=no
32729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32734 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32735 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32736 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32738 cat >>confdefs.h <<_ACEOF
32739 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32745 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32746 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32747 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32748 echo $ECHO_N "(cached) $ECHO_C" >&6
32750 cat >conftest.$ac_ext <<_ACEOF
32753 cat confdefs.h >>conftest.$ac_ext
32754 cat >>conftest.$ac_ext <<_ACEOF
32755 /* end confdefs.h. */
32756 $ac_includes_default
32762 static struct passwd ac_aggr;
32763 if (ac_aggr.pw_gecos)
32769 rm -f conftest.$ac_objext
32770 if { (ac_try="$ac_compile"
32771 case "(($ac_try" in
32772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32773 *) ac_try_echo=$ac_try;;
32775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32776 (eval "$ac_compile") 2>conftest.er1
32778 grep -v '^ *+' conftest.er1 >conftest.err
32780 cat conftest.err >&5
32781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782 (exit $ac_status); } && {
32783 test -z "$ac_c_werror_flag" ||
32784 test ! -s conftest.err
32785 } && test -s conftest.$ac_objext; then
32786 ac_cv_member_struct_passwd_pw_gecos=yes
32788 echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32791 cat >conftest.$ac_ext <<_ACEOF
32794 cat confdefs.h >>conftest.$ac_ext
32795 cat >>conftest.$ac_ext <<_ACEOF
32796 /* end confdefs.h. */
32797 $ac_includes_default
32803 static struct passwd ac_aggr;
32804 if (sizeof ac_aggr.pw_gecos)
32810 rm -f conftest.$ac_objext
32811 if { (ac_try="$ac_compile"
32812 case "(($ac_try" in
32813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32814 *) ac_try_echo=$ac_try;;
32816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32817 (eval "$ac_compile") 2>conftest.er1
32819 grep -v '^ *+' conftest.er1 >conftest.err
32821 cat conftest.err >&5
32822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32823 (exit $ac_status); } && {
32824 test -z "$ac_c_werror_flag" ||
32825 test ! -s conftest.err
32826 } && test -s conftest.$ac_objext; then
32827 ac_cv_member_struct_passwd_pw_gecos=yes
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32832 ac_cv_member_struct_passwd_pw_gecos=no
32835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32840 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32841 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32842 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32844 cat >>confdefs.h <<_ACEOF
32845 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32851 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32852 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32853 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32854 echo $ECHO_N "(cached) $ECHO_C" >&6
32856 cat >conftest.$ac_ext <<_ACEOF
32859 cat confdefs.h >>conftest.$ac_ext
32860 cat >>conftest.$ac_ext <<_ACEOF
32861 /* end confdefs.h. */
32862 $ac_includes_default
32868 static struct passwd ac_aggr;
32869 if (ac_aggr.pw_passwd)
32875 rm -f conftest.$ac_objext
32876 if { (ac_try="$ac_compile"
32877 case "(($ac_try" in
32878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879 *) ac_try_echo=$ac_try;;
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882 (eval "$ac_compile") 2>conftest.er1
32884 grep -v '^ *+' conftest.er1 >conftest.err
32886 cat conftest.err >&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); } && {
32889 test -z "$ac_c_werror_flag" ||
32890 test ! -s conftest.err
32891 } && test -s conftest.$ac_objext; then
32892 ac_cv_member_struct_passwd_pw_passwd=yes
32894 echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32897 cat >conftest.$ac_ext <<_ACEOF
32900 cat confdefs.h >>conftest.$ac_ext
32901 cat >>conftest.$ac_ext <<_ACEOF
32902 /* end confdefs.h. */
32903 $ac_includes_default
32909 static struct passwd ac_aggr;
32910 if (sizeof ac_aggr.pw_passwd)
32916 rm -f conftest.$ac_objext
32917 if { (ac_try="$ac_compile"
32918 case "(($ac_try" in
32919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32920 *) ac_try_echo=$ac_try;;
32922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32923 (eval "$ac_compile") 2>conftest.er1
32925 grep -v '^ *+' conftest.er1 >conftest.err
32927 cat conftest.err >&5
32928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); } && {
32930 test -z "$ac_c_werror_flag" ||
32931 test ! -s conftest.err
32932 } && test -s conftest.$ac_objext; then
32933 ac_cv_member_struct_passwd_pw_passwd=yes
32935 echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32938 ac_cv_member_struct_passwd_pw_passwd=no
32941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32946 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32947 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32948 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32950 cat >>confdefs.h <<_ACEOF
32951 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32958 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32959 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32960 if test "${ol_cv_c_upper_lower+set}" = set; then
32961 echo $ECHO_N "(cached) $ECHO_C" >&6
32964 if test "$cross_compiling" = yes; then
32965 ol_cv_c_upper_lower=safe
32967 cat >conftest.$ac_ext <<_ACEOF
32970 cat confdefs.h >>conftest.$ac_ext
32971 cat >>conftest.$ac_ext <<_ACEOF
32972 /* end confdefs.h. */
32977 if ('C' == toupper('C'))
32983 rm -f conftest$ac_exeext
32984 if { (ac_try="$ac_link"
32985 case "(($ac_try" in
32986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32987 *) ac_try_echo=$ac_try;;
32989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32990 (eval "$ac_link") 2>&5
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32994 { (case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_try") 2>&5
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); }; }; then
33003 ol_cv_c_upper_lower=no
33005 echo "$as_me: program exited with status $ac_status" >&5
33006 echo "$as_me: failed program was:" >&5
33007 sed 's/^/| /' conftest.$ac_ext >&5
33009 ( exit $ac_status )
33010 ol_cv_c_upper_lower=yes
33012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33017 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33018 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33019 if test $ol_cv_c_upper_lower != no ; then
33021 cat >>confdefs.h <<\_ACEOF
33022 #define C_UPPER_LOWER 1
33027 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33028 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33029 if test "${ac_cv_c_const+set}" = set; then
33030 echo $ECHO_N "(cached) $ECHO_C" >&6
33032 cat >conftest.$ac_ext <<_ACEOF
33035 cat confdefs.h >>conftest.$ac_ext
33036 cat >>conftest.$ac_ext <<_ACEOF
33037 /* end confdefs.h. */
33042 /* FIXME: Include the comments suggested by Paul. */
33043 #ifndef __cplusplus
33044 /* Ultrix mips cc rejects this. */
33045 typedef int charset[2];
33047 /* SunOS 4.1.1 cc rejects this. */
33048 char const *const *pcpcc;
33050 /* NEC SVR4.0.2 mips cc rejects this. */
33051 struct point {int x, y;};
33052 static struct point const zero = {0,0};
33053 /* AIX XL C 1.02.0.0 rejects this.
33054 It does not let you subtract one const X* pointer from another in
33055 an arm of an if-expression whose if-part is not a constant
33057 const char *g = "string";
33058 pcpcc = &g + (g ? g-g : 0);
33059 /* HPUX 7.0 cc rejects these. */
33061 ppc = (char**) pcpcc;
33062 pcpcc = (char const *const *) ppc;
33063 { /* SCO 3.2v4 cc rejects this. */
33065 char const *s = 0 ? (char *) 0 : (char const *) 0;
33070 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33071 int x[] = {25, 17};
33072 const int *foo = &x[0];
33075 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33076 typedef const int *iptr;
33080 { /* AIX XL C 1.02.0.0 rejects this saying
33081 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33082 struct s { int j; const int *ap[3]; };
33083 struct s *b; b->j = 5;
33085 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33086 const int foo = 10;
33087 if (!foo) return 0;
33089 return !cs[0] && !zero.x;
33096 rm -f conftest.$ac_objext
33097 if { (ac_try="$ac_compile"
33098 case "(($ac_try" in
33099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100 *) ac_try_echo=$ac_try;;
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103 (eval "$ac_compile") 2>conftest.er1
33105 grep -v '^ *+' conftest.er1 >conftest.err
33107 cat conftest.err >&5
33108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 (exit $ac_status); } && {
33110 test -z "$ac_c_werror_flag" ||
33111 test ! -s conftest.err
33112 } && test -s conftest.$ac_objext; then
33115 echo "$as_me: failed program was:" >&5
33116 sed 's/^/| /' conftest.$ac_ext >&5
33121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33123 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33124 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33125 if test $ac_cv_c_const = no; then
33127 cat >>confdefs.h <<\_ACEOF
33133 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33134 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33135 if test "${ol_cv_c_volatile+set}" = set; then
33136 echo $ECHO_N "(cached) $ECHO_C" >&6
33138 cat >conftest.$ac_ext <<_ACEOF
33141 cat confdefs.h >>conftest.$ac_ext
33142 cat >>conftest.$ac_ext <<_ACEOF
33143 /* end confdefs.h. */
33148 volatile int a; int * volatile b = x ? &y : &z;
33149 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33155 rm -f conftest.$ac_objext
33156 if { (ac_try="$ac_compile"
33157 case "(($ac_try" in
33158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33159 *) ac_try_echo=$ac_try;;
33161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33162 (eval "$ac_compile") 2>conftest.er1
33164 grep -v '^ *+' conftest.er1 >conftest.err
33166 cat conftest.err >&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } && {
33169 test -z "$ac_c_werror_flag" ||
33170 test ! -s conftest.err
33171 } && test -s conftest.$ac_objext; then
33172 ol_cv_c_volatile=yes
33174 echo "$as_me: failed program was:" >&5
33175 sed 's/^/| /' conftest.$ac_ext >&5
33177 ol_cv_c_volatile=no
33180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33182 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33183 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33184 if test $ol_cv_c_volatile = yes; then
33188 cat >>confdefs.h <<\_ACEOF
33195 if test $cross_compiling = yes ; then
33196 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33197 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33199 cat >>confdefs.h <<\_ACEOF
33200 #define CROSS_COMPILING 1
33204 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33205 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33206 if test "${ac_cv_c_bigendian+set}" = set; then
33207 echo $ECHO_N "(cached) $ECHO_C" >&6
33209 # See if sys/param.h defines the BYTE_ORDER macro.
33210 cat >conftest.$ac_ext <<_ACEOF
33213 cat confdefs.h >>conftest.$ac_ext
33214 cat >>conftest.$ac_ext <<_ACEOF
33215 /* end confdefs.h. */
33216 #include <sys/types.h>
33217 #include <sys/param.h>
33222 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33223 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33224 bogus endian macros
33231 rm -f conftest.$ac_objext
33232 if { (ac_try="$ac_compile"
33233 case "(($ac_try" in
33234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235 *) ac_try_echo=$ac_try;;
33237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238 (eval "$ac_compile") 2>conftest.er1
33240 grep -v '^ *+' conftest.er1 >conftest.err
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } && {
33245 test -z "$ac_c_werror_flag" ||
33246 test ! -s conftest.err
33247 } && test -s conftest.$ac_objext; then
33248 # It does; now see whether it defined to BIG_ENDIAN or not.
33249 cat >conftest.$ac_ext <<_ACEOF
33252 cat confdefs.h >>conftest.$ac_ext
33253 cat >>conftest.$ac_ext <<_ACEOF
33254 /* end confdefs.h. */
33255 #include <sys/types.h>
33256 #include <sys/param.h>
33261 #if BYTE_ORDER != BIG_ENDIAN
33269 rm -f conftest.$ac_objext
33270 if { (ac_try="$ac_compile"
33271 case "(($ac_try" in
33272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273 *) ac_try_echo=$ac_try;;
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276 (eval "$ac_compile") 2>conftest.er1
33278 grep -v '^ *+' conftest.er1 >conftest.err
33280 cat conftest.err >&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); } && {
33283 test -z "$ac_c_werror_flag" ||
33284 test ! -s conftest.err
33285 } && test -s conftest.$ac_objext; then
33286 ac_cv_c_bigendian=yes
33288 echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33291 ac_cv_c_bigendian=no
33294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33296 echo "$as_me: failed program was:" >&5
33297 sed 's/^/| /' conftest.$ac_ext >&5
33299 # It does not; compile a test program.
33300 if test "$cross_compiling" = yes; then
33301 # try to guess the endianness by grepping values into an object file
33302 ac_cv_c_bigendian=unknown
33303 cat >conftest.$ac_ext <<_ACEOF
33306 cat confdefs.h >>conftest.$ac_ext
33307 cat >>conftest.$ac_ext <<_ACEOF
33308 /* end confdefs.h. */
33309 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33310 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33311 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33312 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33313 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33314 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33318 _ascii (); _ebcdic ();
33323 rm -f conftest.$ac_objext
33324 if { (ac_try="$ac_compile"
33325 case "(($ac_try" in
33326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33327 *) ac_try_echo=$ac_try;;
33329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33330 (eval "$ac_compile") 2>conftest.er1
33332 grep -v '^ *+' conftest.er1 >conftest.err
33334 cat conftest.err >&5
33335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336 (exit $ac_status); } && {
33337 test -z "$ac_c_werror_flag" ||
33338 test ! -s conftest.err
33339 } && test -s conftest.$ac_objext; then
33340 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33341 ac_cv_c_bigendian=yes
33343 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33344 if test "$ac_cv_c_bigendian" = unknown; then
33345 ac_cv_c_bigendian=no
33347 # finding both strings is unlikely to happen, but who knows?
33348 ac_cv_c_bigendian=unknown
33352 echo "$as_me: failed program was:" >&5
33353 sed 's/^/| /' conftest.$ac_ext >&5
33358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33360 cat >conftest.$ac_ext <<_ACEOF
33363 cat confdefs.h >>conftest.$ac_ext
33364 cat >>conftest.$ac_ext <<_ACEOF
33365 /* end confdefs.h. */
33366 $ac_includes_default
33371 /* Are we little or big endian? From Harbison&Steele. */
33375 char c[sizeof (long int)];
33378 return u.c[sizeof (long int) - 1] == 1;
33384 rm -f conftest$ac_exeext
33385 if { (ac_try="$ac_link"
33386 case "(($ac_try" in
33387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33388 *) ac_try_echo=$ac_try;;
33390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33391 (eval "$ac_link") 2>&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33395 { (case "(($ac_try" in
33396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33397 *) ac_try_echo=$ac_try;;
33399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33400 (eval "$ac_try") 2>&5
33402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33403 (exit $ac_status); }; }; then
33404 ac_cv_c_bigendian=no
33406 echo "$as_me: program exited with status $ac_status" >&5
33407 echo "$as_me: failed program was:" >&5
33408 sed 's/^/| /' conftest.$ac_ext >&5
33410 ( exit $ac_status )
33411 ac_cv_c_bigendian=yes
33413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33421 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33422 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33423 case $ac_cv_c_bigendian in
33426 cat >>confdefs.h <<\_ACEOF
33427 #define WORDS_BIGENDIAN 1
33433 { { echo "$as_me:$LINENO: error: unknown endianness
33434 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33435 echo "$as_me: error: unknown endianness
33436 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33437 { (exit 1); exit 1; }; } ;;
33442 { echo "$as_me:$LINENO: checking for short" >&5
33443 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33444 if test "${ac_cv_type_short+set}" = set; then
33445 echo $ECHO_N "(cached) $ECHO_C" >&6
33447 cat >conftest.$ac_ext <<_ACEOF
33450 cat confdefs.h >>conftest.$ac_ext
33451 cat >>conftest.$ac_ext <<_ACEOF
33452 /* end confdefs.h. */
33453 $ac_includes_default
33454 typedef short ac__type_new_;
33458 if ((ac__type_new_ *) 0)
33460 if (sizeof (ac__type_new_))
33466 rm -f conftest.$ac_objext
33467 if { (ac_try="$ac_compile"
33468 case "(($ac_try" in
33469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33470 *) ac_try_echo=$ac_try;;
33472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33473 (eval "$ac_compile") 2>conftest.er1
33475 grep -v '^ *+' conftest.er1 >conftest.err
33477 cat conftest.err >&5
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); } && {
33480 test -z "$ac_c_werror_flag" ||
33481 test ! -s conftest.err
33482 } && test -s conftest.$ac_objext; then
33483 ac_cv_type_short=yes
33485 echo "$as_me: failed program was:" >&5
33486 sed 's/^/| /' conftest.$ac_ext >&5
33488 ac_cv_type_short=no
33491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33493 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33494 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33496 # The cast to long int works around a bug in the HP C Compiler
33497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33499 # This bug is HP SR number 8606223364.
33500 { echo "$as_me:$LINENO: checking size of short" >&5
33501 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33502 if test "${ac_cv_sizeof_short+set}" = set; then
33503 echo $ECHO_N "(cached) $ECHO_C" >&6
33505 if test "$cross_compiling" = yes; then
33506 # Depending upon the size, compute the lo and hi bounds.
33507 cat >conftest.$ac_ext <<_ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h. */
33513 $ac_includes_default
33514 typedef short ac__type_sizeof_;
33518 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33525 rm -f conftest.$ac_objext
33526 if { (ac_try="$ac_compile"
33527 case "(($ac_try" in
33528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33529 *) ac_try_echo=$ac_try;;
33531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33532 (eval "$ac_compile") 2>conftest.er1
33534 grep -v '^ *+' conftest.er1 >conftest.err
33536 cat conftest.err >&5
33537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538 (exit $ac_status); } && {
33539 test -z "$ac_c_werror_flag" ||
33540 test ! -s conftest.err
33541 } && test -s conftest.$ac_objext; then
33544 cat >conftest.$ac_ext <<_ACEOF
33547 cat confdefs.h >>conftest.$ac_ext
33548 cat >>conftest.$ac_ext <<_ACEOF
33549 /* end confdefs.h. */
33550 $ac_includes_default
33551 typedef short ac__type_sizeof_;
33555 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33562 rm -f conftest.$ac_objext
33563 if { (ac_try="$ac_compile"
33564 case "(($ac_try" in
33565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566 *) ac_try_echo=$ac_try;;
33568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569 (eval "$ac_compile") 2>conftest.er1
33571 grep -v '^ *+' conftest.er1 >conftest.err
33573 cat conftest.err >&5
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); } && {
33576 test -z "$ac_c_werror_flag" ||
33577 test ! -s conftest.err
33578 } && test -s conftest.$ac_objext; then
33579 ac_hi=$ac_mid; break
33581 echo "$as_me: failed program was:" >&5
33582 sed 's/^/| /' conftest.$ac_ext >&5
33584 ac_lo=`expr $ac_mid + 1`
33585 if test $ac_lo -le $ac_mid; then
33589 ac_mid=`expr 2 '*' $ac_mid + 1`
33592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33595 echo "$as_me: failed program was:" >&5
33596 sed 's/^/| /' conftest.$ac_ext >&5
33598 cat >conftest.$ac_ext <<_ACEOF
33601 cat confdefs.h >>conftest.$ac_ext
33602 cat >>conftest.$ac_ext <<_ACEOF
33603 /* end confdefs.h. */
33604 $ac_includes_default
33605 typedef short ac__type_sizeof_;
33609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33616 rm -f conftest.$ac_objext
33617 if { (ac_try="$ac_compile"
33618 case "(($ac_try" in
33619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33620 *) ac_try_echo=$ac_try;;
33622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33623 (eval "$ac_compile") 2>conftest.er1
33625 grep -v '^ *+' conftest.er1 >conftest.err
33627 cat conftest.err >&5
33628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33629 (exit $ac_status); } && {
33630 test -z "$ac_c_werror_flag" ||
33631 test ! -s conftest.err
33632 } && test -s conftest.$ac_objext; then
33635 cat >conftest.$ac_ext <<_ACEOF
33638 cat confdefs.h >>conftest.$ac_ext
33639 cat >>conftest.$ac_ext <<_ACEOF
33640 /* end confdefs.h. */
33641 $ac_includes_default
33642 typedef short ac__type_sizeof_;
33646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33653 rm -f conftest.$ac_objext
33654 if { (ac_try="$ac_compile"
33655 case "(($ac_try" in
33656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657 *) ac_try_echo=$ac_try;;
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660 (eval "$ac_compile") 2>conftest.er1
33662 grep -v '^ *+' conftest.er1 >conftest.err
33664 cat conftest.err >&5
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); } && {
33667 test -z "$ac_c_werror_flag" ||
33668 test ! -s conftest.err
33669 } && test -s conftest.$ac_objext; then
33670 ac_lo=$ac_mid; break
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33675 ac_hi=`expr '(' $ac_mid ')' - 1`
33676 if test $ac_mid -le $ac_hi; then
33680 ac_mid=`expr 2 '*' $ac_mid`
33683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33686 echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 # Binary search between lo and hi bounds.
33697 while test "x$ac_lo" != "x$ac_hi"; do
33698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33699 cat >conftest.$ac_ext <<_ACEOF
33702 cat confdefs.h >>conftest.$ac_ext
33703 cat >>conftest.$ac_ext <<_ACEOF
33704 /* end confdefs.h. */
33705 $ac_includes_default
33706 typedef short ac__type_sizeof_;
33710 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33717 rm -f conftest.$ac_objext
33718 if { (ac_try="$ac_compile"
33719 case "(($ac_try" in
33720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721 *) ac_try_echo=$ac_try;;
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724 (eval "$ac_compile") 2>conftest.er1
33726 grep -v '^ *+' conftest.er1 >conftest.err
33728 cat conftest.err >&5
33729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730 (exit $ac_status); } && {
33731 test -z "$ac_c_werror_flag" ||
33732 test ! -s conftest.err
33733 } && test -s conftest.$ac_objext; then
33736 echo "$as_me: failed program was:" >&5
33737 sed 's/^/| /' conftest.$ac_ext >&5
33739 ac_lo=`expr '(' $ac_mid ')' + 1`
33742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33745 ?*) ac_cv_sizeof_short=$ac_lo;;
33746 '') if test "$ac_cv_type_short" = yes; then
33747 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33748 See \`config.log' for more details." >&5
33749 echo "$as_me: error: cannot compute sizeof (short)
33750 See \`config.log' for more details." >&2;}
33751 { (exit 77); exit 77; }; }
33753 ac_cv_sizeof_short=0
33757 cat >conftest.$ac_ext <<_ACEOF
33760 cat confdefs.h >>conftest.$ac_ext
33761 cat >>conftest.$ac_ext <<_ACEOF
33762 /* end confdefs.h. */
33763 $ac_includes_default
33764 typedef short ac__type_sizeof_;
33765 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33766 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33768 #include <stdlib.h>
33773 FILE *f = fopen ("conftest.val", "w");
33776 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33778 long int i = longval ();
33779 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33781 fprintf (f, "%ld\n", i);
33785 unsigned long int i = ulongval ();
33786 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33788 fprintf (f, "%lu\n", i);
33790 return ferror (f) || fclose (f) != 0;
33796 rm -f conftest$ac_exeext
33797 if { (ac_try="$ac_link"
33798 case "(($ac_try" in
33799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33800 *) ac_try_echo=$ac_try;;
33802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33803 (eval "$ac_link") 2>&5
33805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33807 { (case "(($ac_try" in
33808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33809 *) ac_try_echo=$ac_try;;
33811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33812 (eval "$ac_try") 2>&5
33814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33815 (exit $ac_status); }; }; then
33816 ac_cv_sizeof_short=`cat conftest.val`
33818 echo "$as_me: program exited with status $ac_status" >&5
33819 echo "$as_me: failed program was:" >&5
33820 sed 's/^/| /' conftest.$ac_ext >&5
33822 ( exit $ac_status )
33823 if test "$ac_cv_type_short" = yes; then
33824 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33825 See \`config.log' for more details." >&5
33826 echo "$as_me: error: cannot compute sizeof (short)
33827 See \`config.log' for more details." >&2;}
33828 { (exit 77); exit 77; }; }
33830 ac_cv_sizeof_short=0
33833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33837 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33838 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33842 cat >>confdefs.h <<_ACEOF
33843 #define SIZEOF_SHORT $ac_cv_sizeof_short
33847 { echo "$as_me:$LINENO: checking for int" >&5
33848 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33849 if test "${ac_cv_type_int+set}" = set; then
33850 echo $ECHO_N "(cached) $ECHO_C" >&6
33852 cat >conftest.$ac_ext <<_ACEOF
33855 cat confdefs.h >>conftest.$ac_ext
33856 cat >>conftest.$ac_ext <<_ACEOF
33857 /* end confdefs.h. */
33858 $ac_includes_default
33859 typedef int ac__type_new_;
33863 if ((ac__type_new_ *) 0)
33865 if (sizeof (ac__type_new_))
33871 rm -f conftest.$ac_objext
33872 if { (ac_try="$ac_compile"
33873 case "(($ac_try" in
33874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33875 *) ac_try_echo=$ac_try;;
33877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33878 (eval "$ac_compile") 2>conftest.er1
33880 grep -v '^ *+' conftest.er1 >conftest.err
33882 cat conftest.err >&5
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } && {
33885 test -z "$ac_c_werror_flag" ||
33886 test ! -s conftest.err
33887 } && test -s conftest.$ac_objext; then
33890 echo "$as_me: failed program was:" >&5
33891 sed 's/^/| /' conftest.$ac_ext >&5
33896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33898 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33899 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33901 # The cast to long int works around a bug in the HP C Compiler
33902 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33903 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33904 # This bug is HP SR number 8606223364.
33905 { echo "$as_me:$LINENO: checking size of int" >&5
33906 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33907 if test "${ac_cv_sizeof_int+set}" = set; then
33908 echo $ECHO_N "(cached) $ECHO_C" >&6
33910 if test "$cross_compiling" = yes; then
33911 # Depending upon the size, compute the lo and hi bounds.
33912 cat >conftest.$ac_ext <<_ACEOF
33915 cat confdefs.h >>conftest.$ac_ext
33916 cat >>conftest.$ac_ext <<_ACEOF
33917 /* end confdefs.h. */
33918 $ac_includes_default
33919 typedef int ac__type_sizeof_;
33923 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33930 rm -f conftest.$ac_objext
33931 if { (ac_try="$ac_compile"
33932 case "(($ac_try" in
33933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33934 *) ac_try_echo=$ac_try;;
33936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33937 (eval "$ac_compile") 2>conftest.er1
33939 grep -v '^ *+' conftest.er1 >conftest.err
33941 cat conftest.err >&5
33942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33943 (exit $ac_status); } && {
33944 test -z "$ac_c_werror_flag" ||
33945 test ! -s conftest.err
33946 } && test -s conftest.$ac_objext; then
33949 cat >conftest.$ac_ext <<_ACEOF
33952 cat confdefs.h >>conftest.$ac_ext
33953 cat >>conftest.$ac_ext <<_ACEOF
33954 /* end confdefs.h. */
33955 $ac_includes_default
33956 typedef int ac__type_sizeof_;
33960 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33967 rm -f conftest.$ac_objext
33968 if { (ac_try="$ac_compile"
33969 case "(($ac_try" in
33970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33971 *) ac_try_echo=$ac_try;;
33973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33974 (eval "$ac_compile") 2>conftest.er1
33976 grep -v '^ *+' conftest.er1 >conftest.err
33978 cat conftest.err >&5
33979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33980 (exit $ac_status); } && {
33981 test -z "$ac_c_werror_flag" ||
33982 test ! -s conftest.err
33983 } && test -s conftest.$ac_objext; then
33984 ac_hi=$ac_mid; break
33986 echo "$as_me: failed program was:" >&5
33987 sed 's/^/| /' conftest.$ac_ext >&5
33989 ac_lo=`expr $ac_mid + 1`
33990 if test $ac_lo -le $ac_mid; then
33994 ac_mid=`expr 2 '*' $ac_mid + 1`
33997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34000 echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34003 cat >conftest.$ac_ext <<_ACEOF
34006 cat confdefs.h >>conftest.$ac_ext
34007 cat >>conftest.$ac_ext <<_ACEOF
34008 /* end confdefs.h. */
34009 $ac_includes_default
34010 typedef int ac__type_sizeof_;
34014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34021 rm -f conftest.$ac_objext
34022 if { (ac_try="$ac_compile"
34023 case "(($ac_try" in
34024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34025 *) ac_try_echo=$ac_try;;
34027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34028 (eval "$ac_compile") 2>conftest.er1
34030 grep -v '^ *+' conftest.er1 >conftest.err
34032 cat conftest.err >&5
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); } && {
34035 test -z "$ac_c_werror_flag" ||
34036 test ! -s conftest.err
34037 } && test -s conftest.$ac_objext; then
34040 cat >conftest.$ac_ext <<_ACEOF
34043 cat confdefs.h >>conftest.$ac_ext
34044 cat >>conftest.$ac_ext <<_ACEOF
34045 /* end confdefs.h. */
34046 $ac_includes_default
34047 typedef int ac__type_sizeof_;
34051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34058 rm -f conftest.$ac_objext
34059 if { (ac_try="$ac_compile"
34060 case "(($ac_try" in
34061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34062 *) ac_try_echo=$ac_try;;
34064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34065 (eval "$ac_compile") 2>conftest.er1
34067 grep -v '^ *+' conftest.er1 >conftest.err
34069 cat conftest.err >&5
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); } && {
34072 test -z "$ac_c_werror_flag" ||
34073 test ! -s conftest.err
34074 } && test -s conftest.$ac_objext; then
34075 ac_lo=$ac_mid; break
34077 echo "$as_me: failed program was:" >&5
34078 sed 's/^/| /' conftest.$ac_ext >&5
34080 ac_hi=`expr '(' $ac_mid ')' - 1`
34081 if test $ac_mid -le $ac_hi; then
34085 ac_mid=`expr 2 '*' $ac_mid`
34088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34091 echo "$as_me: failed program was:" >&5
34092 sed 's/^/| /' conftest.$ac_ext >&5
34097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101 # Binary search between lo and hi bounds.
34102 while test "x$ac_lo" != "x$ac_hi"; do
34103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34104 cat >conftest.$ac_ext <<_ACEOF
34107 cat confdefs.h >>conftest.$ac_ext
34108 cat >>conftest.$ac_ext <<_ACEOF
34109 /* end confdefs.h. */
34110 $ac_includes_default
34111 typedef int ac__type_sizeof_;
34115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34122 rm -f conftest.$ac_objext
34123 if { (ac_try="$ac_compile"
34124 case "(($ac_try" in
34125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34126 *) ac_try_echo=$ac_try;;
34128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34129 (eval "$ac_compile") 2>conftest.er1
34131 grep -v '^ *+' conftest.er1 >conftest.err
34133 cat conftest.err >&5
34134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34135 (exit $ac_status); } && {
34136 test -z "$ac_c_werror_flag" ||
34137 test ! -s conftest.err
34138 } && test -s conftest.$ac_objext; then
34141 echo "$as_me: failed program was:" >&5
34142 sed 's/^/| /' conftest.$ac_ext >&5
34144 ac_lo=`expr '(' $ac_mid ')' + 1`
34147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34150 ?*) ac_cv_sizeof_int=$ac_lo;;
34151 '') if test "$ac_cv_type_int" = yes; then
34152 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34153 See \`config.log' for more details." >&5
34154 echo "$as_me: error: cannot compute sizeof (int)
34155 See \`config.log' for more details." >&2;}
34156 { (exit 77); exit 77; }; }
34162 cat >conftest.$ac_ext <<_ACEOF
34165 cat confdefs.h >>conftest.$ac_ext
34166 cat >>conftest.$ac_ext <<_ACEOF
34167 /* end confdefs.h. */
34168 $ac_includes_default
34169 typedef int ac__type_sizeof_;
34170 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34171 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34173 #include <stdlib.h>
34178 FILE *f = fopen ("conftest.val", "w");
34181 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34183 long int i = longval ();
34184 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34186 fprintf (f, "%ld\n", i);
34190 unsigned long int i = ulongval ();
34191 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34193 fprintf (f, "%lu\n", i);
34195 return ferror (f) || fclose (f) != 0;
34201 rm -f conftest$ac_exeext
34202 if { (ac_try="$ac_link"
34203 case "(($ac_try" in
34204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34205 *) ac_try_echo=$ac_try;;
34207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34208 (eval "$ac_link") 2>&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34212 { (case "(($ac_try" in
34213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34214 *) ac_try_echo=$ac_try;;
34216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34217 (eval "$ac_try") 2>&5
34219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220 (exit $ac_status); }; }; then
34221 ac_cv_sizeof_int=`cat conftest.val`
34223 echo "$as_me: program exited with status $ac_status" >&5
34224 echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34227 ( exit $ac_status )
34228 if test "$ac_cv_type_int" = yes; then
34229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34230 See \`config.log' for more details." >&5
34231 echo "$as_me: error: cannot compute sizeof (int)
34232 See \`config.log' for more details." >&2;}
34233 { (exit 77); exit 77; }; }
34238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34242 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34243 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34247 cat >>confdefs.h <<_ACEOF
34248 #define SIZEOF_INT $ac_cv_sizeof_int
34252 { echo "$as_me:$LINENO: checking for long" >&5
34253 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34254 if test "${ac_cv_type_long+set}" = set; then
34255 echo $ECHO_N "(cached) $ECHO_C" >&6
34257 cat >conftest.$ac_ext <<_ACEOF
34260 cat confdefs.h >>conftest.$ac_ext
34261 cat >>conftest.$ac_ext <<_ACEOF
34262 /* end confdefs.h. */
34263 $ac_includes_default
34264 typedef long ac__type_new_;
34268 if ((ac__type_new_ *) 0)
34270 if (sizeof (ac__type_new_))
34276 rm -f conftest.$ac_objext
34277 if { (ac_try="$ac_compile"
34278 case "(($ac_try" in
34279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34280 *) ac_try_echo=$ac_try;;
34282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34283 (eval "$ac_compile") 2>conftest.er1
34285 grep -v '^ *+' conftest.er1 >conftest.err
34287 cat conftest.err >&5
34288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34289 (exit $ac_status); } && {
34290 test -z "$ac_c_werror_flag" ||
34291 test ! -s conftest.err
34292 } && test -s conftest.$ac_objext; then
34293 ac_cv_type_long=yes
34295 echo "$as_me: failed program was:" >&5
34296 sed 's/^/| /' conftest.$ac_ext >&5
34301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34303 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34304 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34306 # The cast to long int works around a bug in the HP C Compiler
34307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34309 # This bug is HP SR number 8606223364.
34310 { echo "$as_me:$LINENO: checking size of long" >&5
34311 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34312 if test "${ac_cv_sizeof_long+set}" = set; then
34313 echo $ECHO_N "(cached) $ECHO_C" >&6
34315 if test "$cross_compiling" = yes; then
34316 # Depending upon the size, compute the lo and hi bounds.
34317 cat >conftest.$ac_ext <<_ACEOF
34320 cat confdefs.h >>conftest.$ac_ext
34321 cat >>conftest.$ac_ext <<_ACEOF
34322 /* end confdefs.h. */
34323 $ac_includes_default
34324 typedef long ac__type_sizeof_;
34328 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34335 rm -f conftest.$ac_objext
34336 if { (ac_try="$ac_compile"
34337 case "(($ac_try" in
34338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34339 *) ac_try_echo=$ac_try;;
34341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34342 (eval "$ac_compile") 2>conftest.er1
34344 grep -v '^ *+' conftest.er1 >conftest.err
34346 cat conftest.err >&5
34347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34348 (exit $ac_status); } && {
34349 test -z "$ac_c_werror_flag" ||
34350 test ! -s conftest.err
34351 } && test -s conftest.$ac_objext; then
34354 cat >conftest.$ac_ext <<_ACEOF
34357 cat confdefs.h >>conftest.$ac_ext
34358 cat >>conftest.$ac_ext <<_ACEOF
34359 /* end confdefs.h. */
34360 $ac_includes_default
34361 typedef long ac__type_sizeof_;
34365 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34372 rm -f conftest.$ac_objext
34373 if { (ac_try="$ac_compile"
34374 case "(($ac_try" in
34375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34376 *) ac_try_echo=$ac_try;;
34378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34379 (eval "$ac_compile") 2>conftest.er1
34381 grep -v '^ *+' conftest.er1 >conftest.err
34383 cat conftest.err >&5
34384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34385 (exit $ac_status); } && {
34386 test -z "$ac_c_werror_flag" ||
34387 test ! -s conftest.err
34388 } && test -s conftest.$ac_objext; then
34389 ac_hi=$ac_mid; break
34391 echo "$as_me: failed program was:" >&5
34392 sed 's/^/| /' conftest.$ac_ext >&5
34394 ac_lo=`expr $ac_mid + 1`
34395 if test $ac_lo -le $ac_mid; then
34399 ac_mid=`expr 2 '*' $ac_mid + 1`
34402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34405 echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34408 cat >conftest.$ac_ext <<_ACEOF
34411 cat confdefs.h >>conftest.$ac_ext
34412 cat >>conftest.$ac_ext <<_ACEOF
34413 /* end confdefs.h. */
34414 $ac_includes_default
34415 typedef long ac__type_sizeof_;
34419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34426 rm -f conftest.$ac_objext
34427 if { (ac_try="$ac_compile"
34428 case "(($ac_try" in
34429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34430 *) ac_try_echo=$ac_try;;
34432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34433 (eval "$ac_compile") 2>conftest.er1
34435 grep -v '^ *+' conftest.er1 >conftest.err
34437 cat conftest.err >&5
34438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439 (exit $ac_status); } && {
34440 test -z "$ac_c_werror_flag" ||
34441 test ! -s conftest.err
34442 } && test -s conftest.$ac_objext; then
34445 cat >conftest.$ac_ext <<_ACEOF
34448 cat confdefs.h >>conftest.$ac_ext
34449 cat >>conftest.$ac_ext <<_ACEOF
34450 /* end confdefs.h. */
34451 $ac_includes_default
34452 typedef long ac__type_sizeof_;
34456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34463 rm -f conftest.$ac_objext
34464 if { (ac_try="$ac_compile"
34465 case "(($ac_try" in
34466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34467 *) ac_try_echo=$ac_try;;
34469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34470 (eval "$ac_compile") 2>conftest.er1
34472 grep -v '^ *+' conftest.er1 >conftest.err
34474 cat conftest.err >&5
34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34476 (exit $ac_status); } && {
34477 test -z "$ac_c_werror_flag" ||
34478 test ! -s conftest.err
34479 } && test -s conftest.$ac_objext; then
34480 ac_lo=$ac_mid; break
34482 echo "$as_me: failed program was:" >&5
34483 sed 's/^/| /' conftest.$ac_ext >&5
34485 ac_hi=`expr '(' $ac_mid ')' - 1`
34486 if test $ac_mid -le $ac_hi; then
34490 ac_mid=`expr 2 '*' $ac_mid`
34493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34496 echo "$as_me: failed program was:" >&5
34497 sed 's/^/| /' conftest.$ac_ext >&5
34502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34506 # Binary search between lo and hi bounds.
34507 while test "x$ac_lo" != "x$ac_hi"; do
34508 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34509 cat >conftest.$ac_ext <<_ACEOF
34512 cat confdefs.h >>conftest.$ac_ext
34513 cat >>conftest.$ac_ext <<_ACEOF
34514 /* end confdefs.h. */
34515 $ac_includes_default
34516 typedef long ac__type_sizeof_;
34520 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34527 rm -f conftest.$ac_objext
34528 if { (ac_try="$ac_compile"
34529 case "(($ac_try" in
34530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34531 *) ac_try_echo=$ac_try;;
34533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34534 (eval "$ac_compile") 2>conftest.er1
34536 grep -v '^ *+' conftest.er1 >conftest.err
34538 cat conftest.err >&5
34539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34540 (exit $ac_status); } && {
34541 test -z "$ac_c_werror_flag" ||
34542 test ! -s conftest.err
34543 } && test -s conftest.$ac_objext; then
34546 echo "$as_me: failed program was:" >&5
34547 sed 's/^/| /' conftest.$ac_ext >&5
34549 ac_lo=`expr '(' $ac_mid ')' + 1`
34552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34555 ?*) ac_cv_sizeof_long=$ac_lo;;
34556 '') if test "$ac_cv_type_long" = yes; then
34557 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34558 See \`config.log' for more details." >&5
34559 echo "$as_me: error: cannot compute sizeof (long)
34560 See \`config.log' for more details." >&2;}
34561 { (exit 77); exit 77; }; }
34563 ac_cv_sizeof_long=0
34567 cat >conftest.$ac_ext <<_ACEOF
34570 cat confdefs.h >>conftest.$ac_ext
34571 cat >>conftest.$ac_ext <<_ACEOF
34572 /* end confdefs.h. */
34573 $ac_includes_default
34574 typedef long ac__type_sizeof_;
34575 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34576 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34578 #include <stdlib.h>
34583 FILE *f = fopen ("conftest.val", "w");
34586 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34588 long int i = longval ();
34589 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34591 fprintf (f, "%ld\n", i);
34595 unsigned long int i = ulongval ();
34596 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34598 fprintf (f, "%lu\n", i);
34600 return ferror (f) || fclose (f) != 0;
34606 rm -f conftest$ac_exeext
34607 if { (ac_try="$ac_link"
34608 case "(($ac_try" in
34609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34610 *) ac_try_echo=$ac_try;;
34612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34613 (eval "$ac_link") 2>&5
34615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34617 { (case "(($ac_try" in
34618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34619 *) ac_try_echo=$ac_try;;
34621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34622 (eval "$ac_try") 2>&5
34624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34625 (exit $ac_status); }; }; then
34626 ac_cv_sizeof_long=`cat conftest.val`
34628 echo "$as_me: program exited with status $ac_status" >&5
34629 echo "$as_me: failed program was:" >&5
34630 sed 's/^/| /' conftest.$ac_ext >&5
34632 ( exit $ac_status )
34633 if test "$ac_cv_type_long" = yes; then
34634 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34635 See \`config.log' for more details." >&5
34636 echo "$as_me: error: cannot compute sizeof (long)
34637 See \`config.log' for more details." >&2;}
34638 { (exit 77); exit 77; }; }
34640 ac_cv_sizeof_long=0
34643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34647 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34648 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34652 cat >>confdefs.h <<_ACEOF
34653 #define SIZEOF_LONG $ac_cv_sizeof_long
34657 { echo "$as_me:$LINENO: checking for long long" >&5
34658 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34659 if test "${ac_cv_type_long_long+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34662 cat >conftest.$ac_ext <<_ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h. */
34668 $ac_includes_default
34669 typedef long long ac__type_new_;
34673 if ((ac__type_new_ *) 0)
34675 if (sizeof (ac__type_new_))
34681 rm -f conftest.$ac_objext
34682 if { (ac_try="$ac_compile"
34683 case "(($ac_try" in
34684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34685 *) ac_try_echo=$ac_try;;
34687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34688 (eval "$ac_compile") 2>conftest.er1
34690 grep -v '^ *+' conftest.er1 >conftest.err
34692 cat conftest.err >&5
34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34694 (exit $ac_status); } && {
34695 test -z "$ac_c_werror_flag" ||
34696 test ! -s conftest.err
34697 } && test -s conftest.$ac_objext; then
34698 ac_cv_type_long_long=yes
34700 echo "$as_me: failed program was:" >&5
34701 sed 's/^/| /' conftest.$ac_ext >&5
34703 ac_cv_type_long_long=no
34706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34708 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34709 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34711 # The cast to long int works around a bug in the HP C Compiler
34712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34714 # This bug is HP SR number 8606223364.
34715 { echo "$as_me:$LINENO: checking size of long long" >&5
34716 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34717 if test "${ac_cv_sizeof_long_long+set}" = set; then
34718 echo $ECHO_N "(cached) $ECHO_C" >&6
34720 if test "$cross_compiling" = yes; then
34721 # Depending upon the size, compute the lo and hi bounds.
34722 cat >conftest.$ac_ext <<_ACEOF
34725 cat confdefs.h >>conftest.$ac_ext
34726 cat >>conftest.$ac_ext <<_ACEOF
34727 /* end confdefs.h. */
34728 $ac_includes_default
34729 typedef long long ac__type_sizeof_;
34733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34740 rm -f conftest.$ac_objext
34741 if { (ac_try="$ac_compile"
34742 case "(($ac_try" in
34743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34744 *) ac_try_echo=$ac_try;;
34746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34747 (eval "$ac_compile") 2>conftest.er1
34749 grep -v '^ *+' conftest.er1 >conftest.err
34751 cat conftest.err >&5
34752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34753 (exit $ac_status); } && {
34754 test -z "$ac_c_werror_flag" ||
34755 test ! -s conftest.err
34756 } && test -s conftest.$ac_objext; then
34759 cat >conftest.$ac_ext <<_ACEOF
34762 cat confdefs.h >>conftest.$ac_ext
34763 cat >>conftest.$ac_ext <<_ACEOF
34764 /* end confdefs.h. */
34765 $ac_includes_default
34766 typedef long long ac__type_sizeof_;
34770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34777 rm -f conftest.$ac_objext
34778 if { (ac_try="$ac_compile"
34779 case "(($ac_try" in
34780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34781 *) ac_try_echo=$ac_try;;
34783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34784 (eval "$ac_compile") 2>conftest.er1
34786 grep -v '^ *+' conftest.er1 >conftest.err
34788 cat conftest.err >&5
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } && {
34791 test -z "$ac_c_werror_flag" ||
34792 test ! -s conftest.err
34793 } && test -s conftest.$ac_objext; then
34794 ac_hi=$ac_mid; break
34796 echo "$as_me: failed program was:" >&5
34797 sed 's/^/| /' conftest.$ac_ext >&5
34799 ac_lo=`expr $ac_mid + 1`
34800 if test $ac_lo -le $ac_mid; then
34804 ac_mid=`expr 2 '*' $ac_mid + 1`
34807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34810 echo "$as_me: failed program was:" >&5
34811 sed 's/^/| /' conftest.$ac_ext >&5
34813 cat >conftest.$ac_ext <<_ACEOF
34816 cat confdefs.h >>conftest.$ac_ext
34817 cat >>conftest.$ac_ext <<_ACEOF
34818 /* end confdefs.h. */
34819 $ac_includes_default
34820 typedef long long ac__type_sizeof_;
34824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34831 rm -f conftest.$ac_objext
34832 if { (ac_try="$ac_compile"
34833 case "(($ac_try" in
34834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34835 *) ac_try_echo=$ac_try;;
34837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34838 (eval "$ac_compile") 2>conftest.er1
34840 grep -v '^ *+' conftest.er1 >conftest.err
34842 cat conftest.err >&5
34843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 (exit $ac_status); } && {
34845 test -z "$ac_c_werror_flag" ||
34846 test ! -s conftest.err
34847 } && test -s conftest.$ac_objext; then
34850 cat >conftest.$ac_ext <<_ACEOF
34853 cat confdefs.h >>conftest.$ac_ext
34854 cat >>conftest.$ac_ext <<_ACEOF
34855 /* end confdefs.h. */
34856 $ac_includes_default
34857 typedef long long ac__type_sizeof_;
34861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34868 rm -f conftest.$ac_objext
34869 if { (ac_try="$ac_compile"
34870 case "(($ac_try" in
34871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34872 *) ac_try_echo=$ac_try;;
34874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34875 (eval "$ac_compile") 2>conftest.er1
34877 grep -v '^ *+' conftest.er1 >conftest.err
34879 cat conftest.err >&5
34880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34881 (exit $ac_status); } && {
34882 test -z "$ac_c_werror_flag" ||
34883 test ! -s conftest.err
34884 } && test -s conftest.$ac_objext; then
34885 ac_lo=$ac_mid; break
34887 echo "$as_me: failed program was:" >&5
34888 sed 's/^/| /' conftest.$ac_ext >&5
34890 ac_hi=`expr '(' $ac_mid ')' - 1`
34891 if test $ac_mid -le $ac_hi; then
34895 ac_mid=`expr 2 '*' $ac_mid`
34898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34901 echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34911 # Binary search between lo and hi bounds.
34912 while test "x$ac_lo" != "x$ac_hi"; do
34913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34914 cat >conftest.$ac_ext <<_ACEOF
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h. */
34920 $ac_includes_default
34921 typedef long long ac__type_sizeof_;
34925 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34932 rm -f conftest.$ac_objext
34933 if { (ac_try="$ac_compile"
34934 case "(($ac_try" in
34935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34936 *) ac_try_echo=$ac_try;;
34938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34939 (eval "$ac_compile") 2>conftest.er1
34941 grep -v '^ *+' conftest.er1 >conftest.err
34943 cat conftest.err >&5
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); } && {
34946 test -z "$ac_c_werror_flag" ||
34947 test ! -s conftest.err
34948 } && test -s conftest.$ac_objext; then
34951 echo "$as_me: failed program was:" >&5
34952 sed 's/^/| /' conftest.$ac_ext >&5
34954 ac_lo=`expr '(' $ac_mid ')' + 1`
34957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34960 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34961 '') if test "$ac_cv_type_long_long" = yes; then
34962 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34963 See \`config.log' for more details." >&5
34964 echo "$as_me: error: cannot compute sizeof (long long)
34965 See \`config.log' for more details." >&2;}
34966 { (exit 77); exit 77; }; }
34968 ac_cv_sizeof_long_long=0
34972 cat >conftest.$ac_ext <<_ACEOF
34975 cat confdefs.h >>conftest.$ac_ext
34976 cat >>conftest.$ac_ext <<_ACEOF
34977 /* end confdefs.h. */
34978 $ac_includes_default
34979 typedef long long ac__type_sizeof_;
34980 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34981 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34983 #include <stdlib.h>
34988 FILE *f = fopen ("conftest.val", "w");
34991 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34993 long int i = longval ();
34994 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34996 fprintf (f, "%ld\n", i);
35000 unsigned long int i = ulongval ();
35001 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35003 fprintf (f, "%lu\n", i);
35005 return ferror (f) || fclose (f) != 0;
35011 rm -f conftest$ac_exeext
35012 if { (ac_try="$ac_link"
35013 case "(($ac_try" in
35014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35015 *) ac_try_echo=$ac_try;;
35017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35018 (eval "$ac_link") 2>&5
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35022 { (case "(($ac_try" in
35023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35024 *) ac_try_echo=$ac_try;;
35026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35027 (eval "$ac_try") 2>&5
35029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35030 (exit $ac_status); }; }; then
35031 ac_cv_sizeof_long_long=`cat conftest.val`
35033 echo "$as_me: program exited with status $ac_status" >&5
35034 echo "$as_me: failed program was:" >&5
35035 sed 's/^/| /' conftest.$ac_ext >&5
35037 ( exit $ac_status )
35038 if test "$ac_cv_type_long_long" = yes; then
35039 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35040 See \`config.log' for more details." >&5
35041 echo "$as_me: error: cannot compute sizeof (long long)
35042 See \`config.log' for more details." >&2;}
35043 { (exit 77); exit 77; }; }
35045 ac_cv_sizeof_long_long=0
35048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35052 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35053 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35057 cat >>confdefs.h <<_ACEOF
35058 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35062 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35063 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35064 if test "${ac_cv_type_wchar_t+set}" = set; then
35065 echo $ECHO_N "(cached) $ECHO_C" >&6
35067 cat >conftest.$ac_ext <<_ACEOF
35070 cat confdefs.h >>conftest.$ac_ext
35071 cat >>conftest.$ac_ext <<_ACEOF
35072 /* end confdefs.h. */
35073 $ac_includes_default
35074 typedef wchar_t ac__type_new_;
35078 if ((ac__type_new_ *) 0)
35080 if (sizeof (ac__type_new_))
35086 rm -f conftest.$ac_objext
35087 if { (ac_try="$ac_compile"
35088 case "(($ac_try" in
35089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35090 *) ac_try_echo=$ac_try;;
35092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35093 (eval "$ac_compile") 2>conftest.er1
35095 grep -v '^ *+' conftest.er1 >conftest.err
35097 cat conftest.err >&5
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); } && {
35100 test -z "$ac_c_werror_flag" ||
35101 test ! -s conftest.err
35102 } && test -s conftest.$ac_objext; then
35103 ac_cv_type_wchar_t=yes
35105 echo "$as_me: failed program was:" >&5
35106 sed 's/^/| /' conftest.$ac_ext >&5
35108 ac_cv_type_wchar_t=no
35111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35113 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35114 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35116 # The cast to long int works around a bug in the HP C Compiler
35117 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35118 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35119 # This bug is HP SR number 8606223364.
35120 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35121 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35122 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35123 echo $ECHO_N "(cached) $ECHO_C" >&6
35125 if test "$cross_compiling" = yes; then
35126 # Depending upon the size, compute the lo and hi bounds.
35127 cat >conftest.$ac_ext <<_ACEOF
35130 cat confdefs.h >>conftest.$ac_ext
35131 cat >>conftest.$ac_ext <<_ACEOF
35132 /* end confdefs.h. */
35133 $ac_includes_default
35134 typedef wchar_t ac__type_sizeof_;
35138 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35145 rm -f conftest.$ac_objext
35146 if { (ac_try="$ac_compile"
35147 case "(($ac_try" in
35148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35149 *) ac_try_echo=$ac_try;;
35151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35152 (eval "$ac_compile") 2>conftest.er1
35154 grep -v '^ *+' conftest.er1 >conftest.err
35156 cat conftest.err >&5
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); } && {
35159 test -z "$ac_c_werror_flag" ||
35160 test ! -s conftest.err
35161 } && test -s conftest.$ac_objext; then
35164 cat >conftest.$ac_ext <<_ACEOF
35167 cat confdefs.h >>conftest.$ac_ext
35168 cat >>conftest.$ac_ext <<_ACEOF
35169 /* end confdefs.h. */
35170 $ac_includes_default
35171 typedef wchar_t ac__type_sizeof_;
35175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35182 rm -f conftest.$ac_objext
35183 if { (ac_try="$ac_compile"
35184 case "(($ac_try" in
35185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35186 *) ac_try_echo=$ac_try;;
35188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35189 (eval "$ac_compile") 2>conftest.er1
35191 grep -v '^ *+' conftest.er1 >conftest.err
35193 cat conftest.err >&5
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); } && {
35196 test -z "$ac_c_werror_flag" ||
35197 test ! -s conftest.err
35198 } && test -s conftest.$ac_objext; then
35199 ac_hi=$ac_mid; break
35201 echo "$as_me: failed program was:" >&5
35202 sed 's/^/| /' conftest.$ac_ext >&5
35204 ac_lo=`expr $ac_mid + 1`
35205 if test $ac_lo -le $ac_mid; then
35209 ac_mid=`expr 2 '*' $ac_mid + 1`
35212 rm -f core 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
35225 typedef wchar_t ac__type_sizeof_;
35229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35236 rm -f conftest.$ac_objext
35237 if { (ac_try="$ac_compile"
35238 case "(($ac_try" in
35239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35240 *) ac_try_echo=$ac_try;;
35242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35243 (eval "$ac_compile") 2>conftest.er1
35245 grep -v '^ *+' conftest.er1 >conftest.err
35247 cat conftest.err >&5
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); } && {
35250 test -z "$ac_c_werror_flag" ||
35251 test ! -s conftest.err
35252 } && test -s conftest.$ac_objext; then
35255 cat >conftest.$ac_ext <<_ACEOF
35258 cat confdefs.h >>conftest.$ac_ext
35259 cat >>conftest.$ac_ext <<_ACEOF
35260 /* end confdefs.h. */
35261 $ac_includes_default
35262 typedef wchar_t ac__type_sizeof_;
35266 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35273 rm -f conftest.$ac_objext
35274 if { (ac_try="$ac_compile"
35275 case "(($ac_try" in
35276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35277 *) ac_try_echo=$ac_try;;
35279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35280 (eval "$ac_compile") 2>conftest.er1
35282 grep -v '^ *+' conftest.er1 >conftest.err
35284 cat conftest.err >&5
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); } && {
35287 test -z "$ac_c_werror_flag" ||
35288 test ! -s conftest.err
35289 } && test -s conftest.$ac_objext; then
35290 ac_lo=$ac_mid; break
35292 echo "$as_me: failed program was:" >&5
35293 sed 's/^/| /' conftest.$ac_ext >&5
35295 ac_hi=`expr '(' $ac_mid ')' - 1`
35296 if test $ac_mid -le $ac_hi; then
35300 ac_mid=`expr 2 '*' $ac_mid`
35303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35306 echo "$as_me: failed program was:" >&5
35307 sed 's/^/| /' conftest.$ac_ext >&5
35312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35316 # Binary search between lo and hi bounds.
35317 while test "x$ac_lo" != "x$ac_hi"; do
35318 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35319 cat >conftest.$ac_ext <<_ACEOF
35322 cat confdefs.h >>conftest.$ac_ext
35323 cat >>conftest.$ac_ext <<_ACEOF
35324 /* end confdefs.h. */
35325 $ac_includes_default
35326 typedef wchar_t ac__type_sizeof_;
35330 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35337 rm -f conftest.$ac_objext
35338 if { (ac_try="$ac_compile"
35339 case "(($ac_try" in
35340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35341 *) ac_try_echo=$ac_try;;
35343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35344 (eval "$ac_compile") 2>conftest.er1
35346 grep -v '^ *+' conftest.er1 >conftest.err
35348 cat conftest.err >&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); } && {
35351 test -z "$ac_c_werror_flag" ||
35352 test ! -s conftest.err
35353 } && test -s conftest.$ac_objext; then
35356 echo "$as_me: failed program was:" >&5
35357 sed 's/^/| /' conftest.$ac_ext >&5
35359 ac_lo=`expr '(' $ac_mid ')' + 1`
35362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35365 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35366 '') if test "$ac_cv_type_wchar_t" = yes; then
35367 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35368 See \`config.log' for more details." >&5
35369 echo "$as_me: error: cannot compute sizeof (wchar_t)
35370 See \`config.log' for more details." >&2;}
35371 { (exit 77); exit 77; }; }
35373 ac_cv_sizeof_wchar_t=0
35377 cat >conftest.$ac_ext <<_ACEOF
35380 cat confdefs.h >>conftest.$ac_ext
35381 cat >>conftest.$ac_ext <<_ACEOF
35382 /* end confdefs.h. */
35383 $ac_includes_default
35384 typedef wchar_t ac__type_sizeof_;
35385 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35386 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35388 #include <stdlib.h>
35393 FILE *f = fopen ("conftest.val", "w");
35396 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35398 long int i = longval ();
35399 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35401 fprintf (f, "%ld\n", i);
35405 unsigned long int i = ulongval ();
35406 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35408 fprintf (f, "%lu\n", i);
35410 return ferror (f) || fclose (f) != 0;
35416 rm -f conftest$ac_exeext
35417 if { (ac_try="$ac_link"
35418 case "(($ac_try" in
35419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35420 *) ac_try_echo=$ac_try;;
35422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35423 (eval "$ac_link") 2>&5
35425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35427 { (case "(($ac_try" in
35428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35429 *) ac_try_echo=$ac_try;;
35431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35432 (eval "$ac_try") 2>&5
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; }; then
35436 ac_cv_sizeof_wchar_t=`cat conftest.val`
35438 echo "$as_me: program exited with status $ac_status" >&5
35439 echo "$as_me: failed program was:" >&5
35440 sed 's/^/| /' conftest.$ac_ext >&5
35442 ( exit $ac_status )
35443 if test "$ac_cv_type_wchar_t" = yes; then
35444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35445 See \`config.log' for more details." >&5
35446 echo "$as_me: error: cannot compute sizeof (wchar_t)
35447 See \`config.log' for more details." >&2;}
35448 { (exit 77); exit 77; }; }
35450 ac_cv_sizeof_wchar_t=0
35453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35457 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35458 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35462 cat >>confdefs.h <<_ACEOF
35463 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35468 if test "$ac_cv_sizeof_int" -lt 4 ; then
35469 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35470 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35473 cat >>confdefs.h <<\_ACEOF
35474 #define LBER_INT_T long
35479 cat >>confdefs.h <<\_ACEOF
35480 #define LBER_INT_T int
35486 cat >>confdefs.h <<\_ACEOF
35487 #define LBER_LEN_T long
35491 cat >>confdefs.h <<\_ACEOF
35492 #define LBER_SOCKET_T int
35496 cat >>confdefs.h <<\_ACEOF
35497 #define LBER_TAG_T long
35501 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35502 if test $ac_cv_sizeof_long_long -gt 4 ; then
35503 ol_with_mp=longlong
35505 cat >>confdefs.h <<\_ACEOF
35506 #define USE_MP_LONG_LONG 1
35509 elif test $ol_with_mp = longlong ; then
35510 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35511 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35512 { (exit 1); exit 1; }; }
35515 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35516 if test $ac_cv_sizeof_long -gt 4 ; then
35519 cat >>confdefs.h <<\_ACEOF
35520 #define USE_MP_LONG 1
35523 elif test $ol_with_mp = long ; then
35524 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35525 echo "$as_me: error: long unusable for multiple precision" >&2;}
35526 { (exit 1); exit 1; }; }
35529 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35531 for ac_header in openssl/bn.h
35533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35538 echo $ECHO_N "(cached) $ECHO_C" >&6
35540 ac_res=`eval echo '${'$as_ac_Header'}'`
35541 { echo "$as_me:$LINENO: result: $ac_res" >&5
35542 echo "${ECHO_T}$ac_res" >&6; }
35544 # Is the header compilable?
35545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35547 cat >conftest.$ac_ext <<_ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h. */
35553 $ac_includes_default
35554 #include <$ac_header>
35556 rm -f conftest.$ac_objext
35557 if { (ac_try="$ac_compile"
35558 case "(($ac_try" in
35559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35560 *) ac_try_echo=$ac_try;;
35562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35563 (eval "$ac_compile") 2>conftest.er1
35565 grep -v '^ *+' conftest.er1 >conftest.err
35567 cat conftest.err >&5
35568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569 (exit $ac_status); } && {
35570 test -z "$ac_c_werror_flag" ||
35571 test ! -s conftest.err
35572 } && test -s conftest.$ac_objext; then
35573 ac_header_compiler=yes
35575 echo "$as_me: failed program was:" >&5
35576 sed 's/^/| /' conftest.$ac_ext >&5
35578 ac_header_compiler=no
35581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35583 echo "${ECHO_T}$ac_header_compiler" >&6; }
35585 # Is the header present?
35586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35588 cat >conftest.$ac_ext <<_ACEOF
35591 cat confdefs.h >>conftest.$ac_ext
35592 cat >>conftest.$ac_ext <<_ACEOF
35593 /* end confdefs.h. */
35594 #include <$ac_header>
35596 if { (ac_try="$ac_cpp conftest.$ac_ext"
35597 case "(($ac_try" in
35598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35599 *) ac_try_echo=$ac_try;;
35601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35604 grep -v '^ *+' conftest.er1 >conftest.err
35606 cat conftest.err >&5
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); } >/dev/null && {
35609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35610 test ! -s conftest.err
35612 ac_header_preproc=yes
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35617 ac_header_preproc=no
35620 rm -f conftest.err conftest.$ac_ext
35621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35622 echo "${ECHO_T}$ac_header_preproc" >&6; }
35624 # So? What about this header?
35625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35631 ac_header_preproc=yes
35634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35647 ## --------------------------------------------- ##
35648 ## Report this to <http://www.openldap.org/its/> ##
35649 ## --------------------------------------------- ##
35651 ) | sed "s/^/$as_me: WARNING: /" >&2
35654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35657 echo $ECHO_N "(cached) $ECHO_C" >&6
35659 eval "$as_ac_Header=\$ac_header_preproc"
35661 ac_res=`eval echo '${'$as_ac_Header'}'`
35662 { echo "$as_me:$LINENO: result: $ac_res" >&5
35663 echo "${ECHO_T}$ac_res" >&6; }
35666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35667 cat >>confdefs.h <<_ACEOF
35668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35676 for ac_header in openssl/crypto.h
35678 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35683 echo $ECHO_N "(cached) $ECHO_C" >&6
35685 ac_res=`eval echo '${'$as_ac_Header'}'`
35686 { echo "$as_me:$LINENO: result: $ac_res" >&5
35687 echo "${ECHO_T}$ac_res" >&6; }
35689 # Is the header compilable?
35690 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35691 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35692 cat >conftest.$ac_ext <<_ACEOF
35695 cat confdefs.h >>conftest.$ac_ext
35696 cat >>conftest.$ac_ext <<_ACEOF
35697 /* end confdefs.h. */
35698 $ac_includes_default
35699 #include <$ac_header>
35701 rm -f conftest.$ac_objext
35702 if { (ac_try="$ac_compile"
35703 case "(($ac_try" in
35704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35705 *) ac_try_echo=$ac_try;;
35707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35708 (eval "$ac_compile") 2>conftest.er1
35710 grep -v '^ *+' conftest.er1 >conftest.err
35712 cat conftest.err >&5
35713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35714 (exit $ac_status); } && {
35715 test -z "$ac_c_werror_flag" ||
35716 test ! -s conftest.err
35717 } && test -s conftest.$ac_objext; then
35718 ac_header_compiler=yes
35720 echo "$as_me: failed program was:" >&5
35721 sed 's/^/| /' conftest.$ac_ext >&5
35723 ac_header_compiler=no
35726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35727 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35728 echo "${ECHO_T}$ac_header_compiler" >&6; }
35730 # Is the header present?
35731 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35732 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35733 cat >conftest.$ac_ext <<_ACEOF
35736 cat confdefs.h >>conftest.$ac_ext
35737 cat >>conftest.$ac_ext <<_ACEOF
35738 /* end confdefs.h. */
35739 #include <$ac_header>
35741 if { (ac_try="$ac_cpp conftest.$ac_ext"
35742 case "(($ac_try" in
35743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35744 *) ac_try_echo=$ac_try;;
35746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35749 grep -v '^ *+' conftest.er1 >conftest.err
35751 cat conftest.err >&5
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); } >/dev/null && {
35754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35755 test ! -s conftest.err
35757 ac_header_preproc=yes
35759 echo "$as_me: failed program was:" >&5
35760 sed 's/^/| /' conftest.$ac_ext >&5
35762 ac_header_preproc=no
35765 rm -f conftest.err conftest.$ac_ext
35766 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35767 echo "${ECHO_T}$ac_header_preproc" >&6; }
35769 # So? What about this header?
35770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35775 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35776 ac_header_preproc=yes
35779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35780 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35782 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35784 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35786 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35788 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35790 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35792 ## --------------------------------------------- ##
35793 ## Report this to <http://www.openldap.org/its/> ##
35794 ## --------------------------------------------- ##
35796 ) | sed "s/^/$as_me: WARNING: /" >&2
35799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35802 echo $ECHO_N "(cached) $ECHO_C" >&6
35804 eval "$as_ac_Header=\$ac_header_preproc"
35806 ac_res=`eval echo '${'$as_ac_Header'}'`
35807 { echo "$as_me:$LINENO: result: $ac_res" >&5
35808 echo "${ECHO_T}$ac_res" >&6; }
35811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35812 cat >>confdefs.h <<_ACEOF
35813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35820 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35821 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35822 test "$ol_with_tls" = "found" ; then
35825 cat >>confdefs.h <<\_ACEOF
35826 #define USE_MP_BIGNUM 1
35829 elif test $ol_with_mp = bignum ; then
35830 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35831 echo "$as_me: error: bignum not available" >&2;}
35832 { (exit 1); exit 1; }; }
35835 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35837 for ac_header in gmp.h
35839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35844 echo $ECHO_N "(cached) $ECHO_C" >&6
35846 ac_res=`eval echo '${'$as_ac_Header'}'`
35847 { echo "$as_me:$LINENO: result: $ac_res" >&5
35848 echo "${ECHO_T}$ac_res" >&6; }
35850 # Is the header compilable?
35851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35853 cat >conftest.$ac_ext <<_ACEOF
35856 cat confdefs.h >>conftest.$ac_ext
35857 cat >>conftest.$ac_ext <<_ACEOF
35858 /* end confdefs.h. */
35859 $ac_includes_default
35860 #include <$ac_header>
35862 rm -f conftest.$ac_objext
35863 if { (ac_try="$ac_compile"
35864 case "(($ac_try" in
35865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35866 *) ac_try_echo=$ac_try;;
35868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35869 (eval "$ac_compile") 2>conftest.er1
35871 grep -v '^ *+' conftest.er1 >conftest.err
35873 cat conftest.err >&5
35874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); } && {
35876 test -z "$ac_c_werror_flag" ||
35877 test ! -s conftest.err
35878 } && test -s conftest.$ac_objext; then
35879 ac_header_compiler=yes
35881 echo "$as_me: failed program was:" >&5
35882 sed 's/^/| /' conftest.$ac_ext >&5
35884 ac_header_compiler=no
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35889 echo "${ECHO_T}$ac_header_compiler" >&6; }
35891 # Is the header present?
35892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35894 cat >conftest.$ac_ext <<_ACEOF
35897 cat confdefs.h >>conftest.$ac_ext
35898 cat >>conftest.$ac_ext <<_ACEOF
35899 /* end confdefs.h. */
35900 #include <$ac_header>
35902 if { (ac_try="$ac_cpp conftest.$ac_ext"
35903 case "(($ac_try" in
35904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35905 *) ac_try_echo=$ac_try;;
35907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35910 grep -v '^ *+' conftest.er1 >conftest.err
35912 cat conftest.err >&5
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); } >/dev/null && {
35915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35916 test ! -s conftest.err
35918 ac_header_preproc=yes
35920 echo "$as_me: failed program was:" >&5
35921 sed 's/^/| /' conftest.$ac_ext >&5
35923 ac_header_preproc=no
35926 rm -f conftest.err conftest.$ac_ext
35927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35928 echo "${ECHO_T}$ac_header_preproc" >&6; }
35930 # So? What about this header?
35931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35937 ac_header_preproc=yes
35940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35953 ## --------------------------------------------- ##
35954 ## Report this to <http://www.openldap.org/its/> ##
35955 ## --------------------------------------------- ##
35957 ) | sed "s/^/$as_me: WARNING: /" >&2
35960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35963 echo $ECHO_N "(cached) $ECHO_C" >&6
35965 eval "$as_ac_Header=\$ac_header_preproc"
35967 ac_res=`eval echo '${'$as_ac_Header'}'`
35968 { echo "$as_me:$LINENO: result: $ac_res" >&5
35969 echo "${ECHO_T}$ac_res" >&6; }
35972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35973 cat >>confdefs.h <<_ACEOF
35974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35982 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35983 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35984 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35985 echo $ECHO_N "(cached) $ECHO_C" >&6
35987 ac_check_lib_save_LIBS=$LIBS
35989 cat >conftest.$ac_ext <<_ACEOF
35992 cat confdefs.h >>conftest.$ac_ext
35993 cat >>conftest.$ac_ext <<_ACEOF
35994 /* end confdefs.h. */
35996 /* Override any GCC internal prototype to avoid an error.
35997 Use char because int might match the return type of a GCC
35998 builtin and then its argument prototype would still apply. */
36002 char __gmpz_add_ui ();
36006 return __gmpz_add_ui ();
36011 rm -f conftest.$ac_objext conftest$ac_exeext
36012 if { (ac_try="$ac_link"
36013 case "(($ac_try" in
36014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36015 *) ac_try_echo=$ac_try;;
36017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36018 (eval "$ac_link") 2>conftest.er1
36020 grep -v '^ *+' conftest.er1 >conftest.err
36022 cat conftest.err >&5
36023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36024 (exit $ac_status); } && {
36025 test -z "$ac_c_werror_flag" ||
36026 test ! -s conftest.err
36027 } && test -s conftest$ac_exeext &&
36028 $as_test_x conftest$ac_exeext; then
36029 ac_cv_lib_gmp___gmpz_add_ui=yes
36031 echo "$as_me: failed program was:" >&5
36032 sed 's/^/| /' conftest.$ac_ext >&5
36034 ac_cv_lib_gmp___gmpz_add_ui=no
36037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36038 conftest$ac_exeext conftest.$ac_ext
36039 LIBS=$ac_check_lib_save_LIBS
36041 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36042 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36043 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36044 cat >>confdefs.h <<_ACEOF
36045 #define HAVE_LIBGMP 1
36052 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36054 cat >>confdefs.h <<\_ACEOF
36055 #define USE_MP_GMP 1
36059 elif test $ol_with_mp = gmp ; then
36060 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36061 echo "$as_me: error: gmp not available" >&2;}
36062 { (exit 1); exit 1; }; }
36065 if test $ol_with_mp = auto ; then
36069 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36070 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36071 if test "${ac_cv_func_memcmp_working+set}" = set; then
36072 echo $ECHO_N "(cached) $ECHO_C" >&6
36074 if test "$cross_compiling" = yes; then
36075 ac_cv_func_memcmp_working=no
36077 cat >conftest.$ac_ext <<_ACEOF
36080 cat confdefs.h >>conftest.$ac_ext
36081 cat >>conftest.$ac_ext <<_ACEOF
36082 /* end confdefs.h. */
36083 $ac_includes_default
36088 /* Some versions of memcmp are not 8-bit clean. */
36089 char c0 = '\100', c1 = '\200', c2 = '\201';
36090 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36093 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36094 or more and with at least one buffer not starting on a 4-byte boundary.
36095 William Lewis provided this test program. */
36100 for (i = 0; i < 4; i++)
36104 strcpy (a, "--------01111111");
36105 strcpy (b, "--------10000000");
36106 if (memcmp (a, b, 16) >= 0)
36116 rm -f conftest$ac_exeext
36117 if { (ac_try="$ac_link"
36118 case "(($ac_try" in
36119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120 *) ac_try_echo=$ac_try;;
36122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36123 (eval "$ac_link") 2>&5
36125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36126 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36127 { (case "(($ac_try" in
36128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36129 *) ac_try_echo=$ac_try;;
36131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36132 (eval "$ac_try") 2>&5
36134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36135 (exit $ac_status); }; }; then
36136 ac_cv_func_memcmp_working=yes
36138 echo "$as_me: program exited with status $ac_status" >&5
36139 echo "$as_me: failed program was:" >&5
36140 sed 's/^/| /' conftest.$ac_ext >&5
36142 ( exit $ac_status )
36143 ac_cv_func_memcmp_working=no
36145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36150 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36151 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36152 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36153 *" memcmp.$ac_objext "* ) ;;
36154 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36160 if test $ac_cv_func_memcmp_working = no ; then
36162 cat >>confdefs.h <<\_ACEOF
36163 #define NEED_MEMCMP_REPLACEMENT 1
36169 for ac_func in strftime
36171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36175 echo $ECHO_N "(cached) $ECHO_C" >&6
36177 cat >conftest.$ac_ext <<_ACEOF
36180 cat confdefs.h >>conftest.$ac_ext
36181 cat >>conftest.$ac_ext <<_ACEOF
36182 /* end confdefs.h. */
36183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36185 #define $ac_func innocuous_$ac_func
36187 /* System header to define __stub macros and hopefully few prototypes,
36188 which can conflict with char $ac_func (); below.
36189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36190 <limits.h> exists even on freestanding compilers. */
36193 # include <limits.h>
36195 # include <assert.h>
36200 /* Override any GCC internal prototype to avoid an error.
36201 Use char because int might match the return type of a GCC
36202 builtin and then its argument prototype would still apply. */
36207 /* The GNU C library defines this for functions which it implements
36208 to always fail with ENOSYS. Some functions are actually named
36209 something starting with __ and the normal name is an alias. */
36210 #if defined __stub_$ac_func || defined __stub___$ac_func
36217 return $ac_func ();
36222 rm -f conftest.$ac_objext conftest$ac_exeext
36223 if { (ac_try="$ac_link"
36224 case "(($ac_try" in
36225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36226 *) ac_try_echo=$ac_try;;
36228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36229 (eval "$ac_link") 2>conftest.er1
36231 grep -v '^ *+' conftest.er1 >conftest.err
36233 cat conftest.err >&5
36234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36235 (exit $ac_status); } && {
36236 test -z "$ac_c_werror_flag" ||
36237 test ! -s conftest.err
36238 } && test -s conftest$ac_exeext &&
36239 $as_test_x conftest$ac_exeext; then
36240 eval "$as_ac_var=yes"
36242 echo "$as_me: failed program was:" >&5
36243 sed 's/^/| /' conftest.$ac_ext >&5
36245 eval "$as_ac_var=no"
36248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36249 conftest$ac_exeext conftest.$ac_ext
36251 ac_res=`eval echo '${'$as_ac_var'}'`
36252 { echo "$as_me:$LINENO: result: $ac_res" >&5
36253 echo "${ECHO_T}$ac_res" >&6; }
36254 if test `eval echo '${'$as_ac_var'}'` = yes; then
36255 cat >>confdefs.h <<_ACEOF
36256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36260 # strftime is in -lintl on SCO UNIX.
36261 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36264 echo $ECHO_N "(cached) $ECHO_C" >&6
36266 ac_check_lib_save_LIBS=$LIBS
36267 LIBS="-lintl $LIBS"
36268 cat >conftest.$ac_ext <<_ACEOF
36271 cat confdefs.h >>conftest.$ac_ext
36272 cat >>conftest.$ac_ext <<_ACEOF
36273 /* end confdefs.h. */
36275 /* Override any GCC internal prototype to avoid an error.
36276 Use char because int might match the return type of a GCC
36277 builtin and then its argument prototype would still apply. */
36285 return strftime ();
36290 rm -f conftest.$ac_objext conftest$ac_exeext
36291 if { (ac_try="$ac_link"
36292 case "(($ac_try" in
36293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36294 *) ac_try_echo=$ac_try;;
36296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36297 (eval "$ac_link") 2>conftest.er1
36299 grep -v '^ *+' conftest.er1 >conftest.err
36301 cat conftest.err >&5
36302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36303 (exit $ac_status); } && {
36304 test -z "$ac_c_werror_flag" ||
36305 test ! -s conftest.err
36306 } && test -s conftest$ac_exeext &&
36307 $as_test_x conftest$ac_exeext; then
36308 ac_cv_lib_intl_strftime=yes
36310 echo "$as_me: failed program was:" >&5
36311 sed 's/^/| /' conftest.$ac_ext >&5
36313 ac_cv_lib_intl_strftime=no
36316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36317 conftest$ac_exeext conftest.$ac_ext
36318 LIBS=$ac_check_lib_save_LIBS
36320 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36321 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36322 if test $ac_cv_lib_intl_strftime = yes; then
36323 cat >>confdefs.h <<\_ACEOF
36324 #define HAVE_STRFTIME 1
36327 LIBS="-lintl $LIBS"
36334 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36335 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36336 if test "${ol_cv_func_inet_aton+set}" = set; then
36337 echo $ECHO_N "(cached) $ECHO_C" >&6
36339 cat >conftest.$ac_ext <<_ACEOF
36342 cat confdefs.h >>conftest.$ac_ext
36343 cat >>conftest.$ac_ext <<_ACEOF
36344 /* end confdefs.h. */
36346 #ifdef HAVE_SYS_TYPES_H
36347 # include <sys/types.h>
36349 #ifdef HAVE_SYS_SOCKET_H
36350 # include <sys/socket.h>
36351 # ifdef HAVE_SYS_SELECT_H
36352 # include <sys/select.h>
36354 # include <netinet/in.h>
36355 # ifdef HAVE_ARPA_INET_H
36356 # include <arpa/inet.h>
36364 int rc = inet_aton( "255.255.255.255", &in );
36369 rm -f conftest.$ac_objext conftest$ac_exeext
36370 if { (ac_try="$ac_link"
36371 case "(($ac_try" in
36372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36373 *) ac_try_echo=$ac_try;;
36375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36376 (eval "$ac_link") 2>conftest.er1
36378 grep -v '^ *+' conftest.er1 >conftest.err
36380 cat conftest.err >&5
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); } && {
36383 test -z "$ac_c_werror_flag" ||
36384 test ! -s conftest.err
36385 } && test -s conftest$ac_exeext &&
36386 $as_test_x conftest$ac_exeext; then
36387 ol_cv_func_inet_aton=yes
36389 echo "$as_me: failed program was:" >&5
36390 sed 's/^/| /' conftest.$ac_ext >&5
36392 ol_cv_func_inet_aton=no
36395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36396 conftest$ac_exeext conftest.$ac_ext
36398 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36399 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36400 if test $ol_cv_func_inet_aton != no; then
36402 cat >>confdefs.h <<\_ACEOF
36403 #define HAVE_INET_ATON 1
36409 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36410 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36411 if test "${ac_cv_func__spawnlp+set}" = set; then
36412 echo $ECHO_N "(cached) $ECHO_C" >&6
36414 cat >conftest.$ac_ext <<_ACEOF
36417 cat confdefs.h >>conftest.$ac_ext
36418 cat >>conftest.$ac_ext <<_ACEOF
36419 /* end confdefs.h. */
36420 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36422 #define _spawnlp innocuous__spawnlp
36424 /* System header to define __stub macros and hopefully few prototypes,
36425 which can conflict with char _spawnlp (); below.
36426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36427 <limits.h> exists even on freestanding compilers. */
36430 # include <limits.h>
36432 # include <assert.h>
36437 /* Override any GCC internal prototype to avoid an error.
36438 Use char because int might match the return type of a GCC
36439 builtin and then its argument prototype would still apply. */
36444 /* The GNU C library defines this for functions which it implements
36445 to always fail with ENOSYS. Some functions are actually named
36446 something starting with __ and the normal name is an alias. */
36447 #if defined __stub__spawnlp || defined __stub____spawnlp
36454 return _spawnlp ();
36459 rm -f conftest.$ac_objext conftest$ac_exeext
36460 if { (ac_try="$ac_link"
36461 case "(($ac_try" in
36462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36463 *) ac_try_echo=$ac_try;;
36465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36466 (eval "$ac_link") 2>conftest.er1
36468 grep -v '^ *+' conftest.er1 >conftest.err
36470 cat conftest.err >&5
36471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36472 (exit $ac_status); } && {
36473 test -z "$ac_c_werror_flag" ||
36474 test ! -s conftest.err
36475 } && test -s conftest$ac_exeext &&
36476 $as_test_x conftest$ac_exeext; then
36477 ac_cv_func__spawnlp=yes
36479 echo "$as_me: failed program was:" >&5
36480 sed 's/^/| /' conftest.$ac_ext >&5
36482 ac_cv_func__spawnlp=no
36485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36486 conftest$ac_exeext conftest.$ac_ext
36488 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36489 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36490 if test $ac_cv_func__spawnlp = yes; then
36492 cat >>confdefs.h <<\_ACEOF
36493 #define HAVE_SPAWNLP 1
36499 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36500 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36501 if test "${ac_cv_func__snprintf+set}" = set; then
36502 echo $ECHO_N "(cached) $ECHO_C" >&6
36504 cat >conftest.$ac_ext <<_ACEOF
36507 cat confdefs.h >>conftest.$ac_ext
36508 cat >>conftest.$ac_ext <<_ACEOF
36509 /* end confdefs.h. */
36510 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36512 #define _snprintf innocuous__snprintf
36514 /* System header to define __stub macros and hopefully few prototypes,
36515 which can conflict with char _snprintf (); below.
36516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36517 <limits.h> exists even on freestanding compilers. */
36520 # include <limits.h>
36522 # include <assert.h>
36527 /* Override any GCC internal prototype to avoid an error.
36528 Use char because int might match the return type of a GCC
36529 builtin and then its argument prototype would still apply. */
36534 /* The GNU C library defines this for functions which it implements
36535 to always fail with ENOSYS. Some functions are actually named
36536 something starting with __ and the normal name is an alias. */
36537 #if defined __stub__snprintf || defined __stub____snprintf
36544 return _snprintf ();
36549 rm -f conftest.$ac_objext conftest$ac_exeext
36550 if { (ac_try="$ac_link"
36551 case "(($ac_try" in
36552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36553 *) ac_try_echo=$ac_try;;
36555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36556 (eval "$ac_link") 2>conftest.er1
36558 grep -v '^ *+' conftest.er1 >conftest.err
36560 cat conftest.err >&5
36561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); } && {
36563 test -z "$ac_c_werror_flag" ||
36564 test ! -s conftest.err
36565 } && test -s conftest$ac_exeext &&
36566 $as_test_x conftest$ac_exeext; then
36567 ac_cv_func__snprintf=yes
36569 echo "$as_me: failed program was:" >&5
36570 sed 's/^/| /' conftest.$ac_ext >&5
36572 ac_cv_func__snprintf=no
36575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36576 conftest$ac_exeext conftest.$ac_ext
36578 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36579 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36580 if test $ac_cv_func__snprintf = yes; then
36581 ac_cv_func_snprintf=yes
36583 cat >>confdefs.h <<\_ACEOF
36584 #define snprintf _snprintf
36593 for ac_func in vsnprintf _vsnprintf
36595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36599 echo $ECHO_N "(cached) $ECHO_C" >&6
36601 cat >conftest.$ac_ext <<_ACEOF
36604 cat confdefs.h >>conftest.$ac_ext
36605 cat >>conftest.$ac_ext <<_ACEOF
36606 /* end confdefs.h. */
36607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36609 #define $ac_func innocuous_$ac_func
36611 /* System header to define __stub macros and hopefully few prototypes,
36612 which can conflict with char $ac_func (); below.
36613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36614 <limits.h> exists even on freestanding compilers. */
36617 # include <limits.h>
36619 # include <assert.h>
36624 /* Override any GCC internal prototype to avoid an error.
36625 Use char because int might match the return type of a GCC
36626 builtin and then its argument prototype would still apply. */
36631 /* The GNU C library defines this for functions which it implements
36632 to always fail with ENOSYS. Some functions are actually named
36633 something starting with __ and the normal name is an alias. */
36634 #if defined __stub_$ac_func || defined __stub___$ac_func
36641 return $ac_func ();
36646 rm -f conftest.$ac_objext conftest$ac_exeext
36647 if { (ac_try="$ac_link"
36648 case "(($ac_try" in
36649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36650 *) ac_try_echo=$ac_try;;
36652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36653 (eval "$ac_link") 2>conftest.er1
36655 grep -v '^ *+' conftest.er1 >conftest.err
36657 cat conftest.err >&5
36658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36659 (exit $ac_status); } && {
36660 test -z "$ac_c_werror_flag" ||
36661 test ! -s conftest.err
36662 } && test -s conftest$ac_exeext &&
36663 $as_test_x conftest$ac_exeext; then
36664 eval "$as_ac_var=yes"
36666 echo "$as_me: failed program was:" >&5
36667 sed 's/^/| /' conftest.$ac_ext >&5
36669 eval "$as_ac_var=no"
36672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36673 conftest$ac_exeext conftest.$ac_ext
36675 ac_res=`eval echo '${'$as_ac_var'}'`
36676 { echo "$as_me:$LINENO: result: $ac_res" >&5
36677 echo "${ECHO_T}$ac_res" >&6; }
36678 if test `eval echo '${'$as_ac_var'}'` = yes; then
36679 cat >>confdefs.h <<_ACEOF
36680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36687 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36688 ac_cv_func_vsnprintf=yes
36690 cat >>confdefs.h <<\_ACEOF
36691 #define vsnprintf _vsnprintf
36697 for ac_func in vprintf
36699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36703 echo $ECHO_N "(cached) $ECHO_C" >&6
36705 cat >conftest.$ac_ext <<_ACEOF
36708 cat confdefs.h >>conftest.$ac_ext
36709 cat >>conftest.$ac_ext <<_ACEOF
36710 /* end confdefs.h. */
36711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36713 #define $ac_func innocuous_$ac_func
36715 /* System header to define __stub macros and hopefully few prototypes,
36716 which can conflict with char $ac_func (); below.
36717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36718 <limits.h> exists even on freestanding compilers. */
36721 # include <limits.h>
36723 # include <assert.h>
36728 /* Override any GCC internal prototype to avoid an error.
36729 Use char because int might match the return type of a GCC
36730 builtin and then its argument prototype would still apply. */
36735 /* The GNU C library defines this for functions which it implements
36736 to always fail with ENOSYS. Some functions are actually named
36737 something starting with __ and the normal name is an alias. */
36738 #if defined __stub_$ac_func || defined __stub___$ac_func
36745 return $ac_func ();
36750 rm -f conftest.$ac_objext conftest$ac_exeext
36751 if { (ac_try="$ac_link"
36752 case "(($ac_try" in
36753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36754 *) ac_try_echo=$ac_try;;
36756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36757 (eval "$ac_link") 2>conftest.er1
36759 grep -v '^ *+' conftest.er1 >conftest.err
36761 cat conftest.err >&5
36762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36763 (exit $ac_status); } && {
36764 test -z "$ac_c_werror_flag" ||
36765 test ! -s conftest.err
36766 } && test -s conftest$ac_exeext &&
36767 $as_test_x conftest$ac_exeext; then
36768 eval "$as_ac_var=yes"
36770 echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.$ac_ext >&5
36773 eval "$as_ac_var=no"
36776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36777 conftest$ac_exeext conftest.$ac_ext
36779 ac_res=`eval echo '${'$as_ac_var'}'`
36780 { echo "$as_me:$LINENO: result: $ac_res" >&5
36781 echo "${ECHO_T}$ac_res" >&6; }
36782 if test `eval echo '${'$as_ac_var'}'` = yes; then
36783 cat >>confdefs.h <<_ACEOF
36784 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36787 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36788 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36789 if test "${ac_cv_func__doprnt+set}" = set; then
36790 echo $ECHO_N "(cached) $ECHO_C" >&6
36792 cat >conftest.$ac_ext <<_ACEOF
36795 cat confdefs.h >>conftest.$ac_ext
36796 cat >>conftest.$ac_ext <<_ACEOF
36797 /* end confdefs.h. */
36798 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36800 #define _doprnt innocuous__doprnt
36802 /* System header to define __stub macros and hopefully few prototypes,
36803 which can conflict with char _doprnt (); below.
36804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36805 <limits.h> exists even on freestanding compilers. */
36808 # include <limits.h>
36810 # include <assert.h>
36815 /* Override any GCC internal prototype to avoid an error.
36816 Use char because int might match the return type of a GCC
36817 builtin and then its argument prototype would still apply. */
36822 /* The GNU C library defines this for functions which it implements
36823 to always fail with ENOSYS. Some functions are actually named
36824 something starting with __ and the normal name is an alias. */
36825 #if defined __stub__doprnt || defined __stub____doprnt
36837 rm -f conftest.$ac_objext conftest$ac_exeext
36838 if { (ac_try="$ac_link"
36839 case "(($ac_try" in
36840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36841 *) ac_try_echo=$ac_try;;
36843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36844 (eval "$ac_link") 2>conftest.er1
36846 grep -v '^ *+' conftest.er1 >conftest.err
36848 cat conftest.err >&5
36849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850 (exit $ac_status); } && {
36851 test -z "$ac_c_werror_flag" ||
36852 test ! -s conftest.err
36853 } && test -s conftest$ac_exeext &&
36854 $as_test_x conftest$ac_exeext; then
36855 ac_cv_func__doprnt=yes
36857 echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36860 ac_cv_func__doprnt=no
36863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36864 conftest$ac_exeext conftest.$ac_ext
36866 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36867 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36868 if test $ac_cv_func__doprnt = yes; then
36870 cat >>confdefs.h <<\_ACEOF
36871 #define HAVE_DOPRNT 1
36881 if test $ac_cv_func_vprintf = yes ; then
36884 for ac_func in snprintf vsnprintf
36886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36887 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36889 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36890 echo $ECHO_N "(cached) $ECHO_C" >&6
36892 cat >conftest.$ac_ext <<_ACEOF
36895 cat confdefs.h >>conftest.$ac_ext
36896 cat >>conftest.$ac_ext <<_ACEOF
36897 /* end confdefs.h. */
36898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36900 #define $ac_func innocuous_$ac_func
36902 /* System header to define __stub macros and hopefully few prototypes,
36903 which can conflict with char $ac_func (); below.
36904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36905 <limits.h> exists even on freestanding compilers. */
36908 # include <limits.h>
36910 # include <assert.h>
36915 /* Override any GCC internal prototype to avoid an error.
36916 Use char because int might match the return type of a GCC
36917 builtin and then its argument prototype would still apply. */
36922 /* The GNU C library defines this for functions which it implements
36923 to always fail with ENOSYS. Some functions are actually named
36924 something starting with __ and the normal name is an alias. */
36925 #if defined __stub_$ac_func || defined __stub___$ac_func
36932 return $ac_func ();
36937 rm -f conftest.$ac_objext conftest$ac_exeext
36938 if { (ac_try="$ac_link"
36939 case "(($ac_try" in
36940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36941 *) ac_try_echo=$ac_try;;
36943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36944 (eval "$ac_link") 2>conftest.er1
36946 grep -v '^ *+' conftest.er1 >conftest.err
36948 cat conftest.err >&5
36949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36950 (exit $ac_status); } && {
36951 test -z "$ac_c_werror_flag" ||
36952 test ! -s conftest.err
36953 } && test -s conftest$ac_exeext &&
36954 $as_test_x conftest$ac_exeext; then
36955 eval "$as_ac_var=yes"
36957 echo "$as_me: failed program was:" >&5
36958 sed 's/^/| /' conftest.$ac_ext >&5
36960 eval "$as_ac_var=no"
36963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36964 conftest$ac_exeext conftest.$ac_ext
36966 ac_res=`eval echo '${'$as_ac_var'}'`
36967 { echo "$as_me:$LINENO: result: $ac_res" >&5
36968 echo "${ECHO_T}$ac_res" >&6; }
36969 if test `eval echo '${'$as_ac_var'}'` = yes; then
36970 cat >>confdefs.h <<_ACEOF
36971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37098 echo $ECHO_N "(cached) $ECHO_C" >&6
37100 cat >conftest.$ac_ext <<_ACEOF
37103 cat confdefs.h >>conftest.$ac_ext
37104 cat >>conftest.$ac_ext <<_ACEOF
37105 /* end confdefs.h. */
37106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37108 #define $ac_func innocuous_$ac_func
37110 /* System header to define __stub macros and hopefully few prototypes,
37111 which can conflict with char $ac_func (); below.
37112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37113 <limits.h> exists even on freestanding compilers. */
37116 # include <limits.h>
37118 # include <assert.h>
37123 /* Override any GCC internal prototype to avoid an error.
37124 Use char because int might match the return type of a GCC
37125 builtin and then its argument prototype would still apply. */
37130 /* The GNU C library defines this for functions which it implements
37131 to always fail with ENOSYS. Some functions are actually named
37132 something starting with __ and the normal name is an alias. */
37133 #if defined __stub_$ac_func || defined __stub___$ac_func
37140 return $ac_func ();
37145 rm -f conftest.$ac_objext conftest$ac_exeext
37146 if { (ac_try="$ac_link"
37147 case "(($ac_try" in
37148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37149 *) ac_try_echo=$ac_try;;
37151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37152 (eval "$ac_link") 2>conftest.er1
37154 grep -v '^ *+' conftest.er1 >conftest.err
37156 cat conftest.err >&5
37157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37158 (exit $ac_status); } && {
37159 test -z "$ac_c_werror_flag" ||
37160 test ! -s conftest.err
37161 } && test -s conftest$ac_exeext &&
37162 $as_test_x conftest$ac_exeext; then
37163 eval "$as_ac_var=yes"
37165 echo "$as_me: failed program was:" >&5
37166 sed 's/^/| /' conftest.$ac_ext >&5
37168 eval "$as_ac_var=no"
37171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37172 conftest$ac_exeext conftest.$ac_ext
37174 ac_res=`eval echo '${'$as_ac_var'}'`
37175 { echo "$as_me:$LINENO: result: $ac_res" >&5
37176 echo "${ECHO_T}$ac_res" >&6; }
37177 if test `eval echo '${'$as_ac_var'}'` = yes; then
37178 cat >>confdefs.h <<_ACEOF
37179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37188 for ac_func in getopt getpeereid
37190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37191 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37193 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37194 echo $ECHO_N "(cached) $ECHO_C" >&6
37196 cat >conftest.$ac_ext <<_ACEOF
37199 cat confdefs.h >>conftest.$ac_ext
37200 cat >>conftest.$ac_ext <<_ACEOF
37201 /* end confdefs.h. */
37202 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37204 #define $ac_func innocuous_$ac_func
37206 /* System header to define __stub macros and hopefully few prototypes,
37207 which can conflict with char $ac_func (); below.
37208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37209 <limits.h> exists even on freestanding compilers. */
37212 # include <limits.h>
37214 # include <assert.h>
37219 /* Override any GCC internal prototype to avoid an error.
37220 Use char because int might match the return type of a GCC
37221 builtin and then its argument prototype would still apply. */
37226 /* The GNU C library defines this for functions which it implements
37227 to always fail with ENOSYS. Some functions are actually named
37228 something starting with __ and the normal name is an alias. */
37229 #if defined __stub_$ac_func || defined __stub___$ac_func
37236 return $ac_func ();
37241 rm -f conftest.$ac_objext conftest$ac_exeext
37242 if { (ac_try="$ac_link"
37243 case "(($ac_try" in
37244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245 *) ac_try_echo=$ac_try;;
37247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37248 (eval "$ac_link") 2>conftest.er1
37250 grep -v '^ *+' conftest.er1 >conftest.err
37252 cat conftest.err >&5
37253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37254 (exit $ac_status); } && {
37255 test -z "$ac_c_werror_flag" ||
37256 test ! -s conftest.err
37257 } && test -s conftest$ac_exeext &&
37258 $as_test_x conftest$ac_exeext; then
37259 eval "$as_ac_var=yes"
37261 echo "$as_me: failed program was:" >&5
37262 sed 's/^/| /' conftest.$ac_ext >&5
37264 eval "$as_ac_var=no"
37267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37268 conftest$ac_exeext conftest.$ac_ext
37270 ac_res=`eval echo '${'$as_ac_var'}'`
37271 { echo "$as_me:$LINENO: result: $ac_res" >&5
37272 echo "${ECHO_T}$ac_res" >&6; }
37273 if test `eval echo '${'$as_ac_var'}'` = yes; then
37274 cat >>confdefs.h <<_ACEOF
37275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37279 case " $LIBOBJS " in
37280 *" $ac_func.$ac_objext "* ) ;;
37281 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37290 if test "$ac_cv_func_getopt" != yes; then
37291 LIBSRCS="$LIBSRCS getopt.c"
37294 if test "$ac_cv_func_getpeereid" != yes; then
37296 for ac_func in getpeerucred
37298 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37299 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37300 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37302 echo $ECHO_N "(cached) $ECHO_C" >&6
37304 cat >conftest.$ac_ext <<_ACEOF
37307 cat confdefs.h >>conftest.$ac_ext
37308 cat >>conftest.$ac_ext <<_ACEOF
37309 /* end confdefs.h. */
37310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37312 #define $ac_func innocuous_$ac_func
37314 /* System header to define __stub macros and hopefully few prototypes,
37315 which can conflict with char $ac_func (); below.
37316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37317 <limits.h> exists even on freestanding compilers. */
37320 # include <limits.h>
37322 # include <assert.h>
37327 /* Override any GCC internal prototype to avoid an error.
37328 Use char because int might match the return type of a GCC
37329 builtin and then its argument prototype would still apply. */
37334 /* The GNU C library defines this for functions which it implements
37335 to always fail with ENOSYS. Some functions are actually named
37336 something starting with __ and the normal name is an alias. */
37337 #if defined __stub_$ac_func || defined __stub___$ac_func
37344 return $ac_func ();
37349 rm -f conftest.$ac_objext conftest$ac_exeext
37350 if { (ac_try="$ac_link"
37351 case "(($ac_try" in
37352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37353 *) ac_try_echo=$ac_try;;
37355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37356 (eval "$ac_link") 2>conftest.er1
37358 grep -v '^ *+' conftest.er1 >conftest.err
37360 cat conftest.err >&5
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); } && {
37363 test -z "$ac_c_werror_flag" ||
37364 test ! -s conftest.err
37365 } && test -s conftest$ac_exeext &&
37366 $as_test_x conftest$ac_exeext; then
37367 eval "$as_ac_var=yes"
37369 echo "$as_me: failed program was:" >&5
37370 sed 's/^/| /' conftest.$ac_ext >&5
37372 eval "$as_ac_var=no"
37375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37376 conftest$ac_exeext conftest.$ac_ext
37378 ac_res=`eval echo '${'$as_ac_var'}'`
37379 { echo "$as_me:$LINENO: result: $ac_res" >&5
37380 echo "${ECHO_T}$ac_res" >&6; }
37381 if test `eval echo '${'$as_ac_var'}'` = yes; then
37382 cat >>confdefs.h <<_ACEOF
37383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37389 if test "$ac_cv_func_getpeerucred" != yes ; then
37390 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37391 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37392 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37393 echo $ECHO_N "(cached) $ECHO_C" >&6
37395 cat >conftest.$ac_ext <<_ACEOF
37398 cat confdefs.h >>conftest.$ac_ext
37399 cat >>conftest.$ac_ext <<_ACEOF
37400 /* end confdefs.h. */
37401 $ac_includes_default
37402 #ifdef HAVE_SYS_SOCKET_H
37403 #include <sys/socket.h>
37409 static struct msghdr ac_aggr;
37410 if (ac_aggr.msg_accrightslen)
37416 rm -f conftest.$ac_objext
37417 if { (ac_try="$ac_compile"
37418 case "(($ac_try" in
37419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37420 *) ac_try_echo=$ac_try;;
37422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37423 (eval "$ac_compile") 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 test -z "$ac_c_werror_flag" ||
37431 test ! -s conftest.err
37432 } && test -s conftest.$ac_objext; then
37433 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37435 echo "$as_me: failed program was:" >&5
37436 sed 's/^/| /' conftest.$ac_ext >&5
37438 cat >conftest.$ac_ext <<_ACEOF
37441 cat confdefs.h >>conftest.$ac_ext
37442 cat >>conftest.$ac_ext <<_ACEOF
37443 /* end confdefs.h. */
37444 $ac_includes_default
37445 #ifdef HAVE_SYS_SOCKET_H
37446 #include <sys/socket.h>
37452 static struct msghdr ac_aggr;
37453 if (sizeof ac_aggr.msg_accrightslen)
37459 rm -f conftest.$ac_objext
37460 if { (ac_try="$ac_compile"
37461 case "(($ac_try" in
37462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463 *) ac_try_echo=$ac_try;;
37465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37466 (eval "$ac_compile") 2>conftest.er1
37468 grep -v '^ *+' conftest.er1 >conftest.err
37470 cat conftest.err >&5
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); } && {
37473 test -z "$ac_c_werror_flag" ||
37474 test ! -s conftest.err
37475 } && test -s conftest.$ac_objext; then
37476 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37478 echo "$as_me: failed program was:" >&5
37479 sed 's/^/| /' conftest.$ac_ext >&5
37481 ac_cv_member_struct_msghdr_msg_accrightslen=no
37484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37489 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37490 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37491 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37493 cat >>confdefs.h <<_ACEOF
37494 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37500 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37501 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37502 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37503 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37504 echo $ECHO_N "(cached) $ECHO_C" >&6
37506 cat >conftest.$ac_ext <<_ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h. */
37512 $ac_includes_default
37513 #ifdef HAVE_SYS_SOCKET_H
37514 #include <sys/socket.h>
37520 static struct msghdr ac_aggr;
37521 if (ac_aggr.msg_control)
37527 rm -f conftest.$ac_objext
37528 if { (ac_try="$ac_compile"
37529 case "(($ac_try" in
37530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37531 *) ac_try_echo=$ac_try;;
37533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37534 (eval "$ac_compile") 2>conftest.er1
37536 grep -v '^ *+' conftest.er1 >conftest.err
37538 cat conftest.err >&5
37539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37540 (exit $ac_status); } && {
37541 test -z "$ac_c_werror_flag" ||
37542 test ! -s conftest.err
37543 } && test -s conftest.$ac_objext; then
37544 ac_cv_member_struct_msghdr_msg_control=yes
37546 echo "$as_me: failed program was:" >&5
37547 sed 's/^/| /' conftest.$ac_ext >&5
37549 cat >conftest.$ac_ext <<_ACEOF
37552 cat confdefs.h >>conftest.$ac_ext
37553 cat >>conftest.$ac_ext <<_ACEOF
37554 /* end confdefs.h. */
37555 $ac_includes_default
37556 #ifdef HAVE_SYS_SOCKET_H
37557 #include <sys/socket.h>
37563 static struct msghdr ac_aggr;
37564 if (sizeof ac_aggr.msg_control)
37570 rm -f conftest.$ac_objext
37571 if { (ac_try="$ac_compile"
37572 case "(($ac_try" in
37573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37574 *) ac_try_echo=$ac_try;;
37576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37577 (eval "$ac_compile") 2>conftest.er1
37579 grep -v '^ *+' conftest.er1 >conftest.err
37581 cat conftest.err >&5
37582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37583 (exit $ac_status); } && {
37584 test -z "$ac_c_werror_flag" ||
37585 test ! -s conftest.err
37586 } && test -s conftest.$ac_objext; then
37587 ac_cv_member_struct_msghdr_msg_control=yes
37589 echo "$as_me: failed program was:" >&5
37590 sed 's/^/| /' conftest.$ac_ext >&5
37592 ac_cv_member_struct_msghdr_msg_control=no
37595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37601 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37602 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37604 cat >>confdefs.h <<_ACEOF
37605 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37612 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37613 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37614 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37615 echo $ECHO_N "(cached) $ECHO_C" >&6
37617 cat >conftest.$ac_ext <<_ACEOF
37620 cat confdefs.h >>conftest.$ac_ext
37621 cat >>conftest.$ac_ext <<_ACEOF
37622 /* end confdefs.h. */
37623 $ac_includes_default
37627 static struct stat ac_aggr;
37628 if (ac_aggr.st_fstype)
37634 rm -f conftest.$ac_objext
37635 if { (ac_try="$ac_compile"
37636 case "(($ac_try" in
37637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37638 *) ac_try_echo=$ac_try;;
37640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37641 (eval "$ac_compile") 2>conftest.er1
37643 grep -v '^ *+' conftest.er1 >conftest.err
37645 cat conftest.err >&5
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); } && {
37648 test -z "$ac_c_werror_flag" ||
37649 test ! -s conftest.err
37650 } && test -s conftest.$ac_objext; then
37651 ac_cv_member_struct_stat_st_fstype=yes
37653 echo "$as_me: failed program was:" >&5
37654 sed 's/^/| /' conftest.$ac_ext >&5
37656 cat >conftest.$ac_ext <<_ACEOF
37659 cat confdefs.h >>conftest.$ac_ext
37660 cat >>conftest.$ac_ext <<_ACEOF
37661 /* end confdefs.h. */
37662 $ac_includes_default
37666 static struct stat ac_aggr;
37667 if (sizeof ac_aggr.st_fstype)
37673 rm -f conftest.$ac_objext
37674 if { (ac_try="$ac_compile"
37675 case "(($ac_try" in
37676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37677 *) ac_try_echo=$ac_try;;
37679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37680 (eval "$ac_compile") 2>conftest.er1
37682 grep -v '^ *+' conftest.er1 >conftest.err
37684 cat conftest.err >&5
37685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37686 (exit $ac_status); } && {
37687 test -z "$ac_c_werror_flag" ||
37688 test ! -s conftest.err
37689 } && test -s conftest.$ac_objext; then
37690 ac_cv_member_struct_stat_st_fstype=yes
37692 echo "$as_me: failed program was:" >&5
37693 sed 's/^/| /' conftest.$ac_ext >&5
37695 ac_cv_member_struct_stat_st_fstype=no
37698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37703 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37704 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37705 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37707 cat >>confdefs.h <<_ACEOF
37708 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37713 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37714 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37715 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37716 echo $ECHO_N "(cached) $ECHO_C" >&6
37718 cat >conftest.$ac_ext <<_ACEOF
37721 cat confdefs.h >>conftest.$ac_ext
37722 cat >>conftest.$ac_ext <<_ACEOF
37723 /* end confdefs.h. */
37724 $ac_includes_default
37728 static struct stat ac_aggr;
37729 if (ac_aggr.st_vfstype)
37735 rm -f conftest.$ac_objext
37736 if { (ac_try="$ac_compile"
37737 case "(($ac_try" in
37738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37739 *) ac_try_echo=$ac_try;;
37741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37742 (eval "$ac_compile") 2>conftest.er1
37744 grep -v '^ *+' conftest.er1 >conftest.err
37746 cat conftest.err >&5
37747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37748 (exit $ac_status); } && {
37749 test -z "$ac_c_werror_flag" ||
37750 test ! -s conftest.err
37751 } && test -s conftest.$ac_objext; then
37752 ac_cv_member_struct_stat_st_vfstype=yes
37754 echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.$ac_ext >&5
37757 cat >conftest.$ac_ext <<_ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h. */
37763 $ac_includes_default
37767 static struct stat ac_aggr;
37768 if (sizeof ac_aggr.st_vfstype)
37774 rm -f conftest.$ac_objext
37775 if { (ac_try="$ac_compile"
37776 case "(($ac_try" in
37777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37778 *) ac_try_echo=$ac_try;;
37780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37781 (eval "$ac_compile") 2>conftest.er1
37783 grep -v '^ *+' conftest.er1 >conftest.err
37785 cat conftest.err >&5
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); } && {
37788 test -z "$ac_c_werror_flag" ||
37789 test ! -s conftest.err
37790 } && test -s conftest.$ac_objext; then
37791 ac_cv_member_struct_stat_st_vfstype=yes
37793 echo "$as_me: failed program was:" >&5
37794 sed 's/^/| /' conftest.$ac_ext >&5
37796 ac_cv_member_struct_stat_st_vfstype=no
37799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37804 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37805 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37806 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37808 cat >>confdefs.h <<_ACEOF
37809 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37815 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37816 cat >conftest.$ac_ext <<_ACEOF
37817 struct stat st; char *ptr=st.st_fstype;
37819 rm -f conftest.$ac_objext
37820 if { (ac_try="$ac_compile"
37821 case "(($ac_try" in
37822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37823 *) ac_try_echo=$ac_try;;
37825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37826 (eval "$ac_compile") 2>conftest.er1
37828 grep -v '^ *+' conftest.er1 >conftest.err
37830 cat conftest.err >&5
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); } && {
37833 test -z "$ac_c_werror_flag" ||
37834 test ! -s conftest.err
37835 } && test -s conftest.$ac_objext; then
37837 cat >>confdefs.h <<\_ACEOF
37838 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37842 echo "$as_me: failed program was:" >&5
37843 sed 's/^/| /' conftest.$ac_ext >&5
37846 cat >>confdefs.h <<\_ACEOF
37847 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37855 LIBSRCS="$LIBSRCS getpeereid.c"
37858 if test "$ac_cv_func_snprintf" != yes ||
37859 test "$ac_cv_func_vsnprintf" != yes; then
37860 if test "$ac_cv_func_snprintf" != yes; then
37862 cat >>confdefs.h <<\_ACEOF
37863 #define snprintf ber_pvt_snprintf
37867 if test "$ac_cv_func_vsnprintf" != yes; then
37869 cat >>confdefs.h <<\_ACEOF
37870 #define vsnprintf ber_pvt_vsnprintf
37877 if test "$ol_enable_slapi" != no ; then
37879 for ac_header in ltdl.h
37881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37883 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37886 echo $ECHO_N "(cached) $ECHO_C" >&6
37888 ac_res=`eval echo '${'$as_ac_Header'}'`
37889 { echo "$as_me:$LINENO: result: $ac_res" >&5
37890 echo "${ECHO_T}$ac_res" >&6; }
37892 # Is the header compilable?
37893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37895 cat >conftest.$ac_ext <<_ACEOF
37898 cat confdefs.h >>conftest.$ac_ext
37899 cat >>conftest.$ac_ext <<_ACEOF
37900 /* end confdefs.h. */
37901 $ac_includes_default
37902 #include <$ac_header>
37904 rm -f conftest.$ac_objext
37905 if { (ac_try="$ac_compile"
37906 case "(($ac_try" in
37907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37908 *) ac_try_echo=$ac_try;;
37910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37911 (eval "$ac_compile") 2>conftest.er1
37913 grep -v '^ *+' conftest.er1 >conftest.err
37915 cat conftest.err >&5
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); } && {
37918 test -z "$ac_c_werror_flag" ||
37919 test ! -s conftest.err
37920 } && test -s conftest.$ac_objext; then
37921 ac_header_compiler=yes
37923 echo "$as_me: failed program was:" >&5
37924 sed 's/^/| /' conftest.$ac_ext >&5
37926 ac_header_compiler=no
37929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37931 echo "${ECHO_T}$ac_header_compiler" >&6; }
37933 # Is the header present?
37934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37936 cat >conftest.$ac_ext <<_ACEOF
37939 cat confdefs.h >>conftest.$ac_ext
37940 cat >>conftest.$ac_ext <<_ACEOF
37941 /* end confdefs.h. */
37942 #include <$ac_header>
37944 if { (ac_try="$ac_cpp conftest.$ac_ext"
37945 case "(($ac_try" in
37946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37947 *) ac_try_echo=$ac_try;;
37949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37952 grep -v '^ *+' conftest.er1 >conftest.err
37954 cat conftest.err >&5
37955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37956 (exit $ac_status); } >/dev/null && {
37957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37958 test ! -s conftest.err
37960 ac_header_preproc=yes
37962 echo "$as_me: failed program was:" >&5
37963 sed 's/^/| /' conftest.$ac_ext >&5
37965 ac_header_preproc=no
37968 rm -f conftest.err conftest.$ac_ext
37969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37970 echo "${ECHO_T}$ac_header_preproc" >&6; }
37972 # So? What about this header?
37973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37979 ac_header_preproc=yes
37982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37995 ## --------------------------------------------- ##
37996 ## Report this to <http://www.openldap.org/its/> ##
37997 ## --------------------------------------------- ##
37999 ) | sed "s/^/$as_me: WARNING: /" >&2
38002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38005 echo $ECHO_N "(cached) $ECHO_C" >&6
38007 eval "$as_ac_Header=\$ac_header_preproc"
38009 ac_res=`eval echo '${'$as_ac_Header'}'`
38010 { echo "$as_me:$LINENO: result: $ac_res" >&5
38011 echo "${ECHO_T}$ac_res" >&6; }
38014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38015 cat >>confdefs.h <<_ACEOF
38016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38024 if test $ac_cv_header_ltdl_h != yes ; then
38025 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38026 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38027 { (exit 1); exit 1; }; }
38029 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38030 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38031 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38032 echo $ECHO_N "(cached) $ECHO_C" >&6
38034 ac_check_lib_save_LIBS=$LIBS
38035 LIBS="-lltdl $LIBS"
38036 cat >conftest.$ac_ext <<_ACEOF
38039 cat confdefs.h >>conftest.$ac_ext
38040 cat >>conftest.$ac_ext <<_ACEOF
38041 /* end confdefs.h. */
38043 /* Override any GCC internal prototype to avoid an error.
38044 Use char because int might match the return type of a GCC
38045 builtin and then its argument prototype would still apply. */
38053 return lt_dlinit ();
38058 rm -f conftest.$ac_objext conftest$ac_exeext
38059 if { (ac_try="$ac_link"
38060 case "(($ac_try" in
38061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38062 *) ac_try_echo=$ac_try;;
38064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38065 (eval "$ac_link") 2>conftest.er1
38067 grep -v '^ *+' conftest.er1 >conftest.err
38069 cat conftest.err >&5
38070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38071 (exit $ac_status); } && {
38072 test -z "$ac_c_werror_flag" ||
38073 test ! -s conftest.err
38074 } && test -s conftest$ac_exeext &&
38075 $as_test_x conftest$ac_exeext; then
38076 ac_cv_lib_ltdl_lt_dlinit=yes
38078 echo "$as_me: failed program was:" >&5
38079 sed 's/^/| /' conftest.$ac_ext >&5
38081 ac_cv_lib_ltdl_lt_dlinit=no
38084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38085 conftest$ac_exeext conftest.$ac_ext
38086 LIBS=$ac_check_lib_save_LIBS
38088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38089 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38090 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38093 LIBSLAPI=libslapi.a
38094 LIBSLAPITOOLS=../libslapi.a
38096 cat >>confdefs.h <<\_ACEOF
38097 #define HAVE_LIBLTDL 1
38102 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38103 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38104 { (exit 1); exit 1; }; }
38109 cat >>confdefs.h <<\_ACEOF
38110 #define LDAP_SLAPI 1
38115 if test "$ol_enable_debug" != no ; then
38116 if test "$ol_enable_debug" = traditional; then
38118 cat >>confdefs.h <<\_ACEOF
38119 #define OLD_DEBUG 1
38124 cat >>confdefs.h <<\_ACEOF
38125 #define LDAP_DEBUG 1
38129 if test "$ol_enable_syslog" = yes ; then
38131 cat >>confdefs.h <<\_ACEOF
38132 #define LDAP_SYSLOG 1
38136 if test "$ol_enable_proctitle" != no ; then
38138 cat >>confdefs.h <<\_ACEOF
38139 #define LDAP_PROCTITLE 1
38143 if test "$ol_enable_referrals" != no ; then
38145 cat >>confdefs.h <<\_ACEOF
38146 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38150 if test "$ol_enable_local" != no; then
38152 cat >>confdefs.h <<\_ACEOF
38153 #define LDAP_PF_LOCAL 1
38157 if test "$ol_link_ipv6" != no; then
38159 cat >>confdefs.h <<\_ACEOF
38160 #define LDAP_PF_INET6 1
38164 if test "$ol_enable_cleartext" != no ; then
38166 cat >>confdefs.h <<\_ACEOF
38167 #define SLAPD_CLEARTEXT 1
38171 if test "$ol_enable_crypt" != no ; then
38173 cat >>confdefs.h <<\_ACEOF
38174 #define SLAPD_CRYPT 1
38178 if test "$ol_link_spasswd" != no ; then
38180 cat >>confdefs.h <<\_ACEOF
38181 #define SLAPD_SPASSWD 1
38185 if test "$ol_enable_rlookups" != no ; then
38187 cat >>confdefs.h <<\_ACEOF
38188 #define SLAPD_RLOOKUPS 1
38192 if test "$ol_enable_aci" != no ; then
38193 if test $ol_enable_dynacl = no ; then
38194 ol_enable_dynacl=yes
38195 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38196 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38198 if test "$ol_enable_aci" = mod ; then
38199 MFLAG=SLAPD_MOD_DYNAMIC
38200 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38201 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38202 { (exit 1); exit 1; }; }
38204 MFLAG=SLAPD_MOD_STATIC
38206 WITH_ACI_ENABLED=$ol_enable_aci
38208 cat >>confdefs.h <<_ACEOF
38209 #define SLAPD_ACI_ENABLED $MFLAG
38213 WITH_ACI_ENABLED=no
38215 if test "$ol_enable_dynacl" != no ; then
38217 cat >>confdefs.h <<\_ACEOF
38218 #define SLAP_DYNACL 1
38223 if test "$ol_link_modules" != no ; then
38225 cat >>confdefs.h <<\_ACEOF
38226 #define SLAPD_MODULES 1
38230 SLAPD_MODULES_LDFLAGS="-dlopen self"
38234 cat >>confdefs.h <<\_ACEOF
38235 #define SLAPD_MOD_STATIC 1
38239 cat >>confdefs.h <<\_ACEOF
38240 #define SLAPD_MOD_DYNAMIC 2
38244 if test "$ol_enable_monitor" != no ; then
38246 BUILD_MONITOR=$ol_enable_monitor
38247 if test "$ol_enable_monitor" = mod ; then
38248 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38249 MFLAG=SLAPD_MOD_DYNAMIC
38251 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38252 MFLAG=SLAPD_MOD_STATIC
38255 cat >>confdefs.h <<_ACEOF
38256 #define SLAPD_MONITOR $MFLAG
38261 if test "$ol_enable_bdb" != no ; then
38263 BUILD_BDB=$ol_enable_bdb
38264 if test "$ol_enable_bdb" = mod ; then
38265 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38266 MFLAG=SLAPD_MOD_DYNAMIC
38268 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38269 MFLAG=SLAPD_MOD_STATIC
38272 cat >>confdefs.h <<_ACEOF
38273 #define SLAPD_BDB $MFLAG
38278 if test "$ol_enable_dnssrv" != no ; then
38280 BUILD_DNSSRV=$ol_enable_dnssrv
38281 if test "$ol_enable_dnssrv" = mod ; then
38282 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38283 MFLAG=SLAPD_MOD_DYNAMIC
38285 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38286 MFLAG=SLAPD_MOD_STATIC
38289 cat >>confdefs.h <<_ACEOF
38290 #define SLAPD_DNSSRV $MFLAG
38295 if test "$ol_enable_hdb" != no ; then
38297 BUILD_HDB=$ol_enable_hdb
38298 if test "$ol_enable_hdb" = mod ; then
38299 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38300 MFLAG=SLAPD_MOD_DYNAMIC
38302 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38303 MFLAG=SLAPD_MOD_STATIC
38306 cat >>confdefs.h <<_ACEOF
38307 #define SLAPD_HDB $MFLAG
38312 if test "$ol_enable_ldap" != no ; then
38314 BUILD_LDAP=$ol_enable_ldap
38315 if test "$ol_enable_ldap" = mod ; then
38316 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38317 MFLAG=SLAPD_MOD_DYNAMIC
38319 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38320 MFLAG=SLAPD_MOD_STATIC
38323 cat >>confdefs.h <<_ACEOF
38324 #define SLAPD_LDAP $MFLAG
38329 if test "$ol_enable_meta" != no ; then
38331 BUILD_META=$ol_enable_meta
38333 if test "$ol_enable_meta" = mod ; then
38334 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38335 MFLAG=SLAPD_MOD_DYNAMIC
38337 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38338 MFLAG=SLAPD_MOD_STATIC
38341 cat >>confdefs.h <<_ACEOF
38342 #define SLAPD_META $MFLAG
38347 if test "$ol_enable_ndb" != no ; then
38349 BUILD_NDB=$ol_enable_ndb
38350 if test "$ol_enable_ndb" = mod ; then
38351 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38352 MFLAG=SLAPD_MOD_DYNAMIC
38354 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38355 MFLAG=SLAPD_MOD_STATIC
38358 cat >>confdefs.h <<_ACEOF
38359 #define SLAPD_NDB $MFLAG
38364 if test "$ol_enable_null" != no ; then
38366 BUILD_NULL=$ol_enable_null
38367 if test "$ol_enable_null" = mod ; then
38368 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38369 MFLAG=SLAPD_MOD_DYNAMIC
38371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38372 MFLAG=SLAPD_MOD_STATIC
38375 cat >>confdefs.h <<_ACEOF
38376 #define SLAPD_NULL $MFLAG
38381 if test "$ol_enable_passwd" != no ; then
38383 BUILD_PASSWD=$ol_enable_passwd
38384 if test "$ol_enable_passwd" = mod ; then
38385 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38386 MFLAG=SLAPD_MOD_DYNAMIC
38388 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38389 MFLAG=SLAPD_MOD_STATIC
38392 cat >>confdefs.h <<_ACEOF
38393 #define SLAPD_PASSWD $MFLAG
38398 if test "$ol_link_perl" != no ; then
38400 BUILD_PERL=$ol_enable_perl
38401 if test "$ol_enable_perl" = mod ; then
38402 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38403 MFLAG=SLAPD_MOD_DYNAMIC
38405 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38406 MFLAG=SLAPD_MOD_STATIC
38409 cat >>confdefs.h <<_ACEOF
38410 #define SLAPD_PERL $MFLAG
38415 if test "$ol_enable_relay" != no ; then
38417 BUILD_RELAY=$ol_enable_relay
38418 if test "$ol_enable_relay" = mod ; then
38419 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38420 MFLAG=SLAPD_MOD_DYNAMIC
38422 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38423 MFLAG=SLAPD_MOD_STATIC
38426 cat >>confdefs.h <<_ACEOF
38427 #define SLAPD_RELAY $MFLAG
38432 if test "$ol_enable_shell" != no ; then
38433 if test "$ol_link_threads" != no ; then
38434 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38435 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38438 BUILD_SHELL=$ol_enable_shell
38439 if test "$ol_enable_shell" = mod ; then
38440 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38441 MFLAG=SLAPD_MOD_DYNAMIC
38443 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38444 MFLAG=SLAPD_MOD_STATIC
38447 cat >>confdefs.h <<_ACEOF
38448 #define SLAPD_SHELL $MFLAG
38453 if test "$ol_enable_sock" != no ; then
38455 BUILD_SOCK=$ol_enable_sock
38456 if test "$ol_enable_sock" = mod ; then
38457 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38458 MFLAG=SLAPD_MOD_DYNAMIC
38460 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38461 MFLAG=SLAPD_MOD_STATIC
38464 cat >>confdefs.h <<_ACEOF
38465 #define SLAPD_SOCK $MFLAG
38470 if test "$ol_link_sql" != no ; then
38472 BUILD_SQL=$ol_enable_sql
38473 if test "$ol_enable_sql" = mod; then
38474 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38475 MFLAG=SLAPD_MOD_DYNAMIC
38477 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38478 MFLAG=SLAPD_MOD_STATIC
38481 cat >>confdefs.h <<_ACEOF
38482 #define SLAPD_SQL $MFLAG
38487 if test "$ol_enable_accesslog" != no ; then
38488 BUILD_ACCESSLOG=$ol_enable_accesslog
38489 if test "$ol_enable_accesslog" = mod ; then
38490 MFLAG=SLAPD_MOD_DYNAMIC
38491 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38493 MFLAG=SLAPD_MOD_STATIC
38494 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38497 cat >>confdefs.h <<_ACEOF
38498 #define SLAPD_OVER_ACCESSLOG $MFLAG
38503 if test "$ol_enable_auditlog" != no ; then
38504 BUILD_AUDITLOG=$ol_enable_auditlog
38505 if test "$ol_enable_auditlog" = mod ; then
38506 MFLAG=SLAPD_MOD_DYNAMIC
38507 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38509 MFLAG=SLAPD_MOD_STATIC
38510 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38513 cat >>confdefs.h <<_ACEOF
38514 #define SLAPD_OVER_AUDITLOG $MFLAG
38519 if test "$ol_enable_collect" != no ; then
38520 BUILD_COLLECT=$ol_enable_collect
38521 if test "$ol_enable_collect" = mod ; then
38522 MFLAG=SLAPD_MOD_DYNAMIC
38523 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38525 MFLAG=SLAPD_MOD_STATIC
38526 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38529 cat >>confdefs.h <<_ACEOF
38530 #define SLAPD_OVER_COLLECT $MFLAG
38535 if test "$ol_enable_constraint" != no ; then
38536 BUILD_CONSTRAINT=$ol_enable_constraint
38537 if test "$ol_enable_constraint" = mod ; then
38538 MFLAG=SLAPD_MOD_DYNAMIC
38539 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38541 MFLAG=SLAPD_MOD_STATIC
38542 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38545 cat >>confdefs.h <<_ACEOF
38546 #define SLAPD_OVER_CONSTRAINT $MFLAG
38551 if test "$ol_enable_dds" != no ; then
38552 BUILD_DDS=$ol_enable_dds
38553 if test "$ol_enable_dds" = mod ; then
38554 MFLAG=SLAPD_MOD_DYNAMIC
38555 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38557 MFLAG=SLAPD_MOD_STATIC
38558 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38561 cat >>confdefs.h <<_ACEOF
38562 #define SLAPD_OVER_DDS $MFLAG
38567 if test "$ol_enable_deref" != no ; then
38568 BUILD_DDS=$ol_enable_deref
38569 if test "$ol_enable_deref" = mod ; then
38570 MFLAG=SLAPD_MOD_DYNAMIC
38571 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38573 MFLAG=SLAPD_MOD_STATIC
38574 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38577 cat >>confdefs.h <<_ACEOF
38578 #define SLAPD_OVER_DEREF $MFLAG
38583 if test "$ol_enable_dyngroup" != no ; then
38584 BUILD_DYNGROUP=$ol_enable_dyngroup
38585 if test "$ol_enable_dyngroup" = mod ; then
38586 MFLAG=SLAPD_MOD_DYNAMIC
38587 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38589 MFLAG=SLAPD_MOD_STATIC
38590 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38593 cat >>confdefs.h <<_ACEOF
38594 #define SLAPD_OVER_DYNGROUP $MFLAG
38599 if test "$ol_enable_dynlist" != no ; then
38600 BUILD_DYNLIST=$ol_enable_dynlist
38601 if test "$ol_enable_dynlist" = mod ; then
38602 MFLAG=SLAPD_MOD_DYNAMIC
38603 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38605 MFLAG=SLAPD_MOD_STATIC
38606 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38609 cat >>confdefs.h <<_ACEOF
38610 #define SLAPD_OVER_DYNLIST $MFLAG
38615 if test "$ol_enable_memberof" != no ; then
38616 BUILD_MEMBEROF=$ol_enable_memberof
38617 if test "$ol_enable_memberof" = mod ; then
38618 MFLAG=SLAPD_MOD_DYNAMIC
38619 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38621 MFLAG=SLAPD_MOD_STATIC
38622 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38625 cat >>confdefs.h <<_ACEOF
38626 #define SLAPD_OVER_MEMBEROF $MFLAG
38631 if test "$ol_enable_ppolicy" != no ; then
38632 BUILD_PPOLICY=$ol_enable_ppolicy
38633 if test "$ol_enable_ppolicy" = mod ; then
38634 MFLAG=SLAPD_MOD_DYNAMIC
38635 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38637 MFLAG=SLAPD_MOD_STATIC
38638 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38641 cat >>confdefs.h <<_ACEOF
38642 #define SLAPD_OVER_PPOLICY $MFLAG
38647 if test "$ol_enable_proxycache" != no ; then
38648 BUILD_PROXYCACHE=$ol_enable_proxycache
38649 if test "$ol_enable_proxycache" = mod ; then
38650 MFLAG=SLAPD_MOD_DYNAMIC
38651 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38653 MFLAG=SLAPD_MOD_STATIC
38654 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38657 cat >>confdefs.h <<_ACEOF
38658 #define SLAPD_OVER_PROXYCACHE $MFLAG
38663 if test "$ol_enable_refint" != no ; then
38664 BUILD_REFINT=$ol_enable_refint
38665 if test "$ol_enable_refint" = mod ; then
38666 MFLAG=SLAPD_MOD_DYNAMIC
38667 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38669 MFLAG=SLAPD_MOD_STATIC
38670 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38673 cat >>confdefs.h <<_ACEOF
38674 #define SLAPD_OVER_REFINT $MFLAG
38679 if test "$ol_enable_retcode" != no ; then
38680 BUILD_RETCODE=$ol_enable_retcode
38681 if test "$ol_enable_retcode" = mod ; then
38682 MFLAG=SLAPD_MOD_DYNAMIC
38683 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38685 MFLAG=SLAPD_MOD_STATIC
38686 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38689 cat >>confdefs.h <<_ACEOF
38690 #define SLAPD_OVER_RETCODE $MFLAG
38695 if test "$ol_enable_rwm" != no ; then
38697 BUILD_RWM=$ol_enable_rwm
38698 if test "$ol_enable_rwm" = mod ; then
38699 MFLAG=SLAPD_MOD_DYNAMIC
38700 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38702 MFLAG=SLAPD_MOD_STATIC
38703 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38706 cat >>confdefs.h <<_ACEOF
38707 #define SLAPD_OVER_RWM $MFLAG
38712 if test "$ol_enable_seqmod" != no ; then
38713 BUILD_SEQMOD=$ol_enable_seqmod
38714 if test "$ol_enable_seqmod" = mod ; then
38715 MFLAG=SLAPD_MOD_DYNAMIC
38716 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38718 MFLAG=SLAPD_MOD_STATIC
38719 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38722 cat >>confdefs.h <<_ACEOF
38723 #define SLAPD_OVER_SEQMOD $MFLAG
38728 if test "$ol_enable_sssvlv" != no ; then
38729 BUILD_SSSVLV=$ol_enable_sssvlv
38730 if test "$ol_enable_sssvlv" = mod ; then
38731 MFLAG=SLAPD_MOD_DYNAMIC
38732 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38734 MFLAG=SLAPD_MOD_STATIC
38735 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38738 cat >>confdefs.h <<_ACEOF
38739 #define SLAPD_OVER_SSSVLV $MFLAG
38744 if test "$ol_enable_syncprov" != no ; then
38745 BUILD_SYNCPROV=$ol_enable_syncprov
38746 if test "$ol_enable_syncprov" = mod ; then
38747 MFLAG=SLAPD_MOD_DYNAMIC
38748 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38750 MFLAG=SLAPD_MOD_STATIC
38751 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38754 cat >>confdefs.h <<_ACEOF
38755 #define SLAPD_OVER_SYNCPROV $MFLAG
38760 if test "$ol_enable_translucent" != no ; then
38761 BUILD_TRANSLUCENT=$ol_enable_translucent
38762 if test "$ol_enable_translucent" = mod ; then
38763 MFLAG=SLAPD_MOD_DYNAMIC
38764 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38766 MFLAG=SLAPD_MOD_STATIC
38767 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38770 cat >>confdefs.h <<_ACEOF
38771 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38776 if test "$ol_enable_unique" != no ; then
38777 BUILD_UNIQUE=$ol_enable_unique
38778 if test "$ol_enable_unique" = mod ; then
38779 MFLAG=SLAPD_MOD_DYNAMIC
38780 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38782 MFLAG=SLAPD_MOD_STATIC
38783 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38786 cat >>confdefs.h <<_ACEOF
38787 #define SLAPD_OVER_UNIQUE $MFLAG
38792 if test "$ol_enable_valsort" != no ; then
38793 BUILD_VALSORT=$ol_enable_valsort
38794 if test "$ol_enable_valsort" = mod ; then
38795 MFLAG=SLAPD_MOD_DYNAMIC
38796 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38798 MFLAG=SLAPD_MOD_STATIC
38799 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38802 cat >>confdefs.h <<_ACEOF
38803 #define SLAPD_OVER_VALSORT $MFLAG
38808 if test "$ol_enable_rewrite" != no ; then
38810 cat >>confdefs.h <<\_ACEOF
38811 #define ENABLE_REWRITE 1
38817 if test "$ol_enable_slapi" != no ; then
38819 cat >>confdefs.h <<\_ACEOF
38820 #define ENABLE_SLAPI 1
38824 SLAPD_SLAPI_DEPEND=libslapi.a
38829 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38831 SLAPD_MODULES_LDFLAGS=
38925 # Check whether --with-xxinstall was given.
38926 if test "${with_xxinstall+set}" = set; then
38927 withval=$with_xxinstall;
38932 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"
38935 ac_config_commands="$ac_config_commands default"
38939 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38940 # Let make expand exec_prefix.
38941 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38943 DEFS=-DHAVE_CONFIG_H
38947 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38948 # 1. Remove the extension, and $U if already installed.
38949 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38950 ac_i=`echo "$ac_i" | sed "$ac_script"`
38951 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38952 # will be set to the directory where LIBOBJS objects are built.
38953 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38954 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38956 LIBOBJS=$ac_libobjs
38958 LTLIBOBJS=$ac_ltlibobjs
38961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38962 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38963 Usually this means the macro was only invoked conditionally." >&5
38964 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38965 Usually this means the macro was only invoked conditionally." >&2;}
38966 { (exit 1); exit 1; }; }
38968 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38969 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38970 Usually this means the macro was only invoked conditionally." >&5
38971 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38972 Usually this means the macro was only invoked conditionally." >&2;}
38973 { (exit 1); exit 1; }; }
38975 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38976 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38977 Usually this means the macro was only invoked conditionally." >&5
38978 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38979 Usually this means the macro was only invoked conditionally." >&2;}
38980 { (exit 1); exit 1; }; }
38983 : ${CONFIG_STATUS=./config.status}
38984 ac_clean_files_save=$ac_clean_files
38985 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38986 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38987 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38988 cat >$CONFIG_STATUS <<_ACEOF
38990 # Generated by $as_me.
38991 # Run this file to recreate the current configuration.
38992 # Compiler output produced by configure, useful for debugging
38993 # configure, is in config.log if it exists.
38996 ac_cs_recheck=false
38998 SHELL=\${CONFIG_SHELL-$SHELL}
39001 cat >>$CONFIG_STATUS <<\_ACEOF
39002 ## --------------------- ##
39003 ## M4sh Initialization. ##
39004 ## --------------------- ##
39006 # Be more Bourne compatible
39007 DUALCASE=1; export DUALCASE # for MKS sh
39008 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39011 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39012 # is contrary to our usage. Disable this feature.
39013 alias -g '${1+"$@"}'='"$@"'
39014 setopt NO_GLOB_SUBST
39016 case `(set -o) 2>/dev/null` in
39017 *posix*) set -o posix ;;
39026 # Avoid depending upon Character Ranges.
39027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39030 as_cr_digits='0123456789'
39031 as_cr_alnum=$as_cr_Letters$as_cr_digits
39033 # The user is always right.
39034 if test "${PATH_SEPARATOR+set}" != set; then
39035 echo "#! /bin/sh" >conf$$.sh
39036 echo "exit 0" >>conf$$.sh
39038 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39046 # Support unset when possible.
39047 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39055 # We need space, tab and new line, in precisely that order. Quoting is
39056 # there to prevent editors from complaining about space-tab.
39057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39058 # splitting by setting IFS to empty value.)
39063 # Find who we are. Look in the path if we contain no directory separator.
39065 *[\\/]* ) as_myself=$0 ;;
39066 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39067 for as_dir in $PATH
39070 test -z "$as_dir" && as_dir=.
39071 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39077 # We did not find ourselves, most probably we were run as `sh COMMAND'
39078 # in which case we are not to be found in the path.
39079 if test "x$as_myself" = x; then
39082 if test ! -f "$as_myself"; then
39083 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39084 { (exit 1); exit 1; }
39087 # Work around bugs in pre-3.0 UWIN ksh.
39088 for as_var in ENV MAIL MAILPATH
39089 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39097 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39098 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39099 LC_TELEPHONE LC_TIME
39101 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39102 eval $as_var=C; export $as_var
39104 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39108 # Required to use basename.
39109 if expr a : '\(a\)' >/dev/null 2>&1 &&
39110 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39116 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39117 as_basename=basename
39123 # Name of the executable.
39124 as_me=`$as_basename -- "$0" ||
39125 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39126 X"$0" : 'X\(//\)$' \| \
39127 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39129 sed '/^.*\/\([^/][^/]*\)\/*$/{
39148 as_lineno_1=$LINENO
39149 as_lineno_2=$LINENO
39150 test "x$as_lineno_1" != "x$as_lineno_2" &&
39151 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39153 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39154 # uniformly replaced by the line number. The first 'sed' inserts a
39155 # line-number line after each line using $LINENO; the second 'sed'
39156 # does the real work. The second script uses 'N' to pair each
39157 # line-number line with the line containing $LINENO, and appends
39158 # trailing '-' during substitution so that $LINENO is not a special
39159 # case at line end.
39160 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39161 # scripts with optimization help from Paolo Bonzini. Blame Lee
39162 # E. McMahon (1931-1989) for sed's syntax. :-)
39174 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39177 ' >$as_me.lineno &&
39178 chmod +x "$as_me.lineno" ||
39179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39180 { (exit 1); exit 1; }; }
39182 # Don't try to exec as it changes $[0], causing all sort of problems
39183 # (the dirname of $[0] is not the place where we might find the
39184 # original and so on. Autoconf is especially sensitive to this).
39185 . "./$as_me.lineno"
39186 # Exit status is that of the last command.
39191 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39197 ECHO_C= ECHO_N= ECHO_T=
39198 case `echo -n x` in
39200 case `echo 'x\c'` in
39201 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39208 if expr a : '\(a\)' >/dev/null 2>&1 &&
39209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39215 rm -f conf$$ conf$$.exe conf$$.file
39216 if test -d conf$$.dir; then
39217 rm -f conf$$.dir/conf$$.file
39223 if ln -s conf$$.file conf$$ 2>/dev/null; then
39225 # ... but there are two gotchas:
39226 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39227 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39228 # In both cases, we have to default to `cp -p'.
39229 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39231 elif ln conf$$.file conf$$ 2>/dev/null; then
39236 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39237 rmdir conf$$.dir 2>/dev/null
39239 if mkdir -p . 2>/dev/null; then
39242 test -d ./-p && rmdir ./-p
39246 if test -x / >/dev/null 2>&1; then
39247 as_test_x='test -x'
39249 if ls -dL / >/dev/null 2>&1; then
39256 if test -d "$1"; then
39262 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39263 ???[sx]*):;;*)false;;esac;fi
39267 as_executable_p=$as_test_x
39269 # Sed expression to map a string onto a valid CPP name.
39270 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39272 # Sed expression to map a string onto a valid variable name.
39273 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39278 # Save the log message, to keep $[0] and so on meaningful, and to
39279 # report actual input values of CONFIG_FILES etc. instead of their
39280 # values after options handling.
39282 This file was extended by $as_me, which was
39283 generated by GNU Autoconf 2.61. Invocation command line was
39285 CONFIG_FILES = $CONFIG_FILES
39286 CONFIG_HEADERS = $CONFIG_HEADERS
39287 CONFIG_LINKS = $CONFIG_LINKS
39288 CONFIG_COMMANDS = $CONFIG_COMMANDS
39291 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39296 cat >>$CONFIG_STATUS <<_ACEOF
39297 # Files that config.status was made for.
39298 config_files="$ac_config_files"
39299 config_headers="$ac_config_headers"
39300 config_commands="$ac_config_commands"
39304 cat >>$CONFIG_STATUS <<\_ACEOF
39306 \`$as_me' instantiates files from templates according to the
39307 current configuration.
39309 Usage: $0 [OPTIONS] [FILE]...
39311 -h, --help print this help, then exit
39312 -V, --version print version number and configuration settings, then exit
39313 -q, --quiet do not print progress messages
39314 -d, --debug don't remove temporary files
39315 --recheck update $as_me by reconfiguring in the same conditions
39316 --file=FILE[:TEMPLATE]
39317 instantiate the configuration file FILE
39318 --header=FILE[:TEMPLATE]
39319 instantiate the configuration header FILE
39321 Configuration files:
39324 Configuration headers:
39327 Configuration commands:
39330 Report bugs to <bug-autoconf@gnu.org>."
39333 cat >>$CONFIG_STATUS <<_ACEOF
39336 configured by $0, generated by GNU Autoconf 2.61,
39337 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39339 Copyright (C) 2006 Free Software Foundation, Inc.
39340 This config.status script is free software; the Free Software Foundation
39341 gives unlimited permission to copy, distribute and modify it."
39348 cat >>$CONFIG_STATUS <<\_ACEOF
39349 # If no file are specified by the user, then we need to provide default
39350 # value. By we need to know if files were specified by the user.
39356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39357 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39368 # Handling of the options.
39369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39372 echo "$ac_cs_version"; exit ;;
39373 --debug | --debu | --deb | --de | --d | -d )
39375 --file | --fil | --fi | --f )
39377 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39378 ac_need_defaults=false;;
39379 --header | --heade | --head | --hea )
39381 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39382 ac_need_defaults=false;;
39384 # Conflict between --help and --header
39385 { echo "$as_me: error: ambiguous option: $1
39386 Try \`$0 --help' for more information." >&2
39387 { (exit 1); exit 1; }; };;
39388 --help | --hel | -h )
39389 echo "$ac_cs_usage"; exit ;;
39390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39391 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39394 # This is an error.
39395 -*) { echo "$as_me: error: unrecognized option: $1
39396 Try \`$0 --help' for more information." >&2
39397 { (exit 1); exit 1; }; } ;;
39399 *) ac_config_targets="$ac_config_targets $1"
39400 ac_need_defaults=false ;;
39406 ac_configure_extra_args=
39408 if $ac_cs_silent; then
39410 ac_configure_extra_args="$ac_configure_extra_args --silent"
39414 cat >>$CONFIG_STATUS <<_ACEOF
39415 if \$ac_cs_recheck; then
39416 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39417 CONFIG_SHELL=$SHELL
39418 export CONFIG_SHELL
39419 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39423 cat >>$CONFIG_STATUS <<\_ACEOF
39427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39428 ## Running $as_me. ##
39434 cat >>$CONFIG_STATUS <<_ACEOF
39438 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39440 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39441 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39446 cat >>$CONFIG_STATUS <<\_ACEOF
39448 # Handling of arguments.
39449 for ac_config_target in $ac_config_targets
39451 case $ac_config_target in
39452 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39453 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39454 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39455 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39456 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39457 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39458 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39459 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39460 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39461 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39462 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39463 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39464 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39465 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39466 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39467 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39468 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39469 "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" ;;
39470 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39471 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39472 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39473 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39474 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39475 "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" ;;
39476 "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" ;;
39477 "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" ;;
39478 "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" ;;
39479 "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" ;;
39480 "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" ;;
39481 "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" ;;
39482 "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" ;;
39483 "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" ;;
39484 "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" ;;
39485 "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" ;;
39486 "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" ;;
39487 "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" ;;
39488 "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" ;;
39489 "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" ;;
39490 "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" ;;
39491 "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" ;;
39492 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39493 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39494 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39495 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39496 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39498 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39499 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39500 { (exit 1); exit 1; }; };;
39505 # If the user did not use the arguments to specify the items to instantiate,
39506 # then the envvar interface is used. Set only those that are not.
39507 # We use the long form for the default assignment because of an extremely
39508 # bizarre bug on SunOS 4.1.3.
39509 if $ac_need_defaults; then
39510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39511 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39512 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39515 # Have a temporary directory for convenience. Make it in the build tree
39516 # simply because there is no reason against having it here, and in addition,
39517 # creating and moving files from /tmp can sometimes cause problems.
39518 # Hook for its removal unless debugging.
39519 # Note that there is a small window in which the directory will not be cleaned:
39520 # after its creation but before its name has been assigned to `$tmp'.
39524 trap 'exit_status=$?
39525 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39527 trap '{ (exit 1); exit 1; }' 1 2 13 15
39529 # Create a (secure) tmp directory for tmp files.
39532 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39533 test -n "$tmp" && test -d "$tmp"
39536 tmp=./conf$$-$RANDOM
39537 (umask 077 && mkdir "$tmp")
39540 echo "$me: cannot create a temporary directory in ." >&2
39541 { (exit 1); exit 1; }
39545 # Set up the sed scripts for CONFIG_FILES section.
39548 # No need to generate the scripts if there are no CONFIG_FILES.
39549 # This happens for instance when ./config.status config.h
39550 if test -n "$CONFIG_FILES"; then
39557 for ac_last_try in false false false false false :; do
39558 cat >conf$$subs.sed <<_ACEOF
39559 SHELL!$SHELL$ac_delim
39560 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39561 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39562 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39563 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39564 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39565 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39566 exec_prefix!$exec_prefix$ac_delim
39567 prefix!$prefix$ac_delim
39568 program_transform_name!$program_transform_name$ac_delim
39569 bindir!$bindir$ac_delim
39570 sbindir!$sbindir$ac_delim
39571 libexecdir!$libexecdir$ac_delim
39572 datarootdir!$datarootdir$ac_delim
39573 datadir!$datadir$ac_delim
39574 sysconfdir!$sysconfdir$ac_delim
39575 sharedstatedir!$sharedstatedir$ac_delim
39576 localstatedir!$localstatedir$ac_delim
39577 includedir!$includedir$ac_delim
39578 oldincludedir!$oldincludedir$ac_delim
39579 docdir!$docdir$ac_delim
39580 infodir!$infodir$ac_delim
39581 htmldir!$htmldir$ac_delim
39582 dvidir!$dvidir$ac_delim
39583 pdfdir!$pdfdir$ac_delim
39584 psdir!$psdir$ac_delim
39585 libdir!$libdir$ac_delim
39586 localedir!$localedir$ac_delim
39587 mandir!$mandir$ac_delim
39588 DEFS!$DEFS$ac_delim
39589 ECHO_C!$ECHO_C$ac_delim
39590 ECHO_N!$ECHO_N$ac_delim
39591 ECHO_T!$ECHO_T$ac_delim
39592 LIBS!$LIBS$ac_delim
39593 build_alias!$build_alias$ac_delim
39594 host_alias!$host_alias$ac_delim
39595 target_alias!$target_alias$ac_delim
39596 build!$build$ac_delim
39597 build_cpu!$build_cpu$ac_delim
39598 build_vendor!$build_vendor$ac_delim
39599 build_os!$build_os$ac_delim
39600 host!$host$ac_delim
39601 host_cpu!$host_cpu$ac_delim
39602 host_vendor!$host_vendor$ac_delim
39603 host_os!$host_os$ac_delim
39604 target!$target$ac_delim
39605 target_cpu!$target_cpu$ac_delim
39606 target_vendor!$target_vendor$ac_delim
39607 target_os!$target_os$ac_delim
39608 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39609 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39610 INSTALL_DATA!$INSTALL_DATA$ac_delim
39611 CYGPATH_W!$CYGPATH_W$ac_delim
39612 PACKAGE!$PACKAGE$ac_delim
39613 VERSION!$VERSION$ac_delim
39614 ACLOCAL!$ACLOCAL$ac_delim
39615 AUTOCONF!$AUTOCONF$ac_delim
39616 AUTOMAKE!$AUTOMAKE$ac_delim
39617 AUTOHEADER!$AUTOHEADER$ac_delim
39618 MAKEINFO!$MAKEINFO$ac_delim
39619 install_sh!$install_sh$ac_delim
39620 STRIP!$STRIP$ac_delim
39621 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39622 mkdir_p!$mkdir_p$ac_delim
39624 SET_MAKE!$SET_MAKE$ac_delim
39625 am__leading_dot!$am__leading_dot$ac_delim
39626 AMTAR!$AMTAR$ac_delim
39627 am__tar!$am__tar$ac_delim
39628 am__untar!$am__untar$ac_delim
39629 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39630 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39631 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39632 top_builddir!$top_builddir$ac_delim
39633 ldap_subdir!$ldap_subdir$ac_delim
39636 CFLAGS!$CFLAGS$ac_delim
39637 LDFLAGS!$LDFLAGS$ac_delim
39638 CPPFLAGS!$CPPFLAGS$ac_delim
39639 ac_ct_CC!$ac_ct_CC$ac_delim
39640 EXEEXT!$EXEEXT$ac_delim
39641 OBJEXT!$OBJEXT$ac_delim
39642 DEPDIR!$DEPDIR$ac_delim
39643 am__include!$am__include$ac_delim
39644 am__quote!$am__quote$ac_delim
39645 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39646 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39647 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39648 CCDEPMODE!$CCDEPMODE$ac_delim
39649 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39650 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39651 GREP!$GREP$ac_delim
39652 EGREP!$EGREP$ac_delim
39653 LN_S!$LN_S$ac_delim
39654 ECHO!$ECHO$ac_delim
39655 RANLIB!$RANLIB$ac_delim
39658 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39660 elif $ac_last_try; then
39661 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39662 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39663 { (exit 1); exit 1; }; }
39665 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39669 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39670 if test -n "$ac_eof"; then
39671 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39672 ac_eof=`expr $ac_eof + 1`
39675 cat >>$CONFIG_STATUS <<_ACEOF
39676 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39677 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39680 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39681 s/^/s,@/; s/!/@,|#_!!_#|/
39684 s/'"$ac_delim"'$/,g/; t
39686 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39687 ' >>$CONFIG_STATUS <conf$$subs.sed
39688 rm -f conf$$subs.sed
39689 cat >>$CONFIG_STATUS <<_ACEOF
39695 for ac_last_try in false false false false false :; do
39696 cat >conf$$subs.sed <<_ACEOF
39697 DLLTOOL!$DLLTOOL$ac_delim
39699 OBJDUMP!$OBJDUMP$ac_delim
39701 LIBTOOL!$LIBTOOL$ac_delim
39702 PERLBIN!$PERLBIN$ac_delim
39703 OL_MKDEP!$OL_MKDEP$ac_delim
39704 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39705 LTSTATIC!$LTSTATIC$ac_delim
39706 MYSQL!$MYSQL$ac_delim
39707 LIBOBJS!$LIBOBJS$ac_delim
39708 LIBSRCS!$LIBSRCS$ac_delim
39709 PLAT!$PLAT$ac_delim
39710 WITH_SASL!$WITH_SASL$ac_delim
39711 WITH_TLS!$WITH_TLS$ac_delim
39712 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39713 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39714 BUILD_THREAD!$BUILD_THREAD$ac_delim
39715 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39716 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39717 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39718 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39719 BUILD_BDB!$BUILD_BDB$ac_delim
39720 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39721 BUILD_HDB!$BUILD_HDB$ac_delim
39722 BUILD_LDAP!$BUILD_LDAP$ac_delim
39723 BUILD_META!$BUILD_META$ac_delim
39724 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39725 BUILD_NDB!$BUILD_NDB$ac_delim
39726 BUILD_NULL!$BUILD_NULL$ac_delim
39727 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39728 BUILD_RELAY!$BUILD_RELAY$ac_delim
39729 BUILD_PERL!$BUILD_PERL$ac_delim
39730 BUILD_SHELL!$BUILD_SHELL$ac_delim
39731 BUILD_SOCK!$BUILD_SOCK$ac_delim
39732 BUILD_SQL!$BUILD_SQL$ac_delim
39733 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39734 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39735 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39736 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39737 BUILD_DDS!$BUILD_DDS$ac_delim
39738 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39739 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39740 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39741 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39742 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39743 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39744 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39745 BUILD_REFINT!$BUILD_REFINT$ac_delim
39746 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39747 BUILD_RWM!$BUILD_RWM$ac_delim
39748 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39749 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39750 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39751 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39752 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39753 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39754 LDAP_LIBS!$LDAP_LIBS$ac_delim
39755 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39756 BDB_LIBS!$BDB_LIBS$ac_delim
39757 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39758 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39759 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39760 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39761 WRAP_LIBS!$WRAP_LIBS$ac_delim
39762 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39763 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39764 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39765 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39766 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39767 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39768 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39769 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39770 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39771 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39772 KRB4_LIBS!$KRB4_LIBS$ac_delim
39773 KRB5_LIBS!$KRB5_LIBS$ac_delim
39774 SASL_LIBS!$SASL_LIBS$ac_delim
39775 TLS_LIBS!$TLS_LIBS$ac_delim
39776 MODULES_LIBS!$MODULES_LIBS$ac_delim
39777 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39778 LIBSLAPI!$LIBSLAPI$ac_delim
39779 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39780 AUTH_LIBS!$AUTH_LIBS$ac_delim
39781 ICU_LIBS!$ICU_LIBS$ac_delim
39782 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39783 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39784 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39785 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39786 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39787 LTLIBOBJS!$LTLIBOBJS$ac_delim
39790 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39792 elif $ac_last_try; then
39793 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39794 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39795 { (exit 1); exit 1; }; }
39797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39801 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39802 if test -n "$ac_eof"; then
39803 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39804 ac_eof=`expr $ac_eof + 1`
39807 cat >>$CONFIG_STATUS <<_ACEOF
39808 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39809 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39812 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39813 s/^/s,@/; s/!/@,|#_!!_#|/
39816 s/'"$ac_delim"'$/,g/; t
39818 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39819 ' >>$CONFIG_STATUS <conf$$subs.sed
39820 rm -f conf$$subs.sed
39821 cat >>$CONFIG_STATUS <<_ACEOF
39828 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39829 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39830 # trailing colons and then remove the whole line if VPATH becomes empty
39831 # (actually we leave an empty line to preserve line numbers).
39832 if test "x$srcdir" = x.; then
39833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39834 s/:*\$(srcdir):*/:/
39835 s/:*\${srcdir}:*/:/
39837 s/^\([^=]*=[ ]*\):*/\1/
39843 cat >>$CONFIG_STATUS <<\_ACEOF
39844 fi # test -n "$CONFIG_FILES"
39847 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39850 :[FHLC]) ac_mode=$ac_tag; continue;;
39852 case $ac_mode$ac_tag in
39854 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39855 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39856 { (exit 1); exit 1; }; };;
39857 :[FH]-) ac_tag=-:-;;
39858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39875 -) ac_f="$tmp/stdin";;
39876 *) # Look for the file first in the build tree, then in the source tree
39877 # (if the path is not absolute). The absolute path cannot be DOS-style,
39878 # because $ac_f cannot contain `:'.
39882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39884 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39885 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39886 { (exit 1); exit 1; }; };;
39888 ac_file_inputs="$ac_file_inputs $ac_f"
39891 # Let's still pretend it is `configure' which instantiates (i.e., don't
39892 # use $as_me), people would be surprised to read:
39893 # /* config.h. Generated by config.status. */
39894 configure_input="Generated from "`IFS=:
39895 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39896 if test x"$ac_file" != x-; then
39897 configure_input="$ac_file. $configure_input"
39898 { echo "$as_me:$LINENO: creating $ac_file" >&5
39899 echo "$as_me: creating $ac_file" >&6;}
39903 *:-:* | *:-) cat >"$tmp/stdin";;
39908 ac_dir=`$as_dirname -- "$ac_file" ||
39909 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39910 X"$ac_file" : 'X\(//\)[^/]' \| \
39911 X"$ac_file" : 'X\(//\)$' \| \
39912 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39918 /^X\(\/\/\)[^/].*/{
39933 -*) as_dir=./$as_dir;;
39935 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39939 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39940 *) as_qdir=$as_dir;;
39942 as_dirs="'$as_qdir' $as_dirs"
39943 as_dir=`$as_dirname -- "$as_dir" ||
39944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39945 X"$as_dir" : 'X\(//\)[^/]' \| \
39946 X"$as_dir" : 'X\(//\)$' \| \
39947 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39953 /^X\(\/\/\)[^/].*/{
39966 test -d "$as_dir" && break
39968 test -z "$as_dirs" || eval "mkdir $as_dirs"
39969 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39970 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39971 { (exit 1); exit 1; }; }; }
39975 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39977 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39978 # A ".." for each directory in $ac_dir_suffix.
39979 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39980 case $ac_top_builddir_sub in
39981 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39982 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39985 ac_abs_top_builddir=$ac_pwd
39986 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39987 # for backward compatibility:
39988 ac_top_builddir=$ac_top_build_prefix
39991 .) # We are building in place.
39993 ac_top_srcdir=$ac_top_builddir_sub
39994 ac_abs_top_srcdir=$ac_pwd ;;
39995 [\\/]* | ?:[\\/]* ) # Absolute name.
39996 ac_srcdir=$srcdir$ac_dir_suffix;
39997 ac_top_srcdir=$srcdir
39998 ac_abs_top_srcdir=$srcdir ;;
39999 *) # Relative name.
40000 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40001 ac_top_srcdir=$ac_top_build_prefix$srcdir
40002 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40004 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40014 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40015 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40019 cat >>$CONFIG_STATUS <<\_ACEOF
40020 # If the template does not know about datarootdir, expand it.
40021 # FIXME: This hack should be removed a few years after 2.60.
40022 ac_datarootdir_hack=; ac_datarootdir_seen=
40024 case `sed -n '/datarootdir/ {
40033 ' $ac_file_inputs` in
40034 *datarootdir*) ac_datarootdir_seen=yes;;
40035 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40036 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40037 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40039 cat >>$CONFIG_STATUS <<_ACEOF
40040 ac_datarootdir_hack='
40041 s&@datadir@&$datadir&g
40042 s&@docdir@&$docdir&g
40043 s&@infodir@&$infodir&g
40044 s&@localedir@&$localedir&g
40045 s&@mandir@&$mandir&g
40046 s&\\\${datarootdir}&$datarootdir&g' ;;
40050 # Neutralize VPATH when `$srcdir' = `.'.
40051 # Shell code in configure.ac might set extrasub.
40052 # FIXME: do we really want to maintain this feature?
40053 cat >>$CONFIG_STATUS <<_ACEOF
40057 cat >>$CONFIG_STATUS <<\_ACEOF
40059 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40060 s&@configure_input@&$configure_input&;t t
40061 s&@top_builddir@&$ac_top_builddir_sub&;t t
40062 s&@srcdir@&$ac_srcdir&;t t
40063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40064 s&@top_srcdir@&$ac_top_srcdir&;t t
40065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40066 s&@builddir@&$ac_builddir&;t t
40067 s&@abs_builddir@&$ac_abs_builddir&;t t
40068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40069 s&@INSTALL@&$ac_INSTALL&;t t
40070 $ac_datarootdir_hack
40071 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40073 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40074 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40075 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40076 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40077 which seems to be undefined. Please make sure it is defined." >&5
40078 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40079 which seems to be undefined. Please make sure it is defined." >&2;}
40083 -) cat "$tmp/out"; rm -f "$tmp/out";;
40084 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40093 # Transform confdefs.h into a sed script `conftest.defines', that
40094 # substitutes the proper values into config.h.in to produce config.h.
40095 rm -f conftest.defines conftest.tail
40096 # First, append a space to every undef/define line, to ease matching.
40097 echo 's/$/ /' >conftest.defines
40098 # Then, protect against being on the right side of a sed subst, or in
40099 # an unquoted here document, in config.status. If some macros were
40100 # called several times there might be several #defines for the same
40101 # symbol, which is useless. But do not sort them, since the last
40102 # AC_DEFINE must be honored.
40103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40104 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40105 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40106 # PARAMS is the parameter list in the macro definition--in most cases, it's
40107 # just an empty string.
40108 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40109 ac_dB='\\)[ (].*,\\1define\\2'
40117 s/^[ ]*#[ ]*define[ ][ ]*//
40122 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40123 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40124 ' >>conftest.defines
40126 # Remove the space that was appended to ease matching.
40127 # Then replace #undef with comments. This is necessary, for
40128 # example, in the case of _POSIX_SOURCE, which is predefined and required
40129 # on some systems where configure will not decide to define it.
40130 # (The regexp can be short, since the line contains either #define or #undef.)
40132 s,^[ #]*u.*,/* & */,' >>conftest.defines
40134 # Break up conftest.defines:
40135 ac_max_sed_lines=50
40137 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40138 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40139 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40141 ac_in='$ac_file_inputs'
40142 ac_out='"$tmp/out1"'
40143 ac_nxt='"$tmp/out2"'
40147 # Write a here document:
40148 cat >>$CONFIG_STATUS <<_ACEOF
40149 # First, check the format of the line:
40150 cat >"\$tmp/defines.sed" <<\\CEOF
40151 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40152 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40156 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40158 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40159 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40160 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40161 grep . conftest.tail >/dev/null || break
40162 rm -f conftest.defines
40163 mv conftest.tail conftest.defines
40165 rm -f conftest.defines conftest.tail
40167 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40168 cat >>$CONFIG_STATUS <<\_ACEOF
40169 if test x"$ac_file" != x-; then
40170 echo "/* $configure_input */" >"$tmp/config.h"
40171 cat "$ac_result" >>"$tmp/config.h"
40172 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40173 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40174 echo "$as_me: $ac_file is unchanged" >&6;}
40177 mv "$tmp/config.h" $ac_file
40180 echo "/* $configure_input */"
40184 # Compute $ac_file's index in $config_headers.
40186 for _am_header in $config_headers :; do
40187 case $_am_header in
40188 $ac_file | $ac_file:* )
40191 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40194 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40195 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40196 X$ac_file : 'X\(//\)[^/]' \| \
40197 X$ac_file : 'X\(//\)$' \| \
40198 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40204 /^X\(\/\/\)[^/].*/{
40216 s/.*/./; q'`/stamp-h$_am_stamp_count
40219 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40220 echo "$as_me: executing $ac_file commands" >&6;}
40225 case $ac_file$ac_mode in
40226 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40227 # Strip MF so we end up with the name of the file.
40228 mf=`echo "$mf" | sed -e 's/:.*$//'`
40229 # Check whether this is an Automake generated Makefile or not.
40230 # We used to match only the files named `Makefile.in', but
40231 # some people rename them; so instead we look at the file content.
40232 # Grep'ing the first line is not enough: some people post-process
40233 # each Makefile.in and add a new line on top of each file to say so.
40234 # So let's grep whole file.
40235 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40236 dirpart=`$as_dirname -- "$mf" ||
40237 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40238 X"$mf" : 'X\(//\)[^/]' \| \
40239 X"$mf" : 'X\(//\)$' \| \
40240 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40246 /^X\(\/\/\)[^/].*/{
40262 # Extract the definition of DEPDIR, am__include, and am__quote
40263 # from the Makefile without running `make'.
40264 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40265 test -z "$DEPDIR" && continue
40266 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40267 test -z "am__include" && continue
40268 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40269 # When using ansi2knr, U may be empty or an underscore; expand it
40270 U=`sed -n 's/^U = //p' < "$mf"`
40271 # Find all dependency output files, they are included files with
40272 # $(DEPDIR) in their names. We invoke sed twice because it is the
40273 # simplest approach to changing $(DEPDIR) to its actual value in the
40275 for file in `sed -n "
40276 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40277 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40278 # Make sure the directory exists.
40279 test -f "$dirpart/$file" && continue
40280 fdir=`$as_dirname -- "$file" ||
40281 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40282 X"$file" : 'X\(//\)[^/]' \| \
40283 X"$file" : 'X\(//\)$' \| \
40284 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40290 /^X\(\/\/\)[^/].*/{
40303 { as_dir=$dirpart/$fdir
40305 -*) as_dir=./$as_dir;;
40307 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40311 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40312 *) as_qdir=$as_dir;;
40314 as_dirs="'$as_qdir' $as_dirs"
40315 as_dir=`$as_dirname -- "$as_dir" ||
40316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40317 X"$as_dir" : 'X\(//\)[^/]' \| \
40318 X"$as_dir" : 'X\(//\)$' \| \
40319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40325 /^X\(\/\/\)[^/].*/{
40338 test -d "$as_dir" && break
40340 test -z "$as_dirs" || eval "mkdir $as_dirs"
40341 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40343 { (exit 1); exit 1; }; }; }
40344 # echo "creating $dirpart/$file"
40345 echo '# dummy' > "$dirpart/$file"
40352 BACKENDSC="servers/slapd/backends.c"
40353 echo "Making $BACKENDSC"
40355 cat > $BACKENDSC << ENDX
40356 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40358 * Copyright 1998-2009 The OpenLDAP Foundation.
40359 * All rights reserved.
40361 * Redistribution and use in source and binary forms, with or without
40362 * modification, are permitted only as authorized by the OpenLDAP
40365 * A copy of this license is available in the file LICENSE in the
40366 * top-level directory of the distribution or, alternatively, at
40367 * <http://www.OpenLDAP.org/license.html>.
40369 /* This file is automatically generated by configure; please do not edit. */
40371 #include "portable.h"
40375 if test "${STATIC_BACKENDS}"; then
40376 for b in config ${STATIC_BACKENDS}; do
40377 bb=`echo "${b}" | sed -e 's/back-//'`
40378 cat >> $BACKENDSC << ENDX
40379 extern BI_init ${bb}_back_initialize;
40383 cat >> $BACKENDSC << ENDX
40385 BackendInfo slap_binfo[] = {
40388 for b in config ${STATIC_BACKENDS}; do
40389 bb=`echo "${b}" | sed -e 's/back-//'`
40390 echo " Add ${bb} ..."
40391 cat >> $BACKENDSC << ENDX
40392 { "${bb}", ${bb}_back_initialize },
40396 cat >> $BACKENDSC << ENDX
40400 /* end of generated file */
40403 OVERLAYSC="servers/slapd/overlays/statover.c"
40404 echo "Making $OVERLAYSC"
40406 cat > $OVERLAYSC << ENDX
40407 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40409 * Copyright 1998-2009 The OpenLDAP Foundation.
40410 * All rights reserved.
40412 * Redistribution and use in source and binary forms, with or without
40413 * modification, are permitted only as authorized by the OpenLDAP
40416 * A copy of this license is available in the file LICENSE in the
40417 * top-level directory of the distribution or, alternatively, at
40418 * <http://www.OpenLDAP.org/license.html>.
40420 /* This file is automatically generated by configure; please do not edit. */
40422 #include "portable.h"
40426 if test "${STATIC_OVERLAYS}"; then
40427 for o in ${STATIC_OVERLAYS}; do
40428 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40429 cat >> $OVERLAYSC << ENDX
40430 extern OV_init ${oo}_initialize;
40435 cat >> $OVERLAYSC << ENDX
40437 OverlayInit slap_oinfo[] = {
40440 if test "${STATIC_OVERLAYS}"; then
40441 for o in ${STATIC_OVERLAYS}; do
40442 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40443 echo " Add ${oo} ..."
40444 cat >> $OVERLAYSC << ENDX
40445 { "${oo}", ${oo}_initialize },
40450 cat >> $OVERLAYSC << ENDX
40454 /* end of generated file */
40457 if test "${ol_cv_mkdep}" = no; then
40458 echo '(Do not "make depend"; we do not know how to build dependencies)'
40460 echo 'Please run "make depend" to build dependencies'
40468 { (exit 0); exit 0; }
40470 chmod +x $CONFIG_STATUS
40471 ac_clean_files=$ac_clean_files_save
40474 # configure is writing to config.log, and then calls config.status.
40475 # config.status does its own redirection, appending to config.log.
40476 # Unfortunately, on DOS this fails, as config.log is still kept open
40477 # by configure, so config.status won't be able to write to it; its
40478 # output is simply discarded. So we exec the FD to /dev/null,
40479 # effectively closing config.log, so it can be properly (re)opened and
40480 # appended to by config.status. When coming back to configure, we
40481 # need to make the FD available again.
40482 if test "$no_create" != yes; then
40484 ac_config_status_args=
40485 test "$silent" = yes &&
40486 ac_config_status_args="$ac_config_status_args --quiet"
40488 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40490 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40491 # would make configure fail if this is the last instruction.
40492 $ac_cs_success || { (exit 1); exit 1; }