2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.704 2009/09/29 21:53:43 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
935 SLAPD_MODULES_CPPFLAGS
936 SLAPD_MODULES_LDFLAGS
938 SLAPD_STATIC_BACKENDS
939 SLAPD_DYNAMIC_BACKENDS
940 SLAPD_STATIC_OVERLAYS
941 SLAPD_DYNAMIC_OVERLAYS
962 ac_precious_vars='build_alias
973 # Initialize some variables set by options.
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
985 program_transform_name=s,x,x,
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1023 # If the previous option needs an argument, assign it.
1024 if test -n "$ac_prev"; then
1025 eval $ac_prev=\$ac_option
1031 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1035 # Accept the important Cygnus configure options, so we can diagnose typos.
1037 case $ac_dashdash$ac_option in
1041 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1043 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044 bindir=$ac_optarg ;;
1046 -build | --build | --buil | --bui | --bu)
1047 ac_prev=build_alias ;;
1048 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049 build_alias=$ac_optarg ;;
1051 -cache-file | --cache-file | --cache-fil | --cache-fi \
1052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053 ac_prev=cache_file ;;
1054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056 cache_file=$ac_optarg ;;
1058 --config-cache | -C)
1059 cache_file=config.cache ;;
1061 -datadir | --datadir | --datadi | --datad)
1063 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064 datadir=$ac_optarg ;;
1066 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067 | --dataroo | --dataro | --datar)
1068 ac_prev=datarootdir ;;
1069 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071 datarootdir=$ac_optarg ;;
1073 -disable-* | --disable-*)
1074 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080 eval enable_$ac_feature=no ;;
1082 -docdir | --docdir | --docdi | --doc | --do)
1084 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085 docdir=$ac_optarg ;;
1087 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090 dvidir=$ac_optarg ;;
1092 -enable-* | --enable-*)
1093 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097 { (exit 1); exit 1; }; }
1098 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099 eval enable_$ac_feature=\$ac_optarg ;;
1101 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103 | --exec | --exe | --ex)
1104 ac_prev=exec_prefix ;;
1105 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107 | --exec=* | --exe=* | --ex=*)
1108 exec_prefix=$ac_optarg ;;
1110 -gas | --gas | --ga | --g)
1111 # Obsolete; use --with-gas.
1114 -help | --help | --hel | --he | -h)
1115 ac_init_help=long ;;
1116 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117 ac_init_help=recursive ;;
1118 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119 ac_init_help=short ;;
1121 -host | --host | --hos | --ho)
1122 ac_prev=host_alias ;;
1123 -host=* | --host=* | --hos=* | --ho=*)
1124 host_alias=$ac_optarg ;;
1126 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1128 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1130 htmldir=$ac_optarg ;;
1132 -includedir | --includedir | --includedi | --included | --include \
1133 | --includ | --inclu | --incl | --inc)
1134 ac_prev=includedir ;;
1135 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136 | --includ=* | --inclu=* | --incl=* | --inc=*)
1137 includedir=$ac_optarg ;;
1139 -infodir | --infodir | --infodi | --infod | --info | --inf)
1141 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142 infodir=$ac_optarg ;;
1144 -libdir | --libdir | --libdi | --libd)
1146 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147 libdir=$ac_optarg ;;
1149 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150 | --libexe | --libex | --libe)
1151 ac_prev=libexecdir ;;
1152 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153 | --libexe=* | --libex=* | --libe=*)
1154 libexecdir=$ac_optarg ;;
1156 -localedir | --localedir | --localedi | --localed | --locale)
1157 ac_prev=localedir ;;
1158 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159 localedir=$ac_optarg ;;
1161 -localstatedir | --localstatedir | --localstatedi | --localstated \
1162 | --localstate | --localstat | --localsta | --localst | --locals)
1163 ac_prev=localstatedir ;;
1164 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166 localstatedir=$ac_optarg ;;
1168 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1170 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171 mandir=$ac_optarg ;;
1173 -nfp | --nfp | --nf)
1174 # Obsolete; use --without-fp.
1177 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178 | --no-cr | --no-c | -n)
1181 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1185 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187 | --oldin | --oldi | --old | --ol | --o)
1188 ac_prev=oldincludedir ;;
1189 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192 oldincludedir=$ac_optarg ;;
1194 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1196 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197 prefix=$ac_optarg ;;
1199 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200 | --program-pre | --program-pr | --program-p)
1201 ac_prev=program_prefix ;;
1202 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204 program_prefix=$ac_optarg ;;
1206 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207 | --program-suf | --program-su | --program-s)
1208 ac_prev=program_suffix ;;
1209 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211 program_suffix=$ac_optarg ;;
1213 -program-transform-name | --program-transform-name \
1214 | --program-transform-nam | --program-transform-na \
1215 | --program-transform-n | --program-transform- \
1216 | --program-transform | --program-transfor \
1217 | --program-transfo | --program-transf \
1218 | --program-trans | --program-tran \
1219 | --progr-tra | --program-tr | --program-t)
1220 ac_prev=program_transform_name ;;
1221 -program-transform-name=* | --program-transform-name=* \
1222 | --program-transform-nam=* | --program-transform-na=* \
1223 | --program-transform-n=* | --program-transform-=* \
1224 | --program-transform=* | --program-transfor=* \
1225 | --program-transfo=* | --program-transf=* \
1226 | --program-trans=* | --program-tran=* \
1227 | --progr-tra=* | --program-tr=* | --program-t=*)
1228 program_transform_name=$ac_optarg ;;
1230 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1232 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233 pdfdir=$ac_optarg ;;
1235 -psdir | --psdir | --psdi | --psd | --ps)
1237 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241 | -silent | --silent | --silen | --sile | --sil)
1244 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1246 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1248 sbindir=$ac_optarg ;;
1250 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252 | --sharedst | --shareds | --shared | --share | --shar \
1254 ac_prev=sharedstatedir ;;
1255 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1259 sharedstatedir=$ac_optarg ;;
1261 -site | --site | --sit)
1263 -site=* | --site=* | --sit=*)
1266 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1268 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269 srcdir=$ac_optarg ;;
1271 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272 | --syscon | --sysco | --sysc | --sys | --sy)
1273 ac_prev=sysconfdir ;;
1274 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276 sysconfdir=$ac_optarg ;;
1278 -target | --target | --targe | --targ | --tar | --ta | --t)
1279 ac_prev=target_alias ;;
1280 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281 target_alias=$ac_optarg ;;
1283 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1286 -version | --version | --versio | --versi | --vers | -V)
1287 ac_init_version=: ;;
1290 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291 # Reject names that are not valid shell variable names.
1292 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293 { echo "$as_me: error: invalid package name: $ac_package" >&2
1294 { (exit 1); exit 1; }; }
1295 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296 eval with_$ac_package=\$ac_optarg ;;
1298 -without-* | --without-*)
1299 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300 # Reject names that are not valid shell variable names.
1301 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 { echo "$as_me: error: invalid package name: $ac_package" >&2
1303 { (exit 1); exit 1; }; }
1304 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305 eval with_$ac_package=no ;;
1308 # Obsolete; use --with-x.
1311 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312 | --x-incl | --x-inc | --x-in | --x-i)
1313 ac_prev=x_includes ;;
1314 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316 x_includes=$ac_optarg ;;
1318 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320 ac_prev=x_libraries ;;
1321 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323 x_libraries=$ac_optarg ;;
1325 -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327 { (exit 1); exit 1; }; }
1331 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335 { (exit 1); exit 1; }; }
1336 eval $ac_envvar=\$ac_optarg
1337 export $ac_envvar ;;
1340 # FIXME: should be removed in autoconf 3.0.
1341 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1350 if test -n "$ac_prev"; then
1351 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 { echo "$as_me: error: missing argument to $ac_option" >&2
1353 { (exit 1); exit 1; }; }
1356 # Be sure to have absolute directory names.
1357 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358 datadir sysconfdir sharedstatedir localstatedir includedir \
1359 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360 libdir localedir mandir
1362 eval ac_val=\$$ac_var
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368 { (exit 1); exit 1; }; }
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
1382 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383 If a cross compiler is detected then cross compile mode will be used." >&2
1384 elif test "x$build_alias" != "x$host_alias"; then
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1392 test "$silent" = yes && exec 6>/dev/null
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398 { echo "$as_me: error: Working directory cannot be determined" >&2
1399 { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401 { echo "$as_me: error: pwd does not report name of working directory" >&2
1402 { (exit 1); exit 1; }; }
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$0" : 'X\(//\)[^/]' \| \
1412 X"$0" : 'X\(//\)$' \| \
1413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1437 ac_srcdir_defaulted=no
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442 { (exit 1); exit 1; }; }
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1446 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447 { (exit 1); exit 1; }; }
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1459 for ac_var in $ac_precious_vars; do
1460 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_env_${ac_var}_value=\$${ac_var}
1462 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 # Report the --help message.
1469 if test "$ac_init_help" = "long"; then
1470 # Omit some internal or obsolete options to make the list less imposing.
1471 # This message is too long to be a string in the A/UX 3.1 sh.
1473 \`configure' configures this package to adapt to many kinds of systems.
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE. See below for descriptions of some of the useful variables.
1480 Defaults for the options are specified in brackets.
1483 -h, --help display this help and exit
1484 --help=short display options specific to this package
1485 --help=recursive display the short help of all the included packages
1486 -V, --version display version information and exit
1487 -q, --quiet, --silent do not print \`checking...' messages
1488 --cache-file=FILE cache test results in FILE [disabled]
1489 -C, --config-cache alias for \`--cache-file=config.cache'
1490 -n, --no-create do not create output files
1491 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1493 Installation directories:
1494 --prefix=PREFIX install architecture-independent files in PREFIX
1495 [$ac_default_prefix]
1496 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1504 For better control, use the options below.
1506 Fine tuning of the installation directories:
1507 --bindir=DIR user executables [EPREFIX/bin]
1508 --sbindir=DIR system admin executables [EPREFIX/sbin]
1509 --libexecdir=DIR program executables [EPREFIX/libexec]
1510 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1511 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1512 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1513 --libdir=DIR object code libraries [EPREFIX/lib]
1514 --includedir=DIR C header files [PREFIX/include]
1515 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1516 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1517 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1518 --infodir=DIR info documentation [DATAROOTDIR/info]
1519 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1520 --mandir=DIR man documentation [DATAROOTDIR/man]
1521 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1522 --htmldir=DIR html documentation [DOCDIR]
1523 --dvidir=DIR dvi documentation [DOCDIR]
1524 --pdfdir=DIR pdf documentation [DOCDIR]
1525 --psdir=DIR ps documentation [DOCDIR]
1531 --program-prefix=PREFIX prepend PREFIX to installed program names
1532 --program-suffix=SUFFIX append SUFFIX to installed program names
1533 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1536 --build=BUILD configure for building on BUILD [guessed]
1537 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1538 --target=TARGET configure for building compilers for TARGET [HOST]
1542 if test -n "$ac_init_help"; then
1547 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1548 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1549 --enable-debug enable debugging no|yes|traditional [yes]
1550 --enable-dynamic enable linking built binaries with dynamic libs [no]
1551 --enable-syslog enable syslog support [auto]
1552 --enable-proctitle enable proctitle support [yes]
1553 --enable-ipv6 enable IPv6 support [auto]
1554 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1556 SLAPD (Standalone LDAP Daemon) Options:
1557 --enable-slapd enable building slapd [yes]
1558 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1559 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1560 --enable-cleartext enable cleartext passwords [yes]
1561 --enable-crypt enable crypt(3) passwords [no]
1562 --enable-lmpasswd enable LAN Manager passwords [no]
1563 --enable-spasswd enable (Cyrus) SASL password verification [no]
1564 --enable-modules enable dynamic module support [no]
1565 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1566 --enable-rlookups enable reverse lookups of client hostnames [no]
1567 --enable-slapi enable SLAPI support (experimental) [no]
1568 --enable-slp enable SLPv2 support [no]
1569 --enable-wrappers enable tcp wrapper support [no]
1571 SLAPD Backend Options:
1572 --enable-backends enable all available backends no|yes|mod
1573 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1574 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1575 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1576 --enable-ldap enable ldap backend no|yes|mod [no]
1577 --enable-meta enable metadirectory backend no|yes|mod [no]
1578 --enable-monitor enable monitor backend no|yes|mod [yes]
1579 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1580 --enable-null enable null backend no|yes|mod [no]
1581 --enable-passwd enable passwd backend no|yes|mod [no]
1582 --enable-perl enable perl backend no|yes|mod [no]
1583 --enable-relay enable relay backend no|yes|mod [yes]
1584 --enable-shell enable shell backend no|yes|mod [no]
1585 --enable-sock enable sock backend no|yes|mod [no]
1586 --enable-sql enable sql backend no|yes|mod [no]
1588 SLAPD Overlay Options:
1589 --enable-overlays enable all available overlays no|yes|mod
1590 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1591 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1592 --enable-collect Collect overlay no|yes|mod [no]
1593 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1594 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1595 --enable-deref Dereference overlay no|yes|mod [no]
1596 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1597 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1598 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1599 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1600 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1601 --enable-refint Referential Integrity overlay no|yes|mod [no]
1602 --enable-retcode Return Code testing overlay no|yes|mod [no]
1603 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1604 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1605 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1606 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1607 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1608 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1609 --enable-valsort Value Sorting overlay no|yes|mod [no]
1611 Library Generation & Linking Options
1612 --enable-static[=PKGS] build static libraries [default=yes]
1613 --enable-shared[=PKGS] build shared libraries [default=yes]
1614 --enable-fast-install[=PKGS]
1615 optimize for fast installation [default=yes]
1616 --disable-dependency-tracking speeds up one-time build
1617 --enable-dependency-tracking do not reject slow dependency extractors
1618 --disable-libtool-lock avoid locking (might break parallel builds)
1621 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1622 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1623 --with-subdir=DIR change default subdirectory used for installs
1624 --with-cyrus-sasl with Cyrus SASL support [auto]
1625 --with-fetch with fetch(3) URL support [auto]
1626 --with-threads with threads [auto]
1627 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1628 --with-yielding-select with implicitly yielding select [auto]
1629 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1632 --with-pic try to use only PIC/non-PIC objects [default=use
1634 --with-tags[=TAGS] include additional configurations [automatic]
1636 See INSTALL file for further details.
1638 Some influential environment variables:
1639 CC C compiler command
1640 CFLAGS C compiler flags
1641 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1642 nonstandard directory <lib dir>
1643 LIBS libraries to pass to the linker, e.g. -l<library>
1644 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645 you have headers in a nonstandard directory <include dir>
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1655 if test "$ac_init_help" = "recursive"; then
1656 # If there are subdirs, report their specific --help.
1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658 test -d "$ac_dir" || continue
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1712 generated by GNU Autoconf 2.61
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1719 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61. Invocation command line was
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1750 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1751 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1754 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1755 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1756 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 echo "PATH: $as_dir"
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1789 ac_must_keep_next=false
1795 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797 | -silent | --silent | --silen | --sile | --sil)
1800 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1805 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806 if test $ac_must_keep_next = true; then
1807 ac_must_keep_next=false # Got value, back to normal.
1810 *=* | --config-cache | -C | -disable-* | --disable-* \
1811 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813 | -with-* | --with-* | -without-* | --without-* | --x)
1814 case "$ac_configure_args0 " in
1815 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818 -* ) ac_must_keep_next=true ;;
1821 ac_configure_args="$ac_configure_args '$ac_arg'"
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log. We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835 # Save into config.log some information that might help in debugging.
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1845 # The following way of writing the cache mishandles newlines in values,
1847 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848 eval ac_val=\$$ac_var
1852 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1856 _ | IFS | as_nl) ;; #(
1857 *) $as_unset $ac_var ;;
1862 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863 *${as_nl}ac_space=\ *)
1865 "s/'\''/'\''\\\\'\'''\''/g;
1866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1869 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1882 for ac_var in $ac_subst_vars
1884 eval ac_val=\$$ac_var
1886 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 echo "$ac_var='\''$ac_val'\''"
1892 if test -n "$ac_subst_files"; then
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1899 for ac_var in $ac_subst_files
1901 eval ac_val=\$$ac_var
1903 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 echo "$ac_var='\''$ac_val'\''"
1910 if test -s confdefs.h; then
1920 test "$ac_signal" != 0 &&
1921 echo "$as_me: caught signal $ac_signal"
1922 echo "$as_me: exit $exit_status"
1924 rm -f core *.core core.conftest.* &&
1925 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1928 for ac_signal in 1 2 13 15; do
1929 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1936 # Predefined preprocessor variables.
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966 set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1970 set x "$ac_default_prefix/share/config.site" \
1971 "$ac_default_prefix/etc/config.site"
1976 if test -r "$ac_site_file"; then
1977 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979 sed 's/^/| /' "$ac_site_file" >&5
1985 # Check that the precious variables saved in the cache have kept the same
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990 eval ac_new_set=\$ac_env_${ac_var}_set
1991 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992 eval ac_new_val=\$ac_env_${ac_var}_value
1993 case $ac_old_set,$ac_new_set in
1995 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997 ac_cache_corrupted=: ;;
1999 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001 ac_cache_corrupted=: ;;
2004 if test "x$ac_old_val" != "x$ac_new_val"; then
2005 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2008 echo "$as_me: former value: $ac_old_val" >&2;}
2009 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2010 echo "$as_me: current value: $ac_new_val" >&2;}
2011 ac_cache_corrupted=:
2014 # Pass precious variables to config.status.
2015 if test "$ac_new_set" = set; then
2017 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018 *) ac_arg=$ac_var=$ac_new_val ;;
2020 case " $ac_configure_args " in
2021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2022 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2026 if $ac_cache_corrupted; then
2027 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031 { (exit 1); exit 1; }; }
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084 for ac_dir in build "$srcdir"/build; do
2085 if test -f "$ac_dir/install-sh"; then
2087 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 elif test -f "$ac_dir/install.sh"; then
2091 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 elif test -f "$ac_dir/shtool"; then
2095 ac_install_sh="$ac_aux_dir/shtool install -c"
2099 if test -z "$ac_aux_dir"; then
2100 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102 { (exit 1); exit 1; }; }
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118 { (exit 1); exit 1; }; }
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122 ac_cv_shtool="$ac_aux_dir/shtool"
2124 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126 { (exit 1); exit 1; }; }
2129 SHTOOL="$ac_cv_shtool"
2133 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2138 if test -d $ac_aux_dir/CVS; then
2139 OPENLDAP_CVS="(from CVS sources) "
2142 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2144 # Make sure we can run config.sub.
2145 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2146 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2147 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2148 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: checking build system type" >&5
2151 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2152 if test "${ac_cv_build+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 ac_build_alias=$build_alias
2156 test "x$ac_build_alias" = x &&
2157 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2158 test "x$ac_build_alias" = x &&
2159 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2160 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2161 { (exit 1); exit 1; }; }
2162 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2163 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2164 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2165 { (exit 1); exit 1; }; }
2168 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2169 echo "${ECHO_T}$ac_cv_build" >&6; }
2170 case $ac_cv_build in
2172 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2173 echo "$as_me: error: invalid value of canonical build" >&2;}
2174 { (exit 1); exit 1; }; };;
2177 ac_save_IFS=$IFS; IFS='-'
2183 # Remember, the first character of IFS is used to create $*,
2184 # except with old shells:
2187 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2190 { echo "$as_me:$LINENO: checking host system type" >&5
2191 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2192 if test "${ac_cv_host+set}" = set; then
2193 echo $ECHO_N "(cached) $ECHO_C" >&6
2195 if test "x$host_alias" = x; then
2196 ac_cv_host=$ac_cv_build
2198 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2199 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2200 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2201 { (exit 1); exit 1; }; }
2205 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2206 echo "${ECHO_T}$ac_cv_host" >&6; }
2209 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2210 echo "$as_me: error: invalid value of canonical host" >&2;}
2211 { (exit 1); exit 1; }; };;
2214 ac_save_IFS=$IFS; IFS='-'
2220 # Remember, the first character of IFS is used to create $*,
2221 # except with old shells:
2224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2227 { echo "$as_me:$LINENO: checking target system type" >&5
2228 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2229 if test "${ac_cv_target+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test "x$target_alias" = x; then
2233 ac_cv_target=$ac_cv_host
2235 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2236 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2237 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2243 echo "${ECHO_T}$ac_cv_target" >&6; }
2244 case $ac_cv_target in
2246 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2247 echo "$as_me: error: invalid value of canonical target" >&2;}
2248 { (exit 1); exit 1; }; };;
2250 target=$ac_cv_target
2251 ac_save_IFS=$IFS; IFS='-'
2257 # Remember, the first character of IFS is used to create $*,
2258 # except with old shells:
2261 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2264 # The aliases save the names the user supplied, while $host etc.
2265 # will get canonicalized.
2266 test -n "$target_alias" &&
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2269 program_prefix=${target_alias}-
2271 am__api_version="1.9"
2272 # Find a good install program. We prefer a C program (faster),
2273 # so one script is as good as another. But avoid the broken or
2274 # incompatible versions:
2275 # SysV /etc/install, /usr/sbin/install
2276 # SunOS /usr/etc/install
2277 # IRIX /sbin/install
2279 # AmigaOS /C/install, which installs bootblocks on floppy discs
2280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283 # OS/2's system install, which has a completely different semantic
2284 # ./install, which can be erroneously created by make from ./install.sh.
2285 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2286 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2287 if test -z "$INSTALL"; then
2288 if test "${ac_cv_path_install+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 # Account for people who put trailing slashes in PATH elements.
2298 ./ | .// | /cC/* | \
2299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2300 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2303 # OSF1 and SCO ODT 3.0 have their own names for install.
2304 # Don't use installbsd from OSF since it installs stuff as root
2306 for ac_prog in ginstall scoinst install; do
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2309 if test $ac_prog = install &&
2310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2311 # AIX install. It has an incompatible calling convention.
2313 elif test $ac_prog = install &&
2314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2315 # program-specific install script used by HP pwplus--don't use.
2318 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2331 if test "${ac_cv_path_install+set}" = set; then
2332 INSTALL=$ac_cv_path_install
2334 # As a last resort, use the slow shell script. Don't cache a
2335 # value for INSTALL within a source directory, because that will
2336 # break other packages using the cache if that directory is
2337 # removed, or if the value is a relative name.
2338 INSTALL=$ac_install_sh
2341 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2342 echo "${ECHO_T}$INSTALL" >&6; }
2344 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2345 # It thinks the first close brace ends the variable substitution.
2346 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2353 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2356 echo timestamp > conftest.file
2357 # Do `set' in a subshell so we don't clobber the current shell's
2358 # arguments. Must try -L first in case configure is actually a
2359 # symlink; some systems play weird games with the mod time of symlinks
2360 # (eg FreeBSD returns the mod time of the symlink's containing
2363 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2364 if test "$*" = "X"; then
2366 set X `ls -t $srcdir/configure conftest.file`
2369 if test "$*" != "X $srcdir/configure conftest.file" \
2370 && test "$*" != "X conftest.file $srcdir/configure"; then
2372 # If neither matched, then we have a broken ls. This can happen
2373 # if, for instance, CONFIG_SHELL is bash and it inherits a
2374 # broken ls alias from the environment. This has actually
2375 # happened. Such a system could not be considered "sane".
2376 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2377 alias in your environment" >&5
2378 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2379 alias in your environment" >&2;}
2380 { (exit 1); exit 1; }; }
2383 test "$2" = conftest.file
2389 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2390 Check your system clock" >&5
2391 echo "$as_me: error: newly created file is older than distributed files!
2392 Check your system clock" >&2;}
2393 { (exit 1); exit 1; }; }
2395 { echo "$as_me:$LINENO: result: yes" >&5
2396 echo "${ECHO_T}yes" >&6; }
2397 test "$program_prefix" != NONE &&
2398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2399 # Use a double $ so make ignores it.
2400 test "$program_suffix" != NONE &&
2401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2402 # Double any \ or $. echo might interpret backslashes.
2403 # By default was `s,x,x', remove it if useless.
2404 cat <<\_ACEOF >conftest.sed
2405 s/[\\$]/&&/g;s/;s,x,x,$//
2407 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2410 # expand $ac_aux_dir to an absolute path
2411 am_aux_dir=`cd $ac_aux_dir && pwd`
2413 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2414 # Use eval to expand $SHELL
2415 if eval "$MISSING --run true"; then
2416 am_missing_run="$MISSING --run "
2419 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2420 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2423 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2424 # We used to keeping the `.' as first argument, in order to
2425 # allow $(mkdir_p) to be used without argument. As in
2426 # $(mkdir_p) $(somedir)
2427 # where $(somedir) is conditionally defined. However this is wrong
2429 # 1. if the package is installed by a user who cannot write `.'
2430 # make install will fail,
2431 # 2. the above comment should most certainly read
2432 # $(mkdir_p) $(DESTDIR)$(somedir)
2433 # so it does not work when $(somedir) is undefined and
2434 # $(DESTDIR) is not.
2435 # To support the latter case, we have to write
2436 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2437 # so the `.' trick is pointless.
2438 mkdir_p='mkdir -p --'
2440 # On NextStep and OpenStep, the `mkdir' command does not
2441 # recognize any option. It will interpret all options as
2442 # directories to create, and then abort because `.' already
2444 for d in ./-p ./--version;
2446 test -d $d && rmdir $d
2448 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2449 if test -f "$ac_aux_dir/mkinstalldirs"; then
2450 mkdir_p='$(mkinstalldirs)'
2452 mkdir_p='$(install_sh) -d'
2456 for ac_prog in gawk mawk nawk awk
2458 # Extract the first word of "$ac_prog", so it can be a program name with args.
2459 set dummy $ac_prog; ac_word=$2
2460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2462 if test "${ac_cv_prog_AWK+set}" = set; then
2463 echo $ECHO_N "(cached) $ECHO_C" >&6
2465 if test -n "$AWK"; then
2466 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 test -z "$as_dir" && as_dir=.
2473 for ac_exec_ext in '' $ac_executable_extensions; do
2474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2475 ac_cv_prog_AWK="$ac_prog"
2476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2486 if test -n "$AWK"; then
2487 { echo "$as_me:$LINENO: result: $AWK" >&5
2488 echo "${ECHO_T}$AWK" >&6; }
2490 { echo "$as_me:$LINENO: result: no" >&5
2491 echo "${ECHO_T}no" >&6; }
2495 test -n "$AWK" && break
2498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 cat >conftest.make <<\_ACEOF
2507 @echo '@@@%%%=$(MAKE)=@@@%%%'
2509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2512 eval ac_cv_prog_make_${ac_make}_set=yes;;
2514 eval ac_cv_prog_make_${ac_make}_set=no;;
2518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2519 { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2523 { echo "$as_me:$LINENO: result: no" >&5
2524 echo "${ECHO_T}no" >&6; }
2525 SET_MAKE="MAKE=${MAKE-make}"
2528 rm -rf .tst 2>/dev/null
2529 mkdir .tst 2>/dev/null
2530 if test -d .tst; then
2535 rmdir .tst 2>/dev/null
2537 # test to see if srcdir already configured
2538 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2539 test -f $srcdir/config.status; then
2540 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2541 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2542 { (exit 1); exit 1; }; }
2545 # test whether we have cygpath
2546 if test -z "$CYGPATH_W"; then
2547 if (cygpath --version) >/dev/null 2>/dev/null; then
2548 CYGPATH_W='cygpath -w'
2555 # Define the identity of the package.
2560 # Some tools Automake needs.
2562 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2565 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2568 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2571 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2574 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2576 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2578 # Installed binaries are usually stripped using `strip' when the user
2579 # run `make install-strip'. However `strip' might not be the right
2580 # tool to use in cross-compilation environments, therefore Automake
2581 # will honor the `STRIP' environment variable to overrule this program.
2582 if test "$cross_compiling" != no; then
2583 if test -n "$ac_tool_prefix"; then
2584 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2585 set dummy ${ac_tool_prefix}strip; ac_word=$2
2586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2588 if test "${ac_cv_prog_STRIP+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
2591 if test -n "$STRIP"; then
2592 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2601 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 STRIP=$ac_cv_prog_STRIP
2612 if test -n "$STRIP"; then
2613 { echo "$as_me:$LINENO: result: $STRIP" >&5
2614 echo "${ECHO_T}$STRIP" >&6; }
2616 { echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6; }
2622 if test -z "$ac_cv_prog_STRIP"; then
2624 # Extract the first word of "strip", so it can be a program name with args.
2625 set dummy strip; ac_word=$2
2626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2628 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2629 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 if test -n "$ac_ct_STRIP"; then
2632 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638 test -z "$as_dir" && as_dir=.
2639 for ac_exec_ext in '' $ac_executable_extensions; do
2640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641 ac_cv_prog_ac_ct_STRIP="strip"
2642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2652 if test -n "$ac_ct_STRIP"; then
2653 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2654 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2656 { echo "$as_me:$LINENO: result: no" >&5
2657 echo "${ECHO_T}no" >&6; }
2660 if test "x$ac_ct_STRIP" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2676 STRIP="$ac_cv_prog_STRIP"
2680 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2682 # We need awk for the "check" target. The system "awk" is bad on
2684 # Always define AMTAR for backward compatibility.
2686 AMTAR=${AMTAR-"${am_missing_run}tar"}
2688 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2694 cat >>confdefs.h <<_ACEOF
2695 #define OPENLDAP_PACKAGE "$PACKAGE"
2699 cat >>confdefs.h <<_ACEOF
2700 #define OPENLDAP_VERSION "$VERSION"
2705 cat >>confdefs.h <<_ACEOF
2706 #define LDAP_VENDOR_VERSION $OL_API_INC
2710 cat >>confdefs.h <<_ACEOF
2711 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2715 cat >>confdefs.h <<_ACEOF
2716 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2720 cat >>confdefs.h <<_ACEOF
2721 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2725 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2727 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2729 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2737 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2739 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2741 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2744 { echo "$as_me:$LINENO: checking configure arguments" >&5
2745 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2750 ldap_subdir="/openldap"
2753 # Check whether --with-subdir was given.
2754 if test "${with_subdir+set}" = set; then
2755 withval=$with_subdir; case "$withval" in
2761 ldap_subdir="$withval"
2764 ldap_subdir="/$withval"
2771 # OpenLDAP --enable-debug
2773 # Check whether --enable-debug was given.
2774 if test "${enable_debug+set}" = set; then
2775 enableval=$enable_debug;
2777 for ol_val in no yes traditional ; do
2778 if test "$enableval" = "$ol_val" ; then
2782 if test "$ol_arg" = "invalid" ; then
2783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2784 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2785 { (exit 1); exit 1; }; }
2787 ol_enable_debug="$ol_arg"
2793 # end --enable-debug
2794 # OpenLDAP --enable-dynamic
2796 # Check whether --enable-dynamic was given.
2797 if test "${enable_dynamic+set}" = set; then
2798 enableval=$enable_dynamic;
2800 for ol_val in auto yes no ; do
2801 if test "$enableval" = "$ol_val" ; then
2805 if test "$ol_arg" = "invalid" ; then
2806 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2807 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2808 { (exit 1); exit 1; }; }
2810 ol_enable_dynamic="$ol_arg"
2813 ol_enable_dynamic=no
2816 # end --enable-dynamic
2817 # OpenLDAP --enable-syslog
2819 # Check whether --enable-syslog was given.
2820 if test "${enable_syslog+set}" = set; then
2821 enableval=$enable_syslog;
2823 for ol_val in auto yes no ; do
2824 if test "$enableval" = "$ol_val" ; then
2828 if test "$ol_arg" = "invalid" ; then
2829 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2830 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2831 { (exit 1); exit 1; }; }
2833 ol_enable_syslog="$ol_arg"
2836 ol_enable_syslog=auto
2839 # end --enable-syslog
2840 # OpenLDAP --enable-proctitle
2842 # Check whether --enable-proctitle was given.
2843 if test "${enable_proctitle+set}" = set; then
2844 enableval=$enable_proctitle;
2846 for ol_val in auto yes no ; do
2847 if test "$enableval" = "$ol_val" ; then
2851 if test "$ol_arg" = "invalid" ; then
2852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2853 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2854 { (exit 1); exit 1; }; }
2856 ol_enable_proctitle="$ol_arg"
2859 ol_enable_proctitle=yes
2862 # end --enable-proctitle
2863 ol_enable_referrals=${ol_enable_referrals-no}
2864 # OpenLDAP --enable-ipv6
2866 # Check whether --enable-ipv6 was given.
2867 if test "${enable_ipv6+set}" = set; then
2868 enableval=$enable_ipv6;
2870 for ol_val in auto yes no ; do
2871 if test "$enableval" = "$ol_val" ; then
2875 if test "$ol_arg" = "invalid" ; then
2876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2877 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2878 { (exit 1); exit 1; }; }
2880 ol_enable_ipv6="$ol_arg"
2887 # OpenLDAP --enable-local
2889 # Check whether --enable-local was given.
2890 if test "${enable_local+set}" = set; then
2891 enableval=$enable_local;
2893 for ol_val in auto yes no ; do
2894 if test "$enableval" = "$ol_val" ; then
2898 if test "$ol_arg" = "invalid" ; then
2899 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2900 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2901 { (exit 1); exit 1; }; }
2903 ol_enable_local="$ol_arg"
2906 ol_enable_local=auto
2909 # end --enable-local
2911 # OpenLDAP --with-cyrus_sasl
2913 # Check whether --with-cyrus_sasl was given.
2914 if test "${with_cyrus_sasl+set}" = set; then
2915 withval=$with_cyrus_sasl;
2917 for ol_val in auto yes no ; do
2918 if test "$withval" = "$ol_val" ; then
2922 if test "$ol_arg" = "invalid" ; then
2923 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2924 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2925 { (exit 1); exit 1; }; }
2927 ol_with_cyrus_sasl="$ol_arg"
2930 ol_with_cyrus_sasl="auto"
2932 # end --with-cyrus_sasl
2934 # OpenLDAP --with-fetch
2936 # Check whether --with-fetch was given.
2937 if test "${with_fetch+set}" = set; then
2938 withval=$with_fetch;
2940 for ol_val in auto yes no ; do
2941 if test "$withval" = "$ol_val" ; then
2945 if test "$ol_arg" = "invalid" ; then
2946 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2947 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2948 { (exit 1); exit 1; }; }
2950 ol_with_fetch="$ol_arg"
2953 ol_with_fetch="auto"
2957 # OpenLDAP --with-threads
2959 # Check whether --with-threads was given.
2960 if test "${with_threads+set}" = set; then
2961 withval=$with_threads;
2963 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2964 if test "$withval" = "$ol_val" ; then
2968 if test "$ol_arg" = "invalid" ; then
2969 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2970 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2971 { (exit 1); exit 1; }; }
2973 ol_with_threads="$ol_arg"
2976 ol_with_threads="auto"
2978 # end --with-threads
2980 # OpenLDAP --with-tls
2982 # Check whether --with-tls was given.
2983 if test "${with_tls+set}" = set; then
2986 for ol_val in auto openssl gnutls moznss yes no ; do
2987 if test "$withval" = "$ol_val" ; then
2991 if test "$ol_arg" = "invalid" ; then
2992 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2993 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2994 { (exit 1); exit 1; }; }
2996 ol_with_tls="$ol_arg"
3003 # OpenLDAP --with-yielding_select
3005 # Check whether --with-yielding_select was given.
3006 if test "${with_yielding_select+set}" = set; then
3007 withval=$with_yielding_select;
3009 for ol_val in auto yes no manual ; do
3010 if test "$withval" = "$ol_val" ; then
3014 if test "$ol_arg" = "invalid" ; then
3015 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3016 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3017 { (exit 1); exit 1; }; }
3019 ol_with_yielding_select="$ol_arg"
3022 ol_with_yielding_select="auto"
3024 # end --with-yielding_select
3026 # OpenLDAP --with-mp
3028 # Check whether --with-mp was given.
3029 if test "${with_mp+set}" = set; then
3032 for ol_val in auto longlong long bignum gmp yes no ; do
3033 if test "$withval" = "$ol_val" ; then
3037 if test "$ol_arg" = "invalid" ; then
3038 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3039 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3040 { (exit 1); exit 1; }; }
3042 ol_with_mp="$ol_arg"
3049 # OpenLDAP --with-odbc
3051 # Check whether --with-odbc was given.
3052 if test "${with_odbc+set}" = set; then
3055 for ol_val in auto iodbc unixodbc odbc32 ; do
3056 if test "$withval" = "$ol_val" ; then
3060 if test "$ol_arg" = "invalid" ; then
3061 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3062 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3063 { (exit 1); exit 1; }; }
3065 ol_with_odbc="$ol_arg"
3074 # Check whether --enable-xxslapdoptions was given.
3075 if test "${enable_xxslapdoptions+set}" = set; then
3076 enableval=$enable_xxslapdoptions;
3079 # OpenLDAP --enable-slapd
3081 # Check whether --enable-slapd was given.
3082 if test "${enable_slapd+set}" = set; then
3083 enableval=$enable_slapd;
3085 for ol_val in auto yes no ; do
3086 if test "$enableval" = "$ol_val" ; then
3090 if test "$ol_arg" = "invalid" ; then
3091 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3092 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3093 { (exit 1); exit 1; }; }
3095 ol_enable_slapd="$ol_arg"
3101 # end --enable-slapd
3102 # OpenLDAP --enable-dynacl
3104 # Check whether --enable-dynacl was given.
3105 if test "${enable_dynacl+set}" = set; then
3106 enableval=$enable_dynacl;
3108 for ol_val in auto yes no ; do
3109 if test "$enableval" = "$ol_val" ; then
3113 if test "$ol_arg" = "invalid" ; then
3114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3115 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3116 { (exit 1); exit 1; }; }
3118 ol_enable_dynacl="$ol_arg"
3124 # end --enable-dynacl
3125 # OpenLDAP --enable-aci
3127 # Check whether --enable-aci was given.
3128 if test "${enable_aci+set}" = set; then
3129 enableval=$enable_aci;
3131 for ol_val in no yes mod ; do
3132 if test "$enableval" = "$ol_val" ; then
3136 if test "$ol_arg" = "invalid" ; then
3137 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3138 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3139 { (exit 1); exit 1; }; }
3141 ol_enable_aci="$ol_arg"
3148 # OpenLDAP --enable-cleartext
3150 # Check whether --enable-cleartext was given.
3151 if test "${enable_cleartext+set}" = set; then
3152 enableval=$enable_cleartext;
3154 for ol_val in auto yes no ; do
3155 if test "$enableval" = "$ol_val" ; then
3159 if test "$ol_arg" = "invalid" ; then
3160 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3161 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3162 { (exit 1); exit 1; }; }
3164 ol_enable_cleartext="$ol_arg"
3167 ol_enable_cleartext=yes
3170 # end --enable-cleartext
3171 # OpenLDAP --enable-crypt
3173 # Check whether --enable-crypt was given.
3174 if test "${enable_crypt+set}" = set; then
3175 enableval=$enable_crypt;
3177 for ol_val in auto yes no ; do
3178 if test "$enableval" = "$ol_val" ; then
3182 if test "$ol_arg" = "invalid" ; then
3183 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3184 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3185 { (exit 1); exit 1; }; }
3187 ol_enable_crypt="$ol_arg"
3193 # end --enable-crypt
3194 # OpenLDAP --enable-lmpasswd
3196 # Check whether --enable-lmpasswd was given.
3197 if test "${enable_lmpasswd+set}" = set; then
3198 enableval=$enable_lmpasswd;
3200 for ol_val in auto yes no ; do
3201 if test "$enableval" = "$ol_val" ; then
3205 if test "$ol_arg" = "invalid" ; then
3206 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3207 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3208 { (exit 1); exit 1; }; }
3210 ol_enable_lmpasswd="$ol_arg"
3213 ol_enable_lmpasswd=no
3216 # end --enable-lmpasswd
3217 # OpenLDAP --enable-spasswd
3219 # Check whether --enable-spasswd was given.
3220 if test "${enable_spasswd+set}" = set; then
3221 enableval=$enable_spasswd;
3223 for ol_val in auto yes no ; do
3224 if test "$enableval" = "$ol_val" ; then
3228 if test "$ol_arg" = "invalid" ; then
3229 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3230 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3231 { (exit 1); exit 1; }; }
3233 ol_enable_spasswd="$ol_arg"
3236 ol_enable_spasswd=no
3239 # end --enable-spasswd
3240 # OpenLDAP --enable-modules
3242 # Check whether --enable-modules was given.
3243 if test "${enable_modules+set}" = set; then
3244 enableval=$enable_modules;
3246 for ol_val in auto yes no ; do
3247 if test "$enableval" = "$ol_val" ; then
3251 if test "$ol_arg" = "invalid" ; then
3252 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3253 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3254 { (exit 1); exit 1; }; }
3256 ol_enable_modules="$ol_arg"
3259 ol_enable_modules=no
3262 # end --enable-modules
3263 # OpenLDAP --enable-rewrite
3265 # Check whether --enable-rewrite was given.
3266 if test "${enable_rewrite+set}" = set; then
3267 enableval=$enable_rewrite;
3269 for ol_val in auto yes no ; do
3270 if test "$enableval" = "$ol_val" ; then
3274 if test "$ol_arg" = "invalid" ; then
3275 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3276 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3277 { (exit 1); exit 1; }; }
3279 ol_enable_rewrite="$ol_arg"
3282 ol_enable_rewrite=auto
3285 # end --enable-rewrite
3286 # OpenLDAP --enable-rlookups
3288 # Check whether --enable-rlookups was given.
3289 if test "${enable_rlookups+set}" = set; then
3290 enableval=$enable_rlookups;
3292 for ol_val in auto yes no ; do
3293 if test "$enableval" = "$ol_val" ; then
3297 if test "$ol_arg" = "invalid" ; then
3298 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3299 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3300 { (exit 1); exit 1; }; }
3302 ol_enable_rlookups="$ol_arg"
3305 ol_enable_rlookups=no
3308 # end --enable-rlookups
3309 # OpenLDAP --enable-slapi
3311 # Check whether --enable-slapi was given.
3312 if test "${enable_slapi+set}" = set; then
3313 enableval=$enable_slapi;
3315 for ol_val in auto yes no ; do
3316 if test "$enableval" = "$ol_val" ; then
3320 if test "$ol_arg" = "invalid" ; then
3321 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3322 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3323 { (exit 1); exit 1; }; }
3325 ol_enable_slapi="$ol_arg"
3331 # end --enable-slapi
3332 # OpenLDAP --enable-slp
3334 # Check whether --enable-slp was given.
3335 if test "${enable_slp+set}" = set; then
3336 enableval=$enable_slp;
3338 for ol_val in auto yes no ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_slp="$ol_arg"
3355 # OpenLDAP --enable-wrappers
3357 # Check whether --enable-wrappers was given.
3358 if test "${enable_wrappers+set}" = set; then
3359 enableval=$enable_wrappers;
3361 for ol_val in auto yes no ; do
3362 if test "$enableval" = "$ol_val" ; then
3366 if test "$ol_arg" = "invalid" ; then
3367 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3368 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3369 { (exit 1); exit 1; }; }
3371 ol_enable_wrappers="$ol_arg"
3374 ol_enable_wrappers=no
3377 # end --enable-wrappers
3394 # Check whether --enable-xxslapbackends was given.
3395 if test "${enable_xxslapbackends+set}" = set; then
3396 enableval=$enable_xxslapbackends;
3400 # OpenLDAP --enable-backends
3402 # Check whether --enable-backends was given.
3403 if test "${enable_backends+set}" = set; then
3404 enableval=$enable_backends;
3406 for ol_val in no yes mod ; do
3407 if test "$enableval" = "$ol_val" ; then
3411 if test "$ol_arg" = "invalid" ; then
3412 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3413 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3414 { (exit 1); exit 1; }; }
3416 ol_enable_backends="$ol_arg"
3420 # end --enable-backends
3421 # OpenLDAP --enable-bdb
3423 # Check whether --enable-bdb was given.
3424 if test "${enable_bdb+set}" = set; then
3425 enableval=$enable_bdb;
3427 for ol_val in no yes mod ; do
3428 if test "$enableval" = "$ol_val" ; then
3432 if test "$ol_arg" = "invalid" ; then
3433 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3434 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3435 { (exit 1); exit 1; }; }
3437 ol_enable_bdb="$ol_arg"
3440 ol_enable_bdb=${ol_enable_backends:-no}
3444 # OpenLDAP --enable-dnssrv
3446 # Check whether --enable-dnssrv was given.
3447 if test "${enable_dnssrv+set}" = set; then
3448 enableval=$enable_dnssrv;
3450 for ol_val in no yes mod ; do
3451 if test "$enableval" = "$ol_val" ; then
3455 if test "$ol_arg" = "invalid" ; then
3456 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3457 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3458 { (exit 1); exit 1; }; }
3460 ol_enable_dnssrv="$ol_arg"
3463 ol_enable_dnssrv=${ol_enable_backends:-no}
3466 # end --enable-dnssrv
3467 # OpenLDAP --enable-hdb
3469 # Check whether --enable-hdb was given.
3470 if test "${enable_hdb+set}" = set; then
3471 enableval=$enable_hdb;
3473 for ol_val in no yes mod ; do
3474 if test "$enableval" = "$ol_val" ; then
3478 if test "$ol_arg" = "invalid" ; then
3479 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3480 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3481 { (exit 1); exit 1; }; }
3483 ol_enable_hdb="$ol_arg"
3486 ol_enable_hdb=${ol_enable_backends:-yes}
3490 # OpenLDAP --enable-ldap
3492 # Check whether --enable-ldap was given.
3493 if test "${enable_ldap+set}" = set; then
3494 enableval=$enable_ldap;
3496 for ol_val in no yes mod ; do
3497 if test "$enableval" = "$ol_val" ; then
3501 if test "$ol_arg" = "invalid" ; then
3502 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3503 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3504 { (exit 1); exit 1; }; }
3506 ol_enable_ldap="$ol_arg"
3509 ol_enable_ldap=${ol_enable_backends:-no}
3513 # OpenLDAP --enable-meta
3515 # Check whether --enable-meta was given.
3516 if test "${enable_meta+set}" = set; then
3517 enableval=$enable_meta;
3519 for ol_val in no yes mod ; do
3520 if test "$enableval" = "$ol_val" ; then
3524 if test "$ol_arg" = "invalid" ; then
3525 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3526 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3527 { (exit 1); exit 1; }; }
3529 ol_enable_meta="$ol_arg"
3532 ol_enable_meta=${ol_enable_backends:-no}
3536 # OpenLDAP --enable-monitor
3538 # Check whether --enable-monitor was given.
3539 if test "${enable_monitor+set}" = set; then
3540 enableval=$enable_monitor;
3542 for ol_val in no yes mod ; do
3543 if test "$enableval" = "$ol_val" ; then
3547 if test "$ol_arg" = "invalid" ; then
3548 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3549 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3550 { (exit 1); exit 1; }; }
3552 ol_enable_monitor="$ol_arg"
3555 ol_enable_monitor=${ol_enable_backends:-yes}
3558 # end --enable-monitor
3559 # OpenLDAP --enable-ndb
3561 # Check whether --enable-ndb was given.
3562 if test "${enable_ndb+set}" = set; then
3563 enableval=$enable_ndb;
3565 for ol_val in no yes mod ; do
3566 if test "$enableval" = "$ol_val" ; then
3570 if test "$ol_arg" = "invalid" ; then
3571 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3572 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3573 { (exit 1); exit 1; }; }
3575 ol_enable_ndb="$ol_arg"
3578 ol_enable_ndb=${ol_enable_backends:-no}
3582 # OpenLDAP --enable-null
3584 # Check whether --enable-null was given.
3585 if test "${enable_null+set}" = set; then
3586 enableval=$enable_null;
3588 for ol_val in no yes mod ; do
3589 if test "$enableval" = "$ol_val" ; then
3593 if test "$ol_arg" = "invalid" ; then
3594 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3595 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3596 { (exit 1); exit 1; }; }
3598 ol_enable_null="$ol_arg"
3601 ol_enable_null=${ol_enable_backends:-no}
3605 # OpenLDAP --enable-passwd
3607 # Check whether --enable-passwd was given.
3608 if test "${enable_passwd+set}" = set; then
3609 enableval=$enable_passwd;
3611 for ol_val in no yes mod ; do
3612 if test "$enableval" = "$ol_val" ; then
3616 if test "$ol_arg" = "invalid" ; then
3617 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3618 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3619 { (exit 1); exit 1; }; }
3621 ol_enable_passwd="$ol_arg"
3624 ol_enable_passwd=${ol_enable_backends:-no}
3627 # end --enable-passwd
3628 # OpenLDAP --enable-perl
3630 # Check whether --enable-perl was given.
3631 if test "${enable_perl+set}" = set; then
3632 enableval=$enable_perl;
3634 for ol_val in no yes mod ; do
3635 if test "$enableval" = "$ol_val" ; then
3639 if test "$ol_arg" = "invalid" ; then
3640 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3641 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3642 { (exit 1); exit 1; }; }
3644 ol_enable_perl="$ol_arg"
3647 ol_enable_perl=${ol_enable_backends:-no}
3651 # OpenLDAP --enable-relay
3653 # Check whether --enable-relay was given.
3654 if test "${enable_relay+set}" = set; then
3655 enableval=$enable_relay;
3657 for ol_val in no yes mod ; do
3658 if test "$enableval" = "$ol_val" ; then
3662 if test "$ol_arg" = "invalid" ; then
3663 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3664 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3665 { (exit 1); exit 1; }; }
3667 ol_enable_relay="$ol_arg"
3670 ol_enable_relay=${ol_enable_backends:-yes}
3673 # end --enable-relay
3674 # OpenLDAP --enable-shell
3676 # Check whether --enable-shell was given.
3677 if test "${enable_shell+set}" = set; then
3678 enableval=$enable_shell;
3680 for ol_val in no yes mod ; do
3681 if test "$enableval" = "$ol_val" ; then
3685 if test "$ol_arg" = "invalid" ; then
3686 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3687 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3688 { (exit 1); exit 1; }; }
3690 ol_enable_shell="$ol_arg"
3693 ol_enable_shell=${ol_enable_backends:-no}
3696 # end --enable-shell
3697 # OpenLDAP --enable-sock
3699 # Check whether --enable-sock was given.
3700 if test "${enable_sock+set}" = set; then
3701 enableval=$enable_sock;
3703 for ol_val in no yes mod ; do
3704 if test "$enableval" = "$ol_val" ; then
3708 if test "$ol_arg" = "invalid" ; then
3709 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3710 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3711 { (exit 1); exit 1; }; }
3713 ol_enable_sock="$ol_arg"
3716 ol_enable_sock=${ol_enable_backends:-no}
3720 # OpenLDAP --enable-sql
3722 # Check whether --enable-sql was given.
3723 if test "${enable_sql+set}" = set; then
3724 enableval=$enable_sql;
3726 for ol_val in no yes mod ; do
3727 if test "$enableval" = "$ol_val" ; then
3731 if test "$ol_arg" = "invalid" ; then
3732 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3733 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3734 { (exit 1); exit 1; }; }
3736 ol_enable_sql="$ol_arg"
3739 ol_enable_sql=${ol_enable_backends:-no}
3744 Overlays="accesslog \
3765 # Check whether --enable-xxslapoverlays was given.
3766 if test "${enable_xxslapoverlays+set}" = set; then
3767 enableval=$enable_xxslapoverlays;
3771 # OpenLDAP --enable-overlays
3773 # Check whether --enable-overlays was given.
3774 if test "${enable_overlays+set}" = set; then
3775 enableval=$enable_overlays;
3777 for ol_val in no yes mod ; do
3778 if test "$enableval" = "$ol_val" ; then
3782 if test "$ol_arg" = "invalid" ; then
3783 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3784 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3785 { (exit 1); exit 1; }; }
3787 ol_enable_overlays="$ol_arg"
3791 # end --enable-overlays
3792 # OpenLDAP --enable-accesslog
3794 # Check whether --enable-accesslog was given.
3795 if test "${enable_accesslog+set}" = set; then
3796 enableval=$enable_accesslog;
3798 for ol_val in no yes mod ; do
3799 if test "$enableval" = "$ol_val" ; then
3803 if test "$ol_arg" = "invalid" ; then
3804 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3806 { (exit 1); exit 1; }; }
3808 ol_enable_accesslog="$ol_arg"
3811 ol_enable_accesslog=${ol_enable_overlays:-no}
3814 # end --enable-accesslog
3816 # OpenLDAP --enable-auditlog
3818 # Check whether --enable-auditlog was given.
3819 if test "${enable_auditlog+set}" = set; then
3820 enableval=$enable_auditlog;
3822 for ol_val in no yes mod ; do
3823 if test "$enableval" = "$ol_val" ; then
3827 if test "$ol_arg" = "invalid" ; then
3828 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3829 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3830 { (exit 1); exit 1; }; }
3832 ol_enable_auditlog="$ol_arg"
3835 ol_enable_auditlog=${ol_enable_overlays:-no}
3838 # end --enable-auditlog
3840 # OpenLDAP --enable-collect
3842 # Check whether --enable-collect was given.
3843 if test "${enable_collect+set}" = set; then
3844 enableval=$enable_collect;
3846 for ol_val in no yes mod ; do
3847 if test "$enableval" = "$ol_val" ; then
3851 if test "$ol_arg" = "invalid" ; then
3852 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3853 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3854 { (exit 1); exit 1; }; }
3856 ol_enable_collect="$ol_arg"
3859 ol_enable_collect=${ol_enable_overlays:-no}
3862 # end --enable-collect
3864 # OpenLDAP --enable-constraint
3866 # Check whether --enable-constraint was given.
3867 if test "${enable_constraint+set}" = set; then
3868 enableval=$enable_constraint;
3870 for ol_val in no yes mod ; do
3871 if test "$enableval" = "$ol_val" ; then
3875 if test "$ol_arg" = "invalid" ; then
3876 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3877 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3878 { (exit 1); exit 1; }; }
3880 ol_enable_constraint="$ol_arg"
3883 ol_enable_constraint=${ol_enable_overlays:-no}
3886 # end --enable-constraint
3888 # OpenLDAP --enable-dds
3890 # Check whether --enable-dds was given.
3891 if test "${enable_dds+set}" = set; then
3892 enableval=$enable_dds;
3894 for ol_val in no yes mod ; do
3895 if test "$enableval" = "$ol_val" ; then
3899 if test "$ol_arg" = "invalid" ; then
3900 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3901 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3902 { (exit 1); exit 1; }; }
3904 ol_enable_dds="$ol_arg"
3907 ol_enable_dds=${ol_enable_overlays:-no}
3912 # OpenLDAP --enable-deref
3914 # Check whether --enable-deref was given.
3915 if test "${enable_deref+set}" = set; then
3916 enableval=$enable_deref;
3918 for ol_val in no yes mod ; do
3919 if test "$enableval" = "$ol_val" ; then
3923 if test "$ol_arg" = "invalid" ; then
3924 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3925 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3926 { (exit 1); exit 1; }; }
3928 ol_enable_deref="$ol_arg"
3931 ol_enable_deref=${ol_enable_overlays:-no}
3934 # end --enable-deref
3936 # OpenLDAP --enable-dyngroup
3938 # Check whether --enable-dyngroup was given.
3939 if test "${enable_dyngroup+set}" = set; then
3940 enableval=$enable_dyngroup;
3942 for ol_val in no yes mod ; do
3943 if test "$enableval" = "$ol_val" ; then
3947 if test "$ol_arg" = "invalid" ; then
3948 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3949 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3950 { (exit 1); exit 1; }; }
3952 ol_enable_dyngroup="$ol_arg"
3955 ol_enable_dyngroup=${ol_enable_overlays:-no}
3958 # end --enable-dyngroup
3960 # OpenLDAP --enable-dynlist
3962 # Check whether --enable-dynlist was given.
3963 if test "${enable_dynlist+set}" = set; then
3964 enableval=$enable_dynlist;
3966 for ol_val in no yes mod ; do
3967 if test "$enableval" = "$ol_val" ; then
3971 if test "$ol_arg" = "invalid" ; then
3972 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3973 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3974 { (exit 1); exit 1; }; }
3976 ol_enable_dynlist="$ol_arg"
3979 ol_enable_dynlist=${ol_enable_overlays:-no}
3982 # end --enable-dynlist
3984 # OpenLDAP --enable-memberof
3986 # Check whether --enable-memberof was given.
3987 if test "${enable_memberof+set}" = set; then
3988 enableval=$enable_memberof;
3990 for ol_val in no yes mod ; do
3991 if test "$enableval" = "$ol_val" ; then
3995 if test "$ol_arg" = "invalid" ; then
3996 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3997 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3998 { (exit 1); exit 1; }; }
4000 ol_enable_memberof="$ol_arg"
4003 ol_enable_memberof=${ol_enable_overlays:-no}
4006 # end --enable-memberof
4008 # OpenLDAP --enable-ppolicy
4010 # Check whether --enable-ppolicy was given.
4011 if test "${enable_ppolicy+set}" = set; then
4012 enableval=$enable_ppolicy;
4014 for ol_val in no yes mod ; do
4015 if test "$enableval" = "$ol_val" ; then
4019 if test "$ol_arg" = "invalid" ; then
4020 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4021 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4022 { (exit 1); exit 1; }; }
4024 ol_enable_ppolicy="$ol_arg"
4027 ol_enable_ppolicy=${ol_enable_overlays:-no}
4030 # end --enable-ppolicy
4032 # OpenLDAP --enable-proxycache
4034 # Check whether --enable-proxycache was given.
4035 if test "${enable_proxycache+set}" = set; then
4036 enableval=$enable_proxycache;
4038 for ol_val in no yes mod ; do
4039 if test "$enableval" = "$ol_val" ; then
4043 if test "$ol_arg" = "invalid" ; then
4044 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4045 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4046 { (exit 1); exit 1; }; }
4048 ol_enable_proxycache="$ol_arg"
4051 ol_enable_proxycache=${ol_enable_overlays:-no}
4054 # end --enable-proxycache
4056 # OpenLDAP --enable-refint
4058 # Check whether --enable-refint was given.
4059 if test "${enable_refint+set}" = set; then
4060 enableval=$enable_refint;
4062 for ol_val in no yes mod ; do
4063 if test "$enableval" = "$ol_val" ; then
4067 if test "$ol_arg" = "invalid" ; then
4068 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4069 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4070 { (exit 1); exit 1; }; }
4072 ol_enable_refint="$ol_arg"
4075 ol_enable_refint=${ol_enable_overlays:-no}
4078 # end --enable-refint
4080 # OpenLDAP --enable-retcode
4082 # Check whether --enable-retcode was given.
4083 if test "${enable_retcode+set}" = set; then
4084 enableval=$enable_retcode;
4086 for ol_val in no yes mod ; do
4087 if test "$enableval" = "$ol_val" ; then
4091 if test "$ol_arg" = "invalid" ; then
4092 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4093 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4094 { (exit 1); exit 1; }; }
4096 ol_enable_retcode="$ol_arg"
4099 ol_enable_retcode=${ol_enable_overlays:-no}
4102 # end --enable-retcode
4104 # OpenLDAP --enable-rwm
4106 # Check whether --enable-rwm was given.
4107 if test "${enable_rwm+set}" = set; then
4108 enableval=$enable_rwm;
4110 for ol_val in no yes mod ; do
4111 if test "$enableval" = "$ol_val" ; then
4115 if test "$ol_arg" = "invalid" ; then
4116 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4117 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4118 { (exit 1); exit 1; }; }
4120 ol_enable_rwm="$ol_arg"
4123 ol_enable_rwm=${ol_enable_overlays:-no}
4128 # OpenLDAP --enable-seqmod
4130 # Check whether --enable-seqmod was given.
4131 if test "${enable_seqmod+set}" = set; then
4132 enableval=$enable_seqmod;
4134 for ol_val in no yes mod ; do
4135 if test "$enableval" = "$ol_val" ; then
4139 if test "$ol_arg" = "invalid" ; then
4140 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4141 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4142 { (exit 1); exit 1; }; }
4144 ol_enable_seqmod="$ol_arg"
4147 ol_enable_seqmod=${ol_enable_overlays:-no}
4150 # end --enable-seqmod
4152 # OpenLDAP --enable-sssvlv
4154 # Check whether --enable-sssvlv was given.
4155 if test "${enable_sssvlv+set}" = set; then
4156 enableval=$enable_sssvlv;
4158 for ol_val in no yes mod ; do
4159 if test "$enableval" = "$ol_val" ; then
4163 if test "$ol_arg" = "invalid" ; then
4164 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4165 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4166 { (exit 1); exit 1; }; }
4168 ol_enable_sssvlv="$ol_arg"
4171 ol_enable_sssvlv=${ol_enable_overlays:-no}
4174 # end --enable-sssvlv
4176 # OpenLDAP --enable-syncprov
4178 # Check whether --enable-syncprov was given.
4179 if test "${enable_syncprov+set}" = set; then
4180 enableval=$enable_syncprov;
4182 for ol_val in no yes mod ; do
4183 if test "$enableval" = "$ol_val" ; then
4187 if test "$ol_arg" = "invalid" ; then
4188 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4189 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4190 { (exit 1); exit 1; }; }
4192 ol_enable_syncprov="$ol_arg"
4195 ol_enable_syncprov=${ol_enable_overlays:-yes}
4198 # end --enable-syncprov
4200 # OpenLDAP --enable-translucent
4202 # Check whether --enable-translucent was given.
4203 if test "${enable_translucent+set}" = set; then
4204 enableval=$enable_translucent;
4206 for ol_val in no yes mod ; do
4207 if test "$enableval" = "$ol_val" ; then
4211 if test "$ol_arg" = "invalid" ; then
4212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4213 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4214 { (exit 1); exit 1; }; }
4216 ol_enable_translucent="$ol_arg"
4219 ol_enable_translucent=${ol_enable_overlays:-no}
4222 # end --enable-translucent
4224 # OpenLDAP --enable-unique
4226 # Check whether --enable-unique was given.
4227 if test "${enable_unique+set}" = set; then
4228 enableval=$enable_unique;
4230 for ol_val in no yes mod ; do
4231 if test "$enableval" = "$ol_val" ; then
4235 if test "$ol_arg" = "invalid" ; then
4236 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4237 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4238 { (exit 1); exit 1; }; }
4240 ol_enable_unique="$ol_arg"
4243 ol_enable_unique=${ol_enable_overlays:-no}
4246 # end --enable-unique
4248 # OpenLDAP --enable-valsort
4250 # Check whether --enable-valsort was given.
4251 if test "${enable_valsort+set}" = set; then
4252 enableval=$enable_valsort;
4254 for ol_val in no yes mod ; do
4255 if test "$enableval" = "$ol_val" ; then
4259 if test "$ol_arg" = "invalid" ; then
4260 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4261 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4262 { (exit 1); exit 1; }; }
4264 ol_enable_valsort="$ol_arg"
4267 ol_enable_valsort=${ol_enable_overlays:-no}
4270 # end --enable-valsort
4273 # Check whether --enable-xxliboptions was given.
4274 if test "${enable_xxliboptions+set}" = set; then
4275 enableval=$enable_xxliboptions;
4278 # Check whether --enable-static was given.
4279 if test "${enable_static+set}" = set; then
4280 enableval=$enable_static; p=${PACKAGE-default}
4282 yes) enable_static=yes ;;
4283 no) enable_static=no ;;
4286 # Look at the argument we got. We use all the common list separators.
4287 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4288 for pkg in $enableval; do
4290 if test "X$pkg" = "X$p"; then
4302 # Check whether --enable-shared was given.
4303 if test "${enable_shared+set}" = set; then
4304 enableval=$enable_shared; p=${PACKAGE-default}
4306 yes) enable_shared=yes ;;
4307 no) enable_shared=no ;;
4310 # Look at the argument we got. We use all the common list separators.
4311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4312 for pkg in $enableval; do
4314 if test "X$pkg" = "X$p"; then
4329 if test $ol_enable_slapd = no ; then
4330 if test $ol_enable_slapi = yes ; then
4331 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4334 case "$ol_enable_backends" in yes | mod)
4335 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4338 for i in $Backends; do
4339 eval "ol_tmp=\$ol_enable_$i"
4340 if test $ol_tmp != no ; then
4341 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4342 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4343 eval "ol_enable_$i=no"
4346 if test $ol_enable_modules = yes ; then
4347 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4348 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4350 if test $ol_enable_wrappers = yes ; then
4351 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4352 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4354 if test $ol_enable_rlookups = yes ; then
4355 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4356 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4358 if test $ol_enable_dynacl = yes ; then
4359 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4360 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4362 if test $ol_enable_aci != no ; then
4363 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4364 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4366 if test $ol_enable_rewrite = yes ; then
4367 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4368 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4370 case "$ol_enable_overlays" in yes | mod)
4371 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4372 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4374 for i in $Overlays; do
4375 eval "ol_tmp=\$ol_enable_$i"
4376 if test $ol_tmp != no ; then
4377 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4378 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4379 eval "ol_enable_$i=no"
4383 # force settings to no
4388 ol_enable_modules=no
4389 ol_enable_rlookups=no
4392 ol_enable_wrappers=no
4394 ol_enable_rewrite=no
4396 elif test $ol_enable_modules != yes &&
4397 test $ol_enable_bdb = no &&
4398 test $ol_enable_dnssrv = no &&
4399 test $ol_enable_hdb = no &&
4400 test $ol_enable_ldap = no &&
4401 test $ol_enable_meta = no &&
4402 test $ol_enable_monitor = no &&
4403 test $ol_enable_ndb = no &&
4404 test $ol_enable_null = no &&
4405 test $ol_enable_passwd = no &&
4406 test $ol_enable_perl = no &&
4407 test $ol_enable_relay = no &&
4408 test $ol_enable_shell = no &&
4409 test $ol_enable_sock = no &&
4410 test $ol_enable_sql = no ; then
4412 if test $ol_enable_slapd = yes ; then
4413 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4414 echo "$as_me: error: slapd requires a backend" >&2;}
4415 { (exit 1); exit 1; }; }
4417 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4418 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4423 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4424 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4425 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4426 { (exit 1); exit 1; }; }
4429 if test $ol_enable_lmpasswd = yes ; then
4430 if test $ol_with_tls = no ; then
4431 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4432 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4433 { (exit 1); exit 1; }; }
4437 if test $ol_enable_spasswd = yes ; then
4438 if test $ol_with_cyrus_sasl = no ; then
4439 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4440 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4441 { (exit 1); exit 1; }; }
4443 ol_with_cyrus_sasl=yes
4446 { echo "$as_me:$LINENO: result: done" >&5
4447 echo "${ECHO_T}done" >&6; }
4498 BUILD_TRANSLUCENT=no
4502 SLAPD_STATIC_OVERLAYS=
4503 SLAPD_DYNAMIC_OVERLAYS=
4505 SLAPD_MODULES_LDFLAGS=
4506 SLAPD_MODULES_CPPFLAGS=
4508 SLAPD_STATIC_BACKENDS=back-ldif
4509 SLAPD_DYNAMIC_BACKENDS=
4535 cat >>confdefs.h <<\_ACEOF
4536 #define HAVE_MKVERSION 1
4544 *-*-aix*) if test -z "$CC" ; then
4545 case "$ol_with_threads" in
4546 auto | yes | posix) ol_aix_threads=yes ;;
4552 if test $ol_aix_threads = yes ; then
4553 if test -z "${CC}" ; then
4554 for ac_prog in cc_r xlc_r cc
4556 # Extract the first word of "$ac_prog", so it can be a program name with args.
4557 set dummy $ac_prog; ac_word=$2
4558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_CC+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_CC="$ac_prog"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 if test -n "$CC"; then
4585 { echo "$as_me:$LINENO: result: $CC" >&5
4586 echo "${ECHO_T}$CC" >&6; }
4588 { echo "$as_me:$LINENO: result: no" >&5
4589 echo "${ECHO_T}no" >&6; }
4593 test -n "$CC" && break
4597 if test "$CC" = cc ; then
4598 if test $ol_with_threads != auto ; then
4599 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4600 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4601 { (exit 1); exit 1; }; }
4603 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4604 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4610 case ${CC} in cc_r | xlc_r)
4611 ol_with_threads=posix
4612 ol_cv_pthread_create=yes
4617 if test -z "${CC}"; then
4618 for ac_prog in cc gcc
4620 # Extract the first word of "$ac_prog", so it can be a program name with args.
4621 set dummy $ac_prog; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_prog_CC+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4637 ac_cv_prog_CC="$ac_prog"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 if test -n "$CC"; then
4649 { echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6; }
4652 { echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6; }
4657 test -n "$CC" && break
4659 test -n "$CC" || CC="missing"
4662 if test "${CC}" = "missing" ; then
4663 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4664 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4665 { (exit 1); exit 1; }; }
4669 if test -z "${AR}"; then
4670 for ac_prog in ar gar
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673 set dummy $ac_prog; ac_word=$2
4674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4676 if test "${ac_cv_prog_AR+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 if test -n "$AR"; then
4680 ac_cv_prog_AR="$AR" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_AR="$ac_prog"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 if test -n "$AR"; then
4701 { echo "$as_me:$LINENO: result: $AR" >&5
4702 echo "${ECHO_T}$AR" >&6; }
4704 { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4709 test -n "$AR" && break
4711 test -n "$AR" || AR="missing"
4714 if test "${AR}" = "missing" ; then
4715 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4716 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4717 { (exit 1); exit 1; }; }
4725 # Check whether --enable-fast-install was given.
4726 if test "${enable_fast_install+set}" = set; then
4727 enableval=$enable_fast_install; p=${PACKAGE-default}
4729 yes) enable_fast_install=yes ;;
4730 no) enable_fast_install=no ;;
4732 enable_fast_install=no
4733 # Look at the argument we got. We use all the common list separators.
4734 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4735 for pkg in $enableval; do
4737 if test "X$pkg" = "X$p"; then
4738 enable_fast_install=yes
4745 enable_fast_install=yes
4749 DEPDIR="${am__leading_dot}deps"
4751 ac_config_commands="$ac_config_commands depfiles"
4754 am_make=${MAKE-make}
4755 cat > confinc << 'END'
4760 # If we don't find an include directive, just comment out the code.
4761 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4762 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4766 # First try GNU make style include.
4767 echo "include confinc" > confmf
4768 # We grep out `Entering directory' and `Leaving directory'
4769 # messages which can occur if `w' ends up in MAKEFLAGS.
4770 # In particular we don't look at `^make:' because GNU make might
4771 # be invoked under some other name (usually "gmake"), in which
4772 # case it prints its new name instead of `make'.
4773 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4778 # Now try BSD make style include.
4779 if test "$am__include" = "#"; then
4780 echo '.include "confinc"' > confmf
4781 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4782 am__include=.include
4789 { echo "$as_me:$LINENO: result: $_am_result" >&5
4790 echo "${ECHO_T}$_am_result" >&6; }
4791 rm -f confinc confmf
4793 # Check whether --enable-dependency-tracking was given.
4794 if test "${enable_dependency_tracking+set}" = set; then
4795 enableval=$enable_dependency_tracking;
4798 if test "x$enable_dependency_tracking" != xno; then
4799 am_depcomp="$ac_aux_dir/depcomp"
4804 if test "x$enable_dependency_tracking" != xno; then
4815 ac_cpp='$CPP $CPPFLAGS'
4816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819 if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_prog_CC+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 if test -n "$CC"; then
4849 { echo "$as_me:$LINENO: result: $CC" >&5
4850 echo "${ECHO_T}$CC" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4858 if test -z "$ac_cv_prog_CC"; then
4860 # Extract the first word of "gcc", so it can be a program name with args.
4861 set dummy gcc; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_ac_ct_CC="gcc"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888 if test -n "$ac_ct_CC"; then
4889 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4890 echo "${ECHO_T}$ac_ct_CC" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4896 if test "x$ac_ct_CC" = x; then
4899 case $cross_compiling:$ac_tool_warned in
4901 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4902 whose name does not start with the host triplet. If you think this
4903 configuration is useful to you, please write to autoconf@gnu.org." >&5
4904 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4905 whose name does not start with the host triplet. If you think this
4906 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4907 ac_tool_warned=yes ;;
4915 if test -z "$CC"; then
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918 set dummy ${ac_tool_prefix}cc; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_prog_CC+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 if test -n "$CC"; then
4925 ac_cv_prog_CC="$CC" # Let the user override the test.
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_CC="${ac_tool_prefix}cc"
4935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 if test -n "$CC"; then
4946 { echo "$as_me:$LINENO: result: $CC" >&5
4947 echo "${ECHO_T}$CC" >&6; }
4949 { echo "$as_me:$LINENO: result: no" >&5
4950 echo "${ECHO_T}no" >&6; }
4956 if test -z "$CC"; then
4957 # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 if test -n "$CC"; then
4965 ac_cv_prog_CC="$CC" # Let the user override the test.
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 test -z "$as_dir" && as_dir=.
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4975 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4976 ac_prog_rejected=yes
4980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 if test $ac_prog_rejected = yes; then
4988 # We found a bogon in the path, so make sure we never use it.
4989 set dummy $ac_cv_prog_CC
4991 if test $# != 0; then
4992 # We chose a different compiler from the bogus one.
4993 # However, it has the same basename, so the bogon will be chosen
4994 # first if we set CC to just the basename; use the full file name.
4996 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5002 if test -n "$CC"; then
5003 { echo "$as_me:$LINENO: result: $CC" >&5
5004 echo "${ECHO_T}$CC" >&6; }
5006 { echo "$as_me:$LINENO: result: no" >&5
5007 echo "${ECHO_T}no" >&6; }
5012 if test -z "$CC"; then
5013 if test -n "$ac_tool_prefix"; then
5014 for ac_prog in cl.exe
5016 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5020 if test "${ac_cv_prog_CC+set}" = set; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 if test -n "$CC"; then
5024 ac_cv_prog_CC="$CC" # Let the user override the test.
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 if test -n "$CC"; then
5045 { echo "$as_me:$LINENO: result: $CC" >&5
5046 echo "${ECHO_T}$CC" >&6; }
5048 { echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6; }
5053 test -n "$CC" && break
5056 if test -z "$CC"; then
5058 for ac_prog in cl.exe
5060 # Extract the first word of "$ac_prog", so it can be a program name with args.
5061 set dummy $ac_prog; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 if test -n "$ac_ct_CC"; then
5068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5077 ac_cv_prog_ac_ct_CC="$ac_prog"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5088 if test -n "$ac_ct_CC"; then
5089 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5090 echo "${ECHO_T}$ac_ct_CC" >&6; }
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 test -n "$ac_ct_CC" && break
5100 if test "x$ac_ct_CC" = x; then
5103 case $cross_compiling:$ac_tool_warned in
5105 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5106 whose name does not start with the host triplet. If you think this
5107 configuration is useful to you, please write to autoconf@gnu.org." >&5
5108 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5111 ac_tool_warned=yes ;;
5120 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: no acceptable C compiler found in \$PATH
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5126 # Provide some information about the compiler.
5127 echo "$as_me:$LINENO: checking for C compiler version" >&5
5128 ac_compiler=`set X $ac_compile; echo $2`
5129 { (ac_try="$ac_compiler --version >&5"
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compiler --version >&5") 2>&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); }
5139 { (ac_try="$ac_compiler -v >&5"
5141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142 *) ac_try_echo=$ac_try;;
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145 (eval "$ac_compiler -v >&5") 2>&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }
5149 { (ac_try="$ac_compiler -V >&5"
5151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5152 *) ac_try_echo=$ac_try;;
5154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5155 (eval "$ac_compiler -V >&5") 2>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5175 ac_clean_files_save=$ac_clean_files
5176 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5177 # Try to create an executable without -o first, disregard a.out.
5178 # It will help us diagnose broken compilers, and finding out an intuition
5180 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5181 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5182 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5184 # List of possible output files, starting from the most likely.
5185 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5186 # only as a last resort. b.out is created by i960 compilers.
5187 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5189 # The IRIX 6 linker writes into existing files which may not be
5190 # executable, retaining their permissions. Remove them first so a
5191 # subsequent execution test works.
5193 for ac_file in $ac_files
5196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5197 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5202 if { (ac_try="$ac_link_default"
5204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205 *) ac_try_echo=$ac_try;;
5207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5208 (eval "$ac_link_default") 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; then
5212 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5213 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5214 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5215 # so that the user can short-circuit this test for compilers unknown to
5217 for ac_file in $ac_files ''
5219 test -f "$ac_file" || continue
5221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5224 # We found the default executable, but exeext='' is most
5228 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5230 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5232 # We set ac_cv_exeext here because the later test for it is not
5233 # safe: cross compilers may not add the suffix if given an `-o'
5234 # argument, so we may need to know it at that point already.
5235 # Even if this section looks crufty: it has the advantage of
5242 test "$ac_cv_exeext" = no && ac_cv_exeext=
5248 { echo "$as_me:$LINENO: result: $ac_file" >&5
5249 echo "${ECHO_T}$ac_file" >&6; }
5250 if test -z "$ac_file"; then
5251 echo "$as_me: failed program was:" >&5
5252 sed 's/^/| /' conftest.$ac_ext >&5
5254 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&5
5256 echo "$as_me: error: C compiler cannot create executables
5257 See \`config.log' for more details." >&2;}
5258 { (exit 77); exit 77; }; }
5261 ac_exeext=$ac_cv_exeext
5263 # Check that the compiler produces executables we can run. If not, either
5264 # the compiler is broken, or we cross compile.
5265 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5266 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5267 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5268 # If not cross compiling, check that we can run a simple program.
5269 if test "$cross_compiling" != yes; then
5270 if { ac_try='./$ac_file'
5271 { (case "(($ac_try" in
5272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5273 *) ac_try_echo=$ac_try;;
5275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5276 (eval "$ac_try") 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 if test "$cross_compiling" = maybe; then
5285 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5286 If you meant to cross compile, use \`--host'.
5287 See \`config.log' for more details." >&5
5288 echo "$as_me: error: cannot run C compiled programs.
5289 If you meant to cross compile, use \`--host'.
5290 See \`config.log' for more details." >&2;}
5291 { (exit 1); exit 1; }; }
5295 { echo "$as_me:$LINENO: result: yes" >&5
5296 echo "${ECHO_T}yes" >&6; }
5298 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5299 ac_clean_files=$ac_clean_files_save
5300 # Check that the compiler produces executables we can run. If not, either
5301 # the compiler is broken, or we cross compile.
5302 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5303 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5304 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5305 echo "${ECHO_T}$cross_compiling" >&6; }
5307 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5308 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5309 if { (ac_try="$ac_link"
5311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5312 *) ac_try_echo=$ac_try;;
5314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5315 (eval "$ac_link") 2>&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; then
5319 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5320 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5321 # work properly (i.e., refer to `conftest.exe'), while it won't with
5323 for ac_file in conftest.exe conftest conftest.*; do
5324 test -f "$ac_file" || continue
5326 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5327 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5333 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&5
5335 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5336 See \`config.log' for more details." >&2;}
5337 { (exit 1); exit 1; }; }
5340 rm -f conftest$ac_cv_exeext
5341 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5342 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5344 rm -f conftest.$ac_ext
5345 EXEEXT=$ac_cv_exeext
5347 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5348 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5349 if test "${ac_cv_objext+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5367 rm -f conftest.o conftest.obj
5368 if { (ac_try="$ac_compile"
5370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_compile") 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; then
5378 for ac_file in conftest.o conftest.obj conftest.*; do
5379 test -f "$ac_file" || continue;
5381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&5
5392 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5393 See \`config.log' for more details." >&2;}
5394 { (exit 1); exit 1; }; }
5397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5399 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5400 echo "${ECHO_T}$ac_cv_objext" >&6; }
5401 OBJEXT=$ac_cv_objext
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_c_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5455 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5457 GCC=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CFLAGS=${CFLAGS+set}
5459 ac_save_CFLAGS=$CFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5461 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cc_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_save_c_werror_flag=$ac_c_werror_flag
5466 ac_c_werror_flag=yes
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_c_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 ac_c_werror_flag=$ac_save_c_werror_flag
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5570 grep -v '^ *+' conftest.er1 >conftest.err
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_c_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_c_werror_flag=$ac_save_c_werror_flag
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5597 if test "$ac_test_CFLAGS" = set; then
5598 CFLAGS=$ac_save_CFLAGS
5599 elif test $ac_cv_prog_cc_g = yes; then
5600 if test "$GCC" = yes; then
5606 if test "$GCC" = yes; then
5612 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5613 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5614 if test "${ac_cv_prog_cc_c89+set}" = set; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 ac_cv_prog_cc_c89=no
5619 cat >conftest.$ac_ext <<_ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5643 s = g (p, va_arg (v,int));
5648 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5649 function prototypes and stuff, but not '\xHH' hex character constants.
5650 These don't provoke an error unfortunately, instead are silently treated
5651 as 'x'. The following induces an error, until -std is added to get
5652 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5653 array size at least. It's necessary to write '\x00'==0 to get something
5654 that's true only with -std. */
5655 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5657 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5658 inside strings and character constants. */
5660 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5662 int test (int i, double x);
5663 struct s1 {int (*f) (int a);};
5664 struct s2 {int (*f) (double a);};
5665 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5671 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5676 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5677 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5679 CC="$ac_save_CC $ac_arg"
5680 rm -f conftest.$ac_objext
5681 if { (ac_try="$ac_compile"
5683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684 *) ac_try_echo=$ac_try;;
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687 (eval "$ac_compile") 2>conftest.er1
5689 grep -v '^ *+' conftest.er1 >conftest.err
5691 cat conftest.err >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); } && {
5694 test -z "$ac_c_werror_flag" ||
5695 test ! -s conftest.err
5696 } && test -s conftest.$ac_objext; then
5697 ac_cv_prog_cc_c89=$ac_arg
5699 echo "$as_me: failed program was:" >&5
5700 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f core conftest.err conftest.$ac_objext
5706 test "x$ac_cv_prog_cc_c89" != "xno" && break
5708 rm -f conftest.$ac_ext
5713 case "x$ac_cv_prog_cc_c89" in
5715 { echo "$as_me:$LINENO: result: none needed" >&5
5716 echo "${ECHO_T}none needed" >&6; } ;;
5718 { echo "$as_me:$LINENO: result: unsupported" >&5
5719 echo "${ECHO_T}unsupported" >&6; } ;;
5721 CC="$CC $ac_cv_prog_cc_c89"
5722 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5723 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5728 ac_cpp='$CPP $CPPFLAGS'
5729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5733 depcc="$CC" am_compiler_list=
5735 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5736 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5737 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5741 # We make a subdir and do the tests there. Otherwise we can end up
5742 # making bogus files that we don't know about and never remove. For
5743 # instance it was reported that on HP-UX the gcc test will end up
5744 # making a dummy file named `D' -- because `-MD' means `put the output
5747 # Copy depcomp to subdir because otherwise we won't find it if we're
5748 # using a relative directory.
5749 cp "$am_depcomp" conftest.dir
5751 # We will build objects and dependencies in a subdirectory because
5752 # it helps to detect inapplicable dependency modes. For instance
5753 # both Tru64's cc and ICC support -MD to output dependencies as a
5754 # side effect of compilation, but ICC will put the dependencies in
5755 # the current directory while Tru64 will put them in the object
5759 am_cv_CC_dependencies_compiler_type=none
5760 if test "$am_compiler_list" = ""; then
5761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5763 for depmode in $am_compiler_list; do
5764 # Setup a source with many dependencies, because some compilers
5765 # like to wrap large dependency lists on column 80 (with \), and
5766 # we should not choose a depcomp mode which is confused by this.
5768 # We need to recreate these files for each test, as the compiler may
5769 # overwrite some of them when testing with obscure command lines.
5770 # This happens at least with the AIX C compiler.
5772 for i in 1 2 3 4 5 6; do
5773 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5774 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5775 # Solaris 8's {/usr,}/bin/sh.
5776 touch sub/conftst$i.h
5778 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5782 # after this tag, mechanisms are not by side-effect, so they'll
5783 # only be used when explicitly requested
5784 if test "x$enable_dependency_tracking" = xyes; then
5792 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5793 # mode. It turns out that the SunPro C++ compiler does not properly
5794 # handle `-M -o', and we need to detect this.
5795 if depmode=$depmode \
5796 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5797 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5798 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5799 >/dev/null 2>conftest.err &&
5800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5801 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5803 # icc doesn't choke on unknown options, it will just issue warnings
5804 # or remarks (even with -Werror). So we grep stderr for any message
5805 # that says an option was ignored or not supported.
5806 # When given -MP, icc 7.0 and 7.1 complain thusly:
5807 # icc: Command line warning: ignoring option '-M'; no argument required
5808 # The diagnosis changed in icc 8.0:
5809 # icc: Command line remark: option '-MP' not supported
5810 if (grep 'ignoring option' conftest.err ||
5811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5812 am_cv_CC_dependencies_compiler_type=$depmode
5821 am_cv_CC_dependencies_compiler_type=none
5825 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5826 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5832 test "x$enable_dependency_tracking" != xno \
5833 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5835 am__fastdepCC_FALSE='#'
5837 am__fastdepCC_TRUE='#'
5838 am__fastdepCC_FALSE=
5842 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5843 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5844 if test "${lt_cv_path_SED+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 # Loop through the user's path and test for sed and gsed.
5848 # Then use that list of sed's as ones to test for truncation.
5849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 test -z "$as_dir" && as_dir=.
5854 for lt_ac_prog in sed gsed; do
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5857 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5864 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5865 # along with /bin/sed that truncates output.
5866 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5867 test ! -f $lt_ac_sed && continue
5868 cat /dev/null > conftest.in
5870 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5871 # Check for GNU sed and select it if it is found.
5872 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5873 lt_cv_path_SED=$lt_ac_sed
5877 cat conftest.in conftest.in >conftest.tmp
5878 mv conftest.tmp conftest.in
5879 cp conftest.in conftest.nl
5881 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5882 cmp -s conftest.out conftest.nl || break
5883 # 10000 chars as input seems more than enough
5884 test $lt_ac_count -gt 10 && break
5885 lt_ac_count=`expr $lt_ac_count + 1`
5886 if test $lt_ac_count -gt $lt_ac_max; then
5887 lt_ac_max=$lt_ac_count
5888 lt_cv_path_SED=$lt_ac_sed
5896 { echo "$as_me:$LINENO: result: $SED" >&5
5897 echo "${ECHO_T}$SED" >&6; }
5899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5901 if test "${ac_cv_path_GREP+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 # Extract the first word of "grep ggrep" to use in msg output
5905 if test -z "$GREP"; then
5906 set dummy grep ggrep; ac_prog_name=$2
5907 if test "${ac_cv_path_GREP+set}" = set; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 ac_path_GREP_found=false
5911 # Loop through the user's path and test for each of PROGNAME-LIST
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5916 test -z "$as_dir" && as_dir=.
5917 for ac_prog in grep ggrep; do
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5920 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5921 # Check for GNU ac_path_GREP and select it if it is found.
5922 # Check for GNU $ac_path_GREP
5923 case `"$ac_path_GREP" --version 2>&1` in
5925 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5928 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5931 cat "conftest.in" "conftest.in" >"conftest.tmp"
5932 mv "conftest.tmp" "conftest.in"
5933 cp "conftest.in" "conftest.nl"
5934 echo 'GREP' >> "conftest.nl"
5935 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5936 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5937 ac_count=`expr $ac_count + 1`
5938 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5939 # Best one so far, save it but keep looking for a better one
5940 ac_cv_path_GREP="$ac_path_GREP"
5941 ac_path_GREP_max=$ac_count
5943 # 10*(2^10) chars as input seems more than enough
5944 test $ac_count -gt 10 && break
5946 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5950 $ac_path_GREP_found && break 3
5960 GREP="$ac_cv_path_GREP"
5961 if test -z "$GREP"; then
5962 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5964 { (exit 1); exit 1; }; }
5968 ac_cv_path_GREP=$GREP
5973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5975 GREP="$ac_cv_path_GREP"
5978 { echo "$as_me:$LINENO: checking for egrep" >&5
5979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5980 if test "${ac_cv_path_EGREP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984 then ac_cv_path_EGREP="$GREP -E"
5986 # Extract the first word of "egrep" to use in msg output
5987 if test -z "$EGREP"; then
5988 set dummy egrep; ac_prog_name=$2
5989 if test "${ac_cv_path_EGREP+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_path_EGREP_found=false
5993 # Loop through the user's path and test for each of PROGNAME-LIST
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5998 test -z "$as_dir" && as_dir=.
5999 for ac_prog in egrep; do
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6002 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6003 # Check for GNU ac_path_EGREP and select it if it is found.
6004 # Check for GNU $ac_path_EGREP
6005 case `"$ac_path_EGREP" --version 2>&1` in
6007 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6010 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6013 cat "conftest.in" "conftest.in" >"conftest.tmp"
6014 mv "conftest.tmp" "conftest.in"
6015 cp "conftest.in" "conftest.nl"
6016 echo 'EGREP' >> "conftest.nl"
6017 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6019 ac_count=`expr $ac_count + 1`
6020 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6021 # Best one so far, save it but keep looking for a better one
6022 ac_cv_path_EGREP="$ac_path_EGREP"
6023 ac_path_EGREP_max=$ac_count
6025 # 10*(2^10) chars as input seems more than enough
6026 test $ac_count -gt 10 && break
6028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6032 $ac_path_EGREP_found && break 3
6042 EGREP="$ac_cv_path_EGREP"
6043 if test -z "$EGREP"; then
6044 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6046 { (exit 1); exit 1; }; }
6050 ac_cv_path_EGREP=$EGREP
6056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6058 EGREP="$ac_cv_path_EGREP"
6062 # Check whether --with-gnu-ld was given.
6063 if test "${with_gnu_ld+set}" = set; then
6064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6070 if test "$GCC" = yes; then
6071 # Check if gcc -print-prog-name=ld gives a path.
6072 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6076 # gcc leaves a trailing carriage return which upsets mingw
6077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6082 # Accept absolute paths.
6084 re_direlt='/[^/][^/]*/\.\./'
6085 # Canonicalize the pathname of ld
6086 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6087 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6088 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6090 test -z "$LD" && LD="$ac_prog"
6093 # If it fails, then pretend we aren't using GCC.
6097 # If it is relative, then search for the first ld in PATH.
6101 elif test "$with_gnu_ld" = yes; then
6102 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6105 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6108 if test "${lt_cv_path_LD+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 if test -z "$LD"; then
6112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6113 for ac_dir in $PATH; do
6115 test -z "$ac_dir" && ac_dir=.
6116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6117 lt_cv_path_LD="$ac_dir/$ac_prog"
6118 # Check to see if the program is GNU ld. I'd rather use --version,
6119 # but apparently some variants of GNU ld only accept -v.
6120 # Break only if it was the GNU/non-GNU ld that we prefer.
6121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6122 *GNU* | *'with BFD'*)
6123 test "$with_gnu_ld" != no && break
6126 test "$with_gnu_ld" != yes && break
6133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6138 if test -n "$LD"; then
6139 { echo "$as_me:$LINENO: result: $LD" >&5
6140 echo "${ECHO_T}$LD" >&6; }
6142 { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6147 { (exit 1); exit 1; }; }
6148 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6154 case `$LD -v 2>&1 </dev/null` in
6155 *GNU* | *'with BFD'*)
6156 lt_cv_prog_gnu_ld=yes
6159 lt_cv_prog_gnu_ld=no
6163 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6165 with_gnu_ld=$lt_cv_prog_gnu_ld
6168 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6170 if test "${lt_cv_ld_reload_flag+set}" = set; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 lt_cv_ld_reload_flag='-r'
6175 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6177 reload_flag=$lt_cv_ld_reload_flag
6178 case $reload_flag in
6180 *) reload_flag=" $reload_flag" ;;
6182 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185 if test "$GCC" = yes; then
6186 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6193 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6194 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6195 if test "${lt_cv_path_NM+set}" = set; then
6196 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 if test -n "$NM"; then
6199 # Let the user override the test.
6202 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6203 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6205 test -z "$ac_dir" && ac_dir=.
6206 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6207 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6208 # Check to see if the nm accepts a BSD-compat flag.
6209 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6210 # nm: unknown option "B" ignored
6211 # Tru64's nm complains that /dev/null is an invalid object file
6212 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6213 */dev/null* | *'Invalid file or object type'*)
6214 lt_cv_path_NM="$tmp_nm -B"
6218 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6220 lt_cv_path_NM="$tmp_nm -p"
6224 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6225 continue # so that we can try to find one that supports BSD flags
6232 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6235 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6236 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6239 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6240 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6242 if test "$LN_S" = "ln -s"; then
6243 { echo "$as_me:$LINENO: result: yes" >&5
6244 echo "${ECHO_T}yes" >&6; }
6246 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6247 echo "${ECHO_T}no, using $LN_S" >&6; }
6250 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6251 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6252 if test "${lt_cv_deplibs_check_method+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 lt_cv_file_magic_cmd='$MAGIC_CMD'
6256 lt_cv_file_magic_test_file=
6257 lt_cv_deplibs_check_method='unknown'
6258 # Need to set the preceding variable on all platforms that support
6259 # interlibrary dependencies.
6260 # 'none' -- dependencies not supported.
6261 # `unknown' -- same as none, but documents that we really don't know.
6262 # 'pass_all' -- all dependencies passed with no checks.
6263 # 'test_compile' -- check by making test program.
6264 # 'file_magic [[regex]]' -- check by looking for files in library path
6265 # which responds to the $file_magic_cmd with a given extended regex.
6266 # If you have `file' or equivalent on your system and you're not sure
6267 # whether `pass_all' will *always* work, you probably want this one.
6271 lt_cv_deplibs_check_method=pass_all
6275 lt_cv_deplibs_check_method=pass_all
6279 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6280 lt_cv_file_magic_cmd='/usr/bin/file -L'
6281 lt_cv_file_magic_test_file=/shlib/libc.so
6285 # func_win32_libid is a shell function defined in ltmain.sh
6286 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6287 lt_cv_file_magic_cmd='func_win32_libid'
6291 # Base MSYS/MinGW do not provide the 'file' command needed by
6292 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6293 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6294 lt_cv_file_magic_cmd='$OBJDUMP -f'
6297 darwin* | rhapsody*)
6298 lt_cv_deplibs_check_method=pass_all
6301 freebsd* | kfreebsd*-gnu | dragonfly*)
6302 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6305 # Not sure whether the presence of OpenBSD here was a mistake.
6306 # Let's accept both of them until this is cleared up.
6307 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6308 lt_cv_file_magic_cmd=/usr/bin/file
6309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6313 lt_cv_deplibs_check_method=pass_all
6318 lt_cv_deplibs_check_method=pass_all
6321 hpux10.20* | hpux11*)
6322 lt_cv_file_magic_cmd=/usr/bin/file
6325 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6326 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6329 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]'
6330 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6333 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6339 irix5* | irix6* | nonstopux*)
6341 *-32|*"-32 ") libmagic=32-bit;;
6342 *-n32|*"-n32 ") libmagic=N32;;
6343 *-64|*"-64 ") libmagic=64-bit;;
6344 *) libmagic=never-match;;
6346 lt_cv_deplibs_check_method=pass_all
6349 # This must be Linux ELF.
6351 lt_cv_deplibs_check_method=pass_all
6355 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6364 lt_cv_file_magic_cmd=/usr/bin/file
6365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6369 lt_cv_deplibs_check_method=unknown
6373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6380 osf3* | osf4* | osf5*)
6381 lt_cv_deplibs_check_method=pass_all
6385 lt_cv_deplibs_check_method=pass_all
6389 lt_cv_deplibs_check_method=pass_all
6392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6393 case $host_vendor in
6395 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]'
6396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6399 lt_cv_deplibs_check_method=pass_all
6402 lt_cv_file_magic_cmd='/bin/file'
6403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6406 lt_cv_file_magic_cmd='/bin/file'
6407 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6408 lt_cv_file_magic_test_file=/lib/libc.so
6411 lt_cv_deplibs_check_method=pass_all
6416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6417 lt_cv_deplibs_check_method=pass_all
6422 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6424 file_magic_cmd=$lt_cv_file_magic_cmd
6425 deplibs_check_method=$lt_cv_deplibs_check_method
6426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6431 # If no C compiler was specified, use CC.
6434 # Allow CC to be a program name with arguments.
6438 # Check whether --enable-libtool-lock was given.
6439 if test "${enable_libtool_lock+set}" = set; then
6440 enableval=$enable_libtool_lock;
6443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6445 # Some flags need to be propagated to the compiler or linker for good
6449 # Find out which ABI we are using.
6450 echo 'int i;' > conftest.$ac_ext
6451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6452 (eval $ac_compile) 2>&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6468 # Find out which ABI we are using.
6469 echo '#line 6469 "configure"' > conftest.$ac_ext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; then
6475 if test "$lt_cv_prog_gnu_ld" = yes; then
6476 case `/usr/bin/file conftest.$ac_objext` in
6478 LD="${LD-ld} -melf32bsmip"
6481 LD="${LD-ld} -melf32bmipn32"
6484 LD="${LD-ld} -melf64bmip"
6488 case `/usr/bin/file conftest.$ac_objext` in
6504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6505 # Find out which ABI we are using.
6506 echo 'int i;' > conftest.$ac_ext
6507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6508 (eval $ac_compile) 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; then
6512 case `/usr/bin/file conftest.o` in
6516 LD="${LD-ld} -m elf_i386"
6518 ppc64-*linux*|powerpc64-*linux*)
6519 LD="${LD-ld} -m elf32ppclinux"
6522 LD="${LD-ld} -m elf_s390"
6525 LD="${LD-ld} -m elf32_sparc"
6532 LD="${LD-ld} -m elf_x86_64"
6534 ppc*-*linux*|powerpc*-*linux*)
6535 LD="${LD-ld} -m elf64ppc"
6538 LD="${LD-ld} -m elf64_s390"
6541 LD="${LD-ld} -m elf64_sparc"
6551 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552 SAVE_CFLAGS="$CFLAGS"
6553 CFLAGS="$CFLAGS -belf"
6554 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6556 if test "${lt_cv_cc_needs_belf+set}" = set; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6580 rm -f conftest.$ac_objext conftest$ac_exeext
6581 if { (ac_try="$ac_link"
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_link") 2>conftest.er1
6589 grep -v '^ *+' conftest.er1 >conftest.err
6591 cat conftest.err >&5
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } && {
6594 test -z "$ac_c_werror_flag" ||
6595 test ! -s conftest.err
6596 } && test -s conftest$ac_exeext &&
6597 $as_test_x conftest$ac_exeext; then
6598 lt_cv_cc_needs_belf=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 lt_cv_cc_needs_belf=no
6606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6607 conftest$ac_exeext conftest.$ac_ext
6609 ac_cpp='$CPP $CPPFLAGS'
6610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6615 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6616 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6617 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6618 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6619 CFLAGS="$SAVE_CFLAGS"
6622 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 if test -n "$DLLTOOL"; then
6632 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir=.
6639 for ac_exec_ext in '' $ac_executable_extensions; do
6640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 DLLTOOL=$ac_cv_prog_DLLTOOL
6652 if test -n "$DLLTOOL"; then
6653 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6654 echo "${ECHO_T}$DLLTOOL" >&6; }
6656 { echo "$as_me:$LINENO: result: no" >&5
6657 echo "${ECHO_T}no" >&6; }
6662 if test -z "$ac_cv_prog_DLLTOOL"; then
6663 ac_ct_DLLTOOL=$DLLTOOL
6664 # Extract the first word of "dlltool", so it can be a program name with args.
6665 set dummy dlltool; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 if test -n "$ac_ct_DLLTOOL"; then
6672 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6692 if test -n "$ac_ct_DLLTOOL"; then
6693 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6694 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6700 if test "x$ac_ct_DLLTOOL" = x; then
6703 case $cross_compiling:$ac_tool_warned in
6705 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6706 whose name does not start with the host triplet. If you think this
6707 configuration is useful to you, please write to autoconf@gnu.org." >&5
6708 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6709 whose name does not start with the host triplet. If you think this
6710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6711 ac_tool_warned=yes ;;
6713 DLLTOOL=$ac_ct_DLLTOOL
6716 DLLTOOL="$ac_cv_prog_DLLTOOL"
6719 if test -n "$ac_tool_prefix"; then
6720 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6721 set dummy ${ac_tool_prefix}as; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_AS+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 if test -n "$AS"; then
6728 ac_cv_prog_AS="$AS" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_AS="${ac_tool_prefix}as"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 if test -n "$AS"; then
6749 { echo "$as_me:$LINENO: result: $AS" >&5
6750 echo "${ECHO_T}$AS" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6758 if test -z "$ac_cv_prog_AS"; then
6760 # Extract the first word of "as", so it can be a program name with args.
6761 set dummy as; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 if test -n "$ac_ct_AS"; then
6768 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_ac_ct_AS="as"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6788 if test -n "$ac_ct_AS"; then
6789 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6790 echo "${ECHO_T}$ac_ct_AS" >&6; }
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6796 if test "x$ac_ct_AS" = x; then
6799 case $cross_compiling:$ac_tool_warned in
6801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6802 whose name does not start with the host triplet. If you think this
6803 configuration is useful to you, please write to autoconf@gnu.org." >&5
6804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6805 whose name does not start with the host triplet. If you think this
6806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6807 ac_tool_warned=yes ;;
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6820 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 if test -n "$OBJDUMP"; then
6824 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843 OBJDUMP=$ac_cv_prog_OBJDUMP
6844 if test -n "$OBJDUMP"; then
6845 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6846 echo "${ECHO_T}$OBJDUMP" >&6; }
6848 { echo "$as_me:$LINENO: result: no" >&5
6849 echo "${ECHO_T}no" >&6; }
6854 if test -z "$ac_cv_prog_OBJDUMP"; then
6855 ac_ct_OBJDUMP=$OBJDUMP
6856 # Extract the first word of "objdump", so it can be a program name with args.
6857 set dummy objdump; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 if test -n "$ac_ct_OBJDUMP"; then
6864 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6884 if test -n "$ac_ct_OBJDUMP"; then
6885 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6886 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6892 if test "x$ac_ct_OBJDUMP" = x; then
6895 case $cross_compiling:$ac_tool_warned in
6897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6898 whose name does not start with the host triplet. If you think this
6899 configuration is useful to you, please write to autoconf@gnu.org." >&5
6900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6901 whose name does not start with the host triplet. If you think this
6902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6903 ac_tool_warned=yes ;;
6905 OBJDUMP=$ac_ct_OBJDUMP
6908 OBJDUMP="$ac_cv_prog_OBJDUMP"
6915 need_locks="$enable_libtool_lock"
6919 ac_cpp='$CPP $CPPFLAGS'
6920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6923 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6924 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6925 # On Suns, sometimes $CPP names a directory.
6926 if test -n "$CPP" && test -d "$CPP"; then
6929 if test -z "$CPP"; then
6930 if test "${ac_cv_prog_CPP+set}" = set; then
6931 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 # Double quotes because CPP needs to be expanded
6934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6937 for ac_c_preproc_warn_flag in '' yes
6939 # Use a header file that comes with gcc, so configuring glibc
6940 # with a fresh cross-compiler works.
6941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6942 # <limits.h> exists even on freestanding compilers.
6943 # On the NeXT, cc -E runs the code through the compiler's parser,
6944 # not just through cpp. "Syntax error" is here to catch this case.
6945 cat >conftest.$ac_ext <<_ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6952 # include <limits.h>
6954 # include <assert.h>
6958 if { (ac_try="$ac_cpp conftest.$ac_ext"
6960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6961 *) ac_try_echo=$ac_try;;
6963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6966 grep -v '^ *+' conftest.er1 >conftest.err
6968 cat conftest.err >&5
6969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6970 (exit $ac_status); } >/dev/null && {
6971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6972 test ! -s conftest.err
6976 echo "$as_me: failed program was:" >&5
6977 sed 's/^/| /' conftest.$ac_ext >&5
6979 # Broken: fails on valid input.
6983 rm -f conftest.err conftest.$ac_ext
6985 # OK, works on sane cases. Now check whether nonexistent headers
6986 # can be detected and how.
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <ac_nonexistent.h>
6995 if { (ac_try="$ac_cpp conftest.$ac_ext"
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1 >conftest.err
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } >/dev/null && {
7008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7011 # Broken: success on invalid input.
7014 echo "$as_me: failed program was:" >&5
7015 sed 's/^/| /' conftest.$ac_ext >&5
7017 # Passes both tests.
7022 rm -f conftest.err conftest.$ac_ext
7025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7026 rm -f conftest.err conftest.$ac_ext
7027 if $ac_preproc_ok; then
7039 { echo "$as_me:$LINENO: result: $CPP" >&5
7040 echo "${ECHO_T}$CPP" >&6; }
7042 for ac_c_preproc_warn_flag in '' yes
7044 # Use a header file that comes with gcc, so configuring glibc
7045 # with a fresh cross-compiler works.
7046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7047 # <limits.h> exists even on freestanding compilers.
7048 # On the NeXT, cc -E runs the code through the compiler's parser,
7049 # not just through cpp. "Syntax error" is here to catch this case.
7050 cat >conftest.$ac_ext <<_ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7057 # include <limits.h>
7059 # include <assert.h>
7063 if { (ac_try="$ac_cpp conftest.$ac_ext"
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7071 grep -v '^ *+' conftest.er1 >conftest.err
7073 cat conftest.err >&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } >/dev/null && {
7076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7077 test ! -s conftest.err
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 # Broken: fails on valid input.
7088 rm -f conftest.err conftest.$ac_ext
7090 # OK, works on sane cases. Now check whether nonexistent headers
7091 # can be detected and how.
7092 cat >conftest.$ac_ext <<_ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 #include <ac_nonexistent.h>
7100 if { (ac_try="$ac_cpp conftest.$ac_ext"
7102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103 *) ac_try_echo=$ac_try;;
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7108 grep -v '^ *+' conftest.er1 >conftest.err
7110 cat conftest.err >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); } >/dev/null && {
7113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7114 test ! -s conftest.err
7116 # Broken: success on invalid input.
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 # Passes both tests.
7127 rm -f conftest.err conftest.$ac_ext
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then
7135 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&5
7137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." >&2;}
7139 { (exit 1); exit 1; }; }
7143 ac_cpp='$CPP $CPPFLAGS'
7144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7151 if test "${ac_cv_header_stdc+set}" = set; then
7152 echo $ECHO_N "(cached) $ECHO_C" >&6
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7173 rm -f conftest.$ac_objext
7174 if { (ac_try="$ac_compile"
7176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7177 *) ac_try_echo=$ac_try;;
7179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7180 (eval "$ac_compile") 2>conftest.er1
7182 grep -v '^ *+' conftest.er1 >conftest.err
7184 cat conftest.err >&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } && {
7187 test -z "$ac_c_werror_flag" ||
7188 test ! -s conftest.err
7189 } && test -s conftest.$ac_objext; then
7190 ac_cv_header_stdc=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_header_stdc=no
7198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200 if test $ac_cv_header_stdc = yes; then
7201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "memchr" >/dev/null 2>&1; then
7215 ac_cv_header_stdc=no
7221 if test $ac_cv_header_stdc = yes; then
7222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7223 cat >conftest.$ac_ext <<_ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7233 $EGREP "free" >/dev/null 2>&1; then
7236 ac_cv_header_stdc=no
7242 if test $ac_cv_header_stdc = yes; then
7243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7244 if test "$cross_compiling" = yes; then
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7255 #if ((' ' & 0x0FF) == 0x020)
7256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7259 # define ISLOWER(c) \
7260 (('a' <= (c) && (c) <= 'i') \
7261 || ('j' <= (c) && (c) <= 'r') \
7262 || ('s' <= (c) && (c) <= 'z'))
7263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7271 for (i = 0; i < 256; i++)
7272 if (XOR (islower (i), ISLOWER (i))
7273 || toupper (i) != TOUPPER (i))
7278 rm -f conftest$ac_exeext
7279 if { (ac_try="$ac_link"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_link") 2>&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7289 { (case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_try") 2>&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); }; }; then
7300 echo "$as_me: program exited with status $ac_status" >&5
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_header_stdc=no
7307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7315 if test $ac_cv_header_stdc = yes; then
7317 cat >>confdefs.h <<\_ACEOF
7318 #define STDC_HEADERS 1
7323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7334 inttypes.h stdint.h unistd.h
7336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7350 #include <$ac_header>
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 eval "$as_ac_Header=yes"
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 eval "$as_ac_Header=no"
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7379 ac_res=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7383 cat >>confdefs.h <<_ACEOF
7384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7393 for ac_header in dlfcn.h
7395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7400 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_res=`eval echo '${'$as_ac_Header'}'`
7403 { echo "$as_me:$LINENO: result: $ac_res" >&5
7404 echo "${ECHO_T}$ac_res" >&6; }
7406 # Is the header compilable?
7407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 $ac_includes_default
7416 #include <$ac_header>
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 ac_header_compiler=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_header_compiler=no
7443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7445 echo "${ECHO_T}$ac_header_compiler" >&6; }
7447 # Is the header present?
7448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7450 cat >conftest.$ac_ext <<_ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 #include <$ac_header>
7458 if { (ac_try="$ac_cpp conftest.$ac_ext"
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7466 grep -v '^ *+' conftest.er1 >conftest.err
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } >/dev/null && {
7471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7474 ac_header_preproc=yes
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_header_preproc=no
7482 rm -f conftest.err conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7484 echo "${ECHO_T}$ac_header_preproc" >&6; }
7486 # So? What about this header?
7487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7493 ac_header_preproc=yes
7496 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7498 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7499 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7500 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7502 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7503 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7506 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7509 ## --------------------------------------------- ##
7510 ## Report this to <http://www.openldap.org/its/> ##
7511 ## --------------------------------------------- ##
7513 ) | sed "s/^/$as_me: WARNING: /" >&2
7516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7519 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 eval "$as_ac_Header=\$ac_header_preproc"
7523 ac_res=`eval echo '${'$as_ac_Header'}'`
7524 { echo "$as_me:$LINENO: result: $ac_res" >&5
7525 echo "${ECHO_T}$ac_res" >&6; }
7528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7529 cat >>confdefs.h <<_ACEOF
7530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7540 # find the maximum length of command line arguments
7541 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7542 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7543 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7551 # On DJGPP, this test can blow up pretty badly due to problems in libc
7552 # (any single argument exceeding 2000 bytes causes a buffer overrun
7553 # during glob expansion). Even if it were fixed, the result of this
7554 # check would be larger than it should be.
7555 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7559 # Under GNU Hurd, this test is not required because there is
7560 # no limit to the length of command line arguments.
7561 # Libtool will interpret -1 as no limit whatsoever
7562 lt_cv_sys_max_cmd_len=-1;
7566 # On Win9x/ME, this test blows up -- it succeeds, but takes
7567 # about 5 minutes as the teststring grows exponentially.
7568 # Worse, since 9x/ME are not pre-emptively multitasking,
7569 # you end up with a "frozen" computer, even though with patience
7570 # the test eventually succeeds (with a max line length of 256k).
7571 # Instead, let's just punt: use the minimum linelength reported by
7572 # all of the supported platforms: 8192 (on NT/2K/XP).
7573 lt_cv_sys_max_cmd_len=8192;
7577 # On AmigaOS with pdksh, this test takes hours, literally.
7578 # So we just punt and use a minimum line length of 8192.
7579 lt_cv_sys_max_cmd_len=8192;
7582 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7583 # This has been around since 386BSD, at least. Likely further.
7584 if test -x /sbin/sysctl; then
7585 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7586 elif test -x /usr/sbin/sysctl; then
7587 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7589 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7591 # And add a safety zone
7592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7596 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7597 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7598 # nice to cause kernel panics so lets avoid the loop below.
7599 # First set a reasonable default.
7600 lt_cv_sys_max_cmd_len=16384
7602 if test -x /sbin/sysconfig; then
7603 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7604 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7609 # If test is not a shell built-in, we'll probably end up computing a
7610 # maximum length that is only half of the actual maximum length, but
7612 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7613 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7614 = "XX$teststring") >/dev/null 2>&1 &&
7615 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7616 lt_cv_sys_max_cmd_len=$new_result &&
7617 test $i != 17 # 1/2 MB should be enough
7620 teststring=$teststring$teststring
7623 # Add a significant safety factor because C++ compilers can tack on massive
7624 # amounts of additional arguments before passing them to the linker.
7625 # It appears as though 1/2 is a usable value.
7626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7632 if test -n $lt_cv_sys_max_cmd_len ; then
7633 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7634 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7636 { echo "$as_me:$LINENO: result: none" >&5
7637 echo "${ECHO_T}none" >&6; }
7643 # Check for command to grab the raw symbol name followed by C symbol from nm.
7644 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7645 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7646 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 # These are sane defaults that work on at least a few old systems.
7651 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7653 # Character class describing NM global symbol codes.
7654 symcode='[BCDEGRST]'
7656 # Regexp to match symbols that can be accessed directly from C.
7657 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7659 # Transform an extracted symbol line into a proper C declaration
7660 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7662 # Transform an extracted symbol line into symbol name and symbol address
7663 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'"
7665 # Define system-specific variables.
7670 cygwin* | mingw* | pw32*)
7671 symcode='[ABCDGISTW]'
7673 hpux*) # Its linker distinguishes data from code symbols
7674 if test "$host_cpu" = ia64; then
7675 symcode='[ABCDEGRST]'
7677 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7678 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'"
7681 if test "$host_cpu" = ia64; then
7682 symcode='[ABCDGIRSTW]'
7683 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7684 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'"
7688 symcode='[BCDEGRST]'
7691 symcode='[BCDEGQRST]'
7701 # Handle CRLF in mingw tool chain
7705 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7709 # If we're using GNU nm, then use its standard symbol codes.
7710 case `$NM -V 2>&1` in
7711 *GNU* | *'with BFD'*)
7712 symcode='[ABCDGIRSTW]' ;;
7715 # Try without a prefix undercore, then with it.
7716 for ac_symprfx in "" "_"; do
7718 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7719 symxfrm="\\1 $ac_symprfx\\2 \\2"
7721 # Write the raw and C identifiers.
7722 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7724 # Check to see that the pipe works correctly.
7728 cat > conftest.$ac_ext <<EOF
7733 void nm_test_func(){}
7737 int main(){nm_test_var='a';nm_test_func();return(0);}
7740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7741 (eval $ac_compile) 2>&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; then
7745 # Now try to grab the symbols.
7747 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7748 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && test -s "$nlist"; then
7752 # Try sorting and uniquifying the output.
7753 if sort "$nlist" | uniq > "$nlist"T; then
7754 mv -f "$nlist"T "$nlist"
7759 # Make sure that we snagged all the symbols we need.
7760 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7761 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7762 cat <<EOF > conftest.$ac_ext
7768 # Now generate the symbol file.
7769 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7771 cat <<EOF >> conftest.$ac_ext
7772 #if defined (__STDC__) && __STDC__
7773 # define lt_ptr_t void *
7775 # define lt_ptr_t char *
7779 /* The mapping between symbol names and symbols. */
7784 lt_preloaded_symbols[] =
7787 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7788 cat <<\EOF >> conftest.$ac_ext
7796 # Now try linking the two files.
7797 mv conftest.$ac_objext conftstm.$ac_objext
7798 lt_save_LIBS="$LIBS"
7799 lt_save_CFLAGS="$CFLAGS"
7800 LIBS="conftstm.$ac_objext"
7801 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803 (eval $ac_link) 2>&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7809 LIBS="$lt_save_LIBS"
7810 CFLAGS="$lt_save_CFLAGS"
7812 echo "cannot find nm_test_func in $nlist" >&5
7815 echo "cannot find nm_test_var in $nlist" >&5
7818 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7821 echo "$progname: failed program was:" >&5
7822 cat conftest.$ac_ext >&5
7824 rm -f conftest* conftst*
7826 # Do not use the global_symbol_pipe unless it works.
7827 if test "$pipe_works" = yes; then
7830 lt_cv_sys_global_symbol_pipe=
7836 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7837 lt_cv_sys_global_symbol_to_cdecl=
7839 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7840 { echo "$as_me:$LINENO: result: failed" >&5
7841 echo "${ECHO_T}failed" >&6; }
7843 { echo "$as_me:$LINENO: result: ok" >&5
7844 echo "${ECHO_T}ok" >&6; }
7847 { echo "$as_me:$LINENO: checking for objdir" >&5
7848 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7849 if test "${lt_cv_objdir+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 rm -f .libs 2>/dev/null
7853 mkdir .libs 2>/dev/null
7854 if test -d .libs; then
7857 # MS-DOS does not allow filenames that begin with a dot.
7860 rmdir .libs 2>/dev/null
7862 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7863 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7864 objdir=$lt_cv_objdir
7872 # AIX sometimes has problems with the GCC collect2 program. For some
7873 # reason, if we set the COLLECT_NAMES environment variable, the problems
7874 # vanish in a puff of smoke.
7875 if test "X${COLLECT_NAMES+set}" != Xset; then
7877 export COLLECT_NAMES
7882 # Sed substitution that helps us do robust quoting. It backslashifies
7883 # metacharacters that are still active within double-quoted strings.
7884 Xsed='sed -e 1s/^X//'
7885 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7887 # Same as above, but do not quote variable references.
7888 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7890 # Sed substitution to delay expansion of an escaped shell variable in a
7891 # double_quote_subst'ed string.
7892 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7894 # Sed substitution to avoid accidental globbing in evaled expressions
7895 no_glob_subst='s/\*/\\\*/g'
7901 default_ofile=libtool
7902 can_build_shared=yes
7904 # All known linkers require a `.a' archive for static linking (except MSVC,
7905 # which needs '.lib').
7907 ltmain="$ac_aux_dir/ltmain.sh"
7908 ofile="$default_ofile"
7909 with_gnu_ld="$lt_cv_prog_gnu_ld"
7911 if test -n "$ac_tool_prefix"; then
7912 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7913 set dummy ${ac_tool_prefix}ar; ac_word=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_prog_AR+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 if test -n "$AR"; then
7920 ac_cv_prog_AR="$AR" # Let the user override the test.
7922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 test -z "$as_dir" && as_dir=.
7927 for ac_exec_ext in '' $ac_executable_extensions; do
7928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7929 ac_cv_prog_AR="${ac_tool_prefix}ar"
7930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 if test -n "$AR"; then
7941 { echo "$as_me:$LINENO: result: $AR" >&5
7942 echo "${ECHO_T}$AR" >&6; }
7944 { echo "$as_me:$LINENO: result: no" >&5
7945 echo "${ECHO_T}no" >&6; }
7950 if test -z "$ac_cv_prog_AR"; then
7952 # Extract the first word of "ar", so it can be a program name with args.
7953 set dummy ar; ac_word=$2
7954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7956 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 if test -n "$ac_ct_AR"; then
7960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 test -z "$as_dir" && as_dir=.
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7969 ac_cv_prog_ac_ct_AR="ar"
7970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7980 if test -n "$ac_ct_AR"; then
7981 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7982 echo "${ECHO_T}$ac_ct_AR" >&6; }
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7988 if test "x$ac_ct_AR" = x; then
7991 case $cross_compiling:$ac_tool_warned in
7993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7994 whose name does not start with the host triplet. If you think this
7995 configuration is useful to you, please write to autoconf@gnu.org." >&5
7996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7997 whose name does not start with the host triplet. If you think this
7998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7999 ac_tool_warned=yes ;;
8007 if test -n "$ac_tool_prefix"; then
8008 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8012 if test "${ac_cv_prog_RANLIB+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 if test -n "$RANLIB"; then
8016 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir=.
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 RANLIB=$ac_cv_prog_RANLIB
8036 if test -n "$RANLIB"; then
8037 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8038 echo "${ECHO_T}$RANLIB" >&6; }
8040 { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8046 if test -z "$ac_cv_prog_RANLIB"; then
8047 ac_ct_RANLIB=$RANLIB
8048 # Extract the first word of "ranlib", so it can be a program name with args.
8049 set dummy ranlib; ac_word=$2
8050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8052 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8055 if test -n "$ac_ct_RANLIB"; then
8056 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 test -z "$as_dir" && as_dir=.
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 ac_cv_prog_ac_ct_RANLIB="ranlib"
8066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8076 if test -n "$ac_ct_RANLIB"; then
8077 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8078 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8084 if test "x$ac_ct_RANLIB" = x; then
8087 case $cross_compiling:$ac_tool_warned in
8089 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8090 whose name does not start with the host triplet. If you think this
8091 configuration is useful to you, please write to autoconf@gnu.org." >&5
8092 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8093 whose name does not start with the host triplet. If you think this
8094 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8095 ac_tool_warned=yes ;;
8097 RANLIB=$ac_ct_RANLIB
8100 RANLIB="$ac_cv_prog_RANLIB"
8103 if test -n "$ac_tool_prefix"; then
8104 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8105 set dummy ${ac_tool_prefix}strip; ac_word=$2
8106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8108 if test "${ac_cv_prog_STRIP+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 if test -n "$STRIP"; then
8112 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 STRIP=$ac_cv_prog_STRIP
8132 if test -n "$STRIP"; then
8133 { echo "$as_me:$LINENO: result: $STRIP" >&5
8134 echo "${ECHO_T}$STRIP" >&6; }
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8142 if test -z "$ac_cv_prog_STRIP"; then
8144 # Extract the first word of "strip", so it can be a program name with args.
8145 set dummy strip; ac_word=$2
8146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8148 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8149 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 if test -n "$ac_ct_STRIP"; then
8152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 test -z "$as_dir" && as_dir=.
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161 ac_cv_prog_ac_ct_STRIP="strip"
8162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8172 if test -n "$ac_ct_STRIP"; then
8173 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8174 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8176 { echo "$as_me:$LINENO: result: no" >&5
8177 echo "${ECHO_T}no" >&6; }
8180 if test "x$ac_ct_STRIP" = x; then
8183 case $cross_compiling:$ac_tool_warned in
8185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8186 whose name does not start with the host triplet. If you think this
8187 configuration is useful to you, please write to autoconf@gnu.org." >&5
8188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8189 whose name does not start with the host triplet. If you think this
8190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8191 ac_tool_warned=yes ;;
8196 STRIP="$ac_cv_prog_STRIP"
8201 old_CFLAGS="$CFLAGS"
8203 # Set sane defaults for various variables
8204 test -z "$AR" && AR=ar
8205 test -z "$AR_FLAGS" && AR_FLAGS=cru
8206 test -z "$AS" && AS=as
8207 test -z "$CC" && CC=cc
8208 test -z "$LTCC" && LTCC=$CC
8209 test -z "$DLLTOOL" && DLLTOOL=dlltool
8210 test -z "$LD" && LD=ld
8211 test -z "$LN_S" && LN_S="ln -s"
8212 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8213 test -z "$NM" && NM=nm
8214 test -z "$SED" && SED=sed
8215 test -z "$OBJDUMP" && OBJDUMP=objdump
8216 test -z "$RANLIB" && RANLIB=:
8217 test -z "$STRIP" && STRIP=:
8218 test -z "$ac_objext" && ac_objext=o
8220 # Determine commands to create old-style static archives.
8221 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8222 old_postinstall_cmds='chmod 644 $oldlib'
8223 old_postuninstall_cmds=
8225 if test -n "$RANLIB"; then
8228 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8231 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8234 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8237 for cc_temp in $compiler""; do
8239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8245 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8248 # Only perform the check for file, if the check method requires it
8249 case $deplibs_check_method in
8251 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8252 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8253 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8254 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8262 lt_save_MAGIC_CMD="$MAGIC_CMD"
8263 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8264 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8265 for ac_dir in $ac_dummy; do
8267 test -z "$ac_dir" && ac_dir=.
8268 if test -f $ac_dir/${ac_tool_prefix}file; then
8269 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8270 if test -n "$file_magic_test_file"; then
8271 case $deplibs_check_method in
8273 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8274 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8275 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8276 $EGREP "$file_magic_regex" > /dev/null; then
8281 *** Warning: the command libtool uses to detect shared libraries,
8282 *** $file_magic_cmd, produces output that libtool cannot recognize.
8283 *** The result is that libtool may fail to recognize shared libraries
8284 *** as such. This will affect the creation of libtool libraries that
8285 *** depend on shared libraries, but programs linked with such libtool
8286 *** libraries will work regardless of this problem. Nevertheless, you
8287 *** may want to report the problem to your system manager and/or to
8288 *** bug-libtool@gnu.org
8298 MAGIC_CMD="$lt_save_MAGIC_CMD"
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if test -n "$MAGIC_CMD"; then
8305 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8306 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8308 { echo "$as_me:$LINENO: result: no" >&5
8309 echo "${ECHO_T}no" >&6; }
8312 if test -z "$lt_cv_path_MAGIC_CMD"; then
8313 if test -n "$ac_tool_prefix"; then
8314 { echo "$as_me:$LINENO: checking for file" >&5
8315 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8316 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8324 lt_save_MAGIC_CMD="$MAGIC_CMD"
8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8327 for ac_dir in $ac_dummy; do
8329 test -z "$ac_dir" && ac_dir=.
8330 if test -f $ac_dir/file; then
8331 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8332 if test -n "$file_magic_test_file"; then
8333 case $deplibs_check_method in
8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8338 $EGREP "$file_magic_regex" > /dev/null; then
8343 *** Warning: the command libtool uses to detect shared libraries,
8344 *** $file_magic_cmd, produces output that libtool cannot recognize.
8345 *** The result is that libtool may fail to recognize shared libraries
8346 *** as such. This will affect the creation of libtool libraries that
8347 *** depend on shared libraries, but programs linked with such libtool
8348 *** libraries will work regardless of this problem. Nevertheless, you
8349 *** may want to report the problem to your system manager and/or to
8350 *** bug-libtool@gnu.org
8360 MAGIC_CMD="$lt_save_MAGIC_CMD"
8365 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8366 if test -n "$MAGIC_CMD"; then
8367 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8368 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8384 enable_win32_dll=yes
8386 # Check whether --enable-libtool-lock was given.
8387 if test "${enable_libtool_lock+set}" = set; then
8388 enableval=$enable_libtool_lock;
8391 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8394 # Check whether --with-pic was given.
8395 if test "${with_pic+set}" = set; then
8396 withval=$with_pic; pic_mode="$withval"
8401 test -z "$pic_mode" && pic_mode=default
8403 # Use C for the default configuration in the libtool script
8407 ac_cpp='$CPP $CPPFLAGS'
8408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8413 # Source file extension for C test sources.
8416 # Object file extension for compiled C test sources.
8420 # Code to be used in simple compile tests
8421 lt_simple_compile_test_code="int some_variable = 0;\n"
8423 # Code to be used in simple link tests
8424 lt_simple_link_test_code='int main(){return(0);}\n'
8427 # If no C compiler was specified, use CC.
8430 # Allow CC to be a program name with arguments.
8434 # save warnings/boilerplate of simple test code
8435 ac_outfile=conftest.$ac_objext
8436 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8437 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8438 _lt_compiler_boilerplate=`cat conftest.err`
8441 ac_outfile=conftest.$ac_objext
8442 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8443 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8444 _lt_linker_boilerplate=`cat conftest.err`
8449 # Check for any special shared library compilation flags.
8452 if test "$GCC" = no; then
8455 lt_prog_cc_shlib='-belf'
8459 if test -n "$lt_prog_cc_shlib"; then
8460 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8461 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8462 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8464 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8465 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8466 lt_cv_prog_cc_can_build_shared=no
8472 # Check to make sure the static flag actually works.
8474 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8475 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8476 if test "${lt_prog_compiler_static_works+set}" = set; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 lt_prog_compiler_static_works=no
8480 save_LDFLAGS="$LDFLAGS"
8481 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8482 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8483 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484 # The linker can only warn and ignore the option if not recognized
8485 # So say no if there are warnings
8486 if test -s conftest.err; then
8487 # Append any errors to the config.log.
8488 cat conftest.err 1>&5
8489 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8490 $SED '/^$/d' conftest.err >conftest.er2
8491 if diff conftest.exp conftest.er2 >/dev/null; then
8492 lt_prog_compiler_static_works=yes
8495 lt_prog_compiler_static_works=yes
8499 LDFLAGS="$save_LDFLAGS"
8502 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8503 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8505 if test x"$lt_prog_compiler_static_works" = xyes; then
8508 lt_prog_compiler_static=
8514 lt_prog_compiler_no_builtin_flag=
8516 if test "$GCC" = yes; then
8517 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8520 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8521 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8522 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 lt_cv_prog_compiler_rtti_exceptions=no
8526 ac_outfile=conftest.$ac_objext
8527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8528 lt_compiler_flag="-fno-rtti -fno-exceptions"
8529 # Insert the option either (1) after the last *FLAGS variable, or
8530 # (2) before a word containing "conftest.", or (3) at the end.
8531 # Note that $ac_compile itself does not contain backslashes and begins
8532 # with a dollar sign (not a hyphen), so the echo should work correctly.
8533 # The option is referenced via a variable to avoid confusing sed.
8534 lt_compile=`echo "$ac_compile" | $SED \
8535 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537 -e 's:$: $lt_compiler_flag:'`
8538 (eval echo "\"\$as_me:8538: $lt_compile\"" >&5)
8539 (eval "$lt_compile" 2>conftest.err)
8541 cat conftest.err >&5
8542 echo "$as_me:8542: \$? = $ac_status" >&5
8543 if (exit $ac_status) && test -s "$ac_outfile"; then
8544 # The compiler can only warn and ignore the option if not recognized
8545 # So say no if there are warnings other than the usual output.
8546 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8547 $SED '/^$/d' conftest.err >conftest.er2
8548 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8549 lt_cv_prog_compiler_rtti_exceptions=yes
8555 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8556 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8558 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8559 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8566 lt_prog_compiler_wl=
8567 lt_prog_compiler_pic=
8568 lt_prog_compiler_static=
8570 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8571 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8573 if test "$GCC" = yes; then
8574 lt_prog_compiler_wl='-Wl,'
8575 lt_prog_compiler_static='-static'
8579 # All AIX code is PIC.
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 now supports IA64 processor
8582 lt_prog_compiler_static='-Bstatic'
8587 # FIXME: we need at least 68020 code to build shared libraries, but
8588 # adding the `-m68020' flag to GCC prevents building anything better,
8590 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8593 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8594 # PIC is the default for these OSes.
8597 mingw* | pw32* | os2*)
8598 # This hack is so that the source file can tell whether it is being
8599 # built for inclusion in a dll (and should export symbols for example).
8600 lt_prog_compiler_pic='-DDLL_EXPORT'
8603 darwin* | rhapsody*)
8604 # PIC is the default on this platform
8605 # Common symbols not allowed in MH_DYLIB files
8606 lt_prog_compiler_pic='-fno-common'
8610 # Just because we use GCC doesn't mean we suddenly get shared libraries
8611 # on systems that don't support them.
8612 lt_prog_compiler_can_build_shared=no
8617 if test -d /usr/nec; then
8618 lt_prog_compiler_pic=-Kconform_pic
8623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8630 lt_prog_compiler_pic='-fPIC'
8636 lt_prog_compiler_pic='-fPIC'
8640 # PORTME Check for flag to pass linker flags through the system compiler.
8643 lt_prog_compiler_wl='-Wl,'
8644 if test "$host_cpu" = ia64; then
8645 # AIX 5 now supports IA64 processor
8646 lt_prog_compiler_static='-Bstatic'
8648 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8652 # PIC is the default on this platform
8653 # Common symbols not allowed in MH_DYLIB files
8654 case $cc_basename in
8656 lt_prog_compiler_pic='-qnocommon'
8657 lt_prog_compiler_wl='-Wl,'
8662 mingw* | pw32* | os2*)
8663 # This hack is so that the source file can tell whether it is being
8664 # built for inclusion in a dll (and should export symbols for example).
8665 lt_prog_compiler_pic='-DDLL_EXPORT'
8668 hpux9* | hpux10* | hpux11*)
8669 lt_prog_compiler_wl='-Wl,'
8670 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8677 lt_prog_compiler_pic='+Z'
8680 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8681 lt_prog_compiler_static='${wl}-a ${wl}archive'
8684 irix5* | irix6* | nonstopux*)
8685 lt_prog_compiler_wl='-Wl,'
8686 # PIC (with -KPIC) is the default.
8687 lt_prog_compiler_static='-non_shared'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8696 case $cc_basename in
8698 lt_prog_compiler_wl='-Wl,'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-static'
8702 pgcc* | pgf77* | pgf90* | pgf95*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fpic'
8707 lt_prog_compiler_static='-Bstatic'
8710 lt_prog_compiler_wl='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static='-non_shared'
8717 osf3* | osf4* | osf5*)
8718 lt_prog_compiler_wl='-Wl,'
8719 # All OSF/1 code is PIC.
8720 lt_prog_compiler_static='-non_shared'
8724 lt_prog_compiler_pic='-Kpic'
8725 lt_prog_compiler_static='-dn'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 case $cc_basename in
8733 lt_prog_compiler_wl='-Qoption ld ';;
8735 lt_prog_compiler_wl='-Wl,';;
8740 lt_prog_compiler_wl='-Qoption ld '
8741 lt_prog_compiler_pic='-PIC'
8742 lt_prog_compiler_static='-Bstatic'
8745 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8746 lt_prog_compiler_wl='-Wl,'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8752 if test -d /usr/nec ;then
8753 lt_prog_compiler_pic='-Kconform_pic'
8754 lt_prog_compiler_static='-Bstatic'
8759 lt_prog_compiler_wl='-Wl,'
8760 lt_prog_compiler_can_build_shared=no
8764 lt_prog_compiler_pic='-pic'
8765 lt_prog_compiler_static='-Bstatic'
8769 lt_prog_compiler_can_build_shared=no
8774 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8775 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8778 # Check to make sure the PIC flag actually works.
8780 if test -n "$lt_prog_compiler_pic"; then
8782 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8784 if test "${lt_prog_compiler_pic_works+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 lt_prog_compiler_pic_works=no
8788 ac_outfile=conftest.$ac_objext
8789 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8790 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791 # Insert the option either (1) after the last *FLAGS variable, or
8792 # (2) before a word containing "conftest.", or (3) at the end.
8793 # Note that $ac_compile itself does not contain backslashes and begins
8794 # with a dollar sign (not a hyphen), so the echo should work correctly.
8795 # The option is referenced via a variable to avoid confusing sed.
8796 lt_compile=`echo "$ac_compile" | $SED \
8797 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799 -e 's:$: $lt_compiler_flag:'`
8800 (eval echo "\"\$as_me:8800: $lt_compile\"" >&5)
8801 (eval "$lt_compile" 2>conftest.err)
8803 cat conftest.err >&5
8804 echo "$as_me:8804: \$? = $ac_status" >&5
8805 if (exit $ac_status) && test -s "$ac_outfile"; then
8806 # The compiler can only warn and ignore the option if not recognized
8807 # So say no if there are warnings other than the usual output.
8808 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8809 $SED '/^$/d' conftest.err >conftest.er2
8810 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8811 lt_prog_compiler_pic_works=yes
8817 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8818 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8820 if test x"$lt_prog_compiler_pic_works" = xyes; then
8821 case $lt_prog_compiler_pic in
8823 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8826 lt_prog_compiler_pic=
8827 lt_prog_compiler_can_build_shared=no
8832 # For platforms which do not support PIC, -DPIC is meaningless:
8834 lt_prog_compiler_pic=
8837 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8841 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8842 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8843 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 lt_cv_prog_compiler_c_o=no
8847 $rm -r conftest 2>/dev/null
8851 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8853 lt_compiler_flag="-o out/conftest2.$ac_objext"
8854 # Insert the option either (1) after the last *FLAGS variable, or
8855 # (2) before a word containing "conftest.", or (3) at the end.
8856 # Note that $ac_compile itself does not contain backslashes and begins
8857 # with a dollar sign (not a hyphen), so the echo should work correctly.
8858 lt_compile=`echo "$ac_compile" | $SED \
8859 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8860 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8861 -e 's:$: $lt_compiler_flag:'`
8862 (eval echo "\"\$as_me:8862: $lt_compile\"" >&5)
8863 (eval "$lt_compile" 2>out/conftest.err)
8865 cat out/conftest.err >&5
8866 echo "$as_me:8866: \$? = $ac_status" >&5
8867 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8869 # The compiler can only warn and ignore the option if not recognized
8870 # So say no if there are warnings
8871 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8872 $SED '/^$/d' out/conftest.err >out/conftest.er2
8873 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8874 lt_cv_prog_compiler_c_o=yes
8879 # SGI C++ compiler will create directory out/ii_files/ for
8880 # template instantiation
8881 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8882 $rm out/* && rmdir out
8888 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8889 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8892 hard_links="nottested"
8893 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8894 # do not overwrite the value of need_locks provided by the user
8895 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8896 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8899 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 ln conftest.a conftest.b 2>&5 || hard_links=no
8902 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8903 { echo "$as_me:$LINENO: result: $hard_links" >&5
8904 echo "${ECHO_T}$hard_links" >&6; }
8905 if test "$hard_links" = no; then
8906 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8907 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8914 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8915 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8918 allow_undefined_flag=
8919 enable_shared_with_static_runtimes=no
8921 archive_expsym_cmds=
8922 old_archive_From_new_cmds=
8923 old_archive_from_expsyms_cmds=
8924 export_dynamic_flag_spec=
8925 whole_archive_flag_spec=
8926 thread_safe_flag_spec=
8927 hardcode_libdir_flag_spec=
8928 hardcode_libdir_flag_spec_ld=
8929 hardcode_libdir_separator=
8932 hardcode_shlibpath_var=unsupported
8933 link_all_deplibs=unknown
8934 hardcode_automatic=no
8937 always_export_symbols=no
8938 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8939 # include_expsyms should be a list of space-separated symbols to be *always*
8940 # included in the symbol list
8942 # exclude_expsyms can be an extended regexp of symbols to exclude
8943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8945 # as well as any symbol that contains `d'.
8946 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8948 # platforms (ab)use it in PIC code, but their linkers get confused if
8949 # the symbol is explicitly referenced. Since portable code cannot
8950 # rely on this symbol name, it's probably fine to never include it in
8951 # preloaded symbol tables.
8952 extract_expsyms_cmds=
8953 # Just being paranoid about ensuring that cc_basename is set.
8954 for cc_temp in $compiler""; do
8956 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8957 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8962 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8965 cygwin* | mingw* | pw32*)
8966 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8967 # When not using gcc, we currently assume that we are using
8968 # Microsoft Visual C++.
8969 if test "$GCC" != yes; then
8979 if test "$with_gnu_ld" = yes; then
8980 # If archive_cmds runs LD, not CC, wlarc should be empty
8983 # Set some defaults for GNU ld with shared library support. These
8984 # are reset later if shared libraries are not supported. Putting them
8985 # here allows them to be overridden if necessary.
8986 runpath_var=LD_RUN_PATH
8987 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8988 export_dynamic_flag_spec='${wl}--export-dynamic'
8989 # ancient GNU ld didn't support --whole-archive et. al.
8990 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8991 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8993 whole_archive_flag_spec=
8995 supports_anon_versioning=no
8996 case `$LD -v 2>/dev/null` in
8997 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8998 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8999 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9000 *\ 2.11.*) ;; # other 2.11 versions
9001 *) supports_anon_versioning=yes ;;
9004 # See if GNU ld supports shared libraries.
9006 aix3* | aix4* | aix5*)
9007 # On AIX/PPC, the GNU linker is very broken
9008 if test "$host_cpu" != ia64; then
9012 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9013 *** to be unable to reliably create shared libraries on AIX.
9014 *** Therefore, libtool is disabling shared libraries support. If you
9015 *** really care for shared libraries, you may want to modify your PATH
9016 *** so that a non-GNU linker is found, and then restart.
9023 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)'
9024 hardcode_libdir_flag_spec='-L$libdir'
9025 hardcode_minus_L=yes
9027 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9028 # that the semantics of dynamic libraries on AmigaOS, at least up
9029 # to version 4, is to share data among multiple programs linked
9030 # with the same dynamic library. Since this doesn't match the
9031 # behavior of shared libraries on other platforms, we can't use
9037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9038 allow_undefined_flag=unsupported
9039 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9040 # support --undefined. This deserves some investigation. FIXME
9041 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 cygwin* | mingw* | pw32*)
9048 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9049 # as there is no search path for DLLs.
9050 hardcode_libdir_flag_spec='-L$libdir'
9051 allow_undefined_flag=unsupported
9052 always_export_symbols=no
9053 enable_shared_with_static_runtimes=yes
9054 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9056 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9058 # If the export-symbols file already is a .def file (1st line
9059 # is EXPORTS), use it as is; otherwise, prepend...
9060 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9061 cp $export_symbols $output_objdir/$soname.def;
9063 echo EXPORTS > $output_objdir/$soname.def;
9064 cat $export_symbols >> $output_objdir/$soname.def;
9066 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9073 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9075 case $cc_basename,$host_cpu in
9076 pgcc*) # Portland Group C compiler
9077 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'
9078 tmp_addflag=' $pic_flag'
9080 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9081 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'
9082 tmp_addflag=' $pic_flag -Mnomain' ;;
9083 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9084 tmp_addflag=' -i_dynamic' ;;
9085 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9086 tmp_addflag=' -i_dynamic -nofor_main' ;;
9087 ifc* | ifort*) # Intel Fortran compiler
9088 tmp_addflag=' -nofor_main' ;;
9090 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9092 if test $supports_anon_versioning = yes; then
9093 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9094 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9095 $echo "local: *; };" >> $output_objdir/$libname.ver~
9096 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9105 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9109 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9114 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9118 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9119 *** create shared libraries on Solaris systems. Therefore, libtool
9120 *** is disabling shared libraries support. We urge you to upgrade GNU
9121 *** binutils to release 2.9.1 or newer. Another option is to modify
9122 *** your PATH or compiler configuration so that the native linker is
9123 *** used, and then restart.
9126 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9127 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9128 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9135 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9138 hardcode_shlibpath_var=no
9142 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9144 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9151 if test "$ld_shlibs" = no; then
9153 hardcode_libdir_flag_spec=
9154 export_dynamic_flag_spec=
9155 whole_archive_flag_spec=
9158 # PORTME fill in a description of your system's linker (not GNU ld)
9161 allow_undefined_flag=unsupported
9162 always_export_symbols=yes
9163 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'
9164 # Note: this linker hardcodes the directories in LIBPATH if there
9165 # are no directories specified by -L.
9166 hardcode_minus_L=yes
9167 if test "$GCC" = yes && test -z "$link_static_flag"; then
9168 # Neither direct hardcoding nor static linking is supported with a
9170 hardcode_direct=unsupported
9175 if test "$host_cpu" = ia64; then
9176 # On IA64, the linker does run time linking by default, so we don't
9177 # have to do anything special.
9178 aix_use_runtimelinking=no
9179 exp_sym_flag='-Bexport'
9182 # If we're using GNU nm, then we don't want the "-C" option.
9183 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9184 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9185 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'
9187 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'
9189 aix_use_runtimelinking=no
9191 # Test if we are trying to use run time linking or normal
9192 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193 # need to do runtime linking.
9194 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9195 for ld_flag in $LDFLAGS; do
9196 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197 aix_use_runtimelinking=yes
9203 exp_sym_flag='-bexport'
9204 no_entry_flag='-bnoentry'
9207 # When large executables or shared objects are built, AIX ld can
9208 # have problems creating the table of contents. If linking a library
9209 # or program results in "error TOC overflow" add -mminimal-toc to
9210 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9211 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9215 hardcode_libdir_separator=':'
9216 link_all_deplibs=yes
9218 if test "$GCC" = yes; then
9219 case $host_os in aix4.[012]|aix4.[012].*)
9220 # We only want to do this on AIX 4.2 and lower, the check
9221 # below for broken collect2 doesn't work under 4.3+
9222 collect2name=`${CC} -print-prog-name=collect2`
9223 if test -f "$collect2name" && \
9224 strings "$collect2name" | grep resolve_lib_name >/dev/null
9226 # We have reworked collect2
9229 # We have old collect2
9230 hardcode_direct=unsupported
9231 # It fails to find uninstalled libraries when the uninstalled
9232 # path is not listed in the libpath. Setting hardcode_minus_L
9233 # to unsupported forces relinking
9234 hardcode_minus_L=yes
9235 hardcode_libdir_flag_spec='-L$libdir'
9236 hardcode_libdir_separator=
9239 shared_flag='-shared'
9240 if test "$aix_use_runtimelinking" = yes; then
9241 shared_flag="$shared_flag "'${wl}-G'
9245 if test "$host_cpu" = ia64; then
9246 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9247 # chokes on -Wl,-G. The following line is correct:
9250 if test "$aix_use_runtimelinking" = yes; then
9251 shared_flag='${wl}-G'
9253 shared_flag='${wl}-bM:SRE'
9258 # It seems that -bexpall does not export symbols beginning with
9259 # underscore (_), so it is better to generate a list of symbols to export.
9260 always_export_symbols=yes
9261 if test "$aix_use_runtimelinking" = yes; then
9262 # Warning - without using the other runtime loading flags (-brtl),
9263 # -berok will link without error, but may produce a broken library.
9264 allow_undefined_flag='-berok'
9265 # Determine the default libpath from the value encoded in an empty executable.
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9281 rm -f conftest.$ac_objext conftest$ac_exeext
9282 if { (ac_try="$ac_link"
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9288 (eval "$ac_link") 2>conftest.er1
9290 grep -v '^ *+' conftest.er1 >conftest.err
9292 cat conftest.err >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); } && {
9295 test -z "$ac_c_werror_flag" ||
9296 test ! -s conftest.err
9297 } && test -s conftest$ac_exeext &&
9298 $as_test_x conftest$ac_exeext; then
9300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9302 # Check for a 64-bit object if we didn't find anything.
9303 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; }
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.$ac_ext >&5
9312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9313 conftest$ac_exeext conftest.$ac_ext
9314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9316 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9317 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"
9319 if test "$host_cpu" = ia64; then
9320 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9321 allow_undefined_flag="-z nodefs"
9322 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"
9324 # Determine the default libpath from the value encoded in an empty executable.
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext &&
9357 $as_test_x conftest$ac_exeext; then
9359 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9361 # Check for a 64-bit object if we didn't find anything.
9362 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; }
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372 conftest$ac_exeext conftest.$ac_ext
9373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9375 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9376 # Warning - without using the other run time loading flags,
9377 # -berok will link without error, but may produce a broken library.
9378 no_undefined_flag=' ${wl}-bernotok'
9379 allow_undefined_flag=' ${wl}-berok'
9380 # -bexpall does not export symbols beginning with underscore (_)
9381 always_export_symbols=yes
9382 # Exported symbols can be pulled into shared objects from archives
9383 whole_archive_flag_spec=' '
9384 archive_cmds_need_lc=yes
9385 # This is similar to how AIX traditionally builds its shared libraries.
9386 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'
9392 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)'
9393 hardcode_libdir_flag_spec='-L$libdir'
9394 hardcode_minus_L=yes
9395 # see comment about different semantics on the GNU ld section
9400 export_dynamic_flag_spec=-rdynamic
9403 cygwin* | mingw* | pw32*)
9404 # When not using gcc, we currently assume that we are using
9405 # Microsoft Visual C++.
9406 # hardcode_libdir_flag_spec is actually meaningless, as there is
9407 # no search path for DLLs.
9408 hardcode_libdir_flag_spec=' '
9409 allow_undefined_flag=unsupported
9410 # Tell ltmain to make .lib files, not .a files.
9412 # Tell ltmain to make .dll files, not .so files.
9414 # FIXME: Setting linknames here is a bad hack.
9415 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9416 # The linker will automatically build a .lib file if we build a DLL.
9417 old_archive_From_new_cmds='true'
9418 # FIXME: Should let the user specify the lib program.
9419 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9420 fix_srcfile_path='`cygpath -w "$srcfile"`'
9421 enable_shared_with_static_runtimes=yes
9424 darwin* | rhapsody*)
9426 rhapsody* | darwin1.[012])
9427 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9430 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9431 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9433 case ${MACOSX_DEPLOYMENT_TARGET} in
9435 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9438 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9444 archive_cmds_need_lc=no
9446 hardcode_automatic=yes
9447 hardcode_shlibpath_var=unsupported
9448 whole_archive_flag_spec=''
9449 link_all_deplibs=yes
9450 if test "$GCC" = yes ; then
9451 output_verbose_link_cmd='echo'
9452 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9453 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9454 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9455 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}'
9456 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}'
9458 case $cc_basename in
9460 output_verbose_link_cmd='echo'
9461 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9462 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9463 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9464 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}'
9465 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}'
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_libdir_flag_spec='-L$libdir'
9477 hardcode_shlibpath_var=no
9484 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9485 # support. Future versions do this automatically, but an explicit c++rt0.o
9486 # does not break anything, and helps significantly (at the cost of a little
9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9490 hardcode_libdir_flag_spec='-R$libdir'
9492 hardcode_shlibpath_var=no
9495 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9497 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_minus_L=yes
9500 hardcode_shlibpath_var=no
9503 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9504 freebsd* | kfreebsd*-gnu | dragonfly*)
9505 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9506 hardcode_libdir_flag_spec='-R$libdir'
9508 hardcode_shlibpath_var=no
9512 if test "$GCC" = yes; then
9513 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'
9515 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'
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_separator=:
9521 # hardcode_minus_L: Not really in the search PATH,
9522 # but as the default location of the library.
9523 hardcode_minus_L=yes
9524 export_dynamic_flag_spec='${wl}-E'
9528 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9531 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9540 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9543 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9547 if test "$with_gnu_ld" = no; then
9550 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9551 hardcode_libdir_flag_spec_ld='+b $libdir'
9552 hardcode_libdir_separator=:
9554 hardcode_shlibpath_var=no
9557 hardcode_libdir_flag_spec='-L$libdir'
9559 hardcode_shlibpath_var=no
9561 # hardcode_minus_L: Not really in the search PATH,
9562 # but as the default location of the library.
9563 hardcode_minus_L=yes
9566 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9567 hardcode_libdir_separator=:
9569 export_dynamic_flag_spec='${wl}-E'
9571 # hardcode_minus_L: Not really in the search PATH,
9572 # but as the default location of the library.
9573 hardcode_minus_L=yes
9579 irix5* | irix6* | nonstopux*)
9580 if test "$GCC" = yes; then
9581 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'
9583 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'
9584 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9586 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9587 hardcode_libdir_separator=:
9588 link_all_deplibs=yes
9592 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9593 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9595 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9597 hardcode_libdir_flag_spec='-R$libdir'
9599 hardcode_shlibpath_var=no
9603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9606 hardcode_libdir_separator=:
9607 hardcode_shlibpath_var=no
9612 hardcode_shlibpath_var=no
9613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9616 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9617 export_dynamic_flag_spec='${wl}-E'
9620 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9621 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_libdir_flag_spec='-R$libdir'
9625 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9633 hardcode_libdir_flag_spec='-L$libdir'
9634 hardcode_minus_L=yes
9635 allow_undefined_flag=unsupported
9636 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'
9637 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9641 if test "$GCC" = yes; then
9642 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9643 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'
9645 allow_undefined_flag=' -expect_unresolved \*'
9646 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'
9648 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9649 hardcode_libdir_separator=:
9652 osf4* | osf5*) # as osf3* with the addition of -msym flag
9653 if test "$GCC" = yes; then
9654 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9655 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'
9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9658 allow_undefined_flag=' -expect_unresolved \*'
9659 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'
9660 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9661 $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'
9663 # Both c and cxx compiler support -rpath directly
9664 hardcode_libdir_flag_spec='-rpath $libdir'
9666 hardcode_libdir_separator=:
9670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9671 hardcode_shlibpath_var=no
9672 export_dynamic_flag_spec='${wl}-Bexport'
9673 runpath_var=LD_RUN_PATH
9674 hardcode_runpath_var=yes
9678 no_undefined_flag=' -z text'
9679 if test "$GCC" = yes; then
9681 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9683 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9687 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9690 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_shlibpath_var=no
9693 solaris2.[0-5] | solaris2.[0-5].*) ;;
9695 # The compiler driver will combine linker options so we
9696 # cannot just pass the convience library names through
9697 # without $wl, iff we do not link with $LD.
9698 # Luckily, gcc supports the same syntax we need for Sun Studio.
9699 # Supported since Solaris 2.6 (maybe 2.5.1?)
9702 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9704 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' ;;
9707 link_all_deplibs=yes
9711 if test "x$host_vendor" = xsequent; then
9712 # Use $CC to link under sequent, because it throws in some extra .o
9713 # files that make .init and .fini sections work.
9714 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9716 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_libdir_flag_spec='-L$libdir'
9720 hardcode_minus_L=yes
9721 hardcode_shlibpath_var=no
9725 case $host_vendor in
9727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9728 hardcode_direct=yes # is this really true???
9731 ## LD is ld it makes a PLAMLIB
9732 ## CC just makes a GrossModule.
9733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9734 reload_cmds='$CC -r -o $output$reload_objs'
9738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9739 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9742 runpath_var='LD_RUN_PATH'
9743 hardcode_shlibpath_var=no
9747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9748 hardcode_shlibpath_var=no
9749 export_dynamic_flag_spec='-Bexport'
9753 if test -d /usr/nec; then
9754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9755 hardcode_shlibpath_var=no
9756 runpath_var=LD_RUN_PATH
9757 hardcode_runpath_var=yes
9763 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_shlibpath_var=no
9767 hardcode_runpath_var=yes
9768 runpath_var=LD_RUN_PATH
9771 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9772 no_undefined_flag='${wl}-z ${wl}text'
9773 if test "$GCC" = yes; then
9774 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9776 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 runpath_var='LD_RUN_PATH'
9779 hardcode_shlibpath_var=no
9783 no_undefined_flag=' -z text'
9784 # $CC -shared without GNU ld will not create a library from C++
9785 # object files and a static libstdc++, better avoid it by now
9786 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9787 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9788 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9789 hardcode_libdir_flag_spec=
9790 hardcode_shlibpath_var=no
9791 runpath_var='LD_RUN_PATH'
9795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_libdir_flag_spec='-L$libdir'
9797 hardcode_shlibpath_var=no
9806 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9807 echo "${ECHO_T}$ld_shlibs" >&6; }
9808 test "$ld_shlibs" = no && can_build_shared=no
9810 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9811 if test "$GCC" = yes; then
9812 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9816 # Do we need to explicitly link libc?
9818 case "x$archive_cmds_need_lc" in
9820 # Assume -lc should be added
9821 archive_cmds_need_lc=yes
9823 if test "$enable_shared" = yes && test "$GCC" = yes; then
9824 case $archive_cmds in
9826 # FIXME: we may have to deal with multi-command sequences.
9829 # Test whether the compiler implicitly links with -lc since on some
9830 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9831 # to ld, don't add -lc before -lgcc.
9832 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9833 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9835 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9838 (eval $ac_compile) 2>&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } 2>conftest.err; then
9844 libobjs=conftest.$ac_objext
9846 wl=$lt_prog_compiler_wl
9852 lt_save_allow_undefined_flag=$allow_undefined_flag
9853 allow_undefined_flag=
9854 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9855 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }
9860 archive_cmds_need_lc=no
9862 archive_cmds_need_lc=yes
9864 allow_undefined_flag=$lt_save_allow_undefined_flag
9866 cat conftest.err 1>&5
9869 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9870 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9877 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9878 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9880 libname_spec='lib$name'
9888 shlibpath_overrides_runpath=unknown
9890 dynamic_linker="$host_os ld.so"
9891 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9892 if test "$GCC" = yes; then
9893 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9894 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9895 # if the path contains ";" then we assume it to be the separator
9896 # otherwise default to the standard path separator (i.e. ":") - it is
9897 # assumed that no part of a normal pathname contains ";" but that should
9898 # okay in the real world where ";" in dirpaths is itself problematic.
9899 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9904 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9906 need_lib_prefix=unknown
9907 hardcode_into_libs=no
9909 # when you set need_version to no, make sure it does not cause -set_version
9910 # flags to be left without arguments
9911 need_version=unknown
9916 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9917 shlibpath_var=LIBPATH
9919 # AIX 3 has no versioning support, so we append a major version to the name.
9920 soname_spec='${libname}${release}${shared_ext}$major'
9927 hardcode_into_libs=yes
9928 if test "$host_cpu" = ia64; then
9929 # AIX 5 supports IA64
9930 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9931 shlibpath_var=LD_LIBRARY_PATH
9933 # With GCC up to 2.95.x, collect2 would create an import file
9934 # for dependence libraries. The import file would start with
9935 # the line `#! .'. This would cause the generated library to
9936 # depend on `.', always an invalid library. This was fixed in
9937 # development snapshots of GCC prior to 3.0.
9939 aix4 | aix4.[01] | aix4.[01].*)
9940 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9942 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9949 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9950 # soname into executable. Probably we can add versioning support to
9951 # collect2, so additional links can be useful in future.
9952 if test "$aix_use_runtimelinking" = yes; then
9953 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9954 # instead of lib<name>.a to let people know that these are not
9955 # typical AIX shared libraries.
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958 # We preserve .a as extension for shared libraries through AIX4.2
9959 # and later when we are not doing run time linking.
9960 library_names_spec='${libname}${release}.a $libname.a'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9963 shlibpath_var=LIBPATH
9968 library_names_spec='$libname.ixlibrary $libname.a'
9969 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9970 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'
9974 library_names_spec='${libname}${shared_ext}'
9975 dynamic_linker="$host_os ld.so"
9976 shlibpath_var=LIBRARY_PATH
9982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983 soname_spec='${libname}${release}${shared_ext}$major'
9984 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9985 shlibpath_var=LD_LIBRARY_PATH
9986 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9987 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9988 # the default ld.so.conf also contains /usr/contrib/lib and
9989 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9990 # libtool to hard-code these into programs
9993 cygwin* | mingw* | pw32*)
9994 version_type=windows
9999 case $GCC,$host_os in
10000 yes,cygwin* | yes,mingw* | yes,pw32*)
10001 library_names_spec='$libname.dll.a'
10002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10003 postinstall_cmds='base_file=`basename \${file}`~
10004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10005 dldir=$destdir/`dirname \$dlpath`~
10006 test -d \$dldir || mkdir -p \$dldir~
10007 $install_prog $dir/$dlname \$dldir/$dlname~
10008 chmod a+x \$dldir/$dlname'
10009 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10010 dlpath=$dir/\$dldll~
10012 shlibpath_overrides_runpath=yes
10016 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10017 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10018 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10021 # MinGW DLLs use traditional 'lib' prefix
10022 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10023 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10024 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10025 # It is most probably a Windows format PATH printed by
10026 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10027 # path with ; separators, and with drive letters. We can handle the
10028 # drive letters (cygwin fileutils understands them), so leave them,
10029 # especially as we might pass files found there to a mingw objdump,
10030 # which wouldn't understand a cygwinified path. Ahh.
10031 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10037 # pw32 DLLs use 'pw' prefix rather than 'lib'
10038 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10047 dynamic_linker='Win32 ld.exe'
10048 # FIXME: first we should search . and the directory the executable is in
10052 darwin* | rhapsody*)
10053 dynamic_linker="$host_os dyld"
10054 version_type=darwin
10057 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10058 soname_spec='${libname}${release}${major}$shared_ext'
10059 shlibpath_overrides_runpath=yes
10060 shlibpath_var=DYLD_LIBRARY_PATH
10061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10062 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10063 if test "$GCC" = yes; then
10064 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"`
10066 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10068 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10076 soname_spec='${libname}${release}${shared_ext}$major'
10077 shlibpath_var=LD_LIBRARY_PATH
10088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 shlibpath_var=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath=no
10092 hardcode_into_libs=yes
10093 dynamic_linker='GNU ld.so'
10096 freebsd* | dragonfly*)
10097 # DragonFly does not have aout. When/if they implement a new
10098 # versioning mechanism, adjust this.
10099 if test -x /usr/bin/objformat; then
10100 objformat=`/usr/bin/objformat`
10103 freebsd[123]*) objformat=aout ;;
10104 *) objformat=elf ;;
10107 version_type=freebsd-$objformat
10108 case $version_type in
10110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10115 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10119 shlibpath_var=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath=yes
10124 freebsd3.[01]* | freebsdelf3.[01]*)
10125 shlibpath_overrides_runpath=yes
10126 hardcode_into_libs=yes
10129 shlibpath_overrides_runpath=no
10130 hardcode_into_libs=yes
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10140 soname_spec='${libname}${release}${shared_ext}$major'
10141 shlibpath_var=LD_LIBRARY_PATH
10142 hardcode_into_libs=yes
10145 hpux9* | hpux10* | hpux11*)
10146 # Give a soname corresponding to the major version so that dld.sl refuses to
10147 # link against other versions.
10154 hardcode_into_libs=yes
10155 dynamic_linker="$host_os dld.so"
10156 shlibpath_var=LD_LIBRARY_PATH
10157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 if test "X$HPUX_IA64_MODE" = X32; then
10161 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10163 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10165 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10169 hardcode_into_libs=yes
10170 dynamic_linker="$host_os dld.sl"
10171 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10172 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10174 soname_spec='${libname}${release}${shared_ext}$major'
10175 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10180 dynamic_linker="$host_os dld.sl"
10181 shlibpath_var=SHLIB_PATH
10182 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184 soname_spec='${libname}${release}${shared_ext}$major'
10187 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10188 postinstall_cmds='chmod 555 $lib'
10191 irix5* | irix6* | nonstopux*)
10193 nonstopux*) version_type=nonstopux ;;
10195 if test "$lt_cv_prog_gnu_ld" = yes; then
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10206 irix5* | nonstopux*)
10207 libsuff= shlibsuff=
10210 case $LD in # libtool.m4 will add one of these switches to LD
10211 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10212 libsuff= shlibsuff= libmagic=32-bit;;
10213 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10214 libsuff=32 shlibsuff=N32 libmagic=N32;;
10215 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10216 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10217 *) libsuff= shlibsuff= libmagic=never-match;;
10221 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10222 shlibpath_overrides_runpath=no
10223 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10224 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10225 hardcode_into_libs=yes
10228 # No shared lib support for Linux oldld, aout, or coff.
10229 linux*oldld* | linux*aout* | linux*coff*)
10233 # This must be Linux ELF.
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 soname_spec='${libname}${release}${shared_ext}$major'
10240 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10241 shlibpath_var=LD_LIBRARY_PATH
10242 shlibpath_overrides_runpath=no
10243 # This implies no fast_install, which is unacceptable.
10244 # Some rework will be needed to allow for fast_install
10245 # before this can be enabled.
10246 hardcode_into_libs=yes
10248 # Append ld.so.conf contents to the search path
10249 if test -f /etc/ld.so.conf; then
10250 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' ' '`
10251 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10254 # We used to test for /lib/ld.so.1 and disable shared libraries on
10255 # powerpc, because MkLinux only supported shared libraries with the
10256 # GNU dynamic linker. Since this was broken with cross compilers,
10257 # most powerpc-linux boxes support dynamic linking these days and
10258 # people can always --disable-shared, the test was removed, and we
10259 # assume the GNU/Linux dynamic linker is in use.
10260 dynamic_linker='GNU/Linux ld.so'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10268 soname_spec='${libname}${release}${shared_ext}$major'
10269 shlibpath_var=LD_LIBRARY_PATH
10270 shlibpath_overrides_runpath=no
10271 hardcode_into_libs=yes
10272 dynamic_linker='GNU ld.so'
10279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10281 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10282 dynamic_linker='NetBSD (a.out) ld.so'
10284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10285 soname_spec='${libname}${release}${shared_ext}$major'
10286 dynamic_linker='NetBSD ld.elf_so'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 hardcode_into_libs=yes
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 shlibpath_var=LD_LIBRARY_PATH
10297 shlibpath_overrides_runpath=yes
10304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305 soname_spec='${libname}${release}${shared_ext}$major'
10306 shlibpath_var=LD_LIBRARY_PATH
10307 shlibpath_overrides_runpath=yes
10313 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10315 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10316 *) need_version=no ;;
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10319 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10323 openbsd2.[89] | openbsd2.[89].*)
10324 shlibpath_overrides_runpath=no
10327 shlibpath_overrides_runpath=yes
10331 shlibpath_overrides_runpath=yes
10336 libname_spec='$name'
10339 library_names_spec='$libname${shared_ext} $libname.a'
10340 dynamic_linker='OS/2 ld.exe'
10341 shlibpath_var=LIBPATH
10344 osf3* | osf4* | osf5*)
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 shlibpath_var=LD_LIBRARY_PATH
10351 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10352 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367 soname_spec='${libname}${release}${shared_ext}$major'
10368 shlibpath_var=LD_LIBRARY_PATH
10369 shlibpath_overrides_runpath=yes
10370 hardcode_into_libs=yes
10371 # ldd complains unless libraries are executable
10372 postinstall_cmds='chmod +x $lib'
10377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=yes
10381 if test "$with_gnu_ld" = yes; then
10387 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 shlibpath_var=LD_LIBRARY_PATH
10392 case $host_vendor in
10394 shlibpath_overrides_runpath=no
10396 export_dynamic_flag_spec='${wl}-Blargedynsym'
10397 runpath_var=LD_RUN_PATH
10405 shlibpath_overrides_runpath=no
10406 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10412 if test -d /usr/nec ;then
10414 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10415 soname_spec='$libname${shared_ext}.$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 shlibpath_var=LD_LIBRARY_PATH
10431 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10432 echo "${ECHO_T}$dynamic_linker" >&6; }
10433 test "$dynamic_linker" = no && can_build_shared=no
10435 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10436 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10438 if test -n "$hardcode_libdir_flag_spec" || \
10439 test -n "$runpath_var" || \
10440 test "X$hardcode_automatic" = "Xyes" ; then
10442 # We can hardcode non-existant directories.
10443 if test "$hardcode_direct" != no &&
10444 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10445 # have to relink, otherwise we might link with an installed library
10446 # when we should be linking with a yet-to-be-installed one
10447 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10448 test "$hardcode_minus_L" != no; then
10449 # Linking always hardcodes the temporary library directory.
10450 hardcode_action=relink
10452 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10453 hardcode_action=immediate
10456 # We cannot hardcode anything, or else we can only hardcode existing
10458 hardcode_action=unsupported
10460 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10461 echo "${ECHO_T}$hardcode_action" >&6; }
10463 if test "$hardcode_action" = relink; then
10464 # Fast installation is not supported
10465 enable_fast_install=no
10466 elif test "$shlibpath_overrides_runpath" = yes ||
10467 test "$enable_shared" = no; then
10468 # Fast installation is not necessary
10469 enable_fast_install=needless
10474 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10475 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10476 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10477 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10478 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10479 { echo "$as_me:$LINENO: result: yes" >&5
10480 echo "${ECHO_T}yes" >&6; }
10482 # FIXME - insert some real tests, host_os isn't really good enough
10485 if test -n "$STRIP" ; then
10486 striplib="$STRIP -x"
10487 { echo "$as_me:$LINENO: result: yes" >&5
10488 echo "${ECHO_T}yes" >&6; }
10490 { echo "$as_me:$LINENO: result: no" >&5
10491 echo "${ECHO_T}no" >&6; }
10495 { echo "$as_me:$LINENO: result: no" >&5
10496 echo "${ECHO_T}no" >&6; }
10501 if test "x$enable_dlopen" != xyes; then
10502 enable_dlopen=unknown
10503 enable_dlopen_self=unknown
10504 enable_dlopen_self_static=unknown
10511 lt_cv_dlopen="load_add_on"
10513 lt_cv_dlopen_self=yes
10517 lt_cv_dlopen="LoadLibrary"
10522 lt_cv_dlopen="dlopen"
10527 # if libdl is installed we need to link against it
10528 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10529 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10530 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 ac_check_lib_save_LIBS=$LIBS
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 /* Override any GCC internal prototype to avoid an error.
10543 Use char because int might match the return type of a GCC
10544 builtin and then its argument prototype would still apply. */
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (ac_try="$ac_link"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_link") 2>conftest.er1
10566 grep -v '^ *+' conftest.er1 >conftest.err
10568 cat conftest.err >&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } && {
10571 test -z "$ac_c_werror_flag" ||
10572 test ! -s conftest.err
10573 } && test -s conftest$ac_exeext &&
10574 $as_test_x conftest$ac_exeext; then
10575 ac_cv_lib_dl_dlopen=yes
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 ac_cv_lib_dl_dlopen=no
10583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10589 if test $ac_cv_lib_dl_dlopen = yes; then
10590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10593 lt_cv_dlopen="dyld"
10595 lt_cv_dlopen_self=yes
10602 { echo "$as_me:$LINENO: checking for shl_load" >&5
10603 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10604 if test "${ac_cv_func_shl_load+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10615 #define shl_load innocuous_shl_load
10617 /* System header to define __stub macros and hopefully few prototypes,
10618 which can conflict with char shl_load (); below.
10619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10620 <limits.h> exists even on freestanding compilers. */
10623 # include <limits.h>
10625 # include <assert.h>
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10637 /* The GNU C library defines this for functions which it implements
10638 to always fail with ENOSYS. Some functions are actually named
10639 something starting with __ and the normal name is an alias. */
10640 #if defined __stub_shl_load || defined __stub___shl_load
10647 return shl_load ();
10652 rm -f conftest.$ac_objext conftest$ac_exeext
10653 if { (ac_try="$ac_link"
10654 case "(($ac_try" in
10655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10656 *) ac_try_echo=$ac_try;;
10658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10659 (eval "$ac_link") 2>conftest.er1
10661 grep -v '^ *+' conftest.er1 >conftest.err
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
10668 } && test -s conftest$ac_exeext &&
10669 $as_test_x conftest$ac_exeext; then
10670 ac_cv_func_shl_load=yes
10672 echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10675 ac_cv_func_shl_load=no
10678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10679 conftest$ac_exeext conftest.$ac_ext
10681 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10682 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10683 if test $ac_cv_func_shl_load = yes; then
10684 lt_cv_dlopen="shl_load"
10686 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10687 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10688 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 ac_check_lib_save_LIBS=$LIBS
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10710 return shl_load ();
10715 rm -f conftest.$ac_objext conftest$ac_exeext
10716 if { (ac_try="$ac_link"
10717 case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_link") 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } && {
10729 test -z "$ac_c_werror_flag" ||
10730 test ! -s conftest.err
10731 } && test -s conftest$ac_exeext &&
10732 $as_test_x conftest$ac_exeext; then
10733 ac_cv_lib_dld_shl_load=yes
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_cv_lib_dld_shl_load=no
10741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LIBS=$ac_check_lib_save_LIBS
10745 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10746 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10747 if test $ac_cv_lib_dld_shl_load = yes; then
10748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10750 { echo "$as_me:$LINENO: checking for dlopen" >&5
10751 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10752 if test "${ac_cv_func_dlopen+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10763 #define dlopen innocuous_dlopen
10765 /* System header to define __stub macros and hopefully few prototypes,
10766 which can conflict with char dlopen (); below.
10767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10768 <limits.h> exists even on freestanding compilers. */
10771 # include <limits.h>
10773 # include <assert.h>
10778 /* Override any GCC internal prototype to avoid an error.
10779 Use char because int might match the return type of a GCC
10780 builtin and then its argument prototype would still apply. */
10785 /* The GNU C library defines this for functions which it implements
10786 to always fail with ENOSYS. Some functions are actually named
10787 something starting with __ and the normal name is an alias. */
10788 #if defined __stub_dlopen || defined __stub___dlopen
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804 *) ac_try_echo=$ac_try;;
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807 (eval "$ac_link") 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } && {
10814 test -z "$ac_c_werror_flag" ||
10815 test ! -s conftest.err
10816 } && test -s conftest$ac_exeext &&
10817 $as_test_x conftest$ac_exeext; then
10818 ac_cv_func_dlopen=yes
10820 echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10823 ac_cv_func_dlopen=no
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827 conftest$ac_exeext conftest.$ac_ext
10829 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10830 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10831 if test $ac_cv_func_dlopen = yes; then
10832 lt_cv_dlopen="dlopen"
10834 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10835 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10836 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10837 echo $ECHO_N "(cached) $ECHO_C" >&6
10839 ac_check_lib_save_LIBS=$LIBS
10841 cat >conftest.$ac_ext <<_ACEOF
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10848 /* Override any GCC internal prototype to avoid an error.
10849 Use char because int might match the return type of a GCC
10850 builtin and then its argument prototype would still apply. */
10863 rm -f conftest.$ac_objext conftest$ac_exeext
10864 if { (ac_try="$ac_link"
10865 case "(($ac_try" in
10866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10867 *) ac_try_echo=$ac_try;;
10869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10870 (eval "$ac_link") 2>conftest.er1
10872 grep -v '^ *+' conftest.er1 >conftest.err
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } && {
10877 test -z "$ac_c_werror_flag" ||
10878 test ! -s conftest.err
10879 } && test -s conftest$ac_exeext &&
10880 $as_test_x conftest$ac_exeext; then
10881 ac_cv_lib_dl_dlopen=yes
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 ac_cv_lib_dl_dlopen=no
10889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LIBS=$ac_check_lib_save_LIBS
10893 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10894 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10895 if test $ac_cv_lib_dl_dlopen = yes; then
10896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10898 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && {
10941 test -z "$ac_c_werror_flag" ||
10942 test ! -s conftest.err
10943 } && test -s conftest$ac_exeext &&
10944 $as_test_x conftest$ac_exeext; then
10945 ac_cv_lib_svld_dlopen=yes
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_lib_svld_dlopen=no
10953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10954 conftest$ac_exeext conftest.$ac_ext
10955 LIBS=$ac_check_lib_save_LIBS
10957 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10958 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10959 if test $ac_cv_lib_svld_dlopen = yes; then
10960 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10962 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10963 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10964 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10965 echo $ECHO_N "(cached) $ECHO_C" >&6
10967 ac_check_lib_save_LIBS=$LIBS
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10976 /* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10986 return dld_link ();
10991 rm -f conftest.$ac_objext conftest$ac_exeext
10992 if { (ac_try="$ac_link"
10993 case "(($ac_try" in
10994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995 *) ac_try_echo=$ac_try;;
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998 (eval "$ac_link") 2>conftest.er1
11000 grep -v '^ *+' conftest.er1 >conftest.err
11002 cat conftest.err >&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } && {
11005 test -z "$ac_c_werror_flag" ||
11006 test ! -s conftest.err
11007 } && test -s conftest$ac_exeext &&
11008 $as_test_x conftest$ac_exeext; then
11009 ac_cv_lib_dld_dld_link=yes
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11014 ac_cv_lib_dld_dld_link=no
11017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LIBS=$ac_check_lib_save_LIBS
11021 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11022 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11023 if test $ac_cv_lib_dld_dld_link = yes; then
11024 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11045 if test "x$lt_cv_dlopen" != xno; then
11051 case $lt_cv_dlopen in
11053 save_CPPFLAGS="$CPPFLAGS"
11054 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11056 save_LDFLAGS="$LDFLAGS"
11057 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11060 LIBS="$lt_cv_dlopen_libs $LIBS"
11062 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11063 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11064 if test "${lt_cv_dlopen_self+set}" = set; then
11065 echo $ECHO_N "(cached) $ECHO_C" >&6
11067 if test "$cross_compiling" = yes; then :
11068 lt_cv_dlopen_self=cross
11070 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11071 lt_status=$lt_dlunknown
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11073 "configure"
11074 #include "confdefs.h"
11083 # define LT_DLGLOBAL RTLD_GLOBAL
11086 # define LT_DLGLOBAL DL_GLOBAL
11088 # define LT_DLGLOBAL 0
11092 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11093 find out it does not work in some platform. */
11094 #ifndef LT_DLLAZY_OR_NOW
11096 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11099 # define LT_DLLAZY_OR_NOW DL_LAZY
11102 # define LT_DLLAZY_OR_NOW RTLD_NOW
11105 # define LT_DLLAZY_OR_NOW DL_NOW
11107 # define LT_DLLAZY_OR_NOW 0
11115 extern "C" void exit (int);
11118 void fnord() { int i=42;}
11121 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11122 int status = $lt_dlunknown;
11126 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11127 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11128 /* dlclose (self); */
11134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11135 (eval $ac_link) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11139 (./conftest; exit; ) >&5 2>/dev/null
11141 case x$lt_status in
11142 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11143 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11144 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11147 # compilation failed
11148 lt_cv_dlopen_self=no
11155 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11156 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11158 if test "x$lt_cv_dlopen_self" = xyes; then
11159 LDFLAGS="$LDFLAGS $link_static_flag"
11160 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11161 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11162 if test "${lt_cv_dlopen_self_static+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11165 if test "$cross_compiling" = yes; then :
11166 lt_cv_dlopen_self_static=cross
11168 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11169 lt_status=$lt_dlunknown
11170 cat > conftest.$ac_ext <<EOF
11171 #line 11171 "configure"
11172 #include "confdefs.h"
11181 # define LT_DLGLOBAL RTLD_GLOBAL
11184 # define LT_DLGLOBAL DL_GLOBAL
11186 # define LT_DLGLOBAL 0
11190 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11191 find out it does not work in some platform. */
11192 #ifndef LT_DLLAZY_OR_NOW
11194 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11197 # define LT_DLLAZY_OR_NOW DL_LAZY
11200 # define LT_DLLAZY_OR_NOW RTLD_NOW
11203 # define LT_DLLAZY_OR_NOW DL_NOW
11205 # define LT_DLLAZY_OR_NOW 0
11213 extern "C" void exit (int);
11216 void fnord() { int i=42;}
11219 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11220 int status = $lt_dlunknown;
11224 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11225 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11226 /* dlclose (self); */
11232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11233 (eval $ac_link) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11237 (./conftest; exit; ) >&5 2>/dev/null
11239 case x$lt_status in
11240 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11241 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11242 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11245 # compilation failed
11246 lt_cv_dlopen_self_static=no
11253 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11254 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11257 CPPFLAGS="$save_CPPFLAGS"
11258 LDFLAGS="$save_LDFLAGS"
11263 case $lt_cv_dlopen_self in
11264 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11265 *) enable_dlopen_self=unknown ;;
11268 case $lt_cv_dlopen_self_static in
11269 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11270 *) enable_dlopen_self_static=unknown ;;
11275 # Report which librarie types wil actually be built
11276 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11277 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11278 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11279 echo "${ECHO_T}$can_build_shared" >&6; }
11281 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11282 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11283 test "$can_build_shared" = "no" && enable_shared=no
11285 # On AIX, shared libraries and static libraries use the same namespace, and
11286 # are all built from PIC.
11289 test "$enable_shared" = yes && enable_static=no
11290 if test -n "$RANLIB"; then
11291 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11292 postinstall_cmds='$RANLIB $lib'
11297 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11298 test "$enable_shared" = yes && enable_static=no
11302 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11303 echo "${ECHO_T}$enable_shared" >&6; }
11305 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11306 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11307 # Make sure either enable_shared or enable_static is yes.
11308 test "$enable_shared" = yes || enable_static=yes
11309 { echo "$as_me:$LINENO: result: $enable_static" >&5
11310 echo "${ECHO_T}$enable_static" >&6; }
11312 # The else clause should only fire when bootstrapping the
11313 # libtool distribution, otherwise you forgot to ship ltmain.sh
11314 # with your package, and you will get complaints that there are
11315 # no rules to generate ltmain.sh.
11316 if test -f "$ltmain"; then
11317 # See if we are running on zsh, and set the options which allow our commands through
11318 # without removal of \ escapes.
11319 if test -n "${ZSH_VERSION+set}" ; then
11320 setopt NO_GLOB_SUBST
11322 # Now quote all the things that may contain metacharacters while being
11323 # careful not to overquote the AC_SUBSTed values. We take copies of the
11324 # variables and quote the copies for generation of the libtool script.
11325 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11327 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11328 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11329 deplibs_check_method reload_flag reload_cmds need_locks \
11330 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11331 lt_cv_sys_global_symbol_to_c_name_address \
11332 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11333 old_postinstall_cmds old_postuninstall_cmds \
11337 lt_prog_compiler_wl \
11338 lt_prog_compiler_pic \
11339 lt_prog_compiler_static \
11340 lt_prog_compiler_no_builtin_flag \
11341 export_dynamic_flag_spec \
11342 thread_safe_flag_spec \
11343 whole_archive_flag_spec \
11344 enable_shared_with_static_runtimes \
11346 old_archive_from_new_cmds \
11351 compiler_lib_search_path \
11353 archive_expsym_cmds \
11355 postuninstall_cmds \
11356 old_archive_from_expsyms_cmds \
11357 allow_undefined_flag \
11358 no_undefined_flag \
11359 export_symbols_cmds \
11360 hardcode_libdir_flag_spec \
11361 hardcode_libdir_flag_spec_ld \
11362 hardcode_libdir_separator \
11363 hardcode_automatic \
11365 module_expsym_cmds \
11366 lt_cv_prog_compiler_c_o \
11368 include_expsyms; do
11371 old_archive_cmds | \
11372 old_archive_from_new_cmds | \
11374 archive_expsym_cmds | \
11376 module_expsym_cmds | \
11377 old_archive_from_expsyms_cmds | \
11378 export_symbols_cmds | \
11379 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11380 postinstall_cmds | postuninstall_cmds | \
11381 old_postinstall_cmds | old_postuninstall_cmds | \
11382 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11383 # Double-quote double-evaled strings.
11384 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11393 *'\$0 --fallback-echo"')
11394 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11398 cfgfile="${ofile}T"
11399 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11401 { echo "$as_me:$LINENO: creating $ofile" >&5
11402 echo "$as_me: creating $ofile" >&6;}
11404 cat <<__EOF__ >> "$cfgfile"
11407 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11408 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11409 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11411 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11412 # Free Software Foundation, Inc.
11414 # This file is part of GNU Libtool:
11415 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11417 # This program is free software; you can redistribute it and/or modify
11418 # it under the terms of the GNU General Public License as published by
11419 # the Free Software Foundation; either version 2 of the License, or
11420 # (at your option) any later version.
11422 # This program is distributed in the hope that it will be useful, but
11423 # WITHOUT ANY WARRANTY; without even the implied warranty of
11424 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11425 # General Public License for more details.
11427 # You should have received a copy of the GNU General Public License
11428 # along with this program; if not, write to the Free Software
11429 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11431 # As a special exception to the GNU General Public License, if you
11432 # distribute this file as part of a program that contains a
11433 # configuration script generated by Autoconf, you may include it under
11434 # the same distribution terms that you use for the rest of that program.
11436 # A sed program that does not truncate output.
11439 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11440 Xsed="$SED -e 1s/^X//"
11442 # The HP-UX ksh and POSIX shell print the target directory to stdout
11443 # if CDPATH is set.
11444 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11446 # The names of the tagged configurations supported by this script.
11449 # ### BEGIN LIBTOOL CONFIG
11451 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11453 # Shell to use when invoking shell scripts.
11456 # Whether or not to build shared libraries.
11457 build_libtool_libs=$enable_shared
11459 # Whether or not to build static libraries.
11460 build_old_libs=$enable_static
11462 # Whether or not to add -lc for building shared libraries.
11463 build_libtool_need_lc=$archive_cmds_need_lc
11465 # Whether or not to disallow shared libs when runtime libs are static
11466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11468 # Whether or not to optimize for fast installation.
11469 fast_install=$enable_fast_install
11472 host_alias=$host_alias
11476 # The build system.
11477 build_alias=$build_alias
11481 # An echo program that does not interpret backslashes.
11486 AR_FLAGS=$lt_AR_FLAGS
11491 # A language-specific compiler.
11494 # Is the compiler the GNU C compiler?
11500 # The linker used to build libraries.
11503 # Whether we need hard or soft links.
11506 # A BSD-compatible nm program.
11509 # A symbol stripping program
11512 # Used to examine libraries when file_magic_cmd begins "file"
11513 MAGIC_CMD=$MAGIC_CMD
11515 # Used on cygwin: DLL creation program.
11518 # Used on cygwin: object dumper.
11521 # Used on cygwin: assembler.
11524 # The name of the directory that contains temporary libtool files.
11527 # How to create reloadable object files.
11528 reload_flag=$lt_reload_flag
11529 reload_cmds=$lt_reload_cmds
11531 # How to pass a linker flag through the compiler.
11532 wl=$lt_lt_prog_compiler_wl
11534 # Object file suffix (normally "o").
11535 objext="$ac_objext"
11537 # Old archive suffix (normally "a").
11540 # Shared library suffix (normally ".so").
11541 shrext_cmds='$shrext_cmds'
11543 # Executable file suffix (normally "").
11546 # Additional compiler flags for building library objects.
11547 pic_flag=$lt_lt_prog_compiler_pic
11550 # What is the maximum length of a command?
11551 max_cmd_len=$lt_cv_sys_max_cmd_len
11553 # Does compiler simultaneously support -c and -o options?
11554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11556 # Must we lock files when doing compilation?
11557 need_locks=$lt_need_locks
11559 # Do we need the lib prefix for modules?
11560 need_lib_prefix=$need_lib_prefix
11562 # Do we need a version for libraries?
11563 need_version=$need_version
11565 # Whether dlopen is supported.
11566 dlopen_support=$enable_dlopen
11568 # Whether dlopen of programs is supported.
11569 dlopen_self=$enable_dlopen_self
11571 # Whether dlopen of statically linked programs is supported.
11572 dlopen_self_static=$enable_dlopen_self_static
11574 # Compiler flag to prevent dynamic linking.
11575 link_static_flag=$lt_lt_prog_compiler_static
11577 # Compiler flag to turn off builtin functions.
11578 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11580 # Compiler flag to allow reflexive dlopens.
11581 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11583 # Compiler flag to generate shared objects directly from archives.
11584 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11586 # Compiler flag to generate thread-safe objects.
11587 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11589 # Library versioning type.
11590 version_type=$version_type
11592 # Format of library name prefix.
11593 libname_spec=$lt_libname_spec
11595 # List of archive names. First name is the real one, the rest are links.
11596 # The last name is the one that the linker finds with -lNAME.
11597 library_names_spec=$lt_library_names_spec
11599 # The coded name of the library, if different from the real name.
11600 soname_spec=$lt_soname_spec
11602 # Commands used to build and install an old-style archive.
11604 old_archive_cmds=$lt_old_archive_cmds
11605 old_postinstall_cmds=$lt_old_postinstall_cmds
11606 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11608 # Create an old-style archive from a shared archive.
11609 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11611 # Create a temporary old-style archive to link instead of a shared archive.
11612 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11614 # Commands used to build and install a shared archive.
11615 archive_cmds=$lt_archive_cmds
11616 archive_expsym_cmds=$lt_archive_expsym_cmds
11617 postinstall_cmds=$lt_postinstall_cmds
11618 postuninstall_cmds=$lt_postuninstall_cmds
11620 # Commands used to build a loadable module (assumed same as above if empty)
11621 module_cmds=$lt_module_cmds
11622 module_expsym_cmds=$lt_module_expsym_cmds
11624 # Commands to strip libraries.
11625 old_striplib=$lt_old_striplib
11626 striplib=$lt_striplib
11628 # Dependencies to place before the objects being linked to create a
11630 predep_objects=$lt_predep_objects
11632 # Dependencies to place after the objects being linked to create a
11634 postdep_objects=$lt_postdep_objects
11636 # Dependencies to place before the objects being linked to create a
11638 predeps=$lt_predeps
11640 # Dependencies to place after the objects being linked to create a
11642 postdeps=$lt_postdeps
11644 # The library search path used internally by the compiler when linking
11645 # a shared library.
11646 compiler_lib_search_path=$lt_compiler_lib_search_path
11648 # Method to check whether dependent libraries are shared objects.
11649 deplibs_check_method=$lt_deplibs_check_method
11651 # Command to use when deplibs_check_method == file_magic.
11652 file_magic_cmd=$lt_file_magic_cmd
11654 # Flag that allows shared libraries with undefined symbols to be built.
11655 allow_undefined_flag=$lt_allow_undefined_flag
11657 # Flag that forces no undefined symbols.
11658 no_undefined_flag=$lt_no_undefined_flag
11660 # Commands used to finish a libtool library installation in a directory.
11661 finish_cmds=$lt_finish_cmds
11663 # Same as above, but a single script fragment to be evaled but not shown.
11664 finish_eval=$lt_finish_eval
11666 # Take the output of nm and produce a listing of raw symbols and C names.
11667 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11669 # Transform the output of nm in a proper C declaration
11670 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11672 # Transform the output of nm in a C name address pair
11673 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11675 # This is the shared library runtime path variable.
11676 runpath_var=$runpath_var
11678 # This is the shared library path variable.
11679 shlibpath_var=$shlibpath_var
11681 # Is shlibpath searched before the hard-coded library search path?
11682 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11684 # How to hardcode a shared library path into an executable.
11685 hardcode_action=$hardcode_action
11687 # Whether we should hardcode library paths into libraries.
11688 hardcode_into_libs=$hardcode_into_libs
11690 # Flag to hardcode \$libdir into a binary during linking.
11691 # This must work even if \$libdir does not exist.
11692 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11694 # If ld is used when linking, flag to hardcode \$libdir into
11695 # a binary during linking. This must work even if \$libdir does
11697 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11699 # Whether we need a single -rpath flag with a separated argument.
11700 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11702 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_direct=$hardcode_direct
11706 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11707 # resulting binary.
11708 hardcode_minus_L=$hardcode_minus_L
11710 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11711 # the resulting binary.
11712 hardcode_shlibpath_var=$hardcode_shlibpath_var
11714 # Set to yes if building a shared library automatically hardcodes DIR into the library
11715 # and all subsequent libraries and executables linked against it.
11716 hardcode_automatic=$hardcode_automatic
11718 # Variables whose values should be saved in libtool wrapper scripts and
11719 # restored at relink time.
11720 variables_saved_for_relink="$variables_saved_for_relink"
11722 # Whether libtool must link a program against all its dependency libraries.
11723 link_all_deplibs=$link_all_deplibs
11725 # Compile-time system search path for libraries
11726 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11728 # Run-time system search path for libraries
11729 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11731 # Fix the shell variable \$srcfile for the compiler.
11732 fix_srcfile_path="$fix_srcfile_path"
11734 # Set to yes if exported symbols are required.
11735 always_export_symbols=$always_export_symbols
11737 # The commands to list exported symbols.
11738 export_symbols_cmds=$lt_export_symbols_cmds
11740 # The commands to extract the exported symbol list from a shared archive.
11741 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11743 # Symbols that should not be listed in the preloaded symbols.
11744 exclude_expsyms=$lt_exclude_expsyms
11746 # Symbols that must always be exported.
11747 include_expsyms=$lt_include_expsyms
11749 # ### END LIBTOOL CONFIG
11756 cat <<\EOF >> "$cfgfile"
11758 # AIX sometimes has problems with the GCC collect2 program. For some
11759 # reason, if we set the COLLECT_NAMES environment variable, the problems
11760 # vanish in a puff of smoke.
11761 if test "X${COLLECT_NAMES+set}" != Xset; then
11763 export COLLECT_NAMES
11769 # We use sed instead of cat because bash on DJGPP gets confused if
11770 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11771 # text mode, it properly converts lines to CR/LF. This bash problem
11772 # is reportedly fixed, but why not run on old versions too?
11773 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11775 mv -f "$cfgfile" "$ofile" || \
11776 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11780 # If there is no Makefile yet, we rely on a make rule to execute
11781 # `config.status --recheck' to rerun these tests and create the
11782 # libtool script then.
11783 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11784 if test -f "$ltmain_in"; then
11785 test -f Makefile && make "$ltmain"
11791 ac_cpp='$CPP $CPPFLAGS'
11792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11799 # Check whether --with-tags was given.
11800 if test "${with_tags+set}" = set; then
11801 withval=$with_tags; tagnames="$withval"
11805 if test -f "$ltmain" && test -n "$tagnames"; then
11806 if test ! -f "${ofile}"; then
11807 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11808 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11811 if test -z "$LTCC"; then
11812 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11813 if test -z "$LTCC"; then
11814 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11815 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11817 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11818 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11822 # Extract list of available tagged configurations in $ofile.
11823 # Note that this assumes the entire list is on one line.
11824 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11826 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11827 for tagname in $tagnames; do
11829 # Check whether tagname contains only valid characters
11830 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11832 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11833 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11834 { (exit 1); exit 1; }; }
11838 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11840 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11841 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11842 { (exit 1); exit 1; }; }
11845 # Update the list of available tags.
11846 if test -n "$tagname"; then
11847 echo appending configuration tag \"$tagname\" to $ofile
11851 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11852 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11853 (test "X$CXX" != "Xg++"))) ; then
11861 if test -n "$F77" && test "X$F77" != "Xno"; then
11869 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11879 # Source file extension for RC test sources.
11882 # Object file extension for compiled RC test sources.
11886 # Code to be used in simple compile tests
11887 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11889 # Code to be used in simple link tests
11890 lt_simple_link_test_code="$lt_simple_compile_test_code"
11892 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11894 # If no C compiler was specified, use CC.
11897 # Allow CC to be a program name with arguments.
11901 # save warnings/boilerplate of simple test code
11902 ac_outfile=conftest.$ac_objext
11903 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11904 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11905 _lt_compiler_boilerplate=`cat conftest.err`
11908 ac_outfile=conftest.$ac_objext
11909 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11910 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11911 _lt_linker_boilerplate=`cat conftest.err`
11915 # Allow CC to be a program name with arguments.
11920 for cc_temp in $compiler""; do
11922 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11923 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11928 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11930 lt_cv_prog_compiler_c_o_RC=yes
11932 # The else clause should only fire when bootstrapping the
11933 # libtool distribution, otherwise you forgot to ship ltmain.sh
11934 # with your package, and you will get complaints that there are
11935 # no rules to generate ltmain.sh.
11936 if test -f "$ltmain"; then
11937 # See if we are running on zsh, and set the options which allow our commands through
11938 # without removal of \ escapes.
11939 if test -n "${ZSH_VERSION+set}" ; then
11940 setopt NO_GLOB_SUBST
11942 # Now quote all the things that may contain metacharacters while being
11943 # careful not to overquote the AC_SUBSTed values. We take copies of the
11944 # variables and quote the copies for generation of the libtool script.
11945 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11947 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11948 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11949 deplibs_check_method reload_flag reload_cmds need_locks \
11950 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11951 lt_cv_sys_global_symbol_to_c_name_address \
11952 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11953 old_postinstall_cmds old_postuninstall_cmds \
11957 lt_prog_compiler_wl_RC \
11958 lt_prog_compiler_pic_RC \
11959 lt_prog_compiler_static_RC \
11960 lt_prog_compiler_no_builtin_flag_RC \
11961 export_dynamic_flag_spec_RC \
11962 thread_safe_flag_spec_RC \
11963 whole_archive_flag_spec_RC \
11964 enable_shared_with_static_runtimes_RC \
11965 old_archive_cmds_RC \
11966 old_archive_from_new_cmds_RC \
11967 predep_objects_RC \
11968 postdep_objects_RC \
11971 compiler_lib_search_path_RC \
11973 archive_expsym_cmds_RC \
11974 postinstall_cmds_RC \
11975 postuninstall_cmds_RC \
11976 old_archive_from_expsyms_cmds_RC \
11977 allow_undefined_flag_RC \
11978 no_undefined_flag_RC \
11979 export_symbols_cmds_RC \
11980 hardcode_libdir_flag_spec_RC \
11981 hardcode_libdir_flag_spec_ld_RC \
11982 hardcode_libdir_separator_RC \
11983 hardcode_automatic_RC \
11985 module_expsym_cmds_RC \
11986 lt_cv_prog_compiler_c_o_RC \
11987 exclude_expsyms_RC \
11988 include_expsyms_RC; do
11991 old_archive_cmds_RC | \
11992 old_archive_from_new_cmds_RC | \
11993 archive_cmds_RC | \
11994 archive_expsym_cmds_RC | \
11996 module_expsym_cmds_RC | \
11997 old_archive_from_expsyms_cmds_RC | \
11998 export_symbols_cmds_RC | \
11999 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12000 postinstall_cmds | postuninstall_cmds | \
12001 old_postinstall_cmds | old_postuninstall_cmds | \
12002 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12003 # Double-quote double-evaled strings.
12004 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12007 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12013 *'\$0 --fallback-echo"')
12014 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12020 cat <<__EOF__ >> "$cfgfile"
12021 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12023 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12025 # Shell to use when invoking shell scripts.
12028 # Whether or not to build shared libraries.
12029 build_libtool_libs=$enable_shared
12031 # Whether or not to build static libraries.
12032 build_old_libs=$enable_static
12034 # Whether or not to add -lc for building shared libraries.
12035 build_libtool_need_lc=$archive_cmds_need_lc_RC
12037 # Whether or not to disallow shared libs when runtime libs are static
12038 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12040 # Whether or not to optimize for fast installation.
12041 fast_install=$enable_fast_install
12044 host_alias=$host_alias
12048 # The build system.
12049 build_alias=$build_alias
12053 # An echo program that does not interpret backslashes.
12058 AR_FLAGS=$lt_AR_FLAGS
12063 # A language-specific compiler.
12066 # Is the compiler the GNU C compiler?
12072 # The linker used to build libraries.
12075 # Whether we need hard or soft links.
12078 # A BSD-compatible nm program.
12081 # A symbol stripping program
12084 # Used to examine libraries when file_magic_cmd begins "file"
12085 MAGIC_CMD=$MAGIC_CMD
12087 # Used on cygwin: DLL creation program.
12090 # Used on cygwin: object dumper.
12093 # Used on cygwin: assembler.
12096 # The name of the directory that contains temporary libtool files.
12099 # How to create reloadable object files.
12100 reload_flag=$lt_reload_flag
12101 reload_cmds=$lt_reload_cmds
12103 # How to pass a linker flag through the compiler.
12104 wl=$lt_lt_prog_compiler_wl_RC
12106 # Object file suffix (normally "o").
12107 objext="$ac_objext"
12109 # Old archive suffix (normally "a").
12112 # Shared library suffix (normally ".so").
12113 shrext_cmds='$shrext_cmds'
12115 # Executable file suffix (normally "").
12118 # Additional compiler flags for building library objects.
12119 pic_flag=$lt_lt_prog_compiler_pic_RC
12122 # What is the maximum length of a command?
12123 max_cmd_len=$lt_cv_sys_max_cmd_len
12125 # Does compiler simultaneously support -c and -o options?
12126 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12128 # Must we lock files when doing compilation?
12129 need_locks=$lt_need_locks
12131 # Do we need the lib prefix for modules?
12132 need_lib_prefix=$need_lib_prefix
12134 # Do we need a version for libraries?
12135 need_version=$need_version
12137 # Whether dlopen is supported.
12138 dlopen_support=$enable_dlopen
12140 # Whether dlopen of programs is supported.
12141 dlopen_self=$enable_dlopen_self
12143 # Whether dlopen of statically linked programs is supported.
12144 dlopen_self_static=$enable_dlopen_self_static
12146 # Compiler flag to prevent dynamic linking.
12147 link_static_flag=$lt_lt_prog_compiler_static_RC
12149 # Compiler flag to turn off builtin functions.
12150 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12152 # Compiler flag to allow reflexive dlopens.
12153 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12155 # Compiler flag to generate shared objects directly from archives.
12156 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12158 # Compiler flag to generate thread-safe objects.
12159 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12161 # Library versioning type.
12162 version_type=$version_type
12164 # Format of library name prefix.
12165 libname_spec=$lt_libname_spec
12167 # List of archive names. First name is the real one, the rest are links.
12168 # The last name is the one that the linker finds with -lNAME.
12169 library_names_spec=$lt_library_names_spec
12171 # The coded name of the library, if different from the real name.
12172 soname_spec=$lt_soname_spec
12174 # Commands used to build and install an old-style archive.
12176 old_archive_cmds=$lt_old_archive_cmds_RC
12177 old_postinstall_cmds=$lt_old_postinstall_cmds
12178 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12180 # Create an old-style archive from a shared archive.
12181 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12183 # Create a temporary old-style archive to link instead of a shared archive.
12184 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12186 # Commands used to build and install a shared archive.
12187 archive_cmds=$lt_archive_cmds_RC
12188 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12189 postinstall_cmds=$lt_postinstall_cmds
12190 postuninstall_cmds=$lt_postuninstall_cmds
12192 # Commands used to build a loadable module (assumed same as above if empty)
12193 module_cmds=$lt_module_cmds_RC
12194 module_expsym_cmds=$lt_module_expsym_cmds_RC
12196 # Commands to strip libraries.
12197 old_striplib=$lt_old_striplib
12198 striplib=$lt_striplib
12200 # Dependencies to place before the objects being linked to create a
12202 predep_objects=$lt_predep_objects_RC
12204 # Dependencies to place after the objects being linked to create a
12206 postdep_objects=$lt_postdep_objects_RC
12208 # Dependencies to place before the objects being linked to create a
12210 predeps=$lt_predeps_RC
12212 # Dependencies to place after the objects being linked to create a
12214 postdeps=$lt_postdeps_RC
12216 # The library search path used internally by the compiler when linking
12217 # a shared library.
12218 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12220 # Method to check whether dependent libraries are shared objects.
12221 deplibs_check_method=$lt_deplibs_check_method
12223 # Command to use when deplibs_check_method == file_magic.
12224 file_magic_cmd=$lt_file_magic_cmd
12226 # Flag that allows shared libraries with undefined symbols to be built.
12227 allow_undefined_flag=$lt_allow_undefined_flag_RC
12229 # Flag that forces no undefined symbols.
12230 no_undefined_flag=$lt_no_undefined_flag_RC
12232 # Commands used to finish a libtool library installation in a directory.
12233 finish_cmds=$lt_finish_cmds
12235 # Same as above, but a single script fragment to be evaled but not shown.
12236 finish_eval=$lt_finish_eval
12238 # Take the output of nm and produce a listing of raw symbols and C names.
12239 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12241 # Transform the output of nm in a proper C declaration
12242 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12244 # Transform the output of nm in a C name address pair
12245 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12247 # This is the shared library runtime path variable.
12248 runpath_var=$runpath_var
12250 # This is the shared library path variable.
12251 shlibpath_var=$shlibpath_var
12253 # Is shlibpath searched before the hard-coded library search path?
12254 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12256 # How to hardcode a shared library path into an executable.
12257 hardcode_action=$hardcode_action_RC
12259 # Whether we should hardcode library paths into libraries.
12260 hardcode_into_libs=$hardcode_into_libs
12262 # Flag to hardcode \$libdir into a binary during linking.
12263 # This must work even if \$libdir does not exist.
12264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12266 # If ld is used when linking, flag to hardcode \$libdir into
12267 # a binary during linking. This must work even if \$libdir does
12269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12271 # Whether we need a single -rpath flag with a separated argument.
12272 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12274 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_direct=$hardcode_direct_RC
12278 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12279 # resulting binary.
12280 hardcode_minus_L=$hardcode_minus_L_RC
12282 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12283 # the resulting binary.
12284 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12286 # Set to yes if building a shared library automatically hardcodes DIR into the library
12287 # and all subsequent libraries and executables linked against it.
12288 hardcode_automatic=$hardcode_automatic_RC
12290 # Variables whose values should be saved in libtool wrapper scripts and
12291 # restored at relink time.
12292 variables_saved_for_relink="$variables_saved_for_relink"
12294 # Whether libtool must link a program against all its dependency libraries.
12295 link_all_deplibs=$link_all_deplibs_RC
12297 # Compile-time system search path for libraries
12298 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12300 # Run-time system search path for libraries
12301 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12303 # Fix the shell variable \$srcfile for the compiler.
12304 fix_srcfile_path="$fix_srcfile_path_RC"
12306 # Set to yes if exported symbols are required.
12307 always_export_symbols=$always_export_symbols_RC
12309 # The commands to list exported symbols.
12310 export_symbols_cmds=$lt_export_symbols_cmds_RC
12312 # The commands to extract the exported symbol list from a shared archive.
12313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12315 # Symbols that should not be listed in the preloaded symbols.
12316 exclude_expsyms=$lt_exclude_expsyms_RC
12318 # Symbols that must always be exported.
12319 include_expsyms=$lt_include_expsyms_RC
12321 # ### END LIBTOOL TAG CONFIG: $tagname
12327 # If there is no Makefile yet, we rely on a make rule to execute
12328 # `config.status --recheck' to rerun these tests and create the
12329 # libtool script then.
12330 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12331 if test -f "$ltmain_in"; then
12332 test -f Makefile && make "$ltmain"
12338 ac_cpp='$CPP $CPPFLAGS'
12339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12348 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12349 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12350 { (exit 1); exit 1; }; }
12354 # Append the new tag name to the list of available tags.
12355 if test -n "$tagname" ; then
12356 available_tags="$available_tags $tagname"
12362 # Now substitute the updated list of available tags.
12363 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12364 mv "${ofile}T" "$ofile"
12368 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12369 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12370 { (exit 1); exit 1; }; }
12376 # This can be used to rebuild libtool when needed
12377 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12379 # Always use our own libtool.
12380 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12382 # Prevent multiple expansion
12394 if test $ol_enable_perl != no ; then
12395 # Extract the first word of "perl", so it can be a program name with args.
12396 set dummy perl; ac_word=$2
12397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12399 if test "${ac_cv_path_PERLBIN+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408 for as_dir in $PATH
12411 test -z "$as_dir" && as_dir=.
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12414 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12422 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12426 PERLBIN=$ac_cv_path_PERLBIN
12427 if test -n "$PERLBIN"; then
12428 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12429 echo "${ECHO_T}$PERLBIN" >&6; }
12431 { echo "$as_me:$LINENO: result: no" >&5
12432 echo "${ECHO_T}no" >&6; }
12437 if test "no$PERLBIN" = "no" ; then
12438 if test $ol_enable_perl = yes ; then
12439 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12440 echo "$as_me: error: could not locate perl" >&2;}
12441 { (exit 1); exit 1; }; }
12445 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12446 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12448 if test x"$ol_enable_perl" = "xyes" ; then
12449 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12451 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12458 ac_cpp='$CPP $CPPFLAGS'
12459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12462 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12463 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12464 # On Suns, sometimes $CPP names a directory.
12465 if test -n "$CPP" && test -d "$CPP"; then
12468 if test -z "$CPP"; then
12469 if test "${ac_cv_prog_CPP+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 # Double quotes because CPP needs to be expanded
12473 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12475 ac_preproc_ok=false
12476 for ac_c_preproc_warn_flag in '' yes
12478 # Use a header file that comes with gcc, so configuring glibc
12479 # with a fresh cross-compiler works.
12480 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12481 # <limits.h> exists even on freestanding compilers.
12482 # On the NeXT, cc -E runs the code through the compiler's parser,
12483 # not just through cpp. "Syntax error" is here to catch this case.
12484 cat >conftest.$ac_ext <<_ACEOF
12487 cat confdefs.h >>conftest.$ac_ext
12488 cat >>conftest.$ac_ext <<_ACEOF
12489 /* end confdefs.h. */
12491 # include <limits.h>
12493 # include <assert.h>
12497 if { (ac_try="$ac_cpp conftest.$ac_ext"
12498 case "(($ac_try" in
12499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } >/dev/null && {
12510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12515 echo "$as_me: failed program was:" >&5
12516 sed 's/^/| /' conftest.$ac_ext >&5
12518 # Broken: fails on valid input.
12522 rm -f conftest.err conftest.$ac_ext
12524 # OK, works on sane cases. Now check whether nonexistent headers
12525 # can be detected and how.
12526 cat >conftest.$ac_ext <<_ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 #include <ac_nonexistent.h>
12534 if { (ac_try="$ac_cpp conftest.$ac_ext"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } >/dev/null && {
12547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12548 test ! -s conftest.err
12550 # Broken: success on invalid input.
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12556 # Passes both tests.
12561 rm -f conftest.err conftest.$ac_ext
12564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12565 rm -f conftest.err conftest.$ac_ext
12566 if $ac_preproc_ok; then
12571 ac_cv_prog_CPP=$CPP
12574 CPP=$ac_cv_prog_CPP
12576 ac_cv_prog_CPP=$CPP
12578 { echo "$as_me:$LINENO: result: $CPP" >&5
12579 echo "${ECHO_T}$CPP" >&6; }
12580 ac_preproc_ok=false
12581 for ac_c_preproc_warn_flag in '' yes
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat >conftest.$ac_ext <<_ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12596 # include <limits.h>
12598 # include <assert.h>
12602 if { (ac_try="$ac_cpp conftest.$ac_ext"
12603 case "(($ac_try" in
12604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } >/dev/null && {
12615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 # Broken: fails on valid input.
12627 rm -f conftest.err conftest.$ac_ext
12629 # OK, works on sane cases. Now check whether nonexistent headers
12630 # can be detected and how.
12631 cat >conftest.$ac_ext <<_ACEOF
12634 cat confdefs.h >>conftest.$ac_ext
12635 cat >>conftest.$ac_ext <<_ACEOF
12636 /* end confdefs.h. */
12637 #include <ac_nonexistent.h>
12639 if { (ac_try="$ac_cpp conftest.$ac_ext"
12640 case "(($ac_try" in
12641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642 *) ac_try_echo=$ac_try;;
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12647 grep -v '^ *+' conftest.er1 >conftest.err
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null && {
12652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12653 test ! -s conftest.err
12655 # Broken: success on invalid input.
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12661 # Passes both tests.
12666 rm -f conftest.err conftest.$ac_ext
12669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12670 rm -f conftest.err conftest.$ac_ext
12671 if $ac_preproc_ok; then
12674 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&5
12676 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12677 See \`config.log' for more details." >&2;}
12678 { (exit 1); exit 1; }; }
12682 ac_cpp='$CPP $CPPFLAGS'
12683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12688 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12689 if test "${ol_cv_msvc+set}" = set; then
12690 echo $ECHO_N "(cached) $ECHO_C" >&6
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12700 #include <__FOO__/generate_error.h>
12704 if { (ac_try="$ac_cpp conftest.$ac_ext"
12705 case "(($ac_try" in
12706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1 >conftest.err
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null && {
12717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12722 echo "$as_me: failed program was:" >&5
12723 sed 's/^/| /' conftest.$ac_ext >&5
12728 rm -f conftest.err conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12731 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12734 *mingw32* ) ac_cv_mingw32=yes ;;
12735 *cygwin* ) ac_cv_cygwin=yes ;;
12736 *interix* ) ac_cv_interix=yes ;;
12742 cat >>confdefs.h <<_ACEOF
12743 #define EXEEXT "${EXEEXT}"
12747 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12748 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12749 if test "${ac_cv_lib_be_be_app+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lbe -lroot -lnet $LIBS"
12754 cat >conftest.$ac_ext <<_ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12776 rm -f conftest.$ac_objext conftest$ac_exeext
12777 if { (ac_try="$ac_link"
12778 case "(($ac_try" in
12779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_link") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest$ac_exeext &&
12793 $as_test_x conftest$ac_exeext; then
12794 ac_cv_lib_be_be_app=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 ac_cv_lib_be_be_app=no
12802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12803 conftest$ac_exeext conftest.$ac_ext
12804 LIBS=$ac_check_lib_save_LIBS
12806 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12807 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12808 if test $ac_cv_lib_be_be_app = yes; then
12809 LIBS="$LIBS -lbe -lroot -lnet"
12816 ac_cpp='$CPP $CPPFLAGS'
12817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12820 if test -n "$ac_tool_prefix"; then
12821 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12822 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12825 if test "${ac_cv_prog_CC+set}" = set; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 if test -n "$CC"; then
12829 ac_cv_prog_CC="$CC" # Let the user override the test.
12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12832 for as_dir in $PATH
12835 test -z "$as_dir" && as_dir=.
12836 for ac_exec_ext in '' $ac_executable_extensions; do
12837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12838 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12849 if test -n "$CC"; then
12850 { echo "$as_me:$LINENO: result: $CC" >&5
12851 echo "${ECHO_T}$CC" >&6; }
12853 { echo "$as_me:$LINENO: result: no" >&5
12854 echo "${ECHO_T}no" >&6; }
12859 if test -z "$ac_cv_prog_CC"; then
12861 # Extract the first word of "gcc", so it can be a program name with args.
12862 set dummy gcc; ac_word=$2
12863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12865 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12866 echo $ECHO_N "(cached) $ECHO_C" >&6
12868 if test -n "$ac_ct_CC"; then
12869 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12872 for as_dir in $PATH
12875 test -z "$as_dir" && as_dir=.
12876 for ac_exec_ext in '' $ac_executable_extensions; do
12877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12878 ac_cv_prog_ac_ct_CC="gcc"
12879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12888 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12889 if test -n "$ac_ct_CC"; then
12890 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12891 echo "${ECHO_T}$ac_ct_CC" >&6; }
12893 { echo "$as_me:$LINENO: result: no" >&5
12894 echo "${ECHO_T}no" >&6; }
12897 if test "x$ac_ct_CC" = x; then
12900 case $cross_compiling:$ac_tool_warned in
12902 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12903 whose name does not start with the host triplet. If you think this
12904 configuration is useful to you, please write to autoconf@gnu.org." >&5
12905 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12906 whose name does not start with the host triplet. If you think this
12907 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12908 ac_tool_warned=yes ;;
12913 CC="$ac_cv_prog_CC"
12916 if test -z "$CC"; then
12917 if test -n "$ac_tool_prefix"; then
12918 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12919 set dummy ${ac_tool_prefix}cc; ac_word=$2
12920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12922 if test "${ac_cv_prog_CC+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 if test -n "$CC"; then
12926 ac_cv_prog_CC="$CC" # Let the user override the test.
12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12929 for as_dir in $PATH
12932 test -z "$as_dir" && as_dir=.
12933 for ac_exec_ext in '' $ac_executable_extensions; do
12934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12935 ac_cv_prog_CC="${ac_tool_prefix}cc"
12936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12946 if test -n "$CC"; then
12947 { echo "$as_me:$LINENO: result: $CC" >&5
12948 echo "${ECHO_T}$CC" >&6; }
12950 { echo "$as_me:$LINENO: result: no" >&5
12951 echo "${ECHO_T}no" >&6; }
12957 if test -z "$CC"; then
12958 # Extract the first word of "cc", so it can be a program name with args.
12959 set dummy cc; ac_word=$2
12960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12962 if test "${ac_cv_prog_CC+set}" = set; then
12963 echo $ECHO_N "(cached) $ECHO_C" >&6
12965 if test -n "$CC"; then
12966 ac_cv_prog_CC="$CC" # Let the user override the test.
12968 ac_prog_rejected=no
12969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12970 for as_dir in $PATH
12973 test -z "$as_dir" && as_dir=.
12974 for ac_exec_ext in '' $ac_executable_extensions; do
12975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12976 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12977 ac_prog_rejected=yes
12981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12988 if test $ac_prog_rejected = yes; then
12989 # We found a bogon in the path, so make sure we never use it.
12990 set dummy $ac_cv_prog_CC
12992 if test $# != 0; then
12993 # We chose a different compiler from the bogus one.
12994 # However, it has the same basename, so the bogon will be chosen
12995 # first if we set CC to just the basename; use the full file name.
12997 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13003 if test -n "$CC"; then
13004 { echo "$as_me:$LINENO: result: $CC" >&5
13005 echo "${ECHO_T}$CC" >&6; }
13007 { echo "$as_me:$LINENO: result: no" >&5
13008 echo "${ECHO_T}no" >&6; }
13013 if test -z "$CC"; then
13014 if test -n "$ac_tool_prefix"; then
13015 for ac_prog in cl.exe
13017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13021 if test "${ac_cv_prog_CC+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 if test -n "$CC"; then
13025 ac_cv_prog_CC="$CC" # Let the user override the test.
13027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13028 for as_dir in $PATH
13031 test -z "$as_dir" && as_dir=.
13032 for ac_exec_ext in '' $ac_executable_extensions; do
13033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13034 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13045 if test -n "$CC"; then
13046 { echo "$as_me:$LINENO: result: $CC" >&5
13047 echo "${ECHO_T}$CC" >&6; }
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13054 test -n "$CC" && break
13057 if test -z "$CC"; then
13059 for ac_prog in cl.exe
13061 # Extract the first word of "$ac_prog", so it can be a program name with args.
13062 set dummy $ac_prog; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 if test -n "$ac_ct_CC"; then
13069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13078 ac_cv_prog_ac_ct_CC="$ac_prog"
13079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13089 if test -n "$ac_ct_CC"; then
13090 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13091 echo "${ECHO_T}$ac_ct_CC" >&6; }
13093 { echo "$as_me:$LINENO: result: no" >&5
13094 echo "${ECHO_T}no" >&6; }
13098 test -n "$ac_ct_CC" && break
13101 if test "x$ac_ct_CC" = x; then
13104 case $cross_compiling:$ac_tool_warned in
13106 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13107 whose name does not start with the host triplet. If you think this
13108 configuration is useful to you, please write to autoconf@gnu.org." >&5
13109 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13110 whose name does not start with the host triplet. If you think this
13111 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13112 ac_tool_warned=yes ;;
13121 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: no acceptable C compiler found in \$PATH
13124 See \`config.log' for more details." >&2;}
13125 { (exit 1); exit 1; }; }
13127 # Provide some information about the compiler.
13128 echo "$as_me:$LINENO: checking for C compiler version" >&5
13129 ac_compiler=`set X $ac_compile; echo $2`
13130 { (ac_try="$ac_compiler --version >&5"
13131 case "(($ac_try" in
13132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13133 *) ac_try_echo=$ac_try;;
13135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13136 (eval "$ac_compiler --version >&5") 2>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); }
13140 { (ac_try="$ac_compiler -v >&5"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13146 (eval "$ac_compiler -v >&5") 2>&5
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); }
13150 { (ac_try="$ac_compiler -V >&5"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_compiler -V >&5") 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }
13161 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13162 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13163 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h. */
13184 rm -f conftest.$ac_objext
13185 if { (ac_try="$ac_compile"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_compile") 2>conftest.er1
13193 grep -v '^ *+' conftest.er1 >conftest.err
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } && {
13198 test -z "$ac_c_werror_flag" ||
13199 test ! -s conftest.err
13200 } && test -s conftest.$ac_objext; then
13201 ac_compiler_gnu=yes
13203 echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13213 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13214 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13215 GCC=`test $ac_compiler_gnu = yes && echo yes`
13216 ac_test_CFLAGS=${CFLAGS+set}
13217 ac_save_CFLAGS=$CFLAGS
13218 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13219 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13220 if test "${ac_cv_prog_cc_g+set}" = set; then
13221 echo $ECHO_N "(cached) $ECHO_C" >&6
13223 ac_save_c_werror_flag=$ac_c_werror_flag
13224 ac_c_werror_flag=yes
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13242 rm -f conftest.$ac_objext
13243 if { (ac_try="$ac_compile"
13244 case "(($ac_try" in
13245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246 *) ac_try_echo=$ac_try;;
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249 (eval "$ac_compile") 2>conftest.er1
13251 grep -v '^ *+' conftest.er1 >conftest.err
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } && {
13256 test -z "$ac_c_werror_flag" ||
13257 test ! -s conftest.err
13258 } && test -s conftest.$ac_objext; then
13259 ac_cv_prog_cc_g=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13265 cat >conftest.$ac_ext <<_ACEOF
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13280 rm -f conftest.$ac_objext
13281 if { (ac_try="$ac_compile"
13282 case "(($ac_try" in
13283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13284 *) ac_try_echo=$ac_try;;
13286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13287 (eval "$ac_compile") 2>conftest.er1
13289 grep -v '^ *+' conftest.er1 >conftest.err
13291 cat conftest.err >&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); } && {
13294 test -z "$ac_c_werror_flag" ||
13295 test ! -s conftest.err
13296 } && test -s conftest.$ac_objext; then
13299 echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13302 ac_c_werror_flag=$ac_save_c_werror_flag
13304 cat >conftest.$ac_ext <<_ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h. */
13319 rm -f conftest.$ac_objext
13320 if { (ac_try="$ac_compile"
13321 case "(($ac_try" in
13322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_compile") 2>conftest.er1
13328 grep -v '^ *+' conftest.er1 >conftest.err
13330 cat conftest.err >&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } && {
13333 test -z "$ac_c_werror_flag" ||
13334 test ! -s conftest.err
13335 } && test -s conftest.$ac_objext; then
13336 ac_cv_prog_cc_g=yes
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 ac_c_werror_flag=$ac_save_c_werror_flag
13353 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13354 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13355 if test "$ac_test_CFLAGS" = set; then
13356 CFLAGS=$ac_save_CFLAGS
13357 elif test $ac_cv_prog_cc_g = yes; then
13358 if test "$GCC" = yes; then
13364 if test "$GCC" = yes; then
13370 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13371 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13372 if test "${ac_cv_prog_cc_c89+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_cv_prog_cc_c89=no
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 #include <stdarg.h>
13385 #include <sys/types.h>
13386 #include <sys/stat.h>
13387 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13388 struct buf { int x; };
13389 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13390 static char *e (p, i)
13396 static char *f (char * (*g) (char **, int), char **p, ...)
13401 s = g (p, va_arg (v,int));
13406 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13407 function prototypes and stuff, but not '\xHH' hex character constants.
13408 These don't provoke an error unfortunately, instead are silently treated
13409 as 'x'. The following induces an error, until -std is added to get
13410 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13411 array size at least. It's necessary to write '\x00'==0 to get something
13412 that's true only with -std. */
13413 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13415 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13416 inside strings and character constants. */
13418 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13420 int test (int i, double x);
13421 struct s1 {int (*f) (int a);};
13422 struct s2 {int (*f) (double a);};
13423 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13429 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13434 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13435 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13437 CC="$ac_save_CC $ac_arg"
13438 rm -f conftest.$ac_objext
13439 if { (ac_try="$ac_compile"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_compile") 2>conftest.er1
13447 grep -v '^ *+' conftest.er1 >conftest.err
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest.$ac_objext; then
13455 ac_cv_prog_cc_c89=$ac_arg
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.$ac_ext >&5
13463 rm -f core conftest.err conftest.$ac_objext
13464 test "x$ac_cv_prog_cc_c89" != "xno" && break
13466 rm -f conftest.$ac_ext
13471 case "x$ac_cv_prog_cc_c89" in
13473 { echo "$as_me:$LINENO: result: none needed" >&5
13474 echo "${ECHO_T}none needed" >&6; } ;;
13476 { echo "$as_me:$LINENO: result: unsupported" >&5
13477 echo "${ECHO_T}unsupported" >&6; } ;;
13479 CC="$CC $ac_cv_prog_cc_c89"
13480 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13481 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13486 ac_cpp='$CPP $CPPFLAGS'
13487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13491 depcc="$CC" am_compiler_list=
13493 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13494 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13495 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13499 # We make a subdir and do the tests there. Otherwise we can end up
13500 # making bogus files that we don't know about and never remove. For
13501 # instance it was reported that on HP-UX the gcc test will end up
13502 # making a dummy file named `D' -- because `-MD' means `put the output
13505 # Copy depcomp to subdir because otherwise we won't find it if we're
13506 # using a relative directory.
13507 cp "$am_depcomp" conftest.dir
13509 # We will build objects and dependencies in a subdirectory because
13510 # it helps to detect inapplicable dependency modes. For instance
13511 # both Tru64's cc and ICC support -MD to output dependencies as a
13512 # side effect of compilation, but ICC will put the dependencies in
13513 # the current directory while Tru64 will put them in the object
13517 am_cv_CC_dependencies_compiler_type=none
13518 if test "$am_compiler_list" = ""; then
13519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13521 for depmode in $am_compiler_list; do
13522 # Setup a source with many dependencies, because some compilers
13523 # like to wrap large dependency lists on column 80 (with \), and
13524 # we should not choose a depcomp mode which is confused by this.
13526 # We need to recreate these files for each test, as the compiler may
13527 # overwrite some of them when testing with obscure command lines.
13528 # This happens at least with the AIX C compiler.
13530 for i in 1 2 3 4 5 6; do
13531 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13532 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13533 # Solaris 8's {/usr,}/bin/sh.
13534 touch sub/conftst$i.h
13536 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13540 # after this tag, mechanisms are not by side-effect, so they'll
13541 # only be used when explicitly requested
13542 if test "x$enable_dependency_tracking" = xyes; then
13550 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13551 # mode. It turns out that the SunPro C++ compiler does not properly
13552 # handle `-M -o', and we need to detect this.
13553 if depmode=$depmode \
13554 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13555 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13556 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13557 >/dev/null 2>conftest.err &&
13558 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13559 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13560 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13561 # icc doesn't choke on unknown options, it will just issue warnings
13562 # or remarks (even with -Werror). So we grep stderr for any message
13563 # that says an option was ignored or not supported.
13564 # When given -MP, icc 7.0 and 7.1 complain thusly:
13565 # icc: Command line warning: ignoring option '-M'; no argument required
13566 # The diagnosis changed in icc 8.0:
13567 # icc: Command line remark: option '-MP' not supported
13568 if (grep 'ignoring option' conftest.err ||
13569 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13570 am_cv_CC_dependencies_compiler_type=$depmode
13577 rm -rf conftest.dir
13579 am_cv_CC_dependencies_compiler_type=none
13583 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13584 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13585 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13590 test "x$enable_dependency_tracking" != xno \
13591 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13592 am__fastdepCC_TRUE=
13593 am__fastdepCC_FALSE='#'
13595 am__fastdepCC_TRUE='#'
13596 am__fastdepCC_FALSE=
13600 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13601 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13602 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13603 { (exit 1); exit 1; }; }
13606 # test for make depend flag
13609 if test -z "${MKDEP}"; then
13610 OL_MKDEP="${CC-cc}"
13611 if test -z "${MKDEP_FLAGS}"; then
13612 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13613 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13614 if test "${ol_cv_mkdep+set}" = set; then
13615 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 for flag in "-M" "-xM"; do
13620 cat > conftest.c <<EOF
13623 if { ac_try='$OL_MKDEP $flag conftest.c'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; } \
13629 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13631 if test ! -f conftest."${ac_object}" ; then
13633 OL_MKDEP_FLAGS="$flag"
13641 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13642 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13643 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13646 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13650 OL_MKDEP="${MKDEP}"
13651 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13656 if test "${ol_cv_mkdep}" = no ; then
13657 # this will soon become an error
13658 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13659 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13662 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13663 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13664 if test "${ac_cv_lib_s_afopen+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 ac_check_lib_save_LIBS=$LIBS
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13676 /* Override any GCC internal prototype to avoid an error.
13677 Use char because int might match the return type of a GCC
13678 builtin and then its argument prototype would still apply. */
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (ac_try="$ac_link"
13693 case "(($ac_try" in
13694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13695 *) ac_try_echo=$ac_try;;
13697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13698 (eval "$ac_link") 2>conftest.er1
13700 grep -v '^ *+' conftest.er1 >conftest.err
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } && {
13705 test -z "$ac_c_werror_flag" ||
13706 test ! -s conftest.err
13707 } && test -s conftest$ac_exeext &&
13708 $as_test_x conftest$ac_exeext; then
13709 ac_cv_lib_s_afopen=yes
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_cv_lib_s_afopen=no
13717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13718 conftest$ac_exeext conftest.$ac_ext
13719 LIBS=$ac_check_lib_save_LIBS
13721 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13722 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13723 if test $ac_cv_lib_s_afopen = yes; then
13727 cat >>confdefs.h <<\_ACEOF
13728 #define HAVE_AIX_SECURITY 1
13737 ac_cv_func_getopt=no
13739 cat >>confdefs.h <<\_ACEOF
13740 #define BOTH_STRINGS_H 1
13747 WITH_MODULES_ENABLED=no
13748 if test $ol_enable_modules != no ; then
13750 for ac_header in ltdl.h
13752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 ac_res=`eval echo '${'$as_ac_Header'}'`
13760 { echo "$as_me:$LINENO: result: $ac_res" >&5
13761 echo "${ECHO_T}$ac_res" >&6; }
13763 # Is the header compilable?
13764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 $ac_includes_default
13773 #include <$ac_header>
13775 rm -f conftest.$ac_objext
13776 if { (ac_try="$ac_compile"
13777 case "(($ac_try" in
13778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13779 *) ac_try_echo=$ac_try;;
13781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13782 (eval "$ac_compile") 2>conftest.er1
13784 grep -v '^ *+' conftest.er1 >conftest.err
13786 cat conftest.err >&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); } && {
13789 test -z "$ac_c_werror_flag" ||
13790 test ! -s conftest.err
13791 } && test -s conftest.$ac_objext; then
13792 ac_header_compiler=yes
13794 echo "$as_me: failed program was:" >&5
13795 sed 's/^/| /' conftest.$ac_ext >&5
13797 ac_header_compiler=no
13800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802 echo "${ECHO_T}$ac_header_compiler" >&6; }
13804 # Is the header present?
13805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h. */
13813 #include <$ac_header>
13815 if { (ac_try="$ac_cpp conftest.$ac_ext"
13816 case "(($ac_try" in
13817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13818 *) ac_try_echo=$ac_try;;
13820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13823 grep -v '^ *+' conftest.er1 >conftest.err
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } >/dev/null && {
13828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13829 test ! -s conftest.err
13831 ac_header_preproc=yes
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ac_header_preproc=no
13839 rm -f conftest.err conftest.$ac_ext
13840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13841 echo "${ECHO_T}$ac_header_preproc" >&6; }
13843 # So? What about this header?
13844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13850 ac_header_preproc=yes
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13866 ## --------------------------------------------- ##
13867 ## Report this to <http://www.openldap.org/its/> ##
13868 ## --------------------------------------------- ##
13870 ) | sed "s/^/$as_me: WARNING: /" >&2
13873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 eval "$as_ac_Header=\$ac_header_preproc"
13880 ac_res=`eval echo '${'$as_ac_Header'}'`
13881 { echo "$as_me:$LINENO: result: $ac_res" >&5
13882 echo "${ECHO_T}$ac_res" >&6; }
13885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13886 cat >>confdefs.h <<_ACEOF
13887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 if test $ac_cv_header_ltdl_h = no ; then
13896 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13897 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13898 { (exit 1); exit 1; }; }
13901 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13902 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13903 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13904 echo $ECHO_N "(cached) $ECHO_C" >&6
13906 ac_check_lib_save_LIBS=$LIBS
13907 LIBS="-lltdl $LIBS"
13908 cat >conftest.$ac_ext <<_ACEOF
13911 cat confdefs.h >>conftest.$ac_ext
13912 cat >>conftest.$ac_ext <<_ACEOF
13913 /* end confdefs.h. */
13915 /* Override any GCC internal prototype to avoid an error.
13916 Use char because int might match the return type of a GCC
13917 builtin and then its argument prototype would still apply. */
13925 return lt_dlinit ();
13930 rm -f conftest.$ac_objext conftest$ac_exeext
13931 if { (ac_try="$ac_link"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_link") 2>conftest.er1
13939 grep -v '^ *+' conftest.er1 >conftest.err
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } && {
13944 test -z "$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 } && test -s conftest$ac_exeext &&
13947 $as_test_x conftest$ac_exeext; then
13948 ac_cv_lib_ltdl_lt_dlinit=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_lib_ltdl_lt_dlinit=no
13956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13961 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13962 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13964 MODULES_LIBS=-lltdl
13966 cat >>confdefs.h <<\_ACEOF
13967 #define HAVE_LIBLTDL 1
13974 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13975 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13976 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13977 { (exit 1); exit 1; }; }
13979 ol_link_modules=yes
13980 WITH_MODULES_ENABLED=yes
13983 for i in $Backends; do
13984 eval "ol_tmp=\$ol_enable_$i"
13985 if test $ol_tmp = mod ; then
13986 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13987 echo "$as_me: WARNING: building static $i backend" >&2;}
13988 eval "ol_enable_$i=yes"
13991 for i in $Overlays; do
13992 eval "ol_tmp=\$ol_enable_$i"
13993 if test $ol_tmp = mod ; then
13994 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13995 echo "$as_me: WARNING: building static $i overlay" >&2;}
13996 eval "ol_enable_$i=yes"
14002 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14003 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14004 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14016 #include <__ASCII__/generate_error.h>
14020 if { (ac_try="$ac_cpp conftest.$ac_ext"
14021 case "(($ac_try" in
14022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14023 *) ac_try_echo=$ac_try;;
14025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14028 grep -v '^ *+' conftest.er1 >conftest.err
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } >/dev/null && {
14033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14034 test ! -s conftest.err
14036 ol_cv_cpp_ebcdic=yes
14038 echo "$as_me: failed program was:" >&5
14039 sed 's/^/| /' conftest.$ac_ext >&5
14041 ol_cv_cpp_ebcdic=no
14044 rm -f conftest.err conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14047 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14048 if test $ol_cv_cpp_ebcdic = yes ; then
14050 cat >>confdefs.h <<\_ACEOF
14051 #define HAVE_EBCDIC 1
14056 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14058 if test "${ol_cv_header_stdc+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #include <stdlib.h>
14068 #include <stdarg.h>
14069 #include <string.h>
14072 if { (ac_try="$ac_cpp conftest.$ac_ext"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } >/dev/null && {
14085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14086 test ! -s conftest.err
14088 ol_cv_header_stdc=yes
14090 echo "$as_me: failed program was:" >&5
14091 sed 's/^/| /' conftest.$ac_ext >&5
14093 ol_cv_header_stdc=no
14096 rm -f conftest.err conftest.$ac_ext
14098 if test $ol_cv_header_stdc = yes; then
14099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14100 cat >conftest.$ac_ext <<_ACEOF
14103 cat confdefs.h >>conftest.$ac_ext
14104 cat >>conftest.$ac_ext <<_ACEOF
14105 /* end confdefs.h. */
14106 #include <string.h>
14109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14110 $EGREP "memchr" >/dev/null 2>&1; then
14113 ol_cv_header_stdc=no
14119 if test $ol_cv_header_stdc = yes; then
14120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14121 cat >conftest.$ac_ext <<_ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h. */
14127 #include <stdlib.h>
14130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14131 $EGREP "free" >/dev/null 2>&1; then
14134 ol_cv_header_stdc=no
14140 if test $ol_cv_header_stdc = yes; then
14141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14142 if test "$cross_compiling" = yes; then
14145 cat >conftest.$ac_ext <<_ACEOF
14148 cat confdefs.h >>conftest.$ac_ext
14149 cat >>conftest.$ac_ext <<_ACEOF
14150 /* end confdefs.h. */
14152 #ifndef HAVE_EBCDIC
14153 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14154 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14156 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14157 || ('j' <= (c) && (c) <= 'r') \
14158 || ('s' <= (c) && (c) <= 'z'))
14159 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14162 int main () { int i; for (i = 0; i < 256; i++)
14163 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14167 rm -f conftest$ac_exeext
14168 if { (ac_try="$ac_link"
14169 case "(($ac_try" in
14170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171 *) ac_try_echo=$ac_try;;
14173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174 (eval "$ac_link") 2>&5
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14178 { (case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; }; then
14189 echo "$as_me: program exited with status $ac_status" >&5
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ( exit $ac_status )
14194 ol_cv_header_stdc=no
14196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14202 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14203 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14204 if test $ol_cv_header_stdc = yes; then
14205 cat >>confdefs.h <<\_ACEOF
14206 #define STDC_HEADERS 1
14210 ac_cv_header_stdc=disable
14213 if test $ol_cv_header_stdc != yes; then
14214 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14215 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14223 ac_header_dirent=no
14224 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14225 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14226 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14227 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14229 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 #include <sys/types.h>
14249 rm -f conftest.$ac_objext
14250 if { (ac_try="$ac_compile"
14251 case "(($ac_try" in
14252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14253 *) ac_try_echo=$ac_try;;
14255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14256 (eval "$ac_compile") 2>conftest.er1
14258 grep -v '^ *+' conftest.er1 >conftest.err
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && {
14263 test -z "$ac_c_werror_flag" ||
14264 test ! -s conftest.err
14265 } && test -s conftest.$ac_objext; then
14266 eval "$as_ac_Header=yes"
14268 echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14271 eval "$as_ac_Header=no"
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276 ac_res=`eval echo '${'$as_ac_Header'}'`
14277 { echo "$as_me:$LINENO: result: $ac_res" >&5
14278 echo "${ECHO_T}$ac_res" >&6; }
14279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14280 cat >>confdefs.h <<_ACEOF
14281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14284 ac_header_dirent=$ac_hdr; break
14288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14289 if test $ac_header_dirent = dirent.h; then
14290 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14292 if test "${ac_cv_search_opendir+set}" = set; then
14293 echo $ECHO_N "(cached) $ECHO_C" >&6
14295 ac_func_search_save_LIBS=$LIBS
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14318 for ac_lib in '' dir; do
14319 if test -z "$ac_lib"; then
14320 ac_res="none required"
14323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (ac_try="$ac_link"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_link") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest$ac_exeext &&
14342 $as_test_x conftest$ac_exeext; then
14343 ac_cv_search_opendir=$ac_res
14345 echo "$as_me: failed program was:" >&5
14346 sed 's/^/| /' conftest.$ac_ext >&5
14351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 if test "${ac_cv_search_opendir+set}" = set; then
14357 if test "${ac_cv_search_opendir+set}" = set; then
14360 ac_cv_search_opendir=no
14362 rm conftest.$ac_ext
14363 LIBS=$ac_func_search_save_LIBS
14365 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14366 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14367 ac_res=$ac_cv_search_opendir
14368 if test "$ac_res" != no; then
14369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14374 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14375 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14376 if test "${ac_cv_search_opendir+set}" = set; then
14377 echo $ECHO_N "(cached) $ECHO_C" >&6
14379 ac_func_search_save_LIBS=$LIBS
14380 cat >conftest.$ac_ext <<_ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14402 for ac_lib in '' x; do
14403 if test -z "$ac_lib"; then
14404 ac_res="none required"
14407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_link") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest$ac_exeext &&
14426 $as_test_x conftest$ac_exeext; then
14427 ac_cv_search_opendir=$ac_res
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14437 if test "${ac_cv_search_opendir+set}" = set; then
14441 if test "${ac_cv_search_opendir+set}" = set; then
14444 ac_cv_search_opendir=no
14446 rm conftest.$ac_ext
14447 LIBS=$ac_func_search_save_LIBS
14449 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14450 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14451 ac_res=$ac_cv_search_opendir
14452 if test "$ac_res" != no; then
14453 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14459 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14460 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 cat >conftest.$ac_ext <<_ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <sys/types.h>
14471 #include <sys/wait.h>
14472 #ifndef WEXITSTATUS
14473 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14476 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14484 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14489 rm -f conftest.$ac_objext
14490 if { (ac_try="$ac_compile"
14491 case "(($ac_try" in
14492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14493 *) ac_try_echo=$ac_try;;
14495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14496 (eval "$ac_compile") 2>conftest.er1
14498 grep -v '^ *+' conftest.er1 >conftest.err
14500 cat conftest.err >&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } && {
14503 test -z "$ac_c_werror_flag" ||
14504 test ! -s conftest.err
14505 } && test -s conftest.$ac_objext; then
14506 ac_cv_header_sys_wait_h=yes
14508 echo "$as_me: failed program was:" >&5
14509 sed 's/^/| /' conftest.$ac_ext >&5
14511 ac_cv_header_sys_wait_h=no
14514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14517 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14518 if test $ac_cv_header_sys_wait_h = yes; then
14520 cat >>confdefs.h <<\_ACEOF
14521 #define HAVE_SYS_WAIT_H 1
14526 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14527 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14528 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <sys/types.h>
14538 #include <termios.h>
14544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14545 $EGREP "yes" >/dev/null 2>&1; then
14546 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14548 ac_cv_sys_tiocgwinsz_in_termios_h=no
14553 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14554 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14556 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14557 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14558 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14559 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14562 cat >conftest.$ac_ext <<_ACEOF
14565 cat confdefs.h >>conftest.$ac_ext
14566 cat >>conftest.$ac_ext <<_ACEOF
14567 /* end confdefs.h. */
14568 #include <sys/types.h>
14569 #include <sys/ioctl.h>
14575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14576 $EGREP "yes" >/dev/null 2>&1; then
14577 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14579 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14584 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14585 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14587 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14589 cat >>confdefs.h <<\_ACEOF
14590 #define GWINSZ_IN_SYS_IOCTL 1
14694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 ac_res=`eval echo '${'$as_ac_Header'}'`
14702 { echo "$as_me:$LINENO: result: $ac_res" >&5
14703 echo "${ECHO_T}$ac_res" >&6; }
14705 # Is the header compilable?
14706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14708 cat >conftest.$ac_ext <<_ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714 $ac_includes_default
14715 #include <$ac_header>
14717 rm -f conftest.$ac_objext
14718 if { (ac_try="$ac_compile"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14724 (eval "$ac_compile") 2>conftest.er1
14726 grep -v '^ *+' conftest.er1 >conftest.err
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } && {
14731 test -z "$ac_c_werror_flag" ||
14732 test ! -s conftest.err
14733 } && test -s conftest.$ac_objext; then
14734 ac_header_compiler=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 ac_header_compiler=no
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14744 echo "${ECHO_T}$ac_header_compiler" >&6; }
14746 # Is the header present?
14747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <$ac_header>
14757 if { (ac_try="$ac_cpp conftest.$ac_ext"
14758 case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14765 grep -v '^ *+' conftest.er1 >conftest.err
14767 cat conftest.err >&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } >/dev/null && {
14770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14771 test ! -s conftest.err
14773 ac_header_preproc=yes
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_header_preproc=no
14781 rm -f conftest.err conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14808 ## --------------------------------------------- ##
14809 ## Report this to <http://www.openldap.org/its/> ##
14810 ## --------------------------------------------- ##
14812 ) | sed "s/^/$as_me: WARNING: /" >&2
14815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 eval "$as_ac_Header=\$ac_header_preproc"
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823 { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14828 cat >>confdefs.h <<_ACEOF
14829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14837 if test "$ac_cv_mingw32" = yes \
14838 -o "$ac_cv_interix" = yes \
14839 -o "$ol_cv_msvc" = yes
14843 for ac_header in winsock.h winsock2.h
14845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_res=`eval echo '${'$as_ac_Header'}'`
14853 { echo "$as_me:$LINENO: result: $ac_res" >&5
14854 echo "${ECHO_T}$ac_res" >&6; }
14856 # Is the header compilable?
14857 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14858 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 $ac_includes_default
14866 #include <$ac_header>
14868 rm -f conftest.$ac_objext
14869 if { (ac_try="$ac_compile"
14870 case "(($ac_try" in
14871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872 *) ac_try_echo=$ac_try;;
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875 (eval "$ac_compile") 2>conftest.er1
14877 grep -v '^ *+' conftest.er1 >conftest.err
14879 cat conftest.err >&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); } && {
14882 test -z "$ac_c_werror_flag" ||
14883 test ! -s conftest.err
14884 } && test -s conftest.$ac_objext; then
14885 ac_header_compiler=yes
14887 echo "$as_me: failed program was:" >&5
14888 sed 's/^/| /' conftest.$ac_ext >&5
14890 ac_header_compiler=no
14893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14894 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14895 echo "${ECHO_T}$ac_header_compiler" >&6; }
14897 # Is the header present?
14898 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14899 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 #include <$ac_header>
14908 if { (ac_try="$ac_cpp conftest.$ac_ext"
14909 case "(($ac_try" in
14910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14911 *) ac_try_echo=$ac_try;;
14913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14916 grep -v '^ *+' conftest.er1 >conftest.err
14918 cat conftest.err >&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); } >/dev/null && {
14921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14922 test ! -s conftest.err
14924 ac_header_preproc=yes
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_header_preproc=no
14932 rm -f conftest.err conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14934 echo "${ECHO_T}$ac_header_preproc" >&6; }
14936 # So? What about this header?
14937 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14940 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14942 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14943 ac_header_preproc=yes
14946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14947 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14949 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14951 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14953 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14957 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14959 ## --------------------------------------------- ##
14960 ## Report this to <http://www.openldap.org/its/> ##
14961 ## --------------------------------------------- ##
14963 ) | sed "s/^/$as_me: WARNING: /" >&2
14966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14971 eval "$as_ac_Header=\$ac_header_preproc"
14973 ac_res=`eval echo '${'$as_ac_Header'}'`
14974 { echo "$as_me:$LINENO: result: $ac_res" >&5
14975 echo "${ECHO_T}$ac_res" >&6; }
14978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14979 cat >>confdefs.h <<_ACEOF
14980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14990 for ac_header in resolv.h
14992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14996 echo $ECHO_N "(cached) $ECHO_C" >&6
14998 cat >conftest.$ac_ext <<_ACEOF
15001 cat confdefs.h >>conftest.$ac_ext
15002 cat >>conftest.$ac_ext <<_ACEOF
15003 /* end confdefs.h. */
15004 $ac_includes_default
15005 #include <netinet/in.h>
15008 #include <$ac_header>
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_compile") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest.$ac_objext; then
15027 eval "$as_ac_Header=yes"
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 eval "$as_ac_Header=no"
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 ac_res=`eval echo '${'$as_ac_Header'}'`
15038 { echo "$as_me:$LINENO: result: $ac_res" >&5
15039 echo "${ECHO_T}$ac_res" >&6; }
15040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15041 cat >>confdefs.h <<_ACEOF
15042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15051 for ac_header in netinet/tcp.h
15053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 cat >conftest.$ac_ext <<_ACEOF
15062 cat confdefs.h >>conftest.$ac_ext
15063 cat >>conftest.$ac_ext <<_ACEOF
15064 /* end confdefs.h. */
15065 $ac_includes_default
15066 #include <netinet/in.h>
15069 #include <$ac_header>
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075 *) ac_try_echo=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_compile") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1 >conftest.err
15082 cat conftest.err >&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } && {
15085 test -z "$ac_c_werror_flag" ||
15086 test ! -s conftest.err
15087 } && test -s conftest.$ac_objext; then
15088 eval "$as_ac_Header=yes"
15090 echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15093 eval "$as_ac_Header=no"
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099 { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15112 for ac_header in sys/ucred.h
15114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15118 echo $ECHO_N "(cached) $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 $ac_includes_default
15127 #ifdef HAVE_SYS_PARAM_H
15128 #include <sys/param.h>
15132 #include <$ac_header>
15134 rm -f conftest.$ac_objext
15135 if { (ac_try="$ac_compile"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_compile") 2>conftest.er1
15143 grep -v '^ *+' conftest.er1 >conftest.err
15145 cat conftest.err >&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && {
15148 test -z "$ac_c_werror_flag" ||
15149 test ! -s conftest.err
15150 } && test -s conftest.$ac_objext; then
15151 eval "$as_ac_Header=yes"
15153 echo "$as_me: failed program was:" >&5
15154 sed 's/^/| /' conftest.$ac_ext >&5
15156 eval "$as_ac_Header=no"
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15165 cat >>confdefs.h <<_ACEOF
15166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15177 for ac_func in sigaction sigset
15179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15193 #define $ac_func innocuous_$ac_func
15195 /* System header to define __stub macros and hopefully few prototypes,
15196 which can conflict with char $ac_func (); below.
15197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15198 <limits.h> exists even on freestanding compilers. */
15201 # include <limits.h>
15203 # include <assert.h>
15208 /* Override any GCC internal prototype to avoid an error.
15209 Use char because int might match the return type of a GCC
15210 builtin and then its argument prototype would still apply. */
15215 /* The GNU C library defines this for functions which it implements
15216 to always fail with ENOSYS. Some functions are actually named
15217 something starting with __ and the normal name is an alias. */
15218 #if defined __stub_$ac_func || defined __stub___$ac_func
15225 return $ac_func ();
15230 rm -f conftest.$ac_objext conftest$ac_exeext
15231 if { (ac_try="$ac_link"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_link") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } && {
15244 test -z "$ac_c_werror_flag" ||
15245 test ! -s conftest.err
15246 } && test -s conftest$ac_exeext &&
15247 $as_test_x conftest$ac_exeext; then
15248 eval "$as_ac_var=yes"
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 eval "$as_ac_var=no"
15256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15257 conftest$ac_exeext conftest.$ac_ext
15259 ac_res=`eval echo '${'$as_ac_var'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15262 if test `eval echo '${'$as_ac_var'}'` = yes; then
15263 cat >>confdefs.h <<_ACEOF
15264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15271 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15273 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15274 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15275 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15276 echo $ECHO_N "(cached) $ECHO_C" >&6
15278 ac_check_lib_save_LIBS=$LIBS
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15287 /* Override any GCC internal prototype to avoid an error.
15288 Use char because int might match the return type of a GCC
15289 builtin and then its argument prototype would still apply. */
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (ac_try="$ac_link"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_link") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } && {
15316 test -z "$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 } && test -s conftest$ac_exeext &&
15319 $as_test_x conftest$ac_exeext; then
15320 ac_cv_lib_V3_sigset=yes
15322 echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.$ac_ext >&5
15325 ac_cv_lib_V3_sigset=no
15328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15329 conftest$ac_exeext conftest.$ac_ext
15330 LIBS=$ac_check_lib_save_LIBS
15332 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15333 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15334 if test $ac_cv_lib_V3_sigset = yes; then
15335 cat >>confdefs.h <<_ACEOF
15336 #define HAVE_LIBV3 1
15345 if test $ol_cv_msvc = yes ; then
15349 if test "$ac_cv_header_winsock_h" = yes; then
15350 { echo "$as_me:$LINENO: checking for winsock" >&5
15351 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15352 if test "${ol_cv_winsock+set}" = set; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 for curlib in none ws2_32 wsock32; do
15358 if test $curlib != none ; then
15359 LIBS="$save_LIBS -l$curlib"
15361 cat >conftest.$ac_ext <<_ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h. */
15367 #include <winsock.h>
15374 select(0,NULL,NULL,NULL,NULL);
15376 gethostname(NULL,0);
15382 rm -f conftest.$ac_objext conftest$ac_exeext
15383 if { (ac_try="$ac_link"
15384 case "(($ac_try" in
15385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15386 *) ac_try_echo=$ac_try;;
15388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15389 (eval "$ac_link") 2>conftest.er1
15391 grep -v '^ *+' conftest.er1 >conftest.err
15393 cat conftest.err >&5
15394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15395 (exit $ac_status); } && {
15396 test -z "$ac_c_werror_flag" ||
15397 test ! -s conftest.err
15398 } && test -s conftest$ac_exeext &&
15399 $as_test_x conftest$ac_exeext; then
15400 ol_cv_winsock=$curlib
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15409 conftest$ac_exeext conftest.$ac_ext
15411 test "$ol_cv_winsock" != no && break
15416 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15417 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15419 if test $ol_cv_winsock != no ; then
15421 cat >>confdefs.h <<\_ACEOF
15422 #define HAVE_WINSOCK 1
15425 ac_cv_func_socket=yes
15426 ac_cv_func_select=yes
15427 ac_cv_func_closesocket=yes
15428 ac_cv_func_gethostname=yes
15430 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15431 LIBS="$LIBS -l$ol_cv_winsock"
15434 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15436 cat >>confdefs.h <<\_ACEOF
15437 #define HAVE_WINSOCK2 1
15445 { echo "$as_me:$LINENO: checking for socket" >&5
15446 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15447 if test "${ac_cv_func_socket+set}" = set; then
15448 echo $ECHO_N "(cached) $ECHO_C" >&6
15450 cat >conftest.$ac_ext <<_ACEOF
15453 cat confdefs.h >>conftest.$ac_ext
15454 cat >>conftest.$ac_ext <<_ACEOF
15455 /* end confdefs.h. */
15456 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15458 #define socket innocuous_socket
15460 /* System header to define __stub macros and hopefully few prototypes,
15461 which can conflict with char socket (); below.
15462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15463 <limits.h> exists even on freestanding compilers. */
15466 # include <limits.h>
15468 # include <assert.h>
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15480 /* The GNU C library defines this for functions which it implements
15481 to always fail with ENOSYS. Some functions are actually named
15482 something starting with __ and the normal name is an alias. */
15483 #if defined __stub_socket || defined __stub___socket
15495 rm -f conftest.$ac_objext conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>conftest.er1
15504 grep -v '^ *+' conftest.er1 >conftest.err
15506 cat conftest.err >&5
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); } && {
15509 test -z "$ac_c_werror_flag" ||
15510 test ! -s conftest.err
15511 } && test -s conftest$ac_exeext &&
15512 $as_test_x conftest$ac_exeext; then
15513 ac_cv_func_socket=yes
15515 echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15518 ac_cv_func_socket=no
15521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15522 conftest$ac_exeext conftest.$ac_ext
15524 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15525 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15526 if test $ac_cv_func_socket = yes; then
15531 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15532 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15533 if test "${ac_cv_lib_socket_main+set}" = set; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 ac_check_lib_save_LIBS=$LIBS
15537 LIBS="-lsocket $LIBS"
15538 cat >conftest.$ac_ext <<_ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_c_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext &&
15571 $as_test_x conftest$ac_exeext; then
15572 ac_cv_lib_socket_main=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_cv_lib_socket_main=no
15580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15581 conftest$ac_exeext conftest.$ac_ext
15582 LIBS=$ac_check_lib_save_LIBS
15584 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15585 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15586 if test $ac_cv_lib_socket_main = yes; then
15587 cat >>confdefs.h <<_ACEOF
15588 #define HAVE_LIBSOCKET 1
15591 LIBS="-lsocket $LIBS"
15596 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15597 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15598 if test "${ac_cv_lib_net_main+set}" = set; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15601 ac_check_lib_save_LIBS=$LIBS
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15619 rm -f conftest.$ac_objext conftest$ac_exeext
15620 if { (ac_try="$ac_link"
15621 case "(($ac_try" in
15622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15623 *) ac_try_echo=$ac_try;;
15625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15626 (eval "$ac_link") 2>conftest.er1
15628 grep -v '^ *+' conftest.er1 >conftest.err
15630 cat conftest.err >&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); } && {
15633 test -z "$ac_c_werror_flag" ||
15634 test ! -s conftest.err
15635 } && test -s conftest$ac_exeext &&
15636 $as_test_x conftest$ac_exeext; then
15637 ac_cv_lib_net_main=yes
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_net_main=no
15645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15646 conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15650 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15651 if test $ac_cv_lib_net_main = yes; then
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_LIBNET 1
15661 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15662 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15663 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15664 echo $ECHO_N "(cached) $ECHO_C" >&6
15666 ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lnsl_s $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15684 rm -f conftest.$ac_objext conftest$ac_exeext
15685 if { (ac_try="$ac_link"
15686 case "(($ac_try" in
15687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15688 *) ac_try_echo=$ac_try;;
15690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15691 (eval "$ac_link") 2>conftest.er1
15693 grep -v '^ *+' conftest.er1 >conftest.err
15695 cat conftest.err >&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } && {
15698 test -z "$ac_c_werror_flag" ||
15699 test ! -s conftest.err
15700 } && test -s conftest$ac_exeext &&
15701 $as_test_x conftest$ac_exeext; then
15702 ac_cv_lib_nsl_s_main=yes
15704 echo "$as_me: failed program was:" >&5
15705 sed 's/^/| /' conftest.$ac_ext >&5
15707 ac_cv_lib_nsl_s_main=no
15710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15711 conftest$ac_exeext conftest.$ac_ext
15712 LIBS=$ac_check_lib_save_LIBS
15714 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15715 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15716 if test $ac_cv_lib_nsl_s_main = yes; then
15717 cat >>confdefs.h <<_ACEOF
15718 #define HAVE_LIBNSL_S 1
15721 LIBS="-lnsl_s $LIBS"
15726 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15727 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15728 if test "${ac_cv_lib_nsl_main+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15731 ac_check_lib_save_LIBS=$LIBS
15733 cat >conftest.$ac_ext <<_ACEOF
15736 cat confdefs.h >>conftest.$ac_ext
15737 cat >>conftest.$ac_ext <<_ACEOF
15738 /* end confdefs.h. */
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (ac_try="$ac_link"
15751 case "(($ac_try" in
15752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753 *) ac_try_echo=$ac_try;;
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756 (eval "$ac_link") 2>conftest.er1
15758 grep -v '^ *+' conftest.er1 >conftest.err
15760 cat conftest.err >&5
15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext &&
15766 $as_test_x conftest$ac_exeext; then
15767 ac_cv_lib_nsl_main=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_lib_nsl_main=no
15775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15776 conftest$ac_exeext conftest.$ac_ext
15777 LIBS=$ac_check_lib_save_LIBS
15779 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15780 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15781 if test $ac_cv_lib_nsl_main = yes; then
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_LIBNSL 1
15791 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15792 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15793 if test "${ac_cv_lib_inet_socket+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 ac_check_lib_save_LIBS=$LIBS
15797 LIBS="-linet $LIBS"
15798 cat >conftest.$ac_ext <<_ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15805 /* Override any GCC internal prototype to avoid an error.
15806 Use char because int might match the return type of a GCC
15807 builtin and then its argument prototype would still apply. */
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_c_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext &&
15837 $as_test_x conftest$ac_exeext; then
15838 ac_cv_lib_inet_socket=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_cv_lib_inet_socket=no
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847 conftest$ac_exeext conftest.$ac_ext
15848 LIBS=$ac_check_lib_save_LIBS
15850 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15851 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15852 if test $ac_cv_lib_inet_socket = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define HAVE_LIBINET 1
15857 LIBS="-linet $LIBS"
15862 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15863 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15864 if test "${ac_cv_lib_gen_main+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15867 ac_check_lib_save_LIBS=$LIBS
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (ac_try="$ac_link"
15887 case "(($ac_try" in
15888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889 *) ac_try_echo=$ac_try;;
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892 (eval "$ac_link") 2>conftest.er1
15894 grep -v '^ *+' conftest.er1 >conftest.err
15896 cat conftest.err >&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } && {
15899 test -z "$ac_c_werror_flag" ||
15900 test ! -s conftest.err
15901 } && test -s conftest$ac_exeext &&
15902 $as_test_x conftest$ac_exeext; then
15903 ac_cv_lib_gen_main=yes
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_cv_lib_gen_main=no
15911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15912 conftest$ac_exeext conftest.$ac_ext
15913 LIBS=$ac_check_lib_save_LIBS
15915 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15916 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15917 if test $ac_cv_lib_gen_main = yes; then
15918 cat >>confdefs.h <<_ACEOF
15919 #define HAVE_LIBGEN 1
15930 { echo "$as_me:$LINENO: checking for select" >&5
15931 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15932 if test "${ac_cv_func_select+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 /* Define select to an innocuous variant, in case <limits.h> declares select.
15942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15943 #define select innocuous_select
15945 /* System header to define __stub macros and hopefully few prototypes,
15946 which can conflict with char select (); below.
15947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15948 <limits.h> exists even on freestanding compilers. */
15951 # include <limits.h>
15953 # include <assert.h>
15958 /* Override any GCC internal prototype to avoid an error.
15959 Use char because int might match the return type of a GCC
15960 builtin and then its argument prototype would still apply. */
15965 /* The GNU C library defines this for functions which it implements
15966 to always fail with ENOSYS. Some functions are actually named
15967 something starting with __ and the normal name is an alias. */
15968 #if defined __stub_select || defined __stub___select
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (ac_try="$ac_link"
15982 case "(($ac_try" in
15983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15984 *) ac_try_echo=$ac_try;;
15986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15987 (eval "$ac_link") 2>conftest.er1
15989 grep -v '^ *+' conftest.er1 >conftest.err
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } && {
15994 test -z "$ac_c_werror_flag" ||
15995 test ! -s conftest.err
15996 } && test -s conftest$ac_exeext &&
15997 $as_test_x conftest$ac_exeext; then
15998 ac_cv_func_select=yes
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16003 ac_cv_func_select=no
16006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16007 conftest$ac_exeext conftest.$ac_ext
16009 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16010 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16011 if test $ac_cv_func_select = yes; then
16014 { { echo "$as_me:$LINENO: error: select() required." >&5
16015 echo "$as_me: error: select() required." >&2;}
16016 { (exit 1); exit 1; }; }
16020 if test "${ac_cv_header_winsock_h}" != yes; then
16023 for ac_header in sys/select.h sys/socket.h
16025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 ac_res=`eval echo '${'$as_ac_Header'}'`
16033 { echo "$as_me:$LINENO: result: $ac_res" >&5
16034 echo "${ECHO_T}$ac_res" >&6; }
16036 # Is the header compilable?
16037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 $ac_includes_default
16046 #include <$ac_header>
16048 rm -f conftest.$ac_objext
16049 if { (ac_try="$ac_compile"
16050 case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_compile") 2>conftest.er1
16057 grep -v '^ *+' conftest.er1 >conftest.err
16059 cat conftest.err >&5
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); } && {
16062 test -z "$ac_c_werror_flag" ||
16063 test ! -s conftest.err
16064 } && test -s conftest.$ac_objext; then
16065 ac_header_compiler=yes
16067 echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16070 ac_header_compiler=no
16073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16075 echo "${ECHO_T}$ac_header_compiler" >&6; }
16077 # Is the header present?
16078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16080 cat >conftest.$ac_ext <<_ACEOF
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 #include <$ac_header>
16088 if { (ac_try="$ac_cpp conftest.$ac_ext"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16104 ac_header_preproc=yes
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16109 ac_header_preproc=no
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16139 ## --------------------------------------------- ##
16140 ## Report this to <http://www.openldap.org/its/> ##
16141 ## --------------------------------------------- ##
16143 ) | sed "s/^/$as_me: WARNING: /" >&2
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=\$ac_header_preproc"
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159 cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16167 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16168 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16169 if test "${ac_cv_func_select_args+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16173 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16174 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16175 cat >conftest.$ac_ext <<_ACEOF
16178 cat confdefs.h >>conftest.$ac_ext
16179 cat >>conftest.$ac_ext <<_ACEOF
16180 /* end confdefs.h. */
16181 $ac_includes_default
16182 #ifdef HAVE_SYS_SELECT_H
16183 # include <sys/select.h>
16185 #ifdef HAVE_SYS_SOCKET_H
16186 # include <sys/socket.h>
16192 extern int select ($ac_arg1,
16193 $ac_arg234, $ac_arg234, $ac_arg234,
16199 rm -f conftest.$ac_objext
16200 if { (ac_try="$ac_compile"
16201 case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_compile") 2>conftest.er1
16208 grep -v '^ *+' conftest.er1 >conftest.err
16210 cat conftest.err >&5
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); } && {
16213 test -z "$ac_c_werror_flag" ||
16214 test ! -s conftest.err
16215 } && test -s conftest.$ac_objext; then
16216 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 # Provide a safe default value.
16229 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16232 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16233 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16234 ac_save_IFS=$IFS; IFS=','
16235 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16239 cat >>confdefs.h <<_ACEOF
16240 #define SELECT_TYPE_ARG1 $1
16244 cat >>confdefs.h <<_ACEOF
16245 #define SELECT_TYPE_ARG234 ($2)
16249 cat >>confdefs.h <<_ACEOF
16250 #define SELECT_TYPE_ARG5 ($3)
16259 for ac_func in poll
16261 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16263 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16275 #define $ac_func innocuous_$ac_func
16277 /* System header to define __stub macros and hopefully few prototypes,
16278 which can conflict with char $ac_func (); below.
16279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280 <limits.h> exists even on freestanding compilers. */
16283 # include <limits.h>
16285 # include <assert.h>
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16307 return $ac_func ();
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 eval "$as_ac_var=yes"
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 eval "$as_ac_var=no"
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16352 if test $ac_cv_func_poll = yes; then
16355 for ac_header in poll.h sys/poll.h
16357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16362 echo $ECHO_N "(cached) $ECHO_C" >&6
16364 ac_res=`eval echo '${'$as_ac_Header'}'`
16365 { echo "$as_me:$LINENO: result: $ac_res" >&5
16366 echo "${ECHO_T}$ac_res" >&6; }
16368 # Is the header compilable?
16369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16371 cat >conftest.$ac_ext <<_ACEOF
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16377 $ac_includes_default
16378 #include <$ac_header>
16380 rm -f conftest.$ac_objext
16381 if { (ac_try="$ac_compile"
16382 case "(($ac_try" in
16383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_compile") 2>conftest.er1
16389 grep -v '^ *+' conftest.er1 >conftest.err
16391 cat conftest.err >&5
16392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16393 (exit $ac_status); } && {
16394 test -z "$ac_c_werror_flag" ||
16395 test ! -s conftest.err
16396 } && test -s conftest.$ac_objext; then
16397 ac_header_compiler=yes
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 ac_header_compiler=no
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16407 echo "${ECHO_T}$ac_header_compiler" >&6; }
16409 # Is the header present?
16410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 #include <$ac_header>
16420 if { (ac_try="$ac_cpp conftest.$ac_ext"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1 >conftest.err
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } >/dev/null && {
16433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16436 ac_header_preproc=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_preproc=no
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448 # So? What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ## --------------------------------------------- ##
16472 ## Report this to <http://www.openldap.org/its/> ##
16473 ## --------------------------------------------- ##
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 eval "$as_ac_Header=\$ac_header_preproc"
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16502 for ac_header in sys/epoll.h
16504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_res=`eval echo '${'$as_ac_Header'}'`
16512 { echo "$as_me:$LINENO: result: $ac_res" >&5
16513 echo "${ECHO_T}$ac_res" >&6; }
16515 # Is the header compilable?
16516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16518 cat >conftest.$ac_ext <<_ACEOF
16521 cat confdefs.h >>conftest.$ac_ext
16522 cat >>conftest.$ac_ext <<_ACEOF
16523 /* end confdefs.h. */
16524 $ac_includes_default
16525 #include <$ac_header>
16527 rm -f conftest.$ac_objext
16528 if { (ac_try="$ac_compile"
16529 case "(($ac_try" in
16530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16531 *) ac_try_echo=$ac_try;;
16533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16534 (eval "$ac_compile") 2>conftest.er1
16536 grep -v '^ *+' conftest.er1 >conftest.err
16538 cat conftest.err >&5
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); } && {
16541 test -z "$ac_c_werror_flag" ||
16542 test ! -s conftest.err
16543 } && test -s conftest.$ac_objext; then
16544 ac_header_compiler=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_header_compiler=no
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16554 echo "${ECHO_T}$ac_header_compiler" >&6; }
16556 # Is the header present?
16557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 #include <$ac_header>
16567 if { (ac_try="$ac_cpp conftest.$ac_ext"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } >/dev/null && {
16580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16583 ac_header_preproc=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.$ac_ext >&5
16588 ac_header_preproc=no
16591 rm -f conftest.err conftest.$ac_ext
16592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16593 echo "${ECHO_T}$ac_header_preproc" >&6; }
16595 # So? What about this header?
16596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16602 ac_header_preproc=yes
16605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16618 ## --------------------------------------------- ##
16619 ## Report this to <http://www.openldap.org/its/> ##
16620 ## --------------------------------------------- ##
16622 ) | sed "s/^/$as_me: WARNING: /" >&2
16625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16628 echo $ECHO_N "(cached) $ECHO_C" >&6
16630 eval "$as_ac_Header=\$ac_header_preproc"
16632 ac_res=`eval echo '${'$as_ac_Header'}'`
16633 { echo "$as_me:$LINENO: result: $ac_res" >&5
16634 echo "${ECHO_T}$ac_res" >&6; }
16637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16638 cat >>confdefs.h <<_ACEOF
16639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16646 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16647 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16648 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16649 if test "$cross_compiling" = yes; then
16650 { echo "$as_me:$LINENO: result: no" >&5
16651 echo "${ECHO_T}no" >&6; }
16653 cat >conftest.$ac_ext <<_ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h. */
16659 int main(int argc, char **argv)
16661 int epfd = epoll_create(256);
16662 exit (epfd == -1 ? 1 : 0);
16665 rm -f conftest$ac_exeext
16666 if { (ac_try="$ac_link"
16667 case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16672 (eval "$ac_link") 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16676 { (case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_try") 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 { echo "$as_me:$LINENO: result: yes" >&5
16686 echo "${ECHO_T}yes" >&6; }
16688 cat >>confdefs.h <<\_ACEOF
16689 #define HAVE_EPOLL 1
16693 echo "$as_me: program exited with status $ac_status" >&5
16694 echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.$ac_ext >&5
16697 ( exit $ac_status )
16698 { echo "$as_me:$LINENO: result: no" >&5
16699 echo "${ECHO_T}no" >&6; }
16701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16708 for ac_header in sys/devpoll.h
16710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16715 echo $ECHO_N "(cached) $ECHO_C" >&6
16717 ac_res=`eval echo '${'$as_ac_Header'}'`
16718 { echo "$as_me:$LINENO: result: $ac_res" >&5
16719 echo "${ECHO_T}$ac_res" >&6; }
16721 # Is the header compilable?
16722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16724 cat >conftest.$ac_ext <<_ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 $ac_includes_default
16731 #include <$ac_header>
16733 rm -f conftest.$ac_objext
16734 if { (ac_try="$ac_compile"
16735 case "(($ac_try" in
16736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737 *) ac_try_echo=$ac_try;;
16739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16740 (eval "$ac_compile") 2>conftest.er1
16742 grep -v '^ *+' conftest.er1 >conftest.err
16744 cat conftest.err >&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } && {
16747 test -z "$ac_c_werror_flag" ||
16748 test ! -s conftest.err
16749 } && test -s conftest.$ac_objext; then
16750 ac_header_compiler=yes
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16755 ac_header_compiler=no
16758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16760 echo "${ECHO_T}$ac_header_compiler" >&6; }
16762 # Is the header present?
16763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 #include <$ac_header>
16773 if { (ac_try="$ac_cpp conftest.$ac_ext"
16774 case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16781 grep -v '^ *+' conftest.er1 >conftest.err
16783 cat conftest.err >&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); } >/dev/null && {
16786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16787 test ! -s conftest.err
16789 ac_header_preproc=yes
16791 echo "$as_me: failed program was:" >&5
16792 sed 's/^/| /' conftest.$ac_ext >&5
16794 ac_header_preproc=no
16797 rm -f conftest.err conftest.$ac_ext
16798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16799 echo "${ECHO_T}$ac_header_preproc" >&6; }
16801 # So? What about this header?
16802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16808 ac_header_preproc=yes
16811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16824 ## --------------------------------------------- ##
16825 ## Report this to <http://www.openldap.org/its/> ##
16826 ## --------------------------------------------- ##
16828 ) | sed "s/^/$as_me: WARNING: /" >&2
16831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16834 echo $ECHO_N "(cached) $ECHO_C" >&6
16836 eval "$as_ac_Header=\$ac_header_preproc"
16838 ac_res=`eval echo '${'$as_ac_Header'}'`
16839 { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16844 cat >>confdefs.h <<_ACEOF
16845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16852 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16853 -a "${ac_cv_header_poll_h}" = yes ; \
16855 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16856 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16857 if test "$cross_compiling" = yes; then
16858 { echo "$as_me:$LINENO: result: no" >&5
16859 echo "${ECHO_T}no" >&6; }
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 int main(int argc, char **argv)
16869 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16870 exit (devpollfd == -1 ? 1 : 0);
16873 rm -f conftest$ac_exeext
16874 if { (ac_try="$ac_link"
16875 case "(($ac_try" in
16876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16877 *) ac_try_echo=$ac_try;;
16879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16880 (eval "$ac_link") 2>&5
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16884 { (case "(($ac_try" in
16885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886 *) ac_try_echo=$ac_try;;
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889 (eval "$ac_try") 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 { echo "$as_me:$LINENO: result: yes" >&5
16894 echo "${ECHO_T}yes" >&6; }
16896 cat >>confdefs.h <<\_ACEOF
16897 #define HAVE_DEVPOLL 1
16901 echo "$as_me: program exited with status $ac_status" >&5
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ( exit $ac_status )
16906 { echo "$as_me:$LINENO: result: no" >&5
16907 echo "${ECHO_T}no" >&6; }
16909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16915 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16916 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16917 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16929 #include <sys/types.h>
16932 #include <stdlib.h>
16937 char *c = (char *) *sys_errlist
16942 rm -f conftest.$ac_objext
16943 if { (ac_try="$ac_compile"
16944 case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_compile") 2>conftest.er1
16951 grep -v '^ *+' conftest.er1 >conftest.err
16953 cat conftest.err >&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); } && {
16956 test -z "$ac_c_werror_flag" ||
16957 test ! -s conftest.err
16958 } && test -s conftest.$ac_objext; then
16959 ol_cv_dcl_sys_errlist=yes
16960 ol_cv_have_sys_errlist=yes
16962 echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ol_cv_dcl_sys_errlist=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16970 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16971 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16973 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16974 if test $ol_cv_dcl_sys_errlist = no ; then
16976 cat >>confdefs.h <<\_ACEOF
16977 #define DECL_SYS_ERRLIST 1
16981 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16982 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16983 if test "${ol_cv_have_sys_errlist+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16997 char *c = (char *) *sys_errlist
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } && {
17016 test -z "$ac_c_werror_flag" ||
17017 test ! -s conftest.err
17018 } && test -s conftest$ac_exeext &&
17019 $as_test_x conftest$ac_exeext; then
17020 ol_cv_have_sys_errlist=yes
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ol_cv_have_sys_errlist=no
17028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17029 conftest$ac_exeext conftest.$ac_ext
17031 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17032 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17034 if test $ol_cv_have_sys_errlist = yes ; then
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_SYS_ERRLIST 1
17043 for ac_func in strerror strerror_r
17045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 cat >conftest.$ac_ext <<_ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17067 # include <limits.h>
17069 # include <assert.h>
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 return $ac_func ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } && {
17110 test -z "$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 } && test -s conftest$ac_exeext &&
17113 $as_test_x conftest$ac_exeext; then
17114 eval "$as_ac_var=yes"
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 eval "$as_ac_var=no"
17122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17123 conftest$ac_exeext conftest.$ac_ext
17125 ac_res=`eval echo '${'$as_ac_var'}'`
17126 { echo "$as_me:$LINENO: result: $ac_res" >&5
17127 echo "${ECHO_T}$ac_res" >&6; }
17128 if test `eval echo '${'$as_ac_var'}'` = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17136 ol_cv_func_strerror_r=no
17137 if test "${ac_cv_func_strerror_r}" = yes ; then
17138 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17139 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17140 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17144 cat >conftest.$ac_ext <<_ACEOF
17147 cat confdefs.h >>conftest.$ac_ext
17148 cat >>conftest.$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17150 #include <string.h>
17152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17153 $EGREP "strerror_r" >/dev/null 2>&1; then
17154 ol_decl_strerror_r=yes
17156 ol_decl_strerror_r=no
17160 if test $ol_decl_strerror_r = yes ; then
17161 cat >conftest.$ac_ext <<_ACEOF
17164 cat confdefs.h >>conftest.$ac_ext
17165 cat >>conftest.$ac_ext <<_ACEOF
17166 /* end confdefs.h. */
17167 #include <string.h>
17171 /* from autoconf 2.59 */
17173 char x = *strerror_r (0, buf, sizeof buf);
17174 char *p = strerror_r (0, buf, sizeof buf);
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest.$ac_objext; then
17197 ol_cv_nonposix_strerror_r=yes
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ol_cv_nonposix_strerror_r=no
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17207 if test "$cross_compiling" = yes; then
17208 ol_cv_nonposix_strerror=no
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17220 strerror_r( 1, buf, sizeof buf );
17221 exit( buf[0] == 0 );
17225 rm -f conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>&5
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17236 { (case "(($ac_try" in
17237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17238 *) ac_try_echo=$ac_try;;
17240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17241 (eval "$ac_try") 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 ol_cv_nonposix_strerror_r=yes
17247 echo "$as_me: program exited with status $ac_status" >&5
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 ( exit $ac_status )
17252 ol_cv_nonposix_strerror=no
17254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17261 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17262 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17263 if test $ol_cv_nonposix_strerror_r = yes ; then
17265 cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_NONPOSIX_STRERROR_R 1
17271 elif test "${ac_cv_func_strerror}" = no ; then
17272 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17273 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17274 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17278 cat >conftest.$ac_ext <<_ACEOF
17281 cat confdefs.h >>conftest.$ac_ext
17282 cat >>conftest.$ac_ext <<_ACEOF
17283 /* end confdefs.h. */
17286 #include <sys/types.h>
17289 #include <stdlib.h>
17294 char *c = (char *) *sys_errlist
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest.$ac_objext; then
17316 ol_cv_dcl_sys_errlist=yes
17317 ol_cv_have_sys_errlist=yes
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ol_cv_dcl_sys_errlist=no
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17327 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17328 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17330 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17331 if test $ol_cv_dcl_sys_errlist = no ; then
17333 cat >>confdefs.h <<\_ACEOF
17334 #define DECL_SYS_ERRLIST 1
17338 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17339 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17340 if test "${ol_cv_have_sys_errlist+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17354 char *c = (char *) *sys_errlist
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 ol_cv_have_sys_errlist=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ol_cv_have_sys_errlist=no
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17389 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17391 if test $ol_cv_have_sys_errlist = yes ; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_SYS_ERRLIST 1
17403 for ac_header in regex.h
17405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 cat >conftest.$ac_ext <<_ACEOF
17414 cat confdefs.h >>conftest.$ac_ext
17415 cat >>conftest.$ac_ext <<_ACEOF
17416 /* end confdefs.h. */
17417 $ac_includes_default
17418 #ifdef HAVE_SYS_TYPES_H
17419 #include <sys/types.h>
17423 #include <$ac_header>
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17434 grep -v '^ *+' conftest.er1 >conftest.err
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 eval "$as_ac_Header=yes"
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 eval "$as_ac_Header=no"
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17452 ac_res=`eval echo '${'$as_ac_Header'}'`
17453 { echo "$as_me:$LINENO: result: $ac_res" >&5
17454 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h <<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17465 if test "$ac_cv_header_regex_h" != yes ; then
17466 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17467 echo "$as_me: error: POSIX regex.h required." >&2;}
17468 { (exit 1); exit 1; }; }
17470 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17471 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17472 if test "${ac_cv_search_regfree+set}" = set; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17475 ac_func_search_save_LIBS=$LIBS
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17483 /* Override any GCC internal prototype to avoid an error.
17484 Use char because int might match the return type of a GCC
17485 builtin and then its argument prototype would still apply. */
17498 for ac_lib in '' regex gnuregex; do
17499 if test -z "$ac_lib"; then
17500 ac_res="none required"
17503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17505 rm -f conftest.$ac_objext conftest$ac_exeext
17506 if { (ac_try="$ac_link"
17507 case "(($ac_try" in
17508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17509 *) ac_try_echo=$ac_try;;
17511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17512 (eval "$ac_link") 2>conftest.er1
17514 grep -v '^ *+' conftest.er1 >conftest.err
17516 cat conftest.err >&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); } && {
17519 test -z "$ac_c_werror_flag" ||
17520 test ! -s conftest.err
17521 } && test -s conftest$ac_exeext &&
17522 $as_test_x conftest$ac_exeext; then
17523 ac_cv_search_regfree=$ac_res
17525 echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17533 if test "${ac_cv_search_regfree+set}" = set; then
17537 if test "${ac_cv_search_regfree+set}" = set; then
17540 ac_cv_search_regfree=no
17542 rm conftest.$ac_ext
17543 LIBS=$ac_func_search_save_LIBS
17545 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17546 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17547 ac_res=$ac_cv_search_regfree
17548 if test "$ac_res" != no; then
17549 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17552 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17553 echo "$as_me: error: POSIX regex required." >&2;}
17554 { (exit 1); exit 1; }; }
17559 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17560 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17561 if test "${ol_cv_c_posix_regex+set}" = set; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 if test "$cross_compiling" = yes; then
17566 ol_cv_c_posix_regex=cross
17568 cat >conftest.$ac_ext <<_ACEOF
17571 cat confdefs.h >>conftest.$ac_ext
17572 cat >>conftest.$ac_ext <<_ACEOF
17573 /* end confdefs.h. */
17575 #include <sys/types.h>
17577 static char *pattern, *string;
17585 if(regcomp(&re, pattern, 0)) {
17589 string = "ALL MATCH";
17591 rc = regexec(&re, string, 0, (void*)0, 0);
17598 rm -f conftest$ac_exeext
17599 if { (ac_try="$ac_link"
17600 case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_link") 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17609 { (case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_try") 2>&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17618 ol_cv_c_posix_regex=yes
17620 echo "$as_me: program exited with status $ac_status" >&5
17621 echo "$as_me: failed program was:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ( exit $ac_status )
17625 ol_cv_c_posix_regex=no
17627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17633 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17635 if test "$ol_cv_c_posix_regex" = no ; then
17636 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17637 echo "$as_me: error: broken POSIX regex!" >&2;}
17638 { (exit 1); exit 1; }; }
17644 for ac_header in sys/uuid.h
17646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 ac_res=`eval echo '${'$as_ac_Header'}'`
17654 { echo "$as_me:$LINENO: result: $ac_res" >&5
17655 echo "${ECHO_T}$ac_res" >&6; }
17657 # Is the header compilable?
17658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 $ac_includes_default
17667 #include <$ac_header>
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_compile") 2>conftest.er1
17678 grep -v '^ *+' conftest.er1 >conftest.err
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && {
17683 test -z "$ac_c_werror_flag" ||
17684 test ! -s conftest.err
17685 } && test -s conftest.$ac_objext; then
17686 ac_header_compiler=yes
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17691 ac_header_compiler=no
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17696 echo "${ECHO_T}$ac_header_compiler" >&6; }
17698 # Is the header present?
17699 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17700 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 #include <$ac_header>
17709 if { (ac_try="$ac_cpp conftest.$ac_ext"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } >/dev/null && {
17722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17725 ac_header_preproc=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_header_preproc=no
17733 rm -f conftest.err conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17735 echo "${ECHO_T}$ac_header_preproc" >&6; }
17737 # So? What about this header?
17738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17744 ac_header_preproc=yes
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17760 ## --------------------------------------------- ##
17761 ## Report this to <http://www.openldap.org/its/> ##
17762 ## --------------------------------------------- ##
17764 ) | sed "s/^/$as_me: WARNING: /" >&2
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 eval "$as_ac_Header=\$ac_header_preproc"
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17788 if test $ac_cv_header_sys_uuid_h = yes ; then
17790 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17791 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17792 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17795 ac_func_search_save_LIBS=$LIBS
17796 cat >conftest.$ac_ext <<_ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17809 char uuid_to_str ();
17813 return uuid_to_str ();
17818 for ac_lib in '' uuid; do
17819 if test -z "$ac_lib"; then
17820 ac_res="none required"
17823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17825 rm -f conftest.$ac_objext conftest$ac_exeext
17826 if { (ac_try="$ac_link"
17827 case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_link") 2>conftest.er1
17834 grep -v '^ *+' conftest.er1 >conftest.err
17836 cat conftest.err >&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext &&
17842 $as_test_x conftest$ac_exeext; then
17843 ac_cv_search_uuid_to_str=$ac_res
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17853 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17857 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17860 ac_cv_search_uuid_to_str=no
17862 rm conftest.$ac_ext
17863 LIBS=$ac_func_search_save_LIBS
17865 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17866 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17867 ac_res=$ac_cv_search_uuid_to_str
17868 if test "$ac_res" != no; then
17869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17875 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17876 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17877 if test "${ac_cv_search_uuid_create+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 ac_func_search_save_LIBS=$LIBS
17881 cat >conftest.$ac_ext <<_ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17888 /* Override any GCC internal prototype to avoid an error.
17889 Use char because int might match the return type of a GCC
17890 builtin and then its argument prototype would still apply. */
17894 char uuid_create ();
17898 return uuid_create ();
17903 for ac_lib in '' uuid; do
17904 if test -z "$ac_lib"; then
17905 ac_res="none required"
17908 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17910 rm -f conftest.$ac_objext conftest$ac_exeext
17911 if { (ac_try="$ac_link"
17912 case "(($ac_try" in
17913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17914 *) ac_try_echo=$ac_try;;
17916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17917 (eval "$ac_link") 2>conftest.er1
17919 grep -v '^ *+' conftest.er1 >conftest.err
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && {
17924 test -z "$ac_c_werror_flag" ||
17925 test ! -s conftest.err
17926 } && test -s conftest$ac_exeext &&
17927 $as_test_x conftest$ac_exeext; then
17928 ac_cv_search_uuid_create=$ac_res
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 if test "${ac_cv_search_uuid_create+set}" = set; then
17942 if test "${ac_cv_search_uuid_create+set}" = set; then
17945 ac_cv_search_uuid_create=no
17947 rm conftest.$ac_ext
17948 LIBS=$ac_func_search_save_LIBS
17950 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17951 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17952 ac_res=$ac_cv_search_uuid_create
17953 if test "$ac_res" != no; then
17954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17962 if test $have_uuid = yes ; then
17964 cat >>confdefs.h <<\_ACEOF
17965 #define HAVE_UUID_TO_STR 1
17969 test "$ac_cv_search_uuid_to_str" = "none required" || \
17970 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17974 if test $have_uuid = no ; then
17976 for ac_header in uuid/uuid.h
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18010 grep -v '^ *+' conftest.er1 >conftest.err
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18023 ac_header_compiler=no
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18049 grep -v '^ *+' conftest.er1 >conftest.err
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18092 ## --------------------------------------------- ##
18093 ## Report this to <http://www.openldap.org/its/> ##
18094 ## --------------------------------------------- ##
18096 ) | sed "s/^/$as_me: WARNING: /" >&2
18099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18102 echo $ECHO_N "(cached) $ECHO_C" >&6
18104 eval "$as_ac_Header=\$ac_header_preproc"
18106 ac_res=`eval echo '${'$as_ac_Header'}'`
18107 { echo "$as_me:$LINENO: result: $ac_res" >&5
18108 echo "${ECHO_T}$ac_res" >&6; }
18111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18112 cat >>confdefs.h <<_ACEOF
18113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18120 if test $ac_cv_header_uuid_uuid_h = yes ; then
18122 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18123 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18124 if test "${ac_cv_search_uuid_generate+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18127 ac_func_search_save_LIBS=$LIBS
18128 cat >conftest.$ac_ext <<_ACEOF
18131 cat confdefs.h >>conftest.$ac_ext
18132 cat >>conftest.$ac_ext <<_ACEOF
18133 /* end confdefs.h. */
18135 /* Override any GCC internal prototype to avoid an error.
18136 Use char because int might match the return type of a GCC
18137 builtin and then its argument prototype would still apply. */
18141 char uuid_generate ();
18145 return uuid_generate ();
18150 for ac_lib in '' uuid; do
18151 if test -z "$ac_lib"; then
18152 ac_res="none required"
18155 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18157 rm -f conftest.$ac_objext conftest$ac_exeext
18158 if { (ac_try="$ac_link"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_link") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } && {
18171 test -z "$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18173 } && test -s conftest$ac_exeext &&
18174 $as_test_x conftest$ac_exeext; then
18175 ac_cv_search_uuid_generate=$ac_res
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18185 if test "${ac_cv_search_uuid_generate+set}" = set; then
18189 if test "${ac_cv_search_uuid_generate+set}" = set; then
18192 ac_cv_search_uuid_generate=no
18194 rm conftest.$ac_ext
18195 LIBS=$ac_func_search_save_LIBS
18197 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18198 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18199 ac_res=$ac_cv_search_uuid_generate
18200 if test "$ac_res" != no; then
18201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18207 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18208 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18209 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18212 ac_func_search_save_LIBS=$LIBS
18213 cat >conftest.$ac_ext <<_ACEOF
18216 cat confdefs.h >>conftest.$ac_ext
18217 cat >>conftest.$ac_ext <<_ACEOF
18218 /* end confdefs.h. */
18220 /* Override any GCC internal prototype to avoid an error.
18221 Use char because int might match the return type of a GCC
18222 builtin and then its argument prototype would still apply. */
18226 char uuid_unparse_lower ();
18230 return uuid_unparse_lower ();
18235 for ac_lib in '' uuid; do
18236 if test -z "$ac_lib"; then
18237 ac_res="none required"
18240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18242 rm -f conftest.$ac_objext conftest$ac_exeext
18243 if { (ac_try="$ac_link"
18244 case "(($ac_try" in
18245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246 *) ac_try_echo=$ac_try;;
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_link") 2>conftest.er1
18251 grep -v '^ *+' conftest.er1 >conftest.err
18253 cat conftest.err >&5
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && {
18256 test -z "$ac_c_werror_flag" ||
18257 test ! -s conftest.err
18258 } && test -s conftest$ac_exeext &&
18259 $as_test_x conftest$ac_exeext; then
18260 ac_cv_search_uuid_unparse_lower=$ac_res
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18274 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18277 ac_cv_search_uuid_unparse_lower=no
18279 rm conftest.$ac_ext
18280 LIBS=$ac_func_search_save_LIBS
18282 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18283 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18284 ac_res=$ac_cv_search_uuid_unparse_lower
18285 if test "$ac_res" != no; then
18286 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18294 if test $have_uuid = yes ; then
18296 cat >>confdefs.h <<\_ACEOF
18297 #define HAVE_UUID_GENERATE 1
18301 test "$ac_cv_search_uuid_generate" = "none required" || \
18302 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18307 if test $have_uuid = no ; then
18308 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18309 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18311 LIBS="$LIBS -lrpcrt4"
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18319 int __stdcall UuidCreate(void *);
18320 int __stdcall UuidToStringA(void *,void **);
18327 UuidToStringA(0,0);
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_link") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest$ac_exeext &&
18350 $as_test_x conftest$ac_exeext; then
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360 conftest$ac_exeext conftest.$ac_ext
18361 if test $need_rpcrt = yes; then
18362 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18365 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18366 echo "${ECHO_T}$need_rpcrt" >&6; }
18369 ol_cv_lib_resolver=no
18370 if test $ol_cv_lib_resolver = no ; then
18371 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18372 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18373 if test "${ol_cv_resolver_none+set}" = set; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 LIBS="$ol_RESOLVER_LIB $LIBS"
18381 cat >conftest.$ac_ext <<_ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18388 #ifdef HAVE_SYS_TYPES_H
18389 # include <sys/types.h>
18391 #include <netinet/in.h>
18392 #ifdef HAVE_ARPA_NAMESER_H
18393 # include <arpa/nameser.h>
18395 #ifdef HAVE_RESOLV_H
18396 # include <resolv.h>
18404 char *request = NULL;
18405 unsigned char reply[64*1024];
18406 unsigned char host[64*1024];
18410 /* Bind 8/9 interface */
18411 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18413 /* Bind 4 interface */
18417 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18421 /* Bind 8/9 interface */
18423 #elif defined(HFIXEDSZ)
18424 /* Bind 4 interface w/ HFIXEDSZ */
18427 /* Bind 4 interface w/o HFIXEDSZ */
18428 p += sizeof(HEADER);
18430 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18436 rm -f conftest.$ac_objext conftest$ac_exeext
18437 if { (ac_try="$ac_link"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_link") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest$ac_exeext &&
18453 $as_test_x conftest$ac_exeext; then
18454 ol_cv_resolver_none=yes
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18459 ol_cv_resolver_none=no
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463 conftest$ac_exeext conftest.$ac_ext
18468 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18469 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18471 if test $ol_cv_resolver_none = yes ; then
18472 ol_cv_lib_resolver=yes
18476 if test $ol_cv_lib_resolver = no ; then
18477 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18478 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18479 if test "${ol_cv_resolver_resolv+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18483 ol_RESOLVER_LIB=-lresolv
18485 LIBS="$ol_RESOLVER_LIB $LIBS"
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18494 #ifdef HAVE_SYS_TYPES_H
18495 # include <sys/types.h>
18497 #include <netinet/in.h>
18498 #ifdef HAVE_ARPA_NAMESER_H
18499 # include <arpa/nameser.h>
18501 #ifdef HAVE_RESOLV_H
18502 # include <resolv.h>
18510 char *request = NULL;
18511 unsigned char reply[64*1024];
18512 unsigned char host[64*1024];
18516 /* Bind 8/9 interface */
18517 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18519 /* Bind 4 interface */
18523 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18527 /* Bind 8/9 interface */
18529 #elif defined(HFIXEDSZ)
18530 /* Bind 4 interface w/ HFIXEDSZ */
18533 /* Bind 4 interface w/o HFIXEDSZ */
18534 p += sizeof(HEADER);
18536 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (ac_try="$ac_link"
18544 case "(($ac_try" in
18545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546 *) ac_try_echo=$ac_try;;
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549 (eval "$ac_link") 2>conftest.er1
18551 grep -v '^ *+' conftest.er1 >conftest.err
18553 cat conftest.err >&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); } && {
18556 test -z "$ac_c_werror_flag" ||
18557 test ! -s conftest.err
18558 } && test -s conftest$ac_exeext &&
18559 $as_test_x conftest$ac_exeext; then
18560 ol_cv_resolver_resolv=yes
18562 echo "$as_me: failed program was:" >&5
18563 sed 's/^/| /' conftest.$ac_ext >&5
18565 ol_cv_resolver_resolv=no
18568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18569 conftest$ac_exeext conftest.$ac_ext
18574 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18575 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18577 if test $ol_cv_resolver_resolv = yes ; then
18578 ol_cv_lib_resolver=-lresolv
18582 if test $ol_cv_lib_resolver = no ; then
18583 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18584 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18585 if test "${ol_cv_resolver_bind+set}" = set; then
18586 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 ol_RESOLVER_LIB=-lbind
18591 LIBS="$ol_RESOLVER_LIB $LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18600 #ifdef HAVE_SYS_TYPES_H
18601 # include <sys/types.h>
18603 #include <netinet/in.h>
18604 #ifdef HAVE_ARPA_NAMESER_H
18605 # include <arpa/nameser.h>
18607 #ifdef HAVE_RESOLV_H
18608 # include <resolv.h>
18616 char *request = NULL;
18617 unsigned char reply[64*1024];
18618 unsigned char host[64*1024];
18622 /* Bind 8/9 interface */
18623 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18625 /* Bind 4 interface */
18629 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18633 /* Bind 8/9 interface */
18635 #elif defined(HFIXEDSZ)
18636 /* Bind 4 interface w/ HFIXEDSZ */
18639 /* Bind 4 interface w/o HFIXEDSZ */
18640 p += sizeof(HEADER);
18642 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ol_cv_resolver_bind=yes
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ol_cv_resolver_bind=no
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18680 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18681 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18683 if test $ol_cv_resolver_bind = yes ; then
18684 ol_cv_lib_resolver=-lbind
18691 if test "$ol_cv_lib_resolver" != no ; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE_RES_QUERY 1
18698 if test "$ol_enable_dnssrv" != no ; then
18702 if test "$ol_cv_lib_resolver" != yes ; then
18703 LIBS="$ol_cv_lib_resolver $LIBS"
18707 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18708 if test "$ol_link_dnssrv" = no ; then
18709 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18710 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18711 { (exit 1); exit 1; }; }
18714 ol_enable_dnssrv=no
18718 for ac_func in hstrerror
18720 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18734 #define $ac_func innocuous_$ac_func
18736 /* System header to define __stub macros and hopefully few prototypes,
18737 which can conflict with char $ac_func (); below.
18738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18739 <limits.h> exists even on freestanding compilers. */
18742 # include <limits.h>
18744 # include <assert.h>
18749 /* Override any GCC internal prototype to avoid an error.
18750 Use char because int might match the return type of a GCC
18751 builtin and then its argument prototype would still apply. */
18756 /* The GNU C library defines this for functions which it implements
18757 to always fail with ENOSYS. Some functions are actually named
18758 something starting with __ and the normal name is an alias. */
18759 #if defined __stub_$ac_func || defined __stub___$ac_func
18766 return $ac_func ();
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775 *) ac_try_echo=$ac_try;;
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778 (eval "$ac_link") 2>conftest.er1
18780 grep -v '^ *+' conftest.er1 >conftest.err
18782 cat conftest.err >&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); } && {
18785 test -z "$ac_c_werror_flag" ||
18786 test ! -s conftest.err
18787 } && test -s conftest$ac_exeext &&
18788 $as_test_x conftest$ac_exeext; then
18789 eval "$as_ac_var=yes"
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 eval "$as_ac_var=no"
18797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18798 conftest$ac_exeext conftest.$ac_ext
18800 ac_res=`eval echo '${'$as_ac_var'}'`
18801 { echo "$as_me:$LINENO: result: $ac_res" >&5
18802 echo "${ECHO_T}$ac_res" >&6; }
18803 if test `eval echo '${'$as_ac_var'}'` = yes; then
18804 cat >>confdefs.h <<_ACEOF
18805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18819 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18832 #define $ac_func innocuous_$ac_func
18834 /* System header to define __stub macros and hopefully few prototypes,
18835 which can conflict with char $ac_func (); below.
18836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18837 <limits.h> exists even on freestanding compilers. */
18840 # include <limits.h>
18842 # include <assert.h>
18847 /* Override any GCC internal prototype to avoid an error.
18848 Use char because int might match the return type of a GCC
18849 builtin and then its argument prototype would still apply. */
18854 /* The GNU C library defines this for functions which it implements
18855 to always fail with ENOSYS. Some functions are actually named
18856 something starting with __ and the normal name is an alias. */
18857 #if defined __stub_$ac_func || defined __stub___$ac_func
18864 return $ac_func ();
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (ac_try="$ac_link"
18871 case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_link") 2>conftest.er1
18878 grep -v '^ *+' conftest.er1 >conftest.err
18880 cat conftest.err >&5
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); } && {
18883 test -z "$ac_c_werror_flag" ||
18884 test ! -s conftest.err
18885 } && test -s conftest$ac_exeext &&
18886 $as_test_x conftest$ac_exeext; then
18887 eval "$as_ac_var=yes"
18889 echo "$as_me: failed program was:" >&5
18890 sed 's/^/| /' conftest.$ac_ext >&5
18892 eval "$as_ac_var=no"
18895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18896 conftest$ac_exeext conftest.$ac_ext
18898 ac_res=`eval echo '${'$as_ac_var'}'`
18899 { echo "$as_me:$LINENO: result: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18901 if test `eval echo '${'$as_ac_var'}'` = yes; then
18902 cat >>confdefs.h <<_ACEOF
18903 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18911 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18912 if test $ol_enable_ipv6 = yes ; then
18913 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18914 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18915 { (exit 1); exit 1; }; }
18917 elif test $ol_enable_ipv6 != no ; then
18918 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18919 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18920 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18921 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18931 # include <netinet/in.h>
18932 # ifdef INET6_ADDRSTRLEN
18933 __has_inet6_addrstrlen__;
18937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18938 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18939 ol_cv_inet6_addrstrlen=yes
18941 ol_cv_inet6_addrstrlen=no
18946 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18947 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18950 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18951 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18952 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18963 #include <sys/types.h>
18964 #include <sys/socket.h>
18970 struct sockaddr_storage ss;
18976 rm -f conftest.$ac_objext
18977 if { (ac_try="$ac_compile"
18978 case "(($ac_try" in
18979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18980 *) ac_try_echo=$ac_try;;
18982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18983 (eval "$ac_compile") 2>conftest.er1
18985 grep -v '^ *+' conftest.er1 >conftest.err
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } && {
18990 test -z "$ac_c_werror_flag" ||
18991 test ! -s conftest.err
18992 } && test -s conftest.$ac_objext; then
18993 ol_cv_struct_sockaddr_storage=yes
18995 echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.$ac_ext >&5
18998 ol_cv_struct_sockaddr_storage=no
19001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19003 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19004 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19006 if test $ol_cv_inet6_addrstrlen = yes &&
19007 test $ol_cv_struct_sockaddr_storage = yes ; then
19009 elif test $ol_enable_ipv6 = yes &&
19010 test $ol_cv_inet6_addrstrlen = no ; then
19011 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19012 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19013 { (exit 1); exit 1; }; }
19014 elif test $ol_enable_ipv6 = yes &&
19015 test $ol_cv_struct_sockaddr_storage = no ; then
19016 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19017 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19018 { (exit 1); exit 1; }; }
19022 if test $ol_enable_local != no ; then
19024 for ac_header in sys/un.h
19026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19031 echo $ECHO_N "(cached) $ECHO_C" >&6
19033 ac_res=`eval echo '${'$as_ac_Header'}'`
19034 { echo "$as_me:$LINENO: result: $ac_res" >&5
19035 echo "${ECHO_T}$ac_res" >&6; }
19037 # Is the header compilable?
19038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 $ac_includes_default
19047 #include <$ac_header>
19049 rm -f conftest.$ac_objext
19050 if { (ac_try="$ac_compile"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_compile") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest.$ac_objext; then
19066 ac_header_compiler=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_compiler=no
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <$ac_header>
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } >/dev/null && {
19102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19103 test ! -s conftest.err
19105 ac_header_preproc=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_header_preproc=no
19113 rm -f conftest.err conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19115 echo "${ECHO_T}$ac_header_preproc" >&6; }
19117 # So? What about this header?
19118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19124 ac_header_preproc=yes
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19140 ## --------------------------------------------- ##
19141 ## Report this to <http://www.openldap.org/its/> ##
19142 ## --------------------------------------------- ##
19144 ) | sed "s/^/$as_me: WARNING: /" >&2
19147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19150 echo $ECHO_N "(cached) $ECHO_C" >&6
19152 eval "$as_ac_Header=\$ac_header_preproc"
19154 ac_res=`eval echo '${'$as_ac_Header'}'`
19155 { echo "$as_me:$LINENO: result: $ac_res" >&5
19156 echo "${ECHO_T}$ac_res" >&6; }
19159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19160 cat >>confdefs.h <<_ACEOF
19161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19169 if test $ol_enable_local = auto ; then
19170 ol_enable_local=$ac_cv_header_sys_un_h
19171 elif test $ac_cv_header_sys_un_h = no ; then
19172 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19173 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19174 { (exit 1); exit 1; }; }
19179 if test $ol_with_tls = yes ; then
19184 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19186 for ac_header in openssl/ssl.h
19188 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19190 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19193 echo $ECHO_N "(cached) $ECHO_C" >&6
19195 ac_res=`eval echo '${'$as_ac_Header'}'`
19196 { echo "$as_me:$LINENO: result: $ac_res" >&5
19197 echo "${ECHO_T}$ac_res" >&6; }
19199 # Is the header compilable?
19200 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19201 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19202 cat >conftest.$ac_ext <<_ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h. */
19208 $ac_includes_default
19209 #include <$ac_header>
19211 rm -f conftest.$ac_objext
19212 if { (ac_try="$ac_compile"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19218 (eval "$ac_compile") 2>conftest.er1
19220 grep -v '^ *+' conftest.er1 >conftest.err
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } && {
19225 test -z "$ac_c_werror_flag" ||
19226 test ! -s conftest.err
19227 } && test -s conftest.$ac_objext; then
19228 ac_header_compiler=yes
19230 echo "$as_me: failed program was:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ac_header_compiler=no
19236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19238 echo "${ECHO_T}$ac_header_compiler" >&6; }
19240 # Is the header present?
19241 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19242 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19243 cat >conftest.$ac_ext <<_ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 #include <$ac_header>
19251 if { (ac_try="$ac_cpp conftest.$ac_ext"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); } >/dev/null && {
19264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19267 ac_header_preproc=yes
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19272 ac_header_preproc=no
19275 rm -f conftest.err conftest.$ac_ext
19276 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19277 echo "${ECHO_T}$ac_header_preproc" >&6; }
19279 # So? What about this header?
19280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19286 ac_header_preproc=yes
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19302 ## --------------------------------------------- ##
19303 ## Report this to <http://www.openldap.org/its/> ##
19304 ## --------------------------------------------- ##
19306 ) | sed "s/^/$as_me: WARNING: /" >&2
19309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19312 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 eval "$as_ac_Header=\$ac_header_preproc"
19316 ac_res=`eval echo '${'$as_ac_Header'}'`
19317 { echo "$as_me:$LINENO: result: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19322 cat >>confdefs.h <<_ACEOF
19323 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19331 if test $ac_cv_header_openssl_ssl_h = yes ; then
19332 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19333 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19334 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lssl -lcrypto $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19352 char SSL_library_init ();
19356 return SSL_library_init ();
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19379 ac_cv_lib_ssl_SSL_library_init=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_ssl_SSL_library_init=no
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19392 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19393 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19401 if test $have_openssl = no ; then
19402 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19403 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19422 char ssl3_accept ();
19426 return ssl3_accept ();
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_ssl_ssl3_accept=yes
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_ssl_ssl3_accept=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19462 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19463 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19472 if test $have_openssl = yes ; then
19473 ol_with_tls=openssl
19477 cat >>confdefs.h <<\_ACEOF
19478 #define HAVE_OPENSSL 1
19482 if test $need_rsaref = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_RSAREF 1
19489 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19491 TLS_LIBS="-lssl -lcrypto"
19494 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19495 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19496 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19500 cat >conftest.$ac_ext <<_ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19507 #ifdef HAVE_OPENSSL_SSL_H
19508 #include <openssl/ssl.h>
19511 /* Require 0.9.7d+ */
19512 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19513 char *__ssl_compat = "0.9.7d";
19517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19518 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19519 ol_cv_ssl_crl_compat=yes
19521 ol_cv_ssl_crl_compat=no
19526 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19527 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19529 if test $ol_cv_ssl_crl_compat = yes ; then
19531 cat >>confdefs.h <<\_ACEOF
19532 #define HAVE_OPENSSL_CRL 1
19540 if test $ol_link_tls = no ; then
19541 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19543 for ac_header in gnutls/gnutls.h
19545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19550 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 ac_res=`eval echo '${'$as_ac_Header'}'`
19553 { echo "$as_me:$LINENO: result: $ac_res" >&5
19554 echo "${ECHO_T}$ac_res" >&6; }
19556 # Is the header compilable?
19557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 $ac_includes_default
19566 #include <$ac_header>
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572 *) ac_try_echo=$ac_try;;
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575 (eval "$ac_compile") 2>conftest.er1
19577 grep -v '^ *+' conftest.er1 >conftest.err
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } && {
19582 test -z "$ac_c_werror_flag" ||
19583 test ! -s conftest.err
19584 } && test -s conftest.$ac_objext; then
19585 ac_header_compiler=yes
19587 echo "$as_me: failed program was:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_header_compiler=no
19593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19595 echo "${ECHO_T}$ac_header_compiler" >&6; }
19597 # Is the header present?
19598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 #include <$ac_header>
19608 if { (ac_try="$ac_cpp conftest.$ac_ext"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } >/dev/null && {
19621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19624 ac_header_preproc=yes
19626 echo "$as_me: failed program was:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 ac_header_preproc=no
19632 rm -f conftest.err conftest.$ac_ext
19633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19634 echo "${ECHO_T}$ac_header_preproc" >&6; }
19636 # So? What about this header?
19637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19643 ac_header_preproc=yes
19646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19659 ## --------------------------------------------- ##
19660 ## Report this to <http://www.openldap.org/its/> ##
19661 ## --------------------------------------------- ##
19663 ) | sed "s/^/$as_me: WARNING: /" >&2
19666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19669 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 eval "$as_ac_Header=\$ac_header_preproc"
19673 ac_res=`eval echo '${'$as_ac_Header'}'`
19674 { echo "$as_me:$LINENO: result: $ac_res" >&5
19675 echo "${ECHO_T}$ac_res" >&6; }
19678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19679 cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19688 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19689 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19690 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19691 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19692 echo $ECHO_N "(cached) $ECHO_C" >&6
19694 ac_check_lib_save_LIBS=$LIBS
19695 LIBS="-lgnutls $LIBS"
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19703 /* Override any GCC internal prototype to avoid an error.
19704 Use char because int might match the return type of a GCC
19705 builtin and then its argument prototype would still apply. */
19709 char gnutls_init ();
19713 return gnutls_init ();
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest$ac_exeext &&
19735 $as_test_x conftest$ac_exeext; then
19736 ac_cv_lib_gnutls_gnutls_init=yes
19738 echo "$as_me: failed program was:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_lib_gnutls_gnutls_init=no
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19746 LIBS=$ac_check_lib_save_LIBS
19748 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19749 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19750 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19757 if test $have_gnutls = yes ; then
19761 TLS_LIBS="-lgnutls"
19764 cat >>confdefs.h <<\_ACEOF
19765 #define HAVE_GNUTLS 1
19773 if test $ol_link_tls = no ; then
19774 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19777 for ac_header in nssutil.h
19779 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19786 ac_res=`eval echo '${'$as_ac_Header'}'`
19787 { echo "$as_me:$LINENO: result: $ac_res" >&5
19788 echo "${ECHO_T}$ac_res" >&6; }
19790 # Is the header compilable?
19791 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19793 cat >conftest.$ac_ext <<_ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h. */
19799 $ac_includes_default
19800 #include <$ac_header>
19802 rm -f conftest.$ac_objext
19803 if { (ac_try="$ac_compile"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_compile") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest.$ac_objext; then
19819 ac_header_compiler=yes
19821 echo "$as_me: failed program was:" >&5
19822 sed 's/^/| /' conftest.$ac_ext >&5
19824 ac_header_compiler=no
19827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19829 echo "${ECHO_T}$ac_header_compiler" >&6; }
19831 # Is the header present?
19832 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19833 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 #include <$ac_header>
19842 if { (ac_try="$ac_cpp conftest.$ac_ext"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19850 grep -v '^ *+' conftest.er1 >conftest.err
19852 cat conftest.err >&5
19853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null && {
19855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19858 ac_header_preproc=yes
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ac_header_preproc=no
19866 rm -f conftest.err conftest.$ac_ext
19867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 echo "${ECHO_T}$ac_header_preproc" >&6; }
19870 # So? What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19877 ac_header_preproc=yes
19880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19893 ## --------------------------------------------- ##
19894 ## Report this to <http://www.openldap.org/its/> ##
19895 ## --------------------------------------------- ##
19897 ) | sed "s/^/$as_me: WARNING: /" >&2
19900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 eval "$as_ac_Header=\$ac_header_preproc"
19907 ac_res=`eval echo '${'$as_ac_Header'}'`
19908 { echo "$as_me:$LINENO: result: $ac_res" >&5
19909 echo "${ECHO_T}$ac_res" >&6; }
19912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19921 if test "$ac_cv_header_nssutil_h" = yes ; then
19922 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19923 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19924 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19925 echo $ECHO_N "(cached) $ECHO_C" >&6
19927 ac_check_lib_save_LIBS=$LIBS
19928 LIBS="-lnss3 $LIBS"
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19936 /* Override any GCC internal prototype to avoid an error.
19937 Use char because int might match the return type of a GCC
19938 builtin and then its argument prototype would still apply. */
19942 char NSS_Initialize ();
19946 return NSS_Initialize ();
19951 rm -f conftest.$ac_objext conftest$ac_exeext
19952 if { (ac_try="$ac_link"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_link") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } && {
19965 test -z "$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19967 } && test -s conftest$ac_exeext &&
19968 $as_test_x conftest$ac_exeext; then
19969 ac_cv_lib_nss3_NSS_Initialize=yes
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_cv_lib_nss3_NSS_Initialize=no
19977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19978 conftest$ac_exeext conftest.$ac_ext
19979 LIBS=$ac_check_lib_save_LIBS
19981 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19982 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19983 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19991 if test "$have_moznss" = yes ; then
19995 cat >>confdefs.h <<\_ACEOF
19996 #define HAVE_MOZNSS 1
19999 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20001 { { 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
20002 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;}
20003 { (exit 1); exit 1; }; }
20009 if test $ol_link_tls = yes ; then
20011 cat >>confdefs.h <<\_ACEOF
20016 elif test $ol_with_tls = auto ; then
20017 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20018 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20019 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20020 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20021 elif test $ol_with_tls != no ; then
20022 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20023 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20024 { (exit 1); exit 1; }; }
20026 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20027 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20030 if test $ol_enable_lmpasswd != no; then
20031 if test $ol_link_tls != yes ; then
20032 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20033 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20034 { (exit 1); exit 1; }; }
20038 cat >>confdefs.h <<\_ACEOF
20039 #define SLAPD_LMHASH 1
20046 case $ol_with_threads in auto | yes | nt)
20049 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20050 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20051 if test "${ac_cv_func__beginthread+set}" = set; then
20052 echo $ECHO_N "(cached) $ECHO_C" >&6
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20062 #define _beginthread innocuous__beginthread
20064 /* System header to define __stub macros and hopefully few prototypes,
20065 which can conflict with char _beginthread (); below.
20066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20067 <limits.h> exists even on freestanding compilers. */
20070 # include <limits.h>
20072 # include <assert.h>
20075 #undef _beginthread
20077 /* Override any GCC internal prototype to avoid an error.
20078 Use char because int might match the return type of a GCC
20079 builtin and then its argument prototype would still apply. */
20083 char _beginthread ();
20084 /* The GNU C library defines this for functions which it implements
20085 to always fail with ENOSYS. Some functions are actually named
20086 something starting with __ and the normal name is an alias. */
20087 #if defined __stub__beginthread || defined __stub____beginthread
20094 return _beginthread ();
20099 rm -f conftest.$ac_objext conftest$ac_exeext
20100 if { (ac_try="$ac_link"
20101 case "(($ac_try" in
20102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20103 *) ac_try_echo=$ac_try;;
20105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20106 (eval "$ac_link") 2>conftest.er1
20108 grep -v '^ *+' conftest.er1 >conftest.err
20110 cat conftest.err >&5
20111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112 (exit $ac_status); } && {
20113 test -z "$ac_c_werror_flag" ||
20114 test ! -s conftest.err
20115 } && test -s conftest$ac_exeext &&
20116 $as_test_x conftest$ac_exeext; then
20117 ac_cv_func__beginthread=yes
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 ac_cv_func__beginthread=no
20125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20126 conftest$ac_exeext conftest.$ac_ext
20128 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20129 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20132 if test $ac_cv_func__beginthread = yes ; then
20134 cat >>confdefs.h <<\_ACEOF
20135 #define HAVE_NT_THREADS 1
20138 ol_cv_nt_threads=yes
20142 if test "$ol_cv_nt_threads" = yes ; then
20144 ol_with_threads=found
20145 ol_with_yielding_select=yes
20148 cat >>confdefs.h <<\_ACEOF
20149 #define HAVE_NT_SERVICE_MANAGER 1
20153 cat >>confdefs.h <<\_ACEOF
20154 #define HAVE_NT_EVENT_LOG 1
20159 if test $ol_with_threads = nt ; then
20160 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20161 echo "$as_me: error: could not locate NT Threads" >&2;}
20162 { (exit 1); exit 1; }; }
20167 case $ol_with_threads in auto | yes | posix)
20170 for ac_header in pthread.h
20172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20177 echo $ECHO_N "(cached) $ECHO_C" >&6
20179 ac_res=`eval echo '${'$as_ac_Header'}'`
20180 { echo "$as_me:$LINENO: result: $ac_res" >&5
20181 echo "${ECHO_T}$ac_res" >&6; }
20183 # Is the header compilable?
20184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 $ac_includes_default
20193 #include <$ac_header>
20195 rm -f conftest.$ac_objext
20196 if { (ac_try="$ac_compile"
20197 case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_compile") 2>conftest.er1
20204 grep -v '^ *+' conftest.er1 >conftest.err
20206 cat conftest.err >&5
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } && {
20209 test -z "$ac_c_werror_flag" ||
20210 test ! -s conftest.err
20211 } && test -s conftest.$ac_objext; then
20212 ac_header_compiler=yes
20214 echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20217 ac_header_compiler=no
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20222 echo "${ECHO_T}$ac_header_compiler" >&6; }
20224 # Is the header present?
20225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20227 cat >conftest.$ac_ext <<_ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h. */
20233 #include <$ac_header>
20235 if { (ac_try="$ac_cpp conftest.$ac_ext"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20243 grep -v '^ *+' conftest.er1 >conftest.err
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); } >/dev/null && {
20248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20251 ac_header_preproc=yes
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 ac_header_preproc=no
20259 rm -f conftest.err conftest.$ac_ext
20260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20261 echo "${ECHO_T}$ac_header_preproc" >&6; }
20263 # So? What about this header?
20264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20270 ac_header_preproc=yes
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20286 ## --------------------------------------------- ##
20287 ## Report this to <http://www.openldap.org/its/> ##
20288 ## --------------------------------------------- ##
20290 ) | sed "s/^/$as_me: WARNING: /" >&2
20293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 eval "$as_ac_Header=\$ac_header_preproc"
20300 ac_res=`eval echo '${'$as_ac_Header'}'`
20301 { echo "$as_me:$LINENO: result: $ac_res" >&5
20302 echo "${ECHO_T}$ac_res" >&6; }
20305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20306 cat >>confdefs.h <<_ACEOF
20307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20315 if test $ac_cv_header_pthread_h = yes ; then
20316 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20317 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20318 if test "${ol_cv_pthread_version+set}" = set; then
20319 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20329 # include <pthread.h>
20335 int i = PTHREAD_CREATE_JOINABLE;
20341 rm -f conftest.$ac_objext
20342 if { (ac_try="$ac_compile"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_compile") 2>conftest.er1
20350 grep -v '^ *+' conftest.er1 >conftest.err
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest.$ac_objext; then
20359 cat >conftest.$ac_ext <<_ACEOF
20362 cat confdefs.h >>conftest.$ac_ext
20363 cat >>conftest.$ac_ext <<_ACEOF
20364 /* end confdefs.h. */
20365 #include <pthread.h>
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369 $EGREP "pthread_detach" >/dev/null 2>&1; then
20370 ol_cv_pthread_version=10
20372 ol_cv_pthread_version=8
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20388 # include <pthread.h>
20389 # ifdef PTHREAD_CREATE_UNDETACHED
20394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20395 $EGREP "draft7" >/dev/null 2>&1; then
20396 ol_cv_pthread_version=7
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 #include <pthread.h>
20408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20409 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20410 ol_cv_pthread_version=6
20413 cat >conftest.$ac_ext <<_ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20420 # include <pthread.h>
20421 #ifdef PTHREAD_MUTEX_INITIALIZER
20426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20427 $EGREP "draft5" >/dev/null 2>&1; then
20428 ol_cv_pthread_version=5
20430 ol_cv_pthread_version=4
20442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20445 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20446 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20449 if test $ol_cv_pthread_version != 0 ; then
20451 cat >>confdefs.h <<_ACEOF
20452 #define HAVE_PTHREADS $ol_cv_pthread_version
20456 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20457 echo "$as_me: error: unknown pthread version" >&2;}
20458 { (exit 1); exit 1; }; }
20461 # consider threads found
20462 ol_with_threads=found
20465 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20466 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20467 if test "${ol_cv_header_linux_threads+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20470 cat >conftest.$ac_ext <<_ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h. */
20476 #include <pthread.h>
20478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20479 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20480 ol_cv_header_linux_threads=yes
20482 ol_cv_header_linux_threads=no
20488 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20489 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20490 if test $ol_cv_header_linux_threads = yes; then
20492 cat >>confdefs.h <<\_ACEOF
20493 #define HAVE_LINUX_THREADS 1
20499 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20500 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20501 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20502 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 #include <pthread.h>
20511 #ifdef _POSIX_THREAD_IS_GNU_PTH
20516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20517 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20518 ol_cv_header_gnu_pth_pthread_h=yes
20520 ol_cv_header_gnu_pth_pthread_h=no
20526 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20527 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20530 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20532 for ac_header in sched.h
20534 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20536 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20537 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20541 ac_res=`eval echo '${'$as_ac_Header'}'`
20542 { echo "$as_me:$LINENO: result: $ac_res" >&5
20543 echo "${ECHO_T}$ac_res" >&6; }
20545 # Is the header compilable?
20546 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20547 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20548 cat >conftest.$ac_ext <<_ACEOF
20551 cat confdefs.h >>conftest.$ac_ext
20552 cat >>conftest.$ac_ext <<_ACEOF
20553 /* end confdefs.h. */
20554 $ac_includes_default
20555 #include <$ac_header>
20557 rm -f conftest.$ac_objext
20558 if { (ac_try="$ac_compile"
20559 case "(($ac_try" in
20560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20561 *) ac_try_echo=$ac_try;;
20563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20564 (eval "$ac_compile") 2>conftest.er1
20566 grep -v '^ *+' conftest.er1 >conftest.err
20568 cat conftest.err >&5
20569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20570 (exit $ac_status); } && {
20571 test -z "$ac_c_werror_flag" ||
20572 test ! -s conftest.err
20573 } && test -s conftest.$ac_objext; then
20574 ac_header_compiler=yes
20576 echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.$ac_ext >&5
20579 ac_header_compiler=no
20582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20584 echo "${ECHO_T}$ac_header_compiler" >&6; }
20586 # Is the header present?
20587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20595 #include <$ac_header>
20597 if { (ac_try="$ac_cpp conftest.$ac_ext"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20605 grep -v '^ *+' conftest.er1 >conftest.err
20607 cat conftest.err >&5
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); } >/dev/null && {
20610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20611 test ! -s conftest.err
20613 ac_header_preproc=yes
20615 echo "$as_me: failed program was:" >&5
20616 sed 's/^/| /' conftest.$ac_ext >&5
20618 ac_header_preproc=no
20621 rm -f conftest.err conftest.$ac_ext
20622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20623 echo "${ECHO_T}$ac_header_preproc" >&6; }
20625 # So? What about this header?
20626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20632 ac_header_preproc=yes
20635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20648 ## --------------------------------------------- ##
20649 ## Report this to <http://www.openldap.org/its/> ##
20650 ## --------------------------------------------- ##
20652 ) | sed "s/^/$as_me: WARNING: /" >&2
20655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 eval "$as_ac_Header=\$ac_header_preproc"
20662 ac_res=`eval echo '${'$as_ac_Header'}'`
20663 { echo "$as_me:$LINENO: result: $ac_res" >&5
20664 echo "${ECHO_T}$ac_res" >&6; }
20667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20668 cat >>confdefs.h <<_ACEOF
20669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20679 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20680 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20681 if test "${ol_cv_pthread_create+set}" = set; then
20682 echo $ECHO_N "(cached) $ECHO_C" >&6
20685 if test "$cross_compiling" = yes; then
20686 cat >conftest.$ac_ext <<_ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h. */
20693 /* pthread test headers */
20694 #include <pthread.h>
20695 #if HAVE_PTHREADS < 7
20699 #define NULL (void*)0
20702 static void *task(p)
20705 return (void *) (p == NULL);
20712 /* pthread test function */
20713 #ifndef PTHREAD_CREATE_DETACHED
20714 #define PTHREAD_CREATE_DETACHED 1
20718 int detach = PTHREAD_CREATE_DETACHED;
20720 #if HAVE_PTHREADS > 4
20721 /* Final pthreads */
20722 pthread_attr_t attr;
20724 status = pthread_attr_init(&attr);
20725 if( status ) return status;
20727 #if HAVE_PTHREADS < 7
20728 status = pthread_attr_setdetachstate(&attr, &detach);
20729 if( status < 0 ) status = errno;
20731 status = pthread_attr_setdetachstate(&attr, detach);
20733 if( status ) return status;
20734 status = pthread_create( &t, &attr, task, NULL );
20735 #if HAVE_PTHREADS < 7
20736 if( status < 0 ) status = errno;
20738 if( status ) return status;
20740 /* Draft 4 pthreads */
20741 status = pthread_create( &t, pthread_attr_default, task, NULL );
20742 if( status ) return errno;
20744 /* give thread a chance to complete */
20745 /* it should remain joinable and hence detachable */
20748 status = pthread_detach( &t );
20749 if( status ) return errno;
20752 #ifdef HAVE_LINUX_THREADS
20753 pthread_kill_other_threads_np();
20762 rm -f conftest.$ac_objext conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_link") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); } && {
20776 test -z "$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20778 } && test -s conftest$ac_exeext &&
20779 $as_test_x conftest$ac_exeext; then
20780 ol_cv_pthread_create=yes
20782 echo "$as_me: failed program was:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ol_cv_pthread_create=no
20788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20789 conftest$ac_exeext conftest.$ac_ext
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20798 /* pthread test headers */
20799 #include <pthread.h>
20800 #if HAVE_PTHREADS < 7
20804 #define NULL (void*)0
20807 static void *task(p)
20810 return (void *) (p == NULL);
20814 int main(argc, argv)
20819 /* pthread test function */
20820 #ifndef PTHREAD_CREATE_DETACHED
20821 #define PTHREAD_CREATE_DETACHED 1
20825 int detach = PTHREAD_CREATE_DETACHED;
20827 #if HAVE_PTHREADS > 4
20828 /* Final pthreads */
20829 pthread_attr_t attr;
20831 status = pthread_attr_init(&attr);
20832 if( status ) return status;
20834 #if HAVE_PTHREADS < 7
20835 status = pthread_attr_setdetachstate(&attr, &detach);
20836 if( status < 0 ) status = errno;
20838 status = pthread_attr_setdetachstate(&attr, detach);
20840 if( status ) return status;
20841 status = pthread_create( &t, &attr, task, NULL );
20842 #if HAVE_PTHREADS < 7
20843 if( status < 0 ) status = errno;
20845 if( status ) return status;
20847 /* Draft 4 pthreads */
20848 status = pthread_create( &t, pthread_attr_default, task, NULL );
20849 if( status ) return errno;
20851 /* give thread a chance to complete */
20852 /* it should remain joinable and hence detachable */
20855 status = pthread_detach( &t );
20856 if( status ) return errno;
20859 #ifdef HAVE_LINUX_THREADS
20860 pthread_kill_other_threads_np();
20868 rm -f conftest$ac_exeext
20869 if { (ac_try="$ac_link"
20870 case "(($ac_try" in
20871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20872 *) ac_try_echo=$ac_try;;
20874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20875 (eval "$ac_link") 2>&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20879 { (case "(($ac_try" in
20880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20881 *) ac_try_echo=$ac_try;;
20883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20884 (eval "$ac_try") 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 ol_cv_pthread_create=yes
20890 echo "$as_me: program exited with status $ac_status" >&5
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ( exit $ac_status )
20895 ol_cv_pthread_create=no
20897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20902 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20903 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20905 if test $ol_cv_pthread_create != no ; then
20906 ol_link_threads=posix
20907 ol_link_pthreads=""
20910 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20911 if test "$ol_link_threads" = no ; then
20913 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20914 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20915 if test "${ol_cv_pthread_kthread+set}" = set; then
20916 echo $ECHO_N "(cached) $ECHO_C" >&6
20921 LIBS="-kthread $LIBS"
20923 if test "$cross_compiling" = yes; then
20924 cat >conftest.$ac_ext <<_ACEOF
20927 cat confdefs.h >>conftest.$ac_ext
20928 cat >>conftest.$ac_ext <<_ACEOF
20929 /* end confdefs.h. */
20931 /* pthread test headers */
20932 #include <pthread.h>
20933 #if HAVE_PTHREADS < 7
20937 #define NULL (void*)0
20940 static void *task(p)
20943 return (void *) (p == NULL);
20950 /* pthread test function */
20951 #ifndef PTHREAD_CREATE_DETACHED
20952 #define PTHREAD_CREATE_DETACHED 1
20956 int detach = PTHREAD_CREATE_DETACHED;
20958 #if HAVE_PTHREADS > 4
20959 /* Final pthreads */
20960 pthread_attr_t attr;
20962 status = pthread_attr_init(&attr);
20963 if( status ) return status;
20965 #if HAVE_PTHREADS < 7
20966 status = pthread_attr_setdetachstate(&attr, &detach);
20967 if( status < 0 ) status = errno;
20969 status = pthread_attr_setdetachstate(&attr, detach);
20971 if( status ) return status;
20972 status = pthread_create( &t, &attr, task, NULL );
20973 #if HAVE_PTHREADS < 7
20974 if( status < 0 ) status = errno;
20976 if( status ) return status;
20978 /* Draft 4 pthreads */
20979 status = pthread_create( &t, pthread_attr_default, task, NULL );
20980 if( status ) return errno;
20982 /* give thread a chance to complete */
20983 /* it should remain joinable and hence detachable */
20986 status = pthread_detach( &t );
20987 if( status ) return errno;
20990 #ifdef HAVE_LINUX_THREADS
20991 pthread_kill_other_threads_np();
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (ac_try="$ac_link"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_link") 2>conftest.er1
21009 grep -v '^ *+' conftest.er1 >conftest.err
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } && {
21014 test -z "$ac_c_werror_flag" ||
21015 test ! -s conftest.err
21016 } && test -s conftest$ac_exeext &&
21017 $as_test_x conftest$ac_exeext; then
21018 ol_cv_pthread_kthread=yes
21020 echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21023 ol_cv_pthread_kthread=no
21026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21027 conftest$ac_exeext conftest.$ac_ext
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21036 /* pthread test headers */
21037 #include <pthread.h>
21038 #if HAVE_PTHREADS < 7
21042 #define NULL (void*)0
21045 static void *task(p)
21048 return (void *) (p == NULL);
21052 int main(argc, argv)
21057 /* pthread test function */
21058 #ifndef PTHREAD_CREATE_DETACHED
21059 #define PTHREAD_CREATE_DETACHED 1
21063 int detach = PTHREAD_CREATE_DETACHED;
21065 #if HAVE_PTHREADS > 4
21066 /* Final pthreads */
21067 pthread_attr_t attr;
21069 status = pthread_attr_init(&attr);
21070 if( status ) return status;
21072 #if HAVE_PTHREADS < 7
21073 status = pthread_attr_setdetachstate(&attr, &detach);
21074 if( status < 0 ) status = errno;
21076 status = pthread_attr_setdetachstate(&attr, detach);
21078 if( status ) return status;
21079 status = pthread_create( &t, &attr, task, NULL );
21080 #if HAVE_PTHREADS < 7
21081 if( status < 0 ) status = errno;
21083 if( status ) return status;
21085 /* Draft 4 pthreads */
21086 status = pthread_create( &t, pthread_attr_default, task, NULL );
21087 if( status ) return errno;
21089 /* give thread a chance to complete */
21090 /* it should remain joinable and hence detachable */
21093 status = pthread_detach( &t );
21094 if( status ) return errno;
21097 #ifdef HAVE_LINUX_THREADS
21098 pthread_kill_other_threads_np();
21106 rm -f conftest$ac_exeext
21107 if { (ac_try="$ac_link"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_link") 2>&5
21115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21117 { (case "(($ac_try" in
21118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21119 *) ac_try_echo=$ac_try;;
21121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21122 (eval "$ac_try") 2>&5
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; }; then
21126 ol_cv_pthread_kthread=yes
21128 echo "$as_me: program exited with status $ac_status" >&5
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ( exit $ac_status )
21133 ol_cv_pthread_kthread=no
21135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21144 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21145 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21147 if test $ol_cv_pthread_kthread = yes ; then
21148 ol_link_pthreads="-kthread"
21149 ol_link_threads=posix
21153 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21154 if test "$ol_link_threads" = no ; then
21156 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21157 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21158 if test "${ol_cv_pthread_pthread+set}" = set; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21164 LIBS="-pthread $LIBS"
21166 if test "$cross_compiling" = yes; then
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21174 /* pthread test headers */
21175 #include <pthread.h>
21176 #if HAVE_PTHREADS < 7
21180 #define NULL (void*)0
21183 static void *task(p)
21186 return (void *) (p == NULL);
21193 /* pthread test function */
21194 #ifndef PTHREAD_CREATE_DETACHED
21195 #define PTHREAD_CREATE_DETACHED 1
21199 int detach = PTHREAD_CREATE_DETACHED;
21201 #if HAVE_PTHREADS > 4
21202 /* Final pthreads */
21203 pthread_attr_t attr;
21205 status = pthread_attr_init(&attr);
21206 if( status ) return status;
21208 #if HAVE_PTHREADS < 7
21209 status = pthread_attr_setdetachstate(&attr, &detach);
21210 if( status < 0 ) status = errno;
21212 status = pthread_attr_setdetachstate(&attr, detach);
21214 if( status ) return status;
21215 status = pthread_create( &t, &attr, task, NULL );
21216 #if HAVE_PTHREADS < 7
21217 if( status < 0 ) status = errno;
21219 if( status ) return status;
21221 /* Draft 4 pthreads */
21222 status = pthread_create( &t, pthread_attr_default, task, NULL );
21223 if( status ) return errno;
21225 /* give thread a chance to complete */
21226 /* it should remain joinable and hence detachable */
21229 status = pthread_detach( &t );
21230 if( status ) return errno;
21233 #ifdef HAVE_LINUX_THREADS
21234 pthread_kill_other_threads_np();
21243 rm -f conftest.$ac_objext conftest$ac_exeext
21244 if { (ac_try="$ac_link"
21245 case "(($ac_try" in
21246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247 *) ac_try_echo=$ac_try;;
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250 (eval "$ac_link") 2>conftest.er1
21252 grep -v '^ *+' conftest.er1 >conftest.err
21254 cat conftest.err >&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); } && {
21257 test -z "$ac_c_werror_flag" ||
21258 test ! -s conftest.err
21259 } && test -s conftest$ac_exeext &&
21260 $as_test_x conftest$ac_exeext; then
21261 ol_cv_pthread_pthread=yes
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21266 ol_cv_pthread_pthread=no
21269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21270 conftest$ac_exeext conftest.$ac_ext
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21279 /* pthread test headers */
21280 #include <pthread.h>
21281 #if HAVE_PTHREADS < 7
21285 #define NULL (void*)0
21288 static void *task(p)
21291 return (void *) (p == NULL);
21295 int main(argc, argv)
21300 /* pthread test function */
21301 #ifndef PTHREAD_CREATE_DETACHED
21302 #define PTHREAD_CREATE_DETACHED 1
21306 int detach = PTHREAD_CREATE_DETACHED;
21308 #if HAVE_PTHREADS > 4
21309 /* Final pthreads */
21310 pthread_attr_t attr;
21312 status = pthread_attr_init(&attr);
21313 if( status ) return status;
21315 #if HAVE_PTHREADS < 7
21316 status = pthread_attr_setdetachstate(&attr, &detach);
21317 if( status < 0 ) status = errno;
21319 status = pthread_attr_setdetachstate(&attr, detach);
21321 if( status ) return status;
21322 status = pthread_create( &t, &attr, task, NULL );
21323 #if HAVE_PTHREADS < 7
21324 if( status < 0 ) status = errno;
21326 if( status ) return status;
21328 /* Draft 4 pthreads */
21329 status = pthread_create( &t, pthread_attr_default, task, NULL );
21330 if( status ) return errno;
21332 /* give thread a chance to complete */
21333 /* it should remain joinable and hence detachable */
21336 status = pthread_detach( &t );
21337 if( status ) return errno;
21340 #ifdef HAVE_LINUX_THREADS
21341 pthread_kill_other_threads_np();
21349 rm -f conftest$ac_exeext
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_link") 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21360 { (case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_try") 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ol_cv_pthread_pthread=yes
21371 echo "$as_me: program exited with status $ac_status" >&5
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ( exit $ac_status )
21376 ol_cv_pthread_pthread=no
21378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21388 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21390 if test $ol_cv_pthread_pthread = yes ; then
21391 ol_link_pthreads="-pthread"
21392 ol_link_threads=posix
21396 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21397 if test "$ol_link_threads" = no ; then
21399 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21400 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21401 if test "${ol_cv_pthread_pthreads+set}" = set; then
21402 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 LIBS="-pthreads $LIBS"
21409 if test "$cross_compiling" = yes; then
21410 cat >conftest.$ac_ext <<_ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21417 /* pthread test headers */
21418 #include <pthread.h>
21419 #if HAVE_PTHREADS < 7
21423 #define NULL (void*)0
21426 static void *task(p)
21429 return (void *) (p == NULL);
21436 /* pthread test function */
21437 #ifndef PTHREAD_CREATE_DETACHED
21438 #define PTHREAD_CREATE_DETACHED 1
21442 int detach = PTHREAD_CREATE_DETACHED;
21444 #if HAVE_PTHREADS > 4
21445 /* Final pthreads */
21446 pthread_attr_t attr;
21448 status = pthread_attr_init(&attr);
21449 if( status ) return status;
21451 #if HAVE_PTHREADS < 7
21452 status = pthread_attr_setdetachstate(&attr, &detach);
21453 if( status < 0 ) status = errno;
21455 status = pthread_attr_setdetachstate(&attr, detach);
21457 if( status ) return status;
21458 status = pthread_create( &t, &attr, task, NULL );
21459 #if HAVE_PTHREADS < 7
21460 if( status < 0 ) status = errno;
21462 if( status ) return status;
21464 /* Draft 4 pthreads */
21465 status = pthread_create( &t, pthread_attr_default, task, NULL );
21466 if( status ) return errno;
21468 /* give thread a chance to complete */
21469 /* it should remain joinable and hence detachable */
21472 status = pthread_detach( &t );
21473 if( status ) return errno;
21476 #ifdef HAVE_LINUX_THREADS
21477 pthread_kill_other_threads_np();
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (ac_try="$ac_link"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_link") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest$ac_exeext &&
21503 $as_test_x conftest$ac_exeext; then
21504 ol_cv_pthread_pthreads=yes
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21509 ol_cv_pthread_pthreads=no
21512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21513 conftest$ac_exeext conftest.$ac_ext
21515 cat >conftest.$ac_ext <<_ACEOF
21518 cat confdefs.h >>conftest.$ac_ext
21519 cat >>conftest.$ac_ext <<_ACEOF
21520 /* end confdefs.h. */
21522 /* pthread test headers */
21523 #include <pthread.h>
21524 #if HAVE_PTHREADS < 7
21528 #define NULL (void*)0
21531 static void *task(p)
21534 return (void *) (p == NULL);
21538 int main(argc, argv)
21543 /* pthread test function */
21544 #ifndef PTHREAD_CREATE_DETACHED
21545 #define PTHREAD_CREATE_DETACHED 1
21549 int detach = PTHREAD_CREATE_DETACHED;
21551 #if HAVE_PTHREADS > 4
21552 /* Final pthreads */
21553 pthread_attr_t attr;
21555 status = pthread_attr_init(&attr);
21556 if( status ) return status;
21558 #if HAVE_PTHREADS < 7
21559 status = pthread_attr_setdetachstate(&attr, &detach);
21560 if( status < 0 ) status = errno;
21562 status = pthread_attr_setdetachstate(&attr, detach);
21564 if( status ) return status;
21565 status = pthread_create( &t, &attr, task, NULL );
21566 #if HAVE_PTHREADS < 7
21567 if( status < 0 ) status = errno;
21569 if( status ) return status;
21571 /* Draft 4 pthreads */
21572 status = pthread_create( &t, pthread_attr_default, task, NULL );
21573 if( status ) return errno;
21575 /* give thread a chance to complete */
21576 /* it should remain joinable and hence detachable */
21579 status = pthread_detach( &t );
21580 if( status ) return errno;
21583 #ifdef HAVE_LINUX_THREADS
21584 pthread_kill_other_threads_np();
21592 rm -f conftest$ac_exeext
21593 if { (ac_try="$ac_link"
21594 case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_link") 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21603 { (case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_try") 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; }; then
21612 ol_cv_pthread_pthreads=yes
21614 echo "$as_me: program exited with status $ac_status" >&5
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ( exit $ac_status )
21619 ol_cv_pthread_pthreads=no
21621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21630 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21631 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21633 if test $ol_cv_pthread_pthreads = yes ; then
21634 ol_link_pthreads="-pthreads"
21635 ol_link_threads=posix
21639 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21640 if test "$ol_link_threads" = no ; then
21642 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21643 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21644 if test "${ol_cv_pthread_mthreads+set}" = set; then
21645 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 LIBS="-mthreads $LIBS"
21652 if test "$cross_compiling" = yes; then
21653 cat >conftest.$ac_ext <<_ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21660 /* pthread test headers */
21661 #include <pthread.h>
21662 #if HAVE_PTHREADS < 7
21666 #define NULL (void*)0
21669 static void *task(p)
21672 return (void *) (p == NULL);
21679 /* pthread test function */
21680 #ifndef PTHREAD_CREATE_DETACHED
21681 #define PTHREAD_CREATE_DETACHED 1
21685 int detach = PTHREAD_CREATE_DETACHED;
21687 #if HAVE_PTHREADS > 4
21688 /* Final pthreads */
21689 pthread_attr_t attr;
21691 status = pthread_attr_init(&attr);
21692 if( status ) return status;
21694 #if HAVE_PTHREADS < 7
21695 status = pthread_attr_setdetachstate(&attr, &detach);
21696 if( status < 0 ) status = errno;
21698 status = pthread_attr_setdetachstate(&attr, detach);
21700 if( status ) return status;
21701 status = pthread_create( &t, &attr, task, NULL );
21702 #if HAVE_PTHREADS < 7
21703 if( status < 0 ) status = errno;
21705 if( status ) return status;
21707 /* Draft 4 pthreads */
21708 status = pthread_create( &t, pthread_attr_default, task, NULL );
21709 if( status ) return errno;
21711 /* give thread a chance to complete */
21712 /* it should remain joinable and hence detachable */
21715 status = pthread_detach( &t );
21716 if( status ) return errno;
21719 #ifdef HAVE_LINUX_THREADS
21720 pthread_kill_other_threads_np();
21729 rm -f conftest.$ac_objext conftest$ac_exeext
21730 if { (ac_try="$ac_link"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_link") 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } && {
21743 test -z "$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21745 } && test -s conftest$ac_exeext &&
21746 $as_test_x conftest$ac_exeext; then
21747 ol_cv_pthread_mthreads=yes
21749 echo "$as_me: failed program was:" >&5
21750 sed 's/^/| /' conftest.$ac_ext >&5
21752 ol_cv_pthread_mthreads=no
21755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21756 conftest$ac_exeext conftest.$ac_ext
21758 cat >conftest.$ac_ext <<_ACEOF
21761 cat confdefs.h >>conftest.$ac_ext
21762 cat >>conftest.$ac_ext <<_ACEOF
21763 /* end confdefs.h. */
21765 /* pthread test headers */
21766 #include <pthread.h>
21767 #if HAVE_PTHREADS < 7
21771 #define NULL (void*)0
21774 static void *task(p)
21777 return (void *) (p == NULL);
21781 int main(argc, argv)
21786 /* pthread test function */
21787 #ifndef PTHREAD_CREATE_DETACHED
21788 #define PTHREAD_CREATE_DETACHED 1
21792 int detach = PTHREAD_CREATE_DETACHED;
21794 #if HAVE_PTHREADS > 4
21795 /* Final pthreads */
21796 pthread_attr_t attr;
21798 status = pthread_attr_init(&attr);
21799 if( status ) return status;
21801 #if HAVE_PTHREADS < 7
21802 status = pthread_attr_setdetachstate(&attr, &detach);
21803 if( status < 0 ) status = errno;
21805 status = pthread_attr_setdetachstate(&attr, detach);
21807 if( status ) return status;
21808 status = pthread_create( &t, &attr, task, NULL );
21809 #if HAVE_PTHREADS < 7
21810 if( status < 0 ) status = errno;
21812 if( status ) return status;
21814 /* Draft 4 pthreads */
21815 status = pthread_create( &t, pthread_attr_default, task, NULL );
21816 if( status ) return errno;
21818 /* give thread a chance to complete */
21819 /* it should remain joinable and hence detachable */
21822 status = pthread_detach( &t );
21823 if( status ) return errno;
21826 #ifdef HAVE_LINUX_THREADS
21827 pthread_kill_other_threads_np();
21835 rm -f conftest$ac_exeext
21836 if { (ac_try="$ac_link"
21837 case "(($ac_try" in
21838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21839 *) ac_try_echo=$ac_try;;
21841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21842 (eval "$ac_link") 2>&5
21844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21846 { (case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_try") 2>&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); }; }; then
21855 ol_cv_pthread_mthreads=yes
21857 echo "$as_me: program exited with status $ac_status" >&5
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21861 ( exit $ac_status )
21862 ol_cv_pthread_mthreads=no
21864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21873 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21874 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21876 if test $ol_cv_pthread_mthreads = yes ; then
21877 ol_link_pthreads="-mthreads"
21878 ol_link_threads=posix
21882 # Pthread try link: -thread (ol_cv_pthread_thread)
21883 if test "$ol_link_threads" = no ; then
21885 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21886 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21887 if test "${ol_cv_pthread_thread+set}" = set; then
21888 echo $ECHO_N "(cached) $ECHO_C" >&6
21893 LIBS="-thread $LIBS"
21895 if test "$cross_compiling" = yes; then
21896 cat >conftest.$ac_ext <<_ACEOF
21899 cat confdefs.h >>conftest.$ac_ext
21900 cat >>conftest.$ac_ext <<_ACEOF
21901 /* end confdefs.h. */
21903 /* pthread test headers */
21904 #include <pthread.h>
21905 #if HAVE_PTHREADS < 7
21909 #define NULL (void*)0
21912 static void *task(p)
21915 return (void *) (p == NULL);
21922 /* pthread test function */
21923 #ifndef PTHREAD_CREATE_DETACHED
21924 #define PTHREAD_CREATE_DETACHED 1
21928 int detach = PTHREAD_CREATE_DETACHED;
21930 #if HAVE_PTHREADS > 4
21931 /* Final pthreads */
21932 pthread_attr_t attr;
21934 status = pthread_attr_init(&attr);
21935 if( status ) return status;
21937 #if HAVE_PTHREADS < 7
21938 status = pthread_attr_setdetachstate(&attr, &detach);
21939 if( status < 0 ) status = errno;
21941 status = pthread_attr_setdetachstate(&attr, detach);
21943 if( status ) return status;
21944 status = pthread_create( &t, &attr, task, NULL );
21945 #if HAVE_PTHREADS < 7
21946 if( status < 0 ) status = errno;
21948 if( status ) return status;
21950 /* Draft 4 pthreads */
21951 status = pthread_create( &t, pthread_attr_default, task, NULL );
21952 if( status ) return errno;
21954 /* give thread a chance to complete */
21955 /* it should remain joinable and hence detachable */
21958 status = pthread_detach( &t );
21959 if( status ) return errno;
21962 #ifdef HAVE_LINUX_THREADS
21963 pthread_kill_other_threads_np();
21972 rm -f conftest.$ac_objext conftest$ac_exeext
21973 if { (ac_try="$ac_link"
21974 case "(($ac_try" in
21975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976 *) ac_try_echo=$ac_try;;
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979 (eval "$ac_link") 2>conftest.er1
21981 grep -v '^ *+' conftest.er1 >conftest.err
21983 cat conftest.err >&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } && {
21986 test -z "$ac_c_werror_flag" ||
21987 test ! -s conftest.err
21988 } && test -s conftest$ac_exeext &&
21989 $as_test_x conftest$ac_exeext; then
21990 ol_cv_pthread_thread=yes
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ol_cv_pthread_thread=no
21998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21999 conftest$ac_exeext conftest.$ac_ext
22001 cat >conftest.$ac_ext <<_ACEOF
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22008 /* pthread test headers */
22009 #include <pthread.h>
22010 #if HAVE_PTHREADS < 7
22014 #define NULL (void*)0
22017 static void *task(p)
22020 return (void *) (p == NULL);
22024 int main(argc, argv)
22029 /* pthread test function */
22030 #ifndef PTHREAD_CREATE_DETACHED
22031 #define PTHREAD_CREATE_DETACHED 1
22035 int detach = PTHREAD_CREATE_DETACHED;
22037 #if HAVE_PTHREADS > 4
22038 /* Final pthreads */
22039 pthread_attr_t attr;
22041 status = pthread_attr_init(&attr);
22042 if( status ) return status;
22044 #if HAVE_PTHREADS < 7
22045 status = pthread_attr_setdetachstate(&attr, &detach);
22046 if( status < 0 ) status = errno;
22048 status = pthread_attr_setdetachstate(&attr, detach);
22050 if( status ) return status;
22051 status = pthread_create( &t, &attr, task, NULL );
22052 #if HAVE_PTHREADS < 7
22053 if( status < 0 ) status = errno;
22055 if( status ) return status;
22057 /* Draft 4 pthreads */
22058 status = pthread_create( &t, pthread_attr_default, task, NULL );
22059 if( status ) return errno;
22061 /* give thread a chance to complete */
22062 /* it should remain joinable and hence detachable */
22065 status = pthread_detach( &t );
22066 if( status ) return errno;
22069 #ifdef HAVE_LINUX_THREADS
22070 pthread_kill_other_threads_np();
22078 rm -f conftest$ac_exeext
22079 if { (ac_try="$ac_link"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_link") 2>&5
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 ol_cv_pthread_thread=yes
22100 echo "$as_me: program exited with status $ac_status" >&5
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ( exit $ac_status )
22105 ol_cv_pthread_thread=no
22107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22116 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22117 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22119 if test $ol_cv_pthread_thread = yes ; then
22120 ol_link_pthreads="-thread"
22121 ol_link_threads=posix
22126 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22127 if test "$ol_link_threads" = no ; then
22128 # try -lpthread -lmach -lexc -lc_r
22129 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22130 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22131 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22132 echo $ECHO_N "(cached) $ECHO_C" >&6
22137 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22139 if test "$cross_compiling" = yes; then
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22147 /* pthread test headers */
22148 #include <pthread.h>
22149 #if HAVE_PTHREADS < 7
22153 #define NULL (void*)0
22156 static void *task(p)
22159 return (void *) (p == NULL);
22166 /* pthread test function */
22167 #ifndef PTHREAD_CREATE_DETACHED
22168 #define PTHREAD_CREATE_DETACHED 1
22172 int detach = PTHREAD_CREATE_DETACHED;
22174 #if HAVE_PTHREADS > 4
22175 /* Final pthreads */
22176 pthread_attr_t attr;
22178 status = pthread_attr_init(&attr);
22179 if( status ) return status;
22181 #if HAVE_PTHREADS < 7
22182 status = pthread_attr_setdetachstate(&attr, &detach);
22183 if( status < 0 ) status = errno;
22185 status = pthread_attr_setdetachstate(&attr, detach);
22187 if( status ) return status;
22188 status = pthread_create( &t, &attr, task, NULL );
22189 #if HAVE_PTHREADS < 7
22190 if( status < 0 ) status = errno;
22192 if( status ) return status;
22194 /* Draft 4 pthreads */
22195 status = pthread_create( &t, pthread_attr_default, task, NULL );
22196 if( status ) return errno;
22198 /* give thread a chance to complete */
22199 /* it should remain joinable and hence detachable */
22202 status = pthread_detach( &t );
22203 if( status ) return errno;
22206 #ifdef HAVE_LINUX_THREADS
22207 pthread_kill_other_threads_np();
22216 rm -f conftest.$ac_objext conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_link") 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest$ac_exeext &&
22233 $as_test_x conftest$ac_exeext; then
22234 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 conftest$ac_exeext conftest.$ac_ext
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22252 /* pthread test headers */
22253 #include <pthread.h>
22254 #if HAVE_PTHREADS < 7
22258 #define NULL (void*)0
22261 static void *task(p)
22264 return (void *) (p == NULL);
22268 int main(argc, argv)
22273 /* pthread test function */
22274 #ifndef PTHREAD_CREATE_DETACHED
22275 #define PTHREAD_CREATE_DETACHED 1
22279 int detach = PTHREAD_CREATE_DETACHED;
22281 #if HAVE_PTHREADS > 4
22282 /* Final pthreads */
22283 pthread_attr_t attr;
22285 status = pthread_attr_init(&attr);
22286 if( status ) return status;
22288 #if HAVE_PTHREADS < 7
22289 status = pthread_attr_setdetachstate(&attr, &detach);
22290 if( status < 0 ) status = errno;
22292 status = pthread_attr_setdetachstate(&attr, detach);
22294 if( status ) return status;
22295 status = pthread_create( &t, &attr, task, NULL );
22296 #if HAVE_PTHREADS < 7
22297 if( status < 0 ) status = errno;
22299 if( status ) return status;
22301 /* Draft 4 pthreads */
22302 status = pthread_create( &t, pthread_attr_default, task, NULL );
22303 if( status ) return errno;
22305 /* give thread a chance to complete */
22306 /* it should remain joinable and hence detachable */
22309 status = pthread_detach( &t );
22310 if( status ) return errno;
22313 #ifdef HAVE_LINUX_THREADS
22314 pthread_kill_other_threads_np();
22322 rm -f conftest$ac_exeext
22323 if { (ac_try="$ac_link"
22324 case "(($ac_try" in
22325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326 *) ac_try_echo=$ac_try;;
22328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329 (eval "$ac_link") 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22333 { (case "(($ac_try" in
22334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335 *) ac_try_echo=$ac_try;;
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338 (eval "$ac_try") 2>&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); }; }; then
22342 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22344 echo "$as_me: program exited with status $ac_status" >&5
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22348 ( exit $ac_status )
22349 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22360 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22361 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22363 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22364 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22365 ol_link_threads=posix
22369 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22370 if test "$ol_link_threads" = no ; then
22371 # try -lpthread -lmach -lexc
22372 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22373 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22374 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22380 LIBS="-lpthread -lmach -lexc $LIBS"
22382 if test "$cross_compiling" = yes; then
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22390 /* pthread test headers */
22391 #include <pthread.h>
22392 #if HAVE_PTHREADS < 7
22396 #define NULL (void*)0
22399 static void *task(p)
22402 return (void *) (p == NULL);
22409 /* pthread test function */
22410 #ifndef PTHREAD_CREATE_DETACHED
22411 #define PTHREAD_CREATE_DETACHED 1
22415 int detach = PTHREAD_CREATE_DETACHED;
22417 #if HAVE_PTHREADS > 4
22418 /* Final pthreads */
22419 pthread_attr_t attr;
22421 status = pthread_attr_init(&attr);
22422 if( status ) return status;
22424 #if HAVE_PTHREADS < 7
22425 status = pthread_attr_setdetachstate(&attr, &detach);
22426 if( status < 0 ) status = errno;
22428 status = pthread_attr_setdetachstate(&attr, detach);
22430 if( status ) return status;
22431 status = pthread_create( &t, &attr, task, NULL );
22432 #if HAVE_PTHREADS < 7
22433 if( status < 0 ) status = errno;
22435 if( status ) return status;
22437 /* Draft 4 pthreads */
22438 status = pthread_create( &t, pthread_attr_default, task, NULL );
22439 if( status ) return errno;
22441 /* give thread a chance to complete */
22442 /* it should remain joinable and hence detachable */
22445 status = pthread_detach( &t );
22446 if( status ) return errno;
22449 #ifdef HAVE_LINUX_THREADS
22450 pthread_kill_other_threads_np();
22459 rm -f conftest.$ac_objext conftest$ac_exeext
22460 if { (ac_try="$ac_link"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_link") 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest$ac_exeext &&
22476 $as_test_x conftest$ac_exeext; then
22477 ol_cv_pthread_lpthread_lmach_lexc=yes
22479 echo "$as_me: failed program was:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ol_cv_pthread_lpthread_lmach_lexc=no
22485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22486 conftest$ac_exeext conftest.$ac_ext
22488 cat >conftest.$ac_ext <<_ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */
22495 /* pthread test headers */
22496 #include <pthread.h>
22497 #if HAVE_PTHREADS < 7
22501 #define NULL (void*)0
22504 static void *task(p)
22507 return (void *) (p == NULL);
22511 int main(argc, argv)
22516 /* pthread test function */
22517 #ifndef PTHREAD_CREATE_DETACHED
22518 #define PTHREAD_CREATE_DETACHED 1
22522 int detach = PTHREAD_CREATE_DETACHED;
22524 #if HAVE_PTHREADS > 4
22525 /* Final pthreads */
22526 pthread_attr_t attr;
22528 status = pthread_attr_init(&attr);
22529 if( status ) return status;
22531 #if HAVE_PTHREADS < 7
22532 status = pthread_attr_setdetachstate(&attr, &detach);
22533 if( status < 0 ) status = errno;
22535 status = pthread_attr_setdetachstate(&attr, detach);
22537 if( status ) return status;
22538 status = pthread_create( &t, &attr, task, NULL );
22539 #if HAVE_PTHREADS < 7
22540 if( status < 0 ) status = errno;
22542 if( status ) return status;
22544 /* Draft 4 pthreads */
22545 status = pthread_create( &t, pthread_attr_default, task, NULL );
22546 if( status ) return errno;
22548 /* give thread a chance to complete */
22549 /* it should remain joinable and hence detachable */
22552 status = pthread_detach( &t );
22553 if( status ) return errno;
22556 #ifdef HAVE_LINUX_THREADS
22557 pthread_kill_other_threads_np();
22565 rm -f conftest$ac_exeext
22566 if { (ac_try="$ac_link"
22567 case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_link") 2>&5
22574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22576 { (case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_try") 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; }; then
22585 ol_cv_pthread_lpthread_lmach_lexc=yes
22587 echo "$as_me: program exited with status $ac_status" >&5
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22591 ( exit $ac_status )
22592 ol_cv_pthread_lpthread_lmach_lexc=no
22594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22603 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22604 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22606 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22607 ol_link_pthreads="-lpthread -lmach -lexc"
22608 ol_link_threads=posix
22613 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22614 if test "$ol_link_threads" = no ; then
22615 # try -lpthread -Wl,-woff,85
22616 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22617 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22618 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22619 echo $ECHO_N "(cached) $ECHO_C" >&6
22624 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22626 if test "$cross_compiling" = yes; then
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22634 /* pthread test headers */
22635 #include <pthread.h>
22636 #if HAVE_PTHREADS < 7
22640 #define NULL (void*)0
22643 static void *task(p)
22646 return (void *) (p == NULL);
22653 /* pthread test function */
22654 #ifndef PTHREAD_CREATE_DETACHED
22655 #define PTHREAD_CREATE_DETACHED 1
22659 int detach = PTHREAD_CREATE_DETACHED;
22661 #if HAVE_PTHREADS > 4
22662 /* Final pthreads */
22663 pthread_attr_t attr;
22665 status = pthread_attr_init(&attr);
22666 if( status ) return status;
22668 #if HAVE_PTHREADS < 7
22669 status = pthread_attr_setdetachstate(&attr, &detach);
22670 if( status < 0 ) status = errno;
22672 status = pthread_attr_setdetachstate(&attr, detach);
22674 if( status ) return status;
22675 status = pthread_create( &t, &attr, task, NULL );
22676 #if HAVE_PTHREADS < 7
22677 if( status < 0 ) status = errno;
22679 if( status ) return status;
22681 /* Draft 4 pthreads */
22682 status = pthread_create( &t, pthread_attr_default, task, NULL );
22683 if( status ) return errno;
22685 /* give thread a chance to complete */
22686 /* it should remain joinable and hence detachable */
22689 status = pthread_detach( &t );
22690 if( status ) return errno;
22693 #ifdef HAVE_LINUX_THREADS
22694 pthread_kill_other_threads_np();
22703 rm -f conftest.$ac_objext conftest$ac_exeext
22704 if { (ac_try="$ac_link"
22705 case "(($ac_try" in
22706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707 *) ac_try_echo=$ac_try;;
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710 (eval "$ac_link") 2>conftest.er1
22712 grep -v '^ *+' conftest.er1 >conftest.err
22714 cat conftest.err >&5
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); } && {
22717 test -z "$ac_c_werror_flag" ||
22718 test ! -s conftest.err
22719 } && test -s conftest$ac_exeext &&
22720 $as_test_x conftest$ac_exeext; then
22721 ol_cv_pthread_lib_lpthread_woff=yes
22723 echo "$as_me: failed program was:" >&5
22724 sed 's/^/| /' conftest.$ac_ext >&5
22726 ol_cv_pthread_lib_lpthread_woff=no
22729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22730 conftest$ac_exeext conftest.$ac_ext
22732 cat >conftest.$ac_ext <<_ACEOF
22735 cat confdefs.h >>conftest.$ac_ext
22736 cat >>conftest.$ac_ext <<_ACEOF
22737 /* end confdefs.h. */
22739 /* pthread test headers */
22740 #include <pthread.h>
22741 #if HAVE_PTHREADS < 7
22745 #define NULL (void*)0
22748 static void *task(p)
22751 return (void *) (p == NULL);
22755 int main(argc, argv)
22760 /* pthread test function */
22761 #ifndef PTHREAD_CREATE_DETACHED
22762 #define PTHREAD_CREATE_DETACHED 1
22766 int detach = PTHREAD_CREATE_DETACHED;
22768 #if HAVE_PTHREADS > 4
22769 /* Final pthreads */
22770 pthread_attr_t attr;
22772 status = pthread_attr_init(&attr);
22773 if( status ) return status;
22775 #if HAVE_PTHREADS < 7
22776 status = pthread_attr_setdetachstate(&attr, &detach);
22777 if( status < 0 ) status = errno;
22779 status = pthread_attr_setdetachstate(&attr, detach);
22781 if( status ) return status;
22782 status = pthread_create( &t, &attr, task, NULL );
22783 #if HAVE_PTHREADS < 7
22784 if( status < 0 ) status = errno;
22786 if( status ) return status;
22788 /* Draft 4 pthreads */
22789 status = pthread_create( &t, pthread_attr_default, task, NULL );
22790 if( status ) return errno;
22792 /* give thread a chance to complete */
22793 /* it should remain joinable and hence detachable */
22796 status = pthread_detach( &t );
22797 if( status ) return errno;
22800 #ifdef HAVE_LINUX_THREADS
22801 pthread_kill_other_threads_np();
22809 rm -f conftest$ac_exeext
22810 if { (ac_try="$ac_link"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_link") 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820 { (case "(($ac_try" in
22821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822 *) ac_try_echo=$ac_try;;
22824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22825 (eval "$ac_try") 2>&5
22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22828 (exit $ac_status); }; }; then
22829 ol_cv_pthread_lib_lpthread_woff=yes
22831 echo "$as_me: program exited with status $ac_status" >&5
22832 echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22835 ( exit $ac_status )
22836 ol_cv_pthread_lib_lpthread_woff=no
22838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22847 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22848 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22850 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22851 ol_link_pthreads="-lpthread -Wl,-woff,85"
22852 ol_link_threads=posix
22857 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22858 if test "$ol_link_threads" = no ; then
22860 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22861 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22862 if test "${ol_cv_pthread_lpthread+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22868 LIBS="-lpthread $LIBS"
22870 if test "$cross_compiling" = yes; then
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22878 /* pthread test headers */
22879 #include <pthread.h>
22880 #if HAVE_PTHREADS < 7
22884 #define NULL (void*)0
22887 static void *task(p)
22890 return (void *) (p == NULL);
22897 /* pthread test function */
22898 #ifndef PTHREAD_CREATE_DETACHED
22899 #define PTHREAD_CREATE_DETACHED 1
22903 int detach = PTHREAD_CREATE_DETACHED;
22905 #if HAVE_PTHREADS > 4
22906 /* Final pthreads */
22907 pthread_attr_t attr;
22909 status = pthread_attr_init(&attr);
22910 if( status ) return status;
22912 #if HAVE_PTHREADS < 7
22913 status = pthread_attr_setdetachstate(&attr, &detach);
22914 if( status < 0 ) status = errno;
22916 status = pthread_attr_setdetachstate(&attr, detach);
22918 if( status ) return status;
22919 status = pthread_create( &t, &attr, task, NULL );
22920 #if HAVE_PTHREADS < 7
22921 if( status < 0 ) status = errno;
22923 if( status ) return status;
22925 /* Draft 4 pthreads */
22926 status = pthread_create( &t, pthread_attr_default, task, NULL );
22927 if( status ) return errno;
22929 /* give thread a chance to complete */
22930 /* it should remain joinable and hence detachable */
22933 status = pthread_detach( &t );
22934 if( status ) return errno;
22937 #ifdef HAVE_LINUX_THREADS
22938 pthread_kill_other_threads_np();
22947 rm -f conftest.$ac_objext conftest$ac_exeext
22948 if { (ac_try="$ac_link"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_link") 2>conftest.er1
22956 grep -v '^ *+' conftest.er1 >conftest.err
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_c_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest$ac_exeext &&
22964 $as_test_x conftest$ac_exeext; then
22965 ol_cv_pthread_lpthread=yes
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22970 ol_cv_pthread_lpthread=no
22973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22974 conftest$ac_exeext conftest.$ac_ext
22976 cat >conftest.$ac_ext <<_ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22983 /* pthread test headers */
22984 #include <pthread.h>
22985 #if HAVE_PTHREADS < 7
22989 #define NULL (void*)0
22992 static void *task(p)
22995 return (void *) (p == NULL);
22999 int main(argc, argv)
23004 /* pthread test function */
23005 #ifndef PTHREAD_CREATE_DETACHED
23006 #define PTHREAD_CREATE_DETACHED 1
23010 int detach = PTHREAD_CREATE_DETACHED;
23012 #if HAVE_PTHREADS > 4
23013 /* Final pthreads */
23014 pthread_attr_t attr;
23016 status = pthread_attr_init(&attr);
23017 if( status ) return status;
23019 #if HAVE_PTHREADS < 7
23020 status = pthread_attr_setdetachstate(&attr, &detach);
23021 if( status < 0 ) status = errno;
23023 status = pthread_attr_setdetachstate(&attr, detach);
23025 if( status ) return status;
23026 status = pthread_create( &t, &attr, task, NULL );
23027 #if HAVE_PTHREADS < 7
23028 if( status < 0 ) status = errno;
23030 if( status ) return status;
23032 /* Draft 4 pthreads */
23033 status = pthread_create( &t, pthread_attr_default, task, NULL );
23034 if( status ) return errno;
23036 /* give thread a chance to complete */
23037 /* it should remain joinable and hence detachable */
23040 status = pthread_detach( &t );
23041 if( status ) return errno;
23044 #ifdef HAVE_LINUX_THREADS
23045 pthread_kill_other_threads_np();
23053 rm -f conftest$ac_exeext
23054 if { (ac_try="$ac_link"
23055 case "(($ac_try" in
23056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057 *) ac_try_echo=$ac_try;;
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060 (eval "$ac_link") 2>&5
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23064 { (case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_try") 2>&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073 ol_cv_pthread_lpthread=yes
23075 echo "$as_me: program exited with status $ac_status" >&5
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23079 ( exit $ac_status )
23080 ol_cv_pthread_lpthread=no
23082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23091 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23092 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23094 if test $ol_cv_pthread_lpthread = yes ; then
23095 ol_link_pthreads="-lpthread"
23096 ol_link_threads=posix
23100 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23101 if test "$ol_link_threads" = no ; then
23103 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23104 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23105 if test "${ol_cv_pthread_lc_r+set}" = set; then
23106 echo $ECHO_N "(cached) $ECHO_C" >&6
23113 if test "$cross_compiling" = yes; then
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23121 /* pthread test headers */
23122 #include <pthread.h>
23123 #if HAVE_PTHREADS < 7
23127 #define NULL (void*)0
23130 static void *task(p)
23133 return (void *) (p == NULL);
23140 /* pthread test function */
23141 #ifndef PTHREAD_CREATE_DETACHED
23142 #define PTHREAD_CREATE_DETACHED 1
23146 int detach = PTHREAD_CREATE_DETACHED;
23148 #if HAVE_PTHREADS > 4
23149 /* Final pthreads */
23150 pthread_attr_t attr;
23152 status = pthread_attr_init(&attr);
23153 if( status ) return status;
23155 #if HAVE_PTHREADS < 7
23156 status = pthread_attr_setdetachstate(&attr, &detach);
23157 if( status < 0 ) status = errno;
23159 status = pthread_attr_setdetachstate(&attr, detach);
23161 if( status ) return status;
23162 status = pthread_create( &t, &attr, task, NULL );
23163 #if HAVE_PTHREADS < 7
23164 if( status < 0 ) status = errno;
23166 if( status ) return status;
23168 /* Draft 4 pthreads */
23169 status = pthread_create( &t, pthread_attr_default, task, NULL );
23170 if( status ) return errno;
23172 /* give thread a chance to complete */
23173 /* it should remain joinable and hence detachable */
23176 status = pthread_detach( &t );
23177 if( status ) return errno;
23180 #ifdef HAVE_LINUX_THREADS
23181 pthread_kill_other_threads_np();
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (ac_try="$ac_link"
23192 case "(($ac_try" in
23193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194 *) ac_try_echo=$ac_try;;
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197 (eval "$ac_link") 2>conftest.er1
23199 grep -v '^ *+' conftest.er1 >conftest.err
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } && {
23204 test -z "$ac_c_werror_flag" ||
23205 test ! -s conftest.err
23206 } && test -s conftest$ac_exeext &&
23207 $as_test_x conftest$ac_exeext; then
23208 ol_cv_pthread_lc_r=yes
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 ol_cv_pthread_lc_r=no
23216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23217 conftest$ac_exeext conftest.$ac_ext
23219 cat >conftest.$ac_ext <<_ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23226 /* pthread test headers */
23227 #include <pthread.h>
23228 #if HAVE_PTHREADS < 7
23232 #define NULL (void*)0
23235 static void *task(p)
23238 return (void *) (p == NULL);
23242 int main(argc, argv)
23247 /* pthread test function */
23248 #ifndef PTHREAD_CREATE_DETACHED
23249 #define PTHREAD_CREATE_DETACHED 1
23253 int detach = PTHREAD_CREATE_DETACHED;
23255 #if HAVE_PTHREADS > 4
23256 /* Final pthreads */
23257 pthread_attr_t attr;
23259 status = pthread_attr_init(&attr);
23260 if( status ) return status;
23262 #if HAVE_PTHREADS < 7
23263 status = pthread_attr_setdetachstate(&attr, &detach);
23264 if( status < 0 ) status = errno;
23266 status = pthread_attr_setdetachstate(&attr, detach);
23268 if( status ) return status;
23269 status = pthread_create( &t, &attr, task, NULL );
23270 #if HAVE_PTHREADS < 7
23271 if( status < 0 ) status = errno;
23273 if( status ) return status;
23275 /* Draft 4 pthreads */
23276 status = pthread_create( &t, pthread_attr_default, task, NULL );
23277 if( status ) return errno;
23279 /* give thread a chance to complete */
23280 /* it should remain joinable and hence detachable */
23283 status = pthread_detach( &t );
23284 if( status ) return errno;
23287 #ifdef HAVE_LINUX_THREADS
23288 pthread_kill_other_threads_np();
23296 rm -f conftest$ac_exeext
23297 if { (ac_try="$ac_link"
23298 case "(($ac_try" in
23299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300 *) ac_try_echo=$ac_try;;
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303 (eval "$ac_link") 2>&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23307 { (case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_try") 2>&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); }; }; then
23316 ol_cv_pthread_lc_r=yes
23318 echo "$as_me: program exited with status $ac_status" >&5
23319 echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23322 ( exit $ac_status )
23323 ol_cv_pthread_lc_r=no
23325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23334 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23335 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23337 if test $ol_cv_pthread_lc_r = yes ; then
23338 ol_link_pthreads="-lc_r"
23339 ol_link_threads=posix
23344 # Pthread try link: -threads (ol_cv_pthread_threads)
23345 if test "$ol_link_threads" = no ; then
23347 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23348 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23349 if test "${ol_cv_pthread_threads+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 LIBS="-threads $LIBS"
23357 if test "$cross_compiling" = yes; then
23358 cat >conftest.$ac_ext <<_ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23365 /* pthread test headers */
23366 #include <pthread.h>
23367 #if HAVE_PTHREADS < 7
23371 #define NULL (void*)0
23374 static void *task(p)
23377 return (void *) (p == NULL);
23384 /* pthread test function */
23385 #ifndef PTHREAD_CREATE_DETACHED
23386 #define PTHREAD_CREATE_DETACHED 1
23390 int detach = PTHREAD_CREATE_DETACHED;
23392 #if HAVE_PTHREADS > 4
23393 /* Final pthreads */
23394 pthread_attr_t attr;
23396 status = pthread_attr_init(&attr);
23397 if( status ) return status;
23399 #if HAVE_PTHREADS < 7
23400 status = pthread_attr_setdetachstate(&attr, &detach);
23401 if( status < 0 ) status = errno;
23403 status = pthread_attr_setdetachstate(&attr, detach);
23405 if( status ) return status;
23406 status = pthread_create( &t, &attr, task, NULL );
23407 #if HAVE_PTHREADS < 7
23408 if( status < 0 ) status = errno;
23410 if( status ) return status;
23412 /* Draft 4 pthreads */
23413 status = pthread_create( &t, pthread_attr_default, task, NULL );
23414 if( status ) return errno;
23416 /* give thread a chance to complete */
23417 /* it should remain joinable and hence detachable */
23420 status = pthread_detach( &t );
23421 if( status ) return errno;
23424 #ifdef HAVE_LINUX_THREADS
23425 pthread_kill_other_threads_np();
23434 rm -f conftest.$ac_objext conftest$ac_exeext
23435 if { (ac_try="$ac_link"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23441 (eval "$ac_link") 2>conftest.er1
23443 grep -v '^ *+' conftest.er1 >conftest.err
23445 cat conftest.err >&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } && {
23448 test -z "$ac_c_werror_flag" ||
23449 test ! -s conftest.err
23450 } && test -s conftest$ac_exeext &&
23451 $as_test_x conftest$ac_exeext; then
23452 ol_cv_pthread_threads=yes
23454 echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23457 ol_cv_pthread_threads=no
23460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23461 conftest$ac_exeext conftest.$ac_ext
23463 cat >conftest.$ac_ext <<_ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h. */
23470 /* pthread test headers */
23471 #include <pthread.h>
23472 #if HAVE_PTHREADS < 7
23476 #define NULL (void*)0
23479 static void *task(p)
23482 return (void *) (p == NULL);
23486 int main(argc, argv)
23491 /* pthread test function */
23492 #ifndef PTHREAD_CREATE_DETACHED
23493 #define PTHREAD_CREATE_DETACHED 1
23497 int detach = PTHREAD_CREATE_DETACHED;
23499 #if HAVE_PTHREADS > 4
23500 /* Final pthreads */
23501 pthread_attr_t attr;
23503 status = pthread_attr_init(&attr);
23504 if( status ) return status;
23506 #if HAVE_PTHREADS < 7
23507 status = pthread_attr_setdetachstate(&attr, &detach);
23508 if( status < 0 ) status = errno;
23510 status = pthread_attr_setdetachstate(&attr, detach);
23512 if( status ) return status;
23513 status = pthread_create( &t, &attr, task, NULL );
23514 #if HAVE_PTHREADS < 7
23515 if( status < 0 ) status = errno;
23517 if( status ) return status;
23519 /* Draft 4 pthreads */
23520 status = pthread_create( &t, pthread_attr_default, task, NULL );
23521 if( status ) return errno;
23523 /* give thread a chance to complete */
23524 /* it should remain joinable and hence detachable */
23527 status = pthread_detach( &t );
23528 if( status ) return errno;
23531 #ifdef HAVE_LINUX_THREADS
23532 pthread_kill_other_threads_np();
23540 rm -f conftest$ac_exeext
23541 if { (ac_try="$ac_link"
23542 case "(($ac_try" in
23543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544 *) ac_try_echo=$ac_try;;
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547 (eval "$ac_link") 2>&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23551 { (case "(($ac_try" in
23552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23553 *) ac_try_echo=$ac_try;;
23555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23556 (eval "$ac_try") 2>&5
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; }; then
23560 ol_cv_pthread_threads=yes
23562 echo "$as_me: program exited with status $ac_status" >&5
23563 echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23566 ( exit $ac_status )
23567 ol_cv_pthread_threads=no
23569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23578 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23579 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23581 if test $ol_cv_pthread_threads = yes ; then
23582 ol_link_pthreads="-threads"
23583 ol_link_threads=posix
23588 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23589 if test "$ol_link_threads" = no ; then
23590 # try -lpthreads -lmach -lexc -lc_r
23591 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23592 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23593 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23594 echo $ECHO_N "(cached) $ECHO_C" >&6
23599 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23601 if test "$cross_compiling" = yes; then
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23609 /* pthread test headers */
23610 #include <pthread.h>
23611 #if HAVE_PTHREADS < 7
23615 #define NULL (void*)0
23618 static void *task(p)
23621 return (void *) (p == NULL);
23628 /* pthread test function */
23629 #ifndef PTHREAD_CREATE_DETACHED
23630 #define PTHREAD_CREATE_DETACHED 1
23634 int detach = PTHREAD_CREATE_DETACHED;
23636 #if HAVE_PTHREADS > 4
23637 /* Final pthreads */
23638 pthread_attr_t attr;
23640 status = pthread_attr_init(&attr);
23641 if( status ) return status;
23643 #if HAVE_PTHREADS < 7
23644 status = pthread_attr_setdetachstate(&attr, &detach);
23645 if( status < 0 ) status = errno;
23647 status = pthread_attr_setdetachstate(&attr, detach);
23649 if( status ) return status;
23650 status = pthread_create( &t, &attr, task, NULL );
23651 #if HAVE_PTHREADS < 7
23652 if( status < 0 ) status = errno;
23654 if( status ) return status;
23656 /* Draft 4 pthreads */
23657 status = pthread_create( &t, pthread_attr_default, task, NULL );
23658 if( status ) return errno;
23660 /* give thread a chance to complete */
23661 /* it should remain joinable and hence detachable */
23664 status = pthread_detach( &t );
23665 if( status ) return errno;
23668 #ifdef HAVE_LINUX_THREADS
23669 pthread_kill_other_threads_np();
23678 rm -f conftest.$ac_objext conftest$ac_exeext
23679 if { (ac_try="$ac_link"
23680 case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_link") 2>conftest.er1
23687 grep -v '^ *+' conftest.er1 >conftest.err
23689 cat conftest.err >&5
23690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691 (exit $ac_status); } && {
23692 test -z "$ac_c_werror_flag" ||
23693 test ! -s conftest.err
23694 } && test -s conftest$ac_exeext &&
23695 $as_test_x conftest$ac_exeext; then
23696 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23698 echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.$ac_ext >&5
23701 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23705 conftest$ac_exeext conftest.$ac_ext
23707 cat >conftest.$ac_ext <<_ACEOF
23710 cat confdefs.h >>conftest.$ac_ext
23711 cat >>conftest.$ac_ext <<_ACEOF
23712 /* end confdefs.h. */
23714 /* pthread test headers */
23715 #include <pthread.h>
23716 #if HAVE_PTHREADS < 7
23720 #define NULL (void*)0
23723 static void *task(p)
23726 return (void *) (p == NULL);
23730 int main(argc, argv)
23735 /* pthread test function */
23736 #ifndef PTHREAD_CREATE_DETACHED
23737 #define PTHREAD_CREATE_DETACHED 1
23741 int detach = PTHREAD_CREATE_DETACHED;
23743 #if HAVE_PTHREADS > 4
23744 /* Final pthreads */
23745 pthread_attr_t attr;
23747 status = pthread_attr_init(&attr);
23748 if( status ) return status;
23750 #if HAVE_PTHREADS < 7
23751 status = pthread_attr_setdetachstate(&attr, &detach);
23752 if( status < 0 ) status = errno;
23754 status = pthread_attr_setdetachstate(&attr, detach);
23756 if( status ) return status;
23757 status = pthread_create( &t, &attr, task, NULL );
23758 #if HAVE_PTHREADS < 7
23759 if( status < 0 ) status = errno;
23761 if( status ) return status;
23763 /* Draft 4 pthreads */
23764 status = pthread_create( &t, pthread_attr_default, task, NULL );
23765 if( status ) return errno;
23767 /* give thread a chance to complete */
23768 /* it should remain joinable and hence detachable */
23771 status = pthread_detach( &t );
23772 if( status ) return errno;
23775 #ifdef HAVE_LINUX_THREADS
23776 pthread_kill_other_threads_np();
23784 rm -f conftest$ac_exeext
23785 if { (ac_try="$ac_link"
23786 case "(($ac_try" in
23787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23788 *) ac_try_echo=$ac_try;;
23790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23791 (eval "$ac_link") 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23795 { (case "(($ac_try" in
23796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797 *) ac_try_echo=$ac_try;;
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800 (eval "$ac_try") 2>&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23806 echo "$as_me: program exited with status $ac_status" >&5
23807 echo "$as_me: failed program was:" >&5
23808 sed 's/^/| /' conftest.$ac_ext >&5
23810 ( exit $ac_status )
23811 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23823 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23825 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23826 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23827 ol_link_threads=posix
23831 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23832 if test "$ol_link_threads" = no ; then
23833 # try -lpthreads -lmach -lexc
23834 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23835 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23836 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23842 LIBS="-lpthreads -lmach -lexc $LIBS"
23844 if test "$cross_compiling" = yes; then
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23852 /* pthread test headers */
23853 #include <pthread.h>
23854 #if HAVE_PTHREADS < 7
23858 #define NULL (void*)0
23861 static void *task(p)
23864 return (void *) (p == NULL);
23871 /* pthread test function */
23872 #ifndef PTHREAD_CREATE_DETACHED
23873 #define PTHREAD_CREATE_DETACHED 1
23877 int detach = PTHREAD_CREATE_DETACHED;
23879 #if HAVE_PTHREADS > 4
23880 /* Final pthreads */
23881 pthread_attr_t attr;
23883 status = pthread_attr_init(&attr);
23884 if( status ) return status;
23886 #if HAVE_PTHREADS < 7
23887 status = pthread_attr_setdetachstate(&attr, &detach);
23888 if( status < 0 ) status = errno;
23890 status = pthread_attr_setdetachstate(&attr, detach);
23892 if( status ) return status;
23893 status = pthread_create( &t, &attr, task, NULL );
23894 #if HAVE_PTHREADS < 7
23895 if( status < 0 ) status = errno;
23897 if( status ) return status;
23899 /* Draft 4 pthreads */
23900 status = pthread_create( &t, pthread_attr_default, task, NULL );
23901 if( status ) return errno;
23903 /* give thread a chance to complete */
23904 /* it should remain joinable and hence detachable */
23907 status = pthread_detach( &t );
23908 if( status ) return errno;
23911 #ifdef HAVE_LINUX_THREADS
23912 pthread_kill_other_threads_np();
23921 rm -f conftest.$ac_objext conftest$ac_exeext
23922 if { (ac_try="$ac_link"
23923 case "(($ac_try" in
23924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23925 *) ac_try_echo=$ac_try;;
23927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23928 (eval "$ac_link") 2>conftest.er1
23930 grep -v '^ *+' conftest.er1 >conftest.err
23932 cat conftest.err >&5
23933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23934 (exit $ac_status); } && {
23935 test -z "$ac_c_werror_flag" ||
23936 test ! -s conftest.err
23937 } && test -s conftest$ac_exeext &&
23938 $as_test_x conftest$ac_exeext; then
23939 ol_cv_pthread_lpthreads_lmach_lexc=yes
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23944 ol_cv_pthread_lpthreads_lmach_lexc=no
23947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23948 conftest$ac_exeext conftest.$ac_ext
23950 cat >conftest.$ac_ext <<_ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h. */
23957 /* pthread test headers */
23958 #include <pthread.h>
23959 #if HAVE_PTHREADS < 7
23963 #define NULL (void*)0
23966 static void *task(p)
23969 return (void *) (p == NULL);
23973 int main(argc, argv)
23978 /* pthread test function */
23979 #ifndef PTHREAD_CREATE_DETACHED
23980 #define PTHREAD_CREATE_DETACHED 1
23984 int detach = PTHREAD_CREATE_DETACHED;
23986 #if HAVE_PTHREADS > 4
23987 /* Final pthreads */
23988 pthread_attr_t attr;
23990 status = pthread_attr_init(&attr);
23991 if( status ) return status;
23993 #if HAVE_PTHREADS < 7
23994 status = pthread_attr_setdetachstate(&attr, &detach);
23995 if( status < 0 ) status = errno;
23997 status = pthread_attr_setdetachstate(&attr, detach);
23999 if( status ) return status;
24000 status = pthread_create( &t, &attr, task, NULL );
24001 #if HAVE_PTHREADS < 7
24002 if( status < 0 ) status = errno;
24004 if( status ) return status;
24006 /* Draft 4 pthreads */
24007 status = pthread_create( &t, pthread_attr_default, task, NULL );
24008 if( status ) return errno;
24010 /* give thread a chance to complete */
24011 /* it should remain joinable and hence detachable */
24014 status = pthread_detach( &t );
24015 if( status ) return errno;
24018 #ifdef HAVE_LINUX_THREADS
24019 pthread_kill_other_threads_np();
24027 rm -f conftest$ac_exeext
24028 if { (ac_try="$ac_link"
24029 case "(($ac_try" in
24030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031 *) ac_try_echo=$ac_try;;
24033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24034 (eval "$ac_link") 2>&5
24036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24038 { (case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_try") 2>&5
24045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); }; }; then
24047 ol_cv_pthread_lpthreads_lmach_lexc=yes
24049 echo "$as_me: program exited with status $ac_status" >&5
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ( exit $ac_status )
24054 ol_cv_pthread_lpthreads_lmach_lexc=no
24056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24066 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24068 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24069 ol_link_pthreads="-lpthreads -lmach -lexc"
24070 ol_link_threads=posix
24074 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24075 if test "$ol_link_threads" = no ; then
24076 # try -lpthreads -lexc
24077 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24078 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24079 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24080 echo $ECHO_N "(cached) $ECHO_C" >&6
24085 LIBS="-lpthreads -lexc $LIBS"
24087 if test "$cross_compiling" = yes; then
24088 cat >conftest.$ac_ext <<_ACEOF
24091 cat confdefs.h >>conftest.$ac_ext
24092 cat >>conftest.$ac_ext <<_ACEOF
24093 /* end confdefs.h. */
24095 /* pthread test headers */
24096 #include <pthread.h>
24097 #if HAVE_PTHREADS < 7
24101 #define NULL (void*)0
24104 static void *task(p)
24107 return (void *) (p == NULL);
24114 /* pthread test function */
24115 #ifndef PTHREAD_CREATE_DETACHED
24116 #define PTHREAD_CREATE_DETACHED 1
24120 int detach = PTHREAD_CREATE_DETACHED;
24122 #if HAVE_PTHREADS > 4
24123 /* Final pthreads */
24124 pthread_attr_t attr;
24126 status = pthread_attr_init(&attr);
24127 if( status ) return status;
24129 #if HAVE_PTHREADS < 7
24130 status = pthread_attr_setdetachstate(&attr, &detach);
24131 if( status < 0 ) status = errno;
24133 status = pthread_attr_setdetachstate(&attr, detach);
24135 if( status ) return status;
24136 status = pthread_create( &t, &attr, task, NULL );
24137 #if HAVE_PTHREADS < 7
24138 if( status < 0 ) status = errno;
24140 if( status ) return status;
24142 /* Draft 4 pthreads */
24143 status = pthread_create( &t, pthread_attr_default, task, NULL );
24144 if( status ) return errno;
24146 /* give thread a chance to complete */
24147 /* it should remain joinable and hence detachable */
24150 status = pthread_detach( &t );
24151 if( status ) return errno;
24154 #ifdef HAVE_LINUX_THREADS
24155 pthread_kill_other_threads_np();
24164 rm -f conftest.$ac_objext conftest$ac_exeext
24165 if { (ac_try="$ac_link"
24166 case "(($ac_try" in
24167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168 *) ac_try_echo=$ac_try;;
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171 (eval "$ac_link") 2>conftest.er1
24173 grep -v '^ *+' conftest.er1 >conftest.err
24175 cat conftest.err >&5
24176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177 (exit $ac_status); } && {
24178 test -z "$ac_c_werror_flag" ||
24179 test ! -s conftest.err
24180 } && test -s conftest$ac_exeext &&
24181 $as_test_x conftest$ac_exeext; then
24182 ol_cv_pthread_lpthreads_lexc=yes
24184 echo "$as_me: failed program was:" >&5
24185 sed 's/^/| /' conftest.$ac_ext >&5
24187 ol_cv_pthread_lpthreads_lexc=no
24190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24191 conftest$ac_exeext conftest.$ac_ext
24193 cat >conftest.$ac_ext <<_ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h. */
24200 /* pthread test headers */
24201 #include <pthread.h>
24202 #if HAVE_PTHREADS < 7
24206 #define NULL (void*)0
24209 static void *task(p)
24212 return (void *) (p == NULL);
24216 int main(argc, argv)
24221 /* pthread test function */
24222 #ifndef PTHREAD_CREATE_DETACHED
24223 #define PTHREAD_CREATE_DETACHED 1
24227 int detach = PTHREAD_CREATE_DETACHED;
24229 #if HAVE_PTHREADS > 4
24230 /* Final pthreads */
24231 pthread_attr_t attr;
24233 status = pthread_attr_init(&attr);
24234 if( status ) return status;
24236 #if HAVE_PTHREADS < 7
24237 status = pthread_attr_setdetachstate(&attr, &detach);
24238 if( status < 0 ) status = errno;
24240 status = pthread_attr_setdetachstate(&attr, detach);
24242 if( status ) return status;
24243 status = pthread_create( &t, &attr, task, NULL );
24244 #if HAVE_PTHREADS < 7
24245 if( status < 0 ) status = errno;
24247 if( status ) return status;
24249 /* Draft 4 pthreads */
24250 status = pthread_create( &t, pthread_attr_default, task, NULL );
24251 if( status ) return errno;
24253 /* give thread a chance to complete */
24254 /* it should remain joinable and hence detachable */
24257 status = pthread_detach( &t );
24258 if( status ) return errno;
24261 #ifdef HAVE_LINUX_THREADS
24262 pthread_kill_other_threads_np();
24270 rm -f conftest$ac_exeext
24271 if { (ac_try="$ac_link"
24272 case "(($ac_try" in
24273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24274 *) ac_try_echo=$ac_try;;
24276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24277 (eval "$ac_link") 2>&5
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24281 { (case "(($ac_try" in
24282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283 *) ac_try_echo=$ac_try;;
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286 (eval "$ac_try") 2>&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); }; }; then
24290 ol_cv_pthread_lpthreads_lexc=yes
24292 echo "$as_me: program exited with status $ac_status" >&5
24293 echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24296 ( exit $ac_status )
24297 ol_cv_pthread_lpthreads_lexc=no
24299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24308 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24309 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24311 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24312 ol_link_pthreads="-lpthreads -lexc"
24313 ol_link_threads=posix
24318 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24319 if test "$ol_link_threads" = no ; then
24321 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24322 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24323 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24324 echo $ECHO_N "(cached) $ECHO_C" >&6
24329 LIBS="-lpthreads $LIBS"
24331 if test "$cross_compiling" = yes; then
24332 cat >conftest.$ac_ext <<_ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24339 /* pthread test headers */
24340 #include <pthread.h>
24341 #if HAVE_PTHREADS < 7
24345 #define NULL (void*)0
24348 static void *task(p)
24351 return (void *) (p == NULL);
24358 /* pthread test function */
24359 #ifndef PTHREAD_CREATE_DETACHED
24360 #define PTHREAD_CREATE_DETACHED 1
24364 int detach = PTHREAD_CREATE_DETACHED;
24366 #if HAVE_PTHREADS > 4
24367 /* Final pthreads */
24368 pthread_attr_t attr;
24370 status = pthread_attr_init(&attr);
24371 if( status ) return status;
24373 #if HAVE_PTHREADS < 7
24374 status = pthread_attr_setdetachstate(&attr, &detach);
24375 if( status < 0 ) status = errno;
24377 status = pthread_attr_setdetachstate(&attr, detach);
24379 if( status ) return status;
24380 status = pthread_create( &t, &attr, task, NULL );
24381 #if HAVE_PTHREADS < 7
24382 if( status < 0 ) status = errno;
24384 if( status ) return status;
24386 /* Draft 4 pthreads */
24387 status = pthread_create( &t, pthread_attr_default, task, NULL );
24388 if( status ) return errno;
24390 /* give thread a chance to complete */
24391 /* it should remain joinable and hence detachable */
24394 status = pthread_detach( &t );
24395 if( status ) return errno;
24398 #ifdef HAVE_LINUX_THREADS
24399 pthread_kill_other_threads_np();
24408 rm -f conftest.$ac_objext conftest$ac_exeext
24409 if { (ac_try="$ac_link"
24410 case "(($ac_try" in
24411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412 *) ac_try_echo=$ac_try;;
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415 (eval "$ac_link") 2>conftest.er1
24417 grep -v '^ *+' conftest.er1 >conftest.err
24419 cat conftest.err >&5
24420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } && {
24422 test -z "$ac_c_werror_flag" ||
24423 test ! -s conftest.err
24424 } && test -s conftest$ac_exeext &&
24425 $as_test_x conftest$ac_exeext; then
24426 ol_cv_pthread_lib_lpthreads=yes
24428 echo "$as_me: failed program was:" >&5
24429 sed 's/^/| /' conftest.$ac_ext >&5
24431 ol_cv_pthread_lib_lpthreads=no
24434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24435 conftest$ac_exeext conftest.$ac_ext
24437 cat >conftest.$ac_ext <<_ACEOF
24440 cat confdefs.h >>conftest.$ac_ext
24441 cat >>conftest.$ac_ext <<_ACEOF
24442 /* end confdefs.h. */
24444 /* pthread test headers */
24445 #include <pthread.h>
24446 #if HAVE_PTHREADS < 7
24450 #define NULL (void*)0
24453 static void *task(p)
24456 return (void *) (p == NULL);
24460 int main(argc, argv)
24465 /* pthread test function */
24466 #ifndef PTHREAD_CREATE_DETACHED
24467 #define PTHREAD_CREATE_DETACHED 1
24471 int detach = PTHREAD_CREATE_DETACHED;
24473 #if HAVE_PTHREADS > 4
24474 /* Final pthreads */
24475 pthread_attr_t attr;
24477 status = pthread_attr_init(&attr);
24478 if( status ) return status;
24480 #if HAVE_PTHREADS < 7
24481 status = pthread_attr_setdetachstate(&attr, &detach);
24482 if( status < 0 ) status = errno;
24484 status = pthread_attr_setdetachstate(&attr, detach);
24486 if( status ) return status;
24487 status = pthread_create( &t, &attr, task, NULL );
24488 #if HAVE_PTHREADS < 7
24489 if( status < 0 ) status = errno;
24491 if( status ) return status;
24493 /* Draft 4 pthreads */
24494 status = pthread_create( &t, pthread_attr_default, task, NULL );
24495 if( status ) return errno;
24497 /* give thread a chance to complete */
24498 /* it should remain joinable and hence detachable */
24501 status = pthread_detach( &t );
24502 if( status ) return errno;
24505 #ifdef HAVE_LINUX_THREADS
24506 pthread_kill_other_threads_np();
24514 rm -f conftest$ac_exeext
24515 if { (ac_try="$ac_link"
24516 case "(($ac_try" in
24517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518 *) ac_try_echo=$ac_try;;
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521 (eval "$ac_link") 2>&5
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24525 { (case "(($ac_try" in
24526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24527 *) ac_try_echo=$ac_try;;
24529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24530 (eval "$ac_try") 2>&5
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24534 ol_cv_pthread_lib_lpthreads=yes
24536 echo "$as_me: program exited with status $ac_status" >&5
24537 echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24540 ( exit $ac_status )
24541 ol_cv_pthread_lib_lpthreads=no
24543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24552 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24553 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24555 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24556 ol_link_pthreads="-lpthreads"
24557 ol_link_threads=posix
24562 if test $ol_link_threads != no ; then
24563 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24565 save_CPPFLAGS="$CPPFLAGS"
24567 LIBS="$LTHREAD_LIBS $LIBS"
24572 for ac_func in sched_yield pthread_yield thr_yield
24574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24578 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 cat >conftest.$ac_ext <<_ACEOF
24583 cat confdefs.h >>conftest.$ac_ext
24584 cat >>conftest.$ac_ext <<_ACEOF
24585 /* end confdefs.h. */
24586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24588 #define $ac_func innocuous_$ac_func
24590 /* System header to define __stub macros and hopefully few prototypes,
24591 which can conflict with char $ac_func (); below.
24592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24593 <limits.h> exists even on freestanding compilers. */
24596 # include <limits.h>
24598 # include <assert.h>
24603 /* Override any GCC internal prototype to avoid an error.
24604 Use char because int might match the return type of a GCC
24605 builtin and then its argument prototype would still apply. */
24610 /* The GNU C library defines this for functions which it implements
24611 to always fail with ENOSYS. Some functions are actually named
24612 something starting with __ and the normal name is an alias. */
24613 #if defined __stub_$ac_func || defined __stub___$ac_func
24620 return $ac_func ();
24625 rm -f conftest.$ac_objext conftest$ac_exeext
24626 if { (ac_try="$ac_link"
24627 case "(($ac_try" in
24628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24629 *) ac_try_echo=$ac_try;;
24631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24632 (eval "$ac_link") 2>conftest.er1
24634 grep -v '^ *+' conftest.er1 >conftest.err
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } && {
24639 test -z "$ac_c_werror_flag" ||
24640 test ! -s conftest.err
24641 } && test -s conftest$ac_exeext &&
24642 $as_test_x conftest$ac_exeext; then
24643 eval "$as_ac_var=yes"
24645 echo "$as_me: failed program was:" >&5
24646 sed 's/^/| /' conftest.$ac_ext >&5
24648 eval "$as_ac_var=no"
24651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24652 conftest$ac_exeext conftest.$ac_ext
24654 ac_res=`eval echo '${'$as_ac_var'}'`
24655 { echo "$as_me:$LINENO: result: $ac_res" >&5
24656 echo "${ECHO_T}$ac_res" >&6; }
24657 if test `eval echo '${'$as_ac_var'}'` = yes; then
24658 cat >>confdefs.h <<_ACEOF
24659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24666 if test $ac_cv_func_sched_yield = no &&
24667 test $ac_cv_func_pthread_yield = no &&
24668 test $ac_cv_func_thr_yield = no ; then
24669 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24670 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24671 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24672 echo $ECHO_N "(cached) $ECHO_C" >&6
24674 ac_check_lib_save_LIBS=$LIBS
24676 cat >conftest.$ac_ext <<_ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h. */
24683 /* Override any GCC internal prototype to avoid an error.
24684 Use char because int might match the return type of a GCC
24685 builtin and then its argument prototype would still apply. */
24689 char sched_yield ();
24693 return sched_yield ();
24698 rm -f conftest.$ac_objext conftest$ac_exeext
24699 if { (ac_try="$ac_link"
24700 case "(($ac_try" in
24701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702 *) ac_try_echo=$ac_try;;
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705 (eval "$ac_link") 2>conftest.er1
24707 grep -v '^ *+' conftest.er1 >conftest.err
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest$ac_exeext &&
24715 $as_test_x conftest$ac_exeext; then
24716 ac_cv_lib_rt_sched_yield=yes
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24721 ac_cv_lib_rt_sched_yield=no
24724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24725 conftest$ac_exeext conftest.$ac_ext
24726 LIBS=$ac_check_lib_save_LIBS
24728 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24729 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24730 if test $ac_cv_lib_rt_sched_yield = yes; then
24731 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24733 cat >>confdefs.h <<\_ACEOF
24734 #define HAVE_SCHED_YIELD 1
24737 ac_cv_func_sched_yield=yes
24739 ac_cv_func_sched_yield=no
24743 if test $ac_cv_func_sched_yield = no &&
24744 test $ac_cv_func_pthread_yield = no &&
24745 test "$ac_cv_func_thr_yield" = no ; then
24746 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24747 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24751 for ac_func in pthread_kill
24753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24757 echo $ECHO_N "(cached) $ECHO_C" >&6
24759 cat >conftest.$ac_ext <<_ACEOF
24762 cat confdefs.h >>conftest.$ac_ext
24763 cat >>conftest.$ac_ext <<_ACEOF
24764 /* end confdefs.h. */
24765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24767 #define $ac_func innocuous_$ac_func
24769 /* System header to define __stub macros and hopefully few prototypes,
24770 which can conflict with char $ac_func (); below.
24771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24772 <limits.h> exists even on freestanding compilers. */
24775 # include <limits.h>
24777 # include <assert.h>
24782 /* Override any GCC internal prototype to avoid an error.
24783 Use char because int might match the return type of a GCC
24784 builtin and then its argument prototype would still apply. */
24789 /* The GNU C library defines this for functions which it implements
24790 to always fail with ENOSYS. Some functions are actually named
24791 something starting with __ and the normal name is an alias. */
24792 #if defined __stub_$ac_func || defined __stub___$ac_func
24799 return $ac_func ();
24804 rm -f conftest.$ac_objext conftest$ac_exeext
24805 if { (ac_try="$ac_link"
24806 case "(($ac_try" in
24807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24808 *) ac_try_echo=$ac_try;;
24810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24811 (eval "$ac_link") 2>conftest.er1
24813 grep -v '^ *+' conftest.er1 >conftest.err
24815 cat conftest.err >&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } && {
24818 test -z "$ac_c_werror_flag" ||
24819 test ! -s conftest.err
24820 } && test -s conftest$ac_exeext &&
24821 $as_test_x conftest$ac_exeext; then
24822 eval "$as_ac_var=yes"
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 eval "$as_ac_var=no"
24830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24831 conftest$ac_exeext conftest.$ac_ext
24833 ac_res=`eval echo '${'$as_ac_var'}'`
24834 { echo "$as_me:$LINENO: result: $ac_res" >&5
24835 echo "${ECHO_T}$ac_res" >&6; }
24836 if test `eval echo '${'$as_ac_var'}'` = yes; then
24837 cat >>confdefs.h <<_ACEOF
24838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24845 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24846 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24847 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24848 echo $ECHO_N "(cached) $ECHO_C" >&6
24851 cat >conftest.$ac_ext <<_ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h. */
24858 #include <pthread.h>
24859 pthread_rwlock_t rwlock;
24864 pthread_rwlock_destroy(&rwlock);
24869 rm -f conftest.$ac_objext conftest$ac_exeext
24870 if { (ac_try="$ac_link"
24871 case "(($ac_try" in
24872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24873 *) ac_try_echo=$ac_try;;
24875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24876 (eval "$ac_link") 2>conftest.er1
24878 grep -v '^ *+' conftest.er1 >conftest.err
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } && {
24883 test -z "$ac_c_werror_flag" ||
24884 test ! -s conftest.err
24885 } && test -s conftest$ac_exeext &&
24886 $as_test_x conftest$ac_exeext; then
24887 ol_cv_func_pthread_rwlock_destroy=yes
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ol_cv_func_pthread_rwlock_destroy=no
24895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24896 conftest$ac_exeext conftest.$ac_ext
24899 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24900 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24901 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24903 cat >>confdefs.h <<\_ACEOF
24904 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24909 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24910 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24911 if test "${ol_cv_func_pthread_detach+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 cat >conftest.$ac_ext <<_ACEOF
24918 cat confdefs.h >>conftest.$ac_ext
24919 cat >>conftest.$ac_ext <<_ACEOF
24920 /* end confdefs.h. */
24922 #include <pthread.h>
24924 #define NULL (void*)0
24930 pthread_detach(NULL);
24935 rm -f conftest.$ac_objext conftest$ac_exeext
24936 if { (ac_try="$ac_link"
24937 case "(($ac_try" in
24938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939 *) ac_try_echo=$ac_try;;
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942 (eval "$ac_link") 2>conftest.er1
24944 grep -v '^ *+' conftest.er1 >conftest.err
24946 cat conftest.err >&5
24947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 (exit $ac_status); } && {
24949 test -z "$ac_c_werror_flag" ||
24950 test ! -s conftest.err
24951 } && test -s conftest$ac_exeext &&
24952 $as_test_x conftest$ac_exeext; then
24953 ol_cv_func_pthread_detach=yes
24955 echo "$as_me: failed program was:" >&5
24956 sed 's/^/| /' conftest.$ac_ext >&5
24958 ol_cv_func_pthread_detach=no
24961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24962 conftest$ac_exeext conftest.$ac_ext
24965 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24966 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24968 if test $ol_cv_func_pthread_detach = no ; then
24969 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24970 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24971 { (exit 1); exit 1; }; }
24975 cat >>confdefs.h <<\_ACEOF
24976 #define HAVE_PTHREAD_DETACH 1
24985 pthread_setconcurrency \
24986 pthread_getconcurrency \
24987 thr_setconcurrency \
24988 thr_getconcurrency \
24991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24995 echo $ECHO_N "(cached) $ECHO_C" >&6
24997 cat >conftest.$ac_ext <<_ACEOF
25000 cat confdefs.h >>conftest.$ac_ext
25001 cat >>conftest.$ac_ext <<_ACEOF
25002 /* end confdefs.h. */
25003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25005 #define $ac_func innocuous_$ac_func
25007 /* System header to define __stub macros and hopefully few prototypes,
25008 which can conflict with char $ac_func (); below.
25009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25010 <limits.h> exists even on freestanding compilers. */
25013 # include <limits.h>
25015 # include <assert.h>
25020 /* Override any GCC internal prototype to avoid an error.
25021 Use char because int might match the return type of a GCC
25022 builtin and then its argument prototype would still apply. */
25027 /* The GNU C library defines this for functions which it implements
25028 to always fail with ENOSYS. Some functions are actually named
25029 something starting with __ and the normal name is an alias. */
25030 #if defined __stub_$ac_func || defined __stub___$ac_func
25037 return $ac_func ();
25042 rm -f conftest.$ac_objext conftest$ac_exeext
25043 if { (ac_try="$ac_link"
25044 case "(($ac_try" in
25045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25046 *) ac_try_echo=$ac_try;;
25048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25049 (eval "$ac_link") 2>conftest.er1
25051 grep -v '^ *+' conftest.er1 >conftest.err
25053 cat conftest.err >&5
25054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25055 (exit $ac_status); } && {
25056 test -z "$ac_c_werror_flag" ||
25057 test ! -s conftest.err
25058 } && test -s conftest$ac_exeext &&
25059 $as_test_x conftest$ac_exeext; then
25060 eval "$as_ac_var=yes"
25062 echo "$as_me: failed program was:" >&5
25063 sed 's/^/| /' conftest.$ac_ext >&5
25065 eval "$as_ac_var=no"
25068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25069 conftest$ac_exeext conftest.$ac_ext
25071 ac_res=`eval echo '${'$as_ac_var'}'`
25072 { echo "$as_me:$LINENO: result: $ac_res" >&5
25073 echo "${ECHO_T}$ac_res" >&6; }
25074 if test `eval echo '${'$as_ac_var'}'` = yes; then
25075 cat >>confdefs.h <<_ACEOF
25076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25085 for ac_func in pthread_kill_other_threads_np
25087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25088 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25090 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25091 echo $ECHO_N "(cached) $ECHO_C" >&6
25093 cat >conftest.$ac_ext <<_ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25101 #define $ac_func innocuous_$ac_func
25103 /* System header to define __stub macros and hopefully few prototypes,
25104 which can conflict with char $ac_func (); below.
25105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25106 <limits.h> exists even on freestanding compilers. */
25109 # include <limits.h>
25111 # include <assert.h>
25116 /* Override any GCC internal prototype to avoid an error.
25117 Use char because int might match the return type of a GCC
25118 builtin and then its argument prototype would still apply. */
25123 /* The GNU C library defines this for functions which it implements
25124 to always fail with ENOSYS. Some functions are actually named
25125 something starting with __ and the normal name is an alias. */
25126 #if defined __stub_$ac_func || defined __stub___$ac_func
25133 return $ac_func ();
25138 rm -f conftest.$ac_objext conftest$ac_exeext
25139 if { (ac_try="$ac_link"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_link") 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest$ac_exeext &&
25155 $as_test_x conftest$ac_exeext; then
25156 eval "$as_ac_var=yes"
25158 echo "$as_me: failed program was:" >&5
25159 sed 's/^/| /' conftest.$ac_ext >&5
25161 eval "$as_ac_var=no"
25164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25165 conftest$ac_exeext conftest.$ac_ext
25167 ac_res=`eval echo '${'$as_ac_var'}'`
25168 { echo "$as_me:$LINENO: result: $ac_res" >&5
25169 echo "${ECHO_T}$ac_res" >&6; }
25170 if test `eval echo '${'$as_ac_var'}'` = yes; then
25171 cat >>confdefs.h <<_ACEOF
25172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25178 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25179 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25180 if test "${ol_cv_sys_linux_threads+set}" = set; then
25181 echo $ECHO_N "(cached) $ECHO_C" >&6
25183 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25185 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25186 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25191 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25192 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25193 if test "${ol_cv_linux_threads+set}" = set; then
25194 echo $ECHO_N "(cached) $ECHO_C" >&6
25197 if test $ol_cv_header_linux_threads = yes &&
25198 test $ol_cv_sys_linux_threads = yes; then
25199 ol_cv_linux_threads=yes
25200 elif test $ol_cv_header_linux_threads = no &&
25201 test $ol_cv_sys_linux_threads = no; then
25202 ol_cv_linux_threads=no
25204 ol_cv_linux_threads=error
25208 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25209 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25212 if test $ol_cv_linux_threads = error; then
25213 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25214 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25215 { (exit 1); exit 1; }; };
25218 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25219 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25220 if test "${ol_cv_pthread_create_works+set}" = set; then
25221 echo $ECHO_N "(cached) $ECHO_C" >&6
25224 if test "$cross_compiling" = yes; then
25225 ol_cv_pthread_create_works=yes
25227 cat >conftest.$ac_ext <<_ACEOF
25230 cat confdefs.h >>conftest.$ac_ext
25231 cat >>conftest.$ac_ext <<_ACEOF
25232 /* end confdefs.h. */
25234 /* pthread test headers */
25235 #include <pthread.h>
25236 #if HAVE_PTHREADS < 7
25240 #define NULL (void*)0
25243 static void *task(p)
25246 return (void *) (p == NULL);
25250 int main(argc, argv)
25255 /* pthread test function */
25256 #ifndef PTHREAD_CREATE_DETACHED
25257 #define PTHREAD_CREATE_DETACHED 1
25261 int detach = PTHREAD_CREATE_DETACHED;
25263 #if HAVE_PTHREADS > 4
25264 /* Final pthreads */
25265 pthread_attr_t attr;
25267 status = pthread_attr_init(&attr);
25268 if( status ) return status;
25270 #if HAVE_PTHREADS < 7
25271 status = pthread_attr_setdetachstate(&attr, &detach);
25272 if( status < 0 ) status = errno;
25274 status = pthread_attr_setdetachstate(&attr, detach);
25276 if( status ) return status;
25277 status = pthread_create( &t, &attr, task, NULL );
25278 #if HAVE_PTHREADS < 7
25279 if( status < 0 ) status = errno;
25281 if( status ) return status;
25283 /* Draft 4 pthreads */
25284 status = pthread_create( &t, pthread_attr_default, task, NULL );
25285 if( status ) return errno;
25287 /* give thread a chance to complete */
25288 /* it should remain joinable and hence detachable */
25291 status = pthread_detach( &t );
25292 if( status ) return errno;
25295 #ifdef HAVE_LINUX_THREADS
25296 pthread_kill_other_threads_np();
25304 rm -f conftest$ac_exeext
25305 if { (ac_try="$ac_link"
25306 case "(($ac_try" in
25307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25308 *) ac_try_echo=$ac_try;;
25310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25311 (eval "$ac_link") 2>&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25315 { (case "(($ac_try" in
25316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317 *) ac_try_echo=$ac_try;;
25319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25320 (eval "$ac_try") 2>&5
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); }; }; then
25324 ol_cv_pthread_create_works=yes
25326 echo "$as_me: program exited with status $ac_status" >&5
25327 echo "$as_me: failed program was:" >&5
25328 sed 's/^/| /' conftest.$ac_ext >&5
25330 ( exit $ac_status )
25331 ol_cv_pthread_create_works=no
25333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25338 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25339 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25341 if test $ol_cv_pthread_create_works = no ; then
25342 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25343 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25344 { (exit 1); exit 1; }; }
25347 ol_replace_broken_yield=no
25349 if test $ol_replace_broken_yield = yes ; then
25351 cat >>confdefs.h <<\_ACEOF
25352 #define REPLACE_BROKEN_YIELD 1
25357 if test $ol_with_yielding_select = auto ; then
25358 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25359 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25360 if test "${ol_cv_pthread_select_yields+set}" = set; then
25361 echo $ECHO_N "(cached) $ECHO_C" >&6
25364 if test "$cross_compiling" = yes; then
25365 ol_cv_pthread_select_yields=cross
25367 cat >conftest.$ac_ext <<_ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h. */
25374 #include <sys/types.h>
25375 #include <sys/time.h>
25376 #include <unistd.h>
25377 #include <pthread.h>
25379 #define NULL (void*) 0
25382 static int fildes[2];
25384 static void *task(p)
25396 FD_SET(fildes[0], &rfds);
25398 /* we're not interested in any fds */
25399 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25406 exit(0); /* if we exit here, the select blocked the whole process */
25409 int main(argc, argv)
25415 /* create a pipe to select */
25416 if(pipe(&fildes[0])) {
25421 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25422 (void) pthread_setconcurrency(2);
25424 #ifdef HAVE_THR_SETCONCURRENCY
25425 /* Set Solaris LWP concurrency to 2 */
25426 thr_setconcurrency(2);
25430 #if HAVE_PTHREADS < 6
25431 pthread_create(&t, pthread_attr_default, task, NULL);
25433 pthread_create(&t, NULL, task, NULL);
25436 /* make sure task runs first */
25437 #ifdef HAVE_THR_YIELD
25439 #elif defined( HAVE_SCHED_YIELD )
25441 #elif defined( HAVE_PTHREAD_YIELD )
25448 rm -f conftest$ac_exeext
25449 if { (ac_try="$ac_link"
25450 case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25455 (eval "$ac_link") 2>&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25459 { (case "(($ac_try" in
25460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25461 *) ac_try_echo=$ac_try;;
25463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25464 (eval "$ac_try") 2>&5
25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467 (exit $ac_status); }; }; then
25468 ol_cv_pthread_select_yields=no
25470 echo "$as_me: program exited with status $ac_status" >&5
25471 echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 ( exit $ac_status )
25475 ol_cv_pthread_select_yields=yes
25477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25482 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25483 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25485 if test $ol_cv_pthread_select_yields = cross ; then
25486 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25487 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25488 { (exit 1); exit 1; }; }
25491 if test $ol_cv_pthread_select_yields = yes ; then
25492 ol_with_yielding_select=yes
25496 CPPFLAGS="$save_CPPFLAGS"
25499 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25500 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25501 { (exit 1); exit 1; }; }
25505 if test $ol_with_threads = posix ; then
25506 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25507 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25508 { (exit 1); exit 1; }; }
25513 case $ol_with_threads in auto | yes | mach)
25517 for ac_header in mach/cthreads.h cthreads.h
25519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25524 echo $ECHO_N "(cached) $ECHO_C" >&6
25526 ac_res=`eval echo '${'$as_ac_Header'}'`
25527 { echo "$as_me:$LINENO: result: $ac_res" >&5
25528 echo "${ECHO_T}$ac_res" >&6; }
25530 # Is the header compilable?
25531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25533 cat >conftest.$ac_ext <<_ACEOF
25536 cat confdefs.h >>conftest.$ac_ext
25537 cat >>conftest.$ac_ext <<_ACEOF
25538 /* end confdefs.h. */
25539 $ac_includes_default
25540 #include <$ac_header>
25542 rm -f conftest.$ac_objext
25543 if { (ac_try="$ac_compile"
25544 case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25549 (eval "$ac_compile") 2>conftest.er1
25551 grep -v '^ *+' conftest.er1 >conftest.err
25553 cat conftest.err >&5
25554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555 (exit $ac_status); } && {
25556 test -z "$ac_c_werror_flag" ||
25557 test ! -s conftest.err
25558 } && test -s conftest.$ac_objext; then
25559 ac_header_compiler=yes
25561 echo "$as_me: failed program was:" >&5
25562 sed 's/^/| /' conftest.$ac_ext >&5
25564 ac_header_compiler=no
25567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25569 echo "${ECHO_T}$ac_header_compiler" >&6; }
25571 # Is the header present?
25572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25574 cat >conftest.$ac_ext <<_ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 #include <$ac_header>
25582 if { (ac_try="$ac_cpp conftest.$ac_ext"
25583 case "(($ac_try" in
25584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25585 *) ac_try_echo=$ac_try;;
25587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25590 grep -v '^ *+' conftest.er1 >conftest.err
25592 cat conftest.err >&5
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); } >/dev/null && {
25595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25596 test ! -s conftest.err
25598 ac_header_preproc=yes
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25603 ac_header_preproc=no
25606 rm -f conftest.err conftest.$ac_ext
25607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25608 echo "${ECHO_T}$ac_header_preproc" >&6; }
25610 # So? What about this header?
25611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25617 ac_header_preproc=yes
25620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25633 ## --------------------------------------------- ##
25634 ## Report this to <http://www.openldap.org/its/> ##
25635 ## --------------------------------------------- ##
25637 ) | sed "s/^/$as_me: WARNING: /" >&2
25640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25643 echo $ECHO_N "(cached) $ECHO_C" >&6
25645 eval "$as_ac_Header=\$ac_header_preproc"
25647 ac_res=`eval echo '${'$as_ac_Header'}'`
25648 { echo "$as_me:$LINENO: result: $ac_res" >&5
25649 echo "${ECHO_T}$ac_res" >&6; }
25652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25653 cat >>confdefs.h <<_ACEOF
25654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25661 if test $ac_cv_header_mach_cthreads_h = yes ; then
25662 ol_with_threads=found
25664 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25665 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25666 if test "${ac_cv_func_cthread_fork+set}" = set; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25669 cat >conftest.$ac_ext <<_ACEOF
25672 cat confdefs.h >>conftest.$ac_ext
25673 cat >>conftest.$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25677 #define cthread_fork innocuous_cthread_fork
25679 /* System header to define __stub macros and hopefully few prototypes,
25680 which can conflict with char cthread_fork (); below.
25681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25682 <limits.h> exists even on freestanding compilers. */
25685 # include <limits.h>
25687 # include <assert.h>
25690 #undef cthread_fork
25692 /* Override any GCC internal prototype to avoid an error.
25693 Use char because int might match the return type of a GCC
25694 builtin and then its argument prototype would still apply. */
25698 char cthread_fork ();
25699 /* The GNU C library defines this for functions which it implements
25700 to always fail with ENOSYS. Some functions are actually named
25701 something starting with __ and the normal name is an alias. */
25702 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25709 return cthread_fork ();
25714 rm -f conftest.$ac_objext conftest$ac_exeext
25715 if { (ac_try="$ac_link"
25716 case "(($ac_try" in
25717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25718 *) ac_try_echo=$ac_try;;
25720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25721 (eval "$ac_link") 2>conftest.er1
25723 grep -v '^ *+' conftest.er1 >conftest.err
25725 cat conftest.err >&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && {
25728 test -z "$ac_c_werror_flag" ||
25729 test ! -s conftest.err
25730 } && test -s conftest$ac_exeext &&
25731 $as_test_x conftest$ac_exeext; then
25732 ac_cv_func_cthread_fork=yes
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25737 ac_cv_func_cthread_fork=no
25740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25741 conftest$ac_exeext conftest.$ac_ext
25743 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25744 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25745 if test $ac_cv_func_cthread_fork = yes; then
25746 ol_link_threads=yes
25750 if test $ol_link_threads = no ; then
25751 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25752 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25753 if test "${ol_cv_cthread_all_load+set}" = set; then
25754 echo $ECHO_N "(cached) $ECHO_C" >&6
25758 LIBS="-all_load $LIBS"
25759 cat >conftest.$ac_ext <<_ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h. */
25765 #include <mach/cthreads.h>
25770 cthread_fork((void *)0, (void *)0);
25776 rm -f conftest.$ac_objext conftest$ac_exeext
25777 if { (ac_try="$ac_link"
25778 case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783 (eval "$ac_link") 2>conftest.er1
25785 grep -v '^ *+' conftest.er1 >conftest.err
25787 cat conftest.err >&5
25788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25789 (exit $ac_status); } && {
25790 test -z "$ac_c_werror_flag" ||
25791 test ! -s conftest.err
25792 } && test -s conftest$ac_exeext &&
25793 $as_test_x conftest$ac_exeext; then
25794 ol_cv_cthread_all_load=yes
25796 echo "$as_me: failed program was:" >&5
25797 sed 's/^/| /' conftest.$ac_ext >&5
25799 ol_cv_cthread_all_load=no
25802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25803 conftest$ac_exeext conftest.$ac_ext
25807 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25808 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25810 if test $ol_cv_cthread_all_load = yes ; then
25811 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25812 ol_link_threads=mach
25813 ol_with_threads=found
25817 elif test $ac_cv_header_cthreads_h = yes ; then
25819 ol_with_threads=found
25822 LIBS="$LIBS -lthreads"
25823 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25824 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25825 if test "${ac_cv_func_cthread_fork+set}" = set; then
25826 echo $ECHO_N "(cached) $ECHO_C" >&6
25828 cat >conftest.$ac_ext <<_ACEOF
25831 cat confdefs.h >>conftest.$ac_ext
25832 cat >>conftest.$ac_ext <<_ACEOF
25833 /* end confdefs.h. */
25834 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25836 #define cthread_fork innocuous_cthread_fork
25838 /* System header to define __stub macros and hopefully few prototypes,
25839 which can conflict with char cthread_fork (); below.
25840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25841 <limits.h> exists even on freestanding compilers. */
25844 # include <limits.h>
25846 # include <assert.h>
25849 #undef cthread_fork
25851 /* Override any GCC internal prototype to avoid an error.
25852 Use char because int might match the return type of a GCC
25853 builtin and then its argument prototype would still apply. */
25857 char cthread_fork ();
25858 /* The GNU C library defines this for functions which it implements
25859 to always fail with ENOSYS. Some functions are actually named
25860 something starting with __ and the normal name is an alias. */
25861 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25868 return cthread_fork ();
25873 rm -f conftest.$ac_objext conftest$ac_exeext
25874 if { (ac_try="$ac_link"
25875 case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880 (eval "$ac_link") 2>conftest.er1
25882 grep -v '^ *+' conftest.er1 >conftest.err
25884 cat conftest.err >&5
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); } && {
25887 test -z "$ac_c_werror_flag" ||
25888 test ! -s conftest.err
25889 } && test -s conftest$ac_exeext &&
25890 $as_test_x conftest$ac_exeext; then
25891 ac_cv_func_cthread_fork=yes
25893 echo "$as_me: failed program was:" >&5
25894 sed 's/^/| /' conftest.$ac_ext >&5
25896 ac_cv_func_cthread_fork=no
25899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25900 conftest$ac_exeext conftest.$ac_ext
25902 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25903 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25904 if test $ac_cv_func_cthread_fork = yes; then
25905 ol_link_threads=yes
25910 if test $ol_link_threads = yes ; then
25911 LTHREAD_LIBS="-lthreads"
25912 ol_link_threads=mach
25913 ol_with_threads=found
25915 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25916 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25917 { (exit 1); exit 1; }; }
25920 elif test $ol_with_threads = mach ; then
25921 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25922 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25923 { (exit 1); exit 1; }; }
25926 if test $ol_link_threads = mach ; then
25928 cat >>confdefs.h <<\_ACEOF
25929 #define HAVE_MACH_CTHREADS 1
25932 elif test $ol_with_threads = found ; then
25933 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25934 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25935 { (exit 1); exit 1; }; }
25940 case $ol_with_threads in auto | yes | pth)
25943 for ac_header in pth.h
25945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25950 echo $ECHO_N "(cached) $ECHO_C" >&6
25952 ac_res=`eval echo '${'$as_ac_Header'}'`
25953 { echo "$as_me:$LINENO: result: $ac_res" >&5
25954 echo "${ECHO_T}$ac_res" >&6; }
25956 # Is the header compilable?
25957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25959 cat >conftest.$ac_ext <<_ACEOF
25962 cat confdefs.h >>conftest.$ac_ext
25963 cat >>conftest.$ac_ext <<_ACEOF
25964 /* end confdefs.h. */
25965 $ac_includes_default
25966 #include <$ac_header>
25968 rm -f conftest.$ac_objext
25969 if { (ac_try="$ac_compile"
25970 case "(($ac_try" in
25971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25972 *) ac_try_echo=$ac_try;;
25974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25975 (eval "$ac_compile") 2>conftest.er1
25977 grep -v '^ *+' conftest.er1 >conftest.err
25979 cat conftest.err >&5
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); } && {
25982 test -z "$ac_c_werror_flag" ||
25983 test ! -s conftest.err
25984 } && test -s conftest.$ac_objext; then
25985 ac_header_compiler=yes
25987 echo "$as_me: failed program was:" >&5
25988 sed 's/^/| /' conftest.$ac_ext >&5
25990 ac_header_compiler=no
25993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25995 echo "${ECHO_T}$ac_header_compiler" >&6; }
25997 # Is the header present?
25998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26000 cat >conftest.$ac_ext <<_ACEOF
26003 cat confdefs.h >>conftest.$ac_ext
26004 cat >>conftest.$ac_ext <<_ACEOF
26005 /* end confdefs.h. */
26006 #include <$ac_header>
26008 if { (ac_try="$ac_cpp conftest.$ac_ext"
26009 case "(($ac_try" in
26010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26011 *) ac_try_echo=$ac_try;;
26013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26016 grep -v '^ *+' conftest.er1 >conftest.err
26018 cat conftest.err >&5
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } >/dev/null && {
26021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26022 test ! -s conftest.err
26024 ac_header_preproc=yes
26026 echo "$as_me: failed program was:" >&5
26027 sed 's/^/| /' conftest.$ac_ext >&5
26029 ac_header_preproc=no
26032 rm -f conftest.err conftest.$ac_ext
26033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26034 echo "${ECHO_T}$ac_header_preproc" >&6; }
26036 # So? What about this header?
26037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26043 ac_header_preproc=yes
26046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26059 ## --------------------------------------------- ##
26060 ## Report this to <http://www.openldap.org/its/> ##
26061 ## --------------------------------------------- ##
26063 ) | sed "s/^/$as_me: WARNING: /" >&2
26066 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26068 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26069 echo $ECHO_N "(cached) $ECHO_C" >&6
26071 eval "$as_ac_Header=\$ac_header_preproc"
26073 ac_res=`eval echo '${'$as_ac_Header'}'`
26074 { echo "$as_me:$LINENO: result: $ac_res" >&5
26075 echo "${ECHO_T}$ac_res" >&6; }
26078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26079 cat >>confdefs.h <<_ACEOF
26080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26088 if test $ac_cv_header_pth_h = yes ; then
26089 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26090 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26091 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26092 echo $ECHO_N "(cached) $ECHO_C" >&6
26094 ac_check_lib_save_LIBS=$LIBS
26096 cat >conftest.$ac_ext <<_ACEOF
26099 cat confdefs.h >>conftest.$ac_ext
26100 cat >>conftest.$ac_ext <<_ACEOF
26101 /* end confdefs.h. */
26103 /* Override any GCC internal prototype to avoid an error.
26104 Use char because int might match the return type of a GCC
26105 builtin and then its argument prototype would still apply. */
26109 char pth_version ();
26113 return pth_version ();
26118 rm -f conftest.$ac_objext conftest$ac_exeext
26119 if { (ac_try="$ac_link"
26120 case "(($ac_try" in
26121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26122 *) ac_try_echo=$ac_try;;
26124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26125 (eval "$ac_link") 2>conftest.er1
26127 grep -v '^ *+' conftest.er1 >conftest.err
26129 cat conftest.err >&5
26130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26131 (exit $ac_status); } && {
26132 test -z "$ac_c_werror_flag" ||
26133 test ! -s conftest.err
26134 } && test -s conftest$ac_exeext &&
26135 $as_test_x conftest$ac_exeext; then
26136 ac_cv_lib_pth_pth_version=yes
26138 echo "$as_me: failed program was:" >&5
26139 sed 's/^/| /' conftest.$ac_ext >&5
26141 ac_cv_lib_pth_pth_version=no
26144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26145 conftest$ac_exeext conftest.$ac_ext
26146 LIBS=$ac_check_lib_save_LIBS
26148 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26149 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26150 if test $ac_cv_lib_pth_pth_version = yes; then
26157 if test $have_pth = yes ; then
26159 cat >>confdefs.h <<\_ACEOF
26160 #define HAVE_GNU_PTH 1
26163 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26164 ol_link_threads=pth
26165 ol_with_threads=found
26167 if test $ol_with_yielding_select = auto ; then
26168 ol_with_yielding_select=yes
26175 case $ol_with_threads in auto | yes | lwp)
26179 for ac_header in thread.h synch.h
26181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26183 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26186 echo $ECHO_N "(cached) $ECHO_C" >&6
26188 ac_res=`eval echo '${'$as_ac_Header'}'`
26189 { echo "$as_me:$LINENO: result: $ac_res" >&5
26190 echo "${ECHO_T}$ac_res" >&6; }
26192 # Is the header compilable?
26193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26195 cat >conftest.$ac_ext <<_ACEOF
26198 cat confdefs.h >>conftest.$ac_ext
26199 cat >>conftest.$ac_ext <<_ACEOF
26200 /* end confdefs.h. */
26201 $ac_includes_default
26202 #include <$ac_header>
26204 rm -f conftest.$ac_objext
26205 if { (ac_try="$ac_compile"
26206 case "(($ac_try" in
26207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26208 *) ac_try_echo=$ac_try;;
26210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26211 (eval "$ac_compile") 2>conftest.er1
26213 grep -v '^ *+' conftest.er1 >conftest.err
26215 cat conftest.err >&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); } && {
26218 test -z "$ac_c_werror_flag" ||
26219 test ! -s conftest.err
26220 } && test -s conftest.$ac_objext; then
26221 ac_header_compiler=yes
26223 echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26226 ac_header_compiler=no
26229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26231 echo "${ECHO_T}$ac_header_compiler" >&6; }
26233 # Is the header present?
26234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26236 cat >conftest.$ac_ext <<_ACEOF
26239 cat confdefs.h >>conftest.$ac_ext
26240 cat >>conftest.$ac_ext <<_ACEOF
26241 /* end confdefs.h. */
26242 #include <$ac_header>
26244 if { (ac_try="$ac_cpp conftest.$ac_ext"
26245 case "(($ac_try" in
26246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26247 *) ac_try_echo=$ac_try;;
26249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26252 grep -v '^ *+' conftest.er1 >conftest.err
26254 cat conftest.err >&5
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); } >/dev/null && {
26257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26258 test ! -s conftest.err
26260 ac_header_preproc=yes
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26265 ac_header_preproc=no
26268 rm -f conftest.err conftest.$ac_ext
26269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26270 echo "${ECHO_T}$ac_header_preproc" >&6; }
26272 # So? What about this header?
26273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26279 ac_header_preproc=yes
26282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26295 ## --------------------------------------------- ##
26296 ## Report this to <http://www.openldap.org/its/> ##
26297 ## --------------------------------------------- ##
26299 ) | sed "s/^/$as_me: WARNING: /" >&2
26302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26307 eval "$as_ac_Header=\$ac_header_preproc"
26309 ac_res=`eval echo '${'$as_ac_Header'}'`
26310 { echo "$as_me:$LINENO: result: $ac_res" >&5
26311 echo "${ECHO_T}$ac_res" >&6; }
26314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26315 cat >>confdefs.h <<_ACEOF
26316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26323 if test $ac_cv_header_thread_h = yes &&
26324 test $ac_cv_header_synch_h = yes ; then
26325 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26326 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26327 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26328 echo $ECHO_N "(cached) $ECHO_C" >&6
26330 ac_check_lib_save_LIBS=$LIBS
26331 LIBS="-lthread $LIBS"
26332 cat >conftest.$ac_ext <<_ACEOF
26335 cat confdefs.h >>conftest.$ac_ext
26336 cat >>conftest.$ac_ext <<_ACEOF
26337 /* end confdefs.h. */
26339 /* Override any GCC internal prototype to avoid an error.
26340 Use char because int might match the return type of a GCC
26341 builtin and then its argument prototype would still apply. */
26345 char thr_create ();
26349 return thr_create ();
26354 rm -f conftest.$ac_objext conftest$ac_exeext
26355 if { (ac_try="$ac_link"
26356 case "(($ac_try" in
26357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358 *) ac_try_echo=$ac_try;;
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361 (eval "$ac_link") 2>conftest.er1
26363 grep -v '^ *+' conftest.er1 >conftest.err
26365 cat conftest.err >&5
26366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); } && {
26368 test -z "$ac_c_werror_flag" ||
26369 test ! -s conftest.err
26370 } && test -s conftest$ac_exeext &&
26371 $as_test_x conftest$ac_exeext; then
26372 ac_cv_lib_thread_thr_create=yes
26374 echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.$ac_ext >&5
26377 ac_cv_lib_thread_thr_create=no
26380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26381 conftest$ac_exeext conftest.$ac_ext
26382 LIBS=$ac_check_lib_save_LIBS
26384 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26385 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26386 if test $ac_cv_lib_thread_thr_create = yes; then
26393 if test $have_thr = yes ; then
26395 cat >>confdefs.h <<\_ACEOF
26399 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26400 ol_link_threads=thr
26402 if test $ol_with_yielding_select = auto ; then
26403 ol_with_yielding_select=yes
26409 thr_setconcurrency \
26410 thr_getconcurrency \
26413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26419 cat >conftest.$ac_ext <<_ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h. */
26425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26427 #define $ac_func innocuous_$ac_func
26429 /* System header to define __stub macros and hopefully few prototypes,
26430 which can conflict with char $ac_func (); below.
26431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26432 <limits.h> exists even on freestanding compilers. */
26435 # include <limits.h>
26437 # include <assert.h>
26442 /* Override any GCC internal prototype to avoid an error.
26443 Use char because int might match the return type of a GCC
26444 builtin and then its argument prototype would still apply. */
26449 /* The GNU C library defines this for functions which it implements
26450 to always fail with ENOSYS. Some functions are actually named
26451 something starting with __ and the normal name is an alias. */
26452 #if defined __stub_$ac_func || defined __stub___$ac_func
26459 return $ac_func ();
26464 rm -f conftest.$ac_objext conftest$ac_exeext
26465 if { (ac_try="$ac_link"
26466 case "(($ac_try" in
26467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26468 *) ac_try_echo=$ac_try;;
26470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26471 (eval "$ac_link") 2>conftest.er1
26473 grep -v '^ *+' conftest.er1 >conftest.err
26475 cat conftest.err >&5
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } && {
26478 test -z "$ac_c_werror_flag" ||
26479 test ! -s conftest.err
26480 } && test -s conftest$ac_exeext &&
26481 $as_test_x conftest$ac_exeext; then
26482 eval "$as_ac_var=yes"
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26487 eval "$as_ac_var=no"
26490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26491 conftest$ac_exeext conftest.$ac_ext
26493 ac_res=`eval echo '${'$as_ac_var'}'`
26494 { echo "$as_me:$LINENO: result: $ac_res" >&5
26495 echo "${ECHO_T}$ac_res" >&6; }
26496 if test `eval echo '${'$as_ac_var'}'` = yes; then
26497 cat >>confdefs.h <<_ACEOF
26498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26508 for ac_header in lwp/lwp.h
26510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26515 echo $ECHO_N "(cached) $ECHO_C" >&6
26517 ac_res=`eval echo '${'$as_ac_Header'}'`
26518 { echo "$as_me:$LINENO: result: $ac_res" >&5
26519 echo "${ECHO_T}$ac_res" >&6; }
26521 # Is the header compilable?
26522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26524 cat >conftest.$ac_ext <<_ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h. */
26530 $ac_includes_default
26531 #include <$ac_header>
26533 rm -f conftest.$ac_objext
26534 if { (ac_try="$ac_compile"
26535 case "(($ac_try" in
26536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537 *) ac_try_echo=$ac_try;;
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540 (eval "$ac_compile") 2>conftest.er1
26542 grep -v '^ *+' conftest.er1 >conftest.err
26544 cat conftest.err >&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); } && {
26547 test -z "$ac_c_werror_flag" ||
26548 test ! -s conftest.err
26549 } && test -s conftest.$ac_objext; then
26550 ac_header_compiler=yes
26552 echo "$as_me: failed program was:" >&5
26553 sed 's/^/| /' conftest.$ac_ext >&5
26555 ac_header_compiler=no
26558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26560 echo "${ECHO_T}$ac_header_compiler" >&6; }
26562 # Is the header present?
26563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 #include <$ac_header>
26573 if { (ac_try="$ac_cpp conftest.$ac_ext"
26574 case "(($ac_try" in
26575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576 *) ac_try_echo=$ac_try;;
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26581 grep -v '^ *+' conftest.er1 >conftest.err
26583 cat conftest.err >&5
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); } >/dev/null && {
26586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26587 test ! -s conftest.err
26589 ac_header_preproc=yes
26591 echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26594 ac_header_preproc=no
26597 rm -f conftest.err conftest.$ac_ext
26598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26599 echo "${ECHO_T}$ac_header_preproc" >&6; }
26601 # So? What about this header?
26602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26608 ac_header_preproc=yes
26611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26624 ## --------------------------------------------- ##
26625 ## Report this to <http://www.openldap.org/its/> ##
26626 ## --------------------------------------------- ##
26628 ) | sed "s/^/$as_me: WARNING: /" >&2
26631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26636 eval "$as_ac_Header=\$ac_header_preproc"
26638 ac_res=`eval echo '${'$as_ac_Header'}'`
26639 { echo "$as_me:$LINENO: result: $ac_res" >&5
26640 echo "${ECHO_T}$ac_res" >&6; }
26643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26644 cat >>confdefs.h <<_ACEOF
26645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26652 if test $ac_cv_header_lwp_lwp_h = yes ; then
26653 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26654 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26655 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26656 echo $ECHO_N "(cached) $ECHO_C" >&6
26658 ac_check_lib_save_LIBS=$LIBS
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26667 /* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26673 char lwp_create ();
26677 return lwp_create ();
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (ac_try="$ac_link"
26684 case "(($ac_try" in
26685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686 *) ac_try_echo=$ac_try;;
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689 (eval "$ac_link") 2>conftest.er1
26691 grep -v '^ *+' conftest.er1 >conftest.err
26693 cat conftest.err >&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } && {
26696 test -z "$ac_c_werror_flag" ||
26697 test ! -s conftest.err
26698 } && test -s conftest$ac_exeext &&
26699 $as_test_x conftest$ac_exeext; then
26700 ac_cv_lib_lwp_lwp_create=yes
26702 echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26705 ac_cv_lib_lwp_lwp_create=no
26708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26709 conftest$ac_exeext conftest.$ac_ext
26710 LIBS=$ac_check_lib_save_LIBS
26712 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26713 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26714 if test $ac_cv_lib_lwp_lwp_create = yes; then
26721 if test $have_lwp = yes ; then
26723 cat >>confdefs.h <<\_ACEOF
26727 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26728 ol_link_threads=lwp
26730 if test $ol_with_yielding_select = auto ; then
26731 ol_with_yielding_select=no
26738 if test $ol_with_yielding_select = yes ; then
26740 cat >>confdefs.h <<\_ACEOF
26741 #define HAVE_YIELDING_SELECT 1
26746 if test $ol_with_threads = manual ; then
26747 ol_link_threads=yes
26749 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26750 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26754 for ac_header in pthread.h sched.h
26756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26761 echo $ECHO_N "(cached) $ECHO_C" >&6
26763 ac_res=`eval echo '${'$as_ac_Header'}'`
26764 { echo "$as_me:$LINENO: result: $ac_res" >&5
26765 echo "${ECHO_T}$ac_res" >&6; }
26767 # Is the header compilable?
26768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26770 cat >conftest.$ac_ext <<_ACEOF
26773 cat confdefs.h >>conftest.$ac_ext
26774 cat >>conftest.$ac_ext <<_ACEOF
26775 /* end confdefs.h. */
26776 $ac_includes_default
26777 #include <$ac_header>
26779 rm -f conftest.$ac_objext
26780 if { (ac_try="$ac_compile"
26781 case "(($ac_try" in
26782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26783 *) ac_try_echo=$ac_try;;
26785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26786 (eval "$ac_compile") 2>conftest.er1
26788 grep -v '^ *+' conftest.er1 >conftest.err
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } && {
26793 test -z "$ac_c_werror_flag" ||
26794 test ! -s conftest.err
26795 } && test -s conftest.$ac_objext; then
26796 ac_header_compiler=yes
26798 echo "$as_me: failed program was:" >&5
26799 sed 's/^/| /' conftest.$ac_ext >&5
26801 ac_header_compiler=no
26804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26806 echo "${ECHO_T}$ac_header_compiler" >&6; }
26808 # Is the header present?
26809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26817 #include <$ac_header>
26819 if { (ac_try="$ac_cpp conftest.$ac_ext"
26820 case "(($ac_try" in
26821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26822 *) ac_try_echo=$ac_try;;
26824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26827 grep -v '^ *+' conftest.er1 >conftest.err
26829 cat conftest.err >&5
26830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831 (exit $ac_status); } >/dev/null && {
26832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26833 test ! -s conftest.err
26835 ac_header_preproc=yes
26837 echo "$as_me: failed program was:" >&5
26838 sed 's/^/| /' conftest.$ac_ext >&5
26840 ac_header_preproc=no
26843 rm -f conftest.err conftest.$ac_ext
26844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26845 echo "${ECHO_T}$ac_header_preproc" >&6; }
26847 # So? What about this header?
26848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26854 ac_header_preproc=yes
26857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26870 ## --------------------------------------------- ##
26871 ## Report this to <http://www.openldap.org/its/> ##
26872 ## --------------------------------------------- ##
26874 ) | sed "s/^/$as_me: WARNING: /" >&2
26877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26880 echo $ECHO_N "(cached) $ECHO_C" >&6
26882 eval "$as_ac_Header=\$ac_header_preproc"
26884 ac_res=`eval echo '${'$as_ac_Header'}'`
26885 { echo "$as_me:$LINENO: result: $ac_res" >&5
26886 echo "${ECHO_T}$ac_res" >&6; }
26889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26890 cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26900 for ac_func in sched_yield pthread_yield
26902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26906 echo $ECHO_N "(cached) $ECHO_C" >&6
26908 cat >conftest.$ac_ext <<_ACEOF
26911 cat confdefs.h >>conftest.$ac_ext
26912 cat >>conftest.$ac_ext <<_ACEOF
26913 /* end confdefs.h. */
26914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26916 #define $ac_func innocuous_$ac_func
26918 /* System header to define __stub macros and hopefully few prototypes,
26919 which can conflict with char $ac_func (); below.
26920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921 <limits.h> exists even on freestanding compilers. */
26924 # include <limits.h>
26926 # include <assert.h>
26931 /* Override any GCC internal prototype to avoid an error.
26932 Use char because int might match the return type of a GCC
26933 builtin and then its argument prototype would still apply. */
26938 /* The GNU C library defines this for functions which it implements
26939 to always fail with ENOSYS. Some functions are actually named
26940 something starting with __ and the normal name is an alias. */
26941 #if defined __stub_$ac_func || defined __stub___$ac_func
26948 return $ac_func ();
26953 rm -f conftest.$ac_objext conftest$ac_exeext
26954 if { (ac_try="$ac_link"
26955 case "(($ac_try" in
26956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26957 *) ac_try_echo=$ac_try;;
26959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26960 (eval "$ac_link") 2>conftest.er1
26962 grep -v '^ *+' conftest.er1 >conftest.err
26964 cat conftest.err >&5
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); } && {
26967 test -z "$ac_c_werror_flag" ||
26968 test ! -s conftest.err
26969 } && test -s conftest$ac_exeext &&
26970 $as_test_x conftest$ac_exeext; then
26971 eval "$as_ac_var=yes"
26973 echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26976 eval "$as_ac_var=no"
26979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26980 conftest$ac_exeext conftest.$ac_ext
26982 ac_res=`eval echo '${'$as_ac_var'}'`
26983 { echo "$as_me:$LINENO: result: $ac_res" >&5
26984 echo "${ECHO_T}$ac_res" >&6; }
26985 if test `eval echo '${'$as_ac_var'}'` = yes; then
26986 cat >>confdefs.h <<_ACEOF
26987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26994 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26995 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26996 if test "${ol_cv_header_linux_threads+set}" = set; then
26997 echo $ECHO_N "(cached) $ECHO_C" >&6
26999 cat >conftest.$ac_ext <<_ACEOF
27002 cat confdefs.h >>conftest.$ac_ext
27003 cat >>conftest.$ac_ext <<_ACEOF
27004 /* end confdefs.h. */
27005 #include <pthread.h>
27007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27008 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27009 ol_cv_header_linux_threads=yes
27011 ol_cv_header_linux_threads=no
27017 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27018 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27019 if test $ol_cv_header_linux_threads = yes; then
27021 cat >>confdefs.h <<\_ACEOF
27022 #define HAVE_LINUX_THREADS 1
27029 for ac_header in mach/cthreads.h
27031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27036 echo $ECHO_N "(cached) $ECHO_C" >&6
27038 ac_res=`eval echo '${'$as_ac_Header'}'`
27039 { echo "$as_me:$LINENO: result: $ac_res" >&5
27040 echo "${ECHO_T}$ac_res" >&6; }
27042 # Is the header compilable?
27043 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27044 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27045 cat >conftest.$ac_ext <<_ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h. */
27051 $ac_includes_default
27052 #include <$ac_header>
27054 rm -f conftest.$ac_objext
27055 if { (ac_try="$ac_compile"
27056 case "(($ac_try" in
27057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27058 *) ac_try_echo=$ac_try;;
27060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27061 (eval "$ac_compile") 2>conftest.er1
27063 grep -v '^ *+' conftest.er1 >conftest.err
27065 cat conftest.err >&5
27066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067 (exit $ac_status); } && {
27068 test -z "$ac_c_werror_flag" ||
27069 test ! -s conftest.err
27070 } && test -s conftest.$ac_objext; then
27071 ac_header_compiler=yes
27073 echo "$as_me: failed program was:" >&5
27074 sed 's/^/| /' conftest.$ac_ext >&5
27076 ac_header_compiler=no
27079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27080 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27081 echo "${ECHO_T}$ac_header_compiler" >&6; }
27083 # Is the header present?
27084 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27085 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27086 cat >conftest.$ac_ext <<_ACEOF
27089 cat confdefs.h >>conftest.$ac_ext
27090 cat >>conftest.$ac_ext <<_ACEOF
27091 /* end confdefs.h. */
27092 #include <$ac_header>
27094 if { (ac_try="$ac_cpp conftest.$ac_ext"
27095 case "(($ac_try" in
27096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097 *) ac_try_echo=$ac_try;;
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27102 grep -v '^ *+' conftest.er1 >conftest.err
27104 cat conftest.err >&5
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); } >/dev/null && {
27107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27108 test ! -s conftest.err
27110 ac_header_preproc=yes
27112 echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27115 ac_header_preproc=no
27118 rm -f conftest.err conftest.$ac_ext
27119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27120 echo "${ECHO_T}$ac_header_preproc" >&6; }
27122 # So? What about this header?
27123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27129 ac_header_preproc=yes
27132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27145 ## --------------------------------------------- ##
27146 ## Report this to <http://www.openldap.org/its/> ##
27147 ## --------------------------------------------- ##
27149 ) | sed "s/^/$as_me: WARNING: /" >&2
27152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27155 echo $ECHO_N "(cached) $ECHO_C" >&6
27157 eval "$as_ac_Header=\$ac_header_preproc"
27159 ac_res=`eval echo '${'$as_ac_Header'}'`
27160 { echo "$as_me:$LINENO: result: $ac_res" >&5
27161 echo "${ECHO_T}$ac_res" >&6; }
27164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27165 cat >>confdefs.h <<_ACEOF
27166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27174 for ac_header in lwp/lwp.h
27176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 ac_res=`eval echo '${'$as_ac_Header'}'`
27184 { echo "$as_me:$LINENO: result: $ac_res" >&5
27185 echo "${ECHO_T}$ac_res" >&6; }
27187 # Is the header compilable?
27188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27190 cat >conftest.$ac_ext <<_ACEOF
27193 cat confdefs.h >>conftest.$ac_ext
27194 cat >>conftest.$ac_ext <<_ACEOF
27195 /* end confdefs.h. */
27196 $ac_includes_default
27197 #include <$ac_header>
27199 rm -f conftest.$ac_objext
27200 if { (ac_try="$ac_compile"
27201 case "(($ac_try" in
27202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203 *) ac_try_echo=$ac_try;;
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206 (eval "$ac_compile") 2>conftest.er1
27208 grep -v '^ *+' conftest.er1 >conftest.err
27210 cat conftest.err >&5
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); } && {
27213 test -z "$ac_c_werror_flag" ||
27214 test ! -s conftest.err
27215 } && test -s conftest.$ac_objext; then
27216 ac_header_compiler=yes
27218 echo "$as_me: failed program was:" >&5
27219 sed 's/^/| /' conftest.$ac_ext >&5
27221 ac_header_compiler=no
27224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27226 echo "${ECHO_T}$ac_header_compiler" >&6; }
27228 # Is the header present?
27229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27231 cat >conftest.$ac_ext <<_ACEOF
27234 cat confdefs.h >>conftest.$ac_ext
27235 cat >>conftest.$ac_ext <<_ACEOF
27236 /* end confdefs.h. */
27237 #include <$ac_header>
27239 if { (ac_try="$ac_cpp conftest.$ac_ext"
27240 case "(($ac_try" in
27241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242 *) ac_try_echo=$ac_try;;
27244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27247 grep -v '^ *+' conftest.er1 >conftest.err
27249 cat conftest.err >&5
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); } >/dev/null && {
27252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27253 test ! -s conftest.err
27255 ac_header_preproc=yes
27257 echo "$as_me: failed program was:" >&5
27258 sed 's/^/| /' conftest.$ac_ext >&5
27260 ac_header_preproc=no
27263 rm -f conftest.err conftest.$ac_ext
27264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27265 echo "${ECHO_T}$ac_header_preproc" >&6; }
27267 # So? What about this header?
27268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27274 ac_header_preproc=yes
27277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27290 ## --------------------------------------------- ##
27291 ## Report this to <http://www.openldap.org/its/> ##
27292 ## --------------------------------------------- ##
27294 ) | sed "s/^/$as_me: WARNING: /" >&2
27297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27300 echo $ECHO_N "(cached) $ECHO_C" >&6
27302 eval "$as_ac_Header=\$ac_header_preproc"
27304 ac_res=`eval echo '${'$as_ac_Header'}'`
27305 { echo "$as_me:$LINENO: result: $ac_res" >&5
27306 echo "${ECHO_T}$ac_res" >&6; }
27309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27310 cat >>confdefs.h <<_ACEOF
27311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27320 for ac_header in thread.h synch.h
27322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27327 echo $ECHO_N "(cached) $ECHO_C" >&6
27329 ac_res=`eval echo '${'$as_ac_Header'}'`
27330 { echo "$as_me:$LINENO: result: $ac_res" >&5
27331 echo "${ECHO_T}$ac_res" >&6; }
27333 # Is the header compilable?
27334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27336 cat >conftest.$ac_ext <<_ACEOF
27339 cat confdefs.h >>conftest.$ac_ext
27340 cat >>conftest.$ac_ext <<_ACEOF
27341 /* end confdefs.h. */
27342 $ac_includes_default
27343 #include <$ac_header>
27345 rm -f conftest.$ac_objext
27346 if { (ac_try="$ac_compile"
27347 case "(($ac_try" in
27348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349 *) ac_try_echo=$ac_try;;
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352 (eval "$ac_compile") 2>conftest.er1
27354 grep -v '^ *+' conftest.er1 >conftest.err
27356 cat conftest.err >&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } && {
27359 test -z "$ac_c_werror_flag" ||
27360 test ! -s conftest.err
27361 } && test -s conftest.$ac_objext; then
27362 ac_header_compiler=yes
27364 echo "$as_me: failed program was:" >&5
27365 sed 's/^/| /' conftest.$ac_ext >&5
27367 ac_header_compiler=no
27370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27372 echo "${ECHO_T}$ac_header_compiler" >&6; }
27374 # Is the header present?
27375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27377 cat >conftest.$ac_ext <<_ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h. */
27383 #include <$ac_header>
27385 if { (ac_try="$ac_cpp conftest.$ac_ext"
27386 case "(($ac_try" in
27387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27388 *) ac_try_echo=$ac_try;;
27390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27393 grep -v '^ *+' conftest.er1 >conftest.err
27395 cat conftest.err >&5
27396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397 (exit $ac_status); } >/dev/null && {
27398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27399 test ! -s conftest.err
27401 ac_header_preproc=yes
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27406 ac_header_preproc=no
27409 rm -f conftest.err conftest.$ac_ext
27410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27411 echo "${ECHO_T}$ac_header_preproc" >&6; }
27413 # So? What about this header?
27414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27420 ac_header_preproc=yes
27423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27436 ## --------------------------------------------- ##
27437 ## Report this to <http://www.openldap.org/its/> ##
27438 ## --------------------------------------------- ##
27440 ) | sed "s/^/$as_me: WARNING: /" >&2
27443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27446 echo $ECHO_N "(cached) $ECHO_C" >&6
27448 eval "$as_ac_Header=\$ac_header_preproc"
27450 ac_res=`eval echo '${'$as_ac_Header'}'`
27451 { echo "$as_me:$LINENO: result: $ac_res" >&5
27452 echo "${ECHO_T}$ac_res" >&6; }
27455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27456 cat >>confdefs.h <<_ACEOF
27457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27466 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27467 cat >>confdefs.h <<\_ACEOF
27468 #define REENTRANT 1
27471 cat >>confdefs.h <<\_ACEOF
27472 #define _REENTRANT 1
27475 cat >>confdefs.h <<\_ACEOF
27476 #define THREAD_SAFE 1
27479 cat >>confdefs.h <<\_ACEOF
27480 #define _THREAD_SAFE 1
27483 cat >>confdefs.h <<\_ACEOF
27484 #define THREADSAFE 1
27487 cat >>confdefs.h <<\_ACEOF
27488 #define _THREADSAFE 1
27491 cat >>confdefs.h <<\_ACEOF
27492 #define _SGI_MP_SOURCE 1
27496 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27497 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27498 if test "${ol_cv_errno_thread_specific+set}" = set; then
27499 echo $ECHO_N "(cached) $ECHO_C" >&6
27502 cat >conftest.$ac_ext <<_ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h. */
27517 rm -f conftest.$ac_objext conftest$ac_exeext
27518 if { (ac_try="$ac_link"
27519 case "(($ac_try" in
27520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521 *) ac_try_echo=$ac_try;;
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524 (eval "$ac_link") 2>conftest.er1
27526 grep -v '^ *+' conftest.er1 >conftest.err
27528 cat conftest.err >&5
27529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530 (exit $ac_status); } && {
27531 test -z "$ac_c_werror_flag" ||
27532 test ! -s conftest.err
27533 } && test -s conftest$ac_exeext &&
27534 $as_test_x conftest$ac_exeext; then
27535 ol_cv_errno_thread_specific=yes
27537 echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27540 ol_cv_errno_thread_specific=no
27543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27544 conftest$ac_exeext conftest.$ac_ext
27547 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27548 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27550 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27551 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27552 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27553 echo $ECHO_N "(cached) $ECHO_C" >&6
27556 cat >conftest.$ac_ext <<_ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h. */
27571 rm -f conftest.$ac_objext conftest$ac_exeext
27572 if { (ac_try="$ac_link"
27573 case "(($ac_try" in
27574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27575 *) ac_try_echo=$ac_try;;
27577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27578 (eval "$ac_link") 2>conftest.er1
27580 grep -v '^ *+' conftest.er1 >conftest.err
27582 cat conftest.err >&5
27583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584 (exit $ac_status); } && {
27585 test -z "$ac_c_werror_flag" ||
27586 test ! -s conftest.err
27587 } && test -s conftest$ac_exeext &&
27588 $as_test_x conftest$ac_exeext; then
27589 ol_cv_h_errno_thread_specific=yes
27591 echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27594 ol_cv_h_errno_thread_specific=no
27597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27598 conftest$ac_exeext conftest.$ac_ext
27601 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27602 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27604 if test $ol_cv_errno_thread_specific != yes ||
27605 test $ol_cv_h_errno_thread_specific != yes ; then
27606 LIBS="$LTHREAD_LIBS $LIBS"
27612 if test $ol_link_threads = no ; then
27613 if test $ol_with_threads = yes ; then
27614 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27615 echo "$as_me: error: no suitable thread support" >&2;}
27616 { (exit 1); exit 1; }; }
27619 if test $ol_with_threads = auto ; then
27620 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27621 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27626 cat >>confdefs.h <<\_ACEOF
27627 #define NO_THREADS 1
27636 if test $ol_link_threads != no ; then
27638 cat >>confdefs.h <<\_ACEOF
27639 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27651 gmtime_r localtime_r \
27652 gethostbyname_r gethostbyaddr_r \
27655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27659 echo $ECHO_N "(cached) $ECHO_C" >&6
27661 cat >conftest.$ac_ext <<_ACEOF
27664 cat confdefs.h >>conftest.$ac_ext
27665 cat >>conftest.$ac_ext <<_ACEOF
27666 /* end confdefs.h. */
27667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27669 #define $ac_func innocuous_$ac_func
27671 /* System header to define __stub macros and hopefully few prototypes,
27672 which can conflict with char $ac_func (); below.
27673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27674 <limits.h> exists even on freestanding compilers. */
27677 # include <limits.h>
27679 # include <assert.h>
27684 /* Override any GCC internal prototype to avoid an error.
27685 Use char because int might match the return type of a GCC
27686 builtin and then its argument prototype would still apply. */
27691 /* The GNU C library defines this for functions which it implements
27692 to always fail with ENOSYS. Some functions are actually named
27693 something starting with __ and the normal name is an alias. */
27694 #if defined __stub_$ac_func || defined __stub___$ac_func
27701 return $ac_func ();
27706 rm -f conftest.$ac_objext conftest$ac_exeext
27707 if { (ac_try="$ac_link"
27708 case "(($ac_try" in
27709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27710 *) ac_try_echo=$ac_try;;
27712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27713 (eval "$ac_link") 2>conftest.er1
27715 grep -v '^ *+' conftest.er1 >conftest.err
27717 cat conftest.err >&5
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); } && {
27720 test -z "$ac_c_werror_flag" ||
27721 test ! -s conftest.err
27722 } && test -s conftest$ac_exeext &&
27723 $as_test_x conftest$ac_exeext; then
27724 eval "$as_ac_var=yes"
27726 echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27729 eval "$as_ac_var=no"
27732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27733 conftest$ac_exeext conftest.$ac_ext
27735 ac_res=`eval echo '${'$as_ac_var'}'`
27736 { echo "$as_me:$LINENO: result: $ac_res" >&5
27737 echo "${ECHO_T}$ac_res" >&6; }
27738 if test `eval echo '${'$as_ac_var'}'` = yes; then
27739 cat >>confdefs.h <<_ACEOF
27740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27747 if test "$ac_cv_func_ctime_r" = no ; then
27748 ol_cv_func_ctime_r_nargs=0
27750 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27751 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27752 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27753 echo $ECHO_N "(cached) $ECHO_C" >&6
27755 cat >conftest.$ac_ext <<_ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h. */
27765 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27770 rm -f conftest.$ac_objext
27771 if { (ac_try="$ac_compile"
27772 case "(($ac_try" in
27773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774 *) ac_try_echo=$ac_try;;
27776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777 (eval "$ac_compile") 2>conftest.er1
27779 grep -v '^ *+' conftest.er1 >conftest.err
27781 cat conftest.err >&5
27782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783 (exit $ac_status); } && {
27784 test -z "$ac_c_werror_flag" ||
27785 test ! -s conftest.err
27786 } && test -s conftest.$ac_objext; then
27787 ol_cv_func_ctime_r_nargs3=yes
27789 echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27792 ol_cv_func_ctime_r_nargs3=no
27795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27797 cat >conftest.$ac_ext <<_ACEOF
27800 cat confdefs.h >>conftest.$ac_ext
27801 cat >>conftest.$ac_ext <<_ACEOF
27802 /* end confdefs.h. */
27807 time_t ti; char *buffer; ctime_r(&ti,buffer);
27812 rm -f conftest.$ac_objext
27813 if { (ac_try="$ac_compile"
27814 case "(($ac_try" in
27815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27816 *) ac_try_echo=$ac_try;;
27818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27819 (eval "$ac_compile") 2>conftest.er1
27821 grep -v '^ *+' conftest.er1 >conftest.err
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } && {
27826 test -z "$ac_c_werror_flag" ||
27827 test ! -s conftest.err
27828 } && test -s conftest.$ac_objext; then
27829 ol_cv_func_ctime_r_nargs2=yes
27831 echo "$as_me: failed program was:" >&5
27832 sed 's/^/| /' conftest.$ac_ext >&5
27834 ol_cv_func_ctime_r_nargs2=no
27837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27839 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27840 test $ol_cv_func_ctime_r_nargs2 = no ; then
27842 ol_cv_func_ctime_r_nargs=3
27844 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27845 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27847 ol_cv_func_ctime_r_nargs=2
27850 ol_cv_func_ctime_r_nargs=0
27854 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27855 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27857 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27859 cat >>confdefs.h <<_ACEOF
27860 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27867 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27868 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27869 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27870 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27871 echo $ECHO_N "(cached) $ECHO_C" >&6
27873 cat >conftest.$ac_ext <<_ACEOF
27876 cat confdefs.h >>conftest.$ac_ext
27877 cat >>conftest.$ac_ext <<_ACEOF
27878 /* end confdefs.h. */
27879 #include <sys/types.h>
27880 #include <sys/socket.h>
27881 #include <netinet/in.h>
27883 #define BUFSIZE (sizeof(struct hostent)+10)
27887 struct hostent hent; char buffer[BUFSIZE];
27888 int bufsize=BUFSIZE;int h_errno;
27889 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27890 buffer, bufsize, &h_errno);
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902 (eval "$ac_compile") 2>conftest.er1
27904 grep -v '^ *+' conftest.er1 >conftest.err
27906 cat conftest.err >&5
27907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908 (exit $ac_status); } && {
27909 test -z "$ac_c_werror_flag" ||
27910 test ! -s conftest.err
27911 } && test -s conftest.$ac_objext; then
27912 ol_cv_func_gethostbyname_r_nargs5=yes
27914 echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27917 ol_cv_func_gethostbyname_r_nargs5=no
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27922 cat >conftest.$ac_ext <<_ACEOF
27925 cat confdefs.h >>conftest.$ac_ext
27926 cat >>conftest.$ac_ext <<_ACEOF
27927 /* end confdefs.h. */
27928 #include <sys/types.h>
27929 #include <sys/socket.h>
27930 #include <netinet/in.h>
27932 #define BUFSIZE (sizeof(struct hostent)+10)
27936 struct hostent hent;struct hostent *rhent;
27937 char buffer[BUFSIZE];
27938 int bufsize=BUFSIZE;int h_errno;
27939 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27945 rm -f conftest.$ac_objext
27946 if { (ac_try="$ac_compile"
27947 case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27952 (eval "$ac_compile") 2>conftest.er1
27954 grep -v '^ *+' conftest.er1 >conftest.err
27956 cat conftest.err >&5
27957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958 (exit $ac_status); } && {
27959 test -z "$ac_c_werror_flag" ||
27960 test ! -s conftest.err
27961 } && test -s conftest.$ac_objext; then
27962 ol_cv_func_gethostbyname_r_nargs6=yes
27964 echo "$as_me: failed program was:" >&5
27965 sed 's/^/| /' conftest.$ac_ext >&5
27967 ol_cv_func_gethostbyname_r_nargs6=no
27970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27972 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27973 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27975 ol_cv_func_gethostbyname_r_nargs=5
27977 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27978 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27980 ol_cv_func_gethostbyname_r_nargs=6
27983 ol_cv_func_gethostbyname_r_nargs=0
27987 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27988 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27989 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27991 cat >>confdefs.h <<_ACEOF
27992 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27998 ol_cv_func_gethostbyname_r_nargs=0
28001 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28002 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28003 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28004 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28005 echo $ECHO_N "(cached) $ECHO_C" >&6
28007 cat >conftest.$ac_ext <<_ACEOF
28010 cat confdefs.h >>conftest.$ac_ext
28011 cat >>conftest.$ac_ext <<_ACEOF
28012 /* end confdefs.h. */
28013 #include <sys/types.h>
28014 #include <sys/socket.h>
28015 #include <netinet/in.h>
28017 #define BUFSIZE (sizeof(struct hostent)+10)
28021 struct hostent hent; char buffer[BUFSIZE];
28022 struct in_addr add;
28023 size_t alen=sizeof(struct in_addr);
28024 int bufsize=BUFSIZE;int h_errno;
28025 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28026 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28031 rm -f conftest.$ac_objext
28032 if { (ac_try="$ac_compile"
28033 case "(($ac_try" in
28034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28035 *) ac_try_echo=$ac_try;;
28037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28038 (eval "$ac_compile") 2>conftest.er1
28040 grep -v '^ *+' conftest.er1 >conftest.err
28042 cat conftest.err >&5
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } && {
28045 test -z "$ac_c_werror_flag" ||
28046 test ! -s conftest.err
28047 } && test -s conftest.$ac_objext; then
28048 ol_cv_func_gethostbyaddr_r_nargs7=yes
28050 echo "$as_me: failed program was:" >&5
28051 sed 's/^/| /' conftest.$ac_ext >&5
28053 ol_cv_func_gethostbyaddr_r_nargs7=no
28056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28058 cat >conftest.$ac_ext <<_ACEOF
28061 cat confdefs.h >>conftest.$ac_ext
28062 cat >>conftest.$ac_ext <<_ACEOF
28063 /* end confdefs.h. */
28064 #include <sys/types.h>
28065 #include <sys/socket.h>
28066 #include <netinet/in.h>
28068 #define BUFSIZE (sizeof(struct hostent)+10)
28072 struct hostent hent;
28073 struct hostent *rhent; char buffer[BUFSIZE];
28074 struct in_addr add;
28075 size_t alen=sizeof(struct in_addr);
28076 int bufsize=BUFSIZE;int h_errno;
28077 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28078 alen, AF_INET, &hent, buffer, bufsize,
28084 rm -f conftest.$ac_objext
28085 if { (ac_try="$ac_compile"
28086 case "(($ac_try" in
28087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28088 *) ac_try_echo=$ac_try;;
28090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28091 (eval "$ac_compile") 2>conftest.er1
28093 grep -v '^ *+' conftest.er1 >conftest.err
28095 cat conftest.err >&5
28096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); } && {
28098 test -z "$ac_c_werror_flag" ||
28099 test ! -s conftest.err
28100 } && test -s conftest.$ac_objext; then
28101 ol_cv_func_gethostbyaddr_r_nargs8=yes
28103 echo "$as_me: failed program was:" >&5
28104 sed 's/^/| /' conftest.$ac_ext >&5
28106 ol_cv_func_gethostbyaddr_r_nargs8=no
28109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28111 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28112 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28114 ol_cv_func_gethostbyaddr_r_nargs=7
28116 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28117 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28119 ol_cv_func_gethostbyaddr_r_nargs=8
28122 ol_cv_func_gethostbyaddr_r_nargs=0
28126 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28127 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28128 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28130 cat >>confdefs.h <<_ACEOF
28131 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28137 ol_cv_func_gethostbyaddr_r_nargs=0
28142 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28143 ol_cv_berkeley_db=no
28145 for ac_header in db.h
28147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28152 echo $ECHO_N "(cached) $ECHO_C" >&6
28154 ac_res=`eval echo '${'$as_ac_Header'}'`
28155 { echo "$as_me:$LINENO: result: $ac_res" >&5
28156 echo "${ECHO_T}$ac_res" >&6; }
28158 # Is the header compilable?
28159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28161 cat >conftest.$ac_ext <<_ACEOF
28164 cat confdefs.h >>conftest.$ac_ext
28165 cat >>conftest.$ac_ext <<_ACEOF
28166 /* end confdefs.h. */
28167 $ac_includes_default
28168 #include <$ac_header>
28170 rm -f conftest.$ac_objext
28171 if { (ac_try="$ac_compile"
28172 case "(($ac_try" in
28173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28174 *) ac_try_echo=$ac_try;;
28176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28177 (eval "$ac_compile") 2>conftest.er1
28179 grep -v '^ *+' conftest.er1 >conftest.err
28181 cat conftest.err >&5
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); } && {
28184 test -z "$ac_c_werror_flag" ||
28185 test ! -s conftest.err
28186 } && test -s conftest.$ac_objext; then
28187 ac_header_compiler=yes
28189 echo "$as_me: failed program was:" >&5
28190 sed 's/^/| /' conftest.$ac_ext >&5
28192 ac_header_compiler=no
28195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28197 echo "${ECHO_T}$ac_header_compiler" >&6; }
28199 # Is the header present?
28200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28202 cat >conftest.$ac_ext <<_ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h. */
28208 #include <$ac_header>
28210 if { (ac_try="$ac_cpp conftest.$ac_ext"
28211 case "(($ac_try" in
28212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213 *) ac_try_echo=$ac_try;;
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28218 grep -v '^ *+' conftest.er1 >conftest.err
28220 cat conftest.err >&5
28221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222 (exit $ac_status); } >/dev/null && {
28223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28224 test ! -s conftest.err
28226 ac_header_preproc=yes
28228 echo "$as_me: failed program was:" >&5
28229 sed 's/^/| /' conftest.$ac_ext >&5
28231 ac_header_preproc=no
28234 rm -f conftest.err conftest.$ac_ext
28235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28236 echo "${ECHO_T}$ac_header_preproc" >&6; }
28238 # So? What about this header?
28239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28245 ac_header_preproc=yes
28248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28261 ## --------------------------------------------- ##
28262 ## Report this to <http://www.openldap.org/its/> ##
28263 ## --------------------------------------------- ##
28265 ) | sed "s/^/$as_me: WARNING: /" >&2
28268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28271 echo $ECHO_N "(cached) $ECHO_C" >&6
28273 eval "$as_ac_Header=\$ac_header_preproc"
28275 ac_res=`eval echo '${'$as_ac_Header'}'`
28276 { echo "$as_me:$LINENO: result: $ac_res" >&5
28277 echo "${ECHO_T}$ac_res" >&6; }
28280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28281 cat >>confdefs.h <<_ACEOF
28282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28289 if test $ac_cv_header_db_h = yes; then
28290 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28291 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28292 if test "${ol_cv_bdb_major+set}" = set; then
28293 echo $ECHO_N "(cached) $ECHO_C" >&6
28296 cat >conftest.$ac_ext <<_ACEOF
28299 #ifndef DB_VERSION_MAJOR
28300 # define DB_VERSION_MAJOR 1
28302 __db_version DB_VERSION_MAJOR
28305 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28306 ol_cv_bdb_major=${3}
28309 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28310 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28311 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28312 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28313 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28314 { (exit 1); exit 1; }; } ;;
28317 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28318 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28319 if test "${ol_cv_bdb_minor+set}" = set; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28323 cat >conftest.$ac_ext <<_ACEOF
28326 #ifndef DB_VERSION_MINOR
28327 # define DB_VERSION_MINOR 0
28329 __db_version DB_VERSION_MINOR
28332 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28333 ol_cv_bdb_minor=${3}
28336 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28337 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28338 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28339 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28340 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28341 { (exit 1); exit 1; }; } ;;
28344 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28345 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28346 if test "${ol_cv_bdb_compat+set}" = set; then
28347 echo $ECHO_N "(cached) $ECHO_C" >&6
28350 cat >conftest.$ac_ext <<_ACEOF
28353 cat confdefs.h >>conftest.$ac_ext
28354 cat >>conftest.$ac_ext <<_ACEOF
28355 /* end confdefs.h. */
28359 /* this check could be improved */
28360 #ifndef DB_VERSION_MAJOR
28361 # define DB_VERSION_MAJOR 1
28363 #ifndef DB_VERSION_MINOR
28364 # define DB_VERSION_MINOR 0
28367 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28369 /* require 4.4 or later */
28370 #if DB_VERSION_MM >= 0x0404
28371 __db_version_compat
28375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28376 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28377 ol_cv_bdb_compat=yes
28379 ol_cv_bdb_compat=no
28384 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28385 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28388 if test $ol_cv_bdb_compat != yes ; then
28389 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28390 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28391 { (exit 1); exit 1; }; }
28396 if test $ol_cv_bdb_major = 4 ; then
28397 if test $ol_cv_lib_db = no ; then
28398 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28399 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28400 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28404 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28406 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28408 cat >conftest.$ac_ext <<_ACEOF
28411 cat confdefs.h >>conftest.$ac_ext
28412 cat >>conftest.$ac_ext <<_ACEOF
28413 /* end confdefs.h. */
28415 #ifdef HAVE_DB_185_H
28416 # include <db_185.h>
28421 #ifndef DB_VERSION_MAJOR
28422 # define DB_VERSION_MAJOR 1
28426 #define NULL ((void*)0)
28433 #if DB_VERSION_MAJOR > 2
28434 db_env_create( NULL, 0 );
28435 #elif DB_VERSION_MAJOR > 1
28436 db_appexit( NULL );
28438 (void) dbopen( NULL, 0, 0, 0, NULL);
28445 rm -f conftest.$ac_objext conftest$ac_exeext
28446 if { (ac_try="$ac_link"
28447 case "(($ac_try" in
28448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28449 *) ac_try_echo=$ac_try;;
28451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28452 (eval "$ac_link") 2>conftest.er1
28454 grep -v '^ *+' conftest.er1 >conftest.err
28456 cat conftest.err >&5
28457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); } && {
28459 test -z "$ac_c_werror_flag" ||
28460 test ! -s conftest.err
28461 } && test -s conftest$ac_exeext &&
28462 $as_test_x conftest$ac_exeext; then
28463 ol_cv_db_db_4_dot_m=yes
28465 echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28468 ol_cv_db_db_4_dot_m=no
28471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28472 conftest$ac_exeext conftest.$ac_ext
28477 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28478 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28480 if test $ol_cv_db_db_4_dot_m = yes ; then
28481 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28485 if test $ol_cv_lib_db = no ; then
28486 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28487 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28488 if test "${ol_cv_db_db4m+set}" = set; then
28489 echo $ECHO_N "(cached) $ECHO_C" >&6
28492 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28494 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28496 cat >conftest.$ac_ext <<_ACEOF
28499 cat confdefs.h >>conftest.$ac_ext
28500 cat >>conftest.$ac_ext <<_ACEOF
28501 /* end confdefs.h. */
28503 #ifdef HAVE_DB_185_H
28504 # include <db_185.h>
28509 #ifndef DB_VERSION_MAJOR
28510 # define DB_VERSION_MAJOR 1
28514 #define NULL ((void*)0)
28521 #if DB_VERSION_MAJOR > 2
28522 db_env_create( NULL, 0 );
28523 #elif DB_VERSION_MAJOR > 1
28524 db_appexit( NULL );
28526 (void) dbopen( NULL, 0, 0, 0, NULL);
28533 rm -f conftest.$ac_objext conftest$ac_exeext
28534 if { (ac_try="$ac_link"
28535 case "(($ac_try" in
28536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537 *) ac_try_echo=$ac_try;;
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540 (eval "$ac_link") 2>conftest.er1
28542 grep -v '^ *+' conftest.er1 >conftest.err
28544 cat conftest.err >&5
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } && {
28547 test -z "$ac_c_werror_flag" ||
28548 test ! -s conftest.err
28549 } && test -s conftest$ac_exeext &&
28550 $as_test_x conftest$ac_exeext; then
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28560 conftest$ac_exeext conftest.$ac_ext
28565 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28566 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28568 if test $ol_cv_db_db4m = yes ; then
28569 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28573 if test $ol_cv_lib_db = no ; then
28574 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28575 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28576 if test "${ol_cv_db_db_4m+set}" = set; then
28577 echo $ECHO_N "(cached) $ECHO_C" >&6
28580 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28582 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28584 cat >conftest.$ac_ext <<_ACEOF
28587 cat confdefs.h >>conftest.$ac_ext
28588 cat >>conftest.$ac_ext <<_ACEOF
28589 /* end confdefs.h. */
28591 #ifdef HAVE_DB_185_H
28592 # include <db_185.h>
28597 #ifndef DB_VERSION_MAJOR
28598 # define DB_VERSION_MAJOR 1
28602 #define NULL ((void*)0)
28609 #if DB_VERSION_MAJOR > 2
28610 db_env_create( NULL, 0 );
28611 #elif DB_VERSION_MAJOR > 1
28612 db_appexit( NULL );
28614 (void) dbopen( NULL, 0, 0, 0, NULL);
28621 rm -f conftest.$ac_objext conftest$ac_exeext
28622 if { (ac_try="$ac_link"
28623 case "(($ac_try" in
28624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28625 *) ac_try_echo=$ac_try;;
28627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28628 (eval "$ac_link") 2>conftest.er1
28630 grep -v '^ *+' conftest.er1 >conftest.err
28632 cat conftest.err >&5
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); } && {
28635 test -z "$ac_c_werror_flag" ||
28636 test ! -s conftest.err
28637 } && test -s conftest$ac_exeext &&
28638 $as_test_x conftest$ac_exeext; then
28641 echo "$as_me: failed program was:" >&5
28642 sed 's/^/| /' conftest.$ac_ext >&5
28647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28648 conftest$ac_exeext conftest.$ac_ext
28653 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28654 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28656 if test $ol_cv_db_db_4m = yes ; then
28657 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28661 if test $ol_cv_lib_db = no ; then
28662 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28663 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28664 if test "${ol_cv_db_db_4_m+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28668 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28670 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28672 cat >conftest.$ac_ext <<_ACEOF
28675 cat confdefs.h >>conftest.$ac_ext
28676 cat >>conftest.$ac_ext <<_ACEOF
28677 /* end confdefs.h. */
28679 #ifdef HAVE_DB_185_H
28680 # include <db_185.h>
28685 #ifndef DB_VERSION_MAJOR
28686 # define DB_VERSION_MAJOR 1
28690 #define NULL ((void*)0)
28697 #if DB_VERSION_MAJOR > 2
28698 db_env_create( NULL, 0 );
28699 #elif DB_VERSION_MAJOR > 1
28700 db_appexit( NULL );
28702 (void) dbopen( NULL, 0, 0, 0, NULL);
28709 rm -f conftest.$ac_objext conftest$ac_exeext
28710 if { (ac_try="$ac_link"
28711 case "(($ac_try" in
28712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28713 *) ac_try_echo=$ac_try;;
28715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28716 (eval "$ac_link") 2>conftest.er1
28718 grep -v '^ *+' conftest.er1 >conftest.err
28720 cat conftest.err >&5
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); } && {
28723 test -z "$ac_c_werror_flag" ||
28724 test ! -s conftest.err
28725 } && test -s conftest$ac_exeext &&
28726 $as_test_x conftest$ac_exeext; then
28727 ol_cv_db_db_4_m=yes
28729 echo "$as_me: failed program was:" >&5
28730 sed 's/^/| /' conftest.$ac_ext >&5
28735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28736 conftest$ac_exeext conftest.$ac_ext
28741 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28742 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28744 if test $ol_cv_db_db_4_m = yes ; then
28745 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28749 if test $ol_cv_lib_db = no ; then
28750 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28751 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28752 if test "${ol_cv_db_db_4+set}" = set; then
28753 echo $ECHO_N "(cached) $ECHO_C" >&6
28758 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28760 cat >conftest.$ac_ext <<_ACEOF
28763 cat confdefs.h >>conftest.$ac_ext
28764 cat >>conftest.$ac_ext <<_ACEOF
28765 /* end confdefs.h. */
28767 #ifdef HAVE_DB_185_H
28768 # include <db_185.h>
28773 #ifndef DB_VERSION_MAJOR
28774 # define DB_VERSION_MAJOR 1
28778 #define NULL ((void*)0)
28785 #if DB_VERSION_MAJOR > 2
28786 db_env_create( NULL, 0 );
28787 #elif DB_VERSION_MAJOR > 1
28788 db_appexit( NULL );
28790 (void) dbopen( NULL, 0, 0, 0, NULL);
28797 rm -f conftest.$ac_objext conftest$ac_exeext
28798 if { (ac_try="$ac_link"
28799 case "(($ac_try" in
28800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28801 *) ac_try_echo=$ac_try;;
28803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28804 (eval "$ac_link") 2>conftest.er1
28806 grep -v '^ *+' conftest.er1 >conftest.err
28808 cat conftest.err >&5
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); } && {
28811 test -z "$ac_c_werror_flag" ||
28812 test ! -s conftest.err
28813 } && test -s conftest$ac_exeext &&
28814 $as_test_x conftest$ac_exeext; then
28817 echo "$as_me: failed program was:" >&5
28818 sed 's/^/| /' conftest.$ac_ext >&5
28823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28824 conftest$ac_exeext conftest.$ac_ext
28829 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28830 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28832 if test $ol_cv_db_db_4 = yes ; then
28833 ol_cv_lib_db=-ldb-4
28837 if test $ol_cv_lib_db = no ; then
28838 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28839 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28840 if test "${ol_cv_db_db4+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28846 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28848 cat >conftest.$ac_ext <<_ACEOF
28851 cat confdefs.h >>conftest.$ac_ext
28852 cat >>conftest.$ac_ext <<_ACEOF
28853 /* end confdefs.h. */
28855 #ifdef HAVE_DB_185_H
28856 # include <db_185.h>
28861 #ifndef DB_VERSION_MAJOR
28862 # define DB_VERSION_MAJOR 1
28866 #define NULL ((void*)0)
28873 #if DB_VERSION_MAJOR > 2
28874 db_env_create( NULL, 0 );
28875 #elif DB_VERSION_MAJOR > 1
28876 db_appexit( NULL );
28878 (void) dbopen( NULL, 0, 0, 0, NULL);
28885 rm -f conftest.$ac_objext conftest$ac_exeext
28886 if { (ac_try="$ac_link"
28887 case "(($ac_try" in
28888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889 *) ac_try_echo=$ac_try;;
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892 (eval "$ac_link") 2>conftest.er1
28894 grep -v '^ *+' conftest.er1 >conftest.err
28896 cat conftest.err >&5
28897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28898 (exit $ac_status); } && {
28899 test -z "$ac_c_werror_flag" ||
28900 test ! -s conftest.err
28901 } && test -s conftest$ac_exeext &&
28902 $as_test_x conftest$ac_exeext; then
28905 echo "$as_me: failed program was:" >&5
28906 sed 's/^/| /' conftest.$ac_ext >&5
28911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28912 conftest$ac_exeext conftest.$ac_ext
28917 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28918 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28920 if test $ol_cv_db_db4 = yes ; then
28925 if test $ol_cv_lib_db = no ; then
28926 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28927 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28928 if test "${ol_cv_db_db+set}" = set; then
28929 echo $ECHO_N "(cached) $ECHO_C" >&6
28934 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28936 cat >conftest.$ac_ext <<_ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h. */
28943 #ifdef HAVE_DB_185_H
28944 # include <db_185.h>
28949 #ifndef DB_VERSION_MAJOR
28950 # define DB_VERSION_MAJOR 1
28954 #define NULL ((void*)0)
28961 #if DB_VERSION_MAJOR > 2
28962 db_env_create( NULL, 0 );
28963 #elif DB_VERSION_MAJOR > 1
28964 db_appexit( NULL );
28966 (void) dbopen( NULL, 0, 0, 0, NULL);
28973 rm -f conftest.$ac_objext conftest$ac_exeext
28974 if { (ac_try="$ac_link"
28975 case "(($ac_try" in
28976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28977 *) ac_try_echo=$ac_try;;
28979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28980 (eval "$ac_link") 2>conftest.er1
28982 grep -v '^ *+' conftest.er1 >conftest.err
28984 cat conftest.err >&5
28985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28986 (exit $ac_status); } && {
28987 test -z "$ac_c_werror_flag" ||
28988 test ! -s conftest.err
28989 } && test -s conftest$ac_exeext &&
28990 $as_test_x conftest$ac_exeext; then
28993 echo "$as_me: failed program was:" >&5
28994 sed 's/^/| /' conftest.$ac_ext >&5
28999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29000 conftest$ac_exeext conftest.$ac_ext
29005 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29006 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29008 if test $ol_cv_db_db = yes ; then
29014 if test $ol_cv_lib_db = no ; then
29015 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29016 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29017 if test "${ol_cv_db_none+set}" = set; then
29018 echo $ECHO_N "(cached) $ECHO_C" >&6
29023 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29025 cat >conftest.$ac_ext <<_ACEOF
29028 cat confdefs.h >>conftest.$ac_ext
29029 cat >>conftest.$ac_ext <<_ACEOF
29030 /* end confdefs.h. */
29032 #ifdef HAVE_DB_185_H
29033 # include <db_185.h>
29038 #ifndef DB_VERSION_MAJOR
29039 # define DB_VERSION_MAJOR 1
29043 #define NULL ((void*)0)
29050 #if DB_VERSION_MAJOR > 2
29051 db_env_create( NULL, 0 );
29052 #elif DB_VERSION_MAJOR > 1
29053 db_appexit( NULL );
29055 (void) dbopen( NULL, 0, 0, 0, NULL);
29062 rm -f conftest.$ac_objext conftest$ac_exeext
29063 if { (ac_try="$ac_link"
29064 case "(($ac_try" in
29065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29066 *) ac_try_echo=$ac_try;;
29068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29069 (eval "$ac_link") 2>conftest.er1
29071 grep -v '^ *+' conftest.er1 >conftest.err
29073 cat conftest.err >&5
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); } && {
29076 test -z "$ac_c_werror_flag" ||
29077 test ! -s conftest.err
29078 } && test -s conftest$ac_exeext &&
29079 $as_test_x conftest$ac_exeext; then
29082 echo "$as_me: failed program was:" >&5
29083 sed 's/^/| /' conftest.$ac_ext >&5
29088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29089 conftest$ac_exeext conftest.$ac_ext
29094 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29095 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29097 if test $ol_cv_db_none = yes ; then
29103 if test "$ol_cv_lib_db" != no ; then
29104 ol_cv_berkeley_db=yes
29105 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29106 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29107 if test "${ol_cv_berkeley_db_version+set}" = set; then
29108 echo $ECHO_N "(cached) $ECHO_C" >&6
29112 LIBS="$LTHREAD_LIBS $LIBS"
29113 if test $ol_cv_lib_db != yes ; then
29114 LIBS="$ol_cv_lib_db $LIBS"
29117 if test "$cross_compiling" = yes; then
29118 ol_cv_berkeley_db_version=cross
29120 cat >conftest.$ac_ext <<_ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h. */
29127 #ifdef HAVE_DB_185_H
29132 #ifndef DB_VERSION_MAJOR
29133 # define DB_VERSION_MAJOR 1
29136 #define NULL ((void *)0)
29140 #if DB_VERSION_MAJOR > 1
29142 int major, minor, patch;
29144 version = db_version( &major, &minor, &patch );
29146 if( major != DB_VERSION_MAJOR ||
29147 minor != DB_VERSION_MINOR ||
29148 patch != DB_VERSION_PATCH )
29150 printf("Berkeley DB version mismatch\n"
29151 "\theader: %s\n\tlibrary: %s\n",
29152 DB_VERSION_STRING, version);
29160 rm -f conftest$ac_exeext
29161 if { (ac_try="$ac_link"
29162 case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_link") 2>&5
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29171 { (case "(($ac_try" in
29172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29173 *) ac_try_echo=$ac_try;;
29175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29176 (eval "$ac_try") 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ol_cv_berkeley_db_version=yes
29182 echo "$as_me: program exited with status $ac_status" >&5
29183 echo "$as_me: failed program was:" >&5
29184 sed 's/^/| /' conftest.$ac_ext >&5
29186 ( exit $ac_status )
29187 ol_cv_berkeley_db_version=no
29189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29197 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29198 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29200 if test $ol_cv_berkeley_db_version = no ; then
29201 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29202 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29203 { (exit 1); exit 1; }; }
29206 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29207 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29208 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29209 echo $ECHO_N "(cached) $ECHO_C" >&6
29213 LIBS="$LTHREAD_LIBS $LIBS"
29214 if test $ol_cv_lib_db != yes ; then
29215 LIBS="$ol_cv_lib_db $LIBS"
29218 if test "$cross_compiling" = yes; then
29219 ol_cv_berkeley_db_thread=cross
29221 cat >conftest.$ac_ext <<_ACEOF
29224 cat confdefs.h >>conftest.$ac_ext
29225 cat >>conftest.$ac_ext <<_ACEOF
29226 /* end confdefs.h. */
29228 #ifdef HAVE_DB_185_H
29234 #define NULL ((void *)0)
29239 u_int32_t flags = DB_CREATE |
29245 #if DB_VERSION_MAJOR > 2
29246 DB_ENV *env = NULL;
29248 rc = db_env_create( &env, 0 );
29250 flags |= DB_INIT_MPOOL;
29251 #ifdef DB_MPOOL_PRIVATE
29252 flags |= DB_MPOOL_PRIVATE;
29256 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29260 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29261 rc = (env->open)( env, NULL, flags, 0 );
29263 rc = (env->open)( env, NULL, NULL, flags, 0 );
29267 rc = env->close( env, 0 );
29271 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29277 memset( &env, '\0', sizeof(env) );
29279 rc = db_appinit( NULL, NULL, &env, flags );
29282 db_appexit( &env );
29285 unlink("__db_mpool.share");
29286 unlink("__db_lock.share");
29292 rm -f conftest$ac_exeext
29293 if { (ac_try="$ac_link"
29294 case "(($ac_try" in
29295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29296 *) ac_try_echo=$ac_try;;
29298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29299 (eval "$ac_link") 2>&5
29301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29303 { (case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29308 (eval "$ac_try") 2>&5
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; }; then
29312 ol_cv_berkeley_db_thread=yes
29314 echo "$as_me: program exited with status $ac_status" >&5
29315 echo "$as_me: failed program was:" >&5
29316 sed 's/^/| /' conftest.$ac_ext >&5
29318 ( exit $ac_status )
29319 ol_cv_berkeley_db_thread=no
29321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29329 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29330 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29332 if test $ol_cv_berkeley_db_thread != no ; then
29334 cat >>confdefs.h <<\_ACEOF
29335 #define HAVE_BERKELEY_DB_THREAD 1
29344 if test $ol_cv_berkeley_db = no ; then
29345 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29346 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29347 { (exit 1); exit 1; }; }
29351 cat >>confdefs.h <<\_ACEOF
29352 #define HAVE_BERKELEY_DB 1
29356 if test $ol_cv_lib_db != yes ; then
29357 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29360 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29366 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29367 BUILD_LIBS_DYNAMIC=shared
29369 cat >>confdefs.h <<\_ACEOF
29370 #define LDAP_LIBS_DYNAMIC 1
29375 BUILD_LIBS_DYNAMIC=static
29379 if test $ol_enable_wrappers != no ; then
29381 for ac_header in tcpd.h
29383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388 echo $ECHO_N "(cached) $ECHO_C" >&6
29390 ac_res=`eval echo '${'$as_ac_Header'}'`
29391 { echo "$as_me:$LINENO: result: $ac_res" >&5
29392 echo "${ECHO_T}$ac_res" >&6; }
29394 # Is the header compilable?
29395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29397 cat >conftest.$ac_ext <<_ACEOF
29400 cat confdefs.h >>conftest.$ac_ext
29401 cat >>conftest.$ac_ext <<_ACEOF
29402 /* end confdefs.h. */
29403 $ac_includes_default
29404 #include <$ac_header>
29406 rm -f conftest.$ac_objext
29407 if { (ac_try="$ac_compile"
29408 case "(($ac_try" in
29409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410 *) ac_try_echo=$ac_try;;
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413 (eval "$ac_compile") 2>conftest.er1
29415 grep -v '^ *+' conftest.er1 >conftest.err
29417 cat conftest.err >&5
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); } && {
29420 test -z "$ac_c_werror_flag" ||
29421 test ! -s conftest.err
29422 } && test -s conftest.$ac_objext; then
29423 ac_header_compiler=yes
29425 echo "$as_me: failed program was:" >&5
29426 sed 's/^/| /' conftest.$ac_ext >&5
29428 ac_header_compiler=no
29431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29433 echo "${ECHO_T}$ac_header_compiler" >&6; }
29435 # Is the header present?
29436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29438 cat >conftest.$ac_ext <<_ACEOF
29441 cat confdefs.h >>conftest.$ac_ext
29442 cat >>conftest.$ac_ext <<_ACEOF
29443 /* end confdefs.h. */
29444 #include <$ac_header>
29446 if { (ac_try="$ac_cpp conftest.$ac_ext"
29447 case "(($ac_try" in
29448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449 *) ac_try_echo=$ac_try;;
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29454 grep -v '^ *+' conftest.er1 >conftest.err
29456 cat conftest.err >&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); } >/dev/null && {
29459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29460 test ! -s conftest.err
29462 ac_header_preproc=yes
29464 echo "$as_me: failed program was:" >&5
29465 sed 's/^/| /' conftest.$ac_ext >&5
29467 ac_header_preproc=no
29470 rm -f conftest.err conftest.$ac_ext
29471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29472 echo "${ECHO_T}$ac_header_preproc" >&6; }
29474 # So? What about this header?
29475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29481 ac_header_preproc=yes
29484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29497 ## --------------------------------------------- ##
29498 ## Report this to <http://www.openldap.org/its/> ##
29499 ## --------------------------------------------- ##
29501 ) | sed "s/^/$as_me: WARNING: /" >&2
29504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 eval "$as_ac_Header=\$ac_header_preproc"
29511 ac_res=`eval echo '${'$as_ac_Header'}'`
29512 { echo "$as_me:$LINENO: result: $ac_res" >&5
29513 echo "${ECHO_T}$ac_res" >&6; }
29516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29517 cat >>confdefs.h <<_ACEOF
29518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29521 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29522 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29524 LIBS="$LIBS -lwrap"
29525 cat >conftest.$ac_ext <<_ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h. */
29533 int allow_severity = 0;
29534 int deny_severity = 0;
29536 struct request_info *req;
29548 rm -f conftest.$ac_objext conftest$ac_exeext
29549 if { (ac_try="$ac_link"
29550 case "(($ac_try" in
29551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29552 *) ac_try_echo=$ac_try;;
29554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29555 (eval "$ac_link") 2>conftest.er1
29557 grep -v '^ *+' conftest.er1 >conftest.err
29559 cat conftest.err >&5
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); } && {
29562 test -z "$ac_c_werror_flag" ||
29563 test ! -s conftest.err
29564 } && test -s conftest$ac_exeext &&
29565 $as_test_x conftest$ac_exeext; then
29566 { echo "$as_me:$LINENO: result: -lwrap" >&5
29567 echo "${ECHO_T}-lwrap" >&6; }
29571 echo "$as_me: failed program was:" >&5
29572 sed 's/^/| /' conftest.$ac_ext >&5
29576 cat >conftest.$ac_ext <<_ACEOF
29579 cat confdefs.h >>conftest.$ac_ext
29580 cat >>conftest.$ac_ext <<_ACEOF
29581 /* end confdefs.h. */
29584 int allow_severity = 0;
29585 int deny_severity = 0;
29587 struct request_info *req;
29599 rm -f conftest.$ac_objext conftest$ac_exeext
29600 if { (ac_try="$ac_link"
29601 case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606 (eval "$ac_link") 2>conftest.er1
29608 grep -v '^ *+' conftest.er1 >conftest.err
29610 cat conftest.err >&5
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } && {
29613 test -z "$ac_c_werror_flag" ||
29614 test ! -s conftest.err
29615 } && test -s conftest$ac_exeext &&
29616 $as_test_x conftest$ac_exeext; then
29617 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29618 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29620 LIBS="$save_LIBS -lnsl"
29622 echo "$as_me: failed program was:" >&5
29623 sed 's/^/| /' conftest.$ac_ext >&5
29626 { echo "$as_me:$LINENO: result: no" >&5
29627 echo "${ECHO_T}no" >&6; }
29632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29633 conftest$ac_exeext conftest.$ac_ext
29636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29637 conftest$ac_exeext conftest.$ac_ext
29645 if test $have_wrappers = yes ; then
29647 cat >>confdefs.h <<\_ACEOF
29648 #define HAVE_TCPD 1
29652 elif test $ol_enable_wrappers = yes ; then
29653 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29654 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29655 { (exit 1); exit 1; }; }
29657 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29658 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29663 if test $ol_enable_syslog != no ; then
29664 { echo "$as_me:$LINENO: checking for openlog" >&5
29665 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29666 if test "${ac_cv_func_openlog+set}" = set; then
29667 echo $ECHO_N "(cached) $ECHO_C" >&6
29669 cat >conftest.$ac_ext <<_ACEOF
29672 cat confdefs.h >>conftest.$ac_ext
29673 cat >>conftest.$ac_ext <<_ACEOF
29674 /* end confdefs.h. */
29675 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29677 #define openlog innocuous_openlog
29679 /* System header to define __stub macros and hopefully few prototypes,
29680 which can conflict with char openlog (); below.
29681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29682 <limits.h> exists even on freestanding compilers. */
29685 # include <limits.h>
29687 # include <assert.h>
29692 /* Override any GCC internal prototype to avoid an error.
29693 Use char because int might match the return type of a GCC
29694 builtin and then its argument prototype would still apply. */
29699 /* The GNU C library defines this for functions which it implements
29700 to always fail with ENOSYS. Some functions are actually named
29701 something starting with __ and the normal name is an alias. */
29702 #if defined __stub_openlog || defined __stub___openlog
29714 rm -f conftest.$ac_objext conftest$ac_exeext
29715 if { (ac_try="$ac_link"
29716 case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721 (eval "$ac_link") 2>conftest.er1
29723 grep -v '^ *+' conftest.er1 >conftest.err
29725 cat conftest.err >&5
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); } && {
29728 test -z "$ac_c_werror_flag" ||
29729 test ! -s conftest.err
29730 } && test -s conftest$ac_exeext &&
29731 $as_test_x conftest$ac_exeext; then
29732 ac_cv_func_openlog=yes
29734 echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.$ac_ext >&5
29737 ac_cv_func_openlog=no
29740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29741 conftest$ac_exeext conftest.$ac_ext
29743 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29744 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29746 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29747 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29748 echo "$as_me: error: could not find syslog" >&2;}
29749 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29751 ol_enable_syslog=$ac_cv_func_openlog
29755 if test $ol_enable_sql != no ; then
29758 for ac_header in sql.h sqlext.h
29760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29767 ac_res=`eval echo '${'$as_ac_Header'}'`
29768 { echo "$as_me:$LINENO: result: $ac_res" >&5
29769 echo "${ECHO_T}$ac_res" >&6; }
29771 # Is the header compilable?
29772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29774 cat >conftest.$ac_ext <<_ACEOF
29777 cat confdefs.h >>conftest.$ac_ext
29778 cat >>conftest.$ac_ext <<_ACEOF
29779 /* end confdefs.h. */
29780 $ac_includes_default
29781 #include <$ac_header>
29783 rm -f conftest.$ac_objext
29784 if { (ac_try="$ac_compile"
29785 case "(($ac_try" in
29786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29787 *) ac_try_echo=$ac_try;;
29789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29790 (eval "$ac_compile") 2>conftest.er1
29792 grep -v '^ *+' conftest.er1 >conftest.err
29794 cat conftest.err >&5
29795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29796 (exit $ac_status); } && {
29797 test -z "$ac_c_werror_flag" ||
29798 test ! -s conftest.err
29799 } && test -s conftest.$ac_objext; then
29800 ac_header_compiler=yes
29802 echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29805 ac_header_compiler=no
29808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29810 echo "${ECHO_T}$ac_header_compiler" >&6; }
29812 # Is the header present?
29813 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29814 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29815 cat >conftest.$ac_ext <<_ACEOF
29818 cat confdefs.h >>conftest.$ac_ext
29819 cat >>conftest.$ac_ext <<_ACEOF
29820 /* end confdefs.h. */
29821 #include <$ac_header>
29823 if { (ac_try="$ac_cpp conftest.$ac_ext"
29824 case "(($ac_try" in
29825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826 *) ac_try_echo=$ac_try;;
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29831 grep -v '^ *+' conftest.er1 >conftest.err
29833 cat conftest.err >&5
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } >/dev/null && {
29836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29837 test ! -s conftest.err
29839 ac_header_preproc=yes
29841 echo "$as_me: failed program was:" >&5
29842 sed 's/^/| /' conftest.$ac_ext >&5
29844 ac_header_preproc=no
29847 rm -f conftest.err conftest.$ac_ext
29848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29849 echo "${ECHO_T}$ac_header_preproc" >&6; }
29851 # So? What about this header?
29852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29854 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29855 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29858 ac_header_preproc=yes
29861 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29862 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29863 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29864 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29865 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29866 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29867 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29868 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29871 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29872 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29874 ## --------------------------------------------- ##
29875 ## Report this to <http://www.openldap.org/its/> ##
29876 ## --------------------------------------------- ##
29878 ) | sed "s/^/$as_me: WARNING: /" >&2
29881 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29886 eval "$as_ac_Header=\$ac_header_preproc"
29888 ac_res=`eval echo '${'$as_ac_Header'}'`
29889 { echo "$as_me:$LINENO: result: $ac_res" >&5
29890 echo "${ECHO_T}$ac_res" >&6; }
29893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29894 cat >>confdefs.h <<_ACEOF
29895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29900 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29901 echo "$as_me: error: could not locate SQL headers" >&2;}
29902 { (exit 1); exit 1; }; }
29910 LIBS="$LTHREAD_LIBS"
29912 if test $ol_with_odbc = auto ; then
29913 ol_with_odbc="iodbc unixodbc odbc32"
29916 for odbc in $ol_with_odbc ; do
29917 if test $ol_link_sql = no ; then
29920 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29921 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29922 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29923 echo $ECHO_N "(cached) $ECHO_C" >&6
29925 ac_check_lib_save_LIBS=$LIBS
29926 LIBS="-liodbc $LIBS"
29927 cat >conftest.$ac_ext <<_ACEOF
29930 cat confdefs.h >>conftest.$ac_ext
29931 cat >>conftest.$ac_ext <<_ACEOF
29932 /* end confdefs.h. */
29934 /* Override any GCC internal prototype to avoid an error.
29935 Use char because int might match the return type of a GCC
29936 builtin and then its argument prototype would still apply. */
29940 char SQLDriverConnect ();
29944 return SQLDriverConnect ();
29949 rm -f conftest.$ac_objext conftest$ac_exeext
29950 if { (ac_try="$ac_link"
29951 case "(($ac_try" in
29952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29953 *) ac_try_echo=$ac_try;;
29955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29956 (eval "$ac_link") 2>conftest.er1
29958 grep -v '^ *+' conftest.er1 >conftest.err
29960 cat conftest.err >&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } && {
29963 test -z "$ac_c_werror_flag" ||
29964 test ! -s conftest.err
29965 } && test -s conftest$ac_exeext &&
29966 $as_test_x conftest$ac_exeext; then
29967 ac_cv_lib_iodbc_SQLDriverConnect=yes
29969 echo "$as_me: failed program was:" >&5
29970 sed 's/^/| /' conftest.$ac_ext >&5
29972 ac_cv_lib_iodbc_SQLDriverConnect=no
29975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29976 conftest$ac_exeext conftest.$ac_ext
29977 LIBS=$ac_check_lib_save_LIBS
29979 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29980 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29981 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29987 if test $have_iodbc = yes ; then
29988 ol_link_sql="-liodbc"
29993 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29994 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29995 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29996 echo $ECHO_N "(cached) $ECHO_C" >&6
29998 ac_check_lib_save_LIBS=$LIBS
29999 LIBS="-lodbc $LIBS"
30000 cat >conftest.$ac_ext <<_ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30007 /* Override any GCC internal prototype to avoid an error.
30008 Use char because int might match the return type of a GCC
30009 builtin and then its argument prototype would still apply. */
30013 char SQLDriverConnect ();
30017 return SQLDriverConnect ();
30022 rm -f conftest.$ac_objext conftest$ac_exeext
30023 if { (ac_try="$ac_link"
30024 case "(($ac_try" in
30025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30026 *) ac_try_echo=$ac_try;;
30028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30029 (eval "$ac_link") 2>conftest.er1
30031 grep -v '^ *+' conftest.er1 >conftest.err
30033 cat conftest.err >&5
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); } && {
30036 test -z "$ac_c_werror_flag" ||
30037 test ! -s conftest.err
30038 } && test -s conftest$ac_exeext &&
30039 $as_test_x conftest$ac_exeext; then
30040 ac_cv_lib_odbc_SQLDriverConnect=yes
30042 echo "$as_me: failed program was:" >&5
30043 sed 's/^/| /' conftest.$ac_ext >&5
30045 ac_cv_lib_odbc_SQLDriverConnect=no
30048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30049 conftest$ac_exeext conftest.$ac_ext
30050 LIBS=$ac_check_lib_save_LIBS
30052 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30053 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30054 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30060 if test $have_odbc = yes ; then
30061 ol_link_sql="-lodbc"
30066 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30067 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30068 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30069 echo $ECHO_N "(cached) $ECHO_C" >&6
30071 ac_check_lib_save_LIBS=$LIBS
30072 LIBS="-lodbc32 $LIBS"
30073 cat >conftest.$ac_ext <<_ACEOF
30076 cat confdefs.h >>conftest.$ac_ext
30077 cat >>conftest.$ac_ext <<_ACEOF
30078 /* end confdefs.h. */
30080 /* Override any GCC internal prototype to avoid an error.
30081 Use char because int might match the return type of a GCC
30082 builtin and then its argument prototype would still apply. */
30086 char SQLDriverConnect ();
30090 return SQLDriverConnect ();
30095 rm -f conftest.$ac_objext conftest$ac_exeext
30096 if { (ac_try="$ac_link"
30097 case "(($ac_try" in
30098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30099 *) ac_try_echo=$ac_try;;
30101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30102 (eval "$ac_link") 2>conftest.er1
30104 grep -v '^ *+' conftest.er1 >conftest.err
30106 cat conftest.err >&5
30107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30108 (exit $ac_status); } && {
30109 test -z "$ac_c_werror_flag" ||
30110 test ! -s conftest.err
30111 } && test -s conftest$ac_exeext &&
30112 $as_test_x conftest$ac_exeext; then
30113 ac_cv_lib_odbc32_SQLDriverConnect=yes
30115 echo "$as_me: failed program was:" >&5
30116 sed 's/^/| /' conftest.$ac_ext >&5
30118 ac_cv_lib_odbc32_SQLDriverConnect=no
30121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30122 conftest$ac_exeext conftest.$ac_ext
30123 LIBS=$ac_check_lib_save_LIBS
30125 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30126 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30127 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30133 if test $have_odbc32 = yes ; then
30134 ol_link_sql="-lodbc32"
30139 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30140 echo "$as_me: error: unknown ODBC library" >&2;}
30141 { (exit 1); exit 1; }; }
30149 if test $ol_link_sql != no ; then
30150 SLAPD_SQL_LIBS="$ol_link_sql"
30152 elif test $ol_enable_sql != auto ; then
30153 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30154 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30155 { (exit 1); exit 1; }; }
30160 if test $ol_enable_ndb != no ; then
30161 # Extract the first word of "mysql_config", so it can be a program name with args.
30162 set dummy mysql_config; ac_word=$2
30163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30165 if test "${ac_cv_prog_MYSQL+set}" = set; then
30166 echo $ECHO_N "(cached) $ECHO_C" >&6
30168 if test -n "$MYSQL"; then
30169 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30172 for as_dir in $PATH
30175 test -z "$as_dir" && as_dir=.
30176 for ac_exec_ext in '' $ac_executable_extensions; do
30177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30178 ac_cv_prog_MYSQL="yes"
30179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30188 MYSQL=$ac_cv_prog_MYSQL
30189 if test -n "$MYSQL"; then
30190 { echo "$as_me:$LINENO: result: $MYSQL" >&5
30191 echo "${ECHO_T}$MYSQL" >&6; }
30193 { echo "$as_me:$LINENO: result: no" >&5
30194 echo "${ECHO_T}no" >&6; }
30198 if test "$MYSQL" != yes ; then
30199 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30200 echo "$as_me: error: could not locate mysql_config" >&2;}
30201 { (exit 1); exit 1; }; }
30204 SQL_INC=`mysql_config --include`
30205 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30207 save_CPPFLAGS="$CPPFLAGS"
30208 CPPFLAGS="$SLAPD_NDB_INCS"
30209 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30210 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30211 cat >conftest.$ac_ext <<_ACEOF
30214 cat confdefs.h >>conftest.$ac_ext
30215 cat >>conftest.$ac_ext <<_ACEOF
30216 /* end confdefs.h. */
30217 #include <NdbApi.hpp>
30219 if { (ac_try="$ac_cpp conftest.$ac_ext"
30220 case "(($ac_try" in
30221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222 *) ac_try_echo=$ac_try;;
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30227 grep -v '^ *+' conftest.er1 >conftest.err
30229 cat conftest.err >&5
30230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } >/dev/null && {
30232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30233 test ! -s conftest.err
30235 { echo "$as_me:$LINENO: result: yes" >&5
30236 echo "${ECHO_T}yes" >&6; }
30238 echo "$as_me: failed program was:" >&5
30239 sed 's/^/| /' conftest.$ac_ext >&5
30241 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30242 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30243 { (exit 1); exit 1; }; }
30247 rm -f conftest.err conftest.$ac_ext
30248 CPPFLAGS="$save_CPPFLAGS"
30250 SQL_LIB=`mysql_config --libs_r`
30251 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30253 save_LDFLAGS="$LDFLAGS"
30256 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30257 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30258 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30259 echo $ECHO_N "(cached) $ECHO_C" >&6
30261 ac_check_lib_save_LIBS=$LIBS
30262 LIBS="-lndbclient -lstdc++ $LIBS"
30263 cat >conftest.$ac_ext <<_ACEOF
30266 cat confdefs.h >>conftest.$ac_ext
30267 cat >>conftest.$ac_ext <<_ACEOF
30268 /* end confdefs.h. */
30270 /* Override any GCC internal prototype to avoid an error.
30271 Use char because int might match the return type of a GCC
30272 builtin and then its argument prototype would still apply. */
30280 return ndb_init ();
30285 rm -f conftest.$ac_objext conftest$ac_exeext
30286 if { (ac_try="$ac_link"
30287 case "(($ac_try" in
30288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30289 *) ac_try_echo=$ac_try;;
30291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30292 (eval "$ac_link") 2>conftest.er1
30294 grep -v '^ *+' conftest.er1 >conftest.err
30296 cat conftest.err >&5
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); } && {
30299 test -z "$ac_c_werror_flag" ||
30300 test ! -s conftest.err
30301 } && test -s conftest$ac_exeext &&
30302 $as_test_x conftest$ac_exeext; then
30303 ac_cv_lib_ndbclient_ndb_init=yes
30305 echo "$as_me: failed program was:" >&5
30306 sed 's/^/| /' conftest.$ac_ext >&5
30308 ac_cv_lib_ndbclient_ndb_init=no
30311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30312 conftest$ac_exeext conftest.$ac_ext
30313 LIBS=$ac_check_lib_save_LIBS
30315 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30316 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30317 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30321 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30322 echo "$as_me: error: could not locate ndbclient library" >&2;}
30323 { (exit 1); exit 1; }; }
30328 LDFLAGS="$save_LDFLAGS"
30330 if test "$ol_enable_ndb" = yes ; then
30331 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30337 for ac_header in unicode/utypes.h
30339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30344 echo $ECHO_N "(cached) $ECHO_C" >&6
30346 ac_res=`eval echo '${'$as_ac_Header'}'`
30347 { echo "$as_me:$LINENO: result: $ac_res" >&5
30348 echo "${ECHO_T}$ac_res" >&6; }
30350 # Is the header compilable?
30351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30353 cat >conftest.$ac_ext <<_ACEOF
30356 cat confdefs.h >>conftest.$ac_ext
30357 cat >>conftest.$ac_ext <<_ACEOF
30358 /* end confdefs.h. */
30359 $ac_includes_default
30360 #include <$ac_header>
30362 rm -f conftest.$ac_objext
30363 if { (ac_try="$ac_compile"
30364 case "(($ac_try" in
30365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30366 *) ac_try_echo=$ac_try;;
30368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30369 (eval "$ac_compile") 2>conftest.er1
30371 grep -v '^ *+' conftest.er1 >conftest.err
30373 cat conftest.err >&5
30374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30375 (exit $ac_status); } && {
30376 test -z "$ac_c_werror_flag" ||
30377 test ! -s conftest.err
30378 } && test -s conftest.$ac_objext; then
30379 ac_header_compiler=yes
30381 echo "$as_me: failed program was:" >&5
30382 sed 's/^/| /' conftest.$ac_ext >&5
30384 ac_header_compiler=no
30387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30389 echo "${ECHO_T}$ac_header_compiler" >&6; }
30391 # Is the header present?
30392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30394 cat >conftest.$ac_ext <<_ACEOF
30397 cat confdefs.h >>conftest.$ac_ext
30398 cat >>conftest.$ac_ext <<_ACEOF
30399 /* end confdefs.h. */
30400 #include <$ac_header>
30402 if { (ac_try="$ac_cpp conftest.$ac_ext"
30403 case "(($ac_try" in
30404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30405 *) ac_try_echo=$ac_try;;
30407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30410 grep -v '^ *+' conftest.er1 >conftest.err
30412 cat conftest.err >&5
30413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414 (exit $ac_status); } >/dev/null && {
30415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30416 test ! -s conftest.err
30418 ac_header_preproc=yes
30420 echo "$as_me: failed program was:" >&5
30421 sed 's/^/| /' conftest.$ac_ext >&5
30423 ac_header_preproc=no
30426 rm -f conftest.err conftest.$ac_ext
30427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30428 echo "${ECHO_T}$ac_header_preproc" >&6; }
30430 # So? What about this header?
30431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30437 ac_header_preproc=yes
30440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30453 ## --------------------------------------------- ##
30454 ## Report this to <http://www.openldap.org/its/> ##
30455 ## --------------------------------------------- ##
30457 ) | sed "s/^/$as_me: WARNING: /" >&2
30460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30463 echo $ECHO_N "(cached) $ECHO_C" >&6
30465 eval "$as_ac_Header=\$ac_header_preproc"
30467 ac_res=`eval echo '${'$as_ac_Header'}'`
30468 { echo "$as_me:$LINENO: result: $ac_res" >&5
30469 echo "${ECHO_T}$ac_res" >&6; }
30472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30473 cat >>confdefs.h <<_ACEOF
30474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30481 if test $ac_cv_header_unicode_utypes_h = yes ; then
30482 OL_ICULIBS="-licuuc -licudata"
30484 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30485 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30486 if test "${ol_cv_lib_icu+set}" = set; then
30487 echo $ECHO_N "(cached) $ECHO_C" >&6
30491 LIBS="$OL_ICULIBS $LIBS"
30492 cat >conftest.$ac_ext <<_ACEOF
30495 cat confdefs.h >>conftest.$ac_ext
30496 cat >>conftest.$ac_ext <<_ACEOF
30497 /* end confdefs.h. */
30499 #include <unicode/utypes.h>
30505 (void) u_errorName(0);
30511 rm -f conftest.$ac_objext conftest$ac_exeext
30512 if { (ac_try="$ac_link"
30513 case "(($ac_try" in
30514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515 *) ac_try_echo=$ac_try;;
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518 (eval "$ac_link") 2>conftest.er1
30520 grep -v '^ *+' conftest.er1 >conftest.err
30522 cat conftest.err >&5
30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524 (exit $ac_status); } && {
30525 test -z "$ac_c_werror_flag" ||
30526 test ! -s conftest.err
30527 } && test -s conftest$ac_exeext &&
30528 $as_test_x conftest$ac_exeext; then
30531 echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30538 conftest$ac_exeext conftest.$ac_ext
30542 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30543 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30545 if test $ol_cv_lib_icu != no ; then
30546 ol_icu="$OL_ICULIBS"
30548 cat >>confdefs.h <<\_ACEOF
30555 if test "$ol_icu" = no ; then
30556 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30557 echo "$as_me: WARNING: ICU not available" >&2;}
30564 if test $ol_with_cyrus_sasl != no ; then
30567 for ac_header in sasl/sasl.h sasl.h
30569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30574 echo $ECHO_N "(cached) $ECHO_C" >&6
30576 ac_res=`eval echo '${'$as_ac_Header'}'`
30577 { echo "$as_me:$LINENO: result: $ac_res" >&5
30578 echo "${ECHO_T}$ac_res" >&6; }
30580 # Is the header compilable?
30581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30583 cat >conftest.$ac_ext <<_ACEOF
30586 cat confdefs.h >>conftest.$ac_ext
30587 cat >>conftest.$ac_ext <<_ACEOF
30588 /* end confdefs.h. */
30589 $ac_includes_default
30590 #include <$ac_header>
30592 rm -f conftest.$ac_objext
30593 if { (ac_try="$ac_compile"
30594 case "(($ac_try" in
30595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30596 *) ac_try_echo=$ac_try;;
30598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30599 (eval "$ac_compile") 2>conftest.er1
30601 grep -v '^ *+' conftest.er1 >conftest.err
30603 cat conftest.err >&5
30604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30605 (exit $ac_status); } && {
30606 test -z "$ac_c_werror_flag" ||
30607 test ! -s conftest.err
30608 } && test -s conftest.$ac_objext; then
30609 ac_header_compiler=yes
30611 echo "$as_me: failed program was:" >&5
30612 sed 's/^/| /' conftest.$ac_ext >&5
30614 ac_header_compiler=no
30617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30619 echo "${ECHO_T}$ac_header_compiler" >&6; }
30621 # Is the header present?
30622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30624 cat >conftest.$ac_ext <<_ACEOF
30627 cat confdefs.h >>conftest.$ac_ext
30628 cat >>conftest.$ac_ext <<_ACEOF
30629 /* end confdefs.h. */
30630 #include <$ac_header>
30632 if { (ac_try="$ac_cpp conftest.$ac_ext"
30633 case "(($ac_try" in
30634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30635 *) ac_try_echo=$ac_try;;
30637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30640 grep -v '^ *+' conftest.er1 >conftest.err
30642 cat conftest.err >&5
30643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644 (exit $ac_status); } >/dev/null && {
30645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30646 test ! -s conftest.err
30648 ac_header_preproc=yes
30650 echo "$as_me: failed program was:" >&5
30651 sed 's/^/| /' conftest.$ac_ext >&5
30653 ac_header_preproc=no
30656 rm -f conftest.err conftest.$ac_ext
30657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30658 echo "${ECHO_T}$ac_header_preproc" >&6; }
30660 # So? What about this header?
30661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30667 ac_header_preproc=yes
30670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30683 ## --------------------------------------------- ##
30684 ## Report this to <http://www.openldap.org/its/> ##
30685 ## --------------------------------------------- ##
30687 ) | sed "s/^/$as_me: WARNING: /" >&2
30690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30693 echo $ECHO_N "(cached) $ECHO_C" >&6
30695 eval "$as_ac_Header=\$ac_header_preproc"
30697 ac_res=`eval echo '${'$as_ac_Header'}'`
30698 { echo "$as_me:$LINENO: result: $ac_res" >&5
30699 echo "${ECHO_T}$ac_res" >&6; }
30702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30703 cat >>confdefs.h <<_ACEOF
30704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30712 if test $ac_cv_header_sasl_sasl_h = yes ||
30713 test $ac_cv_header_sasl_h = yes; then
30714 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30715 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30716 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30717 echo $ECHO_N "(cached) $ECHO_C" >&6
30719 ac_check_lib_save_LIBS=$LIBS
30720 LIBS="-lsasl2 $LIBS"
30721 cat >conftest.$ac_ext <<_ACEOF
30724 cat confdefs.h >>conftest.$ac_ext
30725 cat >>conftest.$ac_ext <<_ACEOF
30726 /* end confdefs.h. */
30728 /* Override any GCC internal prototype to avoid an error.
30729 Use char because int might match the return type of a GCC
30730 builtin and then its argument prototype would still apply. */
30734 char sasl_client_init ();
30738 return sasl_client_init ();
30743 rm -f conftest.$ac_objext conftest$ac_exeext
30744 if { (ac_try="$ac_link"
30745 case "(($ac_try" in
30746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30747 *) ac_try_echo=$ac_try;;
30749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30750 (eval "$ac_link") 2>conftest.er1
30752 grep -v '^ *+' conftest.er1 >conftest.err
30754 cat conftest.err >&5
30755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30756 (exit $ac_status); } && {
30757 test -z "$ac_c_werror_flag" ||
30758 test ! -s conftest.err
30759 } && test -s conftest$ac_exeext &&
30760 $as_test_x conftest$ac_exeext; then
30761 ac_cv_lib_sasl2_sasl_client_init=yes
30763 echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30766 ac_cv_lib_sasl2_sasl_client_init=no
30769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30770 conftest$ac_exeext conftest.$ac_ext
30771 LIBS=$ac_check_lib_save_LIBS
30773 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30774 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30775 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30776 ol_link_sasl="-lsasl2"
30778 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30779 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30780 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30781 echo $ECHO_N "(cached) $ECHO_C" >&6
30783 ac_check_lib_save_LIBS=$LIBS
30784 LIBS="-lsasl $LIBS"
30785 cat >conftest.$ac_ext <<_ACEOF
30788 cat confdefs.h >>conftest.$ac_ext
30789 cat >>conftest.$ac_ext <<_ACEOF
30790 /* end confdefs.h. */
30792 /* Override any GCC internal prototype to avoid an error.
30793 Use char because int might match the return type of a GCC
30794 builtin and then its argument prototype would still apply. */
30798 char sasl_client_init ();
30802 return sasl_client_init ();
30807 rm -f conftest.$ac_objext conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811 *) ac_try_echo=$ac_try;;
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814 (eval "$ac_link") 2>conftest.er1
30816 grep -v '^ *+' conftest.er1 >conftest.err
30818 cat conftest.err >&5
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } && {
30821 test -z "$ac_c_werror_flag" ||
30822 test ! -s conftest.err
30823 } && test -s conftest$ac_exeext &&
30824 $as_test_x conftest$ac_exeext; then
30825 ac_cv_lib_sasl_sasl_client_init=yes
30827 echo "$as_me: failed program was:" >&5
30828 sed 's/^/| /' conftest.$ac_ext >&5
30830 ac_cv_lib_sasl_sasl_client_init=no
30833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30834 conftest$ac_exeext conftest.$ac_ext
30835 LIBS=$ac_check_lib_save_LIBS
30837 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30838 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30839 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30840 ol_link_sasl="-lsasl"
30847 if test $ol_link_sasl = no ; then
30848 if test $ol_with_cyrus_sasl != auto ; then
30849 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30850 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30851 { (exit 1); exit 1; }; }
30853 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30854 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30855 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30856 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30857 if test $ol_link_tls = no ; then
30858 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30859 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30863 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30864 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30865 if test "${ol_cv_sasl_compat+set}" = set; then
30866 echo $ECHO_N "(cached) $ECHO_C" >&6
30869 cat >conftest.$ac_ext <<_ACEOF
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h. */
30876 #ifdef HAVE_SASL_SASL_H
30877 #include <sasl/sasl.h>
30882 /* Require 2.1.15+ */
30883 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30884 char *__sasl_compat = "2.2+ or better okay (we guess)";
30885 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30886 && SASL_VERSION_STEP >=15
30887 char *__sasl_compat = "2.1.15+ or better okay";
30891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30892 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30893 ol_cv_sasl_compat=yes
30895 ol_cv_sasl_compat=no
30900 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30901 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30903 if test $ol_cv_sasl_compat = no ; then
30905 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30906 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30907 { (exit 1); exit 1; }; }
30911 cat >>confdefs.h <<\_ACEOF
30912 #define HAVE_CYRUS_SASL 1
30915 SASL_LIBS="$ol_link_sasl"
30916 if test $ol_enable_spasswd != no ; then
30917 ol_link_spasswd=yes
30920 ac_save_LIBS="$LIBS"
30921 LIBS="$LIBS $ol_link_sasl"
30922 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30923 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30924 if test "${ac_cv_func_sasl_version+set}" = set; then
30925 echo $ECHO_N "(cached) $ECHO_C" >&6
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30935 #define sasl_version innocuous_sasl_version
30937 /* System header to define __stub macros and hopefully few prototypes,
30938 which can conflict with char sasl_version (); below.
30939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30940 <limits.h> exists even on freestanding compilers. */
30943 # include <limits.h>
30945 # include <assert.h>
30948 #undef sasl_version
30950 /* Override any GCC internal prototype to avoid an error.
30951 Use char because int might match the return type of a GCC
30952 builtin and then its argument prototype would still apply. */
30956 char sasl_version ();
30957 /* The GNU C library defines this for functions which it implements
30958 to always fail with ENOSYS. Some functions are actually named
30959 something starting with __ and the normal name is an alias. */
30960 #if defined __stub_sasl_version || defined __stub___sasl_version
30967 return sasl_version ();
30972 rm -f conftest.$ac_objext conftest$ac_exeext
30973 if { (ac_try="$ac_link"
30974 case "(($ac_try" in
30975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30976 *) ac_try_echo=$ac_try;;
30978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30979 (eval "$ac_link") 2>conftest.er1
30981 grep -v '^ *+' conftest.er1 >conftest.err
30983 cat conftest.err >&5
30984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30985 (exit $ac_status); } && {
30986 test -z "$ac_c_werror_flag" ||
30987 test ! -s conftest.err
30988 } && test -s conftest$ac_exeext &&
30989 $as_test_x conftest$ac_exeext; then
30990 ac_cv_func_sasl_version=yes
30992 echo "$as_me: failed program was:" >&5
30993 sed 's/^/| /' conftest.$ac_ext >&5
30995 ac_cv_func_sasl_version=no
30998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30999 conftest$ac_exeext conftest.$ac_ext
31001 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31002 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31003 if test $ac_cv_func_sasl_version = yes; then
31005 cat >>confdefs.h <<\_ACEOF
31006 #define HAVE_SASL_VERSION 1
31011 LIBS="$ac_save_LIBS"
31017 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31018 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31019 if test $ol_link_tls = no ; then
31020 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31021 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31025 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31027 if test -r /dev/urandom ; then
31028 dev="/dev/urandom";
31029 elif test -r /idev/urandom ; then
31030 dev="/idev/urandom";
31031 elif test -r /dev/srandom ; then
31032 dev="/dev/srandom";
31033 elif test -r /dev/random ; then
31035 elif test -r /idev/random ; then
31036 dev="/idev/random";
31039 if test $dev != no ; then
31041 cat >>confdefs.h <<_ACEOF
31042 #define URANDOM_DEVICE "$dev"
31049 if test $ol_with_fetch != no ; then
31051 LIBS="-lfetch -lcom_err $LIBS"
31052 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31053 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31054 if test "${ol_cv_lib_fetch+set}" = set; then
31055 echo $ECHO_N "(cached) $ECHO_C" >&6
31058 cat >conftest.$ac_ext <<_ACEOF
31061 cat confdefs.h >>conftest.$ac_ext
31062 cat >>conftest.$ac_ext <<_ACEOF
31063 /* end confdefs.h. */
31065 #ifdef HAVE_SYS_PARAM_H
31066 #include <sys/param.h>
31073 struct url *u = fetchParseURL("file:///");
31078 rm -f conftest.$ac_objext conftest$ac_exeext
31079 if { (ac_try="$ac_link"
31080 case "(($ac_try" in
31081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082 *) ac_try_echo=$ac_try;;
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085 (eval "$ac_link") 2>conftest.er1
31087 grep -v '^ *+' conftest.er1 >conftest.err
31089 cat conftest.err >&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } && {
31092 test -z "$ac_c_werror_flag" ||
31093 test ! -s conftest.err
31094 } && test -s conftest$ac_exeext &&
31095 $as_test_x conftest$ac_exeext; then
31096 ol_cv_lib_fetch=yes
31098 echo "$as_me: failed program was:" >&5
31099 sed 's/^/| /' conftest.$ac_ext >&5
31104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31105 conftest$ac_exeext conftest.$ac_ext
31107 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31108 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31110 if test $ol_cv_lib_fetch != no ; then
31111 ol_link_fetch="-lfetch -lcom_err"
31113 cat >>confdefs.h <<\_ACEOF
31114 #define HAVE_FETCH 1
31120 if test $ol_cv_lib_fetch != no ; then
31121 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31122 ol_link_fetch=freebsd
31124 elif test $ol_with_fetch != auto ; then
31125 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31126 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31127 { (exit 1); exit 1; }; }
31131 if test $ol_enable_crypt != no ; then
31133 LIBS="$TLS_LIBS $LIBS"
31135 { echo "$as_me:$LINENO: checking for crypt" >&5
31136 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31137 if test "${ac_cv_func_crypt+set}" = set; then
31138 echo $ECHO_N "(cached) $ECHO_C" >&6
31140 cat >conftest.$ac_ext <<_ACEOF
31143 cat confdefs.h >>conftest.$ac_ext
31144 cat >>conftest.$ac_ext <<_ACEOF
31145 /* end confdefs.h. */
31146 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31148 #define crypt innocuous_crypt
31150 /* System header to define __stub macros and hopefully few prototypes,
31151 which can conflict with char crypt (); below.
31152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31153 <limits.h> exists even on freestanding compilers. */
31156 # include <limits.h>
31158 # include <assert.h>
31163 /* Override any GCC internal prototype to avoid an error.
31164 Use char because int might match the return type of a GCC
31165 builtin and then its argument prototype would still apply. */
31170 /* The GNU C library defines this for functions which it implements
31171 to always fail with ENOSYS. Some functions are actually named
31172 something starting with __ and the normal name is an alias. */
31173 #if defined __stub_crypt || defined __stub___crypt
31185 rm -f conftest.$ac_objext conftest$ac_exeext
31186 if { (ac_try="$ac_link"
31187 case "(($ac_try" in
31188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189 *) ac_try_echo=$ac_try;;
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192 (eval "$ac_link") 2>conftest.er1
31194 grep -v '^ *+' conftest.er1 >conftest.err
31196 cat conftest.err >&5
31197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31198 (exit $ac_status); } && {
31199 test -z "$ac_c_werror_flag" ||
31200 test ! -s conftest.err
31201 } && test -s conftest$ac_exeext &&
31202 $as_test_x conftest$ac_exeext; then
31203 ac_cv_func_crypt=yes
31205 echo "$as_me: failed program was:" >&5
31206 sed 's/^/| /' conftest.$ac_ext >&5
31208 ac_cv_func_crypt=no
31211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31212 conftest$ac_exeext conftest.$ac_ext
31214 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31215 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31216 if test $ac_cv_func_crypt = yes; then
31221 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31222 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31223 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31224 echo $ECHO_N "(cached) $ECHO_C" >&6
31226 ac_check_lib_save_LIBS=$LIBS
31227 LIBS="-lcrypt $LIBS"
31228 cat >conftest.$ac_ext <<_ACEOF
31231 cat confdefs.h >>conftest.$ac_ext
31232 cat >>conftest.$ac_ext <<_ACEOF
31233 /* end confdefs.h. */
31235 /* Override any GCC internal prototype to avoid an error.
31236 Use char because int might match the return type of a GCC
31237 builtin and then its argument prototype would still apply. */
31250 rm -f conftest.$ac_objext conftest$ac_exeext
31251 if { (ac_try="$ac_link"
31252 case "(($ac_try" in
31253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31254 *) ac_try_echo=$ac_try;;
31256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31257 (eval "$ac_link") 2>conftest.er1
31259 grep -v '^ *+' conftest.er1 >conftest.err
31261 cat conftest.err >&5
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); } && {
31264 test -z "$ac_c_werror_flag" ||
31265 test ! -s conftest.err
31266 } && test -s conftest$ac_exeext &&
31267 $as_test_x conftest$ac_exeext; then
31268 ac_cv_lib_crypt_crypt=yes
31270 echo "$as_me: failed program was:" >&5
31271 sed 's/^/| /' conftest.$ac_ext >&5
31273 ac_cv_lib_crypt_crypt=no
31276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31277 conftest$ac_exeext conftest.$ac_ext
31278 LIBS=$ac_check_lib_save_LIBS
31280 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31281 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31282 if test $ac_cv_lib_crypt_crypt = yes; then
31283 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31294 if test $have_crypt = yes ; then
31296 cat >>confdefs.h <<\_ACEOF
31297 #define HAVE_CRYPT 1
31301 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31302 echo "$as_me: WARNING: could not find crypt" >&2;}
31303 if test $ol_enable_crypt = yes ; then
31304 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31305 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31306 { (exit 1); exit 1; }; }
31309 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31310 echo "$as_me: WARNING: disabling crypt support" >&2;}
31315 if test $ol_enable_proctitle != no ; then
31316 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31317 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31318 if test "${ac_cv_func_setproctitle+set}" = set; then
31319 echo $ECHO_N "(cached) $ECHO_C" >&6
31321 cat >conftest.$ac_ext <<_ACEOF
31324 cat confdefs.h >>conftest.$ac_ext
31325 cat >>conftest.$ac_ext <<_ACEOF
31326 /* end confdefs.h. */
31327 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31329 #define setproctitle innocuous_setproctitle
31331 /* System header to define __stub macros and hopefully few prototypes,
31332 which can conflict with char setproctitle (); below.
31333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31334 <limits.h> exists even on freestanding compilers. */
31337 # include <limits.h>
31339 # include <assert.h>
31342 #undef setproctitle
31344 /* Override any GCC internal prototype to avoid an error.
31345 Use char because int might match the return type of a GCC
31346 builtin and then its argument prototype would still apply. */
31350 char setproctitle ();
31351 /* The GNU C library defines this for functions which it implements
31352 to always fail with ENOSYS. Some functions are actually named
31353 something starting with __ and the normal name is an alias. */
31354 #if defined __stub_setproctitle || defined __stub___setproctitle
31361 return setproctitle ();
31366 rm -f conftest.$ac_objext conftest$ac_exeext
31367 if { (ac_try="$ac_link"
31368 case "(($ac_try" in
31369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31370 *) ac_try_echo=$ac_try;;
31372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31373 (eval "$ac_link") 2>conftest.er1
31375 grep -v '^ *+' conftest.er1 >conftest.err
31377 cat conftest.err >&5
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); } && {
31380 test -z "$ac_c_werror_flag" ||
31381 test ! -s conftest.err
31382 } && test -s conftest$ac_exeext &&
31383 $as_test_x conftest$ac_exeext; then
31384 ac_cv_func_setproctitle=yes
31386 echo "$as_me: failed program was:" >&5
31387 sed 's/^/| /' conftest.$ac_ext >&5
31389 ac_cv_func_setproctitle=no
31392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31393 conftest$ac_exeext conftest.$ac_ext
31395 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31396 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31397 if test $ac_cv_func_setproctitle = yes; then
31398 have_setproctitle=yes
31401 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31402 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31403 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31404 echo $ECHO_N "(cached) $ECHO_C" >&6
31406 ac_check_lib_save_LIBS=$LIBS
31407 LIBS="-lutil $LIBS"
31408 cat >conftest.$ac_ext <<_ACEOF
31411 cat confdefs.h >>conftest.$ac_ext
31412 cat >>conftest.$ac_ext <<_ACEOF
31413 /* end confdefs.h. */
31415 /* Override any GCC internal prototype to avoid an error.
31416 Use char because int might match the return type of a GCC
31417 builtin and then its argument prototype would still apply. */
31421 char setproctitle ();
31425 return setproctitle ();
31430 rm -f conftest.$ac_objext conftest$ac_exeext
31431 if { (ac_try="$ac_link"
31432 case "(($ac_try" in
31433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31434 *) ac_try_echo=$ac_try;;
31436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31437 (eval "$ac_link") 2>conftest.er1
31439 grep -v '^ *+' conftest.er1 >conftest.err
31441 cat conftest.err >&5
31442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443 (exit $ac_status); } && {
31444 test -z "$ac_c_werror_flag" ||
31445 test ! -s conftest.err
31446 } && test -s conftest$ac_exeext &&
31447 $as_test_x conftest$ac_exeext; then
31448 ac_cv_lib_util_setproctitle=yes
31450 echo "$as_me: failed program was:" >&5
31451 sed 's/^/| /' conftest.$ac_ext >&5
31453 ac_cv_lib_util_setproctitle=no
31456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31457 conftest$ac_exeext conftest.$ac_ext
31458 LIBS=$ac_check_lib_save_LIBS
31460 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31461 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31462 if test $ac_cv_lib_util_setproctitle = yes; then
31463 have_setproctitle=yes
31464 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31466 have_setproctitle=no
31467 case " $LIBOBJS " in
31468 *" setproctitle.$ac_objext "* ) ;;
31469 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31473 LIBSRCS="$LIBSRCS setproctitle.c"
31479 if test $have_setproctitle = yes ; then
31481 cat >>confdefs.h <<\_ACEOF
31482 #define HAVE_SETPROCTITLE 1
31488 if test $ol_enable_slp != no ; then
31490 for ac_header in slp.h
31492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31497 echo $ECHO_N "(cached) $ECHO_C" >&6
31499 ac_res=`eval echo '${'$as_ac_Header'}'`
31500 { echo "$as_me:$LINENO: result: $ac_res" >&5
31501 echo "${ECHO_T}$ac_res" >&6; }
31503 # Is the header compilable?
31504 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31505 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31506 cat >conftest.$ac_ext <<_ACEOF
31509 cat confdefs.h >>conftest.$ac_ext
31510 cat >>conftest.$ac_ext <<_ACEOF
31511 /* end confdefs.h. */
31512 $ac_includes_default
31513 #include <$ac_header>
31515 rm -f conftest.$ac_objext
31516 if { (ac_try="$ac_compile"
31517 case "(($ac_try" in
31518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31519 *) ac_try_echo=$ac_try;;
31521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31522 (eval "$ac_compile") 2>conftest.er1
31524 grep -v '^ *+' conftest.er1 >conftest.err
31526 cat conftest.err >&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); } && {
31529 test -z "$ac_c_werror_flag" ||
31530 test ! -s conftest.err
31531 } && test -s conftest.$ac_objext; then
31532 ac_header_compiler=yes
31534 echo "$as_me: failed program was:" >&5
31535 sed 's/^/| /' conftest.$ac_ext >&5
31537 ac_header_compiler=no
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31542 echo "${ECHO_T}$ac_header_compiler" >&6; }
31544 # Is the header present?
31545 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31546 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31547 cat >conftest.$ac_ext <<_ACEOF
31550 cat confdefs.h >>conftest.$ac_ext
31551 cat >>conftest.$ac_ext <<_ACEOF
31552 /* end confdefs.h. */
31553 #include <$ac_header>
31555 if { (ac_try="$ac_cpp conftest.$ac_ext"
31556 case "(($ac_try" in
31557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558 *) ac_try_echo=$ac_try;;
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31563 grep -v '^ *+' conftest.er1 >conftest.err
31565 cat conftest.err >&5
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); } >/dev/null && {
31568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31569 test ! -s conftest.err
31571 ac_header_preproc=yes
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31576 ac_header_preproc=no
31579 rm -f conftest.err conftest.$ac_ext
31580 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31581 echo "${ECHO_T}$ac_header_preproc" >&6; }
31583 # So? What about this header?
31584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31587 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31590 ac_header_preproc=yes
31593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31594 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31596 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31598 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31600 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31604 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31606 ## --------------------------------------------- ##
31607 ## Report this to <http://www.openldap.org/its/> ##
31608 ## --------------------------------------------- ##
31610 ) | sed "s/^/$as_me: WARNING: /" >&2
31613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31618 eval "$as_ac_Header=\$ac_header_preproc"
31620 ac_res=`eval echo '${'$as_ac_Header'}'`
31621 { echo "$as_me:$LINENO: result: $ac_res" >&5
31622 echo "${ECHO_T}$ac_res" >&6; }
31625 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31626 cat >>confdefs.h <<_ACEOF
31627 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31635 if test $ac_cv_header_slp_h = yes ; then
31636 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31637 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31638 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31639 echo $ECHO_N "(cached) $ECHO_C" >&6
31641 ac_check_lib_save_LIBS=$LIBS
31643 cat >conftest.$ac_ext <<_ACEOF
31646 cat confdefs.h >>conftest.$ac_ext
31647 cat >>conftest.$ac_ext <<_ACEOF
31648 /* end confdefs.h. */
31650 /* Override any GCC internal prototype to avoid an error.
31651 Use char because int might match the return type of a GCC
31652 builtin and then its argument prototype would still apply. */
31665 rm -f conftest.$ac_objext conftest$ac_exeext
31666 if { (ac_try="$ac_link"
31667 case "(($ac_try" in
31668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31669 *) ac_try_echo=$ac_try;;
31671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31672 (eval "$ac_link") 2>conftest.er1
31674 grep -v '^ *+' conftest.er1 >conftest.err
31676 cat conftest.err >&5
31677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31678 (exit $ac_status); } && {
31679 test -z "$ac_c_werror_flag" ||
31680 test ! -s conftest.err
31681 } && test -s conftest$ac_exeext &&
31682 $as_test_x conftest$ac_exeext; then
31683 ac_cv_lib_slp_SLPOpen=yes
31685 echo "$as_me: failed program was:" >&5
31686 sed 's/^/| /' conftest.$ac_ext >&5
31688 ac_cv_lib_slp_SLPOpen=no
31691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31692 conftest$ac_exeext conftest.$ac_ext
31693 LIBS=$ac_check_lib_save_LIBS
31695 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31696 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31697 if test $ac_cv_lib_slp_SLPOpen = yes; then
31703 if test $have_slp = yes ; then
31705 cat >>confdefs.h <<\_ACEOF
31709 SLAPD_SLP_LIBS=-lslp
31712 elif test $ol_enable_slp = yes ; then
31713 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31714 echo "$as_me: error: SLP not found" >&2;}
31715 { (exit 1); exit 1; }; }
31720 { echo "$as_me:$LINENO: checking for mode_t" >&5
31721 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31722 if test "${ac_cv_type_mode_t+set}" = set; then
31723 echo $ECHO_N "(cached) $ECHO_C" >&6
31725 cat >conftest.$ac_ext <<_ACEOF
31728 cat confdefs.h >>conftest.$ac_ext
31729 cat >>conftest.$ac_ext <<_ACEOF
31730 /* end confdefs.h. */
31731 $ac_includes_default
31732 typedef mode_t ac__type_new_;
31736 if ((ac__type_new_ *) 0)
31738 if (sizeof (ac__type_new_))
31744 rm -f conftest.$ac_objext
31745 if { (ac_try="$ac_compile"
31746 case "(($ac_try" in
31747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31748 *) ac_try_echo=$ac_try;;
31750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31751 (eval "$ac_compile") 2>conftest.er1
31753 grep -v '^ *+' conftest.er1 >conftest.err
31755 cat conftest.err >&5
31756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31757 (exit $ac_status); } && {
31758 test -z "$ac_c_werror_flag" ||
31759 test ! -s conftest.err
31760 } && test -s conftest.$ac_objext; then
31761 ac_cv_type_mode_t=yes
31763 echo "$as_me: failed program was:" >&5
31764 sed 's/^/| /' conftest.$ac_ext >&5
31766 ac_cv_type_mode_t=no
31769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31771 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31772 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31773 if test $ac_cv_type_mode_t = yes; then
31777 cat >>confdefs.h <<_ACEOF
31783 { echo "$as_me:$LINENO: checking for off_t" >&5
31784 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31785 if test "${ac_cv_type_off_t+set}" = set; then
31786 echo $ECHO_N "(cached) $ECHO_C" >&6
31788 cat >conftest.$ac_ext <<_ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h. */
31794 $ac_includes_default
31795 typedef off_t ac__type_new_;
31799 if ((ac__type_new_ *) 0)
31801 if (sizeof (ac__type_new_))
31807 rm -f conftest.$ac_objext
31808 if { (ac_try="$ac_compile"
31809 case "(($ac_try" in
31810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31811 *) ac_try_echo=$ac_try;;
31813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31814 (eval "$ac_compile") 2>conftest.er1
31816 grep -v '^ *+' conftest.er1 >conftest.err
31818 cat conftest.err >&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } && {
31821 test -z "$ac_c_werror_flag" ||
31822 test ! -s conftest.err
31823 } && test -s conftest.$ac_objext; then
31824 ac_cv_type_off_t=yes
31826 echo "$as_me: failed program was:" >&5
31827 sed 's/^/| /' conftest.$ac_ext >&5
31829 ac_cv_type_off_t=no
31832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31834 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31835 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31836 if test $ac_cv_type_off_t = yes; then
31840 cat >>confdefs.h <<_ACEOF
31846 { echo "$as_me:$LINENO: checking for pid_t" >&5
31847 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31848 if test "${ac_cv_type_pid_t+set}" = set; then
31849 echo $ECHO_N "(cached) $ECHO_C" >&6
31851 cat >conftest.$ac_ext <<_ACEOF
31854 cat confdefs.h >>conftest.$ac_ext
31855 cat >>conftest.$ac_ext <<_ACEOF
31856 /* end confdefs.h. */
31857 $ac_includes_default
31858 typedef pid_t ac__type_new_;
31862 if ((ac__type_new_ *) 0)
31864 if (sizeof (ac__type_new_))
31870 rm -f conftest.$ac_objext
31871 if { (ac_try="$ac_compile"
31872 case "(($ac_try" in
31873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874 *) ac_try_echo=$ac_try;;
31876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31877 (eval "$ac_compile") 2>conftest.er1
31879 grep -v '^ *+' conftest.er1 >conftest.err
31881 cat conftest.err >&5
31882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31883 (exit $ac_status); } && {
31884 test -z "$ac_c_werror_flag" ||
31885 test ! -s conftest.err
31886 } && test -s conftest.$ac_objext; then
31887 ac_cv_type_pid_t=yes
31889 echo "$as_me: failed program was:" >&5
31890 sed 's/^/| /' conftest.$ac_ext >&5
31892 ac_cv_type_pid_t=no
31895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31897 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31898 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31899 if test $ac_cv_type_pid_t = yes; then
31903 cat >>confdefs.h <<_ACEOF
31909 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31910 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31911 if test "${ac_cv_type_ssize_t+set}" = set; then
31912 echo $ECHO_N "(cached) $ECHO_C" >&6
31914 cat >conftest.$ac_ext <<_ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h. */
31920 $ac_includes_default
31921 typedef ssize_t ac__type_new_;
31925 if ((ac__type_new_ *) 0)
31927 if (sizeof (ac__type_new_))
31933 rm -f conftest.$ac_objext
31934 if { (ac_try="$ac_compile"
31935 case "(($ac_try" in
31936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31937 *) ac_try_echo=$ac_try;;
31939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31940 (eval "$ac_compile") 2>conftest.er1
31942 grep -v '^ *+' conftest.er1 >conftest.err
31944 cat conftest.err >&5
31945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946 (exit $ac_status); } && {
31947 test -z "$ac_c_werror_flag" ||
31948 test ! -s conftest.err
31949 } && test -s conftest.$ac_objext; then
31950 ac_cv_type_ssize_t=yes
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31955 ac_cv_type_ssize_t=no
31958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31960 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31961 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31962 if test $ac_cv_type_ssize_t = yes; then
31966 cat >>confdefs.h <<_ACEOF
31967 #define ssize_t signed int
31972 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31973 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31974 if test "${ac_cv_type_caddr_t+set}" = set; then
31975 echo $ECHO_N "(cached) $ECHO_C" >&6
31977 cat >conftest.$ac_ext <<_ACEOF
31980 cat confdefs.h >>conftest.$ac_ext
31981 cat >>conftest.$ac_ext <<_ACEOF
31982 /* end confdefs.h. */
31983 $ac_includes_default
31984 typedef caddr_t ac__type_new_;
31988 if ((ac__type_new_ *) 0)
31990 if (sizeof (ac__type_new_))
31996 rm -f conftest.$ac_objext
31997 if { (ac_try="$ac_compile"
31998 case "(($ac_try" in
31999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32000 *) ac_try_echo=$ac_try;;
32002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32003 (eval "$ac_compile") 2>conftest.er1
32005 grep -v '^ *+' conftest.er1 >conftest.err
32007 cat conftest.err >&5
32008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32009 (exit $ac_status); } && {
32010 test -z "$ac_c_werror_flag" ||
32011 test ! -s conftest.err
32012 } && test -s conftest.$ac_objext; then
32013 ac_cv_type_caddr_t=yes
32015 echo "$as_me: failed program was:" >&5
32016 sed 's/^/| /' conftest.$ac_ext >&5
32018 ac_cv_type_caddr_t=no
32021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32023 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32024 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32025 if test $ac_cv_type_caddr_t = yes; then
32029 cat >>confdefs.h <<_ACEOF
32030 #define caddr_t char *
32035 { echo "$as_me:$LINENO: checking for size_t" >&5
32036 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32037 if test "${ac_cv_type_size_t+set}" = set; then
32038 echo $ECHO_N "(cached) $ECHO_C" >&6
32040 cat >conftest.$ac_ext <<_ACEOF
32043 cat confdefs.h >>conftest.$ac_ext
32044 cat >>conftest.$ac_ext <<_ACEOF
32045 /* end confdefs.h. */
32046 $ac_includes_default
32047 typedef size_t ac__type_new_;
32051 if ((ac__type_new_ *) 0)
32053 if (sizeof (ac__type_new_))
32059 rm -f conftest.$ac_objext
32060 if { (ac_try="$ac_compile"
32061 case "(($ac_try" in
32062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32063 *) ac_try_echo=$ac_try;;
32065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32066 (eval "$ac_compile") 2>conftest.er1
32068 grep -v '^ *+' conftest.er1 >conftest.err
32070 cat conftest.err >&5
32071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32072 (exit $ac_status); } && {
32073 test -z "$ac_c_werror_flag" ||
32074 test ! -s conftest.err
32075 } && test -s conftest.$ac_objext; then
32076 ac_cv_type_size_t=yes
32078 echo "$as_me: failed program was:" >&5
32079 sed 's/^/| /' conftest.$ac_ext >&5
32081 ac_cv_type_size_t=no
32084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32086 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32087 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32088 if test $ac_cv_type_size_t = yes; then
32092 cat >>confdefs.h <<_ACEOF
32093 #define size_t unsigned
32099 { echo "$as_me:$LINENO: checking for long long" >&5
32100 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32101 if test "${ac_cv_type_long_long+set}" = set; then
32102 echo $ECHO_N "(cached) $ECHO_C" >&6
32104 cat >conftest.$ac_ext <<_ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h. */
32110 $ac_includes_default
32111 typedef long long ac__type_new_;
32115 if ((ac__type_new_ *) 0)
32117 if (sizeof (ac__type_new_))
32123 rm -f conftest.$ac_objext
32124 if { (ac_try="$ac_compile"
32125 case "(($ac_try" in
32126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32127 *) ac_try_echo=$ac_try;;
32129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32130 (eval "$ac_compile") 2>conftest.er1
32132 grep -v '^ *+' conftest.er1 >conftest.err
32134 cat conftest.err >&5
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } && {
32137 test -z "$ac_c_werror_flag" ||
32138 test ! -s conftest.err
32139 } && test -s conftest.$ac_objext; then
32140 ac_cv_type_long_long=yes
32142 echo "$as_me: failed program was:" >&5
32143 sed 's/^/| /' conftest.$ac_ext >&5
32145 ac_cv_type_long_long=no
32148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32150 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32151 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32152 if test $ac_cv_type_long_long = yes; then
32154 cat >>confdefs.h <<_ACEOF
32155 #define HAVE_LONG_LONG 1
32161 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32162 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32163 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32164 echo $ECHO_N "(cached) $ECHO_C" >&6
32166 cat >conftest.$ac_ext <<_ACEOF
32169 cat confdefs.h >>conftest.$ac_ext
32170 cat >>conftest.$ac_ext <<_ACEOF
32171 /* end confdefs.h. */
32172 $ac_includes_default
32173 typedef ptrdiff_t ac__type_new_;
32177 if ((ac__type_new_ *) 0)
32179 if (sizeof (ac__type_new_))
32185 rm -f conftest.$ac_objext
32186 if { (ac_try="$ac_compile"
32187 case "(($ac_try" in
32188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32189 *) ac_try_echo=$ac_try;;
32191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32192 (eval "$ac_compile") 2>conftest.er1
32194 grep -v '^ *+' conftest.er1 >conftest.err
32196 cat conftest.err >&5
32197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32198 (exit $ac_status); } && {
32199 test -z "$ac_c_werror_flag" ||
32200 test ! -s conftest.err
32201 } && test -s conftest.$ac_objext; then
32202 ac_cv_type_ptrdiff_t=yes
32204 echo "$as_me: failed program was:" >&5
32205 sed 's/^/| /' conftest.$ac_ext >&5
32207 ac_cv_type_ptrdiff_t=no
32210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32212 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32213 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32214 if test $ac_cv_type_ptrdiff_t = yes; then
32216 cat >>confdefs.h <<_ACEOF
32217 #define HAVE_PTRDIFF_T 1
32225 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32226 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32227 if test "${ac_cv_type_socklen_t+set}" = set; then
32228 echo $ECHO_N "(cached) $ECHO_C" >&6
32230 cat >conftest.$ac_ext <<_ACEOF
32233 cat confdefs.h >>conftest.$ac_ext
32234 cat >>conftest.$ac_ext <<_ACEOF
32235 /* end confdefs.h. */
32236 $ac_includes_default
32237 #ifdef HAVE_SYS_SOCKET_H
32238 #include <sys/socket.h>
32241 typedef socklen_t ac__type_new_;
32245 if ((ac__type_new_ *) 0)
32247 if (sizeof (ac__type_new_))
32253 rm -f conftest.$ac_objext
32254 if { (ac_try="$ac_compile"
32255 case "(($ac_try" in
32256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257 *) ac_try_echo=$ac_try;;
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260 (eval "$ac_compile") 2>conftest.er1
32262 grep -v '^ *+' conftest.er1 >conftest.err
32264 cat conftest.err >&5
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); } && {
32267 test -z "$ac_c_werror_flag" ||
32268 test ! -s conftest.err
32269 } && test -s conftest.$ac_objext; then
32270 ac_cv_type_socklen_t=yes
32272 echo "$as_me: failed program was:" >&5
32273 sed 's/^/| /' conftest.$ac_ext >&5
32275 ac_cv_type_socklen_t=no
32278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32280 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32281 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32284 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32285 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32286 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32287 echo $ECHO_N "(cached) $ECHO_C" >&6
32290 set socklen_t int unsigned "unsigned long" long size_t
32291 test "$ac_cv_type_socklen_t" = yes || shift
32292 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32293 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32294 cat >conftest.$ac_ext <<_ACEOF
32297 cat confdefs.h >>conftest.$ac_ext
32298 cat >>conftest.$ac_ext <<_ACEOF
32299 /* end confdefs.h. */
32300 $ac_includes_default
32301 #ifdef HAVE_SYS_SOCKET_H
32302 #include <sys/socket.h>
32304 extern int accept(int s, $addrtype *ap, $lentype *lp);
32310 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32316 rm -f conftest.$ac_objext
32317 if { (ac_try="$ac_compile"
32318 case "(($ac_try" in
32319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32320 *) ac_try_echo=$ac_try;;
32322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32323 (eval "$ac_compile") 2>conftest.er1
32325 grep -v '^ *+' conftest.er1 >conftest.err
32327 cat conftest.err >&5
32328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329 (exit $ac_status); } && {
32330 test -z "$ac_c_werror_flag" ||
32331 test ! -s conftest.err
32332 } && test -s conftest.$ac_objext; then
32333 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32335 echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32345 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32346 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32348 cat >>confdefs.h <<_ACEOF
32349 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32353 if test "$ac_cv_type_socklen_t" != yes; then
32355 cat >>confdefs.h <<_ACEOF
32356 #define socklen_t $ol_cv_type_ber_socklen_t
32362 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32363 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32364 if test "${ac_cv_type_signal+set}" = set; then
32365 echo $ECHO_N "(cached) $ECHO_C" >&6
32367 cat >conftest.$ac_ext <<_ACEOF
32370 cat confdefs.h >>conftest.$ac_ext
32371 cat >>conftest.$ac_ext <<_ACEOF
32372 /* end confdefs.h. */
32373 #include <sys/types.h>
32374 #include <signal.h>
32379 return *(signal (0, 0)) (0) == 1;
32384 rm -f conftest.$ac_objext
32385 if { (ac_try="$ac_compile"
32386 case "(($ac_try" in
32387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32388 *) ac_try_echo=$ac_try;;
32390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32391 (eval "$ac_compile") 2>conftest.er1
32393 grep -v '^ *+' conftest.er1 >conftest.err
32395 cat conftest.err >&5
32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32397 (exit $ac_status); } && {
32398 test -z "$ac_c_werror_flag" ||
32399 test ! -s conftest.err
32400 } && test -s conftest.$ac_objext; then
32401 ac_cv_type_signal=int
32403 echo "$as_me: failed program was:" >&5
32404 sed 's/^/| /' conftest.$ac_ext >&5
32406 ac_cv_type_signal=void
32409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32411 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32412 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32414 cat >>confdefs.h <<_ACEOF
32415 #define RETSIGTYPE $ac_cv_type_signal
32420 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32421 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32422 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32423 echo $ECHO_N "(cached) $ECHO_C" >&6
32425 cat >conftest.$ac_ext <<_ACEOF
32428 cat confdefs.h >>conftest.$ac_ext
32429 cat >>conftest.$ac_ext <<_ACEOF
32430 /* end confdefs.h. */
32431 $ac_includes_default
32432 #include <signal.h>
32435 typedef sig_atomic_t ac__type_new_;
32439 if ((ac__type_new_ *) 0)
32441 if (sizeof (ac__type_new_))
32447 rm -f conftest.$ac_objext
32448 if { (ac_try="$ac_compile"
32449 case "(($ac_try" in
32450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32451 *) ac_try_echo=$ac_try;;
32453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32454 (eval "$ac_compile") 2>conftest.er1
32456 grep -v '^ *+' conftest.er1 >conftest.err
32458 cat conftest.err >&5
32459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32460 (exit $ac_status); } && {
32461 test -z "$ac_c_werror_flag" ||
32462 test ! -s conftest.err
32463 } && test -s conftest.$ac_objext; then
32464 ac_cv_type_sig_atomic_t=yes
32466 echo "$as_me: failed program was:" >&5
32467 sed 's/^/| /' conftest.$ac_ext >&5
32469 ac_cv_type_sig_atomic_t=no
32472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32475 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32476 if test $ac_cv_type_sig_atomic_t = yes; then
32480 cat >>confdefs.h <<_ACEOF
32481 #define sig_atomic_t int
32487 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32488 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32489 if test "${ac_cv_type_uid_t+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32492 cat >conftest.$ac_ext <<_ACEOF
32495 cat confdefs.h >>conftest.$ac_ext
32496 cat >>conftest.$ac_ext <<_ACEOF
32497 /* end confdefs.h. */
32498 #include <sys/types.h>
32501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32502 $EGREP "uid_t" >/dev/null 2>&1; then
32503 ac_cv_type_uid_t=yes
32505 ac_cv_type_uid_t=no
32510 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32511 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32512 if test $ac_cv_type_uid_t = no; then
32514 cat >>confdefs.h <<\_ACEOF
32519 cat >>confdefs.h <<\_ACEOF
32526 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32527 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32528 if test "${ac_cv_header_time+set}" = set; then
32529 echo $ECHO_N "(cached) $ECHO_C" >&6
32531 cat >conftest.$ac_ext <<_ACEOF
32534 cat confdefs.h >>conftest.$ac_ext
32535 cat >>conftest.$ac_ext <<_ACEOF
32536 /* end confdefs.h. */
32537 #include <sys/types.h>
32538 #include <sys/time.h>
32544 if ((struct tm *) 0)
32550 rm -f conftest.$ac_objext
32551 if { (ac_try="$ac_compile"
32552 case "(($ac_try" in
32553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32554 *) ac_try_echo=$ac_try;;
32556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32557 (eval "$ac_compile") 2>conftest.er1
32559 grep -v '^ *+' conftest.er1 >conftest.err
32561 cat conftest.err >&5
32562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 (exit $ac_status); } && {
32564 test -z "$ac_c_werror_flag" ||
32565 test ! -s conftest.err
32566 } && test -s conftest.$ac_objext; then
32567 ac_cv_header_time=yes
32569 echo "$as_me: failed program was:" >&5
32570 sed 's/^/| /' conftest.$ac_ext >&5
32572 ac_cv_header_time=no
32575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32577 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32578 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32579 if test $ac_cv_header_time = yes; then
32581 cat >>confdefs.h <<\_ACEOF
32582 #define TIME_WITH_SYS_TIME 1
32587 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32588 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32589 if test "${ac_cv_struct_tm+set}" = set; then
32590 echo $ECHO_N "(cached) $ECHO_C" >&6
32592 cat >conftest.$ac_ext <<_ACEOF
32595 cat confdefs.h >>conftest.$ac_ext
32596 cat >>conftest.$ac_ext <<_ACEOF
32597 /* end confdefs.h. */
32598 #include <sys/types.h>
32605 int *p = &tm.tm_sec;
32611 rm -f conftest.$ac_objext
32612 if { (ac_try="$ac_compile"
32613 case "(($ac_try" in
32614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32615 *) ac_try_echo=$ac_try;;
32617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32618 (eval "$ac_compile") 2>conftest.er1
32620 grep -v '^ *+' conftest.er1 >conftest.err
32622 cat conftest.err >&5
32623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32624 (exit $ac_status); } && {
32625 test -z "$ac_c_werror_flag" ||
32626 test ! -s conftest.err
32627 } && test -s conftest.$ac_objext; then
32628 ac_cv_struct_tm=time.h
32630 echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32633 ac_cv_struct_tm=sys/time.h
32636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32638 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32639 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32640 if test $ac_cv_struct_tm = sys/time.h; then
32642 cat >>confdefs.h <<\_ACEOF
32643 #define TM_IN_SYS_TIME 1
32648 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32649 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32650 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32651 echo $ECHO_N "(cached) $ECHO_C" >&6
32653 cat >conftest.$ac_ext <<_ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h. */
32659 $ac_includes_default
32663 static struct stat ac_aggr;
32664 if (ac_aggr.st_blksize)
32670 rm -f conftest.$ac_objext
32671 if { (ac_try="$ac_compile"
32672 case "(($ac_try" in
32673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32674 *) ac_try_echo=$ac_try;;
32676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32677 (eval "$ac_compile") 2>conftest.er1
32679 grep -v '^ *+' conftest.er1 >conftest.err
32681 cat conftest.err >&5
32682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32683 (exit $ac_status); } && {
32684 test -z "$ac_c_werror_flag" ||
32685 test ! -s conftest.err
32686 } && test -s conftest.$ac_objext; then
32687 ac_cv_member_struct_stat_st_blksize=yes
32689 echo "$as_me: failed program was:" >&5
32690 sed 's/^/| /' conftest.$ac_ext >&5
32692 cat >conftest.$ac_ext <<_ACEOF
32695 cat confdefs.h >>conftest.$ac_ext
32696 cat >>conftest.$ac_ext <<_ACEOF
32697 /* end confdefs.h. */
32698 $ac_includes_default
32702 static struct stat ac_aggr;
32703 if (sizeof ac_aggr.st_blksize)
32709 rm -f conftest.$ac_objext
32710 if { (ac_try="$ac_compile"
32711 case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_compile") 2>conftest.er1
32718 grep -v '^ *+' conftest.er1 >conftest.err
32720 cat conftest.err >&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); } && {
32723 test -z "$ac_c_werror_flag" ||
32724 test ! -s conftest.err
32725 } && test -s conftest.$ac_objext; then
32726 ac_cv_member_struct_stat_st_blksize=yes
32728 echo "$as_me: failed program was:" >&5
32729 sed 's/^/| /' conftest.$ac_ext >&5
32731 ac_cv_member_struct_stat_st_blksize=no
32734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32739 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32740 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32741 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32743 cat >>confdefs.h <<_ACEOF
32744 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32750 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32751 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32752 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32753 echo $ECHO_N "(cached) $ECHO_C" >&6
32755 cat >conftest.$ac_ext <<_ACEOF
32758 cat confdefs.h >>conftest.$ac_ext
32759 cat >>conftest.$ac_ext <<_ACEOF
32760 /* end confdefs.h. */
32761 $ac_includes_default
32767 static struct passwd ac_aggr;
32768 if (ac_aggr.pw_gecos)
32774 rm -f conftest.$ac_objext
32775 if { (ac_try="$ac_compile"
32776 case "(($ac_try" in
32777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778 *) ac_try_echo=$ac_try;;
32780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32781 (eval "$ac_compile") 2>conftest.er1
32783 grep -v '^ *+' conftest.er1 >conftest.err
32785 cat conftest.err >&5
32786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787 (exit $ac_status); } && {
32788 test -z "$ac_c_werror_flag" ||
32789 test ! -s conftest.err
32790 } && test -s conftest.$ac_objext; then
32791 ac_cv_member_struct_passwd_pw_gecos=yes
32793 echo "$as_me: failed program was:" >&5
32794 sed 's/^/| /' conftest.$ac_ext >&5
32796 cat >conftest.$ac_ext <<_ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h. */
32802 $ac_includes_default
32808 static struct passwd ac_aggr;
32809 if (sizeof ac_aggr.pw_gecos)
32815 rm -f conftest.$ac_objext
32816 if { (ac_try="$ac_compile"
32817 case "(($ac_try" in
32818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32819 *) ac_try_echo=$ac_try;;
32821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32822 (eval "$ac_compile") 2>conftest.er1
32824 grep -v '^ *+' conftest.er1 >conftest.err
32826 cat conftest.err >&5
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); } && {
32829 test -z "$ac_c_werror_flag" ||
32830 test ! -s conftest.err
32831 } && test -s conftest.$ac_objext; then
32832 ac_cv_member_struct_passwd_pw_gecos=yes
32834 echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32837 ac_cv_member_struct_passwd_pw_gecos=no
32840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32845 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32846 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32847 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32849 cat >>confdefs.h <<_ACEOF
32850 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32856 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32857 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32858 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32859 echo $ECHO_N "(cached) $ECHO_C" >&6
32861 cat >conftest.$ac_ext <<_ACEOF
32864 cat confdefs.h >>conftest.$ac_ext
32865 cat >>conftest.$ac_ext <<_ACEOF
32866 /* end confdefs.h. */
32867 $ac_includes_default
32873 static struct passwd ac_aggr;
32874 if (ac_aggr.pw_passwd)
32880 rm -f conftest.$ac_objext
32881 if { (ac_try="$ac_compile"
32882 case "(($ac_try" in
32883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32884 *) ac_try_echo=$ac_try;;
32886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32887 (eval "$ac_compile") 2>conftest.er1
32889 grep -v '^ *+' conftest.er1 >conftest.err
32891 cat conftest.err >&5
32892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32893 (exit $ac_status); } && {
32894 test -z "$ac_c_werror_flag" ||
32895 test ! -s conftest.err
32896 } && test -s conftest.$ac_objext; then
32897 ac_cv_member_struct_passwd_pw_passwd=yes
32899 echo "$as_me: failed program was:" >&5
32900 sed 's/^/| /' conftest.$ac_ext >&5
32902 cat >conftest.$ac_ext <<_ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h. */
32908 $ac_includes_default
32914 static struct passwd ac_aggr;
32915 if (sizeof ac_aggr.pw_passwd)
32921 rm -f conftest.$ac_objext
32922 if { (ac_try="$ac_compile"
32923 case "(($ac_try" in
32924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32925 *) ac_try_echo=$ac_try;;
32927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32928 (eval "$ac_compile") 2>conftest.er1
32930 grep -v '^ *+' conftest.er1 >conftest.err
32932 cat conftest.err >&5
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); } && {
32935 test -z "$ac_c_werror_flag" ||
32936 test ! -s conftest.err
32937 } && test -s conftest.$ac_objext; then
32938 ac_cv_member_struct_passwd_pw_passwd=yes
32940 echo "$as_me: failed program was:" >&5
32941 sed 's/^/| /' conftest.$ac_ext >&5
32943 ac_cv_member_struct_passwd_pw_passwd=no
32946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32951 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32952 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32953 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32955 cat >>confdefs.h <<_ACEOF
32956 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32963 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32964 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32965 if test "${ol_cv_c_upper_lower+set}" = set; then
32966 echo $ECHO_N "(cached) $ECHO_C" >&6
32969 if test "$cross_compiling" = yes; then
32970 ol_cv_c_upper_lower=safe
32972 cat >conftest.$ac_ext <<_ACEOF
32975 cat confdefs.h >>conftest.$ac_ext
32976 cat >>conftest.$ac_ext <<_ACEOF
32977 /* end confdefs.h. */
32982 if ('C' == toupper('C'))
32988 rm -f conftest$ac_exeext
32989 if { (ac_try="$ac_link"
32990 case "(($ac_try" in
32991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32992 *) ac_try_echo=$ac_try;;
32994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32995 (eval "$ac_link") 2>&5
32997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32999 { (case "(($ac_try" in
33000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001 *) ac_try_echo=$ac_try;;
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004 (eval "$ac_try") 2>&5
33006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33007 (exit $ac_status); }; }; then
33008 ol_cv_c_upper_lower=no
33010 echo "$as_me: program exited with status $ac_status" >&5
33011 echo "$as_me: failed program was:" >&5
33012 sed 's/^/| /' conftest.$ac_ext >&5
33014 ( exit $ac_status )
33015 ol_cv_c_upper_lower=yes
33017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33022 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33023 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33024 if test $ol_cv_c_upper_lower != no ; then
33026 cat >>confdefs.h <<\_ACEOF
33027 #define C_UPPER_LOWER 1
33032 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33033 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33034 if test "${ac_cv_c_const+set}" = set; then
33035 echo $ECHO_N "(cached) $ECHO_C" >&6
33037 cat >conftest.$ac_ext <<_ACEOF
33040 cat confdefs.h >>conftest.$ac_ext
33041 cat >>conftest.$ac_ext <<_ACEOF
33042 /* end confdefs.h. */
33047 /* FIXME: Include the comments suggested by Paul. */
33048 #ifndef __cplusplus
33049 /* Ultrix mips cc rejects this. */
33050 typedef int charset[2];
33052 /* SunOS 4.1.1 cc rejects this. */
33053 char const *const *pcpcc;
33055 /* NEC SVR4.0.2 mips cc rejects this. */
33056 struct point {int x, y;};
33057 static struct point const zero = {0,0};
33058 /* AIX XL C 1.02.0.0 rejects this.
33059 It does not let you subtract one const X* pointer from another in
33060 an arm of an if-expression whose if-part is not a constant
33062 const char *g = "string";
33063 pcpcc = &g + (g ? g-g : 0);
33064 /* HPUX 7.0 cc rejects these. */
33066 ppc = (char**) pcpcc;
33067 pcpcc = (char const *const *) ppc;
33068 { /* SCO 3.2v4 cc rejects this. */
33070 char const *s = 0 ? (char *) 0 : (char const *) 0;
33075 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33076 int x[] = {25, 17};
33077 const int *foo = &x[0];
33080 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33081 typedef const int *iptr;
33085 { /* AIX XL C 1.02.0.0 rejects this saying
33086 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33087 struct s { int j; const int *ap[3]; };
33088 struct s *b; b->j = 5;
33090 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33091 const int foo = 10;
33092 if (!foo) return 0;
33094 return !cs[0] && !zero.x;
33101 rm -f conftest.$ac_objext
33102 if { (ac_try="$ac_compile"
33103 case "(($ac_try" in
33104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105 *) ac_try_echo=$ac_try;;
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108 (eval "$ac_compile") 2>conftest.er1
33110 grep -v '^ *+' conftest.er1 >conftest.err
33112 cat conftest.err >&5
33113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114 (exit $ac_status); } && {
33115 test -z "$ac_c_werror_flag" ||
33116 test ! -s conftest.err
33117 } && test -s conftest.$ac_objext; then
33120 echo "$as_me: failed program was:" >&5
33121 sed 's/^/| /' conftest.$ac_ext >&5
33126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33128 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33129 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33130 if test $ac_cv_c_const = no; then
33132 cat >>confdefs.h <<\_ACEOF
33138 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33139 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33140 if test "${ol_cv_c_volatile+set}" = set; then
33141 echo $ECHO_N "(cached) $ECHO_C" >&6
33143 cat >conftest.$ac_ext <<_ACEOF
33146 cat confdefs.h >>conftest.$ac_ext
33147 cat >>conftest.$ac_ext <<_ACEOF
33148 /* end confdefs.h. */
33153 volatile int a; int * volatile b = x ? &y : &z;
33154 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33160 rm -f conftest.$ac_objext
33161 if { (ac_try="$ac_compile"
33162 case "(($ac_try" in
33163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33164 *) ac_try_echo=$ac_try;;
33166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33167 (eval "$ac_compile") 2>conftest.er1
33169 grep -v '^ *+' conftest.er1 >conftest.err
33171 cat conftest.err >&5
33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33173 (exit $ac_status); } && {
33174 test -z "$ac_c_werror_flag" ||
33175 test ! -s conftest.err
33176 } && test -s conftest.$ac_objext; then
33177 ol_cv_c_volatile=yes
33179 echo "$as_me: failed program was:" >&5
33180 sed 's/^/| /' conftest.$ac_ext >&5
33182 ol_cv_c_volatile=no
33185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33187 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33188 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33189 if test $ol_cv_c_volatile = yes; then
33193 cat >>confdefs.h <<\_ACEOF
33200 if test $cross_compiling = yes ; then
33201 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33202 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33204 cat >>confdefs.h <<\_ACEOF
33205 #define CROSS_COMPILING 1
33209 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33210 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33211 if test "${ac_cv_c_bigendian+set}" = set; then
33212 echo $ECHO_N "(cached) $ECHO_C" >&6
33214 # See if sys/param.h defines the BYTE_ORDER macro.
33215 cat >conftest.$ac_ext <<_ACEOF
33218 cat confdefs.h >>conftest.$ac_ext
33219 cat >>conftest.$ac_ext <<_ACEOF
33220 /* end confdefs.h. */
33221 #include <sys/types.h>
33222 #include <sys/param.h>
33227 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33228 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33229 bogus endian macros
33236 rm -f conftest.$ac_objext
33237 if { (ac_try="$ac_compile"
33238 case "(($ac_try" in
33239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33240 *) ac_try_echo=$ac_try;;
33242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33243 (eval "$ac_compile") 2>conftest.er1
33245 grep -v '^ *+' conftest.er1 >conftest.err
33247 cat conftest.err >&5
33248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33249 (exit $ac_status); } && {
33250 test -z "$ac_c_werror_flag" ||
33251 test ! -s conftest.err
33252 } && test -s conftest.$ac_objext; then
33253 # It does; now see whether it defined to BIG_ENDIAN or not.
33254 cat >conftest.$ac_ext <<_ACEOF
33257 cat confdefs.h >>conftest.$ac_ext
33258 cat >>conftest.$ac_ext <<_ACEOF
33259 /* end confdefs.h. */
33260 #include <sys/types.h>
33261 #include <sys/param.h>
33266 #if BYTE_ORDER != BIG_ENDIAN
33274 rm -f conftest.$ac_objext
33275 if { (ac_try="$ac_compile"
33276 case "(($ac_try" in
33277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33278 *) ac_try_echo=$ac_try;;
33280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33281 (eval "$ac_compile") 2>conftest.er1
33283 grep -v '^ *+' conftest.er1 >conftest.err
33285 cat conftest.err >&5
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } && {
33288 test -z "$ac_c_werror_flag" ||
33289 test ! -s conftest.err
33290 } && test -s conftest.$ac_objext; then
33291 ac_cv_c_bigendian=yes
33293 echo "$as_me: failed program was:" >&5
33294 sed 's/^/| /' conftest.$ac_ext >&5
33296 ac_cv_c_bigendian=no
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33301 echo "$as_me: failed program was:" >&5
33302 sed 's/^/| /' conftest.$ac_ext >&5
33304 # It does not; compile a test program.
33305 if test "$cross_compiling" = yes; then
33306 # try to guess the endianness by grepping values into an object file
33307 ac_cv_c_bigendian=unknown
33308 cat >conftest.$ac_ext <<_ACEOF
33311 cat confdefs.h >>conftest.$ac_ext
33312 cat >>conftest.$ac_ext <<_ACEOF
33313 /* end confdefs.h. */
33314 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33315 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33316 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33317 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33318 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33319 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33323 _ascii (); _ebcdic ();
33328 rm -f conftest.$ac_objext
33329 if { (ac_try="$ac_compile"
33330 case "(($ac_try" in
33331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33332 *) ac_try_echo=$ac_try;;
33334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33335 (eval "$ac_compile") 2>conftest.er1
33337 grep -v '^ *+' conftest.er1 >conftest.err
33339 cat conftest.err >&5
33340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341 (exit $ac_status); } && {
33342 test -z "$ac_c_werror_flag" ||
33343 test ! -s conftest.err
33344 } && test -s conftest.$ac_objext; then
33345 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33346 ac_cv_c_bigendian=yes
33348 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33349 if test "$ac_cv_c_bigendian" = unknown; then
33350 ac_cv_c_bigendian=no
33352 # finding both strings is unlikely to happen, but who knows?
33353 ac_cv_c_bigendian=unknown
33357 echo "$as_me: failed program was:" >&5
33358 sed 's/^/| /' conftest.$ac_ext >&5
33363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33365 cat >conftest.$ac_ext <<_ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h. */
33371 $ac_includes_default
33376 /* Are we little or big endian? From Harbison&Steele. */
33380 char c[sizeof (long int)];
33383 return u.c[sizeof (long int) - 1] == 1;
33389 rm -f conftest$ac_exeext
33390 if { (ac_try="$ac_link"
33391 case "(($ac_try" in
33392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33393 *) ac_try_echo=$ac_try;;
33395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33396 (eval "$ac_link") 2>&5
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33400 { (case "(($ac_try" in
33401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33402 *) ac_try_echo=$ac_try;;
33404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33405 (eval "$ac_try") 2>&5
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); }; }; then
33409 ac_cv_c_bigendian=no
33411 echo "$as_me: program exited with status $ac_status" >&5
33412 echo "$as_me: failed program was:" >&5
33413 sed 's/^/| /' conftest.$ac_ext >&5
33415 ( exit $ac_status )
33416 ac_cv_c_bigendian=yes
33418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33426 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33427 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33428 case $ac_cv_c_bigendian in
33431 cat >>confdefs.h <<\_ACEOF
33432 #define WORDS_BIGENDIAN 1
33438 { { echo "$as_me:$LINENO: error: unknown endianness
33439 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33440 echo "$as_me: error: unknown endianness
33441 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33442 { (exit 1); exit 1; }; } ;;
33447 { echo "$as_me:$LINENO: checking for short" >&5
33448 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33449 if test "${ac_cv_type_short+set}" = set; then
33450 echo $ECHO_N "(cached) $ECHO_C" >&6
33452 cat >conftest.$ac_ext <<_ACEOF
33455 cat confdefs.h >>conftest.$ac_ext
33456 cat >>conftest.$ac_ext <<_ACEOF
33457 /* end confdefs.h. */
33458 $ac_includes_default
33459 typedef short ac__type_new_;
33463 if ((ac__type_new_ *) 0)
33465 if (sizeof (ac__type_new_))
33471 rm -f conftest.$ac_objext
33472 if { (ac_try="$ac_compile"
33473 case "(($ac_try" in
33474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33475 *) ac_try_echo=$ac_try;;
33477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33478 (eval "$ac_compile") 2>conftest.er1
33480 grep -v '^ *+' conftest.er1 >conftest.err
33482 cat conftest.err >&5
33483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33484 (exit $ac_status); } && {
33485 test -z "$ac_c_werror_flag" ||
33486 test ! -s conftest.err
33487 } && test -s conftest.$ac_objext; then
33488 ac_cv_type_short=yes
33490 echo "$as_me: failed program was:" >&5
33491 sed 's/^/| /' conftest.$ac_ext >&5
33493 ac_cv_type_short=no
33496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33498 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33499 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33501 # The cast to long int works around a bug in the HP C Compiler
33502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33504 # This bug is HP SR number 8606223364.
33505 { echo "$as_me:$LINENO: checking size of short" >&5
33506 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33507 if test "${ac_cv_sizeof_short+set}" = set; then
33508 echo $ECHO_N "(cached) $ECHO_C" >&6
33510 if test "$cross_compiling" = yes; then
33511 # Depending upon the size, compute the lo and hi bounds.
33512 cat >conftest.$ac_ext <<_ACEOF
33515 cat confdefs.h >>conftest.$ac_ext
33516 cat >>conftest.$ac_ext <<_ACEOF
33517 /* end confdefs.h. */
33518 $ac_includes_default
33519 typedef short ac__type_sizeof_;
33523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33530 rm -f conftest.$ac_objext
33531 if { (ac_try="$ac_compile"
33532 case "(($ac_try" in
33533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534 *) ac_try_echo=$ac_try;;
33536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537 (eval "$ac_compile") 2>conftest.er1
33539 grep -v '^ *+' conftest.er1 >conftest.err
33541 cat conftest.err >&5
33542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543 (exit $ac_status); } && {
33544 test -z "$ac_c_werror_flag" ||
33545 test ! -s conftest.err
33546 } && test -s conftest.$ac_objext; then
33549 cat >conftest.$ac_ext <<_ACEOF
33552 cat confdefs.h >>conftest.$ac_ext
33553 cat >>conftest.$ac_ext <<_ACEOF
33554 /* end confdefs.h. */
33555 $ac_includes_default
33556 typedef short ac__type_sizeof_;
33560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33567 rm -f conftest.$ac_objext
33568 if { (ac_try="$ac_compile"
33569 case "(($ac_try" in
33570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33571 *) ac_try_echo=$ac_try;;
33573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33574 (eval "$ac_compile") 2>conftest.er1
33576 grep -v '^ *+' conftest.er1 >conftest.err
33578 cat conftest.err >&5
33579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); } && {
33581 test -z "$ac_c_werror_flag" ||
33582 test ! -s conftest.err
33583 } && test -s conftest.$ac_objext; then
33584 ac_hi=$ac_mid; break
33586 echo "$as_me: failed program was:" >&5
33587 sed 's/^/| /' conftest.$ac_ext >&5
33589 ac_lo=`expr $ac_mid + 1`
33590 if test $ac_lo -le $ac_mid; then
33594 ac_mid=`expr 2 '*' $ac_mid + 1`
33597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33600 echo "$as_me: failed program was:" >&5
33601 sed 's/^/| /' conftest.$ac_ext >&5
33603 cat >conftest.$ac_ext <<_ACEOF
33606 cat confdefs.h >>conftest.$ac_ext
33607 cat >>conftest.$ac_ext <<_ACEOF
33608 /* end confdefs.h. */
33609 $ac_includes_default
33610 typedef short ac__type_sizeof_;
33614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33621 rm -f conftest.$ac_objext
33622 if { (ac_try="$ac_compile"
33623 case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628 (eval "$ac_compile") 2>conftest.er1
33630 grep -v '^ *+' conftest.er1 >conftest.err
33632 cat conftest.err >&5
33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33634 (exit $ac_status); } && {
33635 test -z "$ac_c_werror_flag" ||
33636 test ! -s conftest.err
33637 } && test -s conftest.$ac_objext; then
33640 cat >conftest.$ac_ext <<_ACEOF
33643 cat confdefs.h >>conftest.$ac_ext
33644 cat >>conftest.$ac_ext <<_ACEOF
33645 /* end confdefs.h. */
33646 $ac_includes_default
33647 typedef short ac__type_sizeof_;
33651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33658 rm -f conftest.$ac_objext
33659 if { (ac_try="$ac_compile"
33660 case "(($ac_try" in
33661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33662 *) ac_try_echo=$ac_try;;
33664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33665 (eval "$ac_compile") 2>conftest.er1
33667 grep -v '^ *+' conftest.er1 >conftest.err
33669 cat conftest.err >&5
33670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33671 (exit $ac_status); } && {
33672 test -z "$ac_c_werror_flag" ||
33673 test ! -s conftest.err
33674 } && test -s conftest.$ac_objext; then
33675 ac_lo=$ac_mid; break
33677 echo "$as_me: failed program was:" >&5
33678 sed 's/^/| /' conftest.$ac_ext >&5
33680 ac_hi=`expr '(' $ac_mid ')' - 1`
33681 if test $ac_mid -le $ac_hi; then
33685 ac_mid=`expr 2 '*' $ac_mid`
33688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33691 echo "$as_me: failed program was:" >&5
33692 sed 's/^/| /' conftest.$ac_ext >&5
33697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33701 # Binary search between lo and hi bounds.
33702 while test "x$ac_lo" != "x$ac_hi"; do
33703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33704 cat >conftest.$ac_ext <<_ACEOF
33707 cat confdefs.h >>conftest.$ac_ext
33708 cat >>conftest.$ac_ext <<_ACEOF
33709 /* end confdefs.h. */
33710 $ac_includes_default
33711 typedef short ac__type_sizeof_;
33715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33722 rm -f conftest.$ac_objext
33723 if { (ac_try="$ac_compile"
33724 case "(($ac_try" in
33725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726 *) ac_try_echo=$ac_try;;
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729 (eval "$ac_compile") 2>conftest.er1
33731 grep -v '^ *+' conftest.er1 >conftest.err
33733 cat conftest.err >&5
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } && {
33736 test -z "$ac_c_werror_flag" ||
33737 test ! -s conftest.err
33738 } && test -s conftest.$ac_objext; then
33741 echo "$as_me: failed program was:" >&5
33742 sed 's/^/| /' conftest.$ac_ext >&5
33744 ac_lo=`expr '(' $ac_mid ')' + 1`
33747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33750 ?*) ac_cv_sizeof_short=$ac_lo;;
33751 '') if test "$ac_cv_type_short" = yes; then
33752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33753 See \`config.log' for more details." >&5
33754 echo "$as_me: error: cannot compute sizeof (short)
33755 See \`config.log' for more details." >&2;}
33756 { (exit 77); exit 77; }; }
33758 ac_cv_sizeof_short=0
33762 cat >conftest.$ac_ext <<_ACEOF
33765 cat confdefs.h >>conftest.$ac_ext
33766 cat >>conftest.$ac_ext <<_ACEOF
33767 /* end confdefs.h. */
33768 $ac_includes_default
33769 typedef short ac__type_sizeof_;
33770 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33771 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33773 #include <stdlib.h>
33778 FILE *f = fopen ("conftest.val", "w");
33781 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33783 long int i = longval ();
33784 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33786 fprintf (f, "%ld\n", i);
33790 unsigned long int i = ulongval ();
33791 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33793 fprintf (f, "%lu\n", i);
33795 return ferror (f) || fclose (f) != 0;
33801 rm -f conftest$ac_exeext
33802 if { (ac_try="$ac_link"
33803 case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_link") 2>&5
33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33812 { (case "(($ac_try" in
33813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33814 *) ac_try_echo=$ac_try;;
33816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33817 (eval "$ac_try") 2>&5
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33820 (exit $ac_status); }; }; then
33821 ac_cv_sizeof_short=`cat conftest.val`
33823 echo "$as_me: program exited with status $ac_status" >&5
33824 echo "$as_me: failed program was:" >&5
33825 sed 's/^/| /' conftest.$ac_ext >&5
33827 ( exit $ac_status )
33828 if test "$ac_cv_type_short" = yes; then
33829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33830 See \`config.log' for more details." >&5
33831 echo "$as_me: error: cannot compute sizeof (short)
33832 See \`config.log' for more details." >&2;}
33833 { (exit 77); exit 77; }; }
33835 ac_cv_sizeof_short=0
33838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33842 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33843 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33847 cat >>confdefs.h <<_ACEOF
33848 #define SIZEOF_SHORT $ac_cv_sizeof_short
33852 { echo "$as_me:$LINENO: checking for int" >&5
33853 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33854 if test "${ac_cv_type_int+set}" = set; then
33855 echo $ECHO_N "(cached) $ECHO_C" >&6
33857 cat >conftest.$ac_ext <<_ACEOF
33860 cat confdefs.h >>conftest.$ac_ext
33861 cat >>conftest.$ac_ext <<_ACEOF
33862 /* end confdefs.h. */
33863 $ac_includes_default
33864 typedef int ac__type_new_;
33868 if ((ac__type_new_ *) 0)
33870 if (sizeof (ac__type_new_))
33876 rm -f conftest.$ac_objext
33877 if { (ac_try="$ac_compile"
33878 case "(($ac_try" in
33879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33880 *) ac_try_echo=$ac_try;;
33882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33883 (eval "$ac_compile") 2>conftest.er1
33885 grep -v '^ *+' conftest.er1 >conftest.err
33887 cat conftest.err >&5
33888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33889 (exit $ac_status); } && {
33890 test -z "$ac_c_werror_flag" ||
33891 test ! -s conftest.err
33892 } && test -s conftest.$ac_objext; then
33895 echo "$as_me: failed program was:" >&5
33896 sed 's/^/| /' conftest.$ac_ext >&5
33901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33903 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33904 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33906 # The cast to long int works around a bug in the HP C Compiler
33907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33909 # This bug is HP SR number 8606223364.
33910 { echo "$as_me:$LINENO: checking size of int" >&5
33911 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33912 if test "${ac_cv_sizeof_int+set}" = set; then
33913 echo $ECHO_N "(cached) $ECHO_C" >&6
33915 if test "$cross_compiling" = yes; then
33916 # Depending upon the size, compute the lo and hi bounds.
33917 cat >conftest.$ac_ext <<_ACEOF
33920 cat confdefs.h >>conftest.$ac_ext
33921 cat >>conftest.$ac_ext <<_ACEOF
33922 /* end confdefs.h. */
33923 $ac_includes_default
33924 typedef int ac__type_sizeof_;
33928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33935 rm -f conftest.$ac_objext
33936 if { (ac_try="$ac_compile"
33937 case "(($ac_try" in
33938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33939 *) ac_try_echo=$ac_try;;
33941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33942 (eval "$ac_compile") 2>conftest.er1
33944 grep -v '^ *+' conftest.er1 >conftest.err
33946 cat conftest.err >&5
33947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33948 (exit $ac_status); } && {
33949 test -z "$ac_c_werror_flag" ||
33950 test ! -s conftest.err
33951 } && test -s conftest.$ac_objext; then
33954 cat >conftest.$ac_ext <<_ACEOF
33957 cat confdefs.h >>conftest.$ac_ext
33958 cat >>conftest.$ac_ext <<_ACEOF
33959 /* end confdefs.h. */
33960 $ac_includes_default
33961 typedef int ac__type_sizeof_;
33965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33972 rm -f conftest.$ac_objext
33973 if { (ac_try="$ac_compile"
33974 case "(($ac_try" in
33975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33976 *) ac_try_echo=$ac_try;;
33978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33979 (eval "$ac_compile") 2>conftest.er1
33981 grep -v '^ *+' conftest.er1 >conftest.err
33983 cat conftest.err >&5
33984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985 (exit $ac_status); } && {
33986 test -z "$ac_c_werror_flag" ||
33987 test ! -s conftest.err
33988 } && test -s conftest.$ac_objext; then
33989 ac_hi=$ac_mid; break
33991 echo "$as_me: failed program was:" >&5
33992 sed 's/^/| /' conftest.$ac_ext >&5
33994 ac_lo=`expr $ac_mid + 1`
33995 if test $ac_lo -le $ac_mid; then
33999 ac_mid=`expr 2 '*' $ac_mid + 1`
34002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34005 echo "$as_me: failed program was:" >&5
34006 sed 's/^/| /' conftest.$ac_ext >&5
34008 cat >conftest.$ac_ext <<_ACEOF
34011 cat confdefs.h >>conftest.$ac_ext
34012 cat >>conftest.$ac_ext <<_ACEOF
34013 /* end confdefs.h. */
34014 $ac_includes_default
34015 typedef int ac__type_sizeof_;
34019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34026 rm -f conftest.$ac_objext
34027 if { (ac_try="$ac_compile"
34028 case "(($ac_try" in
34029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34030 *) ac_try_echo=$ac_try;;
34032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34033 (eval "$ac_compile") 2>conftest.er1
34035 grep -v '^ *+' conftest.er1 >conftest.err
34037 cat conftest.err >&5
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); } && {
34040 test -z "$ac_c_werror_flag" ||
34041 test ! -s conftest.err
34042 } && test -s conftest.$ac_objext; then
34045 cat >conftest.$ac_ext <<_ACEOF
34048 cat confdefs.h >>conftest.$ac_ext
34049 cat >>conftest.$ac_ext <<_ACEOF
34050 /* end confdefs.h. */
34051 $ac_includes_default
34052 typedef int ac__type_sizeof_;
34056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34063 rm -f conftest.$ac_objext
34064 if { (ac_try="$ac_compile"
34065 case "(($ac_try" in
34066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34067 *) ac_try_echo=$ac_try;;
34069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34070 (eval "$ac_compile") 2>conftest.er1
34072 grep -v '^ *+' conftest.er1 >conftest.err
34074 cat conftest.err >&5
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); } && {
34077 test -z "$ac_c_werror_flag" ||
34078 test ! -s conftest.err
34079 } && test -s conftest.$ac_objext; then
34080 ac_lo=$ac_mid; break
34082 echo "$as_me: failed program was:" >&5
34083 sed 's/^/| /' conftest.$ac_ext >&5
34085 ac_hi=`expr '(' $ac_mid ')' - 1`
34086 if test $ac_mid -le $ac_hi; then
34090 ac_mid=`expr 2 '*' $ac_mid`
34093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 echo "$as_me: failed program was:" >&5
34097 sed 's/^/| /' conftest.$ac_ext >&5
34102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34106 # Binary search between lo and hi bounds.
34107 while test "x$ac_lo" != "x$ac_hi"; do
34108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34109 cat >conftest.$ac_ext <<_ACEOF
34112 cat confdefs.h >>conftest.$ac_ext
34113 cat >>conftest.$ac_ext <<_ACEOF
34114 /* end confdefs.h. */
34115 $ac_includes_default
34116 typedef int ac__type_sizeof_;
34120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34127 rm -f conftest.$ac_objext
34128 if { (ac_try="$ac_compile"
34129 case "(($ac_try" in
34130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34131 *) ac_try_echo=$ac_try;;
34133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34134 (eval "$ac_compile") 2>conftest.er1
34136 grep -v '^ *+' conftest.er1 >conftest.err
34138 cat conftest.err >&5
34139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140 (exit $ac_status); } && {
34141 test -z "$ac_c_werror_flag" ||
34142 test ! -s conftest.err
34143 } && test -s conftest.$ac_objext; then
34146 echo "$as_me: failed program was:" >&5
34147 sed 's/^/| /' conftest.$ac_ext >&5
34149 ac_lo=`expr '(' $ac_mid ')' + 1`
34152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34155 ?*) ac_cv_sizeof_int=$ac_lo;;
34156 '') if test "$ac_cv_type_int" = yes; then
34157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34158 See \`config.log' for more details." >&5
34159 echo "$as_me: error: cannot compute sizeof (int)
34160 See \`config.log' for more details." >&2;}
34161 { (exit 77); exit 77; }; }
34167 cat >conftest.$ac_ext <<_ACEOF
34170 cat confdefs.h >>conftest.$ac_ext
34171 cat >>conftest.$ac_ext <<_ACEOF
34172 /* end confdefs.h. */
34173 $ac_includes_default
34174 typedef int ac__type_sizeof_;
34175 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34176 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34178 #include <stdlib.h>
34183 FILE *f = fopen ("conftest.val", "w");
34186 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34188 long int i = longval ();
34189 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34191 fprintf (f, "%ld\n", i);
34195 unsigned long int i = ulongval ();
34196 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34198 fprintf (f, "%lu\n", i);
34200 return ferror (f) || fclose (f) != 0;
34206 rm -f conftest$ac_exeext
34207 if { (ac_try="$ac_link"
34208 case "(($ac_try" in
34209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34210 *) ac_try_echo=$ac_try;;
34212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34213 (eval "$ac_link") 2>&5
34215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34217 { (case "(($ac_try" in
34218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34219 *) ac_try_echo=$ac_try;;
34221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34222 (eval "$ac_try") 2>&5
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; }; then
34226 ac_cv_sizeof_int=`cat conftest.val`
34228 echo "$as_me: program exited with status $ac_status" >&5
34229 echo "$as_me: failed program was:" >&5
34230 sed 's/^/| /' conftest.$ac_ext >&5
34232 ( exit $ac_status )
34233 if test "$ac_cv_type_int" = yes; then
34234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34235 See \`config.log' for more details." >&5
34236 echo "$as_me: error: cannot compute sizeof (int)
34237 See \`config.log' for more details." >&2;}
34238 { (exit 77); exit 77; }; }
34243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34248 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34252 cat >>confdefs.h <<_ACEOF
34253 #define SIZEOF_INT $ac_cv_sizeof_int
34257 { echo "$as_me:$LINENO: checking for long" >&5
34258 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34259 if test "${ac_cv_type_long+set}" = set; then
34260 echo $ECHO_N "(cached) $ECHO_C" >&6
34262 cat >conftest.$ac_ext <<_ACEOF
34265 cat confdefs.h >>conftest.$ac_ext
34266 cat >>conftest.$ac_ext <<_ACEOF
34267 /* end confdefs.h. */
34268 $ac_includes_default
34269 typedef long ac__type_new_;
34273 if ((ac__type_new_ *) 0)
34275 if (sizeof (ac__type_new_))
34281 rm -f conftest.$ac_objext
34282 if { (ac_try="$ac_compile"
34283 case "(($ac_try" in
34284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34285 *) ac_try_echo=$ac_try;;
34287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34288 (eval "$ac_compile") 2>conftest.er1
34290 grep -v '^ *+' conftest.er1 >conftest.err
34292 cat conftest.err >&5
34293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294 (exit $ac_status); } && {
34295 test -z "$ac_c_werror_flag" ||
34296 test ! -s conftest.err
34297 } && test -s conftest.$ac_objext; then
34298 ac_cv_type_long=yes
34300 echo "$as_me: failed program was:" >&5
34301 sed 's/^/| /' conftest.$ac_ext >&5
34306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34308 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34309 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34311 # The cast to long int works around a bug in the HP C Compiler
34312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34314 # This bug is HP SR number 8606223364.
34315 { echo "$as_me:$LINENO: checking size of long" >&5
34316 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34317 if test "${ac_cv_sizeof_long+set}" = set; then
34318 echo $ECHO_N "(cached) $ECHO_C" >&6
34320 if test "$cross_compiling" = yes; then
34321 # Depending upon the size, compute the lo and hi bounds.
34322 cat >conftest.$ac_ext <<_ACEOF
34325 cat confdefs.h >>conftest.$ac_ext
34326 cat >>conftest.$ac_ext <<_ACEOF
34327 /* end confdefs.h. */
34328 $ac_includes_default
34329 typedef long ac__type_sizeof_;
34333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34340 rm -f conftest.$ac_objext
34341 if { (ac_try="$ac_compile"
34342 case "(($ac_try" in
34343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34344 *) ac_try_echo=$ac_try;;
34346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34347 (eval "$ac_compile") 2>conftest.er1
34349 grep -v '^ *+' conftest.er1 >conftest.err
34351 cat conftest.err >&5
34352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353 (exit $ac_status); } && {
34354 test -z "$ac_c_werror_flag" ||
34355 test ! -s conftest.err
34356 } && test -s conftest.$ac_objext; then
34359 cat >conftest.$ac_ext <<_ACEOF
34362 cat confdefs.h >>conftest.$ac_ext
34363 cat >>conftest.$ac_ext <<_ACEOF
34364 /* end confdefs.h. */
34365 $ac_includes_default
34366 typedef long ac__type_sizeof_;
34370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34377 rm -f conftest.$ac_objext
34378 if { (ac_try="$ac_compile"
34379 case "(($ac_try" in
34380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34381 *) ac_try_echo=$ac_try;;
34383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34384 (eval "$ac_compile") 2>conftest.er1
34386 grep -v '^ *+' conftest.er1 >conftest.err
34388 cat conftest.err >&5
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); } && {
34391 test -z "$ac_c_werror_flag" ||
34392 test ! -s conftest.err
34393 } && test -s conftest.$ac_objext; then
34394 ac_hi=$ac_mid; break
34396 echo "$as_me: failed program was:" >&5
34397 sed 's/^/| /' conftest.$ac_ext >&5
34399 ac_lo=`expr $ac_mid + 1`
34400 if test $ac_lo -le $ac_mid; then
34404 ac_mid=`expr 2 '*' $ac_mid + 1`
34407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34410 echo "$as_me: failed program was:" >&5
34411 sed 's/^/| /' conftest.$ac_ext >&5
34413 cat >conftest.$ac_ext <<_ACEOF
34416 cat confdefs.h >>conftest.$ac_ext
34417 cat >>conftest.$ac_ext <<_ACEOF
34418 /* end confdefs.h. */
34419 $ac_includes_default
34420 typedef long ac__type_sizeof_;
34424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34431 rm -f conftest.$ac_objext
34432 if { (ac_try="$ac_compile"
34433 case "(($ac_try" in
34434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435 *) ac_try_echo=$ac_try;;
34437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34438 (eval "$ac_compile") 2>conftest.er1
34440 grep -v '^ *+' conftest.er1 >conftest.err
34442 cat conftest.err >&5
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } && {
34445 test -z "$ac_c_werror_flag" ||
34446 test ! -s conftest.err
34447 } && test -s conftest.$ac_objext; then
34450 cat >conftest.$ac_ext <<_ACEOF
34453 cat confdefs.h >>conftest.$ac_ext
34454 cat >>conftest.$ac_ext <<_ACEOF
34455 /* end confdefs.h. */
34456 $ac_includes_default
34457 typedef long ac__type_sizeof_;
34461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34468 rm -f conftest.$ac_objext
34469 if { (ac_try="$ac_compile"
34470 case "(($ac_try" in
34471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34472 *) ac_try_echo=$ac_try;;
34474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34475 (eval "$ac_compile") 2>conftest.er1
34477 grep -v '^ *+' conftest.er1 >conftest.err
34479 cat conftest.err >&5
34480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34481 (exit $ac_status); } && {
34482 test -z "$ac_c_werror_flag" ||
34483 test ! -s conftest.err
34484 } && test -s conftest.$ac_objext; then
34485 ac_lo=$ac_mid; break
34487 echo "$as_me: failed program was:" >&5
34488 sed 's/^/| /' conftest.$ac_ext >&5
34490 ac_hi=`expr '(' $ac_mid ')' - 1`
34491 if test $ac_mid -le $ac_hi; then
34495 ac_mid=`expr 2 '*' $ac_mid`
34498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34501 echo "$as_me: failed program was:" >&5
34502 sed 's/^/| /' conftest.$ac_ext >&5
34507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34511 # Binary search between lo and hi bounds.
34512 while test "x$ac_lo" != "x$ac_hi"; do
34513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34514 cat >conftest.$ac_ext <<_ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34520 $ac_includes_default
34521 typedef long ac__type_sizeof_;
34525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34532 rm -f conftest.$ac_objext
34533 if { (ac_try="$ac_compile"
34534 case "(($ac_try" in
34535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34536 *) ac_try_echo=$ac_try;;
34538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34539 (eval "$ac_compile") 2>conftest.er1
34541 grep -v '^ *+' conftest.er1 >conftest.err
34543 cat conftest.err >&5
34544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34545 (exit $ac_status); } && {
34546 test -z "$ac_c_werror_flag" ||
34547 test ! -s conftest.err
34548 } && test -s conftest.$ac_objext; then
34551 echo "$as_me: failed program was:" >&5
34552 sed 's/^/| /' conftest.$ac_ext >&5
34554 ac_lo=`expr '(' $ac_mid ')' + 1`
34557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34560 ?*) ac_cv_sizeof_long=$ac_lo;;
34561 '') if test "$ac_cv_type_long" = yes; then
34562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34563 See \`config.log' for more details." >&5
34564 echo "$as_me: error: cannot compute sizeof (long)
34565 See \`config.log' for more details." >&2;}
34566 { (exit 77); exit 77; }; }
34568 ac_cv_sizeof_long=0
34572 cat >conftest.$ac_ext <<_ACEOF
34575 cat confdefs.h >>conftest.$ac_ext
34576 cat >>conftest.$ac_ext <<_ACEOF
34577 /* end confdefs.h. */
34578 $ac_includes_default
34579 typedef long ac__type_sizeof_;
34580 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34581 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34583 #include <stdlib.h>
34588 FILE *f = fopen ("conftest.val", "w");
34591 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34593 long int i = longval ();
34594 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34596 fprintf (f, "%ld\n", i);
34600 unsigned long int i = ulongval ();
34601 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34603 fprintf (f, "%lu\n", i);
34605 return ferror (f) || fclose (f) != 0;
34611 rm -f conftest$ac_exeext
34612 if { (ac_try="$ac_link"
34613 case "(($ac_try" in
34614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34615 *) ac_try_echo=$ac_try;;
34617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34618 (eval "$ac_link") 2>&5
34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34622 { (case "(($ac_try" in
34623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34624 *) ac_try_echo=$ac_try;;
34626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34627 (eval "$ac_try") 2>&5
34629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34630 (exit $ac_status); }; }; then
34631 ac_cv_sizeof_long=`cat conftest.val`
34633 echo "$as_me: program exited with status $ac_status" >&5
34634 echo "$as_me: failed program was:" >&5
34635 sed 's/^/| /' conftest.$ac_ext >&5
34637 ( exit $ac_status )
34638 if test "$ac_cv_type_long" = yes; then
34639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34640 See \`config.log' for more details." >&5
34641 echo "$as_me: error: cannot compute sizeof (long)
34642 See \`config.log' for more details." >&2;}
34643 { (exit 77); exit 77; }; }
34645 ac_cv_sizeof_long=0
34648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34652 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34653 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34657 cat >>confdefs.h <<_ACEOF
34658 #define SIZEOF_LONG $ac_cv_sizeof_long
34662 { echo "$as_me:$LINENO: checking for long long" >&5
34663 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34664 if test "${ac_cv_type_long_long+set}" = set; then
34665 echo $ECHO_N "(cached) $ECHO_C" >&6
34667 cat >conftest.$ac_ext <<_ACEOF
34670 cat confdefs.h >>conftest.$ac_ext
34671 cat >>conftest.$ac_ext <<_ACEOF
34672 /* end confdefs.h. */
34673 $ac_includes_default
34674 typedef long long ac__type_new_;
34678 if ((ac__type_new_ *) 0)
34680 if (sizeof (ac__type_new_))
34686 rm -f conftest.$ac_objext
34687 if { (ac_try="$ac_compile"
34688 case "(($ac_try" in
34689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34690 *) ac_try_echo=$ac_try;;
34692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34693 (eval "$ac_compile") 2>conftest.er1
34695 grep -v '^ *+' conftest.er1 >conftest.err
34697 cat conftest.err >&5
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); } && {
34700 test -z "$ac_c_werror_flag" ||
34701 test ! -s conftest.err
34702 } && test -s conftest.$ac_objext; then
34703 ac_cv_type_long_long=yes
34705 echo "$as_me: failed program was:" >&5
34706 sed 's/^/| /' conftest.$ac_ext >&5
34708 ac_cv_type_long_long=no
34711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34713 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34714 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34716 # The cast to long int works around a bug in the HP C Compiler
34717 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34718 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34719 # This bug is HP SR number 8606223364.
34720 { echo "$as_me:$LINENO: checking size of long long" >&5
34721 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34722 if test "${ac_cv_sizeof_long_long+set}" = set; then
34723 echo $ECHO_N "(cached) $ECHO_C" >&6
34725 if test "$cross_compiling" = yes; then
34726 # Depending upon the size, compute the lo and hi bounds.
34727 cat >conftest.$ac_ext <<_ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h. */
34733 $ac_includes_default
34734 typedef long long ac__type_sizeof_;
34738 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34745 rm -f conftest.$ac_objext
34746 if { (ac_try="$ac_compile"
34747 case "(($ac_try" in
34748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34749 *) ac_try_echo=$ac_try;;
34751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34752 (eval "$ac_compile") 2>conftest.er1
34754 grep -v '^ *+' conftest.er1 >conftest.err
34756 cat conftest.err >&5
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); } && {
34759 test -z "$ac_c_werror_flag" ||
34760 test ! -s conftest.err
34761 } && test -s conftest.$ac_objext; then
34764 cat >conftest.$ac_ext <<_ACEOF
34767 cat confdefs.h >>conftest.$ac_ext
34768 cat >>conftest.$ac_ext <<_ACEOF
34769 /* end confdefs.h. */
34770 $ac_includes_default
34771 typedef long long ac__type_sizeof_;
34775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34782 rm -f conftest.$ac_objext
34783 if { (ac_try="$ac_compile"
34784 case "(($ac_try" in
34785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34786 *) ac_try_echo=$ac_try;;
34788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34789 (eval "$ac_compile") 2>conftest.er1
34791 grep -v '^ *+' conftest.er1 >conftest.err
34793 cat conftest.err >&5
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); } && {
34796 test -z "$ac_c_werror_flag" ||
34797 test ! -s conftest.err
34798 } && test -s conftest.$ac_objext; then
34799 ac_hi=$ac_mid; break
34801 echo "$as_me: failed program was:" >&5
34802 sed 's/^/| /' conftest.$ac_ext >&5
34804 ac_lo=`expr $ac_mid + 1`
34805 if test $ac_lo -le $ac_mid; then
34809 ac_mid=`expr 2 '*' $ac_mid + 1`
34812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34815 echo "$as_me: failed program was:" >&5
34816 sed 's/^/| /' conftest.$ac_ext >&5
34818 cat >conftest.$ac_ext <<_ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34824 $ac_includes_default
34825 typedef long long ac__type_sizeof_;
34829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34836 rm -f conftest.$ac_objext
34837 if { (ac_try="$ac_compile"
34838 case "(($ac_try" in
34839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34840 *) ac_try_echo=$ac_try;;
34842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34843 (eval "$ac_compile") 2>conftest.er1
34845 grep -v '^ *+' conftest.er1 >conftest.err
34847 cat conftest.err >&5
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); } && {
34850 test -z "$ac_c_werror_flag" ||
34851 test ! -s conftest.err
34852 } && test -s conftest.$ac_objext; then
34855 cat >conftest.$ac_ext <<_ACEOF
34858 cat confdefs.h >>conftest.$ac_ext
34859 cat >>conftest.$ac_ext <<_ACEOF
34860 /* end confdefs.h. */
34861 $ac_includes_default
34862 typedef long long ac__type_sizeof_;
34866 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34873 rm -f conftest.$ac_objext
34874 if { (ac_try="$ac_compile"
34875 case "(($ac_try" in
34876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34877 *) ac_try_echo=$ac_try;;
34879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34880 (eval "$ac_compile") 2>conftest.er1
34882 grep -v '^ *+' conftest.er1 >conftest.err
34884 cat conftest.err >&5
34885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886 (exit $ac_status); } && {
34887 test -z "$ac_c_werror_flag" ||
34888 test ! -s conftest.err
34889 } && test -s conftest.$ac_objext; then
34890 ac_lo=$ac_mid; break
34892 echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.$ac_ext >&5
34895 ac_hi=`expr '(' $ac_mid ')' - 1`
34896 if test $ac_mid -le $ac_hi; then
34900 ac_mid=`expr 2 '*' $ac_mid`
34903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34916 # Binary search between lo and hi bounds.
34917 while test "x$ac_lo" != "x$ac_hi"; do
34918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34919 cat >conftest.$ac_ext <<_ACEOF
34922 cat confdefs.h >>conftest.$ac_ext
34923 cat >>conftest.$ac_ext <<_ACEOF
34924 /* end confdefs.h. */
34925 $ac_includes_default
34926 typedef long long ac__type_sizeof_;
34930 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34937 rm -f conftest.$ac_objext
34938 if { (ac_try="$ac_compile"
34939 case "(($ac_try" in
34940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34941 *) ac_try_echo=$ac_try;;
34943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34944 (eval "$ac_compile") 2>conftest.er1
34946 grep -v '^ *+' conftest.er1 >conftest.err
34948 cat conftest.err >&5
34949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34950 (exit $ac_status); } && {
34951 test -z "$ac_c_werror_flag" ||
34952 test ! -s conftest.err
34953 } && test -s conftest.$ac_objext; then
34956 echo "$as_me: failed program was:" >&5
34957 sed 's/^/| /' conftest.$ac_ext >&5
34959 ac_lo=`expr '(' $ac_mid ')' + 1`
34962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34965 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34966 '') if test "$ac_cv_type_long_long" = yes; then
34967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34968 See \`config.log' for more details." >&5
34969 echo "$as_me: error: cannot compute sizeof (long long)
34970 See \`config.log' for more details." >&2;}
34971 { (exit 77); exit 77; }; }
34973 ac_cv_sizeof_long_long=0
34977 cat >conftest.$ac_ext <<_ACEOF
34980 cat confdefs.h >>conftest.$ac_ext
34981 cat >>conftest.$ac_ext <<_ACEOF
34982 /* end confdefs.h. */
34983 $ac_includes_default
34984 typedef long long ac__type_sizeof_;
34985 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34986 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34988 #include <stdlib.h>
34993 FILE *f = fopen ("conftest.val", "w");
34996 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34998 long int i = longval ();
34999 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35001 fprintf (f, "%ld\n", i);
35005 unsigned long int i = ulongval ();
35006 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35008 fprintf (f, "%lu\n", i);
35010 return ferror (f) || fclose (f) != 0;
35016 rm -f conftest$ac_exeext
35017 if { (ac_try="$ac_link"
35018 case "(($ac_try" in
35019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35020 *) ac_try_echo=$ac_try;;
35022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35023 (eval "$ac_link") 2>&5
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35027 { (case "(($ac_try" in
35028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35029 *) ac_try_echo=$ac_try;;
35031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35032 (eval "$ac_try") 2>&5
35034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35035 (exit $ac_status); }; }; then
35036 ac_cv_sizeof_long_long=`cat conftest.val`
35038 echo "$as_me: program exited with status $ac_status" >&5
35039 echo "$as_me: failed program was:" >&5
35040 sed 's/^/| /' conftest.$ac_ext >&5
35042 ( exit $ac_status )
35043 if test "$ac_cv_type_long_long" = yes; then
35044 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35045 See \`config.log' for more details." >&5
35046 echo "$as_me: error: cannot compute sizeof (long long)
35047 See \`config.log' for more details." >&2;}
35048 { (exit 77); exit 77; }; }
35050 ac_cv_sizeof_long_long=0
35053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35057 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35058 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35062 cat >>confdefs.h <<_ACEOF
35063 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35067 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35068 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35069 if test "${ac_cv_type_wchar_t+set}" = set; then
35070 echo $ECHO_N "(cached) $ECHO_C" >&6
35072 cat >conftest.$ac_ext <<_ACEOF
35075 cat confdefs.h >>conftest.$ac_ext
35076 cat >>conftest.$ac_ext <<_ACEOF
35077 /* end confdefs.h. */
35078 $ac_includes_default
35079 typedef wchar_t ac__type_new_;
35083 if ((ac__type_new_ *) 0)
35085 if (sizeof (ac__type_new_))
35091 rm -f conftest.$ac_objext
35092 if { (ac_try="$ac_compile"
35093 case "(($ac_try" in
35094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35095 *) ac_try_echo=$ac_try;;
35097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35098 (eval "$ac_compile") 2>conftest.er1
35100 grep -v '^ *+' conftest.er1 >conftest.err
35102 cat conftest.err >&5
35103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 (exit $ac_status); } && {
35105 test -z "$ac_c_werror_flag" ||
35106 test ! -s conftest.err
35107 } && test -s conftest.$ac_objext; then
35108 ac_cv_type_wchar_t=yes
35110 echo "$as_me: failed program was:" >&5
35111 sed 's/^/| /' conftest.$ac_ext >&5
35113 ac_cv_type_wchar_t=no
35116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35118 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35119 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35121 # The cast to long int works around a bug in the HP C Compiler
35122 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35123 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35124 # This bug is HP SR number 8606223364.
35125 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35126 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35127 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35128 echo $ECHO_N "(cached) $ECHO_C" >&6
35130 if test "$cross_compiling" = yes; then
35131 # Depending upon the size, compute the lo and hi bounds.
35132 cat >conftest.$ac_ext <<_ACEOF
35135 cat confdefs.h >>conftest.$ac_ext
35136 cat >>conftest.$ac_ext <<_ACEOF
35137 /* end confdefs.h. */
35138 $ac_includes_default
35139 typedef wchar_t ac__type_sizeof_;
35143 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35150 rm -f conftest.$ac_objext
35151 if { (ac_try="$ac_compile"
35152 case "(($ac_try" in
35153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35154 *) ac_try_echo=$ac_try;;
35156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35157 (eval "$ac_compile") 2>conftest.er1
35159 grep -v '^ *+' conftest.er1 >conftest.err
35161 cat conftest.err >&5
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); } && {
35164 test -z "$ac_c_werror_flag" ||
35165 test ! -s conftest.err
35166 } && test -s conftest.$ac_objext; then
35169 cat >conftest.$ac_ext <<_ACEOF
35172 cat confdefs.h >>conftest.$ac_ext
35173 cat >>conftest.$ac_ext <<_ACEOF
35174 /* end confdefs.h. */
35175 $ac_includes_default
35176 typedef wchar_t ac__type_sizeof_;
35180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35187 rm -f conftest.$ac_objext
35188 if { (ac_try="$ac_compile"
35189 case "(($ac_try" in
35190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191 *) ac_try_echo=$ac_try;;
35193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35194 (eval "$ac_compile") 2>conftest.er1
35196 grep -v '^ *+' conftest.er1 >conftest.err
35198 cat conftest.err >&5
35199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 (exit $ac_status); } && {
35201 test -z "$ac_c_werror_flag" ||
35202 test ! -s conftest.err
35203 } && test -s conftest.$ac_objext; then
35204 ac_hi=$ac_mid; break
35206 echo "$as_me: failed program was:" >&5
35207 sed 's/^/| /' conftest.$ac_ext >&5
35209 ac_lo=`expr $ac_mid + 1`
35210 if test $ac_lo -le $ac_mid; then
35214 ac_mid=`expr 2 '*' $ac_mid + 1`
35217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35220 echo "$as_me: failed program was:" >&5
35221 sed 's/^/| /' conftest.$ac_ext >&5
35223 cat >conftest.$ac_ext <<_ACEOF
35226 cat confdefs.h >>conftest.$ac_ext
35227 cat >>conftest.$ac_ext <<_ACEOF
35228 /* end confdefs.h. */
35229 $ac_includes_default
35230 typedef wchar_t ac__type_sizeof_;
35234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35241 rm -f conftest.$ac_objext
35242 if { (ac_try="$ac_compile"
35243 case "(($ac_try" in
35244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35245 *) ac_try_echo=$ac_try;;
35247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35248 (eval "$ac_compile") 2>conftest.er1
35250 grep -v '^ *+' conftest.er1 >conftest.err
35252 cat conftest.err >&5
35253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35254 (exit $ac_status); } && {
35255 test -z "$ac_c_werror_flag" ||
35256 test ! -s conftest.err
35257 } && test -s conftest.$ac_objext; then
35260 cat >conftest.$ac_ext <<_ACEOF
35263 cat confdefs.h >>conftest.$ac_ext
35264 cat >>conftest.$ac_ext <<_ACEOF
35265 /* end confdefs.h. */
35266 $ac_includes_default
35267 typedef wchar_t ac__type_sizeof_;
35271 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35278 rm -f conftest.$ac_objext
35279 if { (ac_try="$ac_compile"
35280 case "(($ac_try" in
35281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35282 *) ac_try_echo=$ac_try;;
35284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35285 (eval "$ac_compile") 2>conftest.er1
35287 grep -v '^ *+' conftest.er1 >conftest.err
35289 cat conftest.err >&5
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); } && {
35292 test -z "$ac_c_werror_flag" ||
35293 test ! -s conftest.err
35294 } && test -s conftest.$ac_objext; then
35295 ac_lo=$ac_mid; break
35297 echo "$as_me: failed program was:" >&5
35298 sed 's/^/| /' conftest.$ac_ext >&5
35300 ac_hi=`expr '(' $ac_mid ')' - 1`
35301 if test $ac_mid -le $ac_hi; then
35305 ac_mid=`expr 2 '*' $ac_mid`
35308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35311 echo "$as_me: failed program was:" >&5
35312 sed 's/^/| /' conftest.$ac_ext >&5
35317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35321 # Binary search between lo and hi bounds.
35322 while test "x$ac_lo" != "x$ac_hi"; do
35323 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35324 cat >conftest.$ac_ext <<_ACEOF
35327 cat confdefs.h >>conftest.$ac_ext
35328 cat >>conftest.$ac_ext <<_ACEOF
35329 /* end confdefs.h. */
35330 $ac_includes_default
35331 typedef wchar_t ac__type_sizeof_;
35335 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35342 rm -f conftest.$ac_objext
35343 if { (ac_try="$ac_compile"
35344 case "(($ac_try" in
35345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35346 *) ac_try_echo=$ac_try;;
35348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35349 (eval "$ac_compile") 2>conftest.er1
35351 grep -v '^ *+' conftest.er1 >conftest.err
35353 cat conftest.err >&5
35354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355 (exit $ac_status); } && {
35356 test -z "$ac_c_werror_flag" ||
35357 test ! -s conftest.err
35358 } && test -s conftest.$ac_objext; then
35361 echo "$as_me: failed program was:" >&5
35362 sed 's/^/| /' conftest.$ac_ext >&5
35364 ac_lo=`expr '(' $ac_mid ')' + 1`
35367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35370 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35371 '') if test "$ac_cv_type_wchar_t" = yes; then
35372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35373 See \`config.log' for more details." >&5
35374 echo "$as_me: error: cannot compute sizeof (wchar_t)
35375 See \`config.log' for more details." >&2;}
35376 { (exit 77); exit 77; }; }
35378 ac_cv_sizeof_wchar_t=0
35382 cat >conftest.$ac_ext <<_ACEOF
35385 cat confdefs.h >>conftest.$ac_ext
35386 cat >>conftest.$ac_ext <<_ACEOF
35387 /* end confdefs.h. */
35388 $ac_includes_default
35389 typedef wchar_t ac__type_sizeof_;
35390 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35391 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35393 #include <stdlib.h>
35398 FILE *f = fopen ("conftest.val", "w");
35401 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35403 long int i = longval ();
35404 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35406 fprintf (f, "%ld\n", i);
35410 unsigned long int i = ulongval ();
35411 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35413 fprintf (f, "%lu\n", i);
35415 return ferror (f) || fclose (f) != 0;
35421 rm -f conftest$ac_exeext
35422 if { (ac_try="$ac_link"
35423 case "(($ac_try" in
35424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35425 *) ac_try_echo=$ac_try;;
35427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35428 (eval "$ac_link") 2>&5
35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35432 { (case "(($ac_try" in
35433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35434 *) ac_try_echo=$ac_try;;
35436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35437 (eval "$ac_try") 2>&5
35439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35440 (exit $ac_status); }; }; then
35441 ac_cv_sizeof_wchar_t=`cat conftest.val`
35443 echo "$as_me: program exited with status $ac_status" >&5
35444 echo "$as_me: failed program was:" >&5
35445 sed 's/^/| /' conftest.$ac_ext >&5
35447 ( exit $ac_status )
35448 if test "$ac_cv_type_wchar_t" = yes; then
35449 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35450 See \`config.log' for more details." >&5
35451 echo "$as_me: error: cannot compute sizeof (wchar_t)
35452 See \`config.log' for more details." >&2;}
35453 { (exit 77); exit 77; }; }
35455 ac_cv_sizeof_wchar_t=0
35458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35462 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35463 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35467 cat >>confdefs.h <<_ACEOF
35468 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35473 if test "$ac_cv_sizeof_int" -lt 4 ; then
35474 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35475 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35478 cat >>confdefs.h <<\_ACEOF
35479 #define LBER_INT_T long
35484 cat >>confdefs.h <<\_ACEOF
35485 #define LBER_INT_T int
35491 cat >>confdefs.h <<\_ACEOF
35492 #define LBER_LEN_T long
35496 cat >>confdefs.h <<\_ACEOF
35497 #define LBER_SOCKET_T int
35501 cat >>confdefs.h <<\_ACEOF
35502 #define LBER_TAG_T long
35506 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35507 if test $ac_cv_sizeof_long_long -gt 4 ; then
35508 ol_with_mp=longlong
35510 cat >>confdefs.h <<\_ACEOF
35511 #define USE_MP_LONG_LONG 1
35514 elif test $ol_with_mp = longlong ; then
35515 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35516 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35517 { (exit 1); exit 1; }; }
35520 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35521 if test $ac_cv_sizeof_long -gt 4 ; then
35524 cat >>confdefs.h <<\_ACEOF
35525 #define USE_MP_LONG 1
35528 elif test $ol_with_mp = long ; then
35529 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35530 echo "$as_me: error: long unusable for multiple precision" >&2;}
35531 { (exit 1); exit 1; }; }
35534 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35536 for ac_header in openssl/bn.h
35538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35543 echo $ECHO_N "(cached) $ECHO_C" >&6
35545 ac_res=`eval echo '${'$as_ac_Header'}'`
35546 { echo "$as_me:$LINENO: result: $ac_res" >&5
35547 echo "${ECHO_T}$ac_res" >&6; }
35549 # Is the header compilable?
35550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35552 cat >conftest.$ac_ext <<_ACEOF
35555 cat confdefs.h >>conftest.$ac_ext
35556 cat >>conftest.$ac_ext <<_ACEOF
35557 /* end confdefs.h. */
35558 $ac_includes_default
35559 #include <$ac_header>
35561 rm -f conftest.$ac_objext
35562 if { (ac_try="$ac_compile"
35563 case "(($ac_try" in
35564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35565 *) ac_try_echo=$ac_try;;
35567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35568 (eval "$ac_compile") 2>conftest.er1
35570 grep -v '^ *+' conftest.er1 >conftest.err
35572 cat conftest.err >&5
35573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574 (exit $ac_status); } && {
35575 test -z "$ac_c_werror_flag" ||
35576 test ! -s conftest.err
35577 } && test -s conftest.$ac_objext; then
35578 ac_header_compiler=yes
35580 echo "$as_me: failed program was:" >&5
35581 sed 's/^/| /' conftest.$ac_ext >&5
35583 ac_header_compiler=no
35586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35588 echo "${ECHO_T}$ac_header_compiler" >&6; }
35590 # Is the header present?
35591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35593 cat >conftest.$ac_ext <<_ACEOF
35596 cat confdefs.h >>conftest.$ac_ext
35597 cat >>conftest.$ac_ext <<_ACEOF
35598 /* end confdefs.h. */
35599 #include <$ac_header>
35601 if { (ac_try="$ac_cpp conftest.$ac_ext"
35602 case "(($ac_try" in
35603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604 *) ac_try_echo=$ac_try;;
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35609 grep -v '^ *+' conftest.er1 >conftest.err
35611 cat conftest.err >&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } >/dev/null && {
35614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35615 test ! -s conftest.err
35617 ac_header_preproc=yes
35619 echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35622 ac_header_preproc=no
35625 rm -f conftest.err conftest.$ac_ext
35626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35627 echo "${ECHO_T}$ac_header_preproc" >&6; }
35629 # So? What about this header?
35630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35636 ac_header_preproc=yes
35639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35652 ## --------------------------------------------- ##
35653 ## Report this to <http://www.openldap.org/its/> ##
35654 ## --------------------------------------------- ##
35656 ) | sed "s/^/$as_me: WARNING: /" >&2
35659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35662 echo $ECHO_N "(cached) $ECHO_C" >&6
35664 eval "$as_ac_Header=\$ac_header_preproc"
35666 ac_res=`eval echo '${'$as_ac_Header'}'`
35667 { echo "$as_me:$LINENO: result: $ac_res" >&5
35668 echo "${ECHO_T}$ac_res" >&6; }
35671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35672 cat >>confdefs.h <<_ACEOF
35673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35681 for ac_header in openssl/crypto.h
35683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35688 echo $ECHO_N "(cached) $ECHO_C" >&6
35690 ac_res=`eval echo '${'$as_ac_Header'}'`
35691 { echo "$as_me:$LINENO: result: $ac_res" >&5
35692 echo "${ECHO_T}$ac_res" >&6; }
35694 # Is the header compilable?
35695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35697 cat >conftest.$ac_ext <<_ACEOF
35700 cat confdefs.h >>conftest.$ac_ext
35701 cat >>conftest.$ac_ext <<_ACEOF
35702 /* end confdefs.h. */
35703 $ac_includes_default
35704 #include <$ac_header>
35706 rm -f conftest.$ac_objext
35707 if { (ac_try="$ac_compile"
35708 case "(($ac_try" in
35709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35710 *) ac_try_echo=$ac_try;;
35712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35713 (eval "$ac_compile") 2>conftest.er1
35715 grep -v '^ *+' conftest.er1 >conftest.err
35717 cat conftest.err >&5
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); } && {
35720 test -z "$ac_c_werror_flag" ||
35721 test ! -s conftest.err
35722 } && test -s conftest.$ac_objext; then
35723 ac_header_compiler=yes
35725 echo "$as_me: failed program was:" >&5
35726 sed 's/^/| /' conftest.$ac_ext >&5
35728 ac_header_compiler=no
35731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35733 echo "${ECHO_T}$ac_header_compiler" >&6; }
35735 # Is the header present?
35736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35738 cat >conftest.$ac_ext <<_ACEOF
35741 cat confdefs.h >>conftest.$ac_ext
35742 cat >>conftest.$ac_ext <<_ACEOF
35743 /* end confdefs.h. */
35744 #include <$ac_header>
35746 if { (ac_try="$ac_cpp conftest.$ac_ext"
35747 case "(($ac_try" in
35748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35749 *) ac_try_echo=$ac_try;;
35751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35754 grep -v '^ *+' conftest.er1 >conftest.err
35756 cat conftest.err >&5
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); } >/dev/null && {
35759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35760 test ! -s conftest.err
35762 ac_header_preproc=yes
35764 echo "$as_me: failed program was:" >&5
35765 sed 's/^/| /' conftest.$ac_ext >&5
35767 ac_header_preproc=no
35770 rm -f conftest.err conftest.$ac_ext
35771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35772 echo "${ECHO_T}$ac_header_preproc" >&6; }
35774 # So? What about this header?
35775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35781 ac_header_preproc=yes
35784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35797 ## --------------------------------------------- ##
35798 ## Report this to <http://www.openldap.org/its/> ##
35799 ## --------------------------------------------- ##
35801 ) | sed "s/^/$as_me: WARNING: /" >&2
35804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35807 echo $ECHO_N "(cached) $ECHO_C" >&6
35809 eval "$as_ac_Header=\$ac_header_preproc"
35811 ac_res=`eval echo '${'$as_ac_Header'}'`
35812 { echo "$as_me:$LINENO: result: $ac_res" >&5
35813 echo "${ECHO_T}$ac_res" >&6; }
35816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35817 cat >>confdefs.h <<_ACEOF
35818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35825 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35826 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35827 test "$ol_with_tls" = "found" ; then
35830 cat >>confdefs.h <<\_ACEOF
35831 #define USE_MP_BIGNUM 1
35834 elif test $ol_with_mp = bignum ; then
35835 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35836 echo "$as_me: error: bignum not available" >&2;}
35837 { (exit 1); exit 1; }; }
35840 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35842 for ac_header in gmp.h
35844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35849 echo $ECHO_N "(cached) $ECHO_C" >&6
35851 ac_res=`eval echo '${'$as_ac_Header'}'`
35852 { echo "$as_me:$LINENO: result: $ac_res" >&5
35853 echo "${ECHO_T}$ac_res" >&6; }
35855 # Is the header compilable?
35856 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35857 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35858 cat >conftest.$ac_ext <<_ACEOF
35861 cat confdefs.h >>conftest.$ac_ext
35862 cat >>conftest.$ac_ext <<_ACEOF
35863 /* end confdefs.h. */
35864 $ac_includes_default
35865 #include <$ac_header>
35867 rm -f conftest.$ac_objext
35868 if { (ac_try="$ac_compile"
35869 case "(($ac_try" in
35870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35871 *) ac_try_echo=$ac_try;;
35873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35874 (eval "$ac_compile") 2>conftest.er1
35876 grep -v '^ *+' conftest.er1 >conftest.err
35878 cat conftest.err >&5
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); } && {
35881 test -z "$ac_c_werror_flag" ||
35882 test ! -s conftest.err
35883 } && test -s conftest.$ac_objext; then
35884 ac_header_compiler=yes
35886 echo "$as_me: failed program was:" >&5
35887 sed 's/^/| /' conftest.$ac_ext >&5
35889 ac_header_compiler=no
35892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35894 echo "${ECHO_T}$ac_header_compiler" >&6; }
35896 # Is the header present?
35897 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35898 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35899 cat >conftest.$ac_ext <<_ACEOF
35902 cat confdefs.h >>conftest.$ac_ext
35903 cat >>conftest.$ac_ext <<_ACEOF
35904 /* end confdefs.h. */
35905 #include <$ac_header>
35907 if { (ac_try="$ac_cpp conftest.$ac_ext"
35908 case "(($ac_try" in
35909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35910 *) ac_try_echo=$ac_try;;
35912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35915 grep -v '^ *+' conftest.er1 >conftest.err
35917 cat conftest.err >&5
35918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35919 (exit $ac_status); } >/dev/null && {
35920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35921 test ! -s conftest.err
35923 ac_header_preproc=yes
35925 echo "$as_me: failed program was:" >&5
35926 sed 's/^/| /' conftest.$ac_ext >&5
35928 ac_header_preproc=no
35931 rm -f conftest.err conftest.$ac_ext
35932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35933 echo "${ECHO_T}$ac_header_preproc" >&6; }
35935 # So? What about this header?
35936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35942 ac_header_preproc=yes
35945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35958 ## --------------------------------------------- ##
35959 ## Report this to <http://www.openldap.org/its/> ##
35960 ## --------------------------------------------- ##
35962 ) | sed "s/^/$as_me: WARNING: /" >&2
35965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35968 echo $ECHO_N "(cached) $ECHO_C" >&6
35970 eval "$as_ac_Header=\$ac_header_preproc"
35972 ac_res=`eval echo '${'$as_ac_Header'}'`
35973 { echo "$as_me:$LINENO: result: $ac_res" >&5
35974 echo "${ECHO_T}$ac_res" >&6; }
35977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35978 cat >>confdefs.h <<_ACEOF
35979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35987 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35988 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35989 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35990 echo $ECHO_N "(cached) $ECHO_C" >&6
35992 ac_check_lib_save_LIBS=$LIBS
35994 cat >conftest.$ac_ext <<_ACEOF
35997 cat confdefs.h >>conftest.$ac_ext
35998 cat >>conftest.$ac_ext <<_ACEOF
35999 /* end confdefs.h. */
36001 /* Override any GCC internal prototype to avoid an error.
36002 Use char because int might match the return type of a GCC
36003 builtin and then its argument prototype would still apply. */
36007 char __gmpz_add_ui ();
36011 return __gmpz_add_ui ();
36016 rm -f conftest.$ac_objext conftest$ac_exeext
36017 if { (ac_try="$ac_link"
36018 case "(($ac_try" in
36019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36020 *) ac_try_echo=$ac_try;;
36022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36023 (eval "$ac_link") 2>conftest.er1
36025 grep -v '^ *+' conftest.er1 >conftest.err
36027 cat conftest.err >&5
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); } && {
36030 test -z "$ac_c_werror_flag" ||
36031 test ! -s conftest.err
36032 } && test -s conftest$ac_exeext &&
36033 $as_test_x conftest$ac_exeext; then
36034 ac_cv_lib_gmp___gmpz_add_ui=yes
36036 echo "$as_me: failed program was:" >&5
36037 sed 's/^/| /' conftest.$ac_ext >&5
36039 ac_cv_lib_gmp___gmpz_add_ui=no
36042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36043 conftest$ac_exeext conftest.$ac_ext
36044 LIBS=$ac_check_lib_save_LIBS
36046 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36047 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36048 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36049 cat >>confdefs.h <<_ACEOF
36050 #define HAVE_LIBGMP 1
36057 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36059 cat >>confdefs.h <<\_ACEOF
36060 #define USE_MP_GMP 1
36064 elif test $ol_with_mp = gmp ; then
36065 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36066 echo "$as_me: error: gmp not available" >&2;}
36067 { (exit 1); exit 1; }; }
36070 if test $ol_with_mp = auto ; then
36074 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36075 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36076 if test "${ac_cv_func_memcmp_working+set}" = set; then
36077 echo $ECHO_N "(cached) $ECHO_C" >&6
36079 if test "$cross_compiling" = yes; then
36080 ac_cv_func_memcmp_working=no
36082 cat >conftest.$ac_ext <<_ACEOF
36085 cat confdefs.h >>conftest.$ac_ext
36086 cat >>conftest.$ac_ext <<_ACEOF
36087 /* end confdefs.h. */
36088 $ac_includes_default
36093 /* Some versions of memcmp are not 8-bit clean. */
36094 char c0 = '\100', c1 = '\200', c2 = '\201';
36095 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36098 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36099 or more and with at least one buffer not starting on a 4-byte boundary.
36100 William Lewis provided this test program. */
36105 for (i = 0; i < 4; i++)
36109 strcpy (a, "--------01111111");
36110 strcpy (b, "--------10000000");
36111 if (memcmp (a, b, 16) >= 0)
36121 rm -f conftest$ac_exeext
36122 if { (ac_try="$ac_link"
36123 case "(($ac_try" in
36124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36125 *) ac_try_echo=$ac_try;;
36127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36128 (eval "$ac_link") 2>&5
36130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36132 { (case "(($ac_try" in
36133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36134 *) ac_try_echo=$ac_try;;
36136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36137 (eval "$ac_try") 2>&5
36139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36140 (exit $ac_status); }; }; then
36141 ac_cv_func_memcmp_working=yes
36143 echo "$as_me: program exited with status $ac_status" >&5
36144 echo "$as_me: failed program was:" >&5
36145 sed 's/^/| /' conftest.$ac_ext >&5
36147 ( exit $ac_status )
36148 ac_cv_func_memcmp_working=no
36150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36155 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36156 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36157 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36158 *" memcmp.$ac_objext "* ) ;;
36159 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36165 if test $ac_cv_func_memcmp_working = no ; then
36167 cat >>confdefs.h <<\_ACEOF
36168 #define NEED_MEMCMP_REPLACEMENT 1
36174 for ac_func in strftime
36176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36180 echo $ECHO_N "(cached) $ECHO_C" >&6
36182 cat >conftest.$ac_ext <<_ACEOF
36185 cat confdefs.h >>conftest.$ac_ext
36186 cat >>conftest.$ac_ext <<_ACEOF
36187 /* end confdefs.h. */
36188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36190 #define $ac_func innocuous_$ac_func
36192 /* System header to define __stub macros and hopefully few prototypes,
36193 which can conflict with char $ac_func (); below.
36194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36195 <limits.h> exists even on freestanding compilers. */
36198 # include <limits.h>
36200 # include <assert.h>
36205 /* Override any GCC internal prototype to avoid an error.
36206 Use char because int might match the return type of a GCC
36207 builtin and then its argument prototype would still apply. */
36212 /* The GNU C library defines this for functions which it implements
36213 to always fail with ENOSYS. Some functions are actually named
36214 something starting with __ and the normal name is an alias. */
36215 #if defined __stub_$ac_func || defined __stub___$ac_func
36222 return $ac_func ();
36227 rm -f conftest.$ac_objext conftest$ac_exeext
36228 if { (ac_try="$ac_link"
36229 case "(($ac_try" in
36230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36231 *) ac_try_echo=$ac_try;;
36233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36234 (eval "$ac_link") 2>conftest.er1
36236 grep -v '^ *+' conftest.er1 >conftest.err
36238 cat conftest.err >&5
36239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36240 (exit $ac_status); } && {
36241 test -z "$ac_c_werror_flag" ||
36242 test ! -s conftest.err
36243 } && test -s conftest$ac_exeext &&
36244 $as_test_x conftest$ac_exeext; then
36245 eval "$as_ac_var=yes"
36247 echo "$as_me: failed program was:" >&5
36248 sed 's/^/| /' conftest.$ac_ext >&5
36250 eval "$as_ac_var=no"
36253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36254 conftest$ac_exeext conftest.$ac_ext
36256 ac_res=`eval echo '${'$as_ac_var'}'`
36257 { echo "$as_me:$LINENO: result: $ac_res" >&5
36258 echo "${ECHO_T}$ac_res" >&6; }
36259 if test `eval echo '${'$as_ac_var'}'` = yes; then
36260 cat >>confdefs.h <<_ACEOF
36261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36265 # strftime is in -lintl on SCO UNIX.
36266 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36267 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36268 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36269 echo $ECHO_N "(cached) $ECHO_C" >&6
36271 ac_check_lib_save_LIBS=$LIBS
36272 LIBS="-lintl $LIBS"
36273 cat >conftest.$ac_ext <<_ACEOF
36276 cat confdefs.h >>conftest.$ac_ext
36277 cat >>conftest.$ac_ext <<_ACEOF
36278 /* end confdefs.h. */
36280 /* Override any GCC internal prototype to avoid an error.
36281 Use char because int might match the return type of a GCC
36282 builtin and then its argument prototype would still apply. */
36290 return strftime ();
36295 rm -f conftest.$ac_objext conftest$ac_exeext
36296 if { (ac_try="$ac_link"
36297 case "(($ac_try" in
36298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36299 *) ac_try_echo=$ac_try;;
36301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36302 (eval "$ac_link") 2>conftest.er1
36304 grep -v '^ *+' conftest.er1 >conftest.err
36306 cat conftest.err >&5
36307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308 (exit $ac_status); } && {
36309 test -z "$ac_c_werror_flag" ||
36310 test ! -s conftest.err
36311 } && test -s conftest$ac_exeext &&
36312 $as_test_x conftest$ac_exeext; then
36313 ac_cv_lib_intl_strftime=yes
36315 echo "$as_me: failed program was:" >&5
36316 sed 's/^/| /' conftest.$ac_ext >&5
36318 ac_cv_lib_intl_strftime=no
36321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36322 conftest$ac_exeext conftest.$ac_ext
36323 LIBS=$ac_check_lib_save_LIBS
36325 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36326 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36327 if test $ac_cv_lib_intl_strftime = yes; then
36328 cat >>confdefs.h <<\_ACEOF
36329 #define HAVE_STRFTIME 1
36332 LIBS="-lintl $LIBS"
36339 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36340 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36341 if test "${ol_cv_func_inet_aton+set}" = set; then
36342 echo $ECHO_N "(cached) $ECHO_C" >&6
36344 cat >conftest.$ac_ext <<_ACEOF
36347 cat confdefs.h >>conftest.$ac_ext
36348 cat >>conftest.$ac_ext <<_ACEOF
36349 /* end confdefs.h. */
36351 #ifdef HAVE_SYS_TYPES_H
36352 # include <sys/types.h>
36354 #ifdef HAVE_SYS_SOCKET_H
36355 # include <sys/socket.h>
36356 # ifdef HAVE_SYS_SELECT_H
36357 # include <sys/select.h>
36359 # include <netinet/in.h>
36360 # ifdef HAVE_ARPA_INET_H
36361 # include <arpa/inet.h>
36369 int rc = inet_aton( "255.255.255.255", &in );
36374 rm -f conftest.$ac_objext conftest$ac_exeext
36375 if { (ac_try="$ac_link"
36376 case "(($ac_try" in
36377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36378 *) ac_try_echo=$ac_try;;
36380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36381 (eval "$ac_link") 2>conftest.er1
36383 grep -v '^ *+' conftest.er1 >conftest.err
36385 cat conftest.err >&5
36386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36387 (exit $ac_status); } && {
36388 test -z "$ac_c_werror_flag" ||
36389 test ! -s conftest.err
36390 } && test -s conftest$ac_exeext &&
36391 $as_test_x conftest$ac_exeext; then
36392 ol_cv_func_inet_aton=yes
36394 echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36397 ol_cv_func_inet_aton=no
36400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36401 conftest$ac_exeext conftest.$ac_ext
36403 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36404 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36405 if test $ol_cv_func_inet_aton != no; then
36407 cat >>confdefs.h <<\_ACEOF
36408 #define HAVE_INET_ATON 1
36414 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36415 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36416 if test "${ac_cv_func__spawnlp+set}" = set; then
36417 echo $ECHO_N "(cached) $ECHO_C" >&6
36419 cat >conftest.$ac_ext <<_ACEOF
36422 cat confdefs.h >>conftest.$ac_ext
36423 cat >>conftest.$ac_ext <<_ACEOF
36424 /* end confdefs.h. */
36425 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36427 #define _spawnlp innocuous__spawnlp
36429 /* System header to define __stub macros and hopefully few prototypes,
36430 which can conflict with char _spawnlp (); below.
36431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36432 <limits.h> exists even on freestanding compilers. */
36435 # include <limits.h>
36437 # include <assert.h>
36442 /* Override any GCC internal prototype to avoid an error.
36443 Use char because int might match the return type of a GCC
36444 builtin and then its argument prototype would still apply. */
36449 /* The GNU C library defines this for functions which it implements
36450 to always fail with ENOSYS. Some functions are actually named
36451 something starting with __ and the normal name is an alias. */
36452 #if defined __stub__spawnlp || defined __stub____spawnlp
36459 return _spawnlp ();
36464 rm -f conftest.$ac_objext conftest$ac_exeext
36465 if { (ac_try="$ac_link"
36466 case "(($ac_try" in
36467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36468 *) ac_try_echo=$ac_try;;
36470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36471 (eval "$ac_link") 2>conftest.er1
36473 grep -v '^ *+' conftest.er1 >conftest.err
36475 cat conftest.err >&5
36476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36477 (exit $ac_status); } && {
36478 test -z "$ac_c_werror_flag" ||
36479 test ! -s conftest.err
36480 } && test -s conftest$ac_exeext &&
36481 $as_test_x conftest$ac_exeext; then
36482 ac_cv_func__spawnlp=yes
36484 echo "$as_me: failed program was:" >&5
36485 sed 's/^/| /' conftest.$ac_ext >&5
36487 ac_cv_func__spawnlp=no
36490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36491 conftest$ac_exeext conftest.$ac_ext
36493 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36494 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36495 if test $ac_cv_func__spawnlp = yes; then
36497 cat >>confdefs.h <<\_ACEOF
36498 #define HAVE_SPAWNLP 1
36504 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36505 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36506 if test "${ac_cv_func__snprintf+set}" = set; then
36507 echo $ECHO_N "(cached) $ECHO_C" >&6
36509 cat >conftest.$ac_ext <<_ACEOF
36512 cat confdefs.h >>conftest.$ac_ext
36513 cat >>conftest.$ac_ext <<_ACEOF
36514 /* end confdefs.h. */
36515 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36517 #define _snprintf innocuous__snprintf
36519 /* System header to define __stub macros and hopefully few prototypes,
36520 which can conflict with char _snprintf (); below.
36521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36522 <limits.h> exists even on freestanding compilers. */
36525 # include <limits.h>
36527 # include <assert.h>
36532 /* Override any GCC internal prototype to avoid an error.
36533 Use char because int might match the return type of a GCC
36534 builtin and then its argument prototype would still apply. */
36539 /* The GNU C library defines this for functions which it implements
36540 to always fail with ENOSYS. Some functions are actually named
36541 something starting with __ and the normal name is an alias. */
36542 #if defined __stub__snprintf || defined __stub____snprintf
36549 return _snprintf ();
36554 rm -f conftest.$ac_objext conftest$ac_exeext
36555 if { (ac_try="$ac_link"
36556 case "(($ac_try" in
36557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36558 *) ac_try_echo=$ac_try;;
36560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36561 (eval "$ac_link") 2>conftest.er1
36563 grep -v '^ *+' conftest.er1 >conftest.err
36565 cat conftest.err >&5
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); } && {
36568 test -z "$ac_c_werror_flag" ||
36569 test ! -s conftest.err
36570 } && test -s conftest$ac_exeext &&
36571 $as_test_x conftest$ac_exeext; then
36572 ac_cv_func__snprintf=yes
36574 echo "$as_me: failed program was:" >&5
36575 sed 's/^/| /' conftest.$ac_ext >&5
36577 ac_cv_func__snprintf=no
36580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36581 conftest$ac_exeext conftest.$ac_ext
36583 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36584 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36585 if test $ac_cv_func__snprintf = yes; then
36586 ac_cv_func_snprintf=yes
36588 cat >>confdefs.h <<\_ACEOF
36589 #define snprintf _snprintf
36598 for ac_func in vsnprintf _vsnprintf
36600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36601 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36603 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36604 echo $ECHO_N "(cached) $ECHO_C" >&6
36606 cat >conftest.$ac_ext <<_ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h. */
36612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36614 #define $ac_func innocuous_$ac_func
36616 /* System header to define __stub macros and hopefully few prototypes,
36617 which can conflict with char $ac_func (); below.
36618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36619 <limits.h> exists even on freestanding compilers. */
36622 # include <limits.h>
36624 # include <assert.h>
36629 /* Override any GCC internal prototype to avoid an error.
36630 Use char because int might match the return type of a GCC
36631 builtin and then its argument prototype would still apply. */
36636 /* The GNU C library defines this for functions which it implements
36637 to always fail with ENOSYS. Some functions are actually named
36638 something starting with __ and the normal name is an alias. */
36639 #if defined __stub_$ac_func || defined __stub___$ac_func
36646 return $ac_func ();
36651 rm -f conftest.$ac_objext conftest$ac_exeext
36652 if { (ac_try="$ac_link"
36653 case "(($ac_try" in
36654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36655 *) ac_try_echo=$ac_try;;
36657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36658 (eval "$ac_link") 2>conftest.er1
36660 grep -v '^ *+' conftest.er1 >conftest.err
36662 cat conftest.err >&5
36663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36664 (exit $ac_status); } && {
36665 test -z "$ac_c_werror_flag" ||
36666 test ! -s conftest.err
36667 } && test -s conftest$ac_exeext &&
36668 $as_test_x conftest$ac_exeext; then
36669 eval "$as_ac_var=yes"
36671 echo "$as_me: failed program was:" >&5
36672 sed 's/^/| /' conftest.$ac_ext >&5
36674 eval "$as_ac_var=no"
36677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36678 conftest$ac_exeext conftest.$ac_ext
36680 ac_res=`eval echo '${'$as_ac_var'}'`
36681 { echo "$as_me:$LINENO: result: $ac_res" >&5
36682 echo "${ECHO_T}$ac_res" >&6; }
36683 if test `eval echo '${'$as_ac_var'}'` = yes; then
36684 cat >>confdefs.h <<_ACEOF
36685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36692 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36693 ac_cv_func_vsnprintf=yes
36695 cat >>confdefs.h <<\_ACEOF
36696 #define vsnprintf _vsnprintf
36702 for ac_func in vprintf
36704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36708 echo $ECHO_N "(cached) $ECHO_C" >&6
36710 cat >conftest.$ac_ext <<_ACEOF
36713 cat confdefs.h >>conftest.$ac_ext
36714 cat >>conftest.$ac_ext <<_ACEOF
36715 /* end confdefs.h. */
36716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36718 #define $ac_func innocuous_$ac_func
36720 /* System header to define __stub macros and hopefully few prototypes,
36721 which can conflict with char $ac_func (); below.
36722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36723 <limits.h> exists even on freestanding compilers. */
36726 # include <limits.h>
36728 # include <assert.h>
36733 /* Override any GCC internal prototype to avoid an error.
36734 Use char because int might match the return type of a GCC
36735 builtin and then its argument prototype would still apply. */
36740 /* The GNU C library defines this for functions which it implements
36741 to always fail with ENOSYS. Some functions are actually named
36742 something starting with __ and the normal name is an alias. */
36743 #if defined __stub_$ac_func || defined __stub___$ac_func
36750 return $ac_func ();
36755 rm -f conftest.$ac_objext conftest$ac_exeext
36756 if { (ac_try="$ac_link"
36757 case "(($ac_try" in
36758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36759 *) ac_try_echo=$ac_try;;
36761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36762 (eval "$ac_link") 2>conftest.er1
36764 grep -v '^ *+' conftest.er1 >conftest.err
36766 cat conftest.err >&5
36767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36768 (exit $ac_status); } && {
36769 test -z "$ac_c_werror_flag" ||
36770 test ! -s conftest.err
36771 } && test -s conftest$ac_exeext &&
36772 $as_test_x conftest$ac_exeext; then
36773 eval "$as_ac_var=yes"
36775 echo "$as_me: failed program was:" >&5
36776 sed 's/^/| /' conftest.$ac_ext >&5
36778 eval "$as_ac_var=no"
36781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36782 conftest$ac_exeext conftest.$ac_ext
36784 ac_res=`eval echo '${'$as_ac_var'}'`
36785 { echo "$as_me:$LINENO: result: $ac_res" >&5
36786 echo "${ECHO_T}$ac_res" >&6; }
36787 if test `eval echo '${'$as_ac_var'}'` = yes; then
36788 cat >>confdefs.h <<_ACEOF
36789 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36792 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36793 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36794 if test "${ac_cv_func__doprnt+set}" = set; then
36795 echo $ECHO_N "(cached) $ECHO_C" >&6
36797 cat >conftest.$ac_ext <<_ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h. */
36803 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36805 #define _doprnt innocuous__doprnt
36807 /* System header to define __stub macros and hopefully few prototypes,
36808 which can conflict with char _doprnt (); below.
36809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36810 <limits.h> exists even on freestanding compilers. */
36813 # include <limits.h>
36815 # include <assert.h>
36820 /* Override any GCC internal prototype to avoid an error.
36821 Use char because int might match the return type of a GCC
36822 builtin and then its argument prototype would still apply. */
36827 /* The GNU C library defines this for functions which it implements
36828 to always fail with ENOSYS. Some functions are actually named
36829 something starting with __ and the normal name is an alias. */
36830 #if defined __stub__doprnt || defined __stub____doprnt
36842 rm -f conftest.$ac_objext conftest$ac_exeext
36843 if { (ac_try="$ac_link"
36844 case "(($ac_try" in
36845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36846 *) ac_try_echo=$ac_try;;
36848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36849 (eval "$ac_link") 2>conftest.er1
36851 grep -v '^ *+' conftest.er1 >conftest.err
36853 cat conftest.err >&5
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); } && {
36856 test -z "$ac_c_werror_flag" ||
36857 test ! -s conftest.err
36858 } && test -s conftest$ac_exeext &&
36859 $as_test_x conftest$ac_exeext; then
36860 ac_cv_func__doprnt=yes
36862 echo "$as_me: failed program was:" >&5
36863 sed 's/^/| /' conftest.$ac_ext >&5
36865 ac_cv_func__doprnt=no
36868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36869 conftest$ac_exeext conftest.$ac_ext
36871 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36872 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36873 if test $ac_cv_func__doprnt = yes; then
36875 cat >>confdefs.h <<\_ACEOF
36876 #define HAVE_DOPRNT 1
36886 if test $ac_cv_func_vprintf = yes ; then
36889 for ac_func in snprintf vsnprintf
36891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36895 echo $ECHO_N "(cached) $ECHO_C" >&6
36897 cat >conftest.$ac_ext <<_ACEOF
36900 cat confdefs.h >>conftest.$ac_ext
36901 cat >>conftest.$ac_ext <<_ACEOF
36902 /* end confdefs.h. */
36903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36905 #define $ac_func innocuous_$ac_func
36907 /* System header to define __stub macros and hopefully few prototypes,
36908 which can conflict with char $ac_func (); below.
36909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36910 <limits.h> exists even on freestanding compilers. */
36913 # include <limits.h>
36915 # include <assert.h>
36920 /* Override any GCC internal prototype to avoid an error.
36921 Use char because int might match the return type of a GCC
36922 builtin and then its argument prototype would still apply. */
36927 /* The GNU C library defines this for functions which it implements
36928 to always fail with ENOSYS. Some functions are actually named
36929 something starting with __ and the normal name is an alias. */
36930 #if defined __stub_$ac_func || defined __stub___$ac_func
36937 return $ac_func ();
36942 rm -f conftest.$ac_objext conftest$ac_exeext
36943 if { (ac_try="$ac_link"
36944 case "(($ac_try" in
36945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36946 *) ac_try_echo=$ac_try;;
36948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36949 (eval "$ac_link") 2>conftest.er1
36951 grep -v '^ *+' conftest.er1 >conftest.err
36953 cat conftest.err >&5
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); } && {
36956 test -z "$ac_c_werror_flag" ||
36957 test ! -s conftest.err
36958 } && test -s conftest$ac_exeext &&
36959 $as_test_x conftest$ac_exeext; then
36960 eval "$as_ac_var=yes"
36962 echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36965 eval "$as_ac_var=no"
36968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36969 conftest$ac_exeext conftest.$ac_ext
36971 ac_res=`eval echo '${'$as_ac_var'}'`
36972 { echo "$as_me:$LINENO: result: $ac_res" >&5
36973 echo "${ECHO_T}$ac_res" >&6; }
36974 if test `eval echo '${'$as_ac_var'}'` = yes; then
36975 cat >>confdefs.h <<_ACEOF
36976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37098 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37101 echo $ECHO_N "(cached) $ECHO_C" >&6
37103 cat >conftest.$ac_ext <<_ACEOF
37106 cat confdefs.h >>conftest.$ac_ext
37107 cat >>conftest.$ac_ext <<_ACEOF
37108 /* end confdefs.h. */
37109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37111 #define $ac_func innocuous_$ac_func
37113 /* System header to define __stub macros and hopefully few prototypes,
37114 which can conflict with char $ac_func (); below.
37115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37116 <limits.h> exists even on freestanding compilers. */
37119 # include <limits.h>
37121 # include <assert.h>
37126 /* Override any GCC internal prototype to avoid an error.
37127 Use char because int might match the return type of a GCC
37128 builtin and then its argument prototype would still apply. */
37133 /* The GNU C library defines this for functions which it implements
37134 to always fail with ENOSYS. Some functions are actually named
37135 something starting with __ and the normal name is an alias. */
37136 #if defined __stub_$ac_func || defined __stub___$ac_func
37143 return $ac_func ();
37148 rm -f conftest.$ac_objext conftest$ac_exeext
37149 if { (ac_try="$ac_link"
37150 case "(($ac_try" in
37151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37152 *) ac_try_echo=$ac_try;;
37154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37155 (eval "$ac_link") 2>conftest.er1
37157 grep -v '^ *+' conftest.er1 >conftest.err
37159 cat conftest.err >&5
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); } && {
37162 test -z "$ac_c_werror_flag" ||
37163 test ! -s conftest.err
37164 } && test -s conftest$ac_exeext &&
37165 $as_test_x conftest$ac_exeext; then
37166 eval "$as_ac_var=yes"
37168 echo "$as_me: failed program was:" >&5
37169 sed 's/^/| /' conftest.$ac_ext >&5
37171 eval "$as_ac_var=no"
37174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37175 conftest$ac_exeext conftest.$ac_ext
37177 ac_res=`eval echo '${'$as_ac_var'}'`
37178 { echo "$as_me:$LINENO: result: $ac_res" >&5
37179 echo "${ECHO_T}$ac_res" >&6; }
37180 if test `eval echo '${'$as_ac_var'}'` = yes; then
37181 cat >>confdefs.h <<_ACEOF
37182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37191 for ac_func in getopt getpeereid
37193 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37194 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37195 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37196 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37197 echo $ECHO_N "(cached) $ECHO_C" >&6
37199 cat >conftest.$ac_ext <<_ACEOF
37202 cat confdefs.h >>conftest.$ac_ext
37203 cat >>conftest.$ac_ext <<_ACEOF
37204 /* end confdefs.h. */
37205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37207 #define $ac_func innocuous_$ac_func
37209 /* System header to define __stub macros and hopefully few prototypes,
37210 which can conflict with char $ac_func (); below.
37211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37212 <limits.h> exists even on freestanding compilers. */
37215 # include <limits.h>
37217 # include <assert.h>
37222 /* Override any GCC internal prototype to avoid an error.
37223 Use char because int might match the return type of a GCC
37224 builtin and then its argument prototype would still apply. */
37229 /* The GNU C library defines this for functions which it implements
37230 to always fail with ENOSYS. Some functions are actually named
37231 something starting with __ and the normal name is an alias. */
37232 #if defined __stub_$ac_func || defined __stub___$ac_func
37239 return $ac_func ();
37244 rm -f conftest.$ac_objext conftest$ac_exeext
37245 if { (ac_try="$ac_link"
37246 case "(($ac_try" in
37247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37248 *) ac_try_echo=$ac_try;;
37250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37251 (eval "$ac_link") 2>conftest.er1
37253 grep -v '^ *+' conftest.er1 >conftest.err
37255 cat conftest.err >&5
37256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37257 (exit $ac_status); } && {
37258 test -z "$ac_c_werror_flag" ||
37259 test ! -s conftest.err
37260 } && test -s conftest$ac_exeext &&
37261 $as_test_x conftest$ac_exeext; then
37262 eval "$as_ac_var=yes"
37264 echo "$as_me: failed program was:" >&5
37265 sed 's/^/| /' conftest.$ac_ext >&5
37267 eval "$as_ac_var=no"
37270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37271 conftest$ac_exeext conftest.$ac_ext
37273 ac_res=`eval echo '${'$as_ac_var'}'`
37274 { echo "$as_me:$LINENO: result: $ac_res" >&5
37275 echo "${ECHO_T}$ac_res" >&6; }
37276 if test `eval echo '${'$as_ac_var'}'` = yes; then
37277 cat >>confdefs.h <<_ACEOF
37278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37282 case " $LIBOBJS " in
37283 *" $ac_func.$ac_objext "* ) ;;
37284 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37293 if test "$ac_cv_func_getopt" != yes; then
37294 LIBSRCS="$LIBSRCS getopt.c"
37297 if test "$ac_cv_func_getpeereid" != yes; then
37299 for ac_func in getpeerucred
37301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37305 echo $ECHO_N "(cached) $ECHO_C" >&6
37307 cat >conftest.$ac_ext <<_ACEOF
37310 cat confdefs.h >>conftest.$ac_ext
37311 cat >>conftest.$ac_ext <<_ACEOF
37312 /* end confdefs.h. */
37313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37315 #define $ac_func innocuous_$ac_func
37317 /* System header to define __stub macros and hopefully few prototypes,
37318 which can conflict with char $ac_func (); below.
37319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37320 <limits.h> exists even on freestanding compilers. */
37323 # include <limits.h>
37325 # include <assert.h>
37330 /* Override any GCC internal prototype to avoid an error.
37331 Use char because int might match the return type of a GCC
37332 builtin and then its argument prototype would still apply. */
37337 /* The GNU C library defines this for functions which it implements
37338 to always fail with ENOSYS. Some functions are actually named
37339 something starting with __ and the normal name is an alias. */
37340 #if defined __stub_$ac_func || defined __stub___$ac_func
37347 return $ac_func ();
37352 rm -f conftest.$ac_objext conftest$ac_exeext
37353 if { (ac_try="$ac_link"
37354 case "(($ac_try" in
37355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37356 *) ac_try_echo=$ac_try;;
37358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37359 (eval "$ac_link") 2>conftest.er1
37361 grep -v '^ *+' conftest.er1 >conftest.err
37363 cat conftest.err >&5
37364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37365 (exit $ac_status); } && {
37366 test -z "$ac_c_werror_flag" ||
37367 test ! -s conftest.err
37368 } && test -s conftest$ac_exeext &&
37369 $as_test_x conftest$ac_exeext; then
37370 eval "$as_ac_var=yes"
37372 echo "$as_me: failed program was:" >&5
37373 sed 's/^/| /' conftest.$ac_ext >&5
37375 eval "$as_ac_var=no"
37378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37379 conftest$ac_exeext conftest.$ac_ext
37381 ac_res=`eval echo '${'$as_ac_var'}'`
37382 { echo "$as_me:$LINENO: result: $ac_res" >&5
37383 echo "${ECHO_T}$ac_res" >&6; }
37384 if test `eval echo '${'$as_ac_var'}'` = yes; then
37385 cat >>confdefs.h <<_ACEOF
37386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37392 if test "$ac_cv_func_getpeerucred" != yes ; then
37393 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37394 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37395 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37396 echo $ECHO_N "(cached) $ECHO_C" >&6
37398 cat >conftest.$ac_ext <<_ACEOF
37401 cat confdefs.h >>conftest.$ac_ext
37402 cat >>conftest.$ac_ext <<_ACEOF
37403 /* end confdefs.h. */
37404 $ac_includes_default
37405 #ifdef HAVE_SYS_SOCKET_H
37406 #include <sys/socket.h>
37412 static struct msghdr ac_aggr;
37413 if (ac_aggr.msg_accrightslen)
37419 rm -f conftest.$ac_objext
37420 if { (ac_try="$ac_compile"
37421 case "(($ac_try" in
37422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37423 *) ac_try_echo=$ac_try;;
37425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37426 (eval "$ac_compile") 2>conftest.er1
37428 grep -v '^ *+' conftest.er1 >conftest.err
37430 cat conftest.err >&5
37431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37432 (exit $ac_status); } && {
37433 test -z "$ac_c_werror_flag" ||
37434 test ! -s conftest.err
37435 } && test -s conftest.$ac_objext; then
37436 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37438 echo "$as_me: failed program was:" >&5
37439 sed 's/^/| /' conftest.$ac_ext >&5
37441 cat >conftest.$ac_ext <<_ACEOF
37444 cat confdefs.h >>conftest.$ac_ext
37445 cat >>conftest.$ac_ext <<_ACEOF
37446 /* end confdefs.h. */
37447 $ac_includes_default
37448 #ifdef HAVE_SYS_SOCKET_H
37449 #include <sys/socket.h>
37455 static struct msghdr ac_aggr;
37456 if (sizeof ac_aggr.msg_accrightslen)
37462 rm -f conftest.$ac_objext
37463 if { (ac_try="$ac_compile"
37464 case "(($ac_try" in
37465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37466 *) ac_try_echo=$ac_try;;
37468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37469 (eval "$ac_compile") 2>conftest.er1
37471 grep -v '^ *+' conftest.er1 >conftest.err
37473 cat conftest.err >&5
37474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37475 (exit $ac_status); } && {
37476 test -z "$ac_c_werror_flag" ||
37477 test ! -s conftest.err
37478 } && test -s conftest.$ac_objext; then
37479 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37481 echo "$as_me: failed program was:" >&5
37482 sed 's/^/| /' conftest.$ac_ext >&5
37484 ac_cv_member_struct_msghdr_msg_accrightslen=no
37487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37492 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37493 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37494 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37496 cat >>confdefs.h <<_ACEOF
37497 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37503 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37504 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37505 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37506 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37507 echo $ECHO_N "(cached) $ECHO_C" >&6
37509 cat >conftest.$ac_ext <<_ACEOF
37512 cat confdefs.h >>conftest.$ac_ext
37513 cat >>conftest.$ac_ext <<_ACEOF
37514 /* end confdefs.h. */
37515 $ac_includes_default
37516 #ifdef HAVE_SYS_SOCKET_H
37517 #include <sys/socket.h>
37523 static struct msghdr ac_aggr;
37524 if (ac_aggr.msg_control)
37530 rm -f conftest.$ac_objext
37531 if { (ac_try="$ac_compile"
37532 case "(($ac_try" in
37533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37534 *) ac_try_echo=$ac_try;;
37536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37537 (eval "$ac_compile") 2>conftest.er1
37539 grep -v '^ *+' conftest.er1 >conftest.err
37541 cat conftest.err >&5
37542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543 (exit $ac_status); } && {
37544 test -z "$ac_c_werror_flag" ||
37545 test ! -s conftest.err
37546 } && test -s conftest.$ac_objext; then
37547 ac_cv_member_struct_msghdr_msg_control=yes
37549 echo "$as_me: failed program was:" >&5
37550 sed 's/^/| /' conftest.$ac_ext >&5
37552 cat >conftest.$ac_ext <<_ACEOF
37555 cat confdefs.h >>conftest.$ac_ext
37556 cat >>conftest.$ac_ext <<_ACEOF
37557 /* end confdefs.h. */
37558 $ac_includes_default
37559 #ifdef HAVE_SYS_SOCKET_H
37560 #include <sys/socket.h>
37566 static struct msghdr ac_aggr;
37567 if (sizeof ac_aggr.msg_control)
37573 rm -f conftest.$ac_objext
37574 if { (ac_try="$ac_compile"
37575 case "(($ac_try" in
37576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37577 *) ac_try_echo=$ac_try;;
37579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37580 (eval "$ac_compile") 2>conftest.er1
37582 grep -v '^ *+' conftest.er1 >conftest.err
37584 cat conftest.err >&5
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); } && {
37587 test -z "$ac_c_werror_flag" ||
37588 test ! -s conftest.err
37589 } && test -s conftest.$ac_objext; then
37590 ac_cv_member_struct_msghdr_msg_control=yes
37592 echo "$as_me: failed program was:" >&5
37593 sed 's/^/| /' conftest.$ac_ext >&5
37595 ac_cv_member_struct_msghdr_msg_control=no
37598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37603 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37604 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37605 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37607 cat >>confdefs.h <<_ACEOF
37608 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37615 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37616 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37617 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37618 echo $ECHO_N "(cached) $ECHO_C" >&6
37620 cat >conftest.$ac_ext <<_ACEOF
37623 cat confdefs.h >>conftest.$ac_ext
37624 cat >>conftest.$ac_ext <<_ACEOF
37625 /* end confdefs.h. */
37626 $ac_includes_default
37630 static struct stat ac_aggr;
37631 if (ac_aggr.st_fstype)
37637 rm -f conftest.$ac_objext
37638 if { (ac_try="$ac_compile"
37639 case "(($ac_try" in
37640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37641 *) ac_try_echo=$ac_try;;
37643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37644 (eval "$ac_compile") 2>conftest.er1
37646 grep -v '^ *+' conftest.er1 >conftest.err
37648 cat conftest.err >&5
37649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37650 (exit $ac_status); } && {
37651 test -z "$ac_c_werror_flag" ||
37652 test ! -s conftest.err
37653 } && test -s conftest.$ac_objext; then
37654 ac_cv_member_struct_stat_st_fstype=yes
37656 echo "$as_me: failed program was:" >&5
37657 sed 's/^/| /' conftest.$ac_ext >&5
37659 cat >conftest.$ac_ext <<_ACEOF
37662 cat confdefs.h >>conftest.$ac_ext
37663 cat >>conftest.$ac_ext <<_ACEOF
37664 /* end confdefs.h. */
37665 $ac_includes_default
37669 static struct stat ac_aggr;
37670 if (sizeof ac_aggr.st_fstype)
37676 rm -f conftest.$ac_objext
37677 if { (ac_try="$ac_compile"
37678 case "(($ac_try" in
37679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37680 *) ac_try_echo=$ac_try;;
37682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37683 (eval "$ac_compile") 2>conftest.er1
37685 grep -v '^ *+' conftest.er1 >conftest.err
37687 cat conftest.err >&5
37688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689 (exit $ac_status); } && {
37690 test -z "$ac_c_werror_flag" ||
37691 test ! -s conftest.err
37692 } && test -s conftest.$ac_objext; then
37693 ac_cv_member_struct_stat_st_fstype=yes
37695 echo "$as_me: failed program was:" >&5
37696 sed 's/^/| /' conftest.$ac_ext >&5
37698 ac_cv_member_struct_stat_st_fstype=no
37701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37706 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37707 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37708 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37710 cat >>confdefs.h <<_ACEOF
37711 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37716 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37717 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37718 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37719 echo $ECHO_N "(cached) $ECHO_C" >&6
37721 cat >conftest.$ac_ext <<_ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h. */
37727 $ac_includes_default
37731 static struct stat ac_aggr;
37732 if (ac_aggr.st_vfstype)
37738 rm -f conftest.$ac_objext
37739 if { (ac_try="$ac_compile"
37740 case "(($ac_try" in
37741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37742 *) ac_try_echo=$ac_try;;
37744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37745 (eval "$ac_compile") 2>conftest.er1
37747 grep -v '^ *+' conftest.er1 >conftest.err
37749 cat conftest.err >&5
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); } && {
37752 test -z "$ac_c_werror_flag" ||
37753 test ! -s conftest.err
37754 } && test -s conftest.$ac_objext; then
37755 ac_cv_member_struct_stat_st_vfstype=yes
37757 echo "$as_me: failed program was:" >&5
37758 sed 's/^/| /' conftest.$ac_ext >&5
37760 cat >conftest.$ac_ext <<_ACEOF
37763 cat confdefs.h >>conftest.$ac_ext
37764 cat >>conftest.$ac_ext <<_ACEOF
37765 /* end confdefs.h. */
37766 $ac_includes_default
37770 static struct stat ac_aggr;
37771 if (sizeof ac_aggr.st_vfstype)
37777 rm -f conftest.$ac_objext
37778 if { (ac_try="$ac_compile"
37779 case "(($ac_try" in
37780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37781 *) ac_try_echo=$ac_try;;
37783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37784 (eval "$ac_compile") 2>conftest.er1
37786 grep -v '^ *+' conftest.er1 >conftest.err
37788 cat conftest.err >&5
37789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37790 (exit $ac_status); } && {
37791 test -z "$ac_c_werror_flag" ||
37792 test ! -s conftest.err
37793 } && test -s conftest.$ac_objext; then
37794 ac_cv_member_struct_stat_st_vfstype=yes
37796 echo "$as_me: failed program was:" >&5
37797 sed 's/^/| /' conftest.$ac_ext >&5
37799 ac_cv_member_struct_stat_st_vfstype=no
37802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37807 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37808 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37809 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37811 cat >>confdefs.h <<_ACEOF
37812 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37818 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37819 cat >conftest.$ac_ext <<_ACEOF
37820 struct stat st; char *ptr=st.st_fstype;
37822 rm -f conftest.$ac_objext
37823 if { (ac_try="$ac_compile"
37824 case "(($ac_try" in
37825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37826 *) ac_try_echo=$ac_try;;
37828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37829 (eval "$ac_compile") 2>conftest.er1
37831 grep -v '^ *+' conftest.er1 >conftest.err
37833 cat conftest.err >&5
37834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37835 (exit $ac_status); } && {
37836 test -z "$ac_c_werror_flag" ||
37837 test ! -s conftest.err
37838 } && test -s conftest.$ac_objext; then
37840 cat >>confdefs.h <<\_ACEOF
37841 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37845 echo "$as_me: failed program was:" >&5
37846 sed 's/^/| /' conftest.$ac_ext >&5
37849 cat >>confdefs.h <<\_ACEOF
37850 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37858 LIBSRCS="$LIBSRCS getpeereid.c"
37861 if test "$ac_cv_func_snprintf" != yes ||
37862 test "$ac_cv_func_vsnprintf" != yes; then
37863 if test "$ac_cv_func_snprintf" != yes; then
37865 cat >>confdefs.h <<\_ACEOF
37866 #define snprintf ber_pvt_snprintf
37870 if test "$ac_cv_func_vsnprintf" != yes; then
37872 cat >>confdefs.h <<\_ACEOF
37873 #define vsnprintf ber_pvt_vsnprintf
37880 if test "$ol_enable_slapi" != no ; then
37882 for ac_header in ltdl.h
37884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37889 echo $ECHO_N "(cached) $ECHO_C" >&6
37891 ac_res=`eval echo '${'$as_ac_Header'}'`
37892 { echo "$as_me:$LINENO: result: $ac_res" >&5
37893 echo "${ECHO_T}$ac_res" >&6; }
37895 # Is the header compilable?
37896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37898 cat >conftest.$ac_ext <<_ACEOF
37901 cat confdefs.h >>conftest.$ac_ext
37902 cat >>conftest.$ac_ext <<_ACEOF
37903 /* end confdefs.h. */
37904 $ac_includes_default
37905 #include <$ac_header>
37907 rm -f conftest.$ac_objext
37908 if { (ac_try="$ac_compile"
37909 case "(($ac_try" in
37910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37911 *) ac_try_echo=$ac_try;;
37913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37914 (eval "$ac_compile") 2>conftest.er1
37916 grep -v '^ *+' conftest.er1 >conftest.err
37918 cat conftest.err >&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); } && {
37921 test -z "$ac_c_werror_flag" ||
37922 test ! -s conftest.err
37923 } && test -s conftest.$ac_objext; then
37924 ac_header_compiler=yes
37926 echo "$as_me: failed program was:" >&5
37927 sed 's/^/| /' conftest.$ac_ext >&5
37929 ac_header_compiler=no
37932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37934 echo "${ECHO_T}$ac_header_compiler" >&6; }
37936 # Is the header present?
37937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37939 cat >conftest.$ac_ext <<_ACEOF
37942 cat confdefs.h >>conftest.$ac_ext
37943 cat >>conftest.$ac_ext <<_ACEOF
37944 /* end confdefs.h. */
37945 #include <$ac_header>
37947 if { (ac_try="$ac_cpp conftest.$ac_ext"
37948 case "(($ac_try" in
37949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950 *) ac_try_echo=$ac_try;;
37952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37955 grep -v '^ *+' conftest.er1 >conftest.err
37957 cat conftest.err >&5
37958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37959 (exit $ac_status); } >/dev/null && {
37960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37961 test ! -s conftest.err
37963 ac_header_preproc=yes
37965 echo "$as_me: failed program was:" >&5
37966 sed 's/^/| /' conftest.$ac_ext >&5
37968 ac_header_preproc=no
37971 rm -f conftest.err conftest.$ac_ext
37972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37973 echo "${ECHO_T}$ac_header_preproc" >&6; }
37975 # So? What about this header?
37976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37982 ac_header_preproc=yes
37985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37998 ## --------------------------------------------- ##
37999 ## Report this to <http://www.openldap.org/its/> ##
38000 ## --------------------------------------------- ##
38002 ) | sed "s/^/$as_me: WARNING: /" >&2
38005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38008 echo $ECHO_N "(cached) $ECHO_C" >&6
38010 eval "$as_ac_Header=\$ac_header_preproc"
38012 ac_res=`eval echo '${'$as_ac_Header'}'`
38013 { echo "$as_me:$LINENO: result: $ac_res" >&5
38014 echo "${ECHO_T}$ac_res" >&6; }
38017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38018 cat >>confdefs.h <<_ACEOF
38019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38027 if test $ac_cv_header_ltdl_h != yes ; then
38028 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38029 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38030 { (exit 1); exit 1; }; }
38032 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38033 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38034 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38035 echo $ECHO_N "(cached) $ECHO_C" >&6
38037 ac_check_lib_save_LIBS=$LIBS
38038 LIBS="-lltdl $LIBS"
38039 cat >conftest.$ac_ext <<_ACEOF
38042 cat confdefs.h >>conftest.$ac_ext
38043 cat >>conftest.$ac_ext <<_ACEOF
38044 /* end confdefs.h. */
38046 /* Override any GCC internal prototype to avoid an error.
38047 Use char because int might match the return type of a GCC
38048 builtin and then its argument prototype would still apply. */
38056 return lt_dlinit ();
38061 rm -f conftest.$ac_objext conftest$ac_exeext
38062 if { (ac_try="$ac_link"
38063 case "(($ac_try" in
38064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38065 *) ac_try_echo=$ac_try;;
38067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38068 (eval "$ac_link") 2>conftest.er1
38070 grep -v '^ *+' conftest.er1 >conftest.err
38072 cat conftest.err >&5
38073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38074 (exit $ac_status); } && {
38075 test -z "$ac_c_werror_flag" ||
38076 test ! -s conftest.err
38077 } && test -s conftest$ac_exeext &&
38078 $as_test_x conftest$ac_exeext; then
38079 ac_cv_lib_ltdl_lt_dlinit=yes
38081 echo "$as_me: failed program was:" >&5
38082 sed 's/^/| /' conftest.$ac_ext >&5
38084 ac_cv_lib_ltdl_lt_dlinit=no
38087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38088 conftest$ac_exeext conftest.$ac_ext
38089 LIBS=$ac_check_lib_save_LIBS
38091 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38092 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38093 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38096 LIBSLAPI=libslapi.a
38097 LIBSLAPITOOLS=../libslapi.a
38099 cat >>confdefs.h <<\_ACEOF
38100 #define HAVE_LIBLTDL 1
38105 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38106 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38107 { (exit 1); exit 1; }; }
38112 cat >>confdefs.h <<\_ACEOF
38113 #define LDAP_SLAPI 1
38118 if test "$ol_enable_debug" != no ; then
38119 if test "$ol_enable_debug" = traditional; then
38121 cat >>confdefs.h <<\_ACEOF
38122 #define OLD_DEBUG 1
38127 cat >>confdefs.h <<\_ACEOF
38128 #define LDAP_DEBUG 1
38132 if test "$ol_enable_syslog" = yes ; then
38134 cat >>confdefs.h <<\_ACEOF
38135 #define LDAP_SYSLOG 1
38139 if test "$ol_enable_proctitle" != no ; then
38141 cat >>confdefs.h <<\_ACEOF
38142 #define LDAP_PROCTITLE 1
38146 if test "$ol_enable_referrals" != no ; then
38148 cat >>confdefs.h <<\_ACEOF
38149 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38153 if test "$ol_enable_local" != no; then
38155 cat >>confdefs.h <<\_ACEOF
38156 #define LDAP_PF_LOCAL 1
38160 if test "$ol_link_ipv6" != no; then
38162 cat >>confdefs.h <<\_ACEOF
38163 #define LDAP_PF_INET6 1
38167 if test "$ol_enable_cleartext" != no ; then
38169 cat >>confdefs.h <<\_ACEOF
38170 #define SLAPD_CLEARTEXT 1
38174 if test "$ol_enable_crypt" != no ; then
38176 cat >>confdefs.h <<\_ACEOF
38177 #define SLAPD_CRYPT 1
38181 if test "$ol_link_spasswd" != no ; then
38183 cat >>confdefs.h <<\_ACEOF
38184 #define SLAPD_SPASSWD 1
38188 if test "$ol_enable_rlookups" != no ; then
38190 cat >>confdefs.h <<\_ACEOF
38191 #define SLAPD_RLOOKUPS 1
38195 if test "$ol_enable_aci" != no ; then
38196 if test $ol_enable_dynacl = no ; then
38197 ol_enable_dynacl=yes
38198 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38199 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38201 if test "$ol_enable_aci" = mod ; then
38202 MFLAG=SLAPD_MOD_DYNAMIC
38203 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38204 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38205 { (exit 1); exit 1; }; }
38207 MFLAG=SLAPD_MOD_STATIC
38209 WITH_ACI_ENABLED=$ol_enable_aci
38211 cat >>confdefs.h <<_ACEOF
38212 #define SLAPD_ACI_ENABLED $MFLAG
38216 WITH_ACI_ENABLED=no
38218 if test "$ol_enable_dynacl" != no ; then
38220 cat >>confdefs.h <<\_ACEOF
38221 #define SLAP_DYNACL 1
38226 if test "$ol_link_modules" != no ; then
38228 cat >>confdefs.h <<\_ACEOF
38229 #define SLAPD_MODULES 1
38233 SLAPD_MODULES_LDFLAGS="-dlopen self"
38237 cat >>confdefs.h <<\_ACEOF
38238 #define SLAPD_MOD_STATIC 1
38242 cat >>confdefs.h <<\_ACEOF
38243 #define SLAPD_MOD_DYNAMIC 2
38247 if test "$ol_enable_monitor" != no ; then
38249 BUILD_MONITOR=$ol_enable_monitor
38250 if test "$ol_enable_monitor" = mod ; then
38251 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38252 MFLAG=SLAPD_MOD_DYNAMIC
38254 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38255 MFLAG=SLAPD_MOD_STATIC
38258 cat >>confdefs.h <<_ACEOF
38259 #define SLAPD_MONITOR $MFLAG
38264 if test "$ol_enable_bdb" != no ; then
38266 BUILD_BDB=$ol_enable_bdb
38267 if test "$ol_enable_bdb" = mod ; then
38268 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38269 MFLAG=SLAPD_MOD_DYNAMIC
38271 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38272 MFLAG=SLAPD_MOD_STATIC
38275 cat >>confdefs.h <<_ACEOF
38276 #define SLAPD_BDB $MFLAG
38281 if test "$ol_enable_dnssrv" != no ; then
38283 BUILD_DNSSRV=$ol_enable_dnssrv
38284 if test "$ol_enable_dnssrv" = mod ; then
38285 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38286 MFLAG=SLAPD_MOD_DYNAMIC
38288 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38289 MFLAG=SLAPD_MOD_STATIC
38292 cat >>confdefs.h <<_ACEOF
38293 #define SLAPD_DNSSRV $MFLAG
38298 if test "$ol_enable_hdb" != no ; then
38300 BUILD_HDB=$ol_enable_hdb
38301 if test "$ol_enable_hdb" = mod ; then
38302 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38303 MFLAG=SLAPD_MOD_DYNAMIC
38305 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38306 MFLAG=SLAPD_MOD_STATIC
38309 cat >>confdefs.h <<_ACEOF
38310 #define SLAPD_HDB $MFLAG
38315 if test "$ol_enable_ldap" != no ; then
38317 BUILD_LDAP=$ol_enable_ldap
38318 if test "$ol_enable_ldap" = mod ; then
38319 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38320 MFLAG=SLAPD_MOD_DYNAMIC
38322 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38323 MFLAG=SLAPD_MOD_STATIC
38326 cat >>confdefs.h <<_ACEOF
38327 #define SLAPD_LDAP $MFLAG
38332 if test "$ol_enable_meta" != no ; then
38334 BUILD_META=$ol_enable_meta
38336 if test "$ol_enable_meta" = mod ; then
38337 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38338 MFLAG=SLAPD_MOD_DYNAMIC
38340 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38341 MFLAG=SLAPD_MOD_STATIC
38344 cat >>confdefs.h <<_ACEOF
38345 #define SLAPD_META $MFLAG
38350 if test "$ol_enable_ndb" != no ; then
38352 BUILD_NDB=$ol_enable_ndb
38353 if test "$ol_enable_ndb" = mod ; then
38354 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38355 MFLAG=SLAPD_MOD_DYNAMIC
38357 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38358 MFLAG=SLAPD_MOD_STATIC
38361 cat >>confdefs.h <<_ACEOF
38362 #define SLAPD_NDB $MFLAG
38367 if test "$ol_enable_null" != no ; then
38369 BUILD_NULL=$ol_enable_null
38370 if test "$ol_enable_null" = mod ; then
38371 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38372 MFLAG=SLAPD_MOD_DYNAMIC
38374 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38375 MFLAG=SLAPD_MOD_STATIC
38378 cat >>confdefs.h <<_ACEOF
38379 #define SLAPD_NULL $MFLAG
38384 if test "$ol_enable_passwd" != no ; then
38386 BUILD_PASSWD=$ol_enable_passwd
38387 if test "$ol_enable_passwd" = mod ; then
38388 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38389 MFLAG=SLAPD_MOD_DYNAMIC
38391 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38392 MFLAG=SLAPD_MOD_STATIC
38395 cat >>confdefs.h <<_ACEOF
38396 #define SLAPD_PASSWD $MFLAG
38401 if test "$ol_link_perl" != no ; then
38403 BUILD_PERL=$ol_enable_perl
38404 if test "$ol_enable_perl" = mod ; then
38405 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38406 MFLAG=SLAPD_MOD_DYNAMIC
38408 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38409 MFLAG=SLAPD_MOD_STATIC
38412 cat >>confdefs.h <<_ACEOF
38413 #define SLAPD_PERL $MFLAG
38418 if test "$ol_enable_relay" != no ; then
38420 BUILD_RELAY=$ol_enable_relay
38421 if test "$ol_enable_relay" = mod ; then
38422 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38423 MFLAG=SLAPD_MOD_DYNAMIC
38425 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38426 MFLAG=SLAPD_MOD_STATIC
38429 cat >>confdefs.h <<_ACEOF
38430 #define SLAPD_RELAY $MFLAG
38435 if test "$ol_enable_shell" != no ; then
38436 if test "$ol_link_threads" != no ; then
38437 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38438 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38441 BUILD_SHELL=$ol_enable_shell
38442 if test "$ol_enable_shell" = mod ; then
38443 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38444 MFLAG=SLAPD_MOD_DYNAMIC
38446 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38447 MFLAG=SLAPD_MOD_STATIC
38450 cat >>confdefs.h <<_ACEOF
38451 #define SLAPD_SHELL $MFLAG
38456 if test "$ol_enable_sock" != no ; then
38458 BUILD_SOCK=$ol_enable_sock
38459 if test "$ol_enable_sock" = mod ; then
38460 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38461 MFLAG=SLAPD_MOD_DYNAMIC
38463 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38464 MFLAG=SLAPD_MOD_STATIC
38467 cat >>confdefs.h <<_ACEOF
38468 #define SLAPD_SOCK $MFLAG
38473 if test "$ol_link_sql" != no ; then
38475 BUILD_SQL=$ol_enable_sql
38476 if test "$ol_enable_sql" = mod; then
38477 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38478 MFLAG=SLAPD_MOD_DYNAMIC
38480 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38481 MFLAG=SLAPD_MOD_STATIC
38484 cat >>confdefs.h <<_ACEOF
38485 #define SLAPD_SQL $MFLAG
38490 if test "$ol_enable_accesslog" != no ; then
38491 BUILD_ACCESSLOG=$ol_enable_accesslog
38492 if test "$ol_enable_accesslog" = mod ; then
38493 MFLAG=SLAPD_MOD_DYNAMIC
38494 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38496 MFLAG=SLAPD_MOD_STATIC
38497 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38500 cat >>confdefs.h <<_ACEOF
38501 #define SLAPD_OVER_ACCESSLOG $MFLAG
38506 if test "$ol_enable_auditlog" != no ; then
38507 BUILD_AUDITLOG=$ol_enable_auditlog
38508 if test "$ol_enable_auditlog" = mod ; then
38509 MFLAG=SLAPD_MOD_DYNAMIC
38510 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38512 MFLAG=SLAPD_MOD_STATIC
38513 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38516 cat >>confdefs.h <<_ACEOF
38517 #define SLAPD_OVER_AUDITLOG $MFLAG
38522 if test "$ol_enable_collect" != no ; then
38523 BUILD_COLLECT=$ol_enable_collect
38524 if test "$ol_enable_collect" = mod ; then
38525 MFLAG=SLAPD_MOD_DYNAMIC
38526 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38528 MFLAG=SLAPD_MOD_STATIC
38529 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38532 cat >>confdefs.h <<_ACEOF
38533 #define SLAPD_OVER_COLLECT $MFLAG
38538 if test "$ol_enable_constraint" != no ; then
38539 BUILD_CONSTRAINT=$ol_enable_constraint
38540 if test "$ol_enable_constraint" = mod ; then
38541 MFLAG=SLAPD_MOD_DYNAMIC
38542 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38544 MFLAG=SLAPD_MOD_STATIC
38545 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38548 cat >>confdefs.h <<_ACEOF
38549 #define SLAPD_OVER_CONSTRAINT $MFLAG
38554 if test "$ol_enable_dds" != no ; then
38555 BUILD_DDS=$ol_enable_dds
38556 if test "$ol_enable_dds" = mod ; then
38557 MFLAG=SLAPD_MOD_DYNAMIC
38558 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38560 MFLAG=SLAPD_MOD_STATIC
38561 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38564 cat >>confdefs.h <<_ACEOF
38565 #define SLAPD_OVER_DDS $MFLAG
38570 if test "$ol_enable_deref" != no ; then
38571 BUILD_DEREF=$ol_enable_deref
38572 if test "$ol_enable_deref" = mod ; then
38573 MFLAG=SLAPD_MOD_DYNAMIC
38574 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38576 MFLAG=SLAPD_MOD_STATIC
38577 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38580 cat >>confdefs.h <<_ACEOF
38581 #define SLAPD_OVER_DEREF $MFLAG
38586 if test "$ol_enable_dyngroup" != no ; then
38587 BUILD_DYNGROUP=$ol_enable_dyngroup
38588 if test "$ol_enable_dyngroup" = mod ; then
38589 MFLAG=SLAPD_MOD_DYNAMIC
38590 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38592 MFLAG=SLAPD_MOD_STATIC
38593 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38596 cat >>confdefs.h <<_ACEOF
38597 #define SLAPD_OVER_DYNGROUP $MFLAG
38602 if test "$ol_enable_dynlist" != no ; then
38603 BUILD_DYNLIST=$ol_enable_dynlist
38604 if test "$ol_enable_dynlist" = mod ; then
38605 MFLAG=SLAPD_MOD_DYNAMIC
38606 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38608 MFLAG=SLAPD_MOD_STATIC
38609 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38612 cat >>confdefs.h <<_ACEOF
38613 #define SLAPD_OVER_DYNLIST $MFLAG
38618 if test "$ol_enable_memberof" != no ; then
38619 BUILD_MEMBEROF=$ol_enable_memberof
38620 if test "$ol_enable_memberof" = mod ; then
38621 MFLAG=SLAPD_MOD_DYNAMIC
38622 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38624 MFLAG=SLAPD_MOD_STATIC
38625 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38628 cat >>confdefs.h <<_ACEOF
38629 #define SLAPD_OVER_MEMBEROF $MFLAG
38634 if test "$ol_enable_ppolicy" != no ; then
38635 BUILD_PPOLICY=$ol_enable_ppolicy
38636 if test "$ol_enable_ppolicy" = mod ; then
38637 MFLAG=SLAPD_MOD_DYNAMIC
38638 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38640 MFLAG=SLAPD_MOD_STATIC
38641 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38644 cat >>confdefs.h <<_ACEOF
38645 #define SLAPD_OVER_PPOLICY $MFLAG
38650 if test "$ol_enable_proxycache" != no ; then
38651 BUILD_PROXYCACHE=$ol_enable_proxycache
38652 if test "$ol_enable_proxycache" = mod ; then
38653 MFLAG=SLAPD_MOD_DYNAMIC
38654 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38656 MFLAG=SLAPD_MOD_STATIC
38657 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38660 cat >>confdefs.h <<_ACEOF
38661 #define SLAPD_OVER_PROXYCACHE $MFLAG
38666 if test "$ol_enable_refint" != no ; then
38667 BUILD_REFINT=$ol_enable_refint
38668 if test "$ol_enable_refint" = mod ; then
38669 MFLAG=SLAPD_MOD_DYNAMIC
38670 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38672 MFLAG=SLAPD_MOD_STATIC
38673 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38676 cat >>confdefs.h <<_ACEOF
38677 #define SLAPD_OVER_REFINT $MFLAG
38682 if test "$ol_enable_retcode" != no ; then
38683 BUILD_RETCODE=$ol_enable_retcode
38684 if test "$ol_enable_retcode" = mod ; then
38685 MFLAG=SLAPD_MOD_DYNAMIC
38686 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38688 MFLAG=SLAPD_MOD_STATIC
38689 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38692 cat >>confdefs.h <<_ACEOF
38693 #define SLAPD_OVER_RETCODE $MFLAG
38698 if test "$ol_enable_rwm" != no ; then
38700 BUILD_RWM=$ol_enable_rwm
38701 if test "$ol_enable_rwm" = mod ; then
38702 MFLAG=SLAPD_MOD_DYNAMIC
38703 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38705 MFLAG=SLAPD_MOD_STATIC
38706 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38709 cat >>confdefs.h <<_ACEOF
38710 #define SLAPD_OVER_RWM $MFLAG
38715 if test "$ol_enable_seqmod" != no ; then
38716 BUILD_SEQMOD=$ol_enable_seqmod
38717 if test "$ol_enable_seqmod" = mod ; then
38718 MFLAG=SLAPD_MOD_DYNAMIC
38719 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38721 MFLAG=SLAPD_MOD_STATIC
38722 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38725 cat >>confdefs.h <<_ACEOF
38726 #define SLAPD_OVER_SEQMOD $MFLAG
38731 if test "$ol_enable_sssvlv" != no ; then
38732 BUILD_SSSVLV=$ol_enable_sssvlv
38733 if test "$ol_enable_sssvlv" = mod ; then
38734 MFLAG=SLAPD_MOD_DYNAMIC
38735 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
38737 MFLAG=SLAPD_MOD_STATIC
38738 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
38741 cat >>confdefs.h <<_ACEOF
38742 #define SLAPD_OVER_SSSVLV $MFLAG
38747 if test "$ol_enable_syncprov" != no ; then
38748 BUILD_SYNCPROV=$ol_enable_syncprov
38749 if test "$ol_enable_syncprov" = mod ; then
38750 MFLAG=SLAPD_MOD_DYNAMIC
38751 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38753 MFLAG=SLAPD_MOD_STATIC
38754 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38757 cat >>confdefs.h <<_ACEOF
38758 #define SLAPD_OVER_SYNCPROV $MFLAG
38763 if test "$ol_enable_translucent" != no ; then
38764 BUILD_TRANSLUCENT=$ol_enable_translucent
38765 if test "$ol_enable_translucent" = mod ; then
38766 MFLAG=SLAPD_MOD_DYNAMIC
38767 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38769 MFLAG=SLAPD_MOD_STATIC
38770 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38773 cat >>confdefs.h <<_ACEOF
38774 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38779 if test "$ol_enable_unique" != no ; then
38780 BUILD_UNIQUE=$ol_enable_unique
38781 if test "$ol_enable_unique" = mod ; then
38782 MFLAG=SLAPD_MOD_DYNAMIC
38783 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38785 MFLAG=SLAPD_MOD_STATIC
38786 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38789 cat >>confdefs.h <<_ACEOF
38790 #define SLAPD_OVER_UNIQUE $MFLAG
38795 if test "$ol_enable_valsort" != no ; then
38796 BUILD_VALSORT=$ol_enable_valsort
38797 if test "$ol_enable_valsort" = mod ; then
38798 MFLAG=SLAPD_MOD_DYNAMIC
38799 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38801 MFLAG=SLAPD_MOD_STATIC
38802 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38805 cat >>confdefs.h <<_ACEOF
38806 #define SLAPD_OVER_VALSORT $MFLAG
38811 if test "$ol_enable_rewrite" != no ; then
38813 cat >>confdefs.h <<\_ACEOF
38814 #define ENABLE_REWRITE 1
38820 if test "$ol_enable_slapi" != no ; then
38822 cat >>confdefs.h <<\_ACEOF
38823 #define ENABLE_SLAPI 1
38827 SLAPD_SLAPI_DEPEND=libslapi.a
38832 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38834 SLAPD_MODULES_LDFLAGS=
38929 # Check whether --with-xxinstall was given.
38930 if test "${with_xxinstall+set}" = set; then
38931 withval=$with_xxinstall;
38936 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"
38939 ac_config_commands="$ac_config_commands default"
38943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38944 # Let make expand exec_prefix.
38945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38947 DEFS=-DHAVE_CONFIG_H
38951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38952 # 1. Remove the extension, and $U if already installed.
38953 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38954 ac_i=`echo "$ac_i" | sed "$ac_script"`
38955 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38956 # will be set to the directory where LIBOBJS objects are built.
38957 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38958 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38960 LIBOBJS=$ac_libobjs
38962 LTLIBOBJS=$ac_ltlibobjs
38965 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38966 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38967 Usually this means the macro was only invoked conditionally." >&5
38968 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38969 Usually this means the macro was only invoked conditionally." >&2;}
38970 { (exit 1); exit 1; }; }
38972 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38973 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38974 Usually this means the macro was only invoked conditionally." >&5
38975 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38976 Usually this means the macro was only invoked conditionally." >&2;}
38977 { (exit 1); exit 1; }; }
38979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38980 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38981 Usually this means the macro was only invoked conditionally." >&5
38982 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38983 Usually this means the macro was only invoked conditionally." >&2;}
38984 { (exit 1); exit 1; }; }
38987 : ${CONFIG_STATUS=./config.status}
38988 ac_clean_files_save=$ac_clean_files
38989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38990 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38991 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38992 cat >$CONFIG_STATUS <<_ACEOF
38994 # Generated by $as_me.
38995 # Run this file to recreate the current configuration.
38996 # Compiler output produced by configure, useful for debugging
38997 # configure, is in config.log if it exists.
39000 ac_cs_recheck=false
39002 SHELL=\${CONFIG_SHELL-$SHELL}
39005 cat >>$CONFIG_STATUS <<\_ACEOF
39006 ## --------------------- ##
39007 ## M4sh Initialization. ##
39008 ## --------------------- ##
39010 # Be more Bourne compatible
39011 DUALCASE=1; export DUALCASE # for MKS sh
39012 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39015 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39016 # is contrary to our usage. Disable this feature.
39017 alias -g '${1+"$@"}'='"$@"'
39018 setopt NO_GLOB_SUBST
39020 case `(set -o) 2>/dev/null` in
39021 *posix*) set -o posix ;;
39030 # Avoid depending upon Character Ranges.
39031 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39032 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39033 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39034 as_cr_digits='0123456789'
39035 as_cr_alnum=$as_cr_Letters$as_cr_digits
39037 # The user is always right.
39038 if test "${PATH_SEPARATOR+set}" != set; then
39039 echo "#! /bin/sh" >conf$$.sh
39040 echo "exit 0" >>conf$$.sh
39042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39050 # Support unset when possible.
39051 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39059 # We need space, tab and new line, in precisely that order. Quoting is
39060 # there to prevent editors from complaining about space-tab.
39061 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39062 # splitting by setting IFS to empty value.)
39067 # Find who we are. Look in the path if we contain no directory separator.
39069 *[\\/]* ) as_myself=$0 ;;
39070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39071 for as_dir in $PATH
39074 test -z "$as_dir" && as_dir=.
39075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39081 # We did not find ourselves, most probably we were run as `sh COMMAND'
39082 # in which case we are not to be found in the path.
39083 if test "x$as_myself" = x; then
39086 if test ! -f "$as_myself"; then
39087 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39088 { (exit 1); exit 1; }
39091 # Work around bugs in pre-3.0 UWIN ksh.
39092 for as_var in ENV MAIL MAILPATH
39093 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39101 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39102 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39103 LC_TELEPHONE LC_TIME
39105 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39106 eval $as_var=C; export $as_var
39108 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39112 # Required to use basename.
39113 if expr a : '\(a\)' >/dev/null 2>&1 &&
39114 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39120 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39121 as_basename=basename
39127 # Name of the executable.
39128 as_me=`$as_basename -- "$0" ||
39129 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39130 X"$0" : 'X\(//\)$' \| \
39131 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39133 sed '/^.*\/\([^/][^/]*\)\/*$/{
39152 as_lineno_1=$LINENO
39153 as_lineno_2=$LINENO
39154 test "x$as_lineno_1" != "x$as_lineno_2" &&
39155 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39158 # uniformly replaced by the line number. The first 'sed' inserts a
39159 # line-number line after each line using $LINENO; the second 'sed'
39160 # does the real work. The second script uses 'N' to pair each
39161 # line-number line with the line containing $LINENO, and appends
39162 # trailing '-' during substitution so that $LINENO is not a special
39163 # case at line end.
39164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39165 # scripts with optimization help from Paolo Bonzini. Blame Lee
39166 # E. McMahon (1931-1989) for sed's syntax. :-)
39178 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39181 ' >$as_me.lineno &&
39182 chmod +x "$as_me.lineno" ||
39183 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39184 { (exit 1); exit 1; }; }
39186 # Don't try to exec as it changes $[0], causing all sort of problems
39187 # (the dirname of $[0] is not the place where we might find the
39188 # original and so on. Autoconf is especially sensitive to this).
39189 . "./$as_me.lineno"
39190 # Exit status is that of the last command.
39195 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39201 ECHO_C= ECHO_N= ECHO_T=
39202 case `echo -n x` in
39204 case `echo 'x\c'` in
39205 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39212 if expr a : '\(a\)' >/dev/null 2>&1 &&
39213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39219 rm -f conf$$ conf$$.exe conf$$.file
39220 if test -d conf$$.dir; then
39221 rm -f conf$$.dir/conf$$.file
39227 if ln -s conf$$.file conf$$ 2>/dev/null; then
39229 # ... but there are two gotchas:
39230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39232 # In both cases, we have to default to `cp -p'.
39233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39235 elif ln conf$$.file conf$$ 2>/dev/null; then
39240 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39241 rmdir conf$$.dir 2>/dev/null
39243 if mkdir -p . 2>/dev/null; then
39246 test -d ./-p && rmdir ./-p
39250 if test -x / >/dev/null 2>&1; then
39251 as_test_x='test -x'
39253 if ls -dL / >/dev/null 2>&1; then
39260 if test -d "$1"; then
39266 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39267 ???[sx]*):;;*)false;;esac;fi
39271 as_executable_p=$as_test_x
39273 # Sed expression to map a string onto a valid CPP name.
39274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39276 # Sed expression to map a string onto a valid variable name.
39277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39282 # Save the log message, to keep $[0] and so on meaningful, and to
39283 # report actual input values of CONFIG_FILES etc. instead of their
39284 # values after options handling.
39286 This file was extended by $as_me, which was
39287 generated by GNU Autoconf 2.61. Invocation command line was
39289 CONFIG_FILES = $CONFIG_FILES
39290 CONFIG_HEADERS = $CONFIG_HEADERS
39291 CONFIG_LINKS = $CONFIG_LINKS
39292 CONFIG_COMMANDS = $CONFIG_COMMANDS
39295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39300 cat >>$CONFIG_STATUS <<_ACEOF
39301 # Files that config.status was made for.
39302 config_files="$ac_config_files"
39303 config_headers="$ac_config_headers"
39304 config_commands="$ac_config_commands"
39308 cat >>$CONFIG_STATUS <<\_ACEOF
39310 \`$as_me' instantiates files from templates according to the
39311 current configuration.
39313 Usage: $0 [OPTIONS] [FILE]...
39315 -h, --help print this help, then exit
39316 -V, --version print version number and configuration settings, then exit
39317 -q, --quiet do not print progress messages
39318 -d, --debug don't remove temporary files
39319 --recheck update $as_me by reconfiguring in the same conditions
39320 --file=FILE[:TEMPLATE]
39321 instantiate the configuration file FILE
39322 --header=FILE[:TEMPLATE]
39323 instantiate the configuration header FILE
39325 Configuration files:
39328 Configuration headers:
39331 Configuration commands:
39334 Report bugs to <bug-autoconf@gnu.org>."
39337 cat >>$CONFIG_STATUS <<_ACEOF
39340 configured by $0, generated by GNU Autoconf 2.61,
39341 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39343 Copyright (C) 2006 Free Software Foundation, Inc.
39344 This config.status script is free software; the Free Software Foundation
39345 gives unlimited permission to copy, distribute and modify it."
39352 cat >>$CONFIG_STATUS <<\_ACEOF
39353 # If no file are specified by the user, then we need to provide default
39354 # value. By we need to know if files were specified by the user.
39360 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39361 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39372 # Handling of the options.
39373 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39375 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39376 echo "$ac_cs_version"; exit ;;
39377 --debug | --debu | --deb | --de | --d | -d )
39379 --file | --fil | --fi | --f )
39381 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39382 ac_need_defaults=false;;
39383 --header | --heade | --head | --hea )
39385 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39386 ac_need_defaults=false;;
39388 # Conflict between --help and --header
39389 { echo "$as_me: error: ambiguous option: $1
39390 Try \`$0 --help' for more information." >&2
39391 { (exit 1); exit 1; }; };;
39392 --help | --hel | -h )
39393 echo "$ac_cs_usage"; exit ;;
39394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39395 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39398 # This is an error.
39399 -*) { echo "$as_me: error: unrecognized option: $1
39400 Try \`$0 --help' for more information." >&2
39401 { (exit 1); exit 1; }; } ;;
39403 *) ac_config_targets="$ac_config_targets $1"
39404 ac_need_defaults=false ;;
39410 ac_configure_extra_args=
39412 if $ac_cs_silent; then
39414 ac_configure_extra_args="$ac_configure_extra_args --silent"
39418 cat >>$CONFIG_STATUS <<_ACEOF
39419 if \$ac_cs_recheck; then
39420 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39421 CONFIG_SHELL=$SHELL
39422 export CONFIG_SHELL
39423 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39427 cat >>$CONFIG_STATUS <<\_ACEOF
39431 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39432 ## Running $as_me. ##
39438 cat >>$CONFIG_STATUS <<_ACEOF
39442 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39444 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39445 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39450 cat >>$CONFIG_STATUS <<\_ACEOF
39452 # Handling of arguments.
39453 for ac_config_target in $ac_config_targets
39455 case $ac_config_target in
39456 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39457 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39458 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39459 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39460 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39461 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39462 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39463 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39464 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39465 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39466 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39467 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39468 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39469 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39470 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39471 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39472 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39473 "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" ;;
39474 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39475 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39476 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39477 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39478 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39479 "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" ;;
39480 "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" ;;
39481 "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" ;;
39482 "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" ;;
39483 "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" ;;
39484 "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" ;;
39485 "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" ;;
39486 "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" ;;
39487 "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" ;;
39488 "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" ;;
39489 "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" ;;
39490 "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" ;;
39491 "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" ;;
39492 "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" ;;
39493 "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" ;;
39494 "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" ;;
39495 "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" ;;
39496 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39497 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39498 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39499 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39500 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39502 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39503 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39504 { (exit 1); exit 1; }; };;
39509 # If the user did not use the arguments to specify the items to instantiate,
39510 # then the envvar interface is used. Set only those that are not.
39511 # We use the long form for the default assignment because of an extremely
39512 # bizarre bug on SunOS 4.1.3.
39513 if $ac_need_defaults; then
39514 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39515 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39516 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39519 # Have a temporary directory for convenience. Make it in the build tree
39520 # simply because there is no reason against having it here, and in addition,
39521 # creating and moving files from /tmp can sometimes cause problems.
39522 # Hook for its removal unless debugging.
39523 # Note that there is a small window in which the directory will not be cleaned:
39524 # after its creation but before its name has been assigned to `$tmp'.
39528 trap 'exit_status=$?
39529 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39531 trap '{ (exit 1); exit 1; }' 1 2 13 15
39533 # Create a (secure) tmp directory for tmp files.
39536 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39537 test -n "$tmp" && test -d "$tmp"
39540 tmp=./conf$$-$RANDOM
39541 (umask 077 && mkdir "$tmp")
39544 echo "$me: cannot create a temporary directory in ." >&2
39545 { (exit 1); exit 1; }
39549 # Set up the sed scripts for CONFIG_FILES section.
39552 # No need to generate the scripts if there are no CONFIG_FILES.
39553 # This happens for instance when ./config.status config.h
39554 if test -n "$CONFIG_FILES"; then
39561 for ac_last_try in false false false false false :; do
39562 cat >conf$$subs.sed <<_ACEOF
39563 SHELL!$SHELL$ac_delim
39564 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39565 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39566 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39567 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39568 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39569 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39570 exec_prefix!$exec_prefix$ac_delim
39571 prefix!$prefix$ac_delim
39572 program_transform_name!$program_transform_name$ac_delim
39573 bindir!$bindir$ac_delim
39574 sbindir!$sbindir$ac_delim
39575 libexecdir!$libexecdir$ac_delim
39576 datarootdir!$datarootdir$ac_delim
39577 datadir!$datadir$ac_delim
39578 sysconfdir!$sysconfdir$ac_delim
39579 sharedstatedir!$sharedstatedir$ac_delim
39580 localstatedir!$localstatedir$ac_delim
39581 includedir!$includedir$ac_delim
39582 oldincludedir!$oldincludedir$ac_delim
39583 docdir!$docdir$ac_delim
39584 infodir!$infodir$ac_delim
39585 htmldir!$htmldir$ac_delim
39586 dvidir!$dvidir$ac_delim
39587 pdfdir!$pdfdir$ac_delim
39588 psdir!$psdir$ac_delim
39589 libdir!$libdir$ac_delim
39590 localedir!$localedir$ac_delim
39591 mandir!$mandir$ac_delim
39592 DEFS!$DEFS$ac_delim
39593 ECHO_C!$ECHO_C$ac_delim
39594 ECHO_N!$ECHO_N$ac_delim
39595 ECHO_T!$ECHO_T$ac_delim
39596 LIBS!$LIBS$ac_delim
39597 build_alias!$build_alias$ac_delim
39598 host_alias!$host_alias$ac_delim
39599 target_alias!$target_alias$ac_delim
39600 build!$build$ac_delim
39601 build_cpu!$build_cpu$ac_delim
39602 build_vendor!$build_vendor$ac_delim
39603 build_os!$build_os$ac_delim
39604 host!$host$ac_delim
39605 host_cpu!$host_cpu$ac_delim
39606 host_vendor!$host_vendor$ac_delim
39607 host_os!$host_os$ac_delim
39608 target!$target$ac_delim
39609 target_cpu!$target_cpu$ac_delim
39610 target_vendor!$target_vendor$ac_delim
39611 target_os!$target_os$ac_delim
39612 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39613 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39614 INSTALL_DATA!$INSTALL_DATA$ac_delim
39615 CYGPATH_W!$CYGPATH_W$ac_delim
39616 PACKAGE!$PACKAGE$ac_delim
39617 VERSION!$VERSION$ac_delim
39618 ACLOCAL!$ACLOCAL$ac_delim
39619 AUTOCONF!$AUTOCONF$ac_delim
39620 AUTOMAKE!$AUTOMAKE$ac_delim
39621 AUTOHEADER!$AUTOHEADER$ac_delim
39622 MAKEINFO!$MAKEINFO$ac_delim
39623 install_sh!$install_sh$ac_delim
39624 STRIP!$STRIP$ac_delim
39625 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39626 mkdir_p!$mkdir_p$ac_delim
39628 SET_MAKE!$SET_MAKE$ac_delim
39629 am__leading_dot!$am__leading_dot$ac_delim
39630 AMTAR!$AMTAR$ac_delim
39631 am__tar!$am__tar$ac_delim
39632 am__untar!$am__untar$ac_delim
39633 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39634 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39635 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39636 top_builddir!$top_builddir$ac_delim
39637 ldap_subdir!$ldap_subdir$ac_delim
39640 CFLAGS!$CFLAGS$ac_delim
39641 LDFLAGS!$LDFLAGS$ac_delim
39642 CPPFLAGS!$CPPFLAGS$ac_delim
39643 ac_ct_CC!$ac_ct_CC$ac_delim
39644 EXEEXT!$EXEEXT$ac_delim
39645 OBJEXT!$OBJEXT$ac_delim
39646 DEPDIR!$DEPDIR$ac_delim
39647 am__include!$am__include$ac_delim
39648 am__quote!$am__quote$ac_delim
39649 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39650 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39651 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39652 CCDEPMODE!$CCDEPMODE$ac_delim
39653 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39654 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39655 GREP!$GREP$ac_delim
39656 EGREP!$EGREP$ac_delim
39657 LN_S!$LN_S$ac_delim
39658 ECHO!$ECHO$ac_delim
39659 RANLIB!$RANLIB$ac_delim
39662 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39664 elif $ac_last_try; then
39665 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39666 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39667 { (exit 1); exit 1; }; }
39669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39673 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39674 if test -n "$ac_eof"; then
39675 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39676 ac_eof=`expr $ac_eof + 1`
39679 cat >>$CONFIG_STATUS <<_ACEOF
39680 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39684 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39685 s/^/s,@/; s/!/@,|#_!!_#|/
39688 s/'"$ac_delim"'$/,g/; t
39690 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39691 ' >>$CONFIG_STATUS <conf$$subs.sed
39692 rm -f conf$$subs.sed
39693 cat >>$CONFIG_STATUS <<_ACEOF
39699 for ac_last_try in false false false false false :; do
39700 cat >conf$$subs.sed <<_ACEOF
39701 DLLTOOL!$DLLTOOL$ac_delim
39703 OBJDUMP!$OBJDUMP$ac_delim
39705 LIBTOOL!$LIBTOOL$ac_delim
39706 PERLBIN!$PERLBIN$ac_delim
39707 OL_MKDEP!$OL_MKDEP$ac_delim
39708 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39709 LTSTATIC!$LTSTATIC$ac_delim
39710 MYSQL!$MYSQL$ac_delim
39711 LIBOBJS!$LIBOBJS$ac_delim
39712 LIBSRCS!$LIBSRCS$ac_delim
39713 PLAT!$PLAT$ac_delim
39714 WITH_SASL!$WITH_SASL$ac_delim
39715 WITH_TLS!$WITH_TLS$ac_delim
39716 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39717 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39718 BUILD_THREAD!$BUILD_THREAD$ac_delim
39719 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39720 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39721 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39722 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39723 BUILD_BDB!$BUILD_BDB$ac_delim
39724 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39725 BUILD_HDB!$BUILD_HDB$ac_delim
39726 BUILD_LDAP!$BUILD_LDAP$ac_delim
39727 BUILD_META!$BUILD_META$ac_delim
39728 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39729 BUILD_NDB!$BUILD_NDB$ac_delim
39730 BUILD_NULL!$BUILD_NULL$ac_delim
39731 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39732 BUILD_RELAY!$BUILD_RELAY$ac_delim
39733 BUILD_PERL!$BUILD_PERL$ac_delim
39734 BUILD_SHELL!$BUILD_SHELL$ac_delim
39735 BUILD_SOCK!$BUILD_SOCK$ac_delim
39736 BUILD_SQL!$BUILD_SQL$ac_delim
39737 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39738 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39739 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39740 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39741 BUILD_DDS!$BUILD_DDS$ac_delim
39742 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39743 BUILD_DEREF!$BUILD_DEREF$ac_delim
39744 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39745 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39746 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39747 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39748 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39749 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39750 BUILD_REFINT!$BUILD_REFINT$ac_delim
39751 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39752 BUILD_RWM!$BUILD_RWM$ac_delim
39753 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39754 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39755 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39756 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39757 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39758 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39759 LDAP_LIBS!$LDAP_LIBS$ac_delim
39760 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39761 BDB_LIBS!$BDB_LIBS$ac_delim
39762 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39763 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39764 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39765 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39766 WRAP_LIBS!$WRAP_LIBS$ac_delim
39767 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39768 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39769 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39770 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39771 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39772 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39773 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39774 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39775 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39776 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39777 KRB4_LIBS!$KRB4_LIBS$ac_delim
39778 KRB5_LIBS!$KRB5_LIBS$ac_delim
39779 SASL_LIBS!$SASL_LIBS$ac_delim
39780 TLS_LIBS!$TLS_LIBS$ac_delim
39781 MODULES_LIBS!$MODULES_LIBS$ac_delim
39782 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39783 LIBSLAPI!$LIBSLAPI$ac_delim
39784 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39785 AUTH_LIBS!$AUTH_LIBS$ac_delim
39786 ICU_LIBS!$ICU_LIBS$ac_delim
39787 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39788 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39789 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39790 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39791 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39792 LTLIBOBJS!$LTLIBOBJS$ac_delim
39795 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
39797 elif $ac_last_try; then
39798 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39799 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39800 { (exit 1); exit 1; }; }
39802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39806 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39807 if test -n "$ac_eof"; then
39808 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39809 ac_eof=`expr $ac_eof + 1`
39812 cat >>$CONFIG_STATUS <<_ACEOF
39813 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39817 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39818 s/^/s,@/; s/!/@,|#_!!_#|/
39821 s/'"$ac_delim"'$/,g/; t
39823 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39824 ' >>$CONFIG_STATUS <conf$$subs.sed
39825 rm -f conf$$subs.sed
39826 cat >>$CONFIG_STATUS <<_ACEOF
39833 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39834 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39835 # trailing colons and then remove the whole line if VPATH becomes empty
39836 # (actually we leave an empty line to preserve line numbers).
39837 if test "x$srcdir" = x.; then
39838 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39839 s/:*\$(srcdir):*/:/
39840 s/:*\${srcdir}:*/:/
39842 s/^\([^=]*=[ ]*\):*/\1/
39848 cat >>$CONFIG_STATUS <<\_ACEOF
39849 fi # test -n "$CONFIG_FILES"
39852 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39855 :[FHLC]) ac_mode=$ac_tag; continue;;
39857 case $ac_mode$ac_tag in
39859 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39860 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39861 { (exit 1); exit 1; }; };;
39862 :[FH]-) ac_tag=-:-;;
39863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39880 -) ac_f="$tmp/stdin";;
39881 *) # Look for the file first in the build tree, then in the source tree
39882 # (if the path is not absolute). The absolute path cannot be DOS-style,
39883 # because $ac_f cannot contain `:'.
39887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39889 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39890 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39891 { (exit 1); exit 1; }; };;
39893 ac_file_inputs="$ac_file_inputs $ac_f"
39896 # Let's still pretend it is `configure' which instantiates (i.e., don't
39897 # use $as_me), people would be surprised to read:
39898 # /* config.h. Generated by config.status. */
39899 configure_input="Generated from "`IFS=:
39900 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39901 if test x"$ac_file" != x-; then
39902 configure_input="$ac_file. $configure_input"
39903 { echo "$as_me:$LINENO: creating $ac_file" >&5
39904 echo "$as_me: creating $ac_file" >&6;}
39908 *:-:* | *:-) cat >"$tmp/stdin";;
39913 ac_dir=`$as_dirname -- "$ac_file" ||
39914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39915 X"$ac_file" : 'X\(//\)[^/]' \| \
39916 X"$ac_file" : 'X\(//\)$' \| \
39917 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39923 /^X\(\/\/\)[^/].*/{
39938 -*) as_dir=./$as_dir;;
39940 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39944 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39945 *) as_qdir=$as_dir;;
39947 as_dirs="'$as_qdir' $as_dirs"
39948 as_dir=`$as_dirname -- "$as_dir" ||
39949 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39950 X"$as_dir" : 'X\(//\)[^/]' \| \
39951 X"$as_dir" : 'X\(//\)$' \| \
39952 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39954 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39958 /^X\(\/\/\)[^/].*/{
39971 test -d "$as_dir" && break
39973 test -z "$as_dirs" || eval "mkdir $as_dirs"
39974 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39975 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39976 { (exit 1); exit 1; }; }; }
39980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39982 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39983 # A ".." for each directory in $ac_dir_suffix.
39984 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39985 case $ac_top_builddir_sub in
39986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39990 ac_abs_top_builddir=$ac_pwd
39991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39992 # for backward compatibility:
39993 ac_top_builddir=$ac_top_build_prefix
39996 .) # We are building in place.
39998 ac_top_srcdir=$ac_top_builddir_sub
39999 ac_abs_top_srcdir=$ac_pwd ;;
40000 [\\/]* | ?:[\\/]* ) # Absolute name.
40001 ac_srcdir=$srcdir$ac_dir_suffix;
40002 ac_top_srcdir=$srcdir
40003 ac_abs_top_srcdir=$srcdir ;;
40004 *) # Relative name.
40005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40006 ac_top_srcdir=$ac_top_build_prefix$srcdir
40007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40024 cat >>$CONFIG_STATUS <<\_ACEOF
40025 # If the template does not know about datarootdir, expand it.
40026 # FIXME: This hack should be removed a few years after 2.60.
40027 ac_datarootdir_hack=; ac_datarootdir_seen=
40029 case `sed -n '/datarootdir/ {
40038 ' $ac_file_inputs` in
40039 *datarootdir*) ac_datarootdir_seen=yes;;
40040 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40041 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40042 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40044 cat >>$CONFIG_STATUS <<_ACEOF
40045 ac_datarootdir_hack='
40046 s&@datadir@&$datadir&g
40047 s&@docdir@&$docdir&g
40048 s&@infodir@&$infodir&g
40049 s&@localedir@&$localedir&g
40050 s&@mandir@&$mandir&g
40051 s&\\\${datarootdir}&$datarootdir&g' ;;
40055 # Neutralize VPATH when `$srcdir' = `.'.
40056 # Shell code in configure.ac might set extrasub.
40057 # FIXME: do we really want to maintain this feature?
40058 cat >>$CONFIG_STATUS <<_ACEOF
40062 cat >>$CONFIG_STATUS <<\_ACEOF
40064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40065 s&@configure_input@&$configure_input&;t t
40066 s&@top_builddir@&$ac_top_builddir_sub&;t t
40067 s&@srcdir@&$ac_srcdir&;t t
40068 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40069 s&@top_srcdir@&$ac_top_srcdir&;t t
40070 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40071 s&@builddir@&$ac_builddir&;t t
40072 s&@abs_builddir@&$ac_abs_builddir&;t t
40073 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40074 s&@INSTALL@&$ac_INSTALL&;t t
40075 $ac_datarootdir_hack
40076 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40078 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40079 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40080 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40081 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40082 which seems to be undefined. Please make sure it is defined." >&5
40083 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40084 which seems to be undefined. Please make sure it is defined." >&2;}
40088 -) cat "$tmp/out"; rm -f "$tmp/out";;
40089 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40098 # Transform confdefs.h into a sed script `conftest.defines', that
40099 # substitutes the proper values into config.h.in to produce config.h.
40100 rm -f conftest.defines conftest.tail
40101 # First, append a space to every undef/define line, to ease matching.
40102 echo 's/$/ /' >conftest.defines
40103 # Then, protect against being on the right side of a sed subst, or in
40104 # an unquoted here document, in config.status. If some macros were
40105 # called several times there might be several #defines for the same
40106 # symbol, which is useless. But do not sort them, since the last
40107 # AC_DEFINE must be honored.
40108 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40109 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40110 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40111 # PARAMS is the parameter list in the macro definition--in most cases, it's
40112 # just an empty string.
40113 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40114 ac_dB='\\)[ (].*,\\1define\\2'
40122 s/^[ ]*#[ ]*define[ ][ ]*//
40127 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40128 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40129 ' >>conftest.defines
40131 # Remove the space that was appended to ease matching.
40132 # Then replace #undef with comments. This is necessary, for
40133 # example, in the case of _POSIX_SOURCE, which is predefined and required
40134 # on some systems where configure will not decide to define it.
40135 # (The regexp can be short, since the line contains either #define or #undef.)
40137 s,^[ #]*u.*,/* & */,' >>conftest.defines
40139 # Break up conftest.defines:
40140 ac_max_sed_lines=50
40142 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40143 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40144 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40146 ac_in='$ac_file_inputs'
40147 ac_out='"$tmp/out1"'
40148 ac_nxt='"$tmp/out2"'
40152 # Write a here document:
40153 cat >>$CONFIG_STATUS <<_ACEOF
40154 # First, check the format of the line:
40155 cat >"\$tmp/defines.sed" <<\\CEOF
40156 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40157 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40161 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40163 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40164 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40165 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40166 grep . conftest.tail >/dev/null || break
40167 rm -f conftest.defines
40168 mv conftest.tail conftest.defines
40170 rm -f conftest.defines conftest.tail
40172 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40173 cat >>$CONFIG_STATUS <<\_ACEOF
40174 if test x"$ac_file" != x-; then
40175 echo "/* $configure_input */" >"$tmp/config.h"
40176 cat "$ac_result" >>"$tmp/config.h"
40177 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40178 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40179 echo "$as_me: $ac_file is unchanged" >&6;}
40182 mv "$tmp/config.h" $ac_file
40185 echo "/* $configure_input */"
40189 # Compute $ac_file's index in $config_headers.
40191 for _am_header in $config_headers :; do
40192 case $_am_header in
40193 $ac_file | $ac_file:* )
40196 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40199 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40200 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40201 X$ac_file : 'X\(//\)[^/]' \| \
40202 X$ac_file : 'X\(//\)$' \| \
40203 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40209 /^X\(\/\/\)[^/].*/{
40221 s/.*/./; q'`/stamp-h$_am_stamp_count
40224 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40225 echo "$as_me: executing $ac_file commands" >&6;}
40230 case $ac_file$ac_mode in
40231 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40232 # Strip MF so we end up with the name of the file.
40233 mf=`echo "$mf" | sed -e 's/:.*$//'`
40234 # Check whether this is an Automake generated Makefile or not.
40235 # We used to match only the files named `Makefile.in', but
40236 # some people rename them; so instead we look at the file content.
40237 # Grep'ing the first line is not enough: some people post-process
40238 # each Makefile.in and add a new line on top of each file to say so.
40239 # So let's grep whole file.
40240 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40241 dirpart=`$as_dirname -- "$mf" ||
40242 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40243 X"$mf" : 'X\(//\)[^/]' \| \
40244 X"$mf" : 'X\(//\)$' \| \
40245 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40251 /^X\(\/\/\)[^/].*/{
40267 # Extract the definition of DEPDIR, am__include, and am__quote
40268 # from the Makefile without running `make'.
40269 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40270 test -z "$DEPDIR" && continue
40271 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40272 test -z "am__include" && continue
40273 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40274 # When using ansi2knr, U may be empty or an underscore; expand it
40275 U=`sed -n 's/^U = //p' < "$mf"`
40276 # Find all dependency output files, they are included files with
40277 # $(DEPDIR) in their names. We invoke sed twice because it is the
40278 # simplest approach to changing $(DEPDIR) to its actual value in the
40280 for file in `sed -n "
40281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40283 # Make sure the directory exists.
40284 test -f "$dirpart/$file" && continue
40285 fdir=`$as_dirname -- "$file" ||
40286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40287 X"$file" : 'X\(//\)[^/]' \| \
40288 X"$file" : 'X\(//\)$' \| \
40289 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40295 /^X\(\/\/\)[^/].*/{
40308 { as_dir=$dirpart/$fdir
40310 -*) as_dir=./$as_dir;;
40312 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40316 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40317 *) as_qdir=$as_dir;;
40319 as_dirs="'$as_qdir' $as_dirs"
40320 as_dir=`$as_dirname -- "$as_dir" ||
40321 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40322 X"$as_dir" : 'X\(//\)[^/]' \| \
40323 X"$as_dir" : 'X\(//\)$' \| \
40324 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40330 /^X\(\/\/\)[^/].*/{
40343 test -d "$as_dir" && break
40345 test -z "$as_dirs" || eval "mkdir $as_dirs"
40346 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40347 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40348 { (exit 1); exit 1; }; }; }
40349 # echo "creating $dirpart/$file"
40350 echo '# dummy' > "$dirpart/$file"
40357 BACKENDSC="servers/slapd/backends.c"
40358 echo "Making $BACKENDSC"
40360 cat > $BACKENDSC << ENDX
40361 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40363 * Copyright 1998-2009 The OpenLDAP Foundation.
40364 * All rights reserved.
40366 * Redistribution and use in source and binary forms, with or without
40367 * modification, are permitted only as authorized by the OpenLDAP
40370 * A copy of this license is available in the file LICENSE in the
40371 * top-level directory of the distribution or, alternatively, at
40372 * <http://www.OpenLDAP.org/license.html>.
40374 /* This file is automatically generated by configure; please do not edit. */
40376 #include "portable.h"
40380 if test "${STATIC_BACKENDS}"; then
40381 for b in config ${STATIC_BACKENDS}; do
40382 bb=`echo "${b}" | sed -e 's/back-//'`
40383 cat >> $BACKENDSC << ENDX
40384 extern BI_init ${bb}_back_initialize;
40388 cat >> $BACKENDSC << ENDX
40390 BackendInfo slap_binfo[] = {
40393 for b in config ${STATIC_BACKENDS}; do
40394 bb=`echo "${b}" | sed -e 's/back-//'`
40395 echo " Add ${bb} ..."
40396 cat >> $BACKENDSC << ENDX
40397 { "${bb}", ${bb}_back_initialize },
40401 cat >> $BACKENDSC << ENDX
40405 /* end of generated file */
40408 OVERLAYSC="servers/slapd/overlays/statover.c"
40409 echo "Making $OVERLAYSC"
40411 cat > $OVERLAYSC << ENDX
40412 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40414 * Copyright 1998-2009 The OpenLDAP Foundation.
40415 * All rights reserved.
40417 * Redistribution and use in source and binary forms, with or without
40418 * modification, are permitted only as authorized by the OpenLDAP
40421 * A copy of this license is available in the file LICENSE in the
40422 * top-level directory of the distribution or, alternatively, at
40423 * <http://www.OpenLDAP.org/license.html>.
40425 /* This file is automatically generated by configure; please do not edit. */
40427 #include "portable.h"
40431 if test "${STATIC_OVERLAYS}"; then
40432 for o in ${STATIC_OVERLAYS}; do
40433 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40434 cat >> $OVERLAYSC << ENDX
40435 extern OV_init ${oo}_initialize;
40440 cat >> $OVERLAYSC << ENDX
40442 OverlayInit slap_oinfo[] = {
40445 if test "${STATIC_OVERLAYS}"; then
40446 for o in ${STATIC_OVERLAYS}; do
40447 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40448 echo " Add ${oo} ..."
40449 cat >> $OVERLAYSC << ENDX
40450 { "${oo}", ${oo}_initialize },
40455 cat >> $OVERLAYSC << ENDX
40459 /* end of generated file */
40462 if test "${ol_cv_mkdep}" = no; then
40463 echo '(Do not "make depend"; we do not know how to build dependencies)'
40465 echo 'Please run "make depend" to build dependencies'
40473 { (exit 0); exit 0; }
40475 chmod +x $CONFIG_STATUS
40476 ac_clean_files=$ac_clean_files_save
40479 # configure is writing to config.log, and then calls config.status.
40480 # config.status does its own redirection, appending to config.log.
40481 # Unfortunately, on DOS this fails, as config.log is still kept open
40482 # by configure, so config.status won't be able to write to it; its
40483 # output is simply discarded. So we exec the FD to /dev/null,
40484 # effectively closing config.log, so it can be properly (re)opened and
40485 # appended to by config.status. When coming back to configure, we
40486 # need to make the FD available again.
40487 if test "$no_create" != yes; then
40489 ac_config_status_args=
40490 test "$silent" = yes &&
40491 ac_config_status_args="$ac_config_status_args --quiet"
40493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40496 # would make configure fail if this is the last instruction.
40497 $ac_cs_success || { (exit 1); exit 1; }