2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.699 2009/07/04 23:42:26 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
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
960 ac_precious_vars='build_alias
971 # Initialize some variables set by options.
973 ac_init_version=false
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
983 program_transform_name=s,x,x,
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1029 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1033 # Accept the important Cygnus configure options, so we can diagnose typos.
1035 case $ac_dashdash$ac_option in
1039 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042 bindir=$ac_optarg ;;
1044 -build | --build | --buil | --bui | --bu)
1045 ac_prev=build_alias ;;
1046 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047 build_alias=$ac_optarg ;;
1049 -cache-file | --cache-file | --cache-fil | --cache-fi \
1050 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051 ac_prev=cache_file ;;
1052 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054 cache_file=$ac_optarg ;;
1056 --config-cache | -C)
1057 cache_file=config.cache ;;
1059 -datadir | --datadir | --datadi | --datad)
1061 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062 datadir=$ac_optarg ;;
1064 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065 | --dataroo | --dataro | --datar)
1066 ac_prev=datarootdir ;;
1067 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069 datarootdir=$ac_optarg ;;
1071 -disable-* | --disable-*)
1072 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1078 eval enable_$ac_feature=no ;;
1080 -docdir | --docdir | --docdi | --doc | --do)
1082 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1083 docdir=$ac_optarg ;;
1085 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1088 dvidir=$ac_optarg ;;
1090 -enable-* | --enable-*)
1091 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1094 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1095 { (exit 1); exit 1; }; }
1096 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1097 eval enable_$ac_feature=\$ac_optarg ;;
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128 htmldir=$ac_optarg ;;
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1142 -libdir | --libdir | --libdi | --libd)
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1233 -psdir | --psdir | --psdi | --psd | --ps)
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1261 -site=* | --site=* | --sit=*)
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1288 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 { echo "$as_me: error: invalid package name: $ac_package" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1294 eval with_$ac_package=\$ac_optarg ;;
1296 -without-* | --without-*)
1297 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300 { echo "$as_me: error: invalid package name: $ac_package" >&2
1301 { (exit 1); exit 1; }; }
1302 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1303 eval with_$ac_package=no ;;
1306 # Obsolete; use --with-x.
1309 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310 | --x-incl | --x-inc | --x-in | --x-i)
1311 ac_prev=x_includes ;;
1312 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314 x_includes=$ac_optarg ;;
1316 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318 ac_prev=x_libraries ;;
1319 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321 x_libraries=$ac_optarg ;;
1323 -*) { echo "$as_me: error: unrecognized option: $ac_option
1324 Try \`$0 --help' for more information." >&2
1325 { (exit 1); exit 1; }; }
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1332 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1333 { (exit 1); exit 1; }; }
1334 eval $ac_envvar=\$ac_optarg
1335 export $ac_envvar ;;
1338 # FIXME: should be removed in autoconf 3.0.
1339 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348 if test -n "$ac_prev"; then
1349 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350 { echo "$as_me: error: missing argument to $ac_option" >&2
1351 { (exit 1); exit 1; }; }
1354 # Be sure to have absolute directory names.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir
1360 eval ac_val=\$$ac_var
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1366 { (exit 1); exit 1; }; }
1369 # There might be people who depend on the old broken behavior: `$host'
1370 # used to hold the argument of --host etc.
1371 # FIXME: To remove some day.
1374 target=$target_alias
1376 # FIXME: To remove some day.
1377 if test "x$host_alias" != x; then
1378 if test "x$build_alias" = x; then
1379 cross_compiling=maybe
1380 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1381 If a cross compiler is detected then cross compile mode will be used." >&2
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390 test "$silent" = yes && exec 6>/dev/null
1393 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di=`ls -di .` &&
1395 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1396 { echo "$as_me: error: Working directory cannot be determined" >&2
1397 { (exit 1); exit 1; }; }
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 { echo "$as_me: error: pwd does not report name of working directory" >&2
1400 { (exit 1); exit 1; }; }
1403 # Find the source files, if location was not specified.
1404 if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
1406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$0" ||
1408 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$0" : 'X\(//\)[^/]' \| \
1410 X"$0" : 'X\(//\)$' \| \
1411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1435 ac_srcdir_defaulted=no
1437 if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1439 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1440 { (exit 1); exit 1; }; }
1442 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1445 { (exit 1); exit 1; }; }
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1465 # Report the --help message.
1467 if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1471 \`configure' configures this package to adapt to many kinds of systems.
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE. See below for descriptions of some of the useful variables.
1478 Defaults for the options are specified in brackets.
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print \`checking...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for \`--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1491 Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
1493 [$ac_default_prefix]
1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1497 By default, \`make install' will install all the files in
1498 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1499 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1500 for instance \`--prefix=\$HOME'.
1502 For better control, use the options below.
1504 Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --libdir=DIR object code libraries [EPREFIX/lib]
1512 --includedir=DIR C header files [PREFIX/include]
1513 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1514 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1515 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1516 --infodir=DIR info documentation [DATAROOTDIR/info]
1517 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1518 --mandir=DIR man documentation [DATAROOTDIR/man]
1519 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1520 --htmldir=DIR html documentation [DOCDIR]
1521 --dvidir=DIR dvi documentation [DOCDIR]
1522 --pdfdir=DIR pdf documentation [DOCDIR]
1523 --psdir=DIR ps documentation [DOCDIR]
1529 --program-prefix=PREFIX prepend PREFIX to installed program names
1530 --program-suffix=SUFFIX append SUFFIX to installed program names
1531 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1534 --build=BUILD configure for building on BUILD [guessed]
1535 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 --target=TARGET configure for building compilers for TARGET [HOST]
1540 if test -n "$ac_init_help"; then
1545 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1546 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1547 --enable-debug enable debugging no|yes|traditional [yes]
1548 --enable-dynamic enable linking built binaries with dynamic libs [no]
1549 --enable-syslog enable syslog support [auto]
1550 --enable-proctitle enable proctitle support [yes]
1551 --enable-ipv6 enable IPv6 support [auto]
1552 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1554 SLAPD (Standalone LDAP Daemon) Options:
1555 --enable-slapd enable building slapd [yes]
1556 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1557 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1558 --enable-cleartext enable cleartext passwords [yes]
1559 --enable-crypt enable crypt(3) passwords [no]
1560 --enable-lmpasswd enable LAN Manager passwords [no]
1561 --enable-spasswd enable (Cyrus) SASL password verification [no]
1562 --enable-modules enable dynamic module support [no]
1563 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1564 --enable-rlookups enable reverse lookups of client hostnames [no]
1565 --enable-slapi enable SLAPI support (experimental) [no]
1566 --enable-slp enable SLPv2 support [no]
1567 --enable-wrappers enable tcp wrapper support [no]
1569 SLAPD Backend Options:
1570 --enable-backends enable all available backends no|yes|mod
1571 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1572 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1573 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1574 --enable-ldap enable ldap backend no|yes|mod [no]
1575 --enable-meta enable metadirectory backend no|yes|mod [no]
1576 --enable-monitor enable monitor backend no|yes|mod [yes]
1577 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1578 --enable-null enable null backend no|yes|mod [no]
1579 --enable-passwd enable passwd backend no|yes|mod [no]
1580 --enable-perl enable perl backend no|yes|mod [no]
1581 --enable-relay enable relay backend no|yes|mod [yes]
1582 --enable-shell enable shell backend no|yes|mod [no]
1583 --enable-sock enable sock backend no|yes|mod [no]
1584 --enable-sql enable sql backend no|yes|mod [no]
1586 SLAPD Overlay Options:
1587 --enable-overlays enable all available overlays no|yes|mod
1588 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1589 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1590 --enable-collect Collect overlay no|yes|mod [no]
1591 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1592 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1593 --enable-deref Dereference overlay no|yes|mod [no]
1594 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1595 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1596 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1597 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1598 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1599 --enable-refint Referential Integrity overlay no|yes|mod [no]
1600 --enable-retcode Return Code testing overlay no|yes|mod [no]
1601 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1602 --enable-seqmod Sequential Modify overlay no|yes|mod [yes]
1603 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1604 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1605 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1606 --enable-valsort Value Sorting overlay no|yes|mod [no]
1608 Library Generation & Linking Options
1609 --enable-static[=PKGS] build static libraries [default=yes]
1610 --enable-shared[=PKGS] build shared libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-dependency-tracking speeds up one-time build
1614 --enable-dependency-tracking do not reject slow dependency extractors
1615 --disable-libtool-lock avoid locking (might break parallel builds)
1618 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1619 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1620 --with-subdir=DIR change default subdirectory used for installs
1621 --with-cyrus-sasl with Cyrus SASL support [auto]
1622 --with-fetch with fetch(3) URL support [auto]
1623 --with-threads with threads [auto]
1624 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1625 --with-yielding-select with implicitly yielding select [auto]
1626 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1627 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1628 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1629 --with-pic try to use only PIC/non-PIC objects [default=use
1631 --with-tags[=TAGS] include additional configurations [automatic]
1633 See INSTALL file for further details.
1635 Some influential environment variables:
1636 CC C compiler command
1637 CFLAGS C compiler flags
1638 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1639 nonstandard directory <lib dir>
1640 LIBS libraries to pass to the linker, e.g. -l<library>
1641 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1642 you have headers in a nonstandard directory <include dir>
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1652 if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655 test -d "$ac_dir" || continue
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1675 .) # We are building in place.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1699 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1709 generated by GNU Autoconf 2.61
1711 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1712 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1713 This configure script is free software; the Free Software Foundation
1714 gives unlimited permission to copy, distribute and modify it.
1716 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1717 Restrictions apply, see COPYRIGHT and LICENSE files.
1721 cat >config.log <<_ACEOF
1722 This file contains any messages produced by compilers while
1723 running configure, to aid debugging if configure makes a mistake.
1725 It was created by $as_me, which was
1726 generated by GNU Autoconf 2.61. Invocation command line was
1738 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1739 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1740 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1741 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1742 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1745 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1748 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1749 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1750 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1751 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1752 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1753 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 echo "PATH: $as_dir"
1778 # Keep a trace of the command line.
1779 # Strip out --no-create and --no-recursion so they do not pile up.
1780 # Strip out --silent because we don't want to record it for future runs.
1781 # Also quote any args containing shell meta-characters.
1782 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_must_keep_next=false
1792 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1793 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1794 | -silent | --silent | --silen | --sile | --sil)
1797 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1803 if test $ac_must_keep_next = true; then
1804 ac_must_keep_next=false # Got value, back to normal.
1807 *=* | --config-cache | -C | -disable-* | --disable-* \
1808 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1809 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1810 | -with-* | --with-* | -without-* | --without-* | --x)
1811 case "$ac_configure_args0 " in
1812 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815 -* ) ac_must_keep_next=true ;;
1818 ac_configure_args="$ac_configure_args '$ac_arg'"
1823 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1824 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826 # When interrupted or exit'd, cleanup temporary files, and complete
1827 # config.log. We remove comments because anyway the quotes in there
1828 # would cause problems or look ugly.
1829 # WARNING: Use '\'' to represent an apostrophe within the trap.
1830 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1831 trap 'exit_status=$?
1832 # Save into config.log some information that might help in debugging.
1837 ## ---------------- ##
1838 ## Cache variables. ##
1839 ## ---------------- ##
1842 # The following way of writing the cache mishandles newlines in values,
1844 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1845 eval ac_val=\$$ac_var
1849 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1850 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853 _ | IFS | as_nl) ;; #(
1854 *) $as_unset $ac_var ;;
1859 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1860 *${as_nl}ac_space=\ *)
1862 "s/'\''/'\''\\\\'\'''\''/g;
1863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1874 ## ----------------- ##
1875 ## Output variables. ##
1876 ## ----------------- ##
1879 for ac_var in $ac_subst_vars
1881 eval ac_val=\$$ac_var
1883 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1885 echo "$ac_var='\''$ac_val'\''"
1889 if test -n "$ac_subst_files"; then
1891 ## ------------------- ##
1892 ## File substitutions. ##
1893 ## ------------------- ##
1896 for ac_var in $ac_subst_files
1898 eval ac_val=\$$ac_var
1900 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1902 echo "$ac_var='\''$ac_val'\''"
1907 if test -s confdefs.h; then
1917 test "$ac_signal" != 0 &&
1918 echo "$as_me: caught signal $ac_signal"
1919 echo "$as_me: exit $exit_status"
1921 rm -f core *.core core.conftest.* &&
1922 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925 for ac_signal in 1 2 13 15; do
1926 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1931 rm -f -r conftest* confdefs.h
1933 # Predefined preprocessor variables.
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_NAME "$PACKAGE_NAME"
1940 cat >>confdefs.h <<_ACEOF
1941 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 cat >>confdefs.h <<_ACEOF
1951 #define PACKAGE_STRING "$PACKAGE_STRING"
1955 cat >>confdefs.h <<_ACEOF
1956 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 # Let the site file select an alternate cache file if it wants to.
1961 # Prefer explicitly selected file to automatically selected ones.
1962 if test -n "$CONFIG_SITE"; then
1963 set x "$CONFIG_SITE"
1964 elif test "x$prefix" != xNONE; then
1965 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1967 set x "$ac_default_prefix/share/config.site" \
1968 "$ac_default_prefix/etc/config.site"
1973 if test -r "$ac_site_file"; then
1974 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1975 echo "$as_me: loading site script $ac_site_file" >&6;}
1976 sed 's/^/| /' "$ac_site_file" >&5
1982 # Check that the precious variables saved in the cache have kept the same
1984 ac_cache_corrupted=false
1985 for ac_var in $ac_precious_vars; do
1986 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1987 eval ac_new_set=\$ac_env_${ac_var}_set
1988 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1989 eval ac_new_val=\$ac_env_${ac_var}_value
1990 case $ac_old_set,$ac_new_set in
1992 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1993 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1994 ac_cache_corrupted=: ;;
1996 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1997 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1998 ac_cache_corrupted=: ;;
2001 if test "x$ac_old_val" != "x$ac_new_val"; then
2002 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2003 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2004 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2005 echo "$as_me: former value: $ac_old_val" >&2;}
2006 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2007 echo "$as_me: current value: $ac_new_val" >&2;}
2008 ac_cache_corrupted=:
2011 # Pass precious variables to config.status.
2012 if test "$ac_new_set" = set; then
2014 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2015 *) ac_arg=$ac_var=$ac_new_val ;;
2017 case " $ac_configure_args " in
2018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2019 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023 if $ac_cache_corrupted; then
2024 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2025 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2027 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2028 { (exit 1); exit 1; }; }
2048 ac_cpp='$CPP $CPPFLAGS'
2049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2081 for ac_dir in build "$srcdir"/build; do
2082 if test -f "$ac_dir/install-sh"; then
2084 ac_install_sh="$ac_aux_dir/install-sh -c"
2086 elif test -f "$ac_dir/install.sh"; then
2088 ac_install_sh="$ac_aux_dir/install.sh -c"
2090 elif test -f "$ac_dir/shtool"; then
2092 ac_install_sh="$ac_aux_dir/shtool install -c"
2096 if test -z "$ac_aux_dir"; then
2097 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2098 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2099 { (exit 1); exit 1; }; }
2102 # These three variables are undocumented and unsupported,
2103 # and are intended to be withdrawn in a future Autoconf release.
2104 # They can cause serious problems if a builder's source tree is in a directory
2105 # whose full name contains unusual characters.
2106 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2107 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2108 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2111 eval `$ac_aux_dir/version.sh`
2112 if test -z "$OL_STRING"; then
2113 { { echo "$as_me:$LINENO: error: could not determine version" >&5
2114 echo "$as_me: error: could not determine version" >&2;}
2115 { (exit 1); exit 1; }; }
2118 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2119 ac_cv_shtool="$ac_aux_dir/shtool"
2121 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2122 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2123 { (exit 1); exit 1; }; }
2126 SHTOOL="$ac_cv_shtool"
2130 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2131 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2135 if test -d $ac_aux_dir/CVS; then
2136 OPENLDAP_CVS="(from CVS sources) "
2139 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2141 # Make sure we can run config.sub.
2142 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2143 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2144 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2145 { (exit 1); exit 1; }; }
2147 { echo "$as_me:$LINENO: checking build system type" >&5
2148 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2149 if test "${ac_cv_build+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 ac_build_alias=$build_alias
2153 test "x$ac_build_alias" = x &&
2154 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2155 test "x$ac_build_alias" = x &&
2156 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2157 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2158 { (exit 1); exit 1; }; }
2159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2165 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2166 echo "${ECHO_T}$ac_cv_build" >&6; }
2167 case $ac_cv_build in
2169 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2170 echo "$as_me: error: invalid value of canonical build" >&2;}
2171 { (exit 1); exit 1; }; };;
2174 ac_save_IFS=$IFS; IFS='-'
2180 # Remember, the first character of IFS is used to create $*,
2181 # except with old shells:
2184 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187 { echo "$as_me:$LINENO: checking host system type" >&5
2188 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2189 if test "${ac_cv_host+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 if test "x$host_alias" = x; then
2193 ac_cv_host=$ac_cv_build
2195 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2196 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2197 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2198 { (exit 1); exit 1; }; }
2202 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2203 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2207 echo "$as_me: error: invalid value of canonical host" >&2;}
2208 { (exit 1); exit 1; }; };;
2211 ac_save_IFS=$IFS; IFS='-'
2217 # Remember, the first character of IFS is used to create $*,
2218 # except with old shells:
2221 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224 { echo "$as_me:$LINENO: checking target system type" >&5
2225 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2226 if test "${ac_cv_target+set}" = set; then
2227 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 if test "x$target_alias" = x; then
2230 ac_cv_target=$ac_cv_host
2232 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2233 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2235 { (exit 1); exit 1; }; }
2239 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2240 echo "${ECHO_T}$ac_cv_target" >&6; }
2241 case $ac_cv_target in
2243 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2244 echo "$as_me: error: invalid value of canonical target" >&2;}
2245 { (exit 1); exit 1; }; };;
2247 target=$ac_cv_target
2248 ac_save_IFS=$IFS; IFS='-'
2254 # Remember, the first character of IFS is used to create $*,
2255 # except with old shells:
2258 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261 # The aliases save the names the user supplied, while $host etc.
2262 # will get canonicalized.
2263 test -n "$target_alias" &&
2264 test "$program_prefix$program_suffix$program_transform_name" = \
2266 program_prefix=${target_alias}-
2268 am__api_version="1.9"
2269 # Find a good install program. We prefer a C program (faster),
2270 # so one script is as good as another. But avoid the broken or
2271 # incompatible versions:
2272 # SysV /etc/install, /usr/sbin/install
2273 # SunOS /usr/etc/install
2274 # IRIX /sbin/install
2276 # AmigaOS /C/install, which installs bootblocks on floppy discs
2277 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2278 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2279 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2280 # OS/2's system install, which has a completely different semantic
2281 # ./install, which can be erroneously created by make from ./install.sh.
2282 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2283 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2284 if test -z "$INSTALL"; then
2285 if test "${ac_cv_path_install+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 # Account for people who put trailing slashes in PATH elements.
2295 ./ | .// | /cC/* | \
2296 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2297 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300 # OSF1 and SCO ODT 3.0 have their own names for install.
2301 # Don't use installbsd from OSF since it installs stuff as root
2303 for ac_prog in ginstall scoinst install; do
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2306 if test $ac_prog = install &&
2307 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2308 # AIX install. It has an incompatible calling convention.
2310 elif test $ac_prog = install &&
2311 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312 # program-specific install script used by HP pwplus--don't use.
2315 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2328 if test "${ac_cv_path_install+set}" = set; then
2329 INSTALL=$ac_cv_path_install
2331 # As a last resort, use the slow shell script. Don't cache a
2332 # value for INSTALL within a source directory, because that will
2333 # break other packages using the cache if that directory is
2334 # removed, or if the value is a relative name.
2335 INSTALL=$ac_install_sh
2338 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2339 echo "${ECHO_T}$INSTALL" >&6; }
2341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2342 # It thinks the first close brace ends the variable substitution.
2343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2350 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 echo timestamp > conftest.file
2354 # Do `set' in a subshell so we don't clobber the current shell's
2355 # arguments. Must try -L first in case configure is actually a
2356 # symlink; some systems play weird games with the mod time of symlinks
2357 # (eg FreeBSD returns the mod time of the symlink's containing
2360 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2361 if test "$*" = "X"; then
2363 set X `ls -t $srcdir/configure conftest.file`
2366 if test "$*" != "X $srcdir/configure conftest.file" \
2367 && test "$*" != "X conftest.file $srcdir/configure"; then
2369 # If neither matched, then we have a broken ls. This can happen
2370 # if, for instance, CONFIG_SHELL is bash and it inherits a
2371 # broken ls alias from the environment. This has actually
2372 # happened. Such a system could not be considered "sane".
2373 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2374 alias in your environment" >&5
2375 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2376 alias in your environment" >&2;}
2377 { (exit 1); exit 1; }; }
2380 test "$2" = conftest.file
2386 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2387 Check your system clock" >&5
2388 echo "$as_me: error: newly created file is older than distributed files!
2389 Check your system clock" >&2;}
2390 { (exit 1); exit 1; }; }
2392 { echo "$as_me:$LINENO: result: yes" >&5
2393 echo "${ECHO_T}yes" >&6; }
2394 test "$program_prefix" != NONE &&
2395 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2396 # Use a double $ so make ignores it.
2397 test "$program_suffix" != NONE &&
2398 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2399 # Double any \ or $. echo might interpret backslashes.
2400 # By default was `s,x,x', remove it if useless.
2401 cat <<\_ACEOF >conftest.sed
2402 s/[\\$]/&&/g;s/;s,x,x,$//
2404 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 # expand $ac_aux_dir to an absolute path
2408 am_aux_dir=`cd $ac_aux_dir && pwd`
2410 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2411 # Use eval to expand $SHELL
2412 if eval "$MISSING --run true"; then
2413 am_missing_run="$MISSING --run "
2416 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2417 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2421 # We used to keeping the `.' as first argument, in order to
2422 # allow $(mkdir_p) to be used without argument. As in
2423 # $(mkdir_p) $(somedir)
2424 # where $(somedir) is conditionally defined. However this is wrong
2426 # 1. if the package is installed by a user who cannot write `.'
2427 # make install will fail,
2428 # 2. the above comment should most certainly read
2429 # $(mkdir_p) $(DESTDIR)$(somedir)
2430 # so it does not work when $(somedir) is undefined and
2431 # $(DESTDIR) is not.
2432 # To support the latter case, we have to write
2433 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2434 # so the `.' trick is pointless.
2435 mkdir_p='mkdir -p --'
2437 # On NextStep and OpenStep, the `mkdir' command does not
2438 # recognize any option. It will interpret all options as
2439 # directories to create, and then abort because `.' already
2441 for d in ./-p ./--version;
2443 test -d $d && rmdir $d
2445 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2446 if test -f "$ac_aux_dir/mkinstalldirs"; then
2447 mkdir_p='$(mkinstalldirs)'
2449 mkdir_p='$(install_sh) -d'
2453 for ac_prog in gawk mawk nawk awk
2455 # Extract the first word of "$ac_prog", so it can be a program name with args.
2456 set dummy $ac_prog; ac_word=$2
2457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2459 if test "${ac_cv_prog_AWK+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 if test -n "$AWK"; then
2463 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469 test -z "$as_dir" && as_dir=.
2470 for ac_exec_ext in '' $ac_executable_extensions; do
2471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472 ac_cv_prog_AWK="$ac_prog"
2473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483 if test -n "$AWK"; then
2484 { echo "$as_me:$LINENO: result: $AWK" >&5
2485 echo "${ECHO_T}$AWK" >&6; }
2487 { echo "$as_me:$LINENO: result: no" >&5
2488 echo "${ECHO_T}no" >&6; }
2492 test -n "$AWK" && break
2495 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2497 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2498 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 cat >conftest.make <<\_ACEOF
2504 @echo '@@@%%%=$(MAKE)=@@@%%%'
2506 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2507 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2509 eval ac_cv_prog_make_${ac_make}_set=yes;;
2511 eval ac_cv_prog_make_${ac_make}_set=no;;
2515 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2516 { echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2522 SET_MAKE="MAKE=${MAKE-make}"
2525 rm -rf .tst 2>/dev/null
2526 mkdir .tst 2>/dev/null
2527 if test -d .tst; then
2532 rmdir .tst 2>/dev/null
2534 # test to see if srcdir already configured
2535 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2536 test -f $srcdir/config.status; then
2537 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2538 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2539 { (exit 1); exit 1; }; }
2542 # test whether we have cygpath
2543 if test -z "$CYGPATH_W"; then
2544 if (cygpath --version) >/dev/null 2>/dev/null; then
2545 CYGPATH_W='cygpath -w'
2552 # Define the identity of the package.
2557 # Some tools Automake needs.
2559 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2573 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2575 # Installed binaries are usually stripped using `strip' when the user
2576 # run `make install-strip'. However `strip' might not be the right
2577 # tool to use in cross-compilation environments, therefore Automake
2578 # will honor the `STRIP' environment variable to overrule this program.
2579 if test "$cross_compiling" != no; then
2580 if test -n "$ac_tool_prefix"; then
2581 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2582 set dummy ${ac_tool_prefix}strip; ac_word=$2
2583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2585 if test "${ac_cv_prog_STRIP+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2588 if test -n "$STRIP"; then
2589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2595 test -z "$as_dir" && as_dir=.
2596 for ac_exec_ext in '' $ac_executable_extensions; do
2597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2598 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 STRIP=$ac_cv_prog_STRIP
2609 if test -n "$STRIP"; then
2610 { echo "$as_me:$LINENO: result: $STRIP" >&5
2611 echo "${ECHO_T}$STRIP" >&6; }
2613 { echo "$as_me:$LINENO: result: no" >&5
2614 echo "${ECHO_T}no" >&6; }
2619 if test -z "$ac_cv_prog_STRIP"; then
2621 # Extract the first word of "strip", so it can be a program name with args.
2622 set dummy strip; ac_word=$2
2623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2625 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 if test -n "$ac_ct_STRIP"; then
2629 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 test -z "$as_dir" && as_dir=.
2636 for ac_exec_ext in '' $ac_executable_extensions; do
2637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2638 ac_cv_prog_ac_ct_STRIP="strip"
2639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2649 if test -n "$ac_ct_STRIP"; then
2650 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2651 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2653 { echo "$as_me:$LINENO: result: no" >&5
2654 echo "${ECHO_T}no" >&6; }
2657 if test "x$ac_ct_STRIP" = x; then
2660 case $cross_compiling:$ac_tool_warned in
2662 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2663 whose name does not start with the host triplet. If you think this
2664 configuration is useful to you, please write to autoconf@gnu.org." >&5
2665 echo "$as_me: 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." >&2;}
2668 ac_tool_warned=yes ;;
2673 STRIP="$ac_cv_prog_STRIP"
2677 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2679 # We need awk for the "check" target. The system "awk" is bad on
2681 # Always define AMTAR for backward compatibility.
2683 AMTAR=${AMTAR-"${am_missing_run}tar"}
2685 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2691 cat >>confdefs.h <<_ACEOF
2692 #define OPENLDAP_PACKAGE "$PACKAGE"
2696 cat >>confdefs.h <<_ACEOF
2697 #define OPENLDAP_VERSION "$VERSION"
2702 cat >>confdefs.h <<_ACEOF
2703 #define LDAP_VENDOR_VERSION $OL_API_INC
2707 cat >>confdefs.h <<_ACEOF
2708 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2712 cat >>confdefs.h <<_ACEOF
2713 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2717 cat >>confdefs.h <<_ACEOF
2718 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2722 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2724 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2726 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2734 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2736 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2738 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741 { echo "$as_me:$LINENO: checking configure arguments" >&5
2742 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2747 ldap_subdir="/openldap"
2750 # Check whether --with-subdir was given.
2751 if test "${with_subdir+set}" = set; then
2752 withval=$with_subdir; case "$withval" in
2758 ldap_subdir="$withval"
2761 ldap_subdir="/$withval"
2768 # OpenLDAP --enable-debug
2770 # Check whether --enable-debug was given.
2771 if test "${enable_debug+set}" = set; then
2772 enableval=$enable_debug;
2774 for ol_val in no yes traditional ; do
2775 if test "$enableval" = "$ol_val" ; then
2779 if test "$ol_arg" = "invalid" ; then
2780 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2781 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2782 { (exit 1); exit 1; }; }
2784 ol_enable_debug="$ol_arg"
2790 # end --enable-debug
2791 # OpenLDAP --enable-dynamic
2793 # Check whether --enable-dynamic was given.
2794 if test "${enable_dynamic+set}" = set; then
2795 enableval=$enable_dynamic;
2797 for ol_val in auto yes no ; do
2798 if test "$enableval" = "$ol_val" ; then
2802 if test "$ol_arg" = "invalid" ; then
2803 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2804 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2805 { (exit 1); exit 1; }; }
2807 ol_enable_dynamic="$ol_arg"
2810 ol_enable_dynamic=no
2813 # end --enable-dynamic
2814 # OpenLDAP --enable-syslog
2816 # Check whether --enable-syslog was given.
2817 if test "${enable_syslog+set}" = set; then
2818 enableval=$enable_syslog;
2820 for ol_val in auto yes no ; do
2821 if test "$enableval" = "$ol_val" ; then
2825 if test "$ol_arg" = "invalid" ; then
2826 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2827 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2828 { (exit 1); exit 1; }; }
2830 ol_enable_syslog="$ol_arg"
2833 ol_enable_syslog=auto
2836 # end --enable-syslog
2837 # OpenLDAP --enable-proctitle
2839 # Check whether --enable-proctitle was given.
2840 if test "${enable_proctitle+set}" = set; then
2841 enableval=$enable_proctitle;
2843 for ol_val in auto yes no ; do
2844 if test "$enableval" = "$ol_val" ; then
2848 if test "$ol_arg" = "invalid" ; then
2849 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2850 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2851 { (exit 1); exit 1; }; }
2853 ol_enable_proctitle="$ol_arg"
2856 ol_enable_proctitle=yes
2859 # end --enable-proctitle
2860 ol_enable_referrals=${ol_enable_referrals-no}
2861 # OpenLDAP --enable-ipv6
2863 # Check whether --enable-ipv6 was given.
2864 if test "${enable_ipv6+set}" = set; then
2865 enableval=$enable_ipv6;
2867 for ol_val in auto yes no ; do
2868 if test "$enableval" = "$ol_val" ; then
2872 if test "$ol_arg" = "invalid" ; then
2873 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2874 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2875 { (exit 1); exit 1; }; }
2877 ol_enable_ipv6="$ol_arg"
2884 # OpenLDAP --enable-local
2886 # Check whether --enable-local was given.
2887 if test "${enable_local+set}" = set; then
2888 enableval=$enable_local;
2890 for ol_val in auto yes no ; do
2891 if test "$enableval" = "$ol_val" ; then
2895 if test "$ol_arg" = "invalid" ; then
2896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2897 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2898 { (exit 1); exit 1; }; }
2900 ol_enable_local="$ol_arg"
2903 ol_enable_local=auto
2906 # end --enable-local
2908 # OpenLDAP --with-cyrus_sasl
2910 # Check whether --with-cyrus_sasl was given.
2911 if test "${with_cyrus_sasl+set}" = set; then
2912 withval=$with_cyrus_sasl;
2914 for ol_val in auto yes no ; do
2915 if test "$withval" = "$ol_val" ; then
2919 if test "$ol_arg" = "invalid" ; then
2920 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2921 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2922 { (exit 1); exit 1; }; }
2924 ol_with_cyrus_sasl="$ol_arg"
2927 ol_with_cyrus_sasl="auto"
2929 # end --with-cyrus_sasl
2931 # OpenLDAP --with-fetch
2933 # Check whether --with-fetch was given.
2934 if test "${with_fetch+set}" = set; then
2935 withval=$with_fetch;
2937 for ol_val in auto yes no ; do
2938 if test "$withval" = "$ol_val" ; then
2942 if test "$ol_arg" = "invalid" ; then
2943 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2944 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2945 { (exit 1); exit 1; }; }
2947 ol_with_fetch="$ol_arg"
2950 ol_with_fetch="auto"
2954 # OpenLDAP --with-threads
2956 # Check whether --with-threads was given.
2957 if test "${with_threads+set}" = set; then
2958 withval=$with_threads;
2960 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2961 if test "$withval" = "$ol_val" ; then
2965 if test "$ol_arg" = "invalid" ; then
2966 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2967 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2968 { (exit 1); exit 1; }; }
2970 ol_with_threads="$ol_arg"
2973 ol_with_threads="auto"
2975 # end --with-threads
2977 # OpenLDAP --with-tls
2979 # Check whether --with-tls was given.
2980 if test "${with_tls+set}" = set; then
2983 for ol_val in auto openssl gnutls moznss yes no ; do
2984 if test "$withval" = "$ol_val" ; then
2988 if test "$ol_arg" = "invalid" ; then
2989 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2990 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2991 { (exit 1); exit 1; }; }
2993 ol_with_tls="$ol_arg"
3000 # OpenLDAP --with-yielding_select
3002 # Check whether --with-yielding_select was given.
3003 if test "${with_yielding_select+set}" = set; then
3004 withval=$with_yielding_select;
3006 for ol_val in auto yes no manual ; do
3007 if test "$withval" = "$ol_val" ; then
3011 if test "$ol_arg" = "invalid" ; then
3012 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3013 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3014 { (exit 1); exit 1; }; }
3016 ol_with_yielding_select="$ol_arg"
3019 ol_with_yielding_select="auto"
3021 # end --with-yielding_select
3023 # OpenLDAP --with-mp
3025 # Check whether --with-mp was given.
3026 if test "${with_mp+set}" = set; then
3029 for ol_val in auto longlong long bignum gmp yes no ; do
3030 if test "$withval" = "$ol_val" ; then
3034 if test "$ol_arg" = "invalid" ; then
3035 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3036 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3037 { (exit 1); exit 1; }; }
3039 ol_with_mp="$ol_arg"
3046 # OpenLDAP --with-odbc
3048 # Check whether --with-odbc was given.
3049 if test "${with_odbc+set}" = set; then
3052 for ol_val in auto iodbc unixodbc odbc32 ; do
3053 if test "$withval" = "$ol_val" ; then
3057 if test "$ol_arg" = "invalid" ; then
3058 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3059 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3060 { (exit 1); exit 1; }; }
3062 ol_with_odbc="$ol_arg"
3071 # Check whether --enable-xxslapdoptions was given.
3072 if test "${enable_xxslapdoptions+set}" = set; then
3073 enableval=$enable_xxslapdoptions;
3076 # OpenLDAP --enable-slapd
3078 # Check whether --enable-slapd was given.
3079 if test "${enable_slapd+set}" = set; then
3080 enableval=$enable_slapd;
3082 for ol_val in auto yes no ; do
3083 if test "$enableval" = "$ol_val" ; then
3087 if test "$ol_arg" = "invalid" ; then
3088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3089 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3090 { (exit 1); exit 1; }; }
3092 ol_enable_slapd="$ol_arg"
3098 # end --enable-slapd
3099 # OpenLDAP --enable-dynacl
3101 # Check whether --enable-dynacl was given.
3102 if test "${enable_dynacl+set}" = set; then
3103 enableval=$enable_dynacl;
3105 for ol_val in auto yes no ; do
3106 if test "$enableval" = "$ol_val" ; then
3110 if test "$ol_arg" = "invalid" ; then
3111 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3112 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3113 { (exit 1); exit 1; }; }
3115 ol_enable_dynacl="$ol_arg"
3121 # end --enable-dynacl
3122 # OpenLDAP --enable-aci
3124 # Check whether --enable-aci was given.
3125 if test "${enable_aci+set}" = set; then
3126 enableval=$enable_aci;
3128 for ol_val in no yes mod ; do
3129 if test "$enableval" = "$ol_val" ; then
3133 if test "$ol_arg" = "invalid" ; then
3134 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3135 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3136 { (exit 1); exit 1; }; }
3138 ol_enable_aci="$ol_arg"
3145 # OpenLDAP --enable-cleartext
3147 # Check whether --enable-cleartext was given.
3148 if test "${enable_cleartext+set}" = set; then
3149 enableval=$enable_cleartext;
3151 for ol_val in auto yes no ; do
3152 if test "$enableval" = "$ol_val" ; then
3156 if test "$ol_arg" = "invalid" ; then
3157 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3158 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3159 { (exit 1); exit 1; }; }
3161 ol_enable_cleartext="$ol_arg"
3164 ol_enable_cleartext=yes
3167 # end --enable-cleartext
3168 # OpenLDAP --enable-crypt
3170 # Check whether --enable-crypt was given.
3171 if test "${enable_crypt+set}" = set; then
3172 enableval=$enable_crypt;
3174 for ol_val in auto yes no ; do
3175 if test "$enableval" = "$ol_val" ; then
3179 if test "$ol_arg" = "invalid" ; then
3180 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3181 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3182 { (exit 1); exit 1; }; }
3184 ol_enable_crypt="$ol_arg"
3190 # end --enable-crypt
3191 # OpenLDAP --enable-lmpasswd
3193 # Check whether --enable-lmpasswd was given.
3194 if test "${enable_lmpasswd+set}" = set; then
3195 enableval=$enable_lmpasswd;
3197 for ol_val in auto yes no ; do
3198 if test "$enableval" = "$ol_val" ; then
3202 if test "$ol_arg" = "invalid" ; then
3203 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3204 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3205 { (exit 1); exit 1; }; }
3207 ol_enable_lmpasswd="$ol_arg"
3210 ol_enable_lmpasswd=no
3213 # end --enable-lmpasswd
3214 # OpenLDAP --enable-spasswd
3216 # Check whether --enable-spasswd was given.
3217 if test "${enable_spasswd+set}" = set; then
3218 enableval=$enable_spasswd;
3220 for ol_val in auto yes no ; do
3221 if test "$enableval" = "$ol_val" ; then
3225 if test "$ol_arg" = "invalid" ; then
3226 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3227 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3228 { (exit 1); exit 1; }; }
3230 ol_enable_spasswd="$ol_arg"
3233 ol_enable_spasswd=no
3236 # end --enable-spasswd
3237 # OpenLDAP --enable-modules
3239 # Check whether --enable-modules was given.
3240 if test "${enable_modules+set}" = set; then
3241 enableval=$enable_modules;
3243 for ol_val in auto yes no ; do
3244 if test "$enableval" = "$ol_val" ; then
3248 if test "$ol_arg" = "invalid" ; then
3249 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3250 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3251 { (exit 1); exit 1; }; }
3253 ol_enable_modules="$ol_arg"
3256 ol_enable_modules=no
3259 # end --enable-modules
3260 # OpenLDAP --enable-rewrite
3262 # Check whether --enable-rewrite was given.
3263 if test "${enable_rewrite+set}" = set; then
3264 enableval=$enable_rewrite;
3266 for ol_val in auto yes no ; do
3267 if test "$enableval" = "$ol_val" ; then
3271 if test "$ol_arg" = "invalid" ; then
3272 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3273 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3274 { (exit 1); exit 1; }; }
3276 ol_enable_rewrite="$ol_arg"
3279 ol_enable_rewrite=auto
3282 # end --enable-rewrite
3283 # OpenLDAP --enable-rlookups
3285 # Check whether --enable-rlookups was given.
3286 if test "${enable_rlookups+set}" = set; then
3287 enableval=$enable_rlookups;
3289 for ol_val in auto yes no ; do
3290 if test "$enableval" = "$ol_val" ; then
3294 if test "$ol_arg" = "invalid" ; then
3295 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3296 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3297 { (exit 1); exit 1; }; }
3299 ol_enable_rlookups="$ol_arg"
3302 ol_enable_rlookups=no
3305 # end --enable-rlookups
3306 # OpenLDAP --enable-slapi
3308 # Check whether --enable-slapi was given.
3309 if test "${enable_slapi+set}" = set; then
3310 enableval=$enable_slapi;
3312 for ol_val in auto yes no ; do
3313 if test "$enableval" = "$ol_val" ; then
3317 if test "$ol_arg" = "invalid" ; then
3318 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3319 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3320 { (exit 1); exit 1; }; }
3322 ol_enable_slapi="$ol_arg"
3328 # end --enable-slapi
3329 # OpenLDAP --enable-slp
3331 # Check whether --enable-slp was given.
3332 if test "${enable_slp+set}" = set; then
3333 enableval=$enable_slp;
3335 for ol_val in auto yes no ; do
3336 if test "$enableval" = "$ol_val" ; then
3340 if test "$ol_arg" = "invalid" ; then
3341 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3342 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3343 { (exit 1); exit 1; }; }
3345 ol_enable_slp="$ol_arg"
3352 # OpenLDAP --enable-wrappers
3354 # Check whether --enable-wrappers was given.
3355 if test "${enable_wrappers+set}" = set; then
3356 enableval=$enable_wrappers;
3358 for ol_val in auto yes no ; do
3359 if test "$enableval" = "$ol_val" ; then
3363 if test "$ol_arg" = "invalid" ; then
3364 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3365 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3366 { (exit 1); exit 1; }; }
3368 ol_enable_wrappers="$ol_arg"
3371 ol_enable_wrappers=no
3374 # end --enable-wrappers
3391 # Check whether --enable-xxslapbackends was given.
3392 if test "${enable_xxslapbackends+set}" = set; then
3393 enableval=$enable_xxslapbackends;
3397 # OpenLDAP --enable-backends
3399 # Check whether --enable-backends was given.
3400 if test "${enable_backends+set}" = set; then
3401 enableval=$enable_backends;
3403 for ol_val in no yes mod ; do
3404 if test "$enableval" = "$ol_val" ; then
3408 if test "$ol_arg" = "invalid" ; then
3409 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3410 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3411 { (exit 1); exit 1; }; }
3413 ol_enable_backends="$ol_arg"
3417 # end --enable-backends
3418 # OpenLDAP --enable-bdb
3420 # Check whether --enable-bdb was given.
3421 if test "${enable_bdb+set}" = set; then
3422 enableval=$enable_bdb;
3424 for ol_val in no yes mod ; do
3425 if test "$enableval" = "$ol_val" ; then
3429 if test "$ol_arg" = "invalid" ; then
3430 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3431 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3432 { (exit 1); exit 1; }; }
3434 ol_enable_bdb="$ol_arg"
3437 ol_enable_bdb=${ol_enable_backends:-no}
3441 # OpenLDAP --enable-dnssrv
3443 # Check whether --enable-dnssrv was given.
3444 if test "${enable_dnssrv+set}" = set; then
3445 enableval=$enable_dnssrv;
3447 for ol_val in no yes mod ; do
3448 if test "$enableval" = "$ol_val" ; then
3452 if test "$ol_arg" = "invalid" ; then
3453 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3454 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3455 { (exit 1); exit 1; }; }
3457 ol_enable_dnssrv="$ol_arg"
3460 ol_enable_dnssrv=${ol_enable_backends:-no}
3463 # end --enable-dnssrv
3464 # OpenLDAP --enable-hdb
3466 # Check whether --enable-hdb was given.
3467 if test "${enable_hdb+set}" = set; then
3468 enableval=$enable_hdb;
3470 for ol_val in no yes mod ; do
3471 if test "$enableval" = "$ol_val" ; then
3475 if test "$ol_arg" = "invalid" ; then
3476 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3477 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3478 { (exit 1); exit 1; }; }
3480 ol_enable_hdb="$ol_arg"
3483 ol_enable_hdb=${ol_enable_backends:-yes}
3487 # OpenLDAP --enable-ldap
3489 # Check whether --enable-ldap was given.
3490 if test "${enable_ldap+set}" = set; then
3491 enableval=$enable_ldap;
3493 for ol_val in no yes mod ; do
3494 if test "$enableval" = "$ol_val" ; then
3498 if test "$ol_arg" = "invalid" ; then
3499 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3500 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3501 { (exit 1); exit 1; }; }
3503 ol_enable_ldap="$ol_arg"
3506 ol_enable_ldap=${ol_enable_backends:-no}
3510 # OpenLDAP --enable-meta
3512 # Check whether --enable-meta was given.
3513 if test "${enable_meta+set}" = set; then
3514 enableval=$enable_meta;
3516 for ol_val in no yes mod ; do
3517 if test "$enableval" = "$ol_val" ; then
3521 if test "$ol_arg" = "invalid" ; then
3522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3523 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3524 { (exit 1); exit 1; }; }
3526 ol_enable_meta="$ol_arg"
3529 ol_enable_meta=${ol_enable_backends:-no}
3533 # OpenLDAP --enable-monitor
3535 # Check whether --enable-monitor was given.
3536 if test "${enable_monitor+set}" = set; then
3537 enableval=$enable_monitor;
3539 for ol_val in no yes mod ; do
3540 if test "$enableval" = "$ol_val" ; then
3544 if test "$ol_arg" = "invalid" ; then
3545 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3546 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3547 { (exit 1); exit 1; }; }
3549 ol_enable_monitor="$ol_arg"
3552 ol_enable_monitor=${ol_enable_backends:-yes}
3555 # end --enable-monitor
3556 # OpenLDAP --enable-ndb
3558 # Check whether --enable-ndb was given.
3559 if test "${enable_ndb+set}" = set; then
3560 enableval=$enable_ndb;
3562 for ol_val in no yes mod ; do
3563 if test "$enableval" = "$ol_val" ; then
3567 if test "$ol_arg" = "invalid" ; then
3568 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3569 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3570 { (exit 1); exit 1; }; }
3572 ol_enable_ndb="$ol_arg"
3575 ol_enable_ndb=${ol_enable_backends:-no}
3579 # OpenLDAP --enable-null
3581 # Check whether --enable-null was given.
3582 if test "${enable_null+set}" = set; then
3583 enableval=$enable_null;
3585 for ol_val in no yes mod ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3592 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3593 { (exit 1); exit 1; }; }
3595 ol_enable_null="$ol_arg"
3598 ol_enable_null=${ol_enable_backends:-no}
3602 # OpenLDAP --enable-passwd
3604 # Check whether --enable-passwd was given.
3605 if test "${enable_passwd+set}" = set; then
3606 enableval=$enable_passwd;
3608 for ol_val in no yes mod ; do
3609 if test "$enableval" = "$ol_val" ; then
3613 if test "$ol_arg" = "invalid" ; then
3614 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3615 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3616 { (exit 1); exit 1; }; }
3618 ol_enable_passwd="$ol_arg"
3621 ol_enable_passwd=${ol_enable_backends:-no}
3624 # end --enable-passwd
3625 # OpenLDAP --enable-perl
3627 # Check whether --enable-perl was given.
3628 if test "${enable_perl+set}" = set; then
3629 enableval=$enable_perl;
3631 for ol_val in no yes mod ; do
3632 if test "$enableval" = "$ol_val" ; then
3636 if test "$ol_arg" = "invalid" ; then
3637 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3638 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3639 { (exit 1); exit 1; }; }
3641 ol_enable_perl="$ol_arg"
3644 ol_enable_perl=${ol_enable_backends:-no}
3648 # OpenLDAP --enable-relay
3650 # Check whether --enable-relay was given.
3651 if test "${enable_relay+set}" = set; then
3652 enableval=$enable_relay;
3654 for ol_val in no yes mod ; do
3655 if test "$enableval" = "$ol_val" ; then
3659 if test "$ol_arg" = "invalid" ; then
3660 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3661 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3662 { (exit 1); exit 1; }; }
3664 ol_enable_relay="$ol_arg"
3667 ol_enable_relay=${ol_enable_backends:-yes}
3670 # end --enable-relay
3671 # OpenLDAP --enable-shell
3673 # Check whether --enable-shell was given.
3674 if test "${enable_shell+set}" = set; then
3675 enableval=$enable_shell;
3677 for ol_val in no yes mod ; do
3678 if test "$enableval" = "$ol_val" ; then
3682 if test "$ol_arg" = "invalid" ; then
3683 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3684 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3685 { (exit 1); exit 1; }; }
3687 ol_enable_shell="$ol_arg"
3690 ol_enable_shell=${ol_enable_backends:-no}
3693 # end --enable-shell
3694 # OpenLDAP --enable-sock
3696 # Check whether --enable-sock was given.
3697 if test "${enable_sock+set}" = set; then
3698 enableval=$enable_sock;
3700 for ol_val in no yes mod ; do
3701 if test "$enableval" = "$ol_val" ; then
3705 if test "$ol_arg" = "invalid" ; then
3706 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3707 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3708 { (exit 1); exit 1; }; }
3710 ol_enable_sock="$ol_arg"
3713 ol_enable_sock=${ol_enable_backends:-no}
3717 # OpenLDAP --enable-sql
3719 # Check whether --enable-sql was given.
3720 if test "${enable_sql+set}" = set; then
3721 enableval=$enable_sql;
3723 for ol_val in no yes mod ; do
3724 if test "$enableval" = "$ol_val" ; then
3728 if test "$ol_arg" = "invalid" ; then
3729 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3730 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3731 { (exit 1); exit 1; }; }
3733 ol_enable_sql="$ol_arg"
3736 ol_enable_sql=${ol_enable_backends:-no}
3741 Overlays="accesslog \
3761 # Check whether --enable-xxslapoverlays was given.
3762 if test "${enable_xxslapoverlays+set}" = set; then
3763 enableval=$enable_xxslapoverlays;
3767 # OpenLDAP --enable-overlays
3769 # Check whether --enable-overlays was given.
3770 if test "${enable_overlays+set}" = set; then
3771 enableval=$enable_overlays;
3773 for ol_val in no yes mod ; do
3774 if test "$enableval" = "$ol_val" ; then
3778 if test "$ol_arg" = "invalid" ; then
3779 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3780 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3781 { (exit 1); exit 1; }; }
3783 ol_enable_overlays="$ol_arg"
3787 # end --enable-overlays
3788 # OpenLDAP --enable-accesslog
3790 # Check whether --enable-accesslog was given.
3791 if test "${enable_accesslog+set}" = set; then
3792 enableval=$enable_accesslog;
3794 for ol_val in no yes mod ; do
3795 if test "$enableval" = "$ol_val" ; then
3799 if test "$ol_arg" = "invalid" ; then
3800 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3801 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3802 { (exit 1); exit 1; }; }
3804 ol_enable_accesslog="$ol_arg"
3807 ol_enable_accesslog=${ol_enable_overlays:-no}
3810 # end --enable-accesslog
3812 # OpenLDAP --enable-auditlog
3814 # Check whether --enable-auditlog was given.
3815 if test "${enable_auditlog+set}" = set; then
3816 enableval=$enable_auditlog;
3818 for ol_val in no yes mod ; do
3819 if test "$enableval" = "$ol_val" ; then
3823 if test "$ol_arg" = "invalid" ; then
3824 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3825 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3826 { (exit 1); exit 1; }; }
3828 ol_enable_auditlog="$ol_arg"
3831 ol_enable_auditlog=${ol_enable_overlays:-no}
3834 # end --enable-auditlog
3836 # OpenLDAP --enable-collect
3838 # Check whether --enable-collect was given.
3839 if test "${enable_collect+set}" = set; then
3840 enableval=$enable_collect;
3842 for ol_val in no yes mod ; do
3843 if test "$enableval" = "$ol_val" ; then
3847 if test "$ol_arg" = "invalid" ; then
3848 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3849 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3850 { (exit 1); exit 1; }; }
3852 ol_enable_collect="$ol_arg"
3855 ol_enable_collect=${ol_enable_overlays:-no}
3858 # end --enable-collect
3860 # OpenLDAP --enable-constraint
3862 # Check whether --enable-constraint was given.
3863 if test "${enable_constraint+set}" = set; then
3864 enableval=$enable_constraint;
3866 for ol_val in no yes mod ; do
3867 if test "$enableval" = "$ol_val" ; then
3871 if test "$ol_arg" = "invalid" ; then
3872 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3873 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3874 { (exit 1); exit 1; }; }
3876 ol_enable_constraint="$ol_arg"
3879 ol_enable_constraint=${ol_enable_overlays:-no}
3882 # end --enable-constraint
3884 # OpenLDAP --enable-dds
3886 # Check whether --enable-dds was given.
3887 if test "${enable_dds+set}" = set; then
3888 enableval=$enable_dds;
3890 for ol_val in no yes mod ; do
3891 if test "$enableval" = "$ol_val" ; then
3895 if test "$ol_arg" = "invalid" ; then
3896 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3897 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3898 { (exit 1); exit 1; }; }
3900 ol_enable_dds="$ol_arg"
3903 ol_enable_dds=${ol_enable_overlays:-no}
3908 # OpenLDAP --enable-deref
3910 # Check whether --enable-deref was given.
3911 if test "${enable_deref+set}" = set; then
3912 enableval=$enable_deref;
3914 for ol_val in no yes mod ; do
3915 if test "$enableval" = "$ol_val" ; then
3919 if test "$ol_arg" = "invalid" ; then
3920 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3921 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3922 { (exit 1); exit 1; }; }
3924 ol_enable_deref="$ol_arg"
3927 ol_enable_deref=${ol_enable_overlays:-no}
3930 # end --enable-deref
3932 # OpenLDAP --enable-dyngroup
3934 # Check whether --enable-dyngroup was given.
3935 if test "${enable_dyngroup+set}" = set; then
3936 enableval=$enable_dyngroup;
3938 for ol_val in no yes mod ; do
3939 if test "$enableval" = "$ol_val" ; then
3943 if test "$ol_arg" = "invalid" ; then
3944 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3945 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3946 { (exit 1); exit 1; }; }
3948 ol_enable_dyngroup="$ol_arg"
3951 ol_enable_dyngroup=${ol_enable_overlays:-no}
3954 # end --enable-dyngroup
3956 # OpenLDAP --enable-dynlist
3958 # Check whether --enable-dynlist was given.
3959 if test "${enable_dynlist+set}" = set; then
3960 enableval=$enable_dynlist;
3962 for ol_val in no yes mod ; do
3963 if test "$enableval" = "$ol_val" ; then
3967 if test "$ol_arg" = "invalid" ; then
3968 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3969 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3970 { (exit 1); exit 1; }; }
3972 ol_enable_dynlist="$ol_arg"
3975 ol_enable_dynlist=${ol_enable_overlays:-no}
3978 # end --enable-dynlist
3980 # OpenLDAP --enable-memberof
3982 # Check whether --enable-memberof was given.
3983 if test "${enable_memberof+set}" = set; then
3984 enableval=$enable_memberof;
3986 for ol_val in no yes mod ; do
3987 if test "$enableval" = "$ol_val" ; then
3991 if test "$ol_arg" = "invalid" ; then
3992 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3993 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3994 { (exit 1); exit 1; }; }
3996 ol_enable_memberof="$ol_arg"
3999 ol_enable_memberof=${ol_enable_overlays:-no}
4002 # end --enable-memberof
4004 # OpenLDAP --enable-ppolicy
4006 # Check whether --enable-ppolicy was given.
4007 if test "${enable_ppolicy+set}" = set; then
4008 enableval=$enable_ppolicy;
4010 for ol_val in no yes mod ; do
4011 if test "$enableval" = "$ol_val" ; then
4015 if test "$ol_arg" = "invalid" ; then
4016 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4017 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4018 { (exit 1); exit 1; }; }
4020 ol_enable_ppolicy="$ol_arg"
4023 ol_enable_ppolicy=${ol_enable_overlays:-no}
4026 # end --enable-ppolicy
4028 # OpenLDAP --enable-proxycache
4030 # Check whether --enable-proxycache was given.
4031 if test "${enable_proxycache+set}" = set; then
4032 enableval=$enable_proxycache;
4034 for ol_val in no yes mod ; do
4035 if test "$enableval" = "$ol_val" ; then
4039 if test "$ol_arg" = "invalid" ; then
4040 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4041 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4042 { (exit 1); exit 1; }; }
4044 ol_enable_proxycache="$ol_arg"
4047 ol_enable_proxycache=${ol_enable_overlays:-no}
4050 # end --enable-proxycache
4052 # OpenLDAP --enable-refint
4054 # Check whether --enable-refint was given.
4055 if test "${enable_refint+set}" = set; then
4056 enableval=$enable_refint;
4058 for ol_val in no yes mod ; do
4059 if test "$enableval" = "$ol_val" ; then
4063 if test "$ol_arg" = "invalid" ; then
4064 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4065 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4066 { (exit 1); exit 1; }; }
4068 ol_enable_refint="$ol_arg"
4071 ol_enable_refint=${ol_enable_overlays:-no}
4074 # end --enable-refint
4076 # OpenLDAP --enable-retcode
4078 # Check whether --enable-retcode was given.
4079 if test "${enable_retcode+set}" = set; then
4080 enableval=$enable_retcode;
4082 for ol_val in no yes mod ; do
4083 if test "$enableval" = "$ol_val" ; then
4087 if test "$ol_arg" = "invalid" ; then
4088 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4089 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4090 { (exit 1); exit 1; }; }
4092 ol_enable_retcode="$ol_arg"
4095 ol_enable_retcode=${ol_enable_overlays:-no}
4098 # end --enable-retcode
4100 # OpenLDAP --enable-rwm
4102 # Check whether --enable-rwm was given.
4103 if test "${enable_rwm+set}" = set; then
4104 enableval=$enable_rwm;
4106 for ol_val in no yes mod ; do
4107 if test "$enableval" = "$ol_val" ; then
4111 if test "$ol_arg" = "invalid" ; then
4112 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4113 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4114 { (exit 1); exit 1; }; }
4116 ol_enable_rwm="$ol_arg"
4119 ol_enable_rwm=${ol_enable_overlays:-no}
4124 # OpenLDAP --enable-seqmod
4126 # Check whether --enable-seqmod was given.
4127 if test "${enable_seqmod+set}" = set; then
4128 enableval=$enable_seqmod;
4130 for ol_val in no yes mod ; do
4131 if test "$enableval" = "$ol_val" ; then
4135 if test "$ol_arg" = "invalid" ; then
4136 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4137 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4138 { (exit 1); exit 1; }; }
4140 ol_enable_seqmod="$ol_arg"
4143 ol_enable_seqmod=${ol_enable_overlays:-yes}
4146 # end --enable-seqmod
4148 # OpenLDAP --enable-syncprov
4150 # Check whether --enable-syncprov was given.
4151 if test "${enable_syncprov+set}" = set; then
4152 enableval=$enable_syncprov;
4154 for ol_val in no yes mod ; do
4155 if test "$enableval" = "$ol_val" ; then
4159 if test "$ol_arg" = "invalid" ; then
4160 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4161 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4162 { (exit 1); exit 1; }; }
4164 ol_enable_syncprov="$ol_arg"
4167 ol_enable_syncprov=${ol_enable_overlays:-yes}
4170 # end --enable-syncprov
4172 # OpenLDAP --enable-translucent
4174 # Check whether --enable-translucent was given.
4175 if test "${enable_translucent+set}" = set; then
4176 enableval=$enable_translucent;
4178 for ol_val in no yes mod ; do
4179 if test "$enableval" = "$ol_val" ; then
4183 if test "$ol_arg" = "invalid" ; then
4184 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4185 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4186 { (exit 1); exit 1; }; }
4188 ol_enable_translucent="$ol_arg"
4191 ol_enable_translucent=${ol_enable_overlays:-no}
4194 # end --enable-translucent
4196 # OpenLDAP --enable-unique
4198 # Check whether --enable-unique was given.
4199 if test "${enable_unique+set}" = set; then
4200 enableval=$enable_unique;
4202 for ol_val in no yes mod ; do
4203 if test "$enableval" = "$ol_val" ; then
4207 if test "$ol_arg" = "invalid" ; then
4208 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4209 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4210 { (exit 1); exit 1; }; }
4212 ol_enable_unique="$ol_arg"
4215 ol_enable_unique=${ol_enable_overlays:-no}
4218 # end --enable-unique
4220 # OpenLDAP --enable-valsort
4222 # Check whether --enable-valsort was given.
4223 if test "${enable_valsort+set}" = set; then
4224 enableval=$enable_valsort;
4226 for ol_val in no yes mod ; do
4227 if test "$enableval" = "$ol_val" ; then
4231 if test "$ol_arg" = "invalid" ; then
4232 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4233 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4234 { (exit 1); exit 1; }; }
4236 ol_enable_valsort="$ol_arg"
4239 ol_enable_valsort=${ol_enable_overlays:-no}
4242 # end --enable-valsort
4245 # Check whether --enable-xxliboptions was given.
4246 if test "${enable_xxliboptions+set}" = set; then
4247 enableval=$enable_xxliboptions;
4250 # Check whether --enable-static was given.
4251 if test "${enable_static+set}" = set; then
4252 enableval=$enable_static; p=${PACKAGE-default}
4254 yes) enable_static=yes ;;
4255 no) enable_static=no ;;
4258 # Look at the argument we got. We use all the common list separators.
4259 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4260 for pkg in $enableval; do
4262 if test "X$pkg" = "X$p"; then
4274 # Check whether --enable-shared was given.
4275 if test "${enable_shared+set}" = set; then
4276 enableval=$enable_shared; p=${PACKAGE-default}
4278 yes) enable_shared=yes ;;
4279 no) enable_shared=no ;;
4282 # Look at the argument we got. We use all the common list separators.
4283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4284 for pkg in $enableval; do
4286 if test "X$pkg" = "X$p"; then
4301 if test $ol_enable_slapd = no ; then
4302 if test $ol_enable_slapi = yes ; then
4303 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4304 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4306 case "$ol_enable_backends" in yes | mod)
4307 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4308 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4310 for i in $Backends; do
4311 eval "ol_tmp=\$ol_enable_$i"
4312 if test $ol_tmp != no ; then
4313 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4314 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4315 eval "ol_enable_$i=no"
4318 if test $ol_enable_modules = yes ; then
4319 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4320 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4322 if test $ol_enable_wrappers = yes ; then
4323 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4324 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4326 if test $ol_enable_rlookups = yes ; then
4327 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4328 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4330 if test $ol_enable_dynacl = yes ; then
4331 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4332 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4334 if test $ol_enable_aci != no ; then
4335 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4336 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4338 if test $ol_enable_rewrite = yes ; then
4339 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4340 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4342 case "$ol_enable_overlays" in yes | mod)
4343 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4344 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4346 for i in $Overlays; do
4347 eval "ol_tmp=\$ol_enable_$i"
4348 if test $ol_tmp != no ; then
4349 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4350 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4351 eval "ol_enable_$i=no"
4355 # force settings to no
4360 ol_enable_modules=no
4361 ol_enable_rlookups=no
4364 ol_enable_wrappers=no
4366 ol_enable_rewrite=no
4368 elif test $ol_enable_modules != yes &&
4369 test $ol_enable_bdb = no &&
4370 test $ol_enable_dnssrv = no &&
4371 test $ol_enable_hdb = no &&
4372 test $ol_enable_ldap = no &&
4373 test $ol_enable_meta = no &&
4374 test $ol_enable_monitor = no &&
4375 test $ol_enable_ndb = no &&
4376 test $ol_enable_null = no &&
4377 test $ol_enable_passwd = no &&
4378 test $ol_enable_perl = no &&
4379 test $ol_enable_relay = no &&
4380 test $ol_enable_shell = no &&
4381 test $ol_enable_sock = no &&
4382 test $ol_enable_sql = no ; then
4384 if test $ol_enable_slapd = yes ; then
4385 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4386 echo "$as_me: error: slapd requires a backend" >&2;}
4387 { (exit 1); exit 1; }; }
4389 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4390 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4395 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4396 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4397 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4398 { (exit 1); exit 1; }; }
4401 if test $ol_enable_lmpasswd = yes ; then
4402 if test $ol_with_tls = no ; then
4403 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4404 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4405 { (exit 1); exit 1; }; }
4409 if test $ol_enable_spasswd = yes ; then
4410 if test $ol_with_cyrus_sasl = no ; then
4411 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4412 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4413 { (exit 1); exit 1; }; }
4415 ol_with_cyrus_sasl=yes
4418 { echo "$as_me:$LINENO: result: done" >&5
4419 echo "${ECHO_T}done" >&6; }
4468 BUILD_TRANSLUCENT=no
4472 SLAPD_STATIC_OVERLAYS=
4473 SLAPD_DYNAMIC_OVERLAYS=
4475 SLAPD_MODULES_LDFLAGS=
4476 SLAPD_MODULES_CPPFLAGS=
4478 SLAPD_STATIC_BACKENDS=back-ldif
4479 SLAPD_DYNAMIC_BACKENDS=
4505 cat >>confdefs.h <<\_ACEOF
4506 #define HAVE_MKVERSION 1
4514 *-*-aix*) if test -z "$CC" ; then
4515 case "$ol_with_threads" in
4516 auto | yes | posix) ol_aix_threads=yes ;;
4522 if test $ol_aix_threads = yes ; then
4523 if test -z "${CC}" ; then
4524 for ac_prog in cc_r xlc_r cc
4526 # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4543 ac_cv_prog_CC="$ac_prog"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 if test -n "$CC"; then
4555 { echo "$as_me:$LINENO: result: $CC" >&5
4556 echo "${ECHO_T}$CC" >&6; }
4558 { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4563 test -n "$CC" && break
4567 if test "$CC" = cc ; then
4568 if test $ol_with_threads != auto ; then
4569 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4570 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4571 { (exit 1); exit 1; }; }
4573 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4574 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4580 case ${CC} in cc_r | xlc_r)
4581 ol_with_threads=posix
4582 ol_cv_pthread_create=yes
4587 if test -z "${CC}"; then
4588 for ac_prog in cc gcc
4590 # Extract the first word of "$ac_prog", so it can be a program name with args.
4591 set dummy $ac_prog; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_CC+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$CC"; then
4598 ac_cv_prog_CC="$CC" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_CC="$ac_prog"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 if test -n "$CC"; then
4619 { echo "$as_me:$LINENO: result: $CC" >&5
4620 echo "${ECHO_T}$CC" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 test -n "$CC" && break
4629 test -n "$CC" || CC="missing"
4632 if test "${CC}" = "missing" ; then
4633 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
4634 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
4635 { (exit 1); exit 1; }; }
4639 if test -z "${AR}"; then
4640 for ac_prog in ar gar
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_AR+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 if test -n "$AR"; then
4650 ac_cv_prog_AR="$AR" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_AR="$ac_prog"
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4670 if test -n "$AR"; then
4671 { echo "$as_me:$LINENO: result: $AR" >&5
4672 echo "${ECHO_T}$AR" >&6; }
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4679 test -n "$AR" && break
4681 test -n "$AR" || AR="missing"
4684 if test "${AR}" = "missing" ; then
4685 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
4686 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
4687 { (exit 1); exit 1; }; }
4695 # Check whether --enable-fast-install was given.
4696 if test "${enable_fast_install+set}" = set; then
4697 enableval=$enable_fast_install; p=${PACKAGE-default}
4699 yes) enable_fast_install=yes ;;
4700 no) enable_fast_install=no ;;
4702 enable_fast_install=no
4703 # Look at the argument we got. We use all the common list separators.
4704 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4705 for pkg in $enableval; do
4707 if test "X$pkg" = "X$p"; then
4708 enable_fast_install=yes
4715 enable_fast_install=yes
4719 DEPDIR="${am__leading_dot}deps"
4721 ac_config_commands="$ac_config_commands depfiles"
4724 am_make=${MAKE-make}
4725 cat > confinc << 'END'
4730 # If we don't find an include directive, just comment out the code.
4731 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4732 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4736 # First try GNU make style include.
4737 echo "include confinc" > confmf
4738 # We grep out `Entering directory' and `Leaving directory'
4739 # messages which can occur if `w' ends up in MAKEFLAGS.
4740 # In particular we don't look at `^make:' because GNU make might
4741 # be invoked under some other name (usually "gmake"), in which
4742 # case it prints its new name instead of `make'.
4743 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4748 # Now try BSD make style include.
4749 if test "$am__include" = "#"; then
4750 echo '.include "confinc"' > confmf
4751 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4752 am__include=.include
4759 { echo "$as_me:$LINENO: result: $_am_result" >&5
4760 echo "${ECHO_T}$_am_result" >&6; }
4761 rm -f confinc confmf
4763 # Check whether --enable-dependency-tracking was given.
4764 if test "${enable_dependency_tracking+set}" = set; then
4765 enableval=$enable_dependency_tracking;
4768 if test "x$enable_dependency_tracking" != xno; then
4769 am_depcomp="$ac_aux_dir/depcomp"
4774 if test "x$enable_dependency_tracking" != xno; then
4785 ac_cpp='$CPP $CPPFLAGS'
4786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4789 if test -n "$ac_tool_prefix"; then
4790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4794 if test "${ac_cv_prog_CC+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4797 if test -n "$CC"; then
4798 ac_cv_prog_CC="$CC" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 if test -n "$CC"; then
4819 { echo "$as_me:$LINENO: result: $CC" >&5
4820 echo "${ECHO_T}$CC" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4828 if test -z "$ac_cv_prog_CC"; then
4830 # Extract the first word of "gcc", so it can be a program name with args.
4831 set dummy gcc; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 if test -n "$ac_ct_CC"; then
4838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 test -z "$as_dir" && as_dir=.
4845 for ac_exec_ext in '' $ac_executable_extensions; do
4846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847 ac_cv_prog_ac_ct_CC="gcc"
4848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4858 if test -n "$ac_ct_CC"; then
4859 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4860 echo "${ECHO_T}$ac_ct_CC" >&6; }
4862 { echo "$as_me:$LINENO: result: no" >&5
4863 echo "${ECHO_T}no" >&6; }
4866 if test "x$ac_ct_CC" = x; then
4869 case $cross_compiling:$ac_tool_warned in
4871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4872 whose name does not start with the host triplet. If you think this
4873 configuration is useful to you, please write to autoconf@gnu.org." >&5
4874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4875 whose name does not start with the host triplet. If you think this
4876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4877 ac_tool_warned=yes ;;
4885 if test -z "$CC"; then
4886 if test -n "$ac_tool_prefix"; then
4887 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4888 set dummy ${ac_tool_prefix}cc; ac_word=$2
4889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4891 if test "${ac_cv_prog_CC+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4894 if test -n "$CC"; then
4895 ac_cv_prog_CC="$CC" # Let the user override the test.
4897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4904 ac_cv_prog_CC="${ac_tool_prefix}cc"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 if test -n "$CC"; then
4916 { echo "$as_me:$LINENO: result: $CC" >&5
4917 echo "${ECHO_T}$CC" >&6; }
4919 { echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6; }
4926 if test -z "$CC"; then
4927 # Extract the first word of "cc", so it can be a program name with args.
4928 set dummy cc; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_prog_CC+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 if test -n "$CC"; then
4935 ac_cv_prog_CC="$CC" # Let the user override the test.
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 test -z "$as_dir" && as_dir=.
4943 for ac_exec_ext in '' $ac_executable_extensions; do
4944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4946 ac_prog_rejected=yes
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 if test $ac_prog_rejected = yes; then
4958 # We found a bogon in the path, so make sure we never use it.
4959 set dummy $ac_cv_prog_CC
4961 if test $# != 0; then
4962 # We chose a different compiler from the bogus one.
4963 # However, it has the same basename, so the bogon will be chosen
4964 # first if we set CC to just the basename; use the full file name.
4966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4972 if test -n "$CC"; then
4973 { echo "$as_me:$LINENO: result: $CC" >&5
4974 echo "${ECHO_T}$CC" >&6; }
4976 { echo "$as_me:$LINENO: result: no" >&5
4977 echo "${ECHO_T}no" >&6; }
4982 if test -z "$CC"; then
4983 if test -n "$ac_tool_prefix"; then
4984 for ac_prog in cl.exe
4986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4987 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_prog_CC+set}" = set; then
4991 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 if test -n "$CC"; then
4994 ac_cv_prog_CC="$CC" # Let the user override the test.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014 if test -n "$CC"; then
5015 { echo "$as_me:$LINENO: result: $CC" >&5
5016 echo "${ECHO_T}$CC" >&6; }
5018 { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5023 test -n "$CC" && break
5026 if test -z "$CC"; then
5028 for ac_prog in cl.exe
5030 # Extract the first word of "$ac_prog", so it can be a program name with args.
5031 set dummy $ac_prog; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5037 if test -n "$ac_ct_CC"; then
5038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_ac_ct_CC="$ac_prog"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5058 if test -n "$ac_ct_CC"; then
5059 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5060 echo "${ECHO_T}$ac_ct_CC" >&6; }
5062 { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5067 test -n "$ac_ct_CC" && break
5070 if test "x$ac_ct_CC" = x; then
5073 case $cross_compiling:$ac_tool_warned in
5075 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5076 whose name does not start with the host triplet. If you think this
5077 configuration is useful to you, please write to autoconf@gnu.org." >&5
5078 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5079 whose name does not start with the host triplet. If you think this
5080 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5081 ac_tool_warned=yes ;;
5090 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5091 See \`config.log' for more details." >&5
5092 echo "$as_me: error: no acceptable C compiler found in \$PATH
5093 See \`config.log' for more details." >&2;}
5094 { (exit 1); exit 1; }; }
5096 # Provide some information about the compiler.
5097 echo "$as_me:$LINENO: checking for C compiler version" >&5
5098 ac_compiler=`set X $ac_compile; echo $2`
5099 { (ac_try="$ac_compiler --version >&5"
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5105 (eval "$ac_compiler --version >&5") 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }
5109 { (ac_try="$ac_compiler -v >&5"
5111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5112 *) ac_try_echo=$ac_try;;
5114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5115 (eval "$ac_compiler -v >&5") 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }
5119 { (ac_try="$ac_compiler -V >&5"
5121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122 *) ac_try_echo=$ac_try;;
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125 (eval "$ac_compiler -V >&5") 2>&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5145 ac_clean_files_save=$ac_clean_files
5146 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5147 # Try to create an executable without -o first, disregard a.out.
5148 # It will help us diagnose broken compilers, and finding out an intuition
5150 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5151 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5152 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5154 # List of possible output files, starting from the most likely.
5155 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5156 # only as a last resort. b.out is created by i960 compilers.
5157 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5159 # The IRIX 6 linker writes into existing files which may not be
5160 # executable, retaining their permissions. Remove them first so a
5161 # subsequent execution test works.
5163 for ac_file in $ac_files
5166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5167 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5172 if { (ac_try="$ac_link_default"
5174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5175 *) ac_try_echo=$ac_try;;
5177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5178 (eval "$ac_link_default") 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; then
5182 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5183 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5184 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5185 # so that the user can short-circuit this test for compilers unknown to
5187 for ac_file in $ac_files ''
5189 test -f "$ac_file" || continue
5191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5194 # We found the default executable, but exeext='' is most
5198 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5200 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5202 # We set ac_cv_exeext here because the later test for it is not
5203 # safe: cross compilers may not add the suffix if given an `-o'
5204 # argument, so we may need to know it at that point already.
5205 # Even if this section looks crufty: it has the advantage of
5212 test "$ac_cv_exeext" = no && ac_cv_exeext=
5218 { echo "$as_me:$LINENO: result: $ac_file" >&5
5219 echo "${ECHO_T}$ac_file" >&6; }
5220 if test -z "$ac_file"; then
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C compiler cannot create executables
5227 See \`config.log' for more details." >&2;}
5228 { (exit 77); exit 77; }; }
5231 ac_exeext=$ac_cv_exeext
5233 # Check that the compiler produces executables we can run. If not, either
5234 # the compiler is broken, or we cross compile.
5235 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5236 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5237 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5238 # If not cross compiling, check that we can run a simple program.
5239 if test "$cross_compiling" != yes; then
5240 if { ac_try='./$ac_file'
5241 { (case "(($ac_try" in
5242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5243 *) ac_try_echo=$ac_try;;
5245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5246 (eval "$ac_try") 2>&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); }; }; then
5252 if test "$cross_compiling" = maybe; then
5255 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5256 If you meant to cross compile, use \`--host'.
5257 See \`config.log' for more details." >&5
5258 echo "$as_me: error: cannot run C compiled programs.
5259 If you meant to cross compile, use \`--host'.
5260 See \`config.log' for more details." >&2;}
5261 { (exit 1); exit 1; }; }
5265 { echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6; }
5268 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5269 ac_clean_files=$ac_clean_files_save
5270 # Check that the compiler produces executables we can run. If not, either
5271 # the compiler is broken, or we cross compile.
5272 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5273 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5274 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5275 echo "${ECHO_T}$cross_compiling" >&6; }
5277 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5278 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5279 if { (ac_try="$ac_link"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_link") 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; then
5289 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5290 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5291 # work properly (i.e., refer to `conftest.exe'), while it won't with
5293 for ac_file in conftest.exe conftest conftest.*; do
5294 test -f "$ac_file" || continue
5296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5297 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5304 See \`config.log' for more details." >&5
5305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5306 See \`config.log' for more details." >&2;}
5307 { (exit 1); exit 1; }; }
5310 rm -f conftest$ac_cv_exeext
5311 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5312 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5314 rm -f conftest.$ac_ext
5315 EXEEXT=$ac_cv_exeext
5317 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5319 if test "${ac_cv_objext+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5337 rm -f conftest.o conftest.obj
5338 if { (ac_try="$ac_compile"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compile") 2>&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; then
5348 for ac_file in conftest.o conftest.obj conftest.*; do
5349 test -f "$ac_file" || continue;
5351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5352 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5357 echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5360 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5361 See \`config.log' for more details." >&5
5362 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5363 See \`config.log' for more details." >&2;}
5364 { (exit 1); exit 1; }; }
5367 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5369 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5370 echo "${ECHO_T}$ac_cv_objext" >&6; }
5371 OBJEXT=$ac_cv_objext
5373 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5374 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5375 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5376 echo $ECHO_N "(cached) $ECHO_C" >&6
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5425 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5426 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5427 GCC=`test $ac_compiler_gnu = yes && echo yes`
5428 ac_test_CFLAGS=${CFLAGS+set}
5429 ac_save_CFLAGS=$CFLAGS
5430 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5431 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5432 if test "${ac_cv_prog_cc_g+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_save_c_werror_flag=$ac_c_werror_flag
5436 ac_c_werror_flag=yes
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5454 rm -f conftest.$ac_objext
5455 if { (ac_try="$ac_compile"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_compile") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } && {
5468 test -z "$ac_c_werror_flag" ||
5469 test ! -s conftest.err
5470 } && test -s conftest.$ac_objext; then
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5477 cat >conftest.$ac_ext <<_ACEOF
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_compile") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } && {
5506 test -z "$ac_c_werror_flag" ||
5507 test ! -s conftest.err
5508 } && test -s conftest.$ac_objext; then
5511 echo "$as_me: failed program was:" >&5
5512 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_c_werror_flag=$ac_save_c_werror_flag
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 ac_c_werror_flag=$ac_save_c_werror_flag
5565 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5567 if test "$ac_test_CFLAGS" = set; then
5568 CFLAGS=$ac_save_CFLAGS
5569 elif test $ac_cv_prog_cc_g = yes; then
5570 if test "$GCC" = yes; then
5576 if test "$GCC" = yes; then
5582 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5583 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5584 if test "${ac_cv_prog_cc_c89+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_prog_cc_c89=no
5589 cat >conftest.$ac_ext <<_ACEOF
5592 cat confdefs.h >>conftest.$ac_ext
5593 cat >>conftest.$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5597 #include <sys/types.h>
5598 #include <sys/stat.h>
5599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5600 struct buf { int x; };
5601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5602 static char *e (p, i)
5608 static char *f (char * (*g) (char **, int), char **p, ...)
5613 s = g (p, va_arg (v,int));
5618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5619 function prototypes and stuff, but not '\xHH' hex character constants.
5620 These don't provoke an error unfortunately, instead are silently treated
5621 as 'x'. The following induces an error, until -std is added to get
5622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5623 array size at least. It's necessary to write '\x00'==0 to get something
5624 that's true only with -std. */
5625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5628 inside strings and character constants. */
5630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5632 int test (int i, double x);
5633 struct s1 {int (*f) (int a);};
5634 struct s2 {int (*f) (double a);};
5635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5649 CC="$ac_save_CC $ac_arg"
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_prog_cc_c89=$ac_arg
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f core conftest.err conftest.$ac_objext
5676 test "x$ac_cv_prog_cc_c89" != "xno" && break
5678 rm -f conftest.$ac_ext
5683 case "x$ac_cv_prog_cc_c89" in
5685 { echo "$as_me:$LINENO: result: none needed" >&5
5686 echo "${ECHO_T}none needed" >&6; } ;;
5688 { echo "$as_me:$LINENO: result: unsupported" >&5
5689 echo "${ECHO_T}unsupported" >&6; } ;;
5691 CC="$CC $ac_cv_prog_cc_c89"
5692 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5693 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5698 ac_cpp='$CPP $CPPFLAGS'
5699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5703 depcc="$CC" am_compiler_list=
5705 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5706 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5707 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5711 # We make a subdir and do the tests there. Otherwise we can end up
5712 # making bogus files that we don't know about and never remove. For
5713 # instance it was reported that on HP-UX the gcc test will end up
5714 # making a dummy file named `D' -- because `-MD' means `put the output
5717 # Copy depcomp to subdir because otherwise we won't find it if we're
5718 # using a relative directory.
5719 cp "$am_depcomp" conftest.dir
5721 # We will build objects and dependencies in a subdirectory because
5722 # it helps to detect inapplicable dependency modes. For instance
5723 # both Tru64's cc and ICC support -MD to output dependencies as a
5724 # side effect of compilation, but ICC will put the dependencies in
5725 # the current directory while Tru64 will put them in the object
5729 am_cv_CC_dependencies_compiler_type=none
5730 if test "$am_compiler_list" = ""; then
5731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5733 for depmode in $am_compiler_list; do
5734 # Setup a source with many dependencies, because some compilers
5735 # like to wrap large dependency lists on column 80 (with \), and
5736 # we should not choose a depcomp mode which is confused by this.
5738 # We need to recreate these files for each test, as the compiler may
5739 # overwrite some of them when testing with obscure command lines.
5740 # This happens at least with the AIX C compiler.
5742 for i in 1 2 3 4 5 6; do
5743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5745 # Solaris 8's {/usr,}/bin/sh.
5746 touch sub/conftst$i.h
5748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5752 # after this tag, mechanisms are not by side-effect, so they'll
5753 # only be used when explicitly requested
5754 if test "x$enable_dependency_tracking" = xyes; then
5762 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5763 # mode. It turns out that the SunPro C++ compiler does not properly
5764 # handle `-M -o', and we need to detect this.
5765 if depmode=$depmode \
5766 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5768 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5769 >/dev/null 2>conftest.err &&
5770 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5771 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5772 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5773 # icc doesn't choke on unknown options, it will just issue warnings
5774 # or remarks (even with -Werror). So we grep stderr for any message
5775 # that says an option was ignored or not supported.
5776 # When given -MP, icc 7.0 and 7.1 complain thusly:
5777 # icc: Command line warning: ignoring option '-M'; no argument required
5778 # The diagnosis changed in icc 8.0:
5779 # icc: Command line remark: option '-MP' not supported
5780 if (grep 'ignoring option' conftest.err ||
5781 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5782 am_cv_CC_dependencies_compiler_type=$depmode
5791 am_cv_CC_dependencies_compiler_type=none
5795 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5796 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5797 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5802 test "x$enable_dependency_tracking" != xno \
5803 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5805 am__fastdepCC_FALSE='#'
5807 am__fastdepCC_TRUE='#'
5808 am__fastdepCC_FALSE=
5812 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5813 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5814 if test "${lt_cv_path_SED+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 # Loop through the user's path and test for sed and gsed.
5818 # Then use that list of sed's as ones to test for truncation.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for lt_ac_prog in sed gsed; do
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5827 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5834 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5835 # along with /bin/sed that truncates output.
5836 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5837 test ! -f $lt_ac_sed && continue
5838 cat /dev/null > conftest.in
5840 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5841 # Check for GNU sed and select it if it is found.
5842 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5843 lt_cv_path_SED=$lt_ac_sed
5847 cat conftest.in conftest.in >conftest.tmp
5848 mv conftest.tmp conftest.in
5849 cp conftest.in conftest.nl
5851 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5852 cmp -s conftest.out conftest.nl || break
5853 # 10000 chars as input seems more than enough
5854 test $lt_ac_count -gt 10 && break
5855 lt_ac_count=`expr $lt_ac_count + 1`
5856 if test $lt_ac_count -gt $lt_ac_max; then
5857 lt_ac_max=$lt_ac_count
5858 lt_cv_path_SED=$lt_ac_sed
5866 { echo "$as_me:$LINENO: result: $SED" >&5
5867 echo "${ECHO_T}$SED" >&6; }
5869 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5870 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5871 if test "${ac_cv_path_GREP+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 # Extract the first word of "grep ggrep" to use in msg output
5875 if test -z "$GREP"; then
5876 set dummy grep ggrep; ac_prog_name=$2
5877 if test "${ac_cv_path_GREP+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 ac_path_GREP_found=false
5881 # Loop through the user's path and test for each of PROGNAME-LIST
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5886 test -z "$as_dir" && as_dir=.
5887 for ac_prog in grep ggrep; do
5888 for ac_exec_ext in '' $ac_executable_extensions; do
5889 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5890 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5891 # Check for GNU ac_path_GREP and select it if it is found.
5892 # Check for GNU $ac_path_GREP
5893 case `"$ac_path_GREP" --version 2>&1` in
5895 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5898 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5901 cat "conftest.in" "conftest.in" >"conftest.tmp"
5902 mv "conftest.tmp" "conftest.in"
5903 cp "conftest.in" "conftest.nl"
5904 echo 'GREP' >> "conftest.nl"
5905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5907 ac_count=`expr $ac_count + 1`
5908 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5909 # Best one so far, save it but keep looking for a better one
5910 ac_cv_path_GREP="$ac_path_GREP"
5911 ac_path_GREP_max=$ac_count
5913 # 10*(2^10) chars as input seems more than enough
5914 test $ac_count -gt 10 && break
5916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5920 $ac_path_GREP_found && break 3
5930 GREP="$ac_cv_path_GREP"
5931 if test -z "$GREP"; then
5932 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5933 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5934 { (exit 1); exit 1; }; }
5938 ac_cv_path_GREP=$GREP
5943 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5944 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5945 GREP="$ac_cv_path_GREP"
5948 { echo "$as_me:$LINENO: checking for egrep" >&5
5949 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5950 if test "${ac_cv_path_EGREP+set}" = set; then
5951 echo $ECHO_N "(cached) $ECHO_C" >&6
5953 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5954 then ac_cv_path_EGREP="$GREP -E"
5956 # Extract the first word of "egrep" to use in msg output
5957 if test -z "$EGREP"; then
5958 set dummy egrep; ac_prog_name=$2
5959 if test "${ac_cv_path_EGREP+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 ac_path_EGREP_found=false
5963 # Loop through the user's path and test for each of PROGNAME-LIST
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5968 test -z "$as_dir" && as_dir=.
5969 for ac_prog in egrep; do
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5972 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5973 # Check for GNU ac_path_EGREP and select it if it is found.
5974 # Check for GNU $ac_path_EGREP
5975 case `"$ac_path_EGREP" --version 2>&1` in
5977 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5980 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5983 cat "conftest.in" "conftest.in" >"conftest.tmp"
5984 mv "conftest.tmp" "conftest.in"
5985 cp "conftest.in" "conftest.nl"
5986 echo 'EGREP' >> "conftest.nl"
5987 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5989 ac_count=`expr $ac_count + 1`
5990 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5991 # Best one so far, save it but keep looking for a better one
5992 ac_cv_path_EGREP="$ac_path_EGREP"
5993 ac_path_EGREP_max=$ac_count
5995 # 10*(2^10) chars as input seems more than enough
5996 test $ac_count -gt 10 && break
5998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002 $ac_path_EGREP_found && break 3
6012 EGREP="$ac_cv_path_EGREP"
6013 if test -z "$EGREP"; then
6014 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6015 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6016 { (exit 1); exit 1; }; }
6020 ac_cv_path_EGREP=$EGREP
6026 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6027 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6028 EGREP="$ac_cv_path_EGREP"
6032 # Check whether --with-gnu-ld was given.
6033 if test "${with_gnu_ld+set}" = set; then
6034 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6040 if test "$GCC" = yes; then
6041 # Check if gcc -print-prog-name=ld gives a path.
6042 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6043 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6046 # gcc leaves a trailing carriage return which upsets mingw
6047 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6049 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6052 # Accept absolute paths.
6054 re_direlt='/[^/][^/]*/\.\./'
6055 # Canonicalize the pathname of ld
6056 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6057 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6058 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6060 test -z "$LD" && LD="$ac_prog"
6063 # If it fails, then pretend we aren't using GCC.
6067 # If it is relative, then search for the first ld in PATH.
6071 elif test "$with_gnu_ld" = yes; then
6072 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6073 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6075 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6076 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6078 if test "${lt_cv_path_LD+set}" = set; then
6079 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 if test -z "$LD"; then
6082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6083 for ac_dir in $PATH; do
6085 test -z "$ac_dir" && ac_dir=.
6086 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6087 lt_cv_path_LD="$ac_dir/$ac_prog"
6088 # Check to see if the program is GNU ld. I'd rather use --version,
6089 # but apparently some variants of GNU ld only accept -v.
6090 # Break only if it was the GNU/non-GNU ld that we prefer.
6091 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6092 *GNU* | *'with BFD'*)
6093 test "$with_gnu_ld" != no && break
6096 test "$with_gnu_ld" != yes && break
6103 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6108 if test -n "$LD"; then
6109 { echo "$as_me:$LINENO: result: $LD" >&5
6110 echo "${ECHO_T}$LD" >&6; }
6112 { echo "$as_me:$LINENO: result: no" >&5
6113 echo "${ECHO_T}no" >&6; }
6115 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6116 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6117 { (exit 1); exit 1; }; }
6118 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6119 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6120 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6124 case `$LD -v 2>&1 </dev/null` in
6125 *GNU* | *'with BFD'*)
6126 lt_cv_prog_gnu_ld=yes
6129 lt_cv_prog_gnu_ld=no
6133 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6134 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6135 with_gnu_ld=$lt_cv_prog_gnu_ld
6138 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6139 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6140 if test "${lt_cv_ld_reload_flag+set}" = set; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 lt_cv_ld_reload_flag='-r'
6145 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6146 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6147 reload_flag=$lt_cv_ld_reload_flag
6148 case $reload_flag in
6150 *) reload_flag=" $reload_flag" ;;
6152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6155 if test "$GCC" = yes; then
6156 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6158 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6163 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6164 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6165 if test "${lt_cv_path_NM+set}" = set; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 if test -n "$NM"; then
6169 # Let the user override the test.
6172 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6173 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6175 test -z "$ac_dir" && ac_dir=.
6176 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6177 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6178 # Check to see if the nm accepts a BSD-compat flag.
6179 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6180 # nm: unknown option "B" ignored
6181 # Tru64's nm complains that /dev/null is an invalid object file
6182 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6183 */dev/null* | *'Invalid file or object type'*)
6184 lt_cv_path_NM="$tmp_nm -B"
6188 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6190 lt_cv_path_NM="$tmp_nm -p"
6194 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6195 continue # so that we can try to find one that supports BSD flags
6202 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6205 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6206 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6209 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6210 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6212 if test "$LN_S" = "ln -s"; then
6213 { echo "$as_me:$LINENO: result: yes" >&5
6214 echo "${ECHO_T}yes" >&6; }
6216 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6217 echo "${ECHO_T}no, using $LN_S" >&6; }
6220 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6221 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6222 if test "${lt_cv_deplibs_check_method+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 lt_cv_file_magic_cmd='$MAGIC_CMD'
6226 lt_cv_file_magic_test_file=
6227 lt_cv_deplibs_check_method='unknown'
6228 # Need to set the preceding variable on all platforms that support
6229 # interlibrary dependencies.
6230 # 'none' -- dependencies not supported.
6231 # `unknown' -- same as none, but documents that we really don't know.
6232 # 'pass_all' -- all dependencies passed with no checks.
6233 # 'test_compile' -- check by making test program.
6234 # 'file_magic [[regex]]' -- check by looking for files in library path
6235 # which responds to the $file_magic_cmd with a given extended regex.
6236 # If you have `file' or equivalent on your system and you're not sure
6237 # whether `pass_all' will *always* work, you probably want this one.
6241 lt_cv_deplibs_check_method=pass_all
6245 lt_cv_deplibs_check_method=pass_all
6249 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6250 lt_cv_file_magic_cmd='/usr/bin/file -L'
6251 lt_cv_file_magic_test_file=/shlib/libc.so
6255 # func_win32_libid is a shell function defined in ltmain.sh
6256 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6257 lt_cv_file_magic_cmd='func_win32_libid'
6261 # Base MSYS/MinGW do not provide the 'file' command needed by
6262 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6263 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6264 lt_cv_file_magic_cmd='$OBJDUMP -f'
6267 darwin* | rhapsody*)
6268 lt_cv_deplibs_check_method=pass_all
6271 freebsd* | kfreebsd*-gnu | dragonfly*)
6272 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6275 # Not sure whether the presence of OpenBSD here was a mistake.
6276 # Let's accept both of them until this is cleared up.
6277 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6278 lt_cv_file_magic_cmd=/usr/bin/file
6279 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6283 lt_cv_deplibs_check_method=pass_all
6288 lt_cv_deplibs_check_method=pass_all
6291 hpux10.20* | hpux11*)
6292 lt_cv_file_magic_cmd=/usr/bin/file
6295 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6296 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6299 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]'
6300 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6303 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6304 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6309 irix5* | irix6* | nonstopux*)
6311 *-32|*"-32 ") libmagic=32-bit;;
6312 *-n32|*"-n32 ") libmagic=N32;;
6313 *-64|*"-64 ") libmagic=64-bit;;
6314 *) libmagic=never-match;;
6316 lt_cv_deplibs_check_method=pass_all
6319 # This must be Linux ELF.
6321 lt_cv_deplibs_check_method=pass_all
6325 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6328 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6333 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6334 lt_cv_file_magic_cmd=/usr/bin/file
6335 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6339 lt_cv_deplibs_check_method=unknown
6343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6344 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6350 osf3* | osf4* | osf5*)
6351 lt_cv_deplibs_check_method=pass_all
6355 lt_cv_deplibs_check_method=pass_all
6359 lt_cv_deplibs_check_method=pass_all
6362 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6363 case $host_vendor in
6365 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]'
6366 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6369 lt_cv_deplibs_check_method=pass_all
6372 lt_cv_file_magic_cmd='/bin/file'
6373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6376 lt_cv_file_magic_cmd='/bin/file'
6377 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6378 lt_cv_file_magic_test_file=/lib/libc.so
6381 lt_cv_deplibs_check_method=pass_all
6386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6387 lt_cv_deplibs_check_method=pass_all
6392 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6393 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6394 file_magic_cmd=$lt_cv_file_magic_cmd
6395 deplibs_check_method=$lt_cv_deplibs_check_method
6396 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6401 # If no C compiler was specified, use CC.
6404 # Allow CC to be a program name with arguments.
6408 # Check whether --enable-libtool-lock was given.
6409 if test "${enable_libtool_lock+set}" = set; then
6410 enableval=$enable_libtool_lock;
6413 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6415 # Some flags need to be propagated to the compiler or linker for good
6419 # Find out which ABI we are using.
6420 echo 'int i;' > conftest.$ac_ext
6421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 (eval $ac_compile) 2>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; then
6426 case `/usr/bin/file conftest.$ac_objext` in
6438 # Find out which ABI we are using.
6439 echo '#line 6439 "configure"' > conftest.$ac_ext
6440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6441 (eval $ac_compile) 2>&5
6443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444 (exit $ac_status); }; then
6445 if test "$lt_cv_prog_gnu_ld" = yes; then
6446 case `/usr/bin/file conftest.$ac_objext` in
6448 LD="${LD-ld} -melf32bsmip"
6451 LD="${LD-ld} -melf32bmipn32"
6454 LD="${LD-ld} -melf64bmip"
6458 case `/usr/bin/file conftest.$ac_objext` in
6474 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6475 # Find out which ABI we are using.
6476 echo 'int i;' > conftest.$ac_ext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; then
6482 case `/usr/bin/file conftest.o` in
6486 LD="${LD-ld} -m elf_i386"
6488 ppc64-*linux*|powerpc64-*linux*)
6489 LD="${LD-ld} -m elf32ppclinux"
6492 LD="${LD-ld} -m elf_s390"
6495 LD="${LD-ld} -m elf32_sparc"
6502 LD="${LD-ld} -m elf_x86_64"
6504 ppc*-*linux*|powerpc*-*linux*)
6505 LD="${LD-ld} -m elf64ppc"
6508 LD="${LD-ld} -m elf64_s390"
6511 LD="${LD-ld} -m elf64_sparc"
6521 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6522 SAVE_CFLAGS="$CFLAGS"
6523 CFLAGS="$CFLAGS -belf"
6524 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6525 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6526 if test "${lt_cv_cc_needs_belf+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_cpp='$CPP $CPPFLAGS'
6531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6550 rm -f conftest.$ac_objext conftest$ac_exeext
6551 if { (ac_try="$ac_link"
6553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6554 *) ac_try_echo=$ac_try;;
6556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6557 (eval "$ac_link") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest$ac_exeext &&
6567 $as_test_x conftest$ac_exeext; then
6568 lt_cv_cc_needs_belf=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 lt_cv_cc_needs_belf=no
6576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6577 conftest$ac_exeext conftest.$ac_ext
6579 ac_cpp='$CPP $CPPFLAGS'
6580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6585 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6586 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6587 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6588 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6589 CFLAGS="$SAVE_CFLAGS"
6592 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 if test -n "$DLLTOOL"; then
6602 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 DLLTOOL=$ac_cv_prog_DLLTOOL
6622 if test -n "$DLLTOOL"; then
6623 { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6624 echo "${ECHO_T}$DLLTOOL" >&6; }
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6632 if test -z "$ac_cv_prog_DLLTOOL"; then
6633 ac_ct_DLLTOOL=$DLLTOOL
6634 # Extract the first word of "dlltool", so it can be a program name with args.
6635 set dummy dlltool; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 if test -n "$ac_ct_DLLTOOL"; then
6642 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6662 if test -n "$ac_ct_DLLTOOL"; then
6663 { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6664 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6666 { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6670 if test "x$ac_ct_DLLTOOL" = x; then
6673 case $cross_compiling:$ac_tool_warned in
6675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet. If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&5
6678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet. If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681 ac_tool_warned=yes ;;
6683 DLLTOOL=$ac_ct_DLLTOOL
6686 DLLTOOL="$ac_cv_prog_DLLTOOL"
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}as; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_AS+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 if test -n "$AS"; then
6698 ac_cv_prog_AS="$AS" # Let the user override the test.
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_AS="${ac_tool_prefix}as"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 if test -n "$AS"; then
6719 { echo "$as_me:$LINENO: result: $AS" >&5
6720 echo "${ECHO_T}$AS" >&6; }
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6728 if test -z "$ac_cv_prog_AS"; then
6730 # Extract the first word of "as", so it can be a program name with args.
6731 set dummy as; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 if test -n "$ac_ct_AS"; then
6738 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_AS="as"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6758 if test -n "$ac_ct_AS"; then
6759 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6760 echo "${ECHO_T}$ac_ct_AS" >&6; }
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6766 if test "x$ac_ct_AS" = x; then
6769 case $cross_compiling:$ac_tool_warned in
6771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772 whose name does not start with the host triplet. If you think this
6773 configuration is useful to you, please write to autoconf@gnu.org." >&5
6774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet. If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777 ac_tool_warned=yes ;;
6785 if test -n "$ac_tool_prefix"; then
6786 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6790 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6791 echo $ECHO_N "(cached) $ECHO_C" >&6
6793 if test -n "$OBJDUMP"; then
6794 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 test -z "$as_dir" && as_dir=.
6801 for ac_exec_ext in '' $ac_executable_extensions; do
6802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6813 OBJDUMP=$ac_cv_prog_OBJDUMP
6814 if test -n "$OBJDUMP"; then
6815 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6816 echo "${ECHO_T}$OBJDUMP" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6824 if test -z "$ac_cv_prog_OBJDUMP"; then
6825 ac_ct_OBJDUMP=$OBJDUMP
6826 # Extract the first word of "objdump", so it can be a program name with args.
6827 set dummy objdump; ac_word=$2
6828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6830 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6833 if test -n "$ac_ct_OBJDUMP"; then
6834 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6854 if test -n "$ac_ct_OBJDUMP"; then
6855 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6856 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6858 { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6862 if test "x$ac_ct_OBJDUMP" = x; then
6865 case $cross_compiling:$ac_tool_warned in
6867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&5
6870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6871 whose name does not start with the host triplet. If you think this
6872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6873 ac_tool_warned=yes ;;
6875 OBJDUMP=$ac_ct_OBJDUMP
6878 OBJDUMP="$ac_cv_prog_OBJDUMP"
6885 need_locks="$enable_libtool_lock"
6889 ac_cpp='$CPP $CPPFLAGS'
6890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6893 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6894 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6895 # On Suns, sometimes $CPP names a directory.
6896 if test -n "$CPP" && test -d "$CPP"; then
6899 if test -z "$CPP"; then
6900 if test "${ac_cv_prog_CPP+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6903 # Double quotes because CPP needs to be expanded
6904 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6907 for ac_c_preproc_warn_flag in '' yes
6909 # Use a header file that comes with gcc, so configuring glibc
6910 # with a fresh cross-compiler works.
6911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912 # <limits.h> exists even on freestanding compilers.
6913 # On the NeXT, cc -E runs the code through the compiler's parser,
6914 # not just through cpp. "Syntax error" is here to catch this case.
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6922 # include <limits.h>
6924 # include <assert.h>
6928 if { (ac_try="$ac_cpp conftest.$ac_ext"
6930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6931 *) ac_try_echo=$ac_try;;
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6936 grep -v '^ *+' conftest.er1 >conftest.err
6938 cat conftest.err >&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } >/dev/null && {
6941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 # Broken: fails on valid input.
6953 rm -f conftest.err conftest.$ac_ext
6955 # OK, works on sane cases. Now check whether nonexistent headers
6956 # can be detected and how.
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <ac_nonexistent.h>
6965 if { (ac_try="$ac_cpp conftest.$ac_ext"
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } >/dev/null && {
6978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6979 test ! -s conftest.err
6981 # Broken: success on invalid input.
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 # Passes both tests.
6992 rm -f conftest.err conftest.$ac_ext
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
7009 { echo "$as_me:$LINENO: result: $CPP" >&5
7010 echo "${ECHO_T}$CPP" >&6; }
7012 for ac_c_preproc_warn_flag in '' yes
7014 # Use a header file that comes with gcc, so configuring glibc
7015 # with a fresh cross-compiler works.
7016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017 # <limits.h> exists even on freestanding compilers.
7018 # On the NeXT, cc -E runs the code through the compiler's parser,
7019 # not just through cpp. "Syntax error" is here to catch this case.
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 # include <limits.h>
7029 # include <assert.h>
7033 if { (ac_try="$ac_cpp conftest.$ac_ext"
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7041 grep -v '^ *+' conftest.er1 >conftest.err
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } >/dev/null && {
7046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 # Broken: fails on valid input.
7058 rm -f conftest.err conftest.$ac_ext
7060 # OK, works on sane cases. Now check whether nonexistent headers
7061 # can be detected and how.
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #include <ac_nonexistent.h>
7070 if { (ac_try="$ac_cpp conftest.$ac_ext"
7072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7073 *) ac_try_echo=$ac_try;;
7075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7078 grep -v '^ *+' conftest.er1 >conftest.err
7080 cat conftest.err >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); } >/dev/null && {
7083 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7084 test ! -s conftest.err
7086 # Broken: success on invalid input.
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7092 # Passes both tests.
7097 rm -f conftest.err conftest.$ac_ext
7100 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7101 rm -f conftest.err conftest.$ac_ext
7102 if $ac_preproc_ok; then
7105 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7108 See \`config.log' for more details." >&2;}
7109 { (exit 1); exit 1; }; }
7113 ac_cpp='$CPP $CPPFLAGS'
7114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7121 if test "${ac_cv_header_stdc+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_header_stdc=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_header_stdc=no
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 if test $ac_cv_header_stdc = yes; then
7171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7172 cat >conftest.$ac_ext <<_ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7182 $EGREP "memchr" >/dev/null 2>&1; then
7185 ac_cv_header_stdc=no
7191 if test $ac_cv_header_stdc = yes; then
7192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7193 cat >conftest.$ac_ext <<_ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7203 $EGREP "free" >/dev/null 2>&1; then
7206 ac_cv_header_stdc=no
7212 if test $ac_cv_header_stdc = yes; then
7213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7214 if test "$cross_compiling" = yes; then
7217 cat >conftest.$ac_ext <<_ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7225 #if ((' ' & 0x0FF) == 0x020)
7226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7229 # define ISLOWER(c) \
7230 (('a' <= (c) && (c) <= 'i') \
7231 || ('j' <= (c) && (c) <= 'r') \
7232 || ('s' <= (c) && (c) <= 'z'))
7233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7241 for (i = 0; i < 256; i++)
7242 if (XOR (islower (i), ISLOWER (i))
7243 || toupper (i) != TOUPPER (i))
7248 rm -f conftest$ac_exeext
7249 if { (ac_try="$ac_link"
7251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7252 *) ac_try_echo=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_link") 2>&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7259 { (case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_try") 2>&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; }; then
7270 echo "$as_me: program exited with status $ac_status" >&5
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_cv_header_stdc=no
7277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7285 if test $ac_cv_header_stdc = yes; then
7287 cat >>confdefs.h <<\_ACEOF
7288 #define STDC_HEADERS 1
7293 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304 inttypes.h stdint.h unistd.h
7306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 cat >conftest.$ac_ext <<_ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7320 #include <$ac_header>
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7339 eval "$as_ac_Header=yes"
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 eval "$as_ac_Header=no"
7347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 ac_res=`eval echo '${'$as_ac_Header'}'`
7350 { echo "$as_me:$LINENO: result: $ac_res" >&5
7351 echo "${ECHO_T}$ac_res" >&6; }
7352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7353 cat >>confdefs.h <<_ACEOF
7354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363 for ac_header in dlfcn.h
7365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7370 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 ac_res=`eval echo '${'$as_ac_Header'}'`
7373 { echo "$as_me:$LINENO: result: $ac_res" >&5
7374 echo "${ECHO_T}$ac_res" >&6; }
7376 # Is the header compilable?
7377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7379 cat >conftest.$ac_ext <<_ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7385 $ac_includes_default
7386 #include <$ac_header>
7388 rm -f conftest.$ac_objext
7389 if { (ac_try="$ac_compile"
7391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7392 *) ac_try_echo=$ac_try;;
7394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7395 (eval "$ac_compile") 2>conftest.er1
7397 grep -v '^ *+' conftest.er1 >conftest.err
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } && {
7402 test -z "$ac_c_werror_flag" ||
7403 test ! -s conftest.err
7404 } && test -s conftest.$ac_objext; then
7405 ac_header_compiler=yes
7407 echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7410 ac_header_compiler=no
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7415 echo "${ECHO_T}$ac_header_compiler" >&6; }
7417 # Is the header present?
7418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 #include <$ac_header>
7428 if { (ac_try="$ac_cpp conftest.$ac_ext"
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1 >conftest.err
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } >/dev/null && {
7441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7444 ac_header_preproc=yes
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_header_preproc=no
7452 rm -f conftest.err conftest.$ac_ext
7453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7454 echo "${ECHO_T}$ac_header_preproc" >&6; }
7456 # So? What about this header?
7457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7463 ac_header_preproc=yes
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7479 ## --------------------------------------------- ##
7480 ## Report this to <http://www.openldap.org/its/> ##
7481 ## --------------------------------------------- ##
7483 ) | sed "s/^/$as_me: WARNING: /" >&2
7486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7489 echo $ECHO_N "(cached) $ECHO_C" >&6
7491 eval "$as_ac_Header=\$ac_header_preproc"
7493 ac_res=`eval echo '${'$as_ac_Header'}'`
7494 { echo "$as_me:$LINENO: result: $ac_res" >&5
7495 echo "${ECHO_T}$ac_res" >&6; }
7498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7508 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7510 # find the maximum length of command line arguments
7511 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7512 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7513 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7521 # On DJGPP, this test can blow up pretty badly due to problems in libc
7522 # (any single argument exceeding 2000 bytes causes a buffer overrun
7523 # during glob expansion). Even if it were fixed, the result of this
7524 # check would be larger than it should be.
7525 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7529 # Under GNU Hurd, this test is not required because there is
7530 # no limit to the length of command line arguments.
7531 # Libtool will interpret -1 as no limit whatsoever
7532 lt_cv_sys_max_cmd_len=-1;
7536 # On Win9x/ME, this test blows up -- it succeeds, but takes
7537 # about 5 minutes as the teststring grows exponentially.
7538 # Worse, since 9x/ME are not pre-emptively multitasking,
7539 # you end up with a "frozen" computer, even though with patience
7540 # the test eventually succeeds (with a max line length of 256k).
7541 # Instead, let's just punt: use the minimum linelength reported by
7542 # all of the supported platforms: 8192 (on NT/2K/XP).
7543 lt_cv_sys_max_cmd_len=8192;
7547 # On AmigaOS with pdksh, this test takes hours, literally.
7548 # So we just punt and use a minimum line length of 8192.
7549 lt_cv_sys_max_cmd_len=8192;
7552 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7553 # This has been around since 386BSD, at least. Likely further.
7554 if test -x /sbin/sysctl; then
7555 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7556 elif test -x /usr/sbin/sysctl; then
7557 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7559 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7561 # And add a safety zone
7562 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7563 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7566 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7567 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7568 # nice to cause kernel panics so lets avoid the loop below.
7569 # First set a reasonable default.
7570 lt_cv_sys_max_cmd_len=16384
7572 if test -x /sbin/sysconfig; then
7573 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7574 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7579 # If test is not a shell built-in, we'll probably end up computing a
7580 # maximum length that is only half of the actual maximum length, but
7582 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7583 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7584 = "XX$teststring") >/dev/null 2>&1 &&
7585 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7586 lt_cv_sys_max_cmd_len=$new_result &&
7587 test $i != 17 # 1/2 MB should be enough
7590 teststring=$teststring$teststring
7593 # Add a significant safety factor because C++ compilers can tack on massive
7594 # amounts of additional arguments before passing them to the linker.
7595 # It appears as though 1/2 is a usable value.
7596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7602 if test -n $lt_cv_sys_max_cmd_len ; then
7603 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7604 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7606 { echo "$as_me:$LINENO: result: none" >&5
7607 echo "${ECHO_T}none" >&6; }
7613 # Check for command to grab the raw symbol name followed by C symbol from nm.
7614 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7615 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7616 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 # These are sane defaults that work on at least a few old systems.
7621 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7623 # Character class describing NM global symbol codes.
7624 symcode='[BCDEGRST]'
7626 # Regexp to match symbols that can be accessed directly from C.
7627 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7629 # Transform an extracted symbol line into a proper C declaration
7630 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7632 # Transform an extracted symbol line into symbol name and symbol address
7633 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'"
7635 # Define system-specific variables.
7640 cygwin* | mingw* | pw32*)
7641 symcode='[ABCDGISTW]'
7643 hpux*) # Its linker distinguishes data from code symbols
7644 if test "$host_cpu" = ia64; then
7645 symcode='[ABCDEGRST]'
7647 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7648 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'"
7651 if test "$host_cpu" = ia64; then
7652 symcode='[ABCDGIRSTW]'
7653 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7654 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'"
7658 symcode='[BCDEGRST]'
7661 symcode='[BCDEGQRST]'
7671 # Handle CRLF in mingw tool chain
7675 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7679 # If we're using GNU nm, then use its standard symbol codes.
7680 case `$NM -V 2>&1` in
7681 *GNU* | *'with BFD'*)
7682 symcode='[ABCDGIRSTW]' ;;
7685 # Try without a prefix undercore, then with it.
7686 for ac_symprfx in "" "_"; do
7688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7689 symxfrm="\\1 $ac_symprfx\\2 \\2"
7691 # Write the raw and C identifiers.
7692 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7694 # Check to see that the pipe works correctly.
7698 cat > conftest.$ac_ext <<EOF
7703 void nm_test_func(){}
7707 int main(){nm_test_var='a';nm_test_func();return(0);}
7710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711 (eval $ac_compile) 2>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; then
7715 # Now try to grab the symbols.
7717 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7718 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7721 (exit $ac_status); } && test -s "$nlist"; then
7722 # Try sorting and uniquifying the output.
7723 if sort "$nlist" | uniq > "$nlist"T; then
7724 mv -f "$nlist"T "$nlist"
7729 # Make sure that we snagged all the symbols we need.
7730 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7731 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7732 cat <<EOF > conftest.$ac_ext
7738 # Now generate the symbol file.
7739 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7741 cat <<EOF >> conftest.$ac_ext
7742 #if defined (__STDC__) && __STDC__
7743 # define lt_ptr_t void *
7745 # define lt_ptr_t char *
7749 /* The mapping between symbol names and symbols. */
7754 lt_preloaded_symbols[] =
7757 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7758 cat <<\EOF >> conftest.$ac_ext
7766 # Now try linking the two files.
7767 mv conftest.$ac_objext conftstm.$ac_objext
7768 lt_save_LIBS="$LIBS"
7769 lt_save_CFLAGS="$CFLAGS"
7770 LIBS="conftstm.$ac_objext"
7771 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773 (eval $ac_link) 2>&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7779 LIBS="$lt_save_LIBS"
7780 CFLAGS="$lt_save_CFLAGS"
7782 echo "cannot find nm_test_func in $nlist" >&5
7785 echo "cannot find nm_test_var in $nlist" >&5
7788 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7791 echo "$progname: failed program was:" >&5
7792 cat conftest.$ac_ext >&5
7794 rm -f conftest* conftst*
7796 # Do not use the global_symbol_pipe unless it works.
7797 if test "$pipe_works" = yes; then
7800 lt_cv_sys_global_symbol_pipe=
7806 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7807 lt_cv_sys_global_symbol_to_cdecl=
7809 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7810 { echo "$as_me:$LINENO: result: failed" >&5
7811 echo "${ECHO_T}failed" >&6; }
7813 { echo "$as_me:$LINENO: result: ok" >&5
7814 echo "${ECHO_T}ok" >&6; }
7817 { echo "$as_me:$LINENO: checking for objdir" >&5
7818 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7819 if test "${lt_cv_objdir+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 rm -f .libs 2>/dev/null
7823 mkdir .libs 2>/dev/null
7824 if test -d .libs; then
7827 # MS-DOS does not allow filenames that begin with a dot.
7830 rmdir .libs 2>/dev/null
7832 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7833 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7834 objdir=$lt_cv_objdir
7842 # AIX sometimes has problems with the GCC collect2 program. For some
7843 # reason, if we set the COLLECT_NAMES environment variable, the problems
7844 # vanish in a puff of smoke.
7845 if test "X${COLLECT_NAMES+set}" != Xset; then
7847 export COLLECT_NAMES
7852 # Sed substitution that helps us do robust quoting. It backslashifies
7853 # metacharacters that are still active within double-quoted strings.
7854 Xsed='sed -e 1s/^X//'
7855 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7857 # Same as above, but do not quote variable references.
7858 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7860 # Sed substitution to delay expansion of an escaped shell variable in a
7861 # double_quote_subst'ed string.
7862 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7864 # Sed substitution to avoid accidental globbing in evaled expressions
7865 no_glob_subst='s/\*/\\\*/g'
7871 default_ofile=libtool
7872 can_build_shared=yes
7874 # All known linkers require a `.a' archive for static linking (except MSVC,
7875 # which needs '.lib').
7877 ltmain="$ac_aux_dir/ltmain.sh"
7878 ofile="$default_ofile"
7879 with_gnu_ld="$lt_cv_prog_gnu_ld"
7881 if test -n "$ac_tool_prefix"; then
7882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7883 set dummy ${ac_tool_prefix}ar; ac_word=$2
7884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7886 if test "${ac_cv_prog_AR+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 if test -n "$AR"; then
7890 ac_cv_prog_AR="$AR" # Let the user override the test.
7892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 test -z "$as_dir" && as_dir=.
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7899 ac_cv_prog_AR="${ac_tool_prefix}ar"
7900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 if test -n "$AR"; then
7911 { echo "$as_me:$LINENO: result: $AR" >&5
7912 echo "${ECHO_T}$AR" >&6; }
7914 { echo "$as_me:$LINENO: result: no" >&5
7915 echo "${ECHO_T}no" >&6; }
7920 if test -z "$ac_cv_prog_AR"; then
7922 # Extract the first word of "ar", so it can be a program name with args.
7923 set dummy ar; ac_word=$2
7924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7926 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 if test -n "$ac_ct_AR"; then
7930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir=.
7937 for ac_exec_ext in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_ac_ct_AR="ar"
7940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7950 if test -n "$ac_ct_AR"; then
7951 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7952 echo "${ECHO_T}$ac_ct_AR" >&6; }
7954 { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7958 if test "x$ac_ct_AR" = x; then
7961 case $cross_compiling:$ac_tool_warned in
7963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7964 whose name does not start with the host triplet. If you think this
7965 configuration is useful to you, please write to autoconf@gnu.org." >&5
7966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7967 whose name does not start with the host triplet. If you think this
7968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7969 ac_tool_warned=yes ;;
7977 if test -n "$ac_tool_prefix"; then
7978 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7979 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7982 if test "${ac_cv_prog_RANLIB+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 if test -n "$RANLIB"; then
7986 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 RANLIB=$ac_cv_prog_RANLIB
8006 if test -n "$RANLIB"; then
8007 { echo "$as_me:$LINENO: result: $RANLIB" >&5
8008 echo "${ECHO_T}$RANLIB" >&6; }
8010 { echo "$as_me:$LINENO: result: no" >&5
8011 echo "${ECHO_T}no" >&6; }
8016 if test -z "$ac_cv_prog_RANLIB"; then
8017 ac_ct_RANLIB=$RANLIB
8018 # Extract the first word of "ranlib", so it can be a program name with args.
8019 set dummy ranlib; ac_word=$2
8020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8022 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8023 echo $ECHO_N "(cached) $ECHO_C" >&6
8025 if test -n "$ac_ct_RANLIB"; then
8026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_prog_ac_ct_RANLIB="ranlib"
8036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8046 if test -n "$ac_ct_RANLIB"; then
8047 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8048 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8050 { echo "$as_me:$LINENO: result: no" >&5
8051 echo "${ECHO_T}no" >&6; }
8054 if test "x$ac_ct_RANLIB" = x; then
8057 case $cross_compiling:$ac_tool_warned in
8059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8060 whose name does not start with the host triplet. If you think this
8061 configuration is useful to you, please write to autoconf@gnu.org." >&5
8062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8063 whose name does not start with the host triplet. If you think this
8064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8065 ac_tool_warned=yes ;;
8067 RANLIB=$ac_ct_RANLIB
8070 RANLIB="$ac_cv_prog_RANLIB"
8073 if test -n "$ac_tool_prefix"; then
8074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8075 set dummy ${ac_tool_prefix}strip; ac_word=$2
8076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8078 if test "${ac_cv_prog_STRIP+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 if test -n "$STRIP"; then
8082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 test -z "$as_dir" && as_dir=.
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8101 STRIP=$ac_cv_prog_STRIP
8102 if test -n "$STRIP"; then
8103 { echo "$as_me:$LINENO: result: $STRIP" >&5
8104 echo "${ECHO_T}$STRIP" >&6; }
8106 { echo "$as_me:$LINENO: result: no" >&5
8107 echo "${ECHO_T}no" >&6; }
8112 if test -z "$ac_cv_prog_STRIP"; then
8114 # Extract the first word of "strip", so it can be a program name with args.
8115 set dummy strip; ac_word=$2
8116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8118 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8119 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 if test -n "$ac_ct_STRIP"; then
8122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8128 test -z "$as_dir" && as_dir=.
8129 for ac_exec_ext in '' $ac_executable_extensions; do
8130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8131 ac_cv_prog_ac_ct_STRIP="strip"
8132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8142 if test -n "$ac_ct_STRIP"; then
8143 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8144 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8146 { echo "$as_me:$LINENO: result: no" >&5
8147 echo "${ECHO_T}no" >&6; }
8150 if test "x$ac_ct_STRIP" = x; then
8153 case $cross_compiling:$ac_tool_warned in
8155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8156 whose name does not start with the host triplet. If you think this
8157 configuration is useful to you, please write to autoconf@gnu.org." >&5
8158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8159 whose name does not start with the host triplet. If you think this
8160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8161 ac_tool_warned=yes ;;
8166 STRIP="$ac_cv_prog_STRIP"
8171 old_CFLAGS="$CFLAGS"
8173 # Set sane defaults for various variables
8174 test -z "$AR" && AR=ar
8175 test -z "$AR_FLAGS" && AR_FLAGS=cru
8176 test -z "$AS" && AS=as
8177 test -z "$CC" && CC=cc
8178 test -z "$LTCC" && LTCC=$CC
8179 test -z "$DLLTOOL" && DLLTOOL=dlltool
8180 test -z "$LD" && LD=ld
8181 test -z "$LN_S" && LN_S="ln -s"
8182 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8183 test -z "$NM" && NM=nm
8184 test -z "$SED" && SED=sed
8185 test -z "$OBJDUMP" && OBJDUMP=objdump
8186 test -z "$RANLIB" && RANLIB=:
8187 test -z "$STRIP" && STRIP=:
8188 test -z "$ac_objext" && ac_objext=o
8190 # Determine commands to create old-style static archives.
8191 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8192 old_postinstall_cmds='chmod 644 $oldlib'
8193 old_postuninstall_cmds=
8195 if test -n "$RANLIB"; then
8198 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8201 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8204 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8207 for cc_temp in $compiler""; do
8209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8218 # Only perform the check for file, if the check method requires it
8219 case $deplibs_check_method in
8221 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8222 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8223 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8224 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8232 lt_save_MAGIC_CMD="$MAGIC_CMD"
8233 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235 for ac_dir in $ac_dummy; do
8237 test -z "$ac_dir" && ac_dir=.
8238 if test -f $ac_dir/${ac_tool_prefix}file; then
8239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8240 if test -n "$file_magic_test_file"; then
8241 case $deplibs_check_method in
8243 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246 $EGREP "$file_magic_regex" > /dev/null; then
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such. This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem. Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8268 MAGIC_CMD="$lt_save_MAGIC_CMD"
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8276 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8278 { echo "$as_me:$LINENO: result: no" >&5
8279 echo "${ECHO_T}no" >&6; }
8282 if test -z "$lt_cv_path_MAGIC_CMD"; then
8283 if test -n "$ac_tool_prefix"; then
8284 { echo "$as_me:$LINENO: checking for file" >&5
8285 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8286 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8294 lt_save_MAGIC_CMD="$MAGIC_CMD"
8295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8296 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8297 for ac_dir in $ac_dummy; do
8299 test -z "$ac_dir" && ac_dir=.
8300 if test -f $ac_dir/file; then
8301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8302 if test -n "$file_magic_test_file"; then
8303 case $deplibs_check_method in
8305 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8308 $EGREP "$file_magic_regex" > /dev/null; then
8313 *** Warning: the command libtool uses to detect shared libraries,
8314 *** $file_magic_cmd, produces output that libtool cannot recognize.
8315 *** The result is that libtool may fail to recognize shared libraries
8316 *** as such. This will affect the creation of libtool libraries that
8317 *** depend on shared libraries, but programs linked with such libtool
8318 *** libraries will work regardless of this problem. Nevertheless, you
8319 *** may want to report the problem to your system manager and/or to
8320 *** bug-libtool@gnu.org
8330 MAGIC_CMD="$lt_save_MAGIC_CMD"
8335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8336 if test -n "$MAGIC_CMD"; then
8337 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8338 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8354 enable_win32_dll=yes
8356 # Check whether --enable-libtool-lock was given.
8357 if test "${enable_libtool_lock+set}" = set; then
8358 enableval=$enable_libtool_lock;
8361 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8364 # Check whether --with-pic was given.
8365 if test "${with_pic+set}" = set; then
8366 withval=$with_pic; pic_mode="$withval"
8371 test -z "$pic_mode" && pic_mode=default
8373 # Use C for the default configuration in the libtool script
8377 ac_cpp='$CPP $CPPFLAGS'
8378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8383 # Source file extension for C test sources.
8386 # Object file extension for compiled C test sources.
8390 # Code to be used in simple compile tests
8391 lt_simple_compile_test_code="int some_variable = 0;\n"
8393 # Code to be used in simple link tests
8394 lt_simple_link_test_code='int main(){return(0);}\n'
8397 # If no C compiler was specified, use CC.
8400 # Allow CC to be a program name with arguments.
8404 # save warnings/boilerplate of simple test code
8405 ac_outfile=conftest.$ac_objext
8406 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8407 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8408 _lt_compiler_boilerplate=`cat conftest.err`
8411 ac_outfile=conftest.$ac_objext
8412 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8413 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8414 _lt_linker_boilerplate=`cat conftest.err`
8419 # Check for any special shared library compilation flags.
8422 if test "$GCC" = no; then
8425 lt_prog_cc_shlib='-belf'
8429 if test -n "$lt_prog_cc_shlib"; then
8430 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8431 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8432 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8434 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8435 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8436 lt_cv_prog_cc_can_build_shared=no
8442 # Check to make sure the static flag actually works.
8444 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8445 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8446 if test "${lt_prog_compiler_static_works+set}" = set; then
8447 echo $ECHO_N "(cached) $ECHO_C" >&6
8449 lt_prog_compiler_static_works=no
8450 save_LDFLAGS="$LDFLAGS"
8451 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8452 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8453 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8454 # The linker can only warn and ignore the option if not recognized
8455 # So say no if there are warnings
8456 if test -s conftest.err; then
8457 # Append any errors to the config.log.
8458 cat conftest.err 1>&5
8459 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8460 $SED '/^$/d' conftest.err >conftest.er2
8461 if diff conftest.exp conftest.er2 >/dev/null; then
8462 lt_prog_compiler_static_works=yes
8465 lt_prog_compiler_static_works=yes
8469 LDFLAGS="$save_LDFLAGS"
8472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8473 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8475 if test x"$lt_prog_compiler_static_works" = xyes; then
8478 lt_prog_compiler_static=
8484 lt_prog_compiler_no_builtin_flag=
8486 if test "$GCC" = yes; then
8487 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8490 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8491 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8492 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 lt_cv_prog_compiler_rtti_exceptions=no
8496 ac_outfile=conftest.$ac_objext
8497 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8498 lt_compiler_flag="-fno-rtti -fno-exceptions"
8499 # Insert the option either (1) after the last *FLAGS variable, or
8500 # (2) before a word containing "conftest.", or (3) at the end.
8501 # Note that $ac_compile itself does not contain backslashes and begins
8502 # with a dollar sign (not a hyphen), so the echo should work correctly.
8503 # The option is referenced via a variable to avoid confusing sed.
8504 lt_compile=`echo "$ac_compile" | $SED \
8505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8507 -e 's:$: $lt_compiler_flag:'`
8508 (eval echo "\"\$as_me:8508: $lt_compile\"" >&5)
8509 (eval "$lt_compile" 2>conftest.err)
8511 cat conftest.err >&5
8512 echo "$as_me:8512: \$? = $ac_status" >&5
8513 if (exit $ac_status) && test -s "$ac_outfile"; then
8514 # The compiler can only warn and ignore the option if not recognized
8515 # So say no if there are warnings other than the usual output.
8516 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8517 $SED '/^$/d' conftest.err >conftest.er2
8518 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8519 lt_cv_prog_compiler_rtti_exceptions=yes
8525 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8526 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8528 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8529 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8536 lt_prog_compiler_wl=
8537 lt_prog_compiler_pic=
8538 lt_prog_compiler_static=
8540 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8541 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8543 if test "$GCC" = yes; then
8544 lt_prog_compiler_wl='-Wl,'
8545 lt_prog_compiler_static='-static'
8549 # All AIX code is PIC.
8550 if test "$host_cpu" = ia64; then
8551 # AIX 5 now supports IA64 processor
8552 lt_prog_compiler_static='-Bstatic'
8557 # FIXME: we need at least 68020 code to build shared libraries, but
8558 # adding the `-m68020' flag to GCC prevents building anything better,
8560 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8563 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8564 # PIC is the default for these OSes.
8567 mingw* | pw32* | os2*)
8568 # This hack is so that the source file can tell whether it is being
8569 # built for inclusion in a dll (and should export symbols for example).
8570 lt_prog_compiler_pic='-DDLL_EXPORT'
8573 darwin* | rhapsody*)
8574 # PIC is the default on this platform
8575 # Common symbols not allowed in MH_DYLIB files
8576 lt_prog_compiler_pic='-fno-common'
8580 # Just because we use GCC doesn't mean we suddenly get shared libraries
8581 # on systems that don't support them.
8582 lt_prog_compiler_can_build_shared=no
8587 if test -d /usr/nec; then
8588 lt_prog_compiler_pic=-Kconform_pic
8593 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8600 lt_prog_compiler_pic='-fPIC'
8606 lt_prog_compiler_pic='-fPIC'
8610 # PORTME Check for flag to pass linker flags through the system compiler.
8613 lt_prog_compiler_wl='-Wl,'
8614 if test "$host_cpu" = ia64; then
8615 # AIX 5 now supports IA64 processor
8616 lt_prog_compiler_static='-Bstatic'
8618 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8622 # PIC is the default on this platform
8623 # Common symbols not allowed in MH_DYLIB files
8624 case $cc_basename in
8626 lt_prog_compiler_pic='-qnocommon'
8627 lt_prog_compiler_wl='-Wl,'
8632 mingw* | pw32* | os2*)
8633 # This hack is so that the source file can tell whether it is being
8634 # built for inclusion in a dll (and should export symbols for example).
8635 lt_prog_compiler_pic='-DDLL_EXPORT'
8638 hpux9* | hpux10* | hpux11*)
8639 lt_prog_compiler_wl='-Wl,'
8640 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8647 lt_prog_compiler_pic='+Z'
8650 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8651 lt_prog_compiler_static='${wl}-a ${wl}archive'
8654 irix5* | irix6* | nonstopux*)
8655 lt_prog_compiler_wl='-Wl,'
8656 # PIC (with -KPIC) is the default.
8657 lt_prog_compiler_static='-non_shared'
8661 lt_prog_compiler_pic='-KPIC'
8662 lt_prog_compiler_static='-Bstatic'
8666 case $cc_basename in
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_pic='-KPIC'
8670 lt_prog_compiler_static='-static'
8672 pgcc* | pgf77* | pgf90* | pgf95*)
8673 # Portland Group compilers (*not* the Pentium gcc compiler,
8674 # which looks to be a dead project)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-fpic'
8677 lt_prog_compiler_static='-Bstatic'
8680 lt_prog_compiler_wl='-Wl,'
8681 # All Alpha code is PIC.
8682 lt_prog_compiler_static='-non_shared'
8687 osf3* | osf4* | osf5*)
8688 lt_prog_compiler_wl='-Wl,'
8689 # All OSF/1 code is PIC.
8690 lt_prog_compiler_static='-non_shared'
8694 lt_prog_compiler_pic='-Kpic'
8695 lt_prog_compiler_static='-dn'
8699 lt_prog_compiler_pic='-KPIC'
8700 lt_prog_compiler_static='-Bstatic'
8701 case $cc_basename in
8703 lt_prog_compiler_wl='-Qoption ld ';;
8705 lt_prog_compiler_wl='-Wl,';;
8710 lt_prog_compiler_wl='-Qoption ld '
8711 lt_prog_compiler_pic='-PIC'
8712 lt_prog_compiler_static='-Bstatic'
8715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8722 if test -d /usr/nec ;then
8723 lt_prog_compiler_pic='-Kconform_pic'
8724 lt_prog_compiler_static='-Bstatic'
8729 lt_prog_compiler_wl='-Wl,'
8730 lt_prog_compiler_can_build_shared=no
8734 lt_prog_compiler_pic='-pic'
8735 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_can_build_shared=no
8744 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8745 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8748 # Check to make sure the PIC flag actually works.
8750 if test -n "$lt_prog_compiler_pic"; then
8752 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8753 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8754 if test "${lt_prog_compiler_pic_works+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 lt_prog_compiler_pic_works=no
8758 ac_outfile=conftest.$ac_objext
8759 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8760 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8761 # Insert the option either (1) after the last *FLAGS variable, or
8762 # (2) before a word containing "conftest.", or (3) at the end.
8763 # Note that $ac_compile itself does not contain backslashes and begins
8764 # with a dollar sign (not a hyphen), so the echo should work correctly.
8765 # The option is referenced via a variable to avoid confusing sed.
8766 lt_compile=`echo "$ac_compile" | $SED \
8767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8769 -e 's:$: $lt_compiler_flag:'`
8770 (eval echo "\"\$as_me:8770: $lt_compile\"" >&5)
8771 (eval "$lt_compile" 2>conftest.err)
8773 cat conftest.err >&5
8774 echo "$as_me:8774: \$? = $ac_status" >&5
8775 if (exit $ac_status) && test -s "$ac_outfile"; then
8776 # The compiler can only warn and ignore the option if not recognized
8777 # So say no if there are warnings other than the usual output.
8778 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8779 $SED '/^$/d' conftest.err >conftest.er2
8780 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8781 lt_prog_compiler_pic_works=yes
8787 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8788 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8790 if test x"$lt_prog_compiler_pic_works" = xyes; then
8791 case $lt_prog_compiler_pic in
8793 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8796 lt_prog_compiler_pic=
8797 lt_prog_compiler_can_build_shared=no
8802 # For platforms which do not support PIC, -DPIC is meaningless:
8804 lt_prog_compiler_pic=
8807 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8811 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8812 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
8816 lt_cv_prog_compiler_c_o=no
8817 $rm -r conftest 2>/dev/null
8821 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8823 lt_compiler_flag="-o out/conftest2.$ac_objext"
8824 # Insert the option either (1) after the last *FLAGS variable, or
8825 # (2) before a word containing "conftest.", or (3) at the end.
8826 # Note that $ac_compile itself does not contain backslashes and begins
8827 # with a dollar sign (not a hyphen), so the echo should work correctly.
8828 lt_compile=`echo "$ac_compile" | $SED \
8829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8831 -e 's:$: $lt_compiler_flag:'`
8832 (eval echo "\"\$as_me:8832: $lt_compile\"" >&5)
8833 (eval "$lt_compile" 2>out/conftest.err)
8835 cat out/conftest.err >&5
8836 echo "$as_me:8836: \$? = $ac_status" >&5
8837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8839 # The compiler can only warn and ignore the option if not recognized
8840 # So say no if there are warnings
8841 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8842 $SED '/^$/d' out/conftest.err >out/conftest.er2
8843 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8844 lt_cv_prog_compiler_c_o=yes
8849 # SGI C++ compiler will create directory out/ii_files/ for
8850 # template instantiation
8851 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8852 $rm out/* && rmdir out
8858 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8859 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8862 hard_links="nottested"
8863 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8864 # do not overwrite the value of need_locks provided by the user
8865 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8866 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8871 ln conftest.a conftest.b 2>&5 || hard_links=no
8872 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8873 { echo "$as_me:$LINENO: result: $hard_links" >&5
8874 echo "${ECHO_T}$hard_links" >&6; }
8875 if test "$hard_links" = no; then
8876 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8877 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8884 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8885 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8888 allow_undefined_flag=
8889 enable_shared_with_static_runtimes=no
8891 archive_expsym_cmds=
8892 old_archive_From_new_cmds=
8893 old_archive_from_expsyms_cmds=
8894 export_dynamic_flag_spec=
8895 whole_archive_flag_spec=
8896 thread_safe_flag_spec=
8897 hardcode_libdir_flag_spec=
8898 hardcode_libdir_flag_spec_ld=
8899 hardcode_libdir_separator=
8902 hardcode_shlibpath_var=unsupported
8903 link_all_deplibs=unknown
8904 hardcode_automatic=no
8907 always_export_symbols=no
8908 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8909 # include_expsyms should be a list of space-separated symbols to be *always*
8910 # included in the symbol list
8912 # exclude_expsyms can be an extended regexp of symbols to exclude
8913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8915 # as well as any symbol that contains `d'.
8916 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8918 # platforms (ab)use it in PIC code, but their linkers get confused if
8919 # the symbol is explicitly referenced. Since portable code cannot
8920 # rely on this symbol name, it's probably fine to never include it in
8921 # preloaded symbol tables.
8922 extract_expsyms_cmds=
8923 # Just being paranoid about ensuring that cc_basename is set.
8924 for cc_temp in $compiler""; do
8926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8932 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8935 cygwin* | mingw* | pw32*)
8936 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8937 # When not using gcc, we currently assume that we are using
8938 # Microsoft Visual C++.
8939 if test "$GCC" != yes; then
8949 if test "$with_gnu_ld" = yes; then
8950 # If archive_cmds runs LD, not CC, wlarc should be empty
8953 # Set some defaults for GNU ld with shared library support. These
8954 # are reset later if shared libraries are not supported. Putting them
8955 # here allows them to be overridden if necessary.
8956 runpath_var=LD_RUN_PATH
8957 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8958 export_dynamic_flag_spec='${wl}--export-dynamic'
8959 # ancient GNU ld didn't support --whole-archive et. al.
8960 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8961 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8963 whole_archive_flag_spec=
8965 supports_anon_versioning=no
8966 case `$LD -v 2>/dev/null` in
8967 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8968 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8969 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8970 *\ 2.11.*) ;; # other 2.11 versions
8971 *) supports_anon_versioning=yes ;;
8974 # See if GNU ld supports shared libraries.
8976 aix3* | aix4* | aix5*)
8977 # On AIX/PPC, the GNU linker is very broken
8978 if test "$host_cpu" != ia64; then
8982 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8983 *** to be unable to reliably create shared libraries on AIX.
8984 *** Therefore, libtool is disabling shared libraries support. If you
8985 *** really care for shared libraries, you may want to modify your PATH
8986 *** so that a non-GNU linker is found, and then restart.
8993 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)'
8994 hardcode_libdir_flag_spec='-L$libdir'
8995 hardcode_minus_L=yes
8997 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8998 # that the semantics of dynamic libraries on AmigaOS, at least up
8999 # to version 4, is to share data among multiple programs linked
9000 # with the same dynamic library. Since this doesn't match the
9001 # behavior of shared libraries on other platforms, we can't use
9007 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9008 allow_undefined_flag=unsupported
9009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9010 # support --undefined. This deserves some investigation. FIXME
9011 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9017 cygwin* | mingw* | pw32*)
9018 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9019 # as there is no search path for DLLs.
9020 hardcode_libdir_flag_spec='-L$libdir'
9021 allow_undefined_flag=unsupported
9022 always_export_symbols=no
9023 enable_shared_with_static_runtimes=yes
9024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9026 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9027 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9028 # If the export-symbols file already is a .def file (1st line
9029 # is EXPORTS), use it as is; otherwise, prepend...
9030 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9031 cp $export_symbols $output_objdir/$soname.def;
9033 echo EXPORTS > $output_objdir/$soname.def;
9034 cat $export_symbols >> $output_objdir/$soname.def;
9036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9045 case $cc_basename,$host_cpu in
9046 pgcc*) # Portland Group C compiler
9047 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'
9048 tmp_addflag=' $pic_flag'
9050 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9051 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'
9052 tmp_addflag=' $pic_flag -Mnomain' ;;
9053 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9054 tmp_addflag=' -i_dynamic' ;;
9055 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9056 tmp_addflag=' -i_dynamic -nofor_main' ;;
9057 ifc* | ifort*) # Intel Fortran compiler
9058 tmp_addflag=' -nofor_main' ;;
9060 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9062 if test $supports_anon_versioning = yes; then
9063 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9065 $echo "local: *; };" >> $output_objdir/$libname.ver~
9066 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9075 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9079 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9084 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9089 *** create shared libraries on Solaris systems. Therefore, libtool
9090 *** is disabling shared libraries support. We urge you to upgrade GNU
9091 *** binutils to release 2.9.1 or newer. Another option is to modify
9092 *** your PATH or compiler configuration so that the native linker is
9093 *** used, and then restart.
9096 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9098 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9105 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9108 hardcode_shlibpath_var=no
9112 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9121 if test "$ld_shlibs" = no; then
9123 hardcode_libdir_flag_spec=
9124 export_dynamic_flag_spec=
9125 whole_archive_flag_spec=
9128 # PORTME fill in a description of your system's linker (not GNU ld)
9131 allow_undefined_flag=unsupported
9132 always_export_symbols=yes
9133 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'
9134 # Note: this linker hardcodes the directories in LIBPATH if there
9135 # are no directories specified by -L.
9136 hardcode_minus_L=yes
9137 if test "$GCC" = yes && test -z "$link_static_flag"; then
9138 # Neither direct hardcoding nor static linking is supported with a
9140 hardcode_direct=unsupported
9145 if test "$host_cpu" = ia64; then
9146 # On IA64, the linker does run time linking by default, so we don't
9147 # have to do anything special.
9148 aix_use_runtimelinking=no
9149 exp_sym_flag='-Bexport'
9152 # If we're using GNU nm, then we don't want the "-C" option.
9153 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9154 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9155 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'
9157 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'
9159 aix_use_runtimelinking=no
9161 # Test if we are trying to use run time linking or normal
9162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9163 # need to do runtime linking.
9164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9165 for ld_flag in $LDFLAGS; do
9166 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9167 aix_use_runtimelinking=yes
9173 exp_sym_flag='-bexport'
9174 no_entry_flag='-bnoentry'
9177 # When large executables or shared objects are built, AIX ld can
9178 # have problems creating the table of contents. If linking a library
9179 # or program results in "error TOC overflow" add -mminimal-toc to
9180 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9181 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9185 hardcode_libdir_separator=':'
9186 link_all_deplibs=yes
9188 if test "$GCC" = yes; then
9189 case $host_os in aix4.[012]|aix4.[012].*)
9190 # We only want to do this on AIX 4.2 and lower, the check
9191 # below for broken collect2 doesn't work under 4.3+
9192 collect2name=`${CC} -print-prog-name=collect2`
9193 if test -f "$collect2name" && \
9194 strings "$collect2name" | grep resolve_lib_name >/dev/null
9196 # We have reworked collect2
9199 # We have old collect2
9200 hardcode_direct=unsupported
9201 # It fails to find uninstalled libraries when the uninstalled
9202 # path is not listed in the libpath. Setting hardcode_minus_L
9203 # to unsupported forces relinking
9204 hardcode_minus_L=yes
9205 hardcode_libdir_flag_spec='-L$libdir'
9206 hardcode_libdir_separator=
9209 shared_flag='-shared'
9210 if test "$aix_use_runtimelinking" = yes; then
9211 shared_flag="$shared_flag "'${wl}-G'
9215 if test "$host_cpu" = ia64; then
9216 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9217 # chokes on -Wl,-G. The following line is correct:
9220 if test "$aix_use_runtimelinking" = yes; then
9221 shared_flag='${wl}-G'
9223 shared_flag='${wl}-bM:SRE'
9228 # It seems that -bexpall does not export symbols beginning with
9229 # underscore (_), so it is better to generate a list of symbols to export.
9230 always_export_symbols=yes
9231 if test "$aix_use_runtimelinking" = yes; then
9232 # Warning - without using the other runtime loading flags (-brtl),
9233 # -berok will link without error, but may produce a broken library.
9234 allow_undefined_flag='-berok'
9235 # Determine the default libpath from the value encoded in an empty executable.
9236 cat >conftest.$ac_ext <<_ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9251 rm -f conftest.$ac_objext conftest$ac_exeext
9252 if { (ac_try="$ac_link"
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_link") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1 >conftest.err
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest$ac_exeext &&
9268 $as_test_x conftest$ac_exeext; then
9270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9272 # Check for a 64-bit object if we didn't find anything.
9273 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; }
9276 echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9283 conftest$ac_exeext conftest.$ac_ext
9284 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9286 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9287 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"
9289 if test "$host_cpu" = ia64; then
9290 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9291 allow_undefined_flag="-z nodefs"
9292 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"
9294 # Determine the default libpath from the value encoded in an empty executable.
9295 cat >conftest.$ac_ext <<_ACEOF
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9310 rm -f conftest.$ac_objext conftest$ac_exeext
9311 if { (ac_try="$ac_link"
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_link") 2>conftest.er1
9319 grep -v '^ *+' conftest.er1 >conftest.err
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest$ac_exeext &&
9327 $as_test_x conftest$ac_exeext; then
9329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9331 # Check for a 64-bit object if we didn't find anything.
9332 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; }
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346 # Warning - without using the other run time loading flags,
9347 # -berok will link without error, but may produce a broken library.
9348 no_undefined_flag=' ${wl}-bernotok'
9349 allow_undefined_flag=' ${wl}-berok'
9350 # -bexpall does not export symbols beginning with underscore (_)
9351 always_export_symbols=yes
9352 # Exported symbols can be pulled into shared objects from archives
9353 whole_archive_flag_spec=' '
9354 archive_cmds_need_lc=yes
9355 # This is similar to how AIX traditionally builds its shared libraries.
9356 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'
9362 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)'
9363 hardcode_libdir_flag_spec='-L$libdir'
9364 hardcode_minus_L=yes
9365 # see comment about different semantics on the GNU ld section
9370 export_dynamic_flag_spec=-rdynamic
9373 cygwin* | mingw* | pw32*)
9374 # When not using gcc, we currently assume that we are using
9375 # Microsoft Visual C++.
9376 # hardcode_libdir_flag_spec is actually meaningless, as there is
9377 # no search path for DLLs.
9378 hardcode_libdir_flag_spec=' '
9379 allow_undefined_flag=unsupported
9380 # Tell ltmain to make .lib files, not .a files.
9382 # Tell ltmain to make .dll files, not .so files.
9384 # FIXME: Setting linknames here is a bad hack.
9385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9386 # The linker will automatically build a .lib file if we build a DLL.
9387 old_archive_From_new_cmds='true'
9388 # FIXME: Should let the user specify the lib program.
9389 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9390 fix_srcfile_path='`cygpath -w "$srcfile"`'
9391 enable_shared_with_static_runtimes=yes
9394 darwin* | rhapsody*)
9396 rhapsody* | darwin1.[012])
9397 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9400 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9401 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9403 case ${MACOSX_DEPLOYMENT_TARGET} in
9405 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9408 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9414 archive_cmds_need_lc=no
9416 hardcode_automatic=yes
9417 hardcode_shlibpath_var=unsupported
9418 whole_archive_flag_spec=''
9419 link_all_deplibs=yes
9420 if test "$GCC" = yes ; then
9421 output_verbose_link_cmd='echo'
9422 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9423 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9424 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9425 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}'
9426 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}'
9428 case $cc_basename in
9430 output_verbose_link_cmd='echo'
9431 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9432 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9433 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9434 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}'
9435 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}'
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9454 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9455 # support. Future versions do this automatically, but an explicit c++rt0.o
9456 # does not break anything, and helps significantly (at the cost of a little
9459 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9460 hardcode_libdir_flag_spec='-R$libdir'
9462 hardcode_shlibpath_var=no
9465 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9467 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9469 hardcode_minus_L=yes
9470 hardcode_shlibpath_var=no
9473 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9474 freebsd* | kfreebsd*-gnu | dragonfly*)
9475 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9476 hardcode_libdir_flag_spec='-R$libdir'
9478 hardcode_shlibpath_var=no
9482 if test "$GCC" = yes; then
9483 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'
9485 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'
9487 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9488 hardcode_libdir_separator=:
9491 # hardcode_minus_L: Not really in the search PATH,
9492 # but as the default location of the library.
9493 hardcode_minus_L=yes
9494 export_dynamic_flag_spec='${wl}-E'
9498 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9501 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9513 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9517 if test "$with_gnu_ld" = no; then
9520 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9521 hardcode_libdir_flag_spec_ld='+b $libdir'
9522 hardcode_libdir_separator=:
9524 hardcode_shlibpath_var=no
9527 hardcode_libdir_flag_spec='-L$libdir'
9529 hardcode_shlibpath_var=no
9531 # hardcode_minus_L: Not really in the search PATH,
9532 # but as the default location of the library.
9533 hardcode_minus_L=yes
9536 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9537 hardcode_libdir_separator=:
9539 export_dynamic_flag_spec='${wl}-E'
9541 # hardcode_minus_L: Not really in the search PATH,
9542 # but as the default location of the library.
9543 hardcode_minus_L=yes
9549 irix5* | irix6* | nonstopux*)
9550 if test "$GCC" = yes; then
9551 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'
9553 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'
9554 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 link_all_deplibs=yes
9562 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9563 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9565 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9567 hardcode_libdir_flag_spec='-R$libdir'
9569 hardcode_shlibpath_var=no
9573 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9576 hardcode_libdir_separator=:
9577 hardcode_shlibpath_var=no
9582 hardcode_shlibpath_var=no
9583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9584 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9586 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9587 export_dynamic_flag_spec='${wl}-E'
9590 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9591 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9592 hardcode_libdir_flag_spec='-R$libdir'
9595 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9596 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9603 hardcode_libdir_flag_spec='-L$libdir'
9604 hardcode_minus_L=yes
9605 allow_undefined_flag=unsupported
9606 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'
9607 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9611 if test "$GCC" = yes; then
9612 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9613 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'
9615 allow_undefined_flag=' -expect_unresolved \*'
9616 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'
9618 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9619 hardcode_libdir_separator=:
9622 osf4* | osf5*) # as osf3* with the addition of -msym flag
9623 if test "$GCC" = yes; then
9624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9625 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'
9626 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9628 allow_undefined_flag=' -expect_unresolved \*'
9629 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'
9630 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9631 $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'
9633 # Both c and cxx compiler support -rpath directly
9634 hardcode_libdir_flag_spec='-rpath $libdir'
9636 hardcode_libdir_separator=:
9640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9641 hardcode_shlibpath_var=no
9642 export_dynamic_flag_spec='${wl}-Bexport'
9643 runpath_var=LD_RUN_PATH
9644 hardcode_runpath_var=yes
9648 no_undefined_flag=' -z text'
9649 if test "$GCC" = yes; then
9651 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9652 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9656 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9658 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9660 hardcode_libdir_flag_spec='-R$libdir'
9661 hardcode_shlibpath_var=no
9663 solaris2.[0-5] | solaris2.[0-5].*) ;;
9665 # The compiler driver will combine linker options so we
9666 # cannot just pass the convience library names through
9667 # without $wl, iff we do not link with $LD.
9668 # Luckily, gcc supports the same syntax we need for Sun Studio.
9669 # Supported since Solaris 2.6 (maybe 2.5.1?)
9672 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9674 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' ;;
9677 link_all_deplibs=yes
9681 if test "x$host_vendor" = xsequent; then
9682 # Use $CC to link under sequent, because it throws in some extra .o
9683 # files that make .init and .fini sections work.
9684 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9686 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_libdir_flag_spec='-L$libdir'
9690 hardcode_minus_L=yes
9691 hardcode_shlibpath_var=no
9695 case $host_vendor in
9697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9698 hardcode_direct=yes # is this really true???
9701 ## LD is ld it makes a PLAMLIB
9702 ## CC just makes a GrossModule.
9703 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9704 reload_cmds='$CC -r -o $output$reload_objs'
9708 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9709 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9712 runpath_var='LD_RUN_PATH'
9713 hardcode_shlibpath_var=no
9717 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9718 hardcode_shlibpath_var=no
9719 export_dynamic_flag_spec='-Bexport'
9723 if test -d /usr/nec; then
9724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725 hardcode_shlibpath_var=no
9726 runpath_var=LD_RUN_PATH
9727 hardcode_runpath_var=yes
9733 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736 hardcode_shlibpath_var=no
9737 hardcode_runpath_var=yes
9738 runpath_var=LD_RUN_PATH
9741 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9742 no_undefined_flag='${wl}-z ${wl}text'
9743 if test "$GCC" = yes; then
9744 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9746 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9748 runpath_var='LD_RUN_PATH'
9749 hardcode_shlibpath_var=no
9753 no_undefined_flag=' -z text'
9754 # $CC -shared without GNU ld will not create a library from C++
9755 # object files and a static libstdc++, better avoid it by now
9756 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9759 hardcode_libdir_flag_spec=
9760 hardcode_shlibpath_var=no
9761 runpath_var='LD_RUN_PATH'
9765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9766 hardcode_libdir_flag_spec='-L$libdir'
9767 hardcode_shlibpath_var=no
9776 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9777 echo "${ECHO_T}$ld_shlibs" >&6; }
9778 test "$ld_shlibs" = no && can_build_shared=no
9780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9781 if test "$GCC" = yes; then
9782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9786 # Do we need to explicitly link libc?
9788 case "x$archive_cmds_need_lc" in
9790 # Assume -lc should be added
9791 archive_cmds_need_lc=yes
9793 if test "$enable_shared" = yes && test "$GCC" = yes; then
9794 case $archive_cmds in
9796 # FIXME: we may have to deal with multi-command sequences.
9799 # Test whether the compiler implicitly links with -lc since on some
9800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801 # to ld, don't add -lc before -lgcc.
9802 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9808 (eval $ac_compile) 2>&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); } 2>conftest.err; then
9814 libobjs=conftest.$ac_objext
9816 wl=$lt_prog_compiler_wl
9822 lt_save_allow_undefined_flag=$allow_undefined_flag
9823 allow_undefined_flag=
9824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9825 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }
9830 archive_cmds_need_lc=no
9832 archive_cmds_need_lc=yes
9834 allow_undefined_flag=$lt_save_allow_undefined_flag
9836 cat conftest.err 1>&5
9839 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9840 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9847 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9850 libname_spec='lib$name'
9858 shlibpath_overrides_runpath=unknown
9860 dynamic_linker="$host_os ld.so"
9861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9862 if test "$GCC" = yes; then
9863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9865 # if the path contains ";" then we assume it to be the separator
9866 # otherwise default to the standard path separator (i.e. ":") - it is
9867 # assumed that no part of a normal pathname contains ";" but that should
9868 # okay in the real world where ";" in dirpaths is itself problematic.
9869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9876 need_lib_prefix=unknown
9877 hardcode_into_libs=no
9879 # when you set need_version to no, make sure it does not cause -set_version
9880 # flags to be left without arguments
9881 need_version=unknown
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9887 shlibpath_var=LIBPATH
9889 # AIX 3 has no versioning support, so we append a major version to the name.
9890 soname_spec='${libname}${release}${shared_ext}$major'
9897 hardcode_into_libs=yes
9898 if test "$host_cpu" = ia64; then
9899 # AIX 5 supports IA64
9900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9901 shlibpath_var=LD_LIBRARY_PATH
9903 # With GCC up to 2.95.x, collect2 would create an import file
9904 # for dependence libraries. The import file would start with
9905 # the line `#! .'. This would cause the generated library to
9906 # depend on `.', always an invalid library. This was fixed in
9907 # development snapshots of GCC prior to 3.0.
9909 aix4 | aix4.[01] | aix4.[01].*)
9910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9920 # soname into executable. Probably we can add versioning support to
9921 # collect2, so additional links can be useful in future.
9922 if test "$aix_use_runtimelinking" = yes; then
9923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9924 # instead of lib<name>.a to let people know that these are not
9925 # typical AIX shared libraries.
9926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9928 # We preserve .a as extension for shared libraries through AIX4.2
9929 # and later when we are not doing run time linking.
9930 library_names_spec='${libname}${release}.a $libname.a'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LIBPATH
9938 library_names_spec='$libname.ixlibrary $libname.a'
9939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9940 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'
9944 library_names_spec='${libname}${shared_ext}'
9945 dynamic_linker="$host_os ld.so"
9946 shlibpath_var=LIBRARY_PATH
9952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953 soname_spec='${libname}${release}${shared_ext}$major'
9954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9955 shlibpath_var=LD_LIBRARY_PATH
9956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9958 # the default ld.so.conf also contains /usr/contrib/lib and
9959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9960 # libtool to hard-code these into programs
9963 cygwin* | mingw* | pw32*)
9964 version_type=windows
9969 case $GCC,$host_os in
9970 yes,cygwin* | yes,mingw* | yes,pw32*)
9971 library_names_spec='$libname.dll.a'
9972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9973 postinstall_cmds='base_file=`basename \${file}`~
9974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9975 dldir=$destdir/`dirname \$dlpath`~
9976 test -d \$dldir || mkdir -p \$dldir~
9977 $install_prog $dir/$dlname \$dldir/$dlname~
9978 chmod a+x \$dldir/$dlname'
9979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9980 dlpath=$dir/\$dldll~
9982 shlibpath_overrides_runpath=yes
9986 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9987 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9988 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9991 # MinGW DLLs use traditional 'lib' prefix
9992 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9994 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9995 # It is most probably a Windows format PATH printed by
9996 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9997 # path with ; separators, and with drive letters. We can handle the
9998 # drive letters (cygwin fileutils understands them), so leave them,
9999 # especially as we might pass files found there to a mingw objdump,
10000 # which wouldn't understand a cygwinified path. Ahh.
10001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10003 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10007 # pw32 DLLs use 'pw' prefix rather than 'lib'
10008 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10017 dynamic_linker='Win32 ld.exe'
10018 # FIXME: first we should search . and the directory the executable is in
10022 darwin* | rhapsody*)
10023 dynamic_linker="$host_os dyld"
10024 version_type=darwin
10027 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10028 soname_spec='${libname}${release}${major}$shared_ext'
10029 shlibpath_overrides_runpath=yes
10030 shlibpath_var=DYLD_LIBRARY_PATH
10031 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10032 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10033 if test "$GCC" = yes; then
10034 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"`
10036 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10038 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 shlibpath_var=LD_LIBRARY_PATH
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec='${libname}${release}${shared_ext}$major'
10060 shlibpath_var=LD_LIBRARY_PATH
10061 shlibpath_overrides_runpath=no
10062 hardcode_into_libs=yes
10063 dynamic_linker='GNU ld.so'
10066 freebsd* | dragonfly*)
10067 # DragonFly does not have aout. When/if they implement a new
10068 # versioning mechanism, adjust this.
10069 if test -x /usr/bin/objformat; then
10070 objformat=`/usr/bin/objformat`
10073 freebsd[123]*) objformat=aout ;;
10074 *) objformat=elf ;;
10077 version_type=freebsd-$objformat
10078 case $version_type in
10080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10085 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10089 shlibpath_var=LD_LIBRARY_PATH
10092 shlibpath_overrides_runpath=yes
10094 freebsd3.[01]* | freebsdelf3.[01]*)
10095 shlibpath_overrides_runpath=yes
10096 hardcode_into_libs=yes
10099 shlibpath_overrides_runpath=no
10100 hardcode_into_libs=yes
10109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10110 soname_spec='${libname}${release}${shared_ext}$major'
10111 shlibpath_var=LD_LIBRARY_PATH
10112 hardcode_into_libs=yes
10115 hpux9* | hpux10* | hpux11*)
10116 # Give a soname corresponding to the major version so that dld.sl refuses to
10117 # link against other versions.
10124 hardcode_into_libs=yes
10125 dynamic_linker="$host_os dld.so"
10126 shlibpath_var=LD_LIBRARY_PATH
10127 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10129 soname_spec='${libname}${release}${shared_ext}$major'
10130 if test "X$HPUX_IA64_MODE" = X32; then
10131 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10133 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10139 hardcode_into_libs=yes
10140 dynamic_linker="$host_os dld.sl"
10141 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 soname_spec='${libname}${release}${shared_ext}$major'
10145 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10146 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10150 dynamic_linker="$host_os dld.sl"
10151 shlibpath_var=SHLIB_PATH
10152 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10157 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10158 postinstall_cmds='chmod 555 $lib'
10161 irix5* | irix6* | nonstopux*)
10163 nonstopux*) version_type=nonstopux ;;
10165 if test "$lt_cv_prog_gnu_ld" = yes; then
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10176 irix5* | nonstopux*)
10177 libsuff= shlibsuff=
10180 case $LD in # libtool.m4 will add one of these switches to LD
10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182 libsuff= shlibsuff= libmagic=32-bit;;
10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184 libsuff=32 shlibsuff=N32 libmagic=N32;;
10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187 *) libsuff= shlibsuff= libmagic=never-match;;
10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192 shlibpath_overrides_runpath=no
10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195 hardcode_into_libs=yes
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10203 # This must be Linux ELF.
10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209 soname_spec='${libname}${release}${shared_ext}$major'
10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211 shlibpath_var=LD_LIBRARY_PATH
10212 shlibpath_overrides_runpath=no
10213 # This implies no fast_install, which is unacceptable.
10214 # Some rework will be needed to allow for fast_install
10215 # before this can be enabled.
10216 hardcode_into_libs=yes
10218 # Append ld.so.conf contents to the search path
10219 if test -f /etc/ld.so.conf; then
10220 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' ' '`
10221 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10224 # We used to test for /lib/ld.so.1 and disable shared libraries on
10225 # powerpc, because MkLinux only supported shared libraries with the
10226 # GNU dynamic linker. Since this was broken with cross compilers,
10227 # most powerpc-linux boxes support dynamic linking these days and
10228 # people can always --disable-shared, the test was removed, and we
10229 # assume the GNU/Linux dynamic linker is in use.
10230 dynamic_linker='GNU/Linux ld.so'
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=no
10241 hardcode_into_libs=yes
10242 dynamic_linker='GNU ld.so'
10249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10252 dynamic_linker='NetBSD (a.out) ld.so'
10254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10255 soname_spec='${libname}${release}${shared_ext}$major'
10256 dynamic_linker='NetBSD ld.elf_so'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 shlibpath_overrides_runpath=yes
10260 hardcode_into_libs=yes
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 shlibpath_var=LD_LIBRARY_PATH
10267 shlibpath_overrides_runpath=yes
10274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275 soname_spec='${libname}${release}${shared_ext}$major'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=yes
10283 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10285 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10286 *) need_version=no ;;
10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10289 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10293 openbsd2.[89] | openbsd2.[89].*)
10294 shlibpath_overrides_runpath=no
10297 shlibpath_overrides_runpath=yes
10301 shlibpath_overrides_runpath=yes
10306 libname_spec='$name'
10309 library_names_spec='$libname${shared_ext} $libname.a'
10310 dynamic_linker='OS/2 ld.exe'
10311 shlibpath_var=LIBPATH
10314 osf3* | osf4* | osf5*)
10318 soname_spec='${libname}${release}${shared_ext}$major'
10319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10322 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10327 soname_spec='${libname}${release}${shared_ext}$major'
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 shlibpath_var=LD_LIBRARY_PATH
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 soname_spec='${libname}${release}${shared_ext}$major'
10338 shlibpath_var=LD_LIBRARY_PATH
10339 shlibpath_overrides_runpath=yes
10340 hardcode_into_libs=yes
10341 # ldd complains unless libraries are executable
10342 postinstall_cmds='chmod +x $lib'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10349 shlibpath_var=LD_LIBRARY_PATH
10350 shlibpath_overrides_runpath=yes
10351 if test "$with_gnu_ld" = yes; then
10357 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360 soname_spec='${libname}${release}${shared_ext}$major'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 case $host_vendor in
10364 shlibpath_overrides_runpath=no
10366 export_dynamic_flag_spec='${wl}-Blargedynsym'
10367 runpath_var=LD_RUN_PATH
10375 shlibpath_overrides_runpath=no
10376 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10382 if test -d /usr/nec ;then
10384 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10385 soname_spec='$libname${shared_ext}.$major'
10386 shlibpath_var=LD_LIBRARY_PATH
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LD_LIBRARY_PATH
10401 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10402 echo "${ECHO_T}$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10405 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10406 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10408 if test -n "$hardcode_libdir_flag_spec" || \
10409 test -n "$runpath_var" || \
10410 test "X$hardcode_automatic" = "Xyes" ; then
10412 # We can hardcode non-existant directories.
10413 if test "$hardcode_direct" != no &&
10414 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10415 # have to relink, otherwise we might link with an installed library
10416 # when we should be linking with a yet-to-be-installed one
10417 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10418 test "$hardcode_minus_L" != no; then
10419 # Linking always hardcodes the temporary library directory.
10420 hardcode_action=relink
10422 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10423 hardcode_action=immediate
10426 # We cannot hardcode anything, or else we can only hardcode existing
10428 hardcode_action=unsupported
10430 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10431 echo "${ECHO_T}$hardcode_action" >&6; }
10433 if test "$hardcode_action" = relink; then
10434 # Fast installation is not supported
10435 enable_fast_install=no
10436 elif test "$shlibpath_overrides_runpath" = yes ||
10437 test "$enable_shared" = no; then
10438 # Fast installation is not necessary
10439 enable_fast_install=needless
10444 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10445 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10446 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10447 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10448 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10449 { echo "$as_me:$LINENO: result: yes" >&5
10450 echo "${ECHO_T}yes" >&6; }
10452 # FIXME - insert some real tests, host_os isn't really good enough
10455 if test -n "$STRIP" ; then
10456 striplib="$STRIP -x"
10457 { echo "$as_me:$LINENO: result: yes" >&5
10458 echo "${ECHO_T}yes" >&6; }
10460 { echo "$as_me:$LINENO: result: no" >&5
10461 echo "${ECHO_T}no" >&6; }
10465 { echo "$as_me:$LINENO: result: no" >&5
10466 echo "${ECHO_T}no" >&6; }
10471 if test "x$enable_dlopen" != xyes; then
10472 enable_dlopen=unknown
10473 enable_dlopen_self=unknown
10474 enable_dlopen_self_static=unknown
10481 lt_cv_dlopen="load_add_on"
10483 lt_cv_dlopen_self=yes
10487 lt_cv_dlopen="LoadLibrary"
10492 lt_cv_dlopen="dlopen"
10497 # if libdl is installed we need to link against it
10498 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 ac_check_lib_save_LIBS=$LIBS
10505 cat >conftest.$ac_ext <<_ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10536 grep -v '^ *+' conftest.er1 >conftest.err
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest$ac_exeext &&
10544 $as_test_x conftest$ac_exeext; then
10545 ac_cv_lib_dl_dlopen=yes
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10550 ac_cv_lib_dl_dlopen=no
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10558 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10559 if test $ac_cv_lib_dl_dlopen = yes; then
10560 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10563 lt_cv_dlopen="dyld"
10565 lt_cv_dlopen_self=yes
10572 { echo "$as_me:$LINENO: checking for shl_load" >&5
10573 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10574 if test "${ac_cv_func_shl_load+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10577 cat >conftest.$ac_ext <<_ACEOF
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10585 #define shl_load innocuous_shl_load
10587 /* System header to define __stub macros and hopefully few prototypes,
10588 which can conflict with char shl_load (); below.
10589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10590 <limits.h> exists even on freestanding compilers. */
10593 # include <limits.h>
10595 # include <assert.h>
10600 /* Override any GCC internal prototype to avoid an error.
10601 Use char because int might match the return type of a GCC
10602 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined __stub_shl_load || defined __stub___shl_load
10617 return shl_load ();
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest$ac_exeext &&
10639 $as_test_x conftest$ac_exeext; then
10640 ac_cv_func_shl_load=yes
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 ac_cv_func_shl_load=no
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10651 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10652 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10653 if test $ac_cv_func_shl_load = yes; then
10654 lt_cv_dlopen="shl_load"
10656 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10657 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10658 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10659 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 ac_check_lib_save_LIBS=$LIBS
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10680 return shl_load ();
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10694 grep -v '^ *+' conftest.er1 >conftest.err
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest$ac_exeext &&
10702 $as_test_x conftest$ac_exeext; then
10703 ac_cv_lib_dld_shl_load=yes
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_lib_dld_shl_load=no
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10716 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10717 if test $ac_cv_lib_dld_shl_load = yes; then
10718 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10720 { echo "$as_me:$LINENO: checking for dlopen" >&5
10721 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10722 if test "${ac_cv_func_dlopen+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h. */
10731 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10733 #define dlopen innocuous_dlopen
10735 /* System header to define __stub macros and hopefully few prototypes,
10736 which can conflict with char dlopen (); below.
10737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10738 <limits.h> exists even on freestanding compilers. */
10741 # include <limits.h>
10743 # include <assert.h>
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10755 /* The GNU C library defines this for functions which it implements
10756 to always fail with ENOSYS. Some functions are actually named
10757 something starting with __ and the normal name is an alias. */
10758 #if defined __stub_dlopen || defined __stub___dlopen
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext &&
10787 $as_test_x conftest$ac_exeext; then
10788 ac_cv_func_dlopen=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_cv_func_dlopen=no
10796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10797 conftest$ac_exeext conftest.$ac_ext
10799 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10800 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10801 if test $ac_cv_func_dlopen = yes; then
10802 lt_cv_dlopen="dlopen"
10804 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10805 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10806 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10809 ac_check_lib_save_LIBS=$LIBS
10811 cat >conftest.$ac_ext <<_ACEOF
10814 cat confdefs.h >>conftest.$ac_ext
10815 cat >>conftest.$ac_ext <<_ACEOF
10816 /* end confdefs.h. */
10818 /* Override any GCC internal prototype to avoid an error.
10819 Use char because int might match the return type of a GCC
10820 builtin and then its argument prototype would still apply. */
10833 rm -f conftest.$ac_objext conftest$ac_exeext
10834 if { (ac_try="$ac_link"
10835 case "(($ac_try" in
10836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10837 *) ac_try_echo=$ac_try;;
10839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10840 (eval "$ac_link") 2>conftest.er1
10842 grep -v '^ *+' conftest.er1 >conftest.err
10844 cat conftest.err >&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } && {
10847 test -z "$ac_c_werror_flag" ||
10848 test ! -s conftest.err
10849 } && test -s conftest$ac_exeext &&
10850 $as_test_x conftest$ac_exeext; then
10851 ac_cv_lib_dl_dlopen=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 ac_cv_lib_dl_dlopen=no
10859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10868 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 /* Override any GCC internal prototype to avoid an error.
10883 Use char because int might match the return type of a GCC
10884 builtin and then its argument prototype would still apply. */
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (ac_try="$ac_link"
10899 case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_link") 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && {
10911 test -z "$ac_c_werror_flag" ||
10912 test ! -s conftest.err
10913 } && test -s conftest$ac_exeext &&
10914 $as_test_x conftest$ac_exeext; then
10915 ac_cv_lib_svld_dlopen=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_lib_svld_dlopen=no
10923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10924 conftest$ac_exeext conftest.$ac_ext
10925 LIBS=$ac_check_lib_save_LIBS
10927 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10928 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10929 if test $ac_cv_lib_svld_dlopen = yes; then
10930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10932 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10933 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10934 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 ac_check_lib_save_LIBS=$LIBS
10939 cat >conftest.$ac_ext <<_ACEOF
10942 cat confdefs.h >>conftest.$ac_ext
10943 cat >>conftest.$ac_ext <<_ACEOF
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10956 return dld_link ();
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_link") 2>conftest.er1
10970 grep -v '^ *+' conftest.er1 >conftest.err
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } && {
10975 test -z "$ac_c_werror_flag" ||
10976 test ! -s conftest.err
10977 } && test -s conftest$ac_exeext &&
10978 $as_test_x conftest$ac_exeext; then
10979 ac_cv_lib_dld_dld_link=yes
10981 echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10984 ac_cv_lib_dld_dld_link=no
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988 conftest$ac_exeext conftest.$ac_ext
10989 LIBS=$ac_check_lib_save_LIBS
10991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10992 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10993 if test $ac_cv_lib_dld_dld_link = yes; then
10994 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11015 if test "x$lt_cv_dlopen" != xno; then
11021 case $lt_cv_dlopen in
11023 save_CPPFLAGS="$CPPFLAGS"
11024 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11026 save_LDFLAGS="$LDFLAGS"
11027 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11030 LIBS="$lt_cv_dlopen_libs $LIBS"
11032 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11033 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11034 if test "${lt_cv_dlopen_self+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 if test "$cross_compiling" = yes; then :
11038 lt_cv_dlopen_self=cross
11040 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11041 lt_status=$lt_dlunknown
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11043 "configure"
11044 #include "confdefs.h"
11053 # define LT_DLGLOBAL RTLD_GLOBAL
11056 # define LT_DLGLOBAL DL_GLOBAL
11058 # define LT_DLGLOBAL 0
11062 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11063 find out it does not work in some platform. */
11064 #ifndef LT_DLLAZY_OR_NOW
11066 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11069 # define LT_DLLAZY_OR_NOW DL_LAZY
11072 # define LT_DLLAZY_OR_NOW RTLD_NOW
11075 # define LT_DLLAZY_OR_NOW DL_NOW
11077 # define LT_DLLAZY_OR_NOW 0
11085 extern "C" void exit (int);
11088 void fnord() { int i=42;}
11091 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11092 int status = $lt_dlunknown;
11096 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11097 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11098 /* dlclose (self); */
11104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105 (eval $ac_link) 2>&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11109 (./conftest; exit; ) >&5 2>/dev/null
11111 case x$lt_status in
11112 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11113 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11114 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11117 # compilation failed
11118 lt_cv_dlopen_self=no
11125 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11126 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11128 if test "x$lt_cv_dlopen_self" = xyes; then
11129 LDFLAGS="$LDFLAGS $link_static_flag"
11130 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11131 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11132 if test "${lt_cv_dlopen_self_static+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 if test "$cross_compiling" = yes; then :
11136 lt_cv_dlopen_self_static=cross
11138 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11139 lt_status=$lt_dlunknown
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11141 "configure"
11142 #include "confdefs.h"
11151 # define LT_DLGLOBAL RTLD_GLOBAL
11154 # define LT_DLGLOBAL DL_GLOBAL
11156 # define LT_DLGLOBAL 0
11160 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11161 find out it does not work in some platform. */
11162 #ifndef LT_DLLAZY_OR_NOW
11164 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11167 # define LT_DLLAZY_OR_NOW DL_LAZY
11170 # define LT_DLLAZY_OR_NOW RTLD_NOW
11173 # define LT_DLLAZY_OR_NOW DL_NOW
11175 # define LT_DLLAZY_OR_NOW 0
11183 extern "C" void exit (int);
11186 void fnord() { int i=42;}
11189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11190 int status = $lt_dlunknown;
11194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11195 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11196 /* dlclose (self); */
11202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11203 (eval $ac_link) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11207 (./conftest; exit; ) >&5 2>/dev/null
11209 case x$lt_status in
11210 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11211 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11212 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11215 # compilation failed
11216 lt_cv_dlopen_self_static=no
11223 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11224 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11227 CPPFLAGS="$save_CPPFLAGS"
11228 LDFLAGS="$save_LDFLAGS"
11233 case $lt_cv_dlopen_self in
11234 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11235 *) enable_dlopen_self=unknown ;;
11238 case $lt_cv_dlopen_self_static in
11239 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11240 *) enable_dlopen_self_static=unknown ;;
11245 # Report which librarie types wil actually be built
11246 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11247 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11248 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11249 echo "${ECHO_T}$can_build_shared" >&6; }
11251 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11252 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11253 test "$can_build_shared" = "no" && enable_shared=no
11255 # On AIX, shared libraries and static libraries use the same namespace, and
11256 # are all built from PIC.
11259 test "$enable_shared" = yes && enable_static=no
11260 if test -n "$RANLIB"; then
11261 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11262 postinstall_cmds='$RANLIB $lib'
11267 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11268 test "$enable_shared" = yes && enable_static=no
11272 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11273 echo "${ECHO_T}$enable_shared" >&6; }
11275 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11277 # Make sure either enable_shared or enable_static is yes.
11278 test "$enable_shared" = yes || enable_static=yes
11279 { echo "$as_me:$LINENO: result: $enable_static" >&5
11280 echo "${ECHO_T}$enable_static" >&6; }
11282 # The else clause should only fire when bootstrapping the
11283 # libtool distribution, otherwise you forgot to ship ltmain.sh
11284 # with your package, and you will get complaints that there are
11285 # no rules to generate ltmain.sh.
11286 if test -f "$ltmain"; then
11287 # See if we are running on zsh, and set the options which allow our commands through
11288 # without removal of \ escapes.
11289 if test -n "${ZSH_VERSION+set}" ; then
11290 setopt NO_GLOB_SUBST
11292 # Now quote all the things that may contain metacharacters while being
11293 # careful not to overquote the AC_SUBSTed values. We take copies of the
11294 # variables and quote the copies for generation of the libtool script.
11295 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11297 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11298 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11299 deplibs_check_method reload_flag reload_cmds need_locks \
11300 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11301 lt_cv_sys_global_symbol_to_c_name_address \
11302 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11303 old_postinstall_cmds old_postuninstall_cmds \
11307 lt_prog_compiler_wl \
11308 lt_prog_compiler_pic \
11309 lt_prog_compiler_static \
11310 lt_prog_compiler_no_builtin_flag \
11311 export_dynamic_flag_spec \
11312 thread_safe_flag_spec \
11313 whole_archive_flag_spec \
11314 enable_shared_with_static_runtimes \
11316 old_archive_from_new_cmds \
11321 compiler_lib_search_path \
11323 archive_expsym_cmds \
11325 postuninstall_cmds \
11326 old_archive_from_expsyms_cmds \
11327 allow_undefined_flag \
11328 no_undefined_flag \
11329 export_symbols_cmds \
11330 hardcode_libdir_flag_spec \
11331 hardcode_libdir_flag_spec_ld \
11332 hardcode_libdir_separator \
11333 hardcode_automatic \
11335 module_expsym_cmds \
11336 lt_cv_prog_compiler_c_o \
11338 include_expsyms; do
11341 old_archive_cmds | \
11342 old_archive_from_new_cmds | \
11344 archive_expsym_cmds | \
11346 module_expsym_cmds | \
11347 old_archive_from_expsyms_cmds | \
11348 export_symbols_cmds | \
11349 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11350 postinstall_cmds | postuninstall_cmds | \
11351 old_postinstall_cmds | old_postuninstall_cmds | \
11352 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11353 # Double-quote double-evaled strings.
11354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11357 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11363 *'\$0 --fallback-echo"')
11364 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11368 cfgfile="${ofile}T"
11369 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11371 { echo "$as_me:$LINENO: creating $ofile" >&5
11372 echo "$as_me: creating $ofile" >&6;}
11374 cat <<__EOF__ >> "$cfgfile"
11377 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11378 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11379 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11381 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11382 # Free Software Foundation, Inc.
11384 # This file is part of GNU Libtool:
11385 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11387 # This program is free software; you can redistribute it and/or modify
11388 # it under the terms of the GNU General Public License as published by
11389 # the Free Software Foundation; either version 2 of the License, or
11390 # (at your option) any later version.
11392 # This program is distributed in the hope that it will be useful, but
11393 # WITHOUT ANY WARRANTY; without even the implied warranty of
11394 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11395 # General Public License for more details.
11397 # You should have received a copy of the GNU General Public License
11398 # along with this program; if not, write to the Free Software
11399 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11401 # As a special exception to the GNU General Public License, if you
11402 # distribute this file as part of a program that contains a
11403 # configuration script generated by Autoconf, you may include it under
11404 # the same distribution terms that you use for the rest of that program.
11406 # A sed program that does not truncate output.
11409 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11410 Xsed="$SED -e 1s/^X//"
11412 # The HP-UX ksh and POSIX shell print the target directory to stdout
11413 # if CDPATH is set.
11414 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11416 # The names of the tagged configurations supported by this script.
11419 # ### BEGIN LIBTOOL CONFIG
11421 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11423 # Shell to use when invoking shell scripts.
11426 # Whether or not to build shared libraries.
11427 build_libtool_libs=$enable_shared
11429 # Whether or not to build static libraries.
11430 build_old_libs=$enable_static
11432 # Whether or not to add -lc for building shared libraries.
11433 build_libtool_need_lc=$archive_cmds_need_lc
11435 # Whether or not to disallow shared libs when runtime libs are static
11436 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11438 # Whether or not to optimize for fast installation.
11439 fast_install=$enable_fast_install
11442 host_alias=$host_alias
11446 # The build system.
11447 build_alias=$build_alias
11451 # An echo program that does not interpret backslashes.
11456 AR_FLAGS=$lt_AR_FLAGS
11461 # A language-specific compiler.
11464 # Is the compiler the GNU C compiler?
11470 # The linker used to build libraries.
11473 # Whether we need hard or soft links.
11476 # A BSD-compatible nm program.
11479 # A symbol stripping program
11482 # Used to examine libraries when file_magic_cmd begins "file"
11483 MAGIC_CMD=$MAGIC_CMD
11485 # Used on cygwin: DLL creation program.
11488 # Used on cygwin: object dumper.
11491 # Used on cygwin: assembler.
11494 # The name of the directory that contains temporary libtool files.
11497 # How to create reloadable object files.
11498 reload_flag=$lt_reload_flag
11499 reload_cmds=$lt_reload_cmds
11501 # How to pass a linker flag through the compiler.
11502 wl=$lt_lt_prog_compiler_wl
11504 # Object file suffix (normally "o").
11505 objext="$ac_objext"
11507 # Old archive suffix (normally "a").
11510 # Shared library suffix (normally ".so").
11511 shrext_cmds='$shrext_cmds'
11513 # Executable file suffix (normally "").
11516 # Additional compiler flags for building library objects.
11517 pic_flag=$lt_lt_prog_compiler_pic
11520 # What is the maximum length of a command?
11521 max_cmd_len=$lt_cv_sys_max_cmd_len
11523 # Does compiler simultaneously support -c and -o options?
11524 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11526 # Must we lock files when doing compilation?
11527 need_locks=$lt_need_locks
11529 # Do we need the lib prefix for modules?
11530 need_lib_prefix=$need_lib_prefix
11532 # Do we need a version for libraries?
11533 need_version=$need_version
11535 # Whether dlopen is supported.
11536 dlopen_support=$enable_dlopen
11538 # Whether dlopen of programs is supported.
11539 dlopen_self=$enable_dlopen_self
11541 # Whether dlopen of statically linked programs is supported.
11542 dlopen_self_static=$enable_dlopen_self_static
11544 # Compiler flag to prevent dynamic linking.
11545 link_static_flag=$lt_lt_prog_compiler_static
11547 # Compiler flag to turn off builtin functions.
11548 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11550 # Compiler flag to allow reflexive dlopens.
11551 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11553 # Compiler flag to generate shared objects directly from archives.
11554 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11556 # Compiler flag to generate thread-safe objects.
11557 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11559 # Library versioning type.
11560 version_type=$version_type
11562 # Format of library name prefix.
11563 libname_spec=$lt_libname_spec
11565 # List of archive names. First name is the real one, the rest are links.
11566 # The last name is the one that the linker finds with -lNAME.
11567 library_names_spec=$lt_library_names_spec
11569 # The coded name of the library, if different from the real name.
11570 soname_spec=$lt_soname_spec
11572 # Commands used to build and install an old-style archive.
11574 old_archive_cmds=$lt_old_archive_cmds
11575 old_postinstall_cmds=$lt_old_postinstall_cmds
11576 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11578 # Create an old-style archive from a shared archive.
11579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11581 # Create a temporary old-style archive to link instead of a shared archive.
11582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11584 # Commands used to build and install a shared archive.
11585 archive_cmds=$lt_archive_cmds
11586 archive_expsym_cmds=$lt_archive_expsym_cmds
11587 postinstall_cmds=$lt_postinstall_cmds
11588 postuninstall_cmds=$lt_postuninstall_cmds
11590 # Commands used to build a loadable module (assumed same as above if empty)
11591 module_cmds=$lt_module_cmds
11592 module_expsym_cmds=$lt_module_expsym_cmds
11594 # Commands to strip libraries.
11595 old_striplib=$lt_old_striplib
11596 striplib=$lt_striplib
11598 # Dependencies to place before the objects being linked to create a
11600 predep_objects=$lt_predep_objects
11602 # Dependencies to place after the objects being linked to create a
11604 postdep_objects=$lt_postdep_objects
11606 # Dependencies to place before the objects being linked to create a
11608 predeps=$lt_predeps
11610 # Dependencies to place after the objects being linked to create a
11612 postdeps=$lt_postdeps
11614 # The library search path used internally by the compiler when linking
11615 # a shared library.
11616 compiler_lib_search_path=$lt_compiler_lib_search_path
11618 # Method to check whether dependent libraries are shared objects.
11619 deplibs_check_method=$lt_deplibs_check_method
11621 # Command to use when deplibs_check_method == file_magic.
11622 file_magic_cmd=$lt_file_magic_cmd
11624 # Flag that allows shared libraries with undefined symbols to be built.
11625 allow_undefined_flag=$lt_allow_undefined_flag
11627 # Flag that forces no undefined symbols.
11628 no_undefined_flag=$lt_no_undefined_flag
11630 # Commands used to finish a libtool library installation in a directory.
11631 finish_cmds=$lt_finish_cmds
11633 # Same as above, but a single script fragment to be evaled but not shown.
11634 finish_eval=$lt_finish_eval
11636 # Take the output of nm and produce a listing of raw symbols and C names.
11637 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11639 # Transform the output of nm in a proper C declaration
11640 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11642 # Transform the output of nm in a C name address pair
11643 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11645 # This is the shared library runtime path variable.
11646 runpath_var=$runpath_var
11648 # This is the shared library path variable.
11649 shlibpath_var=$shlibpath_var
11651 # Is shlibpath searched before the hard-coded library search path?
11652 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11654 # How to hardcode a shared library path into an executable.
11655 hardcode_action=$hardcode_action
11657 # Whether we should hardcode library paths into libraries.
11658 hardcode_into_libs=$hardcode_into_libs
11660 # Flag to hardcode \$libdir into a binary during linking.
11661 # This must work even if \$libdir does not exist.
11662 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11664 # If ld is used when linking, flag to hardcode \$libdir into
11665 # a binary during linking. This must work even if \$libdir does
11667 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11669 # Whether we need a single -rpath flag with a separated argument.
11670 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11672 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11673 # resulting binary.
11674 hardcode_direct=$hardcode_direct
11676 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11677 # resulting binary.
11678 hardcode_minus_L=$hardcode_minus_L
11680 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11681 # the resulting binary.
11682 hardcode_shlibpath_var=$hardcode_shlibpath_var
11684 # Set to yes if building a shared library automatically hardcodes DIR into the library
11685 # and all subsequent libraries and executables linked against it.
11686 hardcode_automatic=$hardcode_automatic
11688 # Variables whose values should be saved in libtool wrapper scripts and
11689 # restored at relink time.
11690 variables_saved_for_relink="$variables_saved_for_relink"
11692 # Whether libtool must link a program against all its dependency libraries.
11693 link_all_deplibs=$link_all_deplibs
11695 # Compile-time system search path for libraries
11696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11698 # Run-time system search path for libraries
11699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11701 # Fix the shell variable \$srcfile for the compiler.
11702 fix_srcfile_path="$fix_srcfile_path"
11704 # Set to yes if exported symbols are required.
11705 always_export_symbols=$always_export_symbols
11707 # The commands to list exported symbols.
11708 export_symbols_cmds=$lt_export_symbols_cmds
11710 # The commands to extract the exported symbol list from a shared archive.
11711 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11713 # Symbols that should not be listed in the preloaded symbols.
11714 exclude_expsyms=$lt_exclude_expsyms
11716 # Symbols that must always be exported.
11717 include_expsyms=$lt_include_expsyms
11719 # ### END LIBTOOL CONFIG
11726 cat <<\EOF >> "$cfgfile"
11728 # AIX sometimes has problems with the GCC collect2 program. For some
11729 # reason, if we set the COLLECT_NAMES environment variable, the problems
11730 # vanish in a puff of smoke.
11731 if test "X${COLLECT_NAMES+set}" != Xset; then
11733 export COLLECT_NAMES
11739 # We use sed instead of cat because bash on DJGPP gets confused if
11740 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11741 # text mode, it properly converts lines to CR/LF. This bash problem
11742 # is reportedly fixed, but why not run on old versions too?
11743 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11745 mv -f "$cfgfile" "$ofile" || \
11746 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11750 # If there is no Makefile yet, we rely on a make rule to execute
11751 # `config.status --recheck' to rerun these tests and create the
11752 # libtool script then.
11753 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11754 if test -f "$ltmain_in"; then
11755 test -f Makefile && make "$ltmain"
11761 ac_cpp='$CPP $CPPFLAGS'
11762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11769 # Check whether --with-tags was given.
11770 if test "${with_tags+set}" = set; then
11771 withval=$with_tags; tagnames="$withval"
11775 if test -f "$ltmain" && test -n "$tagnames"; then
11776 if test ! -f "${ofile}"; then
11777 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11778 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11781 if test -z "$LTCC"; then
11782 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11783 if test -z "$LTCC"; then
11784 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11785 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11788 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11792 # Extract list of available tagged configurations in $ofile.
11793 # Note that this assumes the entire list is on one line.
11794 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11796 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11797 for tagname in $tagnames; do
11799 # Check whether tagname contains only valid characters
11800 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11802 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11803 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11804 { (exit 1); exit 1; }; }
11808 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11810 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11811 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11812 { (exit 1); exit 1; }; }
11815 # Update the list of available tags.
11816 if test -n "$tagname"; then
11817 echo appending configuration tag \"$tagname\" to $ofile
11821 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11822 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11823 (test "X$CXX" != "Xg++"))) ; then
11831 if test -n "$F77" && test "X$F77" != "Xno"; then
11839 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11849 # Source file extension for RC test sources.
11852 # Object file extension for compiled RC test sources.
11856 # Code to be used in simple compile tests
11857 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11859 # Code to be used in simple link tests
11860 lt_simple_link_test_code="$lt_simple_compile_test_code"
11862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11864 # If no C compiler was specified, use CC.
11867 # Allow CC to be a program name with arguments.
11871 # save warnings/boilerplate of simple test code
11872 ac_outfile=conftest.$ac_objext
11873 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11875 _lt_compiler_boilerplate=`cat conftest.err`
11878 ac_outfile=conftest.$ac_objext
11879 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11881 _lt_linker_boilerplate=`cat conftest.err`
11885 # Allow CC to be a program name with arguments.
11890 for cc_temp in $compiler""; do
11892 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11893 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11898 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11900 lt_cv_prog_compiler_c_o_RC=yes
11902 # The else clause should only fire when bootstrapping the
11903 # libtool distribution, otherwise you forgot to ship ltmain.sh
11904 # with your package, and you will get complaints that there are
11905 # no rules to generate ltmain.sh.
11906 if test -f "$ltmain"; then
11907 # See if we are running on zsh, and set the options which allow our commands through
11908 # without removal of \ escapes.
11909 if test -n "${ZSH_VERSION+set}" ; then
11910 setopt NO_GLOB_SUBST
11912 # Now quote all the things that may contain metacharacters while being
11913 # careful not to overquote the AC_SUBSTed values. We take copies of the
11914 # variables and quote the copies for generation of the libtool script.
11915 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11917 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11918 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11919 deplibs_check_method reload_flag reload_cmds need_locks \
11920 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11921 lt_cv_sys_global_symbol_to_c_name_address \
11922 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11923 old_postinstall_cmds old_postuninstall_cmds \
11927 lt_prog_compiler_wl_RC \
11928 lt_prog_compiler_pic_RC \
11929 lt_prog_compiler_static_RC \
11930 lt_prog_compiler_no_builtin_flag_RC \
11931 export_dynamic_flag_spec_RC \
11932 thread_safe_flag_spec_RC \
11933 whole_archive_flag_spec_RC \
11934 enable_shared_with_static_runtimes_RC \
11935 old_archive_cmds_RC \
11936 old_archive_from_new_cmds_RC \
11937 predep_objects_RC \
11938 postdep_objects_RC \
11941 compiler_lib_search_path_RC \
11943 archive_expsym_cmds_RC \
11944 postinstall_cmds_RC \
11945 postuninstall_cmds_RC \
11946 old_archive_from_expsyms_cmds_RC \
11947 allow_undefined_flag_RC \
11948 no_undefined_flag_RC \
11949 export_symbols_cmds_RC \
11950 hardcode_libdir_flag_spec_RC \
11951 hardcode_libdir_flag_spec_ld_RC \
11952 hardcode_libdir_separator_RC \
11953 hardcode_automatic_RC \
11955 module_expsym_cmds_RC \
11956 lt_cv_prog_compiler_c_o_RC \
11957 exclude_expsyms_RC \
11958 include_expsyms_RC; do
11961 old_archive_cmds_RC | \
11962 old_archive_from_new_cmds_RC | \
11963 archive_cmds_RC | \
11964 archive_expsym_cmds_RC | \
11966 module_expsym_cmds_RC | \
11967 old_archive_from_expsyms_cmds_RC | \
11968 export_symbols_cmds_RC | \
11969 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11970 postinstall_cmds | postuninstall_cmds | \
11971 old_postinstall_cmds | old_postuninstall_cmds | \
11972 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11973 # Double-quote double-evaled strings.
11974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11977 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11983 *'\$0 --fallback-echo"')
11984 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11990 cat <<__EOF__ >> "$cfgfile"
11991 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11993 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11995 # Shell to use when invoking shell scripts.
11998 # Whether or not to build shared libraries.
11999 build_libtool_libs=$enable_shared
12001 # Whether or not to build static libraries.
12002 build_old_libs=$enable_static
12004 # Whether or not to add -lc for building shared libraries.
12005 build_libtool_need_lc=$archive_cmds_need_lc_RC
12007 # Whether or not to disallow shared libs when runtime libs are static
12008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12010 # Whether or not to optimize for fast installation.
12011 fast_install=$enable_fast_install
12014 host_alias=$host_alias
12018 # The build system.
12019 build_alias=$build_alias
12023 # An echo program that does not interpret backslashes.
12028 AR_FLAGS=$lt_AR_FLAGS
12033 # A language-specific compiler.
12036 # Is the compiler the GNU C compiler?
12042 # The linker used to build libraries.
12045 # Whether we need hard or soft links.
12048 # A BSD-compatible nm program.
12051 # A symbol stripping program
12054 # Used to examine libraries when file_magic_cmd begins "file"
12055 MAGIC_CMD=$MAGIC_CMD
12057 # Used on cygwin: DLL creation program.
12060 # Used on cygwin: object dumper.
12063 # Used on cygwin: assembler.
12066 # The name of the directory that contains temporary libtool files.
12069 # How to create reloadable object files.
12070 reload_flag=$lt_reload_flag
12071 reload_cmds=$lt_reload_cmds
12073 # How to pass a linker flag through the compiler.
12074 wl=$lt_lt_prog_compiler_wl_RC
12076 # Object file suffix (normally "o").
12077 objext="$ac_objext"
12079 # Old archive suffix (normally "a").
12082 # Shared library suffix (normally ".so").
12083 shrext_cmds='$shrext_cmds'
12085 # Executable file suffix (normally "").
12088 # Additional compiler flags for building library objects.
12089 pic_flag=$lt_lt_prog_compiler_pic_RC
12092 # What is the maximum length of a command?
12093 max_cmd_len=$lt_cv_sys_max_cmd_len
12095 # Does compiler simultaneously support -c and -o options?
12096 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12098 # Must we lock files when doing compilation?
12099 need_locks=$lt_need_locks
12101 # Do we need the lib prefix for modules?
12102 need_lib_prefix=$need_lib_prefix
12104 # Do we need a version for libraries?
12105 need_version=$need_version
12107 # Whether dlopen is supported.
12108 dlopen_support=$enable_dlopen
12110 # Whether dlopen of programs is supported.
12111 dlopen_self=$enable_dlopen_self
12113 # Whether dlopen of statically linked programs is supported.
12114 dlopen_self_static=$enable_dlopen_self_static
12116 # Compiler flag to prevent dynamic linking.
12117 link_static_flag=$lt_lt_prog_compiler_static_RC
12119 # Compiler flag to turn off builtin functions.
12120 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12122 # Compiler flag to allow reflexive dlopens.
12123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12125 # Compiler flag to generate shared objects directly from archives.
12126 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12128 # Compiler flag to generate thread-safe objects.
12129 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12131 # Library versioning type.
12132 version_type=$version_type
12134 # Format of library name prefix.
12135 libname_spec=$lt_libname_spec
12137 # List of archive names. First name is the real one, the rest are links.
12138 # The last name is the one that the linker finds with -lNAME.
12139 library_names_spec=$lt_library_names_spec
12141 # The coded name of the library, if different from the real name.
12142 soname_spec=$lt_soname_spec
12144 # Commands used to build and install an old-style archive.
12146 old_archive_cmds=$lt_old_archive_cmds_RC
12147 old_postinstall_cmds=$lt_old_postinstall_cmds
12148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12150 # Create an old-style archive from a shared archive.
12151 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12153 # Create a temporary old-style archive to link instead of a shared archive.
12154 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12156 # Commands used to build and install a shared archive.
12157 archive_cmds=$lt_archive_cmds_RC
12158 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12159 postinstall_cmds=$lt_postinstall_cmds
12160 postuninstall_cmds=$lt_postuninstall_cmds
12162 # Commands used to build a loadable module (assumed same as above if empty)
12163 module_cmds=$lt_module_cmds_RC
12164 module_expsym_cmds=$lt_module_expsym_cmds_RC
12166 # Commands to strip libraries.
12167 old_striplib=$lt_old_striplib
12168 striplib=$lt_striplib
12170 # Dependencies to place before the objects being linked to create a
12172 predep_objects=$lt_predep_objects_RC
12174 # Dependencies to place after the objects being linked to create a
12176 postdep_objects=$lt_postdep_objects_RC
12178 # Dependencies to place before the objects being linked to create a
12180 predeps=$lt_predeps_RC
12182 # Dependencies to place after the objects being linked to create a
12184 postdeps=$lt_postdeps_RC
12186 # The library search path used internally by the compiler when linking
12187 # a shared library.
12188 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12190 # Method to check whether dependent libraries are shared objects.
12191 deplibs_check_method=$lt_deplibs_check_method
12193 # Command to use when deplibs_check_method == file_magic.
12194 file_magic_cmd=$lt_file_magic_cmd
12196 # Flag that allows shared libraries with undefined symbols to be built.
12197 allow_undefined_flag=$lt_allow_undefined_flag_RC
12199 # Flag that forces no undefined symbols.
12200 no_undefined_flag=$lt_no_undefined_flag_RC
12202 # Commands used to finish a libtool library installation in a directory.
12203 finish_cmds=$lt_finish_cmds
12205 # Same as above, but a single script fragment to be evaled but not shown.
12206 finish_eval=$lt_finish_eval
12208 # Take the output of nm and produce a listing of raw symbols and C names.
12209 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12211 # Transform the output of nm in a proper C declaration
12212 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12214 # Transform the output of nm in a C name address pair
12215 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12217 # This is the shared library runtime path variable.
12218 runpath_var=$runpath_var
12220 # This is the shared library path variable.
12221 shlibpath_var=$shlibpath_var
12223 # Is shlibpath searched before the hard-coded library search path?
12224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12226 # How to hardcode a shared library path into an executable.
12227 hardcode_action=$hardcode_action_RC
12229 # Whether we should hardcode library paths into libraries.
12230 hardcode_into_libs=$hardcode_into_libs
12232 # Flag to hardcode \$libdir into a binary during linking.
12233 # This must work even if \$libdir does not exist.
12234 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12236 # If ld is used when linking, flag to hardcode \$libdir into
12237 # a binary during linking. This must work even if \$libdir does
12239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12241 # Whether we need a single -rpath flag with a separated argument.
12242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12244 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12245 # resulting binary.
12246 hardcode_direct=$hardcode_direct_RC
12248 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12249 # resulting binary.
12250 hardcode_minus_L=$hardcode_minus_L_RC
12252 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12253 # the resulting binary.
12254 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12256 # Set to yes if building a shared library automatically hardcodes DIR into the library
12257 # and all subsequent libraries and executables linked against it.
12258 hardcode_automatic=$hardcode_automatic_RC
12260 # Variables whose values should be saved in libtool wrapper scripts and
12261 # restored at relink time.
12262 variables_saved_for_relink="$variables_saved_for_relink"
12264 # Whether libtool must link a program against all its dependency libraries.
12265 link_all_deplibs=$link_all_deplibs_RC
12267 # Compile-time system search path for libraries
12268 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12270 # Run-time system search path for libraries
12271 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12273 # Fix the shell variable \$srcfile for the compiler.
12274 fix_srcfile_path="$fix_srcfile_path_RC"
12276 # Set to yes if exported symbols are required.
12277 always_export_symbols=$always_export_symbols_RC
12279 # The commands to list exported symbols.
12280 export_symbols_cmds=$lt_export_symbols_cmds_RC
12282 # The commands to extract the exported symbol list from a shared archive.
12283 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12285 # Symbols that should not be listed in the preloaded symbols.
12286 exclude_expsyms=$lt_exclude_expsyms_RC
12288 # Symbols that must always be exported.
12289 include_expsyms=$lt_include_expsyms_RC
12291 # ### END LIBTOOL TAG CONFIG: $tagname
12297 # If there is no Makefile yet, we rely on a make rule to execute
12298 # `config.status --recheck' to rerun these tests and create the
12299 # libtool script then.
12300 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12301 if test -f "$ltmain_in"; then
12302 test -f Makefile && make "$ltmain"
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12318 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12319 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12320 { (exit 1); exit 1; }; }
12324 # Append the new tag name to the list of available tags.
12325 if test -n "$tagname" ; then
12326 available_tags="$available_tags $tagname"
12332 # Now substitute the updated list of available tags.
12333 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12334 mv "${ofile}T" "$ofile"
12338 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12339 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12340 { (exit 1); exit 1; }; }
12346 # This can be used to rebuild libtool when needed
12347 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12349 # Always use our own libtool.
12350 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12352 # Prevent multiple expansion
12364 if test $ol_enable_perl != no ; then
12365 # Extract the first word of "perl", so it can be a program name with args.
12366 set dummy perl; ac_word=$2
12367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12369 if test "${ac_cv_path_PERLBIN+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378 for as_dir in $PATH
12381 test -z "$as_dir" && as_dir=.
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12384 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12396 PERLBIN=$ac_cv_path_PERLBIN
12397 if test -n "$PERLBIN"; then
12398 { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12399 echo "${ECHO_T}$PERLBIN" >&6; }
12401 { echo "$as_me:$LINENO: result: no" >&5
12402 echo "${ECHO_T}no" >&6; }
12407 if test "no$PERLBIN" = "no" ; then
12408 if test $ol_enable_perl = yes ; then
12409 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12410 echo "$as_me: error: could not locate perl" >&2;}
12411 { (exit 1); exit 1; }; }
12415 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12416 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12418 if test x"$ol_enable_perl" = "xyes" ; then
12419 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12421 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12428 ac_cpp='$CPP $CPPFLAGS'
12429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12433 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12434 # On Suns, sometimes $CPP names a directory.
12435 if test -n "$CPP" && test -d "$CPP"; then
12438 if test -z "$CPP"; then
12439 if test "${ac_cv_prog_CPP+set}" = set; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 # Double quotes because CPP needs to be expanded
12443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12445 ac_preproc_ok=false
12446 for ac_c_preproc_warn_flag in '' yes
12448 # Use a header file that comes with gcc, so configuring glibc
12449 # with a fresh cross-compiler works.
12450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12451 # <limits.h> exists even on freestanding compilers.
12452 # On the NeXT, cc -E runs the code through the compiler's parser,
12453 # not just through cpp. "Syntax error" is here to catch this case.
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 # include <limits.h>
12463 # include <assert.h>
12467 if { (ac_try="$ac_cpp conftest.$ac_ext"
12468 case "(($ac_try" in
12469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12470 *) ac_try_echo=$ac_try;;
12472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475 grep -v '^ *+' conftest.er1 >conftest.err
12477 cat conftest.err >&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } >/dev/null && {
12480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12481 test ! -s conftest.err
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 # Broken: fails on valid input.
12492 rm -f conftest.err conftest.$ac_ext
12494 # OK, works on sane cases. Now check whether nonexistent headers
12495 # can be detected and how.
12496 cat >conftest.$ac_ext <<_ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 #include <ac_nonexistent.h>
12504 if { (ac_try="$ac_cpp conftest.$ac_ext"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12512 grep -v '^ *+' conftest.er1 >conftest.err
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } >/dev/null && {
12517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12520 # Broken: success on invalid input.
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 # Passes both tests.
12531 rm -f conftest.err conftest.$ac_ext
12534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12535 rm -f conftest.err conftest.$ac_ext
12536 if $ac_preproc_ok; then
12541 ac_cv_prog_CPP=$CPP
12544 CPP=$ac_cv_prog_CPP
12546 ac_cv_prog_CPP=$CPP
12548 { echo "$as_me:$LINENO: result: $CPP" >&5
12549 echo "${ECHO_T}$CPP" >&6; }
12550 ac_preproc_ok=false
12551 for ac_c_preproc_warn_flag in '' yes
12553 # Use a header file that comes with gcc, so configuring glibc
12554 # with a fresh cross-compiler works.
12555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12556 # <limits.h> exists even on freestanding compilers.
12557 # On the NeXT, cc -E runs the code through the compiler's parser,
12558 # not just through cpp. "Syntax error" is here to catch this case.
12559 cat >conftest.$ac_ext <<_ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 # include <limits.h>
12568 # include <assert.h>
12572 if { (ac_try="$ac_cpp conftest.$ac_ext"
12573 case "(($ac_try" in
12574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575 *) ac_try_echo=$ac_try;;
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12580 grep -v '^ *+' conftest.er1 >conftest.err
12582 cat conftest.err >&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); } >/dev/null && {
12585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12586 test ! -s conftest.err
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 # Broken: fails on valid input.
12597 rm -f conftest.err conftest.$ac_ext
12599 # OK, works on sane cases. Now check whether nonexistent headers
12600 # can be detected and how.
12601 cat >conftest.$ac_ext <<_ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 #include <ac_nonexistent.h>
12609 if { (ac_try="$ac_cpp conftest.$ac_ext"
12610 case "(($ac_try" in
12611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612 *) ac_try_echo=$ac_try;;
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12617 grep -v '^ *+' conftest.er1 >conftest.err
12619 cat conftest.err >&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); } >/dev/null && {
12622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12623 test ! -s conftest.err
12625 # Broken: success on invalid input.
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 # Passes both tests.
12636 rm -f conftest.err conftest.$ac_ext
12639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12640 rm -f conftest.err conftest.$ac_ext
12641 if $ac_preproc_ok; then
12644 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12645 See \`config.log' for more details." >&5
12646 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12647 See \`config.log' for more details." >&2;}
12648 { (exit 1); exit 1; }; }
12652 ac_cpp='$CPP $CPPFLAGS'
12653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12657 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12658 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12659 if test "${ol_cv_msvc+set}" = set; then
12660 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 cat >conftest.$ac_ext <<_ACEOF
12665 cat confdefs.h >>conftest.$ac_ext
12666 cat >>conftest.$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12670 #include <__FOO__/generate_error.h>
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } >/dev/null && {
12687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12698 rm -f conftest.err conftest.$ac_ext
12700 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12701 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12704 *mingw32* ) ac_cv_mingw32=yes ;;
12705 *cygwin* ) ac_cv_cygwin=yes ;;
12706 *interix* ) ac_cv_interix=yes ;;
12712 cat >>confdefs.h <<_ACEOF
12713 #define EXEEXT "${EXEEXT}"
12717 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12718 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12719 if test "${ac_cv_lib_be_be_app+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_check_lib_save_LIBS=$LIBS
12723 LIBS="-lbe -lroot -lnet $LIBS"
12724 cat >conftest.$ac_ext <<_ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12731 /* Override any GCC internal prototype to avoid an error.
12732 Use char because int might match the return type of a GCC
12733 builtin and then its argument prototype would still apply. */
12746 rm -f conftest.$ac_objext conftest$ac_exeext
12747 if { (ac_try="$ac_link"
12748 case "(($ac_try" in
12749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750 *) ac_try_echo=$ac_try;;
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753 (eval "$ac_link") 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } && {
12760 test -z "$ac_c_werror_flag" ||
12761 test ! -s conftest.err
12762 } && test -s conftest$ac_exeext &&
12763 $as_test_x conftest$ac_exeext; then
12764 ac_cv_lib_be_be_app=yes
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ac_cv_lib_be_be_app=no
12772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12773 conftest$ac_exeext conftest.$ac_ext
12774 LIBS=$ac_check_lib_save_LIBS
12776 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12777 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12778 if test $ac_cv_lib_be_be_app = yes; then
12779 LIBS="$LIBS -lbe -lroot -lnet"
12786 ac_cpp='$CPP $CPPFLAGS'
12787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12790 if test -n "$ac_tool_prefix"; then
12791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12795 if test "${ac_cv_prog_CC+set}" = set; then
12796 echo $ECHO_N "(cached) $ECHO_C" >&6
12798 if test -n "$CC"; then
12799 ac_cv_prog_CC="$CC" # Let the user override the test.
12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12802 for as_dir in $PATH
12805 test -z "$as_dir" && as_dir=.
12806 for ac_exec_ext in '' $ac_executable_extensions; do
12807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 if test -n "$CC"; then
12820 { echo "$as_me:$LINENO: result: $CC" >&5
12821 echo "${ECHO_T}$CC" >&6; }
12823 { echo "$as_me:$LINENO: result: no" >&5
12824 echo "${ECHO_T}no" >&6; }
12829 if test -z "$ac_cv_prog_CC"; then
12831 # Extract the first word of "gcc", so it can be a program name with args.
12832 set dummy gcc; ac_word=$2
12833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12835 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 if test -n "$ac_ct_CC"; then
12839 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12842 for as_dir in $PATH
12845 test -z "$as_dir" && as_dir=.
12846 for ac_exec_ext in '' $ac_executable_extensions; do
12847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12848 ac_cv_prog_ac_ct_CC="gcc"
12849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12859 if test -n "$ac_ct_CC"; then
12860 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12861 echo "${ECHO_T}$ac_ct_CC" >&6; }
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12867 if test "x$ac_ct_CC" = x; then
12870 case $cross_compiling:$ac_tool_warned in
12872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12873 whose name does not start with the host triplet. If you think this
12874 configuration is useful to you, please write to autoconf@gnu.org." >&5
12875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12876 whose name does not start with the host triplet. If you think this
12877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12878 ac_tool_warned=yes ;;
12883 CC="$ac_cv_prog_CC"
12886 if test -z "$CC"; then
12887 if test -n "$ac_tool_prefix"; then
12888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12889 set dummy ${ac_tool_prefix}cc; ac_word=$2
12890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12892 if test "${ac_cv_prog_CC+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 if test -n "$CC"; then
12896 ac_cv_prog_CC="$CC" # Let the user override the test.
12898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12902 test -z "$as_dir" && as_dir=.
12903 for ac_exec_ext in '' $ac_executable_extensions; do
12904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12905 ac_cv_prog_CC="${ac_tool_prefix}cc"
12906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12916 if test -n "$CC"; then
12917 { echo "$as_me:$LINENO: result: $CC" >&5
12918 echo "${ECHO_T}$CC" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12927 if test -z "$CC"; then
12928 # Extract the first word of "cc", so it can be a program name with args.
12929 set dummy cc; ac_word=$2
12930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12932 if test "${ac_cv_prog_CC+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 if test -n "$CC"; then
12936 ac_cv_prog_CC="$CC" # Let the user override the test.
12938 ac_prog_rejected=no
12939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12940 for as_dir in $PATH
12943 test -z "$as_dir" && as_dir=.
12944 for ac_exec_ext in '' $ac_executable_extensions; do
12945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12947 ac_prog_rejected=yes
12951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 if test $ac_prog_rejected = yes; then
12959 # We found a bogon in the path, so make sure we never use it.
12960 set dummy $ac_cv_prog_CC
12962 if test $# != 0; then
12963 # We chose a different compiler from the bogus one.
12964 # However, it has the same basename, so the bogon will be chosen
12965 # first if we set CC to just the basename; use the full file name.
12967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12973 if test -n "$CC"; then
12974 { echo "$as_me:$LINENO: result: $CC" >&5
12975 echo "${ECHO_T}$CC" >&6; }
12977 { echo "$as_me:$LINENO: result: no" >&5
12978 echo "${ECHO_T}no" >&6; }
12983 if test -z "$CC"; then
12984 if test -n "$ac_tool_prefix"; then
12985 for ac_prog in cl.exe
12987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12991 if test "${ac_cv_prog_CC+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12994 if test -n "$CC"; then
12995 ac_cv_prog_CC="$CC" # Let the user override the test.
12997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12998 for as_dir in $PATH
13001 test -z "$as_dir" && as_dir=.
13002 for ac_exec_ext in '' $ac_executable_extensions; do
13003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13015 if test -n "$CC"; then
13016 { echo "$as_me:$LINENO: result: $CC" >&5
13017 echo "${ECHO_T}$CC" >&6; }
13019 { echo "$as_me:$LINENO: result: no" >&5
13020 echo "${ECHO_T}no" >&6; }
13024 test -n "$CC" && break
13027 if test -z "$CC"; then
13029 for ac_prog in cl.exe
13031 # Extract the first word of "$ac_prog", so it can be a program name with args.
13032 set dummy $ac_prog; ac_word=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 if test -n "$ac_ct_CC"; then
13039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13048 ac_cv_prog_ac_ct_CC="$ac_prog"
13049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13059 if test -n "$ac_ct_CC"; then
13060 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13061 echo "${ECHO_T}$ac_ct_CC" >&6; }
13063 { echo "$as_me:$LINENO: result: no" >&5
13064 echo "${ECHO_T}no" >&6; }
13068 test -n "$ac_ct_CC" && break
13071 if test "x$ac_ct_CC" = x; then
13074 case $cross_compiling:$ac_tool_warned in
13076 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13077 whose name does not start with the host triplet. If you think this
13078 configuration is useful to you, please write to autoconf@gnu.org." >&5
13079 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13080 whose name does not start with the host triplet. If you think this
13081 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13082 ac_tool_warned=yes ;;
13091 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13092 See \`config.log' for more details." >&5
13093 echo "$as_me: error: no acceptable C compiler found in \$PATH
13094 See \`config.log' for more details." >&2;}
13095 { (exit 1); exit 1; }; }
13097 # Provide some information about the compiler.
13098 echo "$as_me:$LINENO: checking for C compiler version" >&5
13099 ac_compiler=`set X $ac_compile; echo $2`
13100 { (ac_try="$ac_compiler --version >&5"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_compiler --version >&5") 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }
13110 { (ac_try="$ac_compiler -v >&5"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compiler -v >&5") 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }
13120 { (ac_try="$ac_compiler -V >&5"
13121 case "(($ac_try" in
13122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13123 *) ac_try_echo=$ac_try;;
13125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13126 (eval "$ac_compiler -V >&5") 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }
13131 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13132 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13133 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13154 rm -f conftest.$ac_objext
13155 if { (ac_try="$ac_compile"
13156 case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_compile") 2>conftest.er1
13163 grep -v '^ *+' conftest.er1 >conftest.err
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } && {
13168 test -z "$ac_c_werror_flag" ||
13169 test ! -s conftest.err
13170 } && test -s conftest.$ac_objext; then
13171 ac_compiler_gnu=yes
13173 echo "$as_me: failed program was:" >&5
13174 sed 's/^/| /' conftest.$ac_ext >&5
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13183 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13184 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13185 GCC=`test $ac_compiler_gnu = yes && echo yes`
13186 ac_test_CFLAGS=${CFLAGS+set}
13187 ac_save_CFLAGS=$CFLAGS
13188 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13189 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13190 if test "${ac_cv_prog_cc_g+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_save_c_werror_flag=$ac_c_werror_flag
13194 ac_c_werror_flag=yes
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_compile") 2>conftest.er1
13221 grep -v '^ *+' conftest.er1 >conftest.err
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest.$ac_objext; then
13229 ac_cv_prog_cc_g=yes
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_compile") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } && {
13264 test -z "$ac_c_werror_flag" ||
13265 test ! -s conftest.err
13266 } && test -s conftest.$ac_objext; then
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13272 ac_c_werror_flag=$ac_save_c_werror_flag
13274 cat >conftest.$ac_ext <<_ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293 *) ac_try_echo=$ac_try;;
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296 (eval "$ac_compile") 2>conftest.er1
13298 grep -v '^ *+' conftest.er1 >conftest.err
13300 cat conftest.err >&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && {
13303 test -z "$ac_c_werror_flag" ||
13304 test ! -s conftest.err
13305 } && test -s conftest.$ac_objext; then
13306 ac_cv_prog_cc_g=yes
13308 echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 ac_c_werror_flag=$ac_save_c_werror_flag
13323 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13324 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13325 if test "$ac_test_CFLAGS" = set; then
13326 CFLAGS=$ac_save_CFLAGS
13327 elif test $ac_cv_prog_cc_g = yes; then
13328 if test "$GCC" = yes; then
13334 if test "$GCC" = yes; then
13340 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13341 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13342 if test "${ac_cv_prog_cc_c89+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_cv_prog_cc_c89=no
13347 cat >conftest.$ac_ext <<_ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 #include <stdarg.h>
13355 #include <sys/types.h>
13356 #include <sys/stat.h>
13357 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13358 struct buf { int x; };
13359 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13360 static char *e (p, i)
13366 static char *f (char * (*g) (char **, int), char **p, ...)
13371 s = g (p, va_arg (v,int));
13376 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13377 function prototypes and stuff, but not '\xHH' hex character constants.
13378 These don't provoke an error unfortunately, instead are silently treated
13379 as 'x'. The following induces an error, until -std is added to get
13380 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13381 array size at least. It's necessary to write '\x00'==0 to get something
13382 that's true only with -std. */
13383 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13385 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13386 inside strings and character constants. */
13388 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13390 int test (int i, double x);
13391 struct s1 {int (*f) (int a);};
13392 struct s2 {int (*f) (double a);};
13393 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13399 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13404 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13405 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13407 CC="$ac_save_CC $ac_arg"
13408 rm -f conftest.$ac_objext
13409 if { (ac_try="$ac_compile"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_compile") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } && {
13422 test -z "$ac_c_werror_flag" ||
13423 test ! -s conftest.err
13424 } && test -s conftest.$ac_objext; then
13425 ac_cv_prog_cc_c89=$ac_arg
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13433 rm -f core conftest.err conftest.$ac_objext
13434 test "x$ac_cv_prog_cc_c89" != "xno" && break
13436 rm -f conftest.$ac_ext
13441 case "x$ac_cv_prog_cc_c89" in
13443 { echo "$as_me:$LINENO: result: none needed" >&5
13444 echo "${ECHO_T}none needed" >&6; } ;;
13446 { echo "$as_me:$LINENO: result: unsupported" >&5
13447 echo "${ECHO_T}unsupported" >&6; } ;;
13449 CC="$CC $ac_cv_prog_cc_c89"
13450 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13451 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13456 ac_cpp='$CPP $CPPFLAGS'
13457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13461 depcc="$CC" am_compiler_list=
13463 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13464 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13465 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13469 # We make a subdir and do the tests there. Otherwise we can end up
13470 # making bogus files that we don't know about and never remove. For
13471 # instance it was reported that on HP-UX the gcc test will end up
13472 # making a dummy file named `D' -- because `-MD' means `put the output
13475 # Copy depcomp to subdir because otherwise we won't find it if we're
13476 # using a relative directory.
13477 cp "$am_depcomp" conftest.dir
13479 # We will build objects and dependencies in a subdirectory because
13480 # it helps to detect inapplicable dependency modes. For instance
13481 # both Tru64's cc and ICC support -MD to output dependencies as a
13482 # side effect of compilation, but ICC will put the dependencies in
13483 # the current directory while Tru64 will put them in the object
13487 am_cv_CC_dependencies_compiler_type=none
13488 if test "$am_compiler_list" = ""; then
13489 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13491 for depmode in $am_compiler_list; do
13492 # Setup a source with many dependencies, because some compilers
13493 # like to wrap large dependency lists on column 80 (with \), and
13494 # we should not choose a depcomp mode which is confused by this.
13496 # We need to recreate these files for each test, as the compiler may
13497 # overwrite some of them when testing with obscure command lines.
13498 # This happens at least with the AIX C compiler.
13500 for i in 1 2 3 4 5 6; do
13501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13503 # Solaris 8's {/usr,}/bin/sh.
13504 touch sub/conftst$i.h
13506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13510 # after this tag, mechanisms are not by side-effect, so they'll
13511 # only be used when explicitly requested
13512 if test "x$enable_dependency_tracking" = xyes; then
13520 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13521 # mode. It turns out that the SunPro C++ compiler does not properly
13522 # handle `-M -o', and we need to detect this.
13523 if depmode=$depmode \
13524 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13525 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13526 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13527 >/dev/null 2>conftest.err &&
13528 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13529 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13530 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13531 # icc doesn't choke on unknown options, it will just issue warnings
13532 # or remarks (even with -Werror). So we grep stderr for any message
13533 # that says an option was ignored or not supported.
13534 # When given -MP, icc 7.0 and 7.1 complain thusly:
13535 # icc: Command line warning: ignoring option '-M'; no argument required
13536 # The diagnosis changed in icc 8.0:
13537 # icc: Command line remark: option '-MP' not supported
13538 if (grep 'ignoring option' conftest.err ||
13539 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13540 am_cv_CC_dependencies_compiler_type=$depmode
13547 rm -rf conftest.dir
13549 am_cv_CC_dependencies_compiler_type=none
13553 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13554 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13555 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13560 test "x$enable_dependency_tracking" != xno \
13561 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13562 am__fastdepCC_TRUE=
13563 am__fastdepCC_FALSE='#'
13565 am__fastdepCC_TRUE='#'
13566 am__fastdepCC_FALSE=
13570 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13571 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13572 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13573 { (exit 1); exit 1; }; }
13576 # test for make depend flag
13579 if test -z "${MKDEP}"; then
13580 OL_MKDEP="${CC-cc}"
13581 if test -z "${MKDEP_FLAGS}"; then
13582 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13583 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13584 if test "${ol_cv_mkdep+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 for flag in "-M" "-xM"; do
13590 cat > conftest.c <<EOF
13593 if { ac_try='$OL_MKDEP $flag conftest.c'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } \
13599 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13601 if test ! -f conftest."${ac_object}" ; then
13603 OL_MKDEP_FLAGS="$flag"
13611 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13612 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13613 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13616 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13620 OL_MKDEP="${MKDEP}"
13621 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13626 if test "${ol_cv_mkdep}" = no ; then
13627 # this will soon become an error
13628 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13629 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13632 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13633 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_s_afopen+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS=$LIBS
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } && {
13675 test -z "$ac_c_werror_flag" ||
13676 test ! -s conftest.err
13677 } && test -s conftest$ac_exeext &&
13678 $as_test_x conftest$ac_exeext; then
13679 ac_cv_lib_s_afopen=yes
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_cv_lib_s_afopen=no
13687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13688 conftest$ac_exeext conftest.$ac_ext
13689 LIBS=$ac_check_lib_save_LIBS
13691 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13692 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13693 if test $ac_cv_lib_s_afopen = yes; then
13697 cat >>confdefs.h <<\_ACEOF
13698 #define HAVE_AIX_SECURITY 1
13707 ac_cv_func_getopt=no
13709 cat >>confdefs.h <<\_ACEOF
13710 #define BOTH_STRINGS_H 1
13717 WITH_MODULES_ENABLED=no
13718 if test $ol_enable_modules != no ; then
13720 for ac_header in ltdl.h
13722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 ac_res=`eval echo '${'$as_ac_Header'}'`
13730 { echo "$as_me:$LINENO: result: $ac_res" >&5
13731 echo "${ECHO_T}$ac_res" >&6; }
13733 # Is the header compilable?
13734 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13743 #include <$ac_header>
13745 rm -f conftest.$ac_objext
13746 if { (ac_try="$ac_compile"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_compile") 2>conftest.er1
13754 grep -v '^ *+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } && {
13759 test -z "$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13761 } && test -s conftest.$ac_objext; then
13762 ac_header_compiler=yes
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_header_compiler=no
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13772 echo "${ECHO_T}$ac_header_compiler" >&6; }
13774 # Is the header present?
13775 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13777 cat >conftest.$ac_ext <<_ACEOF
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 #include <$ac_header>
13785 if { (ac_try="$ac_cpp conftest.$ac_ext"
13786 case "(($ac_try" in
13787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } >/dev/null && {
13798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13801 ac_header_preproc=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_header_preproc=no
13809 rm -f conftest.err conftest.$ac_ext
13810 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13811 echo "${ECHO_T}$ac_header_preproc" >&6; }
13813 # So? What about this header?
13814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13816 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13817 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13819 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13820 ac_header_preproc=yes
13823 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13824 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13826 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13828 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13830 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13831 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13832 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13833 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13834 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13836 ## --------------------------------------------- ##
13837 ## Report this to <http://www.openldap.org/its/> ##
13838 ## --------------------------------------------- ##
13840 ) | sed "s/^/$as_me: WARNING: /" >&2
13843 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13846 echo $ECHO_N "(cached) $ECHO_C" >&6
13848 eval "$as_ac_Header=\$ac_header_preproc"
13850 ac_res=`eval echo '${'$as_ac_Header'}'`
13851 { echo "$as_me:$LINENO: result: $ac_res" >&5
13852 echo "${ECHO_T}$ac_res" >&6; }
13855 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856 cat >>confdefs.h <<_ACEOF
13857 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13865 if test $ac_cv_header_ltdl_h = no ; then
13866 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13867 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13868 { (exit 1); exit 1; }; }
13871 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13872 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13873 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 ac_check_lib_save_LIBS=$LIBS
13877 LIBS="-lltdl $LIBS"
13878 cat >conftest.$ac_ext <<_ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13885 /* Override any GCC internal prototype to avoid an error.
13886 Use char because int might match the return type of a GCC
13887 builtin and then its argument prototype would still apply. */
13895 return lt_dlinit ();
13900 rm -f conftest.$ac_objext conftest$ac_exeext
13901 if { (ac_try="$ac_link"
13902 case "(($ac_try" in
13903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904 *) ac_try_echo=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_link") 2>conftest.er1
13909 grep -v '^ *+' conftest.er1 >conftest.err
13911 cat conftest.err >&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } && {
13914 test -z "$ac_c_werror_flag" ||
13915 test ! -s conftest.err
13916 } && test -s conftest$ac_exeext &&
13917 $as_test_x conftest$ac_exeext; then
13918 ac_cv_lib_ltdl_lt_dlinit=yes
13920 echo "$as_me: failed program was:" >&5
13921 sed 's/^/| /' conftest.$ac_ext >&5
13923 ac_cv_lib_ltdl_lt_dlinit=no
13926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13927 conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13930 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13931 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13932 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13934 MODULES_LIBS=-lltdl
13936 cat >>confdefs.h <<\_ACEOF
13937 #define HAVE_LIBLTDL 1
13944 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13945 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13946 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13947 { (exit 1); exit 1; }; }
13949 ol_link_modules=yes
13950 WITH_MODULES_ENABLED=yes
13953 for i in $Backends; do
13954 eval "ol_tmp=\$ol_enable_$i"
13955 if test $ol_tmp = mod ; then
13956 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13957 echo "$as_me: WARNING: building static $i backend" >&2;}
13958 eval "ol_enable_$i=yes"
13961 for i in $Overlays; do
13962 eval "ol_tmp=\$ol_enable_$i"
13963 if test $ol_tmp = mod ; then
13964 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13965 echo "$as_me: WARNING: building static $i overlay" >&2;}
13966 eval "ol_enable_$i=yes"
13972 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13973 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
13974 if test "${ol_cv_cpp_ebcdic+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13986 #include <__ASCII__/generate_error.h>
13990 if { (ac_try="$ac_cpp conftest.$ac_ext"
13991 case "(($ac_try" in
13992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13998 grep -v '^ *+' conftest.er1 >conftest.err
14000 cat conftest.err >&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); } >/dev/null && {
14003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14004 test ! -s conftest.err
14006 ol_cv_cpp_ebcdic=yes
14008 echo "$as_me: failed program was:" >&5
14009 sed 's/^/| /' conftest.$ac_ext >&5
14011 ol_cv_cpp_ebcdic=no
14014 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14017 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14018 if test $ol_cv_cpp_ebcdic = yes ; then
14020 cat >>confdefs.h <<\_ACEOF
14021 #define HAVE_EBCDIC 1
14026 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14027 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14028 if test "${ol_cv_header_stdc+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 #include <stdlib.h>
14038 #include <stdarg.h>
14039 #include <string.h>
14042 if { (ac_try="$ac_cpp conftest.$ac_ext"
14043 case "(($ac_try" in
14044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14045 *) ac_try_echo=$ac_try;;
14047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14050 grep -v '^ *+' conftest.er1 >conftest.err
14052 cat conftest.err >&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); } >/dev/null && {
14055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14056 test ! -s conftest.err
14058 ol_cv_header_stdc=yes
14060 echo "$as_me: failed program was:" >&5
14061 sed 's/^/| /' conftest.$ac_ext >&5
14063 ol_cv_header_stdc=no
14066 rm -f conftest.err conftest.$ac_ext
14068 if test $ol_cv_header_stdc = yes; then
14069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <string.h>
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "memchr" >/dev/null 2>&1; then
14083 ol_cv_header_stdc=no
14089 if test $ol_cv_header_stdc = yes; then
14090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14091 cat >conftest.$ac_ext <<_ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include <stdlib.h>
14100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14101 $EGREP "free" >/dev/null 2>&1; then
14104 ol_cv_header_stdc=no
14110 if test $ol_cv_header_stdc = yes; then
14111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14112 if test "$cross_compiling" = yes; then
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14122 #ifndef HAVE_EBCDIC
14123 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14124 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14126 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14127 || ('j' <= (c) && (c) <= 'r') \
14128 || ('s' <= (c) && (c) <= 'z'))
14129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14131 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14132 int main () { int i; for (i = 0; i < 256; i++)
14133 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14137 rm -f conftest$ac_exeext
14138 if { (ac_try="$ac_link"
14139 case "(($ac_try" in
14140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141 *) ac_try_echo=$ac_try;;
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144 (eval "$ac_link") 2>&5
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14148 { (case "(($ac_try" in
14149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_try") 2>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); }; }; then
14159 echo "$as_me: program exited with status $ac_status" >&5
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ( exit $ac_status )
14164 ol_cv_header_stdc=no
14166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14173 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14174 if test $ol_cv_header_stdc = yes; then
14175 cat >>confdefs.h <<\_ACEOF
14176 #define STDC_HEADERS 1
14180 ac_cv_header_stdc=disable
14183 if test $ol_cv_header_stdc != yes; then
14184 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14185 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14193 ac_header_dirent=no
14194 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14195 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14196 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14197 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 cat >conftest.$ac_ext <<_ACEOF
14204 cat confdefs.h >>conftest.$ac_ext
14205 cat >>conftest.$ac_ext <<_ACEOF
14206 /* end confdefs.h. */
14207 #include <sys/types.h>
14219 rm -f conftest.$ac_objext
14220 if { (ac_try="$ac_compile"
14221 case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_compile") 2>conftest.er1
14228 grep -v '^ *+' conftest.er1 >conftest.err
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } && {
14233 test -z "$ac_c_werror_flag" ||
14234 test ! -s conftest.err
14235 } && test -s conftest.$ac_objext; then
14236 eval "$as_ac_Header=yes"
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 eval "$as_ac_Header=no"
14244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14246 ac_res=`eval echo '${'$as_ac_Header'}'`
14247 { echo "$as_me:$LINENO: result: $ac_res" >&5
14248 echo "${ECHO_T}$ac_res" >&6; }
14249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14250 cat >>confdefs.h <<_ACEOF
14251 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14254 ac_header_dirent=$ac_hdr; break
14258 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14259 if test $ac_header_dirent = dirent.h; then
14260 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14261 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14262 if test "${ac_cv_search_opendir+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 ac_func_search_save_LIBS=$LIBS
14266 cat >conftest.$ac_ext <<_ACEOF
14269 cat confdefs.h >>conftest.$ac_ext
14270 cat >>conftest.$ac_ext <<_ACEOF
14271 /* end confdefs.h. */
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14288 for ac_lib in '' dir; do
14289 if test -z "$ac_lib"; then
14290 ac_res="none required"
14293 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14295 rm -f conftest.$ac_objext conftest$ac_exeext
14296 if { (ac_try="$ac_link"
14297 case "(($ac_try" in
14298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14299 *) ac_try_echo=$ac_try;;
14301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14302 (eval "$ac_link") 2>conftest.er1
14304 grep -v '^ *+' conftest.er1 >conftest.err
14306 cat conftest.err >&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); } && {
14309 test -z "$ac_c_werror_flag" ||
14310 test ! -s conftest.err
14311 } && test -s conftest$ac_exeext &&
14312 $as_test_x conftest$ac_exeext; then
14313 ac_cv_search_opendir=$ac_res
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14323 if test "${ac_cv_search_opendir+set}" = set; then
14327 if test "${ac_cv_search_opendir+set}" = set; then
14330 ac_cv_search_opendir=no
14332 rm conftest.$ac_ext
14333 LIBS=$ac_func_search_save_LIBS
14335 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14336 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14337 ac_res=$ac_cv_search_opendir
14338 if test "$ac_res" != no; then
14339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14344 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14345 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14346 if test "${ac_cv_search_opendir+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 ac_func_search_save_LIBS=$LIBS
14350 cat >conftest.$ac_ext <<_ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14372 for ac_lib in '' x; do
14373 if test -z "$ac_lib"; then
14374 ac_res="none required"
14377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14379 rm -f conftest.$ac_objext conftest$ac_exeext
14380 if { (ac_try="$ac_link"
14381 case "(($ac_try" in
14382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14383 *) ac_try_echo=$ac_try;;
14385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14386 (eval "$ac_link") 2>conftest.er1
14388 grep -v '^ *+' conftest.er1 >conftest.err
14390 cat conftest.err >&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); } && {
14393 test -z "$ac_c_werror_flag" ||
14394 test ! -s conftest.err
14395 } && test -s conftest$ac_exeext &&
14396 $as_test_x conftest$ac_exeext; then
14397 ac_cv_search_opendir=$ac_res
14399 echo "$as_me: failed program was:" >&5
14400 sed 's/^/| /' conftest.$ac_ext >&5
14405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14407 if test "${ac_cv_search_opendir+set}" = set; then
14411 if test "${ac_cv_search_opendir+set}" = set; then
14414 ac_cv_search_opendir=no
14416 rm conftest.$ac_ext
14417 LIBS=$ac_func_search_save_LIBS
14419 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14420 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14421 ac_res=$ac_cv_search_opendir
14422 if test "$ac_res" != no; then
14423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14429 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14430 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14431 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 #include <sys/types.h>
14441 #include <sys/wait.h>
14442 #ifndef WEXITSTATUS
14443 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14446 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14454 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14459 rm -f conftest.$ac_objext
14460 if { (ac_try="$ac_compile"
14461 case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_compile") 2>conftest.er1
14468 grep -v '^ *+' conftest.er1 >conftest.err
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest.$ac_objext; then
14476 ac_cv_header_sys_wait_h=yes
14478 echo "$as_me: failed program was:" >&5
14479 sed 's/^/| /' conftest.$ac_ext >&5
14481 ac_cv_header_sys_wait_h=no
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14487 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14488 if test $ac_cv_header_sys_wait_h = yes; then
14490 cat >>confdefs.h <<\_ACEOF
14491 #define HAVE_SYS_WAIT_H 1
14496 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14497 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14498 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 #include <sys/types.h>
14508 #include <termios.h>
14514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14515 $EGREP "yes" >/dev/null 2>&1; then
14516 ac_cv_sys_tiocgwinsz_in_termios_h=yes
14518 ac_cv_sys_tiocgwinsz_in_termios_h=no
14523 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14524 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14526 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14527 { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14528 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14529 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14530 echo $ECHO_N "(cached) $ECHO_C" >&6
14532 cat >conftest.$ac_ext <<_ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 #include <sys/types.h>
14539 #include <sys/ioctl.h>
14545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14546 $EGREP "yes" >/dev/null 2>&1; then
14547 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14549 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14554 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14555 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14557 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14559 cat >>confdefs.h <<\_ACEOF
14560 #define GWINSZ_IN_SYS_IOCTL 1
14664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14669 echo $ECHO_N "(cached) $ECHO_C" >&6
14671 ac_res=`eval echo '${'$as_ac_Header'}'`
14672 { echo "$as_me:$LINENO: result: $ac_res" >&5
14673 echo "${ECHO_T}$ac_res" >&6; }
14675 # Is the header compilable?
14676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 $ac_includes_default
14685 #include <$ac_header>
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_compile") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest.$ac_objext; then
14704 ac_header_compiler=yes
14706 echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14709 ac_header_compiler=no
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 echo "${ECHO_T}$ac_header_compiler" >&6; }
14716 # Is the header present?
14717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <$ac_header>
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735 grep -v '^ *+' conftest.er1 >conftest.err
14737 cat conftest.err >&5
14738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14739 (exit $ac_status); } >/dev/null && {
14740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14741 test ! -s conftest.err
14743 ac_header_preproc=yes
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 ac_header_preproc=no
14751 rm -f conftest.err conftest.$ac_ext
14752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14753 echo "${ECHO_T}$ac_header_preproc" >&6; }
14755 # So? What about this header?
14756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14762 ac_header_preproc=yes
14765 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14768 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14772 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14775 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14778 ## --------------------------------------------- ##
14779 ## Report this to <http://www.openldap.org/its/> ##
14780 ## --------------------------------------------- ##
14782 ) | sed "s/^/$as_me: WARNING: /" >&2
14785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 eval "$as_ac_Header=\$ac_header_preproc"
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793 { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14807 if test "$ac_cv_mingw32" = yes \
14808 -o "$ac_cv_interix" = yes \
14809 -o "$ol_cv_msvc" = yes
14813 for ac_header in winsock.h winsock2.h
14815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 ac_res=`eval echo '${'$as_ac_Header'}'`
14823 { echo "$as_me:$LINENO: result: $ac_res" >&5
14824 echo "${ECHO_T}$ac_res" >&6; }
14826 # Is the header compilable?
14827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14836 #include <$ac_header>
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14842 *) ac_try_echo=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1 >conftest.err
14849 cat conftest.err >&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.$ac_objext; then
14855 ac_header_compiler=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 ac_header_compiler=no
14863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6; }
14867 # Is the header present?
14868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14870 cat >conftest.$ac_ext <<_ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <$ac_header>
14878 if { (ac_try="$ac_cpp conftest.$ac_ext"
14879 case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } >/dev/null && {
14891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14894 ac_header_preproc=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_header_preproc=no
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14906 # So? What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14913 ac_header_preproc=yes
14916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14929 ## --------------------------------------------- ##
14930 ## Report this to <http://www.openldap.org/its/> ##
14931 ## --------------------------------------------- ##
14933 ) | sed "s/^/$as_me: WARNING: /" >&2
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 eval "$as_ac_Header=\$ac_header_preproc"
14943 ac_res=`eval echo '${'$as_ac_Header'}'`
14944 { echo "$as_me:$LINENO: result: $ac_res" >&5
14945 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14960 for ac_header in resolv.h
14962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14975 #include <netinet/in.h>
14978 #include <$ac_header>
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest.$ac_objext; then
14997 eval "$as_ac_Header=yes"
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 eval "$as_ac_Header=no"
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008 { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15011 cat >>confdefs.h <<_ACEOF
15012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15021 for ac_header in netinet/tcp.h
15023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 $ac_includes_default
15036 #include <netinet/in.h>
15039 #include <$ac_header>
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045 *) ac_try_echo=$ac_try;;
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048 (eval "$ac_compile") 2>conftest.er1
15050 grep -v '^ *+' conftest.er1 >conftest.err
15052 cat conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); } && {
15055 test -z "$ac_c_werror_flag" ||
15056 test ! -s conftest.err
15057 } && test -s conftest.$ac_objext; then
15058 eval "$as_ac_Header=yes"
15060 echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15063 eval "$as_ac_Header=no"
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 ac_res=`eval echo '${'$as_ac_Header'}'`
15069 { echo "$as_me:$LINENO: result: $ac_res" >&5
15070 echo "${ECHO_T}$ac_res" >&6; }
15071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15072 cat >>confdefs.h <<_ACEOF
15073 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15082 for ac_header in sys/ucred.h
15084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 cat >conftest.$ac_ext <<_ACEOF
15093 cat confdefs.h >>conftest.$ac_ext
15094 cat >>conftest.$ac_ext <<_ACEOF
15095 /* end confdefs.h. */
15096 $ac_includes_default
15097 #ifdef HAVE_SYS_PARAM_H
15098 #include <sys/param.h>
15102 #include <$ac_header>
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_compile") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); } && {
15118 test -z "$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15120 } && test -s conftest.$ac_objext; then
15121 eval "$as_ac_Header=yes"
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 eval "$as_ac_Header=no"
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 ac_res=`eval echo '${'$as_ac_Header'}'`
15132 { echo "$as_me:$LINENO: result: $ac_res" >&5
15133 echo "${ECHO_T}$ac_res" >&6; }
15134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15147 for ac_func in sigaction sigset
15149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15163 #define $ac_func innocuous_$ac_func
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char $ac_func (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15171 # include <limits.h>
15173 # include <assert.h>
15178 /* Override any GCC internal prototype to avoid an error.
15179 Use char because int might match the return type of a GCC
15180 builtin and then its argument prototype would still apply. */
15185 /* The GNU C library defines this for functions which it implements
15186 to always fail with ENOSYS. Some functions are actually named
15187 something starting with __ and the normal name is an alias. */
15188 #if defined __stub_$ac_func || defined __stub___$ac_func
15195 return $ac_func ();
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (ac_try="$ac_link"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_link") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } && {
15214 test -z "$ac_c_werror_flag" ||
15215 test ! -s conftest.err
15216 } && test -s conftest$ac_exeext &&
15217 $as_test_x conftest$ac_exeext; then
15218 eval "$as_ac_var=yes"
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 eval "$as_ac_var=no"
15226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15227 conftest$ac_exeext conftest.$ac_ext
15229 ac_res=`eval echo '${'$as_ac_var'}'`
15230 { echo "$as_me:$LINENO: result: $ac_res" >&5
15231 echo "${ECHO_T}$ac_res" >&6; }
15232 if test `eval echo '${'$as_ac_var'}'` = yes; then
15233 cat >>confdefs.h <<_ACEOF
15234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15241 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15243 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15244 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15245 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 ac_check_lib_save_LIBS=$LIBS
15250 cat >conftest.$ac_ext <<_ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15257 /* Override any GCC internal prototype to avoid an error.
15258 Use char because int might match the return type of a GCC
15259 builtin and then its argument prototype would still apply. */
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 ac_cv_lib_V3_sigset=yes
15292 echo "$as_me: failed program was:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 ac_cv_lib_V3_sigset=no
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15302 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15303 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15304 if test $ac_cv_lib_V3_sigset = yes; then
15305 cat >>confdefs.h <<_ACEOF
15306 #define HAVE_LIBV3 1
15315 if test $ol_cv_msvc = yes ; then
15319 if test "$ac_cv_header_winsock_h" = yes; then
15320 { echo "$as_me:$LINENO: checking for winsock" >&5
15321 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15322 if test "${ol_cv_winsock+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 for curlib in none ws2_32 wsock32; do
15328 if test $curlib != none ; then
15329 LIBS="$save_LIBS -l$curlib"
15331 cat >conftest.$ac_ext <<_ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 #include <winsock.h>
15344 select(0,NULL,NULL,NULL,NULL);
15346 gethostname(NULL,0);
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext &&
15369 $as_test_x conftest$ac_exeext; then
15370 ol_cv_winsock=$curlib
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15381 test "$ol_cv_winsock" != no && break
15386 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15387 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15389 if test $ol_cv_winsock != no ; then
15391 cat >>confdefs.h <<\_ACEOF
15392 #define HAVE_WINSOCK 1
15395 ac_cv_func_socket=yes
15396 ac_cv_func_select=yes
15397 ac_cv_func_closesocket=yes
15398 ac_cv_func_gethostname=yes
15400 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15401 LIBS="$LIBS -l$ol_cv_winsock"
15404 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_WINSOCK2 1
15415 { echo "$as_me:$LINENO: checking for socket" >&5
15416 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15417 if test "${ac_cv_func_socket+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15428 #define socket innocuous_socket
15430 /* System header to define __stub macros and hopefully few prototypes,
15431 which can conflict with char socket (); below.
15432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15433 <limits.h> exists even on freestanding compilers. */
15436 # include <limits.h>
15438 # include <assert.h>
15443 /* Override any GCC internal prototype to avoid an error.
15444 Use char because int might match the return type of a GCC
15445 builtin and then its argument prototype would still apply. */
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined __stub_socket || defined __stub___socket
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (ac_try="$ac_link"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_link") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } && {
15479 test -z "$ac_c_werror_flag" ||
15480 test ! -s conftest.err
15481 } && test -s conftest$ac_exeext &&
15482 $as_test_x conftest$ac_exeext; then
15483 ac_cv_func_socket=yes
15485 echo "$as_me: failed program was:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_cv_func_socket=no
15491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15492 conftest$ac_exeext conftest.$ac_ext
15494 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15495 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15496 if test $ac_cv_func_socket = yes; then
15501 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15502 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15503 if test "${ac_cv_lib_socket_main+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 ac_check_lib_save_LIBS=$LIBS
15507 LIBS="-lsocket $LIBS"
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15524 rm -f conftest.$ac_objext conftest$ac_exeext
15525 if { (ac_try="$ac_link"
15526 case "(($ac_try" in
15527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15528 *) ac_try_echo=$ac_try;;
15530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15531 (eval "$ac_link") 2>conftest.er1
15533 grep -v '^ *+' conftest.er1 >conftest.err
15535 cat conftest.err >&5
15536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537 (exit $ac_status); } && {
15538 test -z "$ac_c_werror_flag" ||
15539 test ! -s conftest.err
15540 } && test -s conftest$ac_exeext &&
15541 $as_test_x conftest$ac_exeext; then
15542 ac_cv_lib_socket_main=yes
15544 echo "$as_me: failed program was:" >&5
15545 sed 's/^/| /' conftest.$ac_ext >&5
15547 ac_cv_lib_socket_main=no
15550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15551 conftest$ac_exeext conftest.$ac_ext
15552 LIBS=$ac_check_lib_save_LIBS
15554 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15555 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15556 if test $ac_cv_lib_socket_main = yes; then
15557 cat >>confdefs.h <<_ACEOF
15558 #define HAVE_LIBSOCKET 1
15561 LIBS="-lsocket $LIBS"
15566 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15567 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15568 if test "${ac_cv_lib_net_main+set}" = set; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 ac_check_lib_save_LIBS=$LIBS
15573 cat >conftest.$ac_ext <<_ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15589 rm -f conftest.$ac_objext conftest$ac_exeext
15590 if { (ac_try="$ac_link"
15591 case "(($ac_try" in
15592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15593 *) ac_try_echo=$ac_try;;
15595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15596 (eval "$ac_link") 2>conftest.er1
15598 grep -v '^ *+' conftest.er1 >conftest.err
15600 cat conftest.err >&5
15601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602 (exit $ac_status); } && {
15603 test -z "$ac_c_werror_flag" ||
15604 test ! -s conftest.err
15605 } && test -s conftest$ac_exeext &&
15606 $as_test_x conftest$ac_exeext; then
15607 ac_cv_lib_net_main=yes
15609 echo "$as_me: failed program was:" >&5
15610 sed 's/^/| /' conftest.$ac_ext >&5
15612 ac_cv_lib_net_main=no
15615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15616 conftest$ac_exeext conftest.$ac_ext
15617 LIBS=$ac_check_lib_save_LIBS
15619 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15620 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15621 if test $ac_cv_lib_net_main = yes; then
15622 cat >>confdefs.h <<_ACEOF
15623 #define HAVE_LIBNET 1
15631 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15632 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15633 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 ac_check_lib_save_LIBS=$LIBS
15637 LIBS="-lnsl_s $LIBS"
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672 ac_cv_lib_nsl_s_main=yes
15674 echo "$as_me: failed program was:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_cv_lib_nsl_s_main=no
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15685 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15686 if test $ac_cv_lib_nsl_s_main = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBNSL_S 1
15691 LIBS="-lnsl_s $LIBS"
15696 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15697 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15698 if test "${ac_cv_lib_nsl_main+set}" = set; then
15699 echo $ECHO_N "(cached) $ECHO_C" >&6
15701 ac_check_lib_save_LIBS=$LIBS
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15719 rm -f conftest.$ac_objext conftest$ac_exeext
15720 if { (ac_try="$ac_link"
15721 case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726 (eval "$ac_link") 2>conftest.er1
15728 grep -v '^ *+' conftest.er1 >conftest.err
15730 cat conftest.err >&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } && {
15733 test -z "$ac_c_werror_flag" ||
15734 test ! -s conftest.err
15735 } && test -s conftest$ac_exeext &&
15736 $as_test_x conftest$ac_exeext; then
15737 ac_cv_lib_nsl_main=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_cv_lib_nsl_main=no
15745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15746 conftest$ac_exeext conftest.$ac_ext
15747 LIBS=$ac_check_lib_save_LIBS
15749 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15750 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15751 if test $ac_cv_lib_nsl_main = yes; then
15752 cat >>confdefs.h <<_ACEOF
15753 #define HAVE_LIBNSL 1
15761 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15762 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15763 if test "${ac_cv_lib_inet_socket+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 ac_check_lib_save_LIBS=$LIBS
15767 LIBS="-linet $LIBS"
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15775 /* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (ac_try="$ac_link"
15792 case "(($ac_try" in
15793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15794 *) ac_try_echo=$ac_try;;
15796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15797 (eval "$ac_link") 2>conftest.er1
15799 grep -v '^ *+' conftest.er1 >conftest.err
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } && {
15804 test -z "$ac_c_werror_flag" ||
15805 test ! -s conftest.err
15806 } && test -s conftest$ac_exeext &&
15807 $as_test_x conftest$ac_exeext; then
15808 ac_cv_lib_inet_socket=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_cv_lib_inet_socket=no
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext conftest.$ac_ext
15818 LIBS=$ac_check_lib_save_LIBS
15820 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15821 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15822 if test $ac_cv_lib_inet_socket = yes; then
15823 cat >>confdefs.h <<_ACEOF
15824 #define HAVE_LIBINET 1
15827 LIBS="-linet $LIBS"
15832 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15833 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15834 if test "${ac_cv_lib_gen_main+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 ac_check_lib_save_LIBS=$LIBS
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15855 rm -f conftest.$ac_objext conftest$ac_exeext
15856 if { (ac_try="$ac_link"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_link") 2>conftest.er1
15864 grep -v '^ *+' conftest.er1 >conftest.err
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); } && {
15869 test -z "$ac_c_werror_flag" ||
15870 test ! -s conftest.err
15871 } && test -s conftest$ac_exeext &&
15872 $as_test_x conftest$ac_exeext; then
15873 ac_cv_lib_gen_main=yes
15875 echo "$as_me: failed program was:" >&5
15876 sed 's/^/| /' conftest.$ac_ext >&5
15878 ac_cv_lib_gen_main=no
15881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15882 conftest$ac_exeext conftest.$ac_ext
15883 LIBS=$ac_check_lib_save_LIBS
15885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15886 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15887 if test $ac_cv_lib_gen_main = yes; then
15888 cat >>confdefs.h <<_ACEOF
15889 #define HAVE_LIBGEN 1
15900 { echo "$as_me:$LINENO: checking for select" >&5
15901 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15902 if test "${ac_cv_func_select+set}" = set; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15905 cat >conftest.$ac_ext <<_ACEOF
15908 cat confdefs.h >>conftest.$ac_ext
15909 cat >>conftest.$ac_ext <<_ACEOF
15910 /* end confdefs.h. */
15911 /* Define select to an innocuous variant, in case <limits.h> declares select.
15912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15913 #define select innocuous_select
15915 /* System header to define __stub macros and hopefully few prototypes,
15916 which can conflict with char select (); below.
15917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15918 <limits.h> exists even on freestanding compilers. */
15921 # include <limits.h>
15923 # include <assert.h>
15928 /* Override any GCC internal prototype to avoid an error.
15929 Use char because int might match the return type of a GCC
15930 builtin and then its argument prototype would still apply. */
15935 /* The GNU C library defines this for functions which it implements
15936 to always fail with ENOSYS. Some functions are actually named
15937 something starting with __ and the normal name is an alias. */
15938 #if defined __stub_select || defined __stub___select
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (ac_try="$ac_link"
15952 case "(($ac_try" in
15953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15954 *) ac_try_echo=$ac_try;;
15956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15957 (eval "$ac_link") 2>conftest.er1
15959 grep -v '^ *+' conftest.er1 >conftest.err
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest$ac_exeext &&
15967 $as_test_x conftest$ac_exeext; then
15968 ac_cv_func_select=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_cv_func_select=no
15976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15977 conftest$ac_exeext conftest.$ac_ext
15979 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
15980 echo "${ECHO_T}$ac_cv_func_select" >&6; }
15981 if test $ac_cv_func_select = yes; then
15984 { { echo "$as_me:$LINENO: error: select() required." >&5
15985 echo "$as_me: error: select() required." >&2;}
15986 { (exit 1); exit 1; }; }
15990 if test "${ac_cv_header_winsock_h}" != yes; then
15993 for ac_header in sys/select.h sys/socket.h
15995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16000 echo $ECHO_N "(cached) $ECHO_C" >&6
16002 ac_res=`eval echo '${'$as_ac_Header'}'`
16003 { echo "$as_me:$LINENO: result: $ac_res" >&5
16004 echo "${ECHO_T}$ac_res" >&6; }
16006 # Is the header compilable?
16007 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16009 cat >conftest.$ac_ext <<_ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 $ac_includes_default
16016 #include <$ac_header>
16018 rm -f conftest.$ac_objext
16019 if { (ac_try="$ac_compile"
16020 case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_compile") 2>conftest.er1
16027 grep -v '^ *+' conftest.er1 >conftest.err
16029 cat conftest.err >&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } && {
16032 test -z "$ac_c_werror_flag" ||
16033 test ! -s conftest.err
16034 } && test -s conftest.$ac_objext; then
16035 ac_header_compiler=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_header_compiler=no
16043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16045 echo "${ECHO_T}$ac_header_compiler" >&6; }
16047 # Is the header present?
16048 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16050 cat >conftest.$ac_ext <<_ACEOF
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16056 #include <$ac_header>
16058 if { (ac_try="$ac_cpp conftest.$ac_ext"
16059 case "(($ac_try" in
16060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16061 *) ac_try_echo=$ac_try;;
16063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16066 grep -v '^ *+' conftest.er1 >conftest.err
16068 cat conftest.err >&5
16069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070 (exit $ac_status); } >/dev/null && {
16071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16072 test ! -s conftest.err
16074 ac_header_preproc=yes
16076 echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16079 ac_header_preproc=no
16082 rm -f conftest.err conftest.$ac_ext
16083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16084 echo "${ECHO_T}$ac_header_preproc" >&6; }
16086 # So? What about this header?
16087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16089 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16090 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16091 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16092 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16093 ac_header_preproc=yes
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16097 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16099 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16101 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16103 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16106 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16107 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16109 ## --------------------------------------------- ##
16110 ## Report this to <http://www.openldap.org/its/> ##
16111 ## --------------------------------------------- ##
16113 ) | sed "s/^/$as_me: WARNING: /" >&2
16116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16119 echo $ECHO_N "(cached) $ECHO_C" >&6
16121 eval "$as_ac_Header=\$ac_header_preproc"
16123 ac_res=`eval echo '${'$as_ac_Header'}'`
16124 { echo "$as_me:$LINENO: result: $ac_res" >&5
16125 echo "${ECHO_T}$ac_res" >&6; }
16128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16129 cat >>confdefs.h <<_ACEOF
16130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16137 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16138 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16139 if test "${ac_cv_func_select_args+set}" = set; then
16140 echo $ECHO_N "(cached) $ECHO_C" >&6
16142 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16143 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16144 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16152 #ifdef HAVE_SYS_SELECT_H
16153 # include <sys/select.h>
16155 #ifdef HAVE_SYS_SOCKET_H
16156 # include <sys/socket.h>
16162 extern int select ($ac_arg1,
16163 $ac_arg234, $ac_arg234, $ac_arg234,
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest.$ac_objext; then
16186 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 # Provide a safe default value.
16199 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16202 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16203 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16204 ac_save_IFS=$IFS; IFS=','
16205 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16209 cat >>confdefs.h <<_ACEOF
16210 #define SELECT_TYPE_ARG1 $1
16214 cat >>confdefs.h <<_ACEOF
16215 #define SELECT_TYPE_ARG234 ($2)
16219 cat >>confdefs.h <<_ACEOF
16220 #define SELECT_TYPE_ARG5 ($3)
16229 for ac_func in poll
16231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16237 cat >conftest.$ac_ext <<_ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16245 #define $ac_func innocuous_$ac_func
16247 /* System header to define __stub macros and hopefully few prototypes,
16248 which can conflict with char $ac_func (); below.
16249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16250 <limits.h> exists even on freestanding compilers. */
16253 # include <limits.h>
16255 # include <assert.h>
16260 /* Override any GCC internal prototype to avoid an error.
16261 Use char because int might match the return type of a GCC
16262 builtin and then its argument prototype would still apply. */
16267 /* The GNU C library defines this for functions which it implements
16268 to always fail with ENOSYS. Some functions are actually named
16269 something starting with __ and the normal name is an alias. */
16270 #if defined __stub_$ac_func || defined __stub___$ac_func
16277 return $ac_func ();
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext &&
16299 $as_test_x conftest$ac_exeext; then
16300 eval "$as_ac_var=yes"
16302 echo "$as_me: failed program was:" >&5
16303 sed 's/^/| /' conftest.$ac_ext >&5
16305 eval "$as_ac_var=no"
16308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16309 conftest$ac_exeext conftest.$ac_ext
16311 ac_res=`eval echo '${'$as_ac_var'}'`
16312 { echo "$as_me:$LINENO: result: $ac_res" >&5
16313 echo "${ECHO_T}$ac_res" >&6; }
16314 if test `eval echo '${'$as_ac_var'}'` = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16322 if test $ac_cv_func_poll = yes; then
16325 for ac_header in poll.h sys/poll.h
16327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 ac_res=`eval echo '${'$as_ac_Header'}'`
16335 { echo "$as_me:$LINENO: result: $ac_res" >&5
16336 echo "${ECHO_T}$ac_res" >&6; }
16338 # Is the header compilable?
16339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347 $ac_includes_default
16348 #include <$ac_header>
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354 *) ac_try_echo=$ac_try;;
16356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16357 (eval "$ac_compile") 2>conftest.er1
16359 grep -v '^ *+' conftest.er1 >conftest.err
16361 cat conftest.err >&5
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); } && {
16364 test -z "$ac_c_werror_flag" ||
16365 test ! -s conftest.err
16366 } && test -s conftest.$ac_objext; then
16367 ac_header_compiler=yes
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 ac_header_compiler=no
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16377 echo "${ECHO_T}$ac_header_compiler" >&6; }
16379 # Is the header present?
16380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 #include <$ac_header>
16390 if { (ac_try="$ac_cpp conftest.$ac_ext"
16391 case "(($ac_try" in
16392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16393 *) ac_try_echo=$ac_try;;
16395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16398 grep -v '^ *+' conftest.er1 >conftest.err
16400 cat conftest.err >&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } >/dev/null && {
16403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16406 ac_header_preproc=yes
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ac_header_preproc=no
16414 rm -f conftest.err conftest.$ac_ext
16415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16416 echo "${ECHO_T}$ac_header_preproc" >&6; }
16418 # So? What about this header?
16419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16425 ac_header_preproc=yes
16428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16441 ## --------------------------------------------- ##
16442 ## Report this to <http://www.openldap.org/its/> ##
16443 ## --------------------------------------------- ##
16445 ) | sed "s/^/$as_me: WARNING: /" >&2
16448 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16451 echo $ECHO_N "(cached) $ECHO_C" >&6
16453 eval "$as_ac_Header=\$ac_header_preproc"
16455 ac_res=`eval echo '${'$as_ac_Header'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16472 for ac_header in sys/epoll.h
16474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482 { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16485 # Is the header compilable?
16486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 $ac_includes_default
16495 #include <$ac_header>
16497 rm -f conftest.$ac_objext
16498 if { (ac_try="$ac_compile"
16499 case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_compile") 2>conftest.er1
16506 grep -v '^ *+' conftest.er1 >conftest.err
16508 cat conftest.err >&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } && {
16511 test -z "$ac_c_werror_flag" ||
16512 test ! -s conftest.err
16513 } && test -s conftest.$ac_objext; then
16514 ac_header_compiler=yes
16516 echo "$as_me: failed program was:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_header_compiler=no
16522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16524 echo "${ECHO_T}$ac_header_compiler" >&6; }
16526 # Is the header present?
16527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 #include <$ac_header>
16537 if { (ac_try="$ac_cpp conftest.$ac_ext"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } >/dev/null && {
16550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16551 test ! -s conftest.err
16553 ac_header_preproc=yes
16555 echo "$as_me: failed program was:" >&5
16556 sed 's/^/| /' conftest.$ac_ext >&5
16558 ac_header_preproc=no
16561 rm -f conftest.err conftest.$ac_ext
16562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16563 echo "${ECHO_T}$ac_header_preproc" >&6; }
16565 # So? What about this header?
16566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16572 ac_header_preproc=yes
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16588 ## --------------------------------------------- ##
16589 ## Report this to <http://www.openldap.org/its/> ##
16590 ## --------------------------------------------- ##
16592 ) | sed "s/^/$as_me: WARNING: /" >&2
16595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 eval "$as_ac_Header=\$ac_header_preproc"
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16608 cat >>confdefs.h <<_ACEOF
16609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16616 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16617 { echo "$as_me:$LINENO: checking for epoll system call" >&5
16618 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16619 if test "$cross_compiling" = yes; then
16620 { echo "$as_me:$LINENO: result: no" >&5
16621 echo "${ECHO_T}no" >&6; }
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 int main(int argc, char **argv)
16631 int epfd = epoll_create(256);
16632 exit (epfd == -1 ? 1 : 0);
16635 rm -f conftest$ac_exeext
16636 if { (ac_try="$ac_link"
16637 case "(($ac_try" in
16638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16639 *) ac_try_echo=$ac_try;;
16641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16642 (eval "$ac_link") 2>&5
16644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; }; then
16655 { echo "$as_me:$LINENO: result: yes" >&5
16656 echo "${ECHO_T}yes" >&6; }
16658 cat >>confdefs.h <<\_ACEOF
16659 #define HAVE_EPOLL 1
16663 echo "$as_me: program exited with status $ac_status" >&5
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ( exit $ac_status )
16668 { echo "$as_me:$LINENO: result: no" >&5
16669 echo "${ECHO_T}no" >&6; }
16671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16678 for ac_header in sys/devpoll.h
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685 echo $ECHO_N "(cached) $ECHO_C" >&6
16687 ac_res=`eval echo '${'$as_ac_Header'}'`
16688 { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16691 # Is the header compilable?
16692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700 $ac_includes_default
16701 #include <$ac_header>
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_compile") 2>conftest.er1
16712 grep -v '^ *+' conftest.er1 >conftest.err
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); } && {
16717 test -z "$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16719 } && test -s conftest.$ac_objext; then
16720 ac_header_compiler=yes
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 ac_header_compiler=no
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6; }
16732 # Is the header present?
16733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16735 cat >conftest.$ac_ext <<_ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h. */
16741 #include <$ac_header>
16743 if { (ac_try="$ac_cpp conftest.$ac_ext"
16744 case "(($ac_try" in
16745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746 *) ac_try_echo=$ac_try;;
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16751 grep -v '^ *+' conftest.er1 >conftest.err
16753 cat conftest.err >&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); } >/dev/null && {
16756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16757 test ! -s conftest.err
16759 ac_header_preproc=yes
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16764 ac_header_preproc=no
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16771 # So? What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16774 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16778 ac_header_preproc=yes
16781 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16794 ## --------------------------------------------- ##
16795 ## Report this to <http://www.openldap.org/its/> ##
16796 ## --------------------------------------------- ##
16798 ) | sed "s/^/$as_me: WARNING: /" >&2
16801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16804 echo $ECHO_N "(cached) $ECHO_C" >&6
16806 eval "$as_ac_Header=\$ac_header_preproc"
16808 ac_res=`eval echo '${'$as_ac_Header'}'`
16809 { echo "$as_me:$LINENO: result: $ac_res" >&5
16810 echo "${ECHO_T}$ac_res" >&6; }
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814 cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16822 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16823 -a "${ac_cv_header_poll_h}" = yes ; \
16825 { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16826 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16827 if test "$cross_compiling" = yes; then
16828 { echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6; }
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 int main(int argc, char **argv)
16839 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16840 exit (devpollfd == -1 ? 1 : 0);
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16850 (eval "$ac_link") 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16854 { (case "(($ac_try" in
16855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856 *) ac_try_echo=$ac_try;;
16858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859 (eval "$ac_try") 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); }; }; then
16863 { echo "$as_me:$LINENO: result: yes" >&5
16864 echo "${ECHO_T}yes" >&6; }
16866 cat >>confdefs.h <<\_ACEOF
16867 #define HAVE_DEVPOLL 1
16871 echo "$as_me: program exited with status $ac_status" >&5
16872 echo "$as_me: failed program was:" >&5
16873 sed 's/^/| /' conftest.$ac_ext >&5
16875 ( exit $ac_status )
16876 { echo "$as_me:$LINENO: result: no" >&5
16877 echo "${ECHO_T}no" >&6; }
16879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16886 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16887 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h. */
16899 #include <sys/types.h>
16902 #include <stdlib.h>
16907 char *c = (char *) *sys_errlist
16912 rm -f conftest.$ac_objext
16913 if { (ac_try="$ac_compile"
16914 case "(($ac_try" in
16915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16916 *) ac_try_echo=$ac_try;;
16918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16919 (eval "$ac_compile") 2>conftest.er1
16921 grep -v '^ *+' conftest.er1 >conftest.err
16923 cat conftest.err >&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } && {
16926 test -z "$ac_c_werror_flag" ||
16927 test ! -s conftest.err
16928 } && test -s conftest.$ac_objext; then
16929 ol_cv_dcl_sys_errlist=yes
16930 ol_cv_have_sys_errlist=yes
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ol_cv_dcl_sys_errlist=no
16938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16940 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16941 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16943 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16944 if test $ol_cv_dcl_sys_errlist = no ; then
16946 cat >>confdefs.h <<\_ACEOF
16947 #define DECL_SYS_ERRLIST 1
16951 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16952 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16953 if test "${ol_cv_have_sys_errlist+set}" = set; then
16954 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16967 char *c = (char *) *sys_errlist
16972 rm -f conftest.$ac_objext conftest$ac_exeext
16973 if { (ac_try="$ac_link"
16974 case "(($ac_try" in
16975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16976 *) ac_try_echo=$ac_try;;
16978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16979 (eval "$ac_link") 2>conftest.er1
16981 grep -v '^ *+' conftest.er1 >conftest.err
16983 cat conftest.err >&5
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); } && {
16986 test -z "$ac_c_werror_flag" ||
16987 test ! -s conftest.err
16988 } && test -s conftest$ac_exeext &&
16989 $as_test_x conftest$ac_exeext; then
16990 ol_cv_have_sys_errlist=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ol_cv_have_sys_errlist=no
16998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16999 conftest$ac_exeext conftest.$ac_ext
17001 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17002 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17004 if test $ol_cv_have_sys_errlist = yes ; then
17006 cat >>confdefs.h <<\_ACEOF
17007 #define HAVE_SYS_ERRLIST 1
17013 for ac_func in strerror strerror_r
17015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17021 cat >conftest.$ac_ext <<_ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17029 #define $ac_func innocuous_$ac_func
17031 /* System header to define __stub macros and hopefully few prototypes,
17032 which can conflict with char $ac_func (); below.
17033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17034 <limits.h> exists even on freestanding compilers. */
17037 # include <limits.h>
17039 # include <assert.h>
17044 /* Override any GCC internal prototype to avoid an error.
17045 Use char because int might match the return type of a GCC
17046 builtin and then its argument prototype would still apply. */
17051 /* The GNU C library defines this for functions which it implements
17052 to always fail with ENOSYS. Some functions are actually named
17053 something starting with __ and the normal name is an alias. */
17054 #if defined __stub_$ac_func || defined __stub___$ac_func
17061 return $ac_func ();
17066 rm -f conftest.$ac_objext conftest$ac_exeext
17067 if { (ac_try="$ac_link"
17068 case "(($ac_try" in
17069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17070 *) ac_try_echo=$ac_try;;
17072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17073 (eval "$ac_link") 2>conftest.er1
17075 grep -v '^ *+' conftest.er1 >conftest.err
17077 cat conftest.err >&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); } && {
17080 test -z "$ac_c_werror_flag" ||
17081 test ! -s conftest.err
17082 } && test -s conftest$ac_exeext &&
17083 $as_test_x conftest$ac_exeext; then
17084 eval "$as_ac_var=yes"
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17089 eval "$as_ac_var=no"
17092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093 conftest$ac_exeext conftest.$ac_ext
17095 ac_res=`eval echo '${'$as_ac_var'}'`
17096 { echo "$as_me:$LINENO: result: $ac_res" >&5
17097 echo "${ECHO_T}$ac_res" >&6; }
17098 if test `eval echo '${'$as_ac_var'}'` = yes; then
17099 cat >>confdefs.h <<_ACEOF
17100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17106 ol_cv_func_strerror_r=no
17107 if test "${ac_cv_func_strerror_r}" = yes ; then
17108 { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17109 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17110 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17111 echo $ECHO_N "(cached) $ECHO_C" >&6
17114 cat >conftest.$ac_ext <<_ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17120 #include <string.h>
17122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17123 $EGREP "strerror_r" >/dev/null 2>&1; then
17124 ol_decl_strerror_r=yes
17126 ol_decl_strerror_r=no
17130 if test $ol_decl_strerror_r = yes ; then
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17137 #include <string.h>
17141 /* from autoconf 2.59 */
17143 char x = *strerror_r (0, buf, sizeof buf);
17144 char *p = strerror_r (0, buf, sizeof buf);
17150 rm -f conftest.$ac_objext
17151 if { (ac_try="$ac_compile"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_compile") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } && {
17164 test -z "$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 } && test -s conftest.$ac_objext; then
17167 ol_cv_nonposix_strerror_r=yes
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17172 ol_cv_nonposix_strerror_r=no
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17177 if test "$cross_compiling" = yes; then
17178 ol_cv_nonposix_strerror=no
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17190 strerror_r( 1, buf, sizeof buf );
17191 exit( buf[0] == 0 );
17195 rm -f conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17206 { (case "(($ac_try" in
17207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208 *) ac_try_echo=$ac_try;;
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211 (eval "$ac_try") 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ol_cv_nonposix_strerror_r=yes
17217 echo "$as_me: program exited with status $ac_status" >&5
17218 echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.$ac_ext >&5
17221 ( exit $ac_status )
17222 ol_cv_nonposix_strerror=no
17224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17231 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17232 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17233 if test $ol_cv_nonposix_strerror_r = yes ; then
17235 cat >>confdefs.h <<\_ACEOF
17236 #define HAVE_NONPOSIX_STRERROR_R 1
17241 elif test "${ac_cv_func_strerror}" = no ; then
17242 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17243 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17244 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17248 cat >conftest.$ac_ext <<_ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h. */
17256 #include <sys/types.h>
17259 #include <stdlib.h>
17264 char *c = (char *) *sys_errlist
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest.$ac_objext; then
17286 ol_cv_dcl_sys_errlist=yes
17287 ol_cv_have_sys_errlist=yes
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17292 ol_cv_dcl_sys_errlist=no
17295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17298 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17300 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17301 if test $ol_cv_dcl_sys_errlist = no ; then
17303 cat >>confdefs.h <<\_ACEOF
17304 #define DECL_SYS_ERRLIST 1
17308 { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17309 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17310 if test "${ol_cv_have_sys_errlist+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17324 char *c = (char *) *sys_errlist
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17338 grep -v '^ *+' conftest.er1 >conftest.err
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest$ac_exeext &&
17346 $as_test_x conftest$ac_exeext; then
17347 ol_cv_have_sys_errlist=yes
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17352 ol_cv_have_sys_errlist=no
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17358 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17359 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17361 if test $ol_cv_have_sys_errlist = yes ; then
17363 cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_SYS_ERRLIST 1
17373 for ac_header in regex.h
17375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17379 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #ifdef HAVE_SYS_TYPES_H
17389 #include <sys/types.h>
17393 #include <$ac_header>
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17404 grep -v '^ *+' conftest.er1 >conftest.err
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 eval "$as_ac_Header=yes"
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 eval "$as_ac_Header=no"
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17422 ac_res=`eval echo '${'$as_ac_Header'}'`
17423 { echo "$as_me:$LINENO: result: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17435 if test "$ac_cv_header_regex_h" != yes ; then
17436 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17437 echo "$as_me: error: POSIX regex.h required." >&2;}
17438 { (exit 1); exit 1; }; }
17440 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17441 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17442 if test "${ac_cv_search_regfree+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17445 ac_func_search_save_LIBS=$LIBS
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17453 /* Override any GCC internal prototype to avoid an error.
17454 Use char because int might match the return type of a GCC
17455 builtin and then its argument prototype would still apply. */
17468 for ac_lib in '' regex gnuregex; do
17469 if test -z "$ac_lib"; then
17470 ac_res="none required"
17473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } && {
17489 test -z "$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 } && test -s conftest$ac_exeext &&
17492 $as_test_x conftest$ac_exeext; then
17493 ac_cv_search_regfree=$ac_res
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17503 if test "${ac_cv_search_regfree+set}" = set; then
17507 if test "${ac_cv_search_regfree+set}" = set; then
17510 ac_cv_search_regfree=no
17512 rm conftest.$ac_ext
17513 LIBS=$ac_func_search_save_LIBS
17515 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17516 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17517 ac_res=$ac_cv_search_regfree
17518 if test "$ac_res" != no; then
17519 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17522 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17523 echo "$as_me: error: POSIX regex required." >&2;}
17524 { (exit 1); exit 1; }; }
17529 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17530 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17531 if test "${ol_cv_c_posix_regex+set}" = set; then
17532 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 if test "$cross_compiling" = yes; then
17536 ol_cv_c_posix_regex=cross
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17545 #include <sys/types.h>
17547 static char *pattern, *string;
17555 if(regcomp(&re, pattern, 0)) {
17559 string = "ALL MATCH";
17561 rc = regexec(&re, string, 0, (void*)0, 0);
17568 rm -f conftest$ac_exeext
17569 if { (ac_try="$ac_link"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_link") 2>&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17579 { (case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ol_cv_c_posix_regex=yes
17590 echo "$as_me: program exited with status $ac_status" >&5
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17594 ( exit $ac_status )
17595 ol_cv_c_posix_regex=no
17597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17602 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17603 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17605 if test "$ol_cv_c_posix_regex" = no ; then
17606 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17607 echo "$as_me: error: broken POSIX regex!" >&2;}
17608 { (exit 1); exit 1; }; }
17614 for ac_header in sys/uuid.h
17616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17618 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 ac_res=`eval echo '${'$as_ac_Header'}'`
17624 { echo "$as_me:$LINENO: result: $ac_res" >&5
17625 echo "${ECHO_T}$ac_res" >&6; }
17627 # Is the header compilable?
17628 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17630 cat >conftest.$ac_ext <<_ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h. */
17636 $ac_includes_default
17637 #include <$ac_header>
17639 rm -f conftest.$ac_objext
17640 if { (ac_try="$ac_compile"
17641 case "(($ac_try" in
17642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17643 *) ac_try_echo=$ac_try;;
17645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17646 (eval "$ac_compile") 2>conftest.er1
17648 grep -v '^ *+' conftest.er1 >conftest.err
17650 cat conftest.err >&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); } && {
17653 test -z "$ac_c_werror_flag" ||
17654 test ! -s conftest.err
17655 } && test -s conftest.$ac_objext; then
17656 ac_header_compiler=yes
17658 echo "$as_me: failed program was:" >&5
17659 sed 's/^/| /' conftest.$ac_ext >&5
17661 ac_header_compiler=no
17664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17666 echo "${ECHO_T}$ac_header_compiler" >&6; }
17668 # Is the header present?
17669 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17670 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17671 cat >conftest.$ac_ext <<_ACEOF
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17677 #include <$ac_header>
17679 if { (ac_try="$ac_cpp conftest.$ac_ext"
17680 case "(($ac_try" in
17681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17682 *) ac_try_echo=$ac_try;;
17684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17687 grep -v '^ *+' conftest.er1 >conftest.err
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } >/dev/null && {
17692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17693 test ! -s conftest.err
17695 ac_header_preproc=yes
17697 echo "$as_me: failed program was:" >&5
17698 sed 's/^/| /' conftest.$ac_ext >&5
17700 ac_header_preproc=no
17703 rm -f conftest.err conftest.$ac_ext
17704 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17705 echo "${ECHO_T}$ac_header_preproc" >&6; }
17707 # So? What about this header?
17708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17710 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17711 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17713 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17714 ac_header_preproc=yes
17717 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17718 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17719 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17720 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17721 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17722 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17723 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17724 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17726 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17727 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17728 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17730 ## --------------------------------------------- ##
17731 ## Report this to <http://www.openldap.org/its/> ##
17732 ## --------------------------------------------- ##
17734 ) | sed "s/^/$as_me: WARNING: /" >&2
17737 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17740 echo $ECHO_N "(cached) $ECHO_C" >&6
17742 eval "$as_ac_Header=\$ac_header_preproc"
17744 ac_res=`eval echo '${'$as_ac_Header'}'`
17745 { echo "$as_me:$LINENO: result: $ac_res" >&5
17746 echo "${ECHO_T}$ac_res" >&6; }
17749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17758 if test $ac_cv_header_sys_uuid_h = yes ; then
17760 { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17761 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17762 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17763 echo $ECHO_N "(cached) $ECHO_C" >&6
17765 ac_func_search_save_LIBS=$LIBS
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17773 /* Override any GCC internal prototype to avoid an error.
17774 Use char because int might match the return type of a GCC
17775 builtin and then its argument prototype would still apply. */
17779 char uuid_to_str ();
17783 return uuid_to_str ();
17788 for ac_lib in '' uuid; do
17789 if test -z "$ac_lib"; then
17790 ac_res="none required"
17793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (ac_try="$ac_link"
17797 case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_link") 2>conftest.er1
17804 grep -v '^ *+' conftest.er1 >conftest.err
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest$ac_exeext &&
17812 $as_test_x conftest$ac_exeext; then
17813 ac_cv_search_uuid_to_str=$ac_res
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17823 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17827 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17830 ac_cv_search_uuid_to_str=no
17832 rm conftest.$ac_ext
17833 LIBS=$ac_func_search_save_LIBS
17835 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17836 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17837 ac_res=$ac_cv_search_uuid_to_str
17838 if test "$ac_res" != no; then
17839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17845 { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17846 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17847 if test "${ac_cv_search_uuid_create+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 ac_func_search_save_LIBS=$LIBS
17851 cat >conftest.$ac_ext <<_ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17864 char uuid_create ();
17868 return uuid_create ();
17873 for ac_lib in '' uuid; do
17874 if test -z "$ac_lib"; then
17875 ac_res="none required"
17878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_link") 2>conftest.er1
17889 grep -v '^ *+' conftest.er1 >conftest.err
17891 cat conftest.err >&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); } && {
17894 test -z "$ac_c_werror_flag" ||
17895 test ! -s conftest.err
17896 } && test -s conftest$ac_exeext &&
17897 $as_test_x conftest$ac_exeext; then
17898 ac_cv_search_uuid_create=$ac_res
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17908 if test "${ac_cv_search_uuid_create+set}" = set; then
17912 if test "${ac_cv_search_uuid_create+set}" = set; then
17915 ac_cv_search_uuid_create=no
17917 rm conftest.$ac_ext
17918 LIBS=$ac_func_search_save_LIBS
17920 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17921 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17922 ac_res=$ac_cv_search_uuid_create
17923 if test "$ac_res" != no; then
17924 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17932 if test $have_uuid = yes ; then
17934 cat >>confdefs.h <<\_ACEOF
17935 #define HAVE_UUID_TO_STR 1
17939 test "$ac_cv_search_uuid_to_str" = "none required" || \
17940 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17944 if test $have_uuid = no ; then
17946 for ac_header in uuid/uuid.h
17948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17953 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 ac_res=`eval echo '${'$as_ac_Header'}'`
17956 { echo "$as_me:$LINENO: result: $ac_res" >&5
17957 echo "${ECHO_T}$ac_res" >&6; }
17959 # Is the header compilable?
17960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17962 cat >conftest.$ac_ext <<_ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h. */
17968 $ac_includes_default
17969 #include <$ac_header>
17971 rm -f conftest.$ac_objext
17972 if { (ac_try="$ac_compile"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_compile") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } && {
17985 test -z "$ac_c_werror_flag" ||
17986 test ! -s conftest.err
17987 } && test -s conftest.$ac_objext; then
17988 ac_header_compiler=yes
17990 echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 ac_header_compiler=no
17996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17998 echo "${ECHO_T}$ac_header_compiler" >&6; }
18000 # Is the header present?
18001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 #include <$ac_header>
18011 if { (ac_try="$ac_cpp conftest.$ac_ext"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } >/dev/null && {
18024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18027 ac_header_preproc=yes
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_preproc=no
18035 rm -f conftest.err conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18037 echo "${ECHO_T}$ac_header_preproc" >&6; }
18039 # So? What about this header?
18040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18042 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18043 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18045 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18046 ac_header_preproc=yes
18049 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18050 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18051 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18052 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18053 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18054 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18055 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18056 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18058 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18059 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18060 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18062 ## --------------------------------------------- ##
18063 ## Report this to <http://www.openldap.org/its/> ##
18064 ## --------------------------------------------- ##
18066 ) | sed "s/^/$as_me: WARNING: /" >&2
18069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18072 echo $ECHO_N "(cached) $ECHO_C" >&6
18074 eval "$as_ac_Header=\$ac_header_preproc"
18076 ac_res=`eval echo '${'$as_ac_Header'}'`
18077 { echo "$as_me:$LINENO: result: $ac_res" >&5
18078 echo "${ECHO_T}$ac_res" >&6; }
18081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18082 cat >>confdefs.h <<_ACEOF
18083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18090 if test $ac_cv_header_uuid_uuid_h = yes ; then
18092 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18093 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18094 if test "${ac_cv_search_uuid_generate+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 ac_func_search_save_LIBS=$LIBS
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply. */
18111 char uuid_generate ();
18115 return uuid_generate ();
18120 for ac_lib in '' uuid; do
18121 if test -z "$ac_lib"; then
18122 ac_res="none required"
18125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18127 rm -f conftest.$ac_objext conftest$ac_exeext
18128 if { (ac_try="$ac_link"
18129 case "(($ac_try" in
18130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131 *) ac_try_echo=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_link") 2>conftest.er1
18136 grep -v '^ *+' conftest.er1 >conftest.err
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } && {
18141 test -z "$ac_c_werror_flag" ||
18142 test ! -s conftest.err
18143 } && test -s conftest$ac_exeext &&
18144 $as_test_x conftest$ac_exeext; then
18145 ac_cv_search_uuid_generate=$ac_res
18147 echo "$as_me: failed program was:" >&5
18148 sed 's/^/| /' conftest.$ac_ext >&5
18153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18155 if test "${ac_cv_search_uuid_generate+set}" = set; then
18159 if test "${ac_cv_search_uuid_generate+set}" = set; then
18162 ac_cv_search_uuid_generate=no
18164 rm conftest.$ac_ext
18165 LIBS=$ac_func_search_save_LIBS
18167 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18168 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18169 ac_res=$ac_cv_search_uuid_generate
18170 if test "$ac_res" != no; then
18171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18177 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18178 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18179 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18182 ac_func_search_save_LIBS=$LIBS
18183 cat >conftest.$ac_ext <<_ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18196 char uuid_unparse_lower ();
18200 return uuid_unparse_lower ();
18205 for ac_lib in '' uuid; do
18206 if test -z "$ac_lib"; then
18207 ac_res="none required"
18210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219 (eval "$ac_link") 2>conftest.er1
18221 grep -v '^ *+' conftest.er1 >conftest.err
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } && {
18226 test -z "$ac_c_werror_flag" ||
18227 test ! -s conftest.err
18228 } && test -s conftest$ac_exeext &&
18229 $as_test_x conftest$ac_exeext; then
18230 ac_cv_search_uuid_unparse_lower=$ac_res
18232 echo "$as_me: failed program was:" >&5
18233 sed 's/^/| /' conftest.$ac_ext >&5
18238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18240 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18244 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18247 ac_cv_search_uuid_unparse_lower=no
18249 rm conftest.$ac_ext
18250 LIBS=$ac_func_search_save_LIBS
18252 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18253 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18254 ac_res=$ac_cv_search_uuid_unparse_lower
18255 if test "$ac_res" != no; then
18256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18264 if test $have_uuid = yes ; then
18266 cat >>confdefs.h <<\_ACEOF
18267 #define HAVE_UUID_GENERATE 1
18271 test "$ac_cv_search_uuid_generate" = "none required" || \
18272 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18277 if test $have_uuid = no ; then
18278 { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18279 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18281 LIBS="$LIBS -lrpcrt4"
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18289 int __stdcall UuidCreate(void *);
18290 int __stdcall UuidToStringA(void *,void **);
18297 UuidToStringA(0,0);
18303 rm -f conftest.$ac_objext conftest$ac_exeext
18304 if { (ac_try="$ac_link"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_link") 2>conftest.er1
18312 grep -v '^ *+' conftest.er1 >conftest.err
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18316 (exit $ac_status); } && {
18317 test -z "$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18319 } && test -s conftest$ac_exeext &&
18320 $as_test_x conftest$ac_exeext; then
18323 echo "$as_me: failed program was:" >&5
18324 sed 's/^/| /' conftest.$ac_ext >&5
18329 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18330 conftest$ac_exeext conftest.$ac_ext
18331 if test $need_rpcrt = yes; then
18332 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18335 { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18336 echo "${ECHO_T}$need_rpcrt" >&6; }
18339 ol_cv_lib_resolver=no
18340 if test $ol_cv_lib_resolver = no ; then
18341 { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18342 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18343 if test "${ol_cv_resolver_none+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18349 LIBS="$ol_RESOLVER_LIB $LIBS"
18351 cat >conftest.$ac_ext <<_ACEOF
18354 cat confdefs.h >>conftest.$ac_ext
18355 cat >>conftest.$ac_ext <<_ACEOF
18356 /* end confdefs.h. */
18358 #ifdef HAVE_SYS_TYPES_H
18359 # include <sys/types.h>
18361 #include <netinet/in.h>
18362 #ifdef HAVE_ARPA_NAMESER_H
18363 # include <arpa/nameser.h>
18365 #ifdef HAVE_RESOLV_H
18366 # include <resolv.h>
18374 char *request = NULL;
18375 unsigned char reply[64*1024];
18376 unsigned char host[64*1024];
18380 /* Bind 8/9 interface */
18381 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18383 /* Bind 4 interface */
18387 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18391 /* Bind 8/9 interface */
18393 #elif defined(HFIXEDSZ)
18394 /* Bind 4 interface w/ HFIXEDSZ */
18397 /* Bind 4 interface w/o HFIXEDSZ */
18398 p += sizeof(HEADER);
18400 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18406 rm -f conftest.$ac_objext conftest$ac_exeext
18407 if { (ac_try="$ac_link"
18408 case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18413 (eval "$ac_link") 2>conftest.er1
18415 grep -v '^ *+' conftest.er1 >conftest.err
18417 cat conftest.err >&5
18418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18419 (exit $ac_status); } && {
18420 test -z "$ac_c_werror_flag" ||
18421 test ! -s conftest.err
18422 } && test -s conftest$ac_exeext &&
18423 $as_test_x conftest$ac_exeext; then
18424 ol_cv_resolver_none=yes
18426 echo "$as_me: failed program was:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ol_cv_resolver_none=no
18432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18433 conftest$ac_exeext conftest.$ac_ext
18438 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18439 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18441 if test $ol_cv_resolver_none = yes ; then
18442 ol_cv_lib_resolver=yes
18446 if test $ol_cv_lib_resolver = no ; then
18447 { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18448 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18449 if test "${ol_cv_resolver_resolv+set}" = set; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 ol_RESOLVER_LIB=-lresolv
18455 LIBS="$ol_RESOLVER_LIB $LIBS"
18457 cat >conftest.$ac_ext <<_ACEOF
18460 cat confdefs.h >>conftest.$ac_ext
18461 cat >>conftest.$ac_ext <<_ACEOF
18462 /* end confdefs.h. */
18464 #ifdef HAVE_SYS_TYPES_H
18465 # include <sys/types.h>
18467 #include <netinet/in.h>
18468 #ifdef HAVE_ARPA_NAMESER_H
18469 # include <arpa/nameser.h>
18471 #ifdef HAVE_RESOLV_H
18472 # include <resolv.h>
18480 char *request = NULL;
18481 unsigned char reply[64*1024];
18482 unsigned char host[64*1024];
18486 /* Bind 8/9 interface */
18487 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18489 /* Bind 4 interface */
18493 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18497 /* Bind 8/9 interface */
18499 #elif defined(HFIXEDSZ)
18500 /* Bind 4 interface w/ HFIXEDSZ */
18503 /* Bind 4 interface w/o HFIXEDSZ */
18504 p += sizeof(HEADER);
18506 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18512 rm -f conftest.$ac_objext conftest$ac_exeext
18513 if { (ac_try="$ac_link"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_link") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest$ac_exeext &&
18529 $as_test_x conftest$ac_exeext; then
18530 ol_cv_resolver_resolv=yes
18532 echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18535 ol_cv_resolver_resolv=no
18538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18539 conftest$ac_exeext conftest.$ac_ext
18544 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18545 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18547 if test $ol_cv_resolver_resolv = yes ; then
18548 ol_cv_lib_resolver=-lresolv
18552 if test $ol_cv_lib_resolver = no ; then
18553 { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18554 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18555 if test "${ol_cv_resolver_bind+set}" = set; then
18556 echo $ECHO_N "(cached) $ECHO_C" >&6
18559 ol_RESOLVER_LIB=-lbind
18561 LIBS="$ol_RESOLVER_LIB $LIBS"
18563 cat >conftest.$ac_ext <<_ACEOF
18566 cat confdefs.h >>conftest.$ac_ext
18567 cat >>conftest.$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18570 #ifdef HAVE_SYS_TYPES_H
18571 # include <sys/types.h>
18573 #include <netinet/in.h>
18574 #ifdef HAVE_ARPA_NAMESER_H
18575 # include <arpa/nameser.h>
18577 #ifdef HAVE_RESOLV_H
18578 # include <resolv.h>
18586 char *request = NULL;
18587 unsigned char reply[64*1024];
18588 unsigned char host[64*1024];
18592 /* Bind 8/9 interface */
18593 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18595 /* Bind 4 interface */
18599 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18603 /* Bind 8/9 interface */
18605 #elif defined(HFIXEDSZ)
18606 /* Bind 4 interface w/ HFIXEDSZ */
18609 /* Bind 4 interface w/o HFIXEDSZ */
18610 p += sizeof(HEADER);
18612 status = dn_expand( reply, reply+len, p, host, sizeof(host));
18618 rm -f conftest.$ac_objext conftest$ac_exeext
18619 if { (ac_try="$ac_link"
18620 case "(($ac_try" in
18621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18622 *) ac_try_echo=$ac_try;;
18624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18625 (eval "$ac_link") 2>conftest.er1
18627 grep -v '^ *+' conftest.er1 >conftest.err
18629 cat conftest.err >&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest$ac_exeext &&
18635 $as_test_x conftest$ac_exeext; then
18636 ol_cv_resolver_bind=yes
18638 echo "$as_me: failed program was:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ol_cv_resolver_bind=no
18644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18645 conftest$ac_exeext conftest.$ac_ext
18650 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18651 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18653 if test $ol_cv_resolver_bind = yes ; then
18654 ol_cv_lib_resolver=-lbind
18661 if test "$ol_cv_lib_resolver" != no ; then
18663 cat >>confdefs.h <<\_ACEOF
18664 #define HAVE_RES_QUERY 1
18668 if test "$ol_enable_dnssrv" != no ; then
18672 if test "$ol_cv_lib_resolver" != yes ; then
18673 LIBS="$ol_cv_lib_resolver $LIBS"
18677 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18678 if test "$ol_link_dnssrv" = no ; then
18679 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18680 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18681 { (exit 1); exit 1; }; }
18684 ol_enable_dnssrv=no
18688 for ac_func in hstrerror
18690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18694 echo $ECHO_N "(cached) $ECHO_C" >&6
18696 cat >conftest.$ac_ext <<_ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18704 #define $ac_func innocuous_$ac_func
18706 /* System header to define __stub macros and hopefully few prototypes,
18707 which can conflict with char $ac_func (); below.
18708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18709 <limits.h> exists even on freestanding compilers. */
18712 # include <limits.h>
18714 # include <assert.h>
18719 /* Override any GCC internal prototype to avoid an error.
18720 Use char because int might match the return type of a GCC
18721 builtin and then its argument prototype would still apply. */
18726 /* The GNU C library defines this for functions which it implements
18727 to always fail with ENOSYS. Some functions are actually named
18728 something starting with __ and the normal name is an alias. */
18729 #if defined __stub_$ac_func || defined __stub___$ac_func
18736 return $ac_func ();
18741 rm -f conftest.$ac_objext conftest$ac_exeext
18742 if { (ac_try="$ac_link"
18743 case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_link") 2>conftest.er1
18750 grep -v '^ *+' conftest.er1 >conftest.err
18752 cat conftest.err >&5
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); } && {
18755 test -z "$ac_c_werror_flag" ||
18756 test ! -s conftest.err
18757 } && test -s conftest$ac_exeext &&
18758 $as_test_x conftest$ac_exeext; then
18759 eval "$as_ac_var=yes"
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 eval "$as_ac_var=no"
18767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18768 conftest$ac_exeext conftest.$ac_ext
18770 ac_res=`eval echo '${'$as_ac_var'}'`
18771 { echo "$as_me:$LINENO: result: $ac_res" >&5
18772 echo "${ECHO_T}$ac_res" >&6; }
18773 if test `eval echo '${'$as_ac_var'}'` = yes; then
18774 cat >>confdefs.h <<_ACEOF
18775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18786 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18802 #define $ac_func innocuous_$ac_func
18804 /* System header to define __stub macros and hopefully few prototypes,
18805 which can conflict with char $ac_func (); below.
18806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18807 <limits.h> exists even on freestanding compilers. */
18810 # include <limits.h>
18812 # include <assert.h>
18817 /* Override any GCC internal prototype to avoid an error.
18818 Use char because int might match the return type of a GCC
18819 builtin and then its argument prototype would still apply. */
18824 /* The GNU C library defines this for functions which it implements
18825 to always fail with ENOSYS. Some functions are actually named
18826 something starting with __ and the normal name is an alias. */
18827 #if defined __stub_$ac_func || defined __stub___$ac_func
18834 return $ac_func ();
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } && {
18853 test -z "$ac_c_werror_flag" ||
18854 test ! -s conftest.err
18855 } && test -s conftest$ac_exeext &&
18856 $as_test_x conftest$ac_exeext; then
18857 eval "$as_ac_var=yes"
18859 echo "$as_me: failed program was:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 eval "$as_ac_var=no"
18865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18866 conftest$ac_exeext conftest.$ac_ext
18868 ac_res=`eval echo '${'$as_ac_var'}'`
18869 { echo "$as_me:$LINENO: result: $ac_res" >&5
18870 echo "${ECHO_T}$ac_res" >&6; }
18871 if test `eval echo '${'$as_ac_var'}'` = yes; then
18872 cat >>confdefs.h <<_ACEOF
18873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18881 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18882 if test $ol_enable_ipv6 = yes ; then
18883 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18884 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18885 { (exit 1); exit 1; }; }
18887 elif test $ol_enable_ipv6 != no ; then
18888 { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18889 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18890 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18894 cat >conftest.$ac_ext <<_ACEOF
18897 cat confdefs.h >>conftest.$ac_ext
18898 cat >>conftest.$ac_ext <<_ACEOF
18899 /* end confdefs.h. */
18901 # include <netinet/in.h>
18902 # ifdef INET6_ADDRSTRLEN
18903 __has_inet6_addrstrlen__;
18907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18908 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18909 ol_cv_inet6_addrstrlen=yes
18911 ol_cv_inet6_addrstrlen=no
18916 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18917 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18920 { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18921 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18922 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18923 echo $ECHO_N "(cached) $ECHO_C" >&6
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18933 #include <sys/types.h>
18934 #include <sys/socket.h>
18940 struct sockaddr_storage ss;
18946 rm -f conftest.$ac_objext
18947 if { (ac_try="$ac_compile"
18948 case "(($ac_try" in
18949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950 *) ac_try_echo=$ac_try;;
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953 (eval "$ac_compile") 2>conftest.er1
18955 grep -v '^ *+' conftest.er1 >conftest.err
18957 cat conftest.err >&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } && {
18960 test -z "$ac_c_werror_flag" ||
18961 test ! -s conftest.err
18962 } && test -s conftest.$ac_objext; then
18963 ol_cv_struct_sockaddr_storage=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ol_cv_struct_sockaddr_storage=no
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
18974 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
18976 if test $ol_cv_inet6_addrstrlen = yes &&
18977 test $ol_cv_struct_sockaddr_storage = yes ; then
18979 elif test $ol_enable_ipv6 = yes &&
18980 test $ol_cv_inet6_addrstrlen = no ; then
18981 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
18982 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
18983 { (exit 1); exit 1; }; }
18984 elif test $ol_enable_ipv6 = yes &&
18985 test $ol_cv_struct_sockaddr_storage = no ; then
18986 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
18987 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
18988 { (exit 1); exit 1; }; }
18992 if test $ol_enable_local != no ; then
18994 for ac_header in sys/un.h
18996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18997 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 ac_res=`eval echo '${'$as_ac_Header'}'`
19004 { echo "$as_me:$LINENO: result: $ac_res" >&5
19005 echo "${ECHO_T}$ac_res" >&6; }
19007 # Is the header compilable?
19008 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19009 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19016 $ac_includes_default
19017 #include <$ac_header>
19019 rm -f conftest.$ac_objext
19020 if { (ac_try="$ac_compile"
19021 case "(($ac_try" in
19022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19023 *) ac_try_echo=$ac_try;;
19025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19026 (eval "$ac_compile") 2>conftest.er1
19028 grep -v '^ *+' conftest.er1 >conftest.err
19030 cat conftest.err >&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } && {
19033 test -z "$ac_c_werror_flag" ||
19034 test ! -s conftest.err
19035 } && test -s conftest.$ac_objext; then
19036 ac_header_compiler=yes
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19041 ac_header_compiler=no
19044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19046 echo "${ECHO_T}$ac_header_compiler" >&6; }
19048 # Is the header present?
19049 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19057 #include <$ac_header>
19059 if { (ac_try="$ac_cpp conftest.$ac_ext"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19067 grep -v '^ *+' conftest.er1 >conftest.err
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } >/dev/null && {
19072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19075 ac_header_preproc=yes
19077 echo "$as_me: failed program was:" >&5
19078 sed 's/^/| /' conftest.$ac_ext >&5
19080 ac_header_preproc=no
19083 rm -f conftest.err conftest.$ac_ext
19084 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19085 echo "${ECHO_T}$ac_header_preproc" >&6; }
19087 # So? What about this header?
19088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19094 ac_header_preproc=yes
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19110 ## --------------------------------------------- ##
19111 ## Report this to <http://www.openldap.org/its/> ##
19112 ## --------------------------------------------- ##
19114 ) | sed "s/^/$as_me: WARNING: /" >&2
19117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 eval "$as_ac_Header=\$ac_header_preproc"
19124 ac_res=`eval echo '${'$as_ac_Header'}'`
19125 { echo "$as_me:$LINENO: result: $ac_res" >&5
19126 echo "${ECHO_T}$ac_res" >&6; }
19129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19130 cat >>confdefs.h <<_ACEOF
19131 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19139 if test $ol_enable_local = auto ; then
19140 ol_enable_local=$ac_cv_header_sys_un_h
19141 elif test $ac_cv_header_sys_un_h = no ; then
19142 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19143 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19144 { (exit 1); exit 1; }; }
19149 if test $ol_with_tls = yes ; then
19154 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19156 for ac_header in openssl/ssl.h
19158 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19163 echo $ECHO_N "(cached) $ECHO_C" >&6
19165 ac_res=`eval echo '${'$as_ac_Header'}'`
19166 { echo "$as_me:$LINENO: result: $ac_res" >&5
19167 echo "${ECHO_T}$ac_res" >&6; }
19169 # Is the header compilable?
19170 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19171 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 $ac_includes_default
19179 #include <$ac_header>
19181 rm -f conftest.$ac_objext
19182 if { (ac_try="$ac_compile"
19183 case "(($ac_try" in
19184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19185 *) ac_try_echo=$ac_try;;
19187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19188 (eval "$ac_compile") 2>conftest.er1
19190 grep -v '^ *+' conftest.er1 >conftest.err
19192 cat conftest.err >&5
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && {
19195 test -z "$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 } && test -s conftest.$ac_objext; then
19198 ac_header_compiler=yes
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_header_compiler=no
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19208 echo "${ECHO_T}$ac_header_compiler" >&6; }
19210 # Is the header present?
19211 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19212 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <$ac_header>
19221 if { (ac_try="$ac_cpp conftest.$ac_ext"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } >/dev/null && {
19234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19237 ac_header_preproc=yes
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_header_preproc=no
19245 rm -f conftest.err conftest.$ac_ext
19246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19247 echo "${ECHO_T}$ac_header_preproc" >&6; }
19249 # So? What about this header?
19250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19256 ac_header_preproc=yes
19259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19272 ## --------------------------------------------- ##
19273 ## Report this to <http://www.openldap.org/its/> ##
19274 ## --------------------------------------------- ##
19276 ) | sed "s/^/$as_me: WARNING: /" >&2
19279 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19280 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19282 echo $ECHO_N "(cached) $ECHO_C" >&6
19284 eval "$as_ac_Header=\$ac_header_preproc"
19286 ac_res=`eval echo '${'$as_ac_Header'}'`
19287 { echo "$as_me:$LINENO: result: $ac_res" >&5
19288 echo "${ECHO_T}$ac_res" >&6; }
19291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19301 if test $ac_cv_header_openssl_ssl_h = yes ; then
19302 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19303 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19304 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 ac_check_lib_save_LIBS=$LIBS
19308 LIBS="-lssl -lcrypto $LIBS"
19309 cat >conftest.$ac_ext <<_ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19316 /* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19322 char SSL_library_init ();
19326 return SSL_library_init ();
19331 rm -f conftest.$ac_objext conftest$ac_exeext
19332 if { (ac_try="$ac_link"
19333 case "(($ac_try" in
19334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335 *) ac_try_echo=$ac_try;;
19337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19338 (eval "$ac_link") 2>conftest.er1
19340 grep -v '^ *+' conftest.er1 >conftest.err
19342 cat conftest.err >&5
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); } && {
19345 test -z "$ac_c_werror_flag" ||
19346 test ! -s conftest.err
19347 } && test -s conftest$ac_exeext &&
19348 $as_test_x conftest$ac_exeext; then
19349 ac_cv_lib_ssl_SSL_library_init=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.$ac_ext >&5
19354 ac_cv_lib_ssl_SSL_library_init=no
19357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19358 conftest$ac_exeext conftest.$ac_ext
19359 LIBS=$ac_check_lib_save_LIBS
19361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19362 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19363 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19371 if test $have_openssl = no ; then
19372 { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19373 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19374 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19375 echo $ECHO_N "(cached) $ECHO_C" >&6
19377 ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19386 /* Override any GCC internal prototype to avoid an error.
19387 Use char because int might match the return type of a GCC
19388 builtin and then its argument prototype would still apply. */
19392 char ssl3_accept ();
19396 return ssl3_accept ();
19401 rm -f conftest.$ac_objext conftest$ac_exeext
19402 if { (ac_try="$ac_link"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_link") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest$ac_exeext &&
19418 $as_test_x conftest$ac_exeext; then
19419 ac_cv_lib_ssl_ssl3_accept=yes
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19424 ac_cv_lib_ssl_ssl3_accept=no
19427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19428 conftest$ac_exeext conftest.$ac_ext
19429 LIBS=$ac_check_lib_save_LIBS
19431 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19432 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19433 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19442 if test $have_openssl = yes ; then
19443 ol_with_tls=openssl
19447 cat >>confdefs.h <<\_ACEOF
19448 #define HAVE_OPENSSL 1
19452 if test $need_rsaref = yes; then
19454 cat >>confdefs.h <<\_ACEOF
19455 #define HAVE_RSAREF 1
19459 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19461 TLS_LIBS="-lssl -lcrypto"
19464 { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19465 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19466 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 #ifdef HAVE_OPENSSL_SSL_H
19478 #include <openssl/ssl.h>
19481 /* Require 0.9.7d+ */
19482 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19483 char *__ssl_compat = "0.9.7d";
19487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19488 $EGREP "__ssl_compat" >/dev/null 2>&1; then
19489 ol_cv_ssl_crl_compat=yes
19491 ol_cv_ssl_crl_compat=no
19496 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19497 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19499 if test $ol_cv_ssl_crl_compat = yes ; then
19501 cat >>confdefs.h <<\_ACEOF
19502 #define HAVE_OPENSSL_CRL 1
19510 if test $ol_link_tls = no ; then
19511 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19513 for ac_header in gnutls/gnutls.h
19515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19520 echo $ECHO_N "(cached) $ECHO_C" >&6
19522 ac_res=`eval echo '${'$as_ac_Header'}'`
19523 { echo "$as_me:$LINENO: result: $ac_res" >&5
19524 echo "${ECHO_T}$ac_res" >&6; }
19526 # Is the header compilable?
19527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19529 cat >conftest.$ac_ext <<_ACEOF
19532 cat confdefs.h >>conftest.$ac_ext
19533 cat >>conftest.$ac_ext <<_ACEOF
19534 /* end confdefs.h. */
19535 $ac_includes_default
19536 #include <$ac_header>
19538 rm -f conftest.$ac_objext
19539 if { (ac_try="$ac_compile"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_compile") 2>conftest.er1
19547 grep -v '^ *+' conftest.er1 >conftest.err
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest.$ac_objext; then
19555 ac_header_compiler=yes
19557 echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19560 ac_header_compiler=no
19563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19565 echo "${ECHO_T}$ac_header_compiler" >&6; }
19567 # Is the header present?
19568 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 #include <$ac_header>
19578 if { (ac_try="$ac_cpp conftest.$ac_ext"
19579 case "(($ac_try" in
19580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } >/dev/null && {
19591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19592 test ! -s conftest.err
19594 ac_header_preproc=yes
19596 echo "$as_me: failed program was:" >&5
19597 sed 's/^/| /' conftest.$ac_ext >&5
19599 ac_header_preproc=no
19602 rm -f conftest.err conftest.$ac_ext
19603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19604 echo "${ECHO_T}$ac_header_preproc" >&6; }
19606 # So? What about this header?
19607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19609 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19613 ac_header_preproc=yes
19616 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19618 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19619 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19620 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19623 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19629 ## --------------------------------------------- ##
19630 ## Report this to <http://www.openldap.org/its/> ##
19631 ## --------------------------------------------- ##
19633 ) | sed "s/^/$as_me: WARNING: /" >&2
19636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19639 echo $ECHO_N "(cached) $ECHO_C" >&6
19641 eval "$as_ac_Header=\$ac_header_preproc"
19643 ac_res=`eval echo '${'$as_ac_Header'}'`
19644 { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 echo "${ECHO_T}$ac_res" >&6; }
19648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19658 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19659 { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19660 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19662 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_check_lib_save_LIBS=$LIBS
19665 LIBS="-lgnutls $LIBS"
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19673 /* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19679 char gnutls_init ();
19683 return gnutls_init ();
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_link") 2>conftest.er1
19697 grep -v '^ *+' conftest.er1 >conftest.err
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } && {
19702 test -z "$ac_c_werror_flag" ||
19703 test ! -s conftest.err
19704 } && test -s conftest$ac_exeext &&
19705 $as_test_x conftest$ac_exeext; then
19706 ac_cv_lib_gnutls_gnutls_init=yes
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19711 ac_cv_lib_gnutls_gnutls_init=no
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715 conftest$ac_exeext conftest.$ac_ext
19716 LIBS=$ac_check_lib_save_LIBS
19718 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19719 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19720 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19727 if test $have_gnutls = yes ; then
19731 TLS_LIBS="-lgnutls"
19734 cat >>confdefs.h <<\_ACEOF
19735 #define HAVE_GNUTLS 1
19743 if test $ol_link_tls = no ; then
19744 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19747 for ac_header in nssutil.h
19749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19754 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 ac_res=`eval echo '${'$as_ac_Header'}'`
19757 { echo "$as_me:$LINENO: result: $ac_res" >&5
19758 echo "${ECHO_T}$ac_res" >&6; }
19760 # Is the header compilable?
19761 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19762 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 $ac_includes_default
19770 #include <$ac_header>
19772 rm -f conftest.$ac_objext
19773 if { (ac_try="$ac_compile"
19774 case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_compile") 2>conftest.er1
19781 grep -v '^ *+' conftest.er1 >conftest.err
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } && {
19786 test -z "$ac_c_werror_flag" ||
19787 test ! -s conftest.err
19788 } && test -s conftest.$ac_objext; then
19789 ac_header_compiler=yes
19791 echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 ac_header_compiler=no
19797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19799 echo "${ECHO_T}$ac_header_compiler" >&6; }
19801 # Is the header present?
19802 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19803 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810 #include <$ac_header>
19812 if { (ac_try="$ac_cpp conftest.$ac_ext"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19820 grep -v '^ *+' conftest.er1 >conftest.err
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } >/dev/null && {
19825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19828 ac_header_preproc=yes
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_header_preproc=no
19836 rm -f conftest.err conftest.$ac_ext
19837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19838 echo "${ECHO_T}$ac_header_preproc" >&6; }
19840 # So? What about this header?
19841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19843 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19844 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19846 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19847 ac_header_preproc=yes
19850 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19851 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19853 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19855 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19857 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19859 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19861 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19863 ## --------------------------------------------- ##
19864 ## Report this to <http://www.openldap.org/its/> ##
19865 ## --------------------------------------------- ##
19867 ) | sed "s/^/$as_me: WARNING: /" >&2
19870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 eval "$as_ac_Header=\$ac_header_preproc"
19877 ac_res=`eval echo '${'$as_ac_Header'}'`
19878 { echo "$as_me:$LINENO: result: $ac_res" >&5
19879 echo "${ECHO_T}$ac_res" >&6; }
19882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19883 cat >>confdefs.h <<_ACEOF
19884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19891 if test "$ac_cv_header_nssutil_h" = yes ; then
19892 { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
19893 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
19894 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lnss3 $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19906 /* Override any GCC internal prototype to avoid an error.
19907 Use char because int might match the return type of a GCC
19908 builtin and then its argument prototype would still apply. */
19912 char NSS_Initialize ();
19916 return NSS_Initialize ();
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 ac_cv_lib_nss3_NSS_Initialize=yes
19941 echo "$as_me: failed program was:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 ac_cv_lib_nss3_NSS_Initialize=no
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19951 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
19952 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
19953 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
19961 if test "$have_moznss" = yes ; then
19965 cat >>confdefs.h <<\_ACEOF
19966 #define HAVE_MOZNSS 1
19969 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
19971 { { 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
19972 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;}
19973 { (exit 1); exit 1; }; }
19979 if test $ol_link_tls = yes ; then
19981 cat >>confdefs.h <<\_ACEOF
19986 elif test $ol_with_tls = auto ; then
19987 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19988 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19989 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19990 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19991 elif test $ol_with_tls != no ; then
19992 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19993 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19994 { (exit 1); exit 1; }; }
19996 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19997 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20000 if test $ol_enable_lmpasswd != no; then
20001 if test $ol_link_tls != yes ; then
20002 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20003 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20004 { (exit 1); exit 1; }; }
20008 cat >>confdefs.h <<\_ACEOF
20009 #define SLAPD_LMHASH 1
20016 case $ol_with_threads in auto | yes | nt)
20019 { echo "$as_me:$LINENO: checking for _beginthread" >&5
20020 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20021 if test "${ac_cv_func__beginthread+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20032 #define _beginthread innocuous__beginthread
20034 /* System header to define __stub macros and hopefully few prototypes,
20035 which can conflict with char _beginthread (); below.
20036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20037 <limits.h> exists even on freestanding compilers. */
20040 # include <limits.h>
20042 # include <assert.h>
20045 #undef _beginthread
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20053 char _beginthread ();
20054 /* The GNU C library defines this for functions which it implements
20055 to always fail with ENOSYS. Some functions are actually named
20056 something starting with __ and the normal name is an alias. */
20057 #if defined __stub__beginthread || defined __stub____beginthread
20064 return _beginthread ();
20069 rm -f conftest.$ac_objext conftest$ac_exeext
20070 if { (ac_try="$ac_link"
20071 case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_link") 2>conftest.er1
20078 grep -v '^ *+' conftest.er1 >conftest.err
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); } && {
20083 test -z "$ac_c_werror_flag" ||
20084 test ! -s conftest.err
20085 } && test -s conftest$ac_exeext &&
20086 $as_test_x conftest$ac_exeext; then
20087 ac_cv_func__beginthread=yes
20089 echo "$as_me: failed program was:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_func__beginthread=no
20095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096 conftest$ac_exeext conftest.$ac_ext
20098 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20099 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20102 if test $ac_cv_func__beginthread = yes ; then
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_NT_THREADS 1
20108 ol_cv_nt_threads=yes
20112 if test "$ol_cv_nt_threads" = yes ; then
20114 ol_with_threads=found
20115 ol_with_yielding_select=yes
20118 cat >>confdefs.h <<\_ACEOF
20119 #define HAVE_NT_SERVICE_MANAGER 1
20123 cat >>confdefs.h <<\_ACEOF
20124 #define HAVE_NT_EVENT_LOG 1
20129 if test $ol_with_threads = nt ; then
20130 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20131 echo "$as_me: error: could not locate NT Threads" >&2;}
20132 { (exit 1); exit 1; }; }
20137 case $ol_with_threads in auto | yes | posix)
20140 for ac_header in pthread.h
20142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20147 echo $ECHO_N "(cached) $ECHO_C" >&6
20149 ac_res=`eval echo '${'$as_ac_Header'}'`
20150 { echo "$as_me:$LINENO: result: $ac_res" >&5
20151 echo "${ECHO_T}$ac_res" >&6; }
20153 # Is the header compilable?
20154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20162 $ac_includes_default
20163 #include <$ac_header>
20165 rm -f conftest.$ac_objext
20166 if { (ac_try="$ac_compile"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_compile") 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } && {
20179 test -z "$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 } && test -s conftest.$ac_objext; then
20182 ac_header_compiler=yes
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20187 ac_header_compiler=no
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20192 echo "${ECHO_T}$ac_header_compiler" >&6; }
20194 # Is the header present?
20195 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 #include <$ac_header>
20205 if { (ac_try="$ac_cpp conftest.$ac_ext"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } >/dev/null && {
20218 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20221 ac_header_preproc=yes
20223 echo "$as_me: failed program was:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 ac_header_preproc=no
20229 rm -f conftest.err conftest.$ac_ext
20230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20231 echo "${ECHO_T}$ac_header_preproc" >&6; }
20233 # So? What about this header?
20234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20240 ac_header_preproc=yes
20243 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20246 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20250 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20256 ## --------------------------------------------- ##
20257 ## Report this to <http://www.openldap.org/its/> ##
20258 ## --------------------------------------------- ##
20260 ) | sed "s/^/$as_me: WARNING: /" >&2
20263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20268 eval "$as_ac_Header=\$ac_header_preproc"
20270 ac_res=`eval echo '${'$as_ac_Header'}'`
20271 { echo "$as_me:$LINENO: result: $ac_res" >&5
20272 echo "${ECHO_T}$ac_res" >&6; }
20275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20276 cat >>confdefs.h <<_ACEOF
20277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20285 if test $ac_cv_header_pthread_h = yes ; then
20286 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20287 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20288 if test "${ol_cv_pthread_version+set}" = set; then
20289 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 cat >conftest.$ac_ext <<_ACEOF
20295 cat confdefs.h >>conftest.$ac_ext
20296 cat >>conftest.$ac_ext <<_ACEOF
20297 /* end confdefs.h. */
20299 # include <pthread.h>
20305 int i = PTHREAD_CREATE_JOINABLE;
20311 rm -f conftest.$ac_objext
20312 if { (ac_try="$ac_compile"
20313 case "(($ac_try" in
20314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20315 *) ac_try_echo=$ac_try;;
20317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20318 (eval "$ac_compile") 2>conftest.er1
20320 grep -v '^ *+' conftest.er1 >conftest.err
20322 cat conftest.err >&5
20323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324 (exit $ac_status); } && {
20325 test -z "$ac_c_werror_flag" ||
20326 test ! -s conftest.err
20327 } && test -s conftest.$ac_objext; then
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 #include <pthread.h>
20338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20339 $EGREP "pthread_detach" >/dev/null 2>&1; then
20340 ol_cv_pthread_version=10
20342 ol_cv_pthread_version=8
20347 echo "$as_me: failed program was:" >&5
20348 sed 's/^/| /' conftest.$ac_ext >&5
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20358 # include <pthread.h>
20359 # ifdef PTHREAD_CREATE_UNDETACHED
20364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20365 $EGREP "draft7" >/dev/null 2>&1; then
20366 ol_cv_pthread_version=7
20369 cat >conftest.$ac_ext <<_ACEOF
20372 cat confdefs.h >>conftest.$ac_ext
20373 cat >>conftest.$ac_ext <<_ACEOF
20374 /* end confdefs.h. */
20375 #include <pthread.h>
20378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20379 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20380 ol_cv_pthread_version=6
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20390 # include <pthread.h>
20391 #ifdef PTHREAD_MUTEX_INITIALIZER
20396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20397 $EGREP "draft5" >/dev/null 2>&1; then
20398 ol_cv_pthread_version=5
20400 ol_cv_pthread_version=4
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20415 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20416 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20419 if test $ol_cv_pthread_version != 0 ; then
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_PTHREADS $ol_cv_pthread_version
20426 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20427 echo "$as_me: error: unknown pthread version" >&2;}
20428 { (exit 1); exit 1; }; }
20431 # consider threads found
20432 ol_with_threads=found
20435 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20436 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20437 if test "${ol_cv_header_linux_threads+set}" = set; then
20438 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <pthread.h>
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20450 ol_cv_header_linux_threads=yes
20452 ol_cv_header_linux_threads=no
20458 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20459 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20460 if test $ol_cv_header_linux_threads = yes; then
20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_LINUX_THREADS 1
20469 { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20470 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20471 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20477 cat confdefs.h >>conftest.$ac_ext
20478 cat >>conftest.$ac_ext <<_ACEOF
20479 /* end confdefs.h. */
20480 #include <pthread.h>
20481 #ifdef _POSIX_THREAD_IS_GNU_PTH
20486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20487 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20488 ol_cv_header_gnu_pth_pthread_h=yes
20490 ol_cv_header_gnu_pth_pthread_h=no
20496 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20497 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20500 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20502 for ac_header in sched.h
20504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 ac_res=`eval echo '${'$as_ac_Header'}'`
20512 { echo "$as_me:$LINENO: result: $ac_res" >&5
20513 echo "${ECHO_T}$ac_res" >&6; }
20515 # Is the header compilable?
20516 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20517 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20518 cat >conftest.$ac_ext <<_ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524 $ac_includes_default
20525 #include <$ac_header>
20527 rm -f conftest.$ac_objext
20528 if { (ac_try="$ac_compile"
20529 case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1 >conftest.err
20538 cat conftest.err >&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } && {
20541 test -z "$ac_c_werror_flag" ||
20542 test ! -s conftest.err
20543 } && test -s conftest.$ac_objext; then
20544 ac_header_compiler=yes
20546 echo "$as_me: failed program was:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_header_compiler=no
20552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20553 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20554 echo "${ECHO_T}$ac_header_compiler" >&6; }
20556 # Is the header present?
20557 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 #include <$ac_header>
20567 if { (ac_try="$ac_cpp conftest.$ac_ext"
20568 case "(($ac_try" in
20569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20570 *) ac_try_echo=$ac_try;;
20572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20575 grep -v '^ *+' conftest.er1 >conftest.err
20577 cat conftest.err >&5
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); } >/dev/null && {
20580 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20581 test ! -s conftest.err
20583 ac_header_preproc=yes
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_header_preproc=no
20591 rm -f conftest.err conftest.$ac_ext
20592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20593 echo "${ECHO_T}$ac_header_preproc" >&6; }
20595 # So? What about this header?
20596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20602 ac_header_preproc=yes
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20618 ## --------------------------------------------- ##
20619 ## Report this to <http://www.openldap.org/its/> ##
20620 ## --------------------------------------------- ##
20622 ) | sed "s/^/$as_me: WARNING: /" >&2
20625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 eval "$as_ac_Header=\$ac_header_preproc"
20632 ac_res=`eval echo '${'$as_ac_Header'}'`
20633 { echo "$as_me:$LINENO: result: $ac_res" >&5
20634 echo "${ECHO_T}$ac_res" >&6; }
20637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20638 cat >>confdefs.h <<_ACEOF
20639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20649 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20650 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20651 if test "${ol_cv_pthread_create+set}" = set; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 if test "$cross_compiling" = yes; then
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 /* pthread test headers */
20664 #include <pthread.h>
20665 #if HAVE_PTHREADS < 7
20669 #define NULL (void*)0
20672 static void *task(p)
20675 return (void *) (p == NULL);
20682 /* pthread test function */
20683 #ifndef PTHREAD_CREATE_DETACHED
20684 #define PTHREAD_CREATE_DETACHED 1
20688 int detach = PTHREAD_CREATE_DETACHED;
20690 #if HAVE_PTHREADS > 4
20691 /* Final pthreads */
20692 pthread_attr_t attr;
20694 status = pthread_attr_init(&attr);
20695 if( status ) return status;
20697 #if HAVE_PTHREADS < 7
20698 status = pthread_attr_setdetachstate(&attr, &detach);
20699 if( status < 0 ) status = errno;
20701 status = pthread_attr_setdetachstate(&attr, detach);
20703 if( status ) return status;
20704 status = pthread_create( &t, &attr, task, NULL );
20705 #if HAVE_PTHREADS < 7
20706 if( status < 0 ) status = errno;
20708 if( status ) return status;
20710 /* Draft 4 pthreads */
20711 status = pthread_create( &t, pthread_attr_default, task, NULL );
20712 if( status ) return errno;
20714 /* give thread a chance to complete */
20715 /* it should remain joinable and hence detachable */
20718 status = pthread_detach( &t );
20719 if( status ) return errno;
20722 #ifdef HAVE_LINUX_THREADS
20723 pthread_kill_other_threads_np();
20732 rm -f conftest.$ac_objext conftest$ac_exeext
20733 if { (ac_try="$ac_link"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_link") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext &&
20749 $as_test_x conftest$ac_exeext; then
20750 ol_cv_pthread_create=yes
20752 echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ol_cv_pthread_create=no
20758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20759 conftest$ac_exeext conftest.$ac_ext
20761 cat >conftest.$ac_ext <<_ACEOF
20764 cat confdefs.h >>conftest.$ac_ext
20765 cat >>conftest.$ac_ext <<_ACEOF
20766 /* end confdefs.h. */
20768 /* pthread test headers */
20769 #include <pthread.h>
20770 #if HAVE_PTHREADS < 7
20774 #define NULL (void*)0
20777 static void *task(p)
20780 return (void *) (p == NULL);
20784 int main(argc, argv)
20789 /* pthread test function */
20790 #ifndef PTHREAD_CREATE_DETACHED
20791 #define PTHREAD_CREATE_DETACHED 1
20795 int detach = PTHREAD_CREATE_DETACHED;
20797 #if HAVE_PTHREADS > 4
20798 /* Final pthreads */
20799 pthread_attr_t attr;
20801 status = pthread_attr_init(&attr);
20802 if( status ) return status;
20804 #if HAVE_PTHREADS < 7
20805 status = pthread_attr_setdetachstate(&attr, &detach);
20806 if( status < 0 ) status = errno;
20808 status = pthread_attr_setdetachstate(&attr, detach);
20810 if( status ) return status;
20811 status = pthread_create( &t, &attr, task, NULL );
20812 #if HAVE_PTHREADS < 7
20813 if( status < 0 ) status = errno;
20815 if( status ) return status;
20817 /* Draft 4 pthreads */
20818 status = pthread_create( &t, pthread_attr_default, task, NULL );
20819 if( status ) return errno;
20821 /* give thread a chance to complete */
20822 /* it should remain joinable and hence detachable */
20825 status = pthread_detach( &t );
20826 if( status ) return errno;
20829 #ifdef HAVE_LINUX_THREADS
20830 pthread_kill_other_threads_np();
20838 rm -f conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_link") 2>&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20849 { (case "(($ac_try" in
20850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20851 *) ac_try_echo=$ac_try;;
20853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20854 (eval "$ac_try") 2>&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ol_cv_pthread_create=yes
20860 echo "$as_me: program exited with status $ac_status" >&5
20861 echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20864 ( exit $ac_status )
20865 ol_cv_pthread_create=no
20867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20873 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20875 if test $ol_cv_pthread_create != no ; then
20876 ol_link_threads=posix
20877 ol_link_pthreads=""
20880 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20881 if test "$ol_link_threads" = no ; then
20883 { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20884 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20885 if test "${ol_cv_pthread_kthread+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20891 LIBS="-kthread $LIBS"
20893 if test "$cross_compiling" = yes; then
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 /* pthread test headers */
20902 #include <pthread.h>
20903 #if HAVE_PTHREADS < 7
20907 #define NULL (void*)0
20910 static void *task(p)
20913 return (void *) (p == NULL);
20920 /* pthread test function */
20921 #ifndef PTHREAD_CREATE_DETACHED
20922 #define PTHREAD_CREATE_DETACHED 1
20926 int detach = PTHREAD_CREATE_DETACHED;
20928 #if HAVE_PTHREADS > 4
20929 /* Final pthreads */
20930 pthread_attr_t attr;
20932 status = pthread_attr_init(&attr);
20933 if( status ) return status;
20935 #if HAVE_PTHREADS < 7
20936 status = pthread_attr_setdetachstate(&attr, &detach);
20937 if( status < 0 ) status = errno;
20939 status = pthread_attr_setdetachstate(&attr, detach);
20941 if( status ) return status;
20942 status = pthread_create( &t, &attr, task, NULL );
20943 #if HAVE_PTHREADS < 7
20944 if( status < 0 ) status = errno;
20946 if( status ) return status;
20948 /* Draft 4 pthreads */
20949 status = pthread_create( &t, pthread_attr_default, task, NULL );
20950 if( status ) return errno;
20952 /* give thread a chance to complete */
20953 /* it should remain joinable and hence detachable */
20956 status = pthread_detach( &t );
20957 if( status ) return errno;
20960 #ifdef HAVE_LINUX_THREADS
20961 pthread_kill_other_threads_np();
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_link") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } && {
20984 test -z "$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20986 } && test -s conftest$ac_exeext &&
20987 $as_test_x conftest$ac_exeext; then
20988 ol_cv_pthread_kthread=yes
20990 echo "$as_me: failed program was:" >&5
20991 sed 's/^/| /' conftest.$ac_ext >&5
20993 ol_cv_pthread_kthread=no
20996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20997 conftest$ac_exeext conftest.$ac_ext
20999 cat >conftest.$ac_ext <<_ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21006 /* pthread test headers */
21007 #include <pthread.h>
21008 #if HAVE_PTHREADS < 7
21012 #define NULL (void*)0
21015 static void *task(p)
21018 return (void *) (p == NULL);
21022 int main(argc, argv)
21027 /* pthread test function */
21028 #ifndef PTHREAD_CREATE_DETACHED
21029 #define PTHREAD_CREATE_DETACHED 1
21033 int detach = PTHREAD_CREATE_DETACHED;
21035 #if HAVE_PTHREADS > 4
21036 /* Final pthreads */
21037 pthread_attr_t attr;
21039 status = pthread_attr_init(&attr);
21040 if( status ) return status;
21042 #if HAVE_PTHREADS < 7
21043 status = pthread_attr_setdetachstate(&attr, &detach);
21044 if( status < 0 ) status = errno;
21046 status = pthread_attr_setdetachstate(&attr, detach);
21048 if( status ) return status;
21049 status = pthread_create( &t, &attr, task, NULL );
21050 #if HAVE_PTHREADS < 7
21051 if( status < 0 ) status = errno;
21053 if( status ) return status;
21055 /* Draft 4 pthreads */
21056 status = pthread_create( &t, pthread_attr_default, task, NULL );
21057 if( status ) return errno;
21059 /* give thread a chance to complete */
21060 /* it should remain joinable and hence detachable */
21063 status = pthread_detach( &t );
21064 if( status ) return errno;
21067 #ifdef HAVE_LINUX_THREADS
21068 pthread_kill_other_threads_np();
21076 rm -f conftest$ac_exeext
21077 if { (ac_try="$ac_link"
21078 case "(($ac_try" in
21079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21080 *) ac_try_echo=$ac_try;;
21082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21083 (eval "$ac_link") 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21087 { (case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_try") 2>&5
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ol_cv_pthread_kthread=yes
21098 echo "$as_me: program exited with status $ac_status" >&5
21099 echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ( exit $ac_status )
21103 ol_cv_pthread_kthread=no
21105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21114 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21115 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21117 if test $ol_cv_pthread_kthread = yes ; then
21118 ol_link_pthreads="-kthread"
21119 ol_link_threads=posix
21123 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21124 if test "$ol_link_threads" = no ; then
21126 { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21127 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21128 if test "${ol_cv_pthread_pthread+set}" = set; then
21129 echo $ECHO_N "(cached) $ECHO_C" >&6
21134 LIBS="-pthread $LIBS"
21136 if test "$cross_compiling" = yes; then
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21144 /* pthread test headers */
21145 #include <pthread.h>
21146 #if HAVE_PTHREADS < 7
21150 #define NULL (void*)0
21153 static void *task(p)
21156 return (void *) (p == NULL);
21163 /* pthread test function */
21164 #ifndef PTHREAD_CREATE_DETACHED
21165 #define PTHREAD_CREATE_DETACHED 1
21169 int detach = PTHREAD_CREATE_DETACHED;
21171 #if HAVE_PTHREADS > 4
21172 /* Final pthreads */
21173 pthread_attr_t attr;
21175 status = pthread_attr_init(&attr);
21176 if( status ) return status;
21178 #if HAVE_PTHREADS < 7
21179 status = pthread_attr_setdetachstate(&attr, &detach);
21180 if( status < 0 ) status = errno;
21182 status = pthread_attr_setdetachstate(&attr, detach);
21184 if( status ) return status;
21185 status = pthread_create( &t, &attr, task, NULL );
21186 #if HAVE_PTHREADS < 7
21187 if( status < 0 ) status = errno;
21189 if( status ) return status;
21191 /* Draft 4 pthreads */
21192 status = pthread_create( &t, pthread_attr_default, task, NULL );
21193 if( status ) return errno;
21195 /* give thread a chance to complete */
21196 /* it should remain joinable and hence detachable */
21199 status = pthread_detach( &t );
21200 if( status ) return errno;
21203 #ifdef HAVE_LINUX_THREADS
21204 pthread_kill_other_threads_np();
21213 rm -f conftest.$ac_objext conftest$ac_exeext
21214 if { (ac_try="$ac_link"
21215 case "(($ac_try" in
21216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217 *) ac_try_echo=$ac_try;;
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220 (eval "$ac_link") 2>conftest.er1
21222 grep -v '^ *+' conftest.er1 >conftest.err
21224 cat conftest.err >&5
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); } && {
21227 test -z "$ac_c_werror_flag" ||
21228 test ! -s conftest.err
21229 } && test -s conftest$ac_exeext &&
21230 $as_test_x conftest$ac_exeext; then
21231 ol_cv_pthread_pthread=yes
21233 echo "$as_me: failed program was:" >&5
21234 sed 's/^/| /' conftest.$ac_ext >&5
21236 ol_cv_pthread_pthread=no
21239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21240 conftest$ac_exeext conftest.$ac_ext
21242 cat >conftest.$ac_ext <<_ACEOF
21245 cat confdefs.h >>conftest.$ac_ext
21246 cat >>conftest.$ac_ext <<_ACEOF
21247 /* end confdefs.h. */
21249 /* pthread test headers */
21250 #include <pthread.h>
21251 #if HAVE_PTHREADS < 7
21255 #define NULL (void*)0
21258 static void *task(p)
21261 return (void *) (p == NULL);
21265 int main(argc, argv)
21270 /* pthread test function */
21271 #ifndef PTHREAD_CREATE_DETACHED
21272 #define PTHREAD_CREATE_DETACHED 1
21276 int detach = PTHREAD_CREATE_DETACHED;
21278 #if HAVE_PTHREADS > 4
21279 /* Final pthreads */
21280 pthread_attr_t attr;
21282 status = pthread_attr_init(&attr);
21283 if( status ) return status;
21285 #if HAVE_PTHREADS < 7
21286 status = pthread_attr_setdetachstate(&attr, &detach);
21287 if( status < 0 ) status = errno;
21289 status = pthread_attr_setdetachstate(&attr, detach);
21291 if( status ) return status;
21292 status = pthread_create( &t, &attr, task, NULL );
21293 #if HAVE_PTHREADS < 7
21294 if( status < 0 ) status = errno;
21296 if( status ) return status;
21298 /* Draft 4 pthreads */
21299 status = pthread_create( &t, pthread_attr_default, task, NULL );
21300 if( status ) return errno;
21302 /* give thread a chance to complete */
21303 /* it should remain joinable and hence detachable */
21306 status = pthread_detach( &t );
21307 if( status ) return errno;
21310 #ifdef HAVE_LINUX_THREADS
21311 pthread_kill_other_threads_np();
21319 rm -f conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_link") 2>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21330 { (case "(($ac_try" in
21331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21332 *) ac_try_echo=$ac_try;;
21334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21335 (eval "$ac_try") 2>&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; }; then
21339 ol_cv_pthread_pthread=yes
21341 echo "$as_me: program exited with status $ac_status" >&5
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21345 ( exit $ac_status )
21346 ol_cv_pthread_pthread=no
21348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21358 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21360 if test $ol_cv_pthread_pthread = yes ; then
21361 ol_link_pthreads="-pthread"
21362 ol_link_threads=posix
21366 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21367 if test "$ol_link_threads" = no ; then
21369 { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21370 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21371 if test "${ol_cv_pthread_pthreads+set}" = set; then
21372 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 LIBS="-pthreads $LIBS"
21379 if test "$cross_compiling" = yes; then
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21387 /* pthread test headers */
21388 #include <pthread.h>
21389 #if HAVE_PTHREADS < 7
21393 #define NULL (void*)0
21396 static void *task(p)
21399 return (void *) (p == NULL);
21406 /* pthread test function */
21407 #ifndef PTHREAD_CREATE_DETACHED
21408 #define PTHREAD_CREATE_DETACHED 1
21412 int detach = PTHREAD_CREATE_DETACHED;
21414 #if HAVE_PTHREADS > 4
21415 /* Final pthreads */
21416 pthread_attr_t attr;
21418 status = pthread_attr_init(&attr);
21419 if( status ) return status;
21421 #if HAVE_PTHREADS < 7
21422 status = pthread_attr_setdetachstate(&attr, &detach);
21423 if( status < 0 ) status = errno;
21425 status = pthread_attr_setdetachstate(&attr, detach);
21427 if( status ) return status;
21428 status = pthread_create( &t, &attr, task, NULL );
21429 #if HAVE_PTHREADS < 7
21430 if( status < 0 ) status = errno;
21432 if( status ) return status;
21434 /* Draft 4 pthreads */
21435 status = pthread_create( &t, pthread_attr_default, task, NULL );
21436 if( status ) return errno;
21438 /* give thread a chance to complete */
21439 /* it should remain joinable and hence detachable */
21442 status = pthread_detach( &t );
21443 if( status ) return errno;
21446 #ifdef HAVE_LINUX_THREADS
21447 pthread_kill_other_threads_np();
21456 rm -f conftest.$ac_objext conftest$ac_exeext
21457 if { (ac_try="$ac_link"
21458 case "(($ac_try" in
21459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460 *) ac_try_echo=$ac_try;;
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463 (eval "$ac_link") 2>conftest.er1
21465 grep -v '^ *+' conftest.er1 >conftest.err
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } && {
21470 test -z "$ac_c_werror_flag" ||
21471 test ! -s conftest.err
21472 } && test -s conftest$ac_exeext &&
21473 $as_test_x conftest$ac_exeext; then
21474 ol_cv_pthread_pthreads=yes
21476 echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 ol_cv_pthread_pthreads=no
21482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21483 conftest$ac_exeext conftest.$ac_ext
21485 cat >conftest.$ac_ext <<_ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h. */
21492 /* pthread test headers */
21493 #include <pthread.h>
21494 #if HAVE_PTHREADS < 7
21498 #define NULL (void*)0
21501 static void *task(p)
21504 return (void *) (p == NULL);
21508 int main(argc, argv)
21513 /* pthread test function */
21514 #ifndef PTHREAD_CREATE_DETACHED
21515 #define PTHREAD_CREATE_DETACHED 1
21519 int detach = PTHREAD_CREATE_DETACHED;
21521 #if HAVE_PTHREADS > 4
21522 /* Final pthreads */
21523 pthread_attr_t attr;
21525 status = pthread_attr_init(&attr);
21526 if( status ) return status;
21528 #if HAVE_PTHREADS < 7
21529 status = pthread_attr_setdetachstate(&attr, &detach);
21530 if( status < 0 ) status = errno;
21532 status = pthread_attr_setdetachstate(&attr, detach);
21534 if( status ) return status;
21535 status = pthread_create( &t, &attr, task, NULL );
21536 #if HAVE_PTHREADS < 7
21537 if( status < 0 ) status = errno;
21539 if( status ) return status;
21541 /* Draft 4 pthreads */
21542 status = pthread_create( &t, pthread_attr_default, task, NULL );
21543 if( status ) return errno;
21545 /* give thread a chance to complete */
21546 /* it should remain joinable and hence detachable */
21549 status = pthread_detach( &t );
21550 if( status ) return errno;
21553 #ifdef HAVE_LINUX_THREADS
21554 pthread_kill_other_threads_np();
21562 rm -f conftest$ac_exeext
21563 if { (ac_try="$ac_link"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_link") 2>&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21573 { (case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_try") 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 ol_cv_pthread_pthreads=yes
21584 echo "$as_me: program exited with status $ac_status" >&5
21585 echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ( exit $ac_status )
21589 ol_cv_pthread_pthreads=no
21591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21600 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21601 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21603 if test $ol_cv_pthread_pthreads = yes ; then
21604 ol_link_pthreads="-pthreads"
21605 ol_link_threads=posix
21609 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21610 if test "$ol_link_threads" = no ; then
21612 { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21613 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21614 if test "${ol_cv_pthread_mthreads+set}" = set; then
21615 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 LIBS="-mthreads $LIBS"
21622 if test "$cross_compiling" = yes; then
21623 cat >conftest.$ac_ext <<_ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21630 /* pthread test headers */
21631 #include <pthread.h>
21632 #if HAVE_PTHREADS < 7
21636 #define NULL (void*)0
21639 static void *task(p)
21642 return (void *) (p == NULL);
21649 /* pthread test function */
21650 #ifndef PTHREAD_CREATE_DETACHED
21651 #define PTHREAD_CREATE_DETACHED 1
21655 int detach = PTHREAD_CREATE_DETACHED;
21657 #if HAVE_PTHREADS > 4
21658 /* Final pthreads */
21659 pthread_attr_t attr;
21661 status = pthread_attr_init(&attr);
21662 if( status ) return status;
21664 #if HAVE_PTHREADS < 7
21665 status = pthread_attr_setdetachstate(&attr, &detach);
21666 if( status < 0 ) status = errno;
21668 status = pthread_attr_setdetachstate(&attr, detach);
21670 if( status ) return status;
21671 status = pthread_create( &t, &attr, task, NULL );
21672 #if HAVE_PTHREADS < 7
21673 if( status < 0 ) status = errno;
21675 if( status ) return status;
21677 /* Draft 4 pthreads */
21678 status = pthread_create( &t, pthread_attr_default, task, NULL );
21679 if( status ) return errno;
21681 /* give thread a chance to complete */
21682 /* it should remain joinable and hence detachable */
21685 status = pthread_detach( &t );
21686 if( status ) return errno;
21689 #ifdef HAVE_LINUX_THREADS
21690 pthread_kill_other_threads_np();
21699 rm -f conftest.$ac_objext conftest$ac_exeext
21700 if { (ac_try="$ac_link"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_link") 2>conftest.er1
21708 grep -v '^ *+' conftest.er1 >conftest.err
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest$ac_exeext &&
21716 $as_test_x conftest$ac_exeext; then
21717 ol_cv_pthread_mthreads=yes
21719 echo "$as_me: failed program was:" >&5
21720 sed 's/^/| /' conftest.$ac_ext >&5
21722 ol_cv_pthread_mthreads=no
21725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21726 conftest$ac_exeext conftest.$ac_ext
21728 cat >conftest.$ac_ext <<_ACEOF
21731 cat confdefs.h >>conftest.$ac_ext
21732 cat >>conftest.$ac_ext <<_ACEOF
21733 /* end confdefs.h. */
21735 /* pthread test headers */
21736 #include <pthread.h>
21737 #if HAVE_PTHREADS < 7
21741 #define NULL (void*)0
21744 static void *task(p)
21747 return (void *) (p == NULL);
21751 int main(argc, argv)
21756 /* pthread test function */
21757 #ifndef PTHREAD_CREATE_DETACHED
21758 #define PTHREAD_CREATE_DETACHED 1
21762 int detach = PTHREAD_CREATE_DETACHED;
21764 #if HAVE_PTHREADS > 4
21765 /* Final pthreads */
21766 pthread_attr_t attr;
21768 status = pthread_attr_init(&attr);
21769 if( status ) return status;
21771 #if HAVE_PTHREADS < 7
21772 status = pthread_attr_setdetachstate(&attr, &detach);
21773 if( status < 0 ) status = errno;
21775 status = pthread_attr_setdetachstate(&attr, detach);
21777 if( status ) return status;
21778 status = pthread_create( &t, &attr, task, NULL );
21779 #if HAVE_PTHREADS < 7
21780 if( status < 0 ) status = errno;
21782 if( status ) return status;
21784 /* Draft 4 pthreads */
21785 status = pthread_create( &t, pthread_attr_default, task, NULL );
21786 if( status ) return errno;
21788 /* give thread a chance to complete */
21789 /* it should remain joinable and hence detachable */
21792 status = pthread_detach( &t );
21793 if( status ) return errno;
21796 #ifdef HAVE_LINUX_THREADS
21797 pthread_kill_other_threads_np();
21805 rm -f conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809 *) ac_try_echo=$ac_try;;
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812 (eval "$ac_link") 2>&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21816 { (case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_try") 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825 ol_cv_pthread_mthreads=yes
21827 echo "$as_me: program exited with status $ac_status" >&5
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21831 ( exit $ac_status )
21832 ol_cv_pthread_mthreads=no
21834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21843 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21844 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21846 if test $ol_cv_pthread_mthreads = yes ; then
21847 ol_link_pthreads="-mthreads"
21848 ol_link_threads=posix
21852 # Pthread try link: -thread (ol_cv_pthread_thread)
21853 if test "$ol_link_threads" = no ; then
21855 { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21856 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21857 if test "${ol_cv_pthread_thread+set}" = set; then
21858 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 LIBS="-thread $LIBS"
21865 if test "$cross_compiling" = yes; then
21866 cat >conftest.$ac_ext <<_ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h. */
21873 /* pthread test headers */
21874 #include <pthread.h>
21875 #if HAVE_PTHREADS < 7
21879 #define NULL (void*)0
21882 static void *task(p)
21885 return (void *) (p == NULL);
21892 /* pthread test function */
21893 #ifndef PTHREAD_CREATE_DETACHED
21894 #define PTHREAD_CREATE_DETACHED 1
21898 int detach = PTHREAD_CREATE_DETACHED;
21900 #if HAVE_PTHREADS > 4
21901 /* Final pthreads */
21902 pthread_attr_t attr;
21904 status = pthread_attr_init(&attr);
21905 if( status ) return status;
21907 #if HAVE_PTHREADS < 7
21908 status = pthread_attr_setdetachstate(&attr, &detach);
21909 if( status < 0 ) status = errno;
21911 status = pthread_attr_setdetachstate(&attr, detach);
21913 if( status ) return status;
21914 status = pthread_create( &t, &attr, task, NULL );
21915 #if HAVE_PTHREADS < 7
21916 if( status < 0 ) status = errno;
21918 if( status ) return status;
21920 /* Draft 4 pthreads */
21921 status = pthread_create( &t, pthread_attr_default, task, NULL );
21922 if( status ) return errno;
21924 /* give thread a chance to complete */
21925 /* it should remain joinable and hence detachable */
21928 status = pthread_detach( &t );
21929 if( status ) return errno;
21932 #ifdef HAVE_LINUX_THREADS
21933 pthread_kill_other_threads_np();
21942 rm -f conftest.$ac_objext conftest$ac_exeext
21943 if { (ac_try="$ac_link"
21944 case "(($ac_try" in
21945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21946 *) ac_try_echo=$ac_try;;
21948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21949 (eval "$ac_link") 2>conftest.er1
21951 grep -v '^ *+' conftest.er1 >conftest.err
21953 cat conftest.err >&5
21954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } && {
21956 test -z "$ac_c_werror_flag" ||
21957 test ! -s conftest.err
21958 } && test -s conftest$ac_exeext &&
21959 $as_test_x conftest$ac_exeext; then
21960 ol_cv_pthread_thread=yes
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 ol_cv_pthread_thread=no
21968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21969 conftest$ac_exeext conftest.$ac_ext
21971 cat >conftest.$ac_ext <<_ACEOF
21974 cat confdefs.h >>conftest.$ac_ext
21975 cat >>conftest.$ac_ext <<_ACEOF
21976 /* end confdefs.h. */
21978 /* pthread test headers */
21979 #include <pthread.h>
21980 #if HAVE_PTHREADS < 7
21984 #define NULL (void*)0
21987 static void *task(p)
21990 return (void *) (p == NULL);
21994 int main(argc, argv)
21999 /* pthread test function */
22000 #ifndef PTHREAD_CREATE_DETACHED
22001 #define PTHREAD_CREATE_DETACHED 1
22005 int detach = PTHREAD_CREATE_DETACHED;
22007 #if HAVE_PTHREADS > 4
22008 /* Final pthreads */
22009 pthread_attr_t attr;
22011 status = pthread_attr_init(&attr);
22012 if( status ) return status;
22014 #if HAVE_PTHREADS < 7
22015 status = pthread_attr_setdetachstate(&attr, &detach);
22016 if( status < 0 ) status = errno;
22018 status = pthread_attr_setdetachstate(&attr, detach);
22020 if( status ) return status;
22021 status = pthread_create( &t, &attr, task, NULL );
22022 #if HAVE_PTHREADS < 7
22023 if( status < 0 ) status = errno;
22025 if( status ) return status;
22027 /* Draft 4 pthreads */
22028 status = pthread_create( &t, pthread_attr_default, task, NULL );
22029 if( status ) return errno;
22031 /* give thread a chance to complete */
22032 /* it should remain joinable and hence detachable */
22035 status = pthread_detach( &t );
22036 if( status ) return errno;
22039 #ifdef HAVE_LINUX_THREADS
22040 pthread_kill_other_threads_np();
22048 rm -f conftest$ac_exeext
22049 if { (ac_try="$ac_link"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_link") 2>&5
22057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22059 { (case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_try") 2>&5
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ol_cv_pthread_thread=yes
22070 echo "$as_me: program exited with status $ac_status" >&5
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22074 ( exit $ac_status )
22075 ol_cv_pthread_thread=no
22077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22086 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22087 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22089 if test $ol_cv_pthread_thread = yes ; then
22090 ol_link_pthreads="-thread"
22091 ol_link_threads=posix
22096 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22097 if test "$ol_link_threads" = no ; then
22098 # try -lpthread -lmach -lexc -lc_r
22099 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22100 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22101 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22102 echo $ECHO_N "(cached) $ECHO_C" >&6
22107 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22109 if test "$cross_compiling" = yes; then
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 /* pthread test headers */
22118 #include <pthread.h>
22119 #if HAVE_PTHREADS < 7
22123 #define NULL (void*)0
22126 static void *task(p)
22129 return (void *) (p == NULL);
22136 /* pthread test function */
22137 #ifndef PTHREAD_CREATE_DETACHED
22138 #define PTHREAD_CREATE_DETACHED 1
22142 int detach = PTHREAD_CREATE_DETACHED;
22144 #if HAVE_PTHREADS > 4
22145 /* Final pthreads */
22146 pthread_attr_t attr;
22148 status = pthread_attr_init(&attr);
22149 if( status ) return status;
22151 #if HAVE_PTHREADS < 7
22152 status = pthread_attr_setdetachstate(&attr, &detach);
22153 if( status < 0 ) status = errno;
22155 status = pthread_attr_setdetachstate(&attr, detach);
22157 if( status ) return status;
22158 status = pthread_create( &t, &attr, task, NULL );
22159 #if HAVE_PTHREADS < 7
22160 if( status < 0 ) status = errno;
22162 if( status ) return status;
22164 /* Draft 4 pthreads */
22165 status = pthread_create( &t, pthread_attr_default, task, NULL );
22166 if( status ) return errno;
22168 /* give thread a chance to complete */
22169 /* it should remain joinable and hence detachable */
22172 status = pthread_detach( &t );
22173 if( status ) return errno;
22176 #ifdef HAVE_LINUX_THREADS
22177 pthread_kill_other_threads_np();
22186 rm -f conftest.$ac_objext conftest$ac_exeext
22187 if { (ac_try="$ac_link"
22188 case "(($ac_try" in
22189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22190 *) ac_try_echo=$ac_try;;
22192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22193 (eval "$ac_link") 2>conftest.er1
22195 grep -v '^ *+' conftest.er1 >conftest.err
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } && {
22200 test -z "$ac_c_werror_flag" ||
22201 test ! -s conftest.err
22202 } && test -s conftest$ac_exeext &&
22203 $as_test_x conftest$ac_exeext; then
22204 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22209 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22213 conftest$ac_exeext conftest.$ac_ext
22215 cat >conftest.$ac_ext <<_ACEOF
22218 cat confdefs.h >>conftest.$ac_ext
22219 cat >>conftest.$ac_ext <<_ACEOF
22220 /* end confdefs.h. */
22222 /* pthread test headers */
22223 #include <pthread.h>
22224 #if HAVE_PTHREADS < 7
22228 #define NULL (void*)0
22231 static void *task(p)
22234 return (void *) (p == NULL);
22238 int main(argc, argv)
22243 /* pthread test function */
22244 #ifndef PTHREAD_CREATE_DETACHED
22245 #define PTHREAD_CREATE_DETACHED 1
22249 int detach = PTHREAD_CREATE_DETACHED;
22251 #if HAVE_PTHREADS > 4
22252 /* Final pthreads */
22253 pthread_attr_t attr;
22255 status = pthread_attr_init(&attr);
22256 if( status ) return status;
22258 #if HAVE_PTHREADS < 7
22259 status = pthread_attr_setdetachstate(&attr, &detach);
22260 if( status < 0 ) status = errno;
22262 status = pthread_attr_setdetachstate(&attr, detach);
22264 if( status ) return status;
22265 status = pthread_create( &t, &attr, task, NULL );
22266 #if HAVE_PTHREADS < 7
22267 if( status < 0 ) status = errno;
22269 if( status ) return status;
22271 /* Draft 4 pthreads */
22272 status = pthread_create( &t, pthread_attr_default, task, NULL );
22273 if( status ) return errno;
22275 /* give thread a chance to complete */
22276 /* it should remain joinable and hence detachable */
22279 status = pthread_detach( &t );
22280 if( status ) return errno;
22283 #ifdef HAVE_LINUX_THREADS
22284 pthread_kill_other_threads_np();
22292 rm -f conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_link") 2>&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22303 { (case "(($ac_try" in
22304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305 *) ac_try_echo=$ac_try;;
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308 (eval "$ac_try") 2>&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; }; then
22312 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22314 echo "$as_me: program exited with status $ac_status" >&5
22315 echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ( exit $ac_status )
22319 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22330 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22331 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22333 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22334 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22335 ol_link_threads=posix
22339 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22340 if test "$ol_link_threads" = no ; then
22341 # try -lpthread -lmach -lexc
22342 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22343 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22344 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 LIBS="-lpthread -lmach -lexc $LIBS"
22352 if test "$cross_compiling" = yes; then
22353 cat >conftest.$ac_ext <<_ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22360 /* pthread test headers */
22361 #include <pthread.h>
22362 #if HAVE_PTHREADS < 7
22366 #define NULL (void*)0
22369 static void *task(p)
22372 return (void *) (p == NULL);
22379 /* pthread test function */
22380 #ifndef PTHREAD_CREATE_DETACHED
22381 #define PTHREAD_CREATE_DETACHED 1
22385 int detach = PTHREAD_CREATE_DETACHED;
22387 #if HAVE_PTHREADS > 4
22388 /* Final pthreads */
22389 pthread_attr_t attr;
22391 status = pthread_attr_init(&attr);
22392 if( status ) return status;
22394 #if HAVE_PTHREADS < 7
22395 status = pthread_attr_setdetachstate(&attr, &detach);
22396 if( status < 0 ) status = errno;
22398 status = pthread_attr_setdetachstate(&attr, detach);
22400 if( status ) return status;
22401 status = pthread_create( &t, &attr, task, NULL );
22402 #if HAVE_PTHREADS < 7
22403 if( status < 0 ) status = errno;
22405 if( status ) return status;
22407 /* Draft 4 pthreads */
22408 status = pthread_create( &t, pthread_attr_default, task, NULL );
22409 if( status ) return errno;
22411 /* give thread a chance to complete */
22412 /* it should remain joinable and hence detachable */
22415 status = pthread_detach( &t );
22416 if( status ) return errno;
22419 #ifdef HAVE_LINUX_THREADS
22420 pthread_kill_other_threads_np();
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (ac_try="$ac_link"
22431 case "(($ac_try" in
22432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22433 *) ac_try_echo=$ac_try;;
22435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22436 (eval "$ac_link") 2>conftest.er1
22438 grep -v '^ *+' conftest.er1 >conftest.err
22440 cat conftest.err >&5
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } && {
22443 test -z "$ac_c_werror_flag" ||
22444 test ! -s conftest.err
22445 } && test -s conftest$ac_exeext &&
22446 $as_test_x conftest$ac_exeext; then
22447 ol_cv_pthread_lpthread_lmach_lexc=yes
22449 echo "$as_me: failed program was:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ol_cv_pthread_lpthread_lmach_lexc=no
22455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22456 conftest$ac_exeext conftest.$ac_ext
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22465 /* pthread test headers */
22466 #include <pthread.h>
22467 #if HAVE_PTHREADS < 7
22471 #define NULL (void*)0
22474 static void *task(p)
22477 return (void *) (p == NULL);
22481 int main(argc, argv)
22486 /* pthread test function */
22487 #ifndef PTHREAD_CREATE_DETACHED
22488 #define PTHREAD_CREATE_DETACHED 1
22492 int detach = PTHREAD_CREATE_DETACHED;
22494 #if HAVE_PTHREADS > 4
22495 /* Final pthreads */
22496 pthread_attr_t attr;
22498 status = pthread_attr_init(&attr);
22499 if( status ) return status;
22501 #if HAVE_PTHREADS < 7
22502 status = pthread_attr_setdetachstate(&attr, &detach);
22503 if( status < 0 ) status = errno;
22505 status = pthread_attr_setdetachstate(&attr, detach);
22507 if( status ) return status;
22508 status = pthread_create( &t, &attr, task, NULL );
22509 #if HAVE_PTHREADS < 7
22510 if( status < 0 ) status = errno;
22512 if( status ) return status;
22514 /* Draft 4 pthreads */
22515 status = pthread_create( &t, pthread_attr_default, task, NULL );
22516 if( status ) return errno;
22518 /* give thread a chance to complete */
22519 /* it should remain joinable and hence detachable */
22522 status = pthread_detach( &t );
22523 if( status ) return errno;
22526 #ifdef HAVE_LINUX_THREADS
22527 pthread_kill_other_threads_np();
22535 rm -f conftest$ac_exeext
22536 if { (ac_try="$ac_link"
22537 case "(($ac_try" in
22538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539 *) ac_try_echo=$ac_try;;
22541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542 (eval "$ac_link") 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22546 { (case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_try") 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; }; then
22555 ol_cv_pthread_lpthread_lmach_lexc=yes
22557 echo "$as_me: program exited with status $ac_status" >&5
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ( exit $ac_status )
22562 ol_cv_pthread_lpthread_lmach_lexc=no
22564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22573 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22574 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22576 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22577 ol_link_pthreads="-lpthread -lmach -lexc"
22578 ol_link_threads=posix
22583 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22584 if test "$ol_link_threads" = no ; then
22585 # try -lpthread -Wl,-woff,85
22586 { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22587 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22588 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22596 if test "$cross_compiling" = yes; then
22597 cat >conftest.$ac_ext <<_ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h. */
22604 /* pthread test headers */
22605 #include <pthread.h>
22606 #if HAVE_PTHREADS < 7
22610 #define NULL (void*)0
22613 static void *task(p)
22616 return (void *) (p == NULL);
22623 /* pthread test function */
22624 #ifndef PTHREAD_CREATE_DETACHED
22625 #define PTHREAD_CREATE_DETACHED 1
22629 int detach = PTHREAD_CREATE_DETACHED;
22631 #if HAVE_PTHREADS > 4
22632 /* Final pthreads */
22633 pthread_attr_t attr;
22635 status = pthread_attr_init(&attr);
22636 if( status ) return status;
22638 #if HAVE_PTHREADS < 7
22639 status = pthread_attr_setdetachstate(&attr, &detach);
22640 if( status < 0 ) status = errno;
22642 status = pthread_attr_setdetachstate(&attr, detach);
22644 if( status ) return status;
22645 status = pthread_create( &t, &attr, task, NULL );
22646 #if HAVE_PTHREADS < 7
22647 if( status < 0 ) status = errno;
22649 if( status ) return status;
22651 /* Draft 4 pthreads */
22652 status = pthread_create( &t, pthread_attr_default, task, NULL );
22653 if( status ) return errno;
22655 /* give thread a chance to complete */
22656 /* it should remain joinable and hence detachable */
22659 status = pthread_detach( &t );
22660 if( status ) return errno;
22663 #ifdef HAVE_LINUX_THREADS
22664 pthread_kill_other_threads_np();
22673 rm -f conftest.$ac_objext conftest$ac_exeext
22674 if { (ac_try="$ac_link"
22675 case "(($ac_try" in
22676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22677 *) ac_try_echo=$ac_try;;
22679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22680 (eval "$ac_link") 2>conftest.er1
22682 grep -v '^ *+' conftest.er1 >conftest.err
22684 cat conftest.err >&5
22685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22686 (exit $ac_status); } && {
22687 test -z "$ac_c_werror_flag" ||
22688 test ! -s conftest.err
22689 } && test -s conftest$ac_exeext &&
22690 $as_test_x conftest$ac_exeext; then
22691 ol_cv_pthread_lib_lpthread_woff=yes
22693 echo "$as_me: failed program was:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ol_cv_pthread_lib_lpthread_woff=no
22699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22700 conftest$ac_exeext conftest.$ac_ext
22702 cat >conftest.$ac_ext <<_ACEOF
22705 cat confdefs.h >>conftest.$ac_ext
22706 cat >>conftest.$ac_ext <<_ACEOF
22707 /* end confdefs.h. */
22709 /* pthread test headers */
22710 #include <pthread.h>
22711 #if HAVE_PTHREADS < 7
22715 #define NULL (void*)0
22718 static void *task(p)
22721 return (void *) (p == NULL);
22725 int main(argc, argv)
22730 /* pthread test function */
22731 #ifndef PTHREAD_CREATE_DETACHED
22732 #define PTHREAD_CREATE_DETACHED 1
22736 int detach = PTHREAD_CREATE_DETACHED;
22738 #if HAVE_PTHREADS > 4
22739 /* Final pthreads */
22740 pthread_attr_t attr;
22742 status = pthread_attr_init(&attr);
22743 if( status ) return status;
22745 #if HAVE_PTHREADS < 7
22746 status = pthread_attr_setdetachstate(&attr, &detach);
22747 if( status < 0 ) status = errno;
22749 status = pthread_attr_setdetachstate(&attr, detach);
22751 if( status ) return status;
22752 status = pthread_create( &t, &attr, task, NULL );
22753 #if HAVE_PTHREADS < 7
22754 if( status < 0 ) status = errno;
22756 if( status ) return status;
22758 /* Draft 4 pthreads */
22759 status = pthread_create( &t, pthread_attr_default, task, NULL );
22760 if( status ) return errno;
22762 /* give thread a chance to complete */
22763 /* it should remain joinable and hence detachable */
22766 status = pthread_detach( &t );
22767 if( status ) return errno;
22770 #ifdef HAVE_LINUX_THREADS
22771 pthread_kill_other_threads_np();
22779 rm -f conftest$ac_exeext
22780 if { (ac_try="$ac_link"
22781 case "(($ac_try" in
22782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783 *) ac_try_echo=$ac_try;;
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786 (eval "$ac_link") 2>&5
22788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22790 { (case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_try") 2>&5
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; }; then
22799 ol_cv_pthread_lib_lpthread_woff=yes
22801 echo "$as_me: program exited with status $ac_status" >&5
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ( exit $ac_status )
22806 ol_cv_pthread_lib_lpthread_woff=no
22808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22817 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22818 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22820 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22821 ol_link_pthreads="-lpthread -Wl,-woff,85"
22822 ol_link_threads=posix
22827 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22828 if test "$ol_link_threads" = no ; then
22830 { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22831 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22832 if test "${ol_cv_pthread_lpthread+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22838 LIBS="-lpthread $LIBS"
22840 if test "$cross_compiling" = yes; then
22841 cat >conftest.$ac_ext <<_ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22848 /* pthread test headers */
22849 #include <pthread.h>
22850 #if HAVE_PTHREADS < 7
22854 #define NULL (void*)0
22857 static void *task(p)
22860 return (void *) (p == NULL);
22867 /* pthread test function */
22868 #ifndef PTHREAD_CREATE_DETACHED
22869 #define PTHREAD_CREATE_DETACHED 1
22873 int detach = PTHREAD_CREATE_DETACHED;
22875 #if HAVE_PTHREADS > 4
22876 /* Final pthreads */
22877 pthread_attr_t attr;
22879 status = pthread_attr_init(&attr);
22880 if( status ) return status;
22882 #if HAVE_PTHREADS < 7
22883 status = pthread_attr_setdetachstate(&attr, &detach);
22884 if( status < 0 ) status = errno;
22886 status = pthread_attr_setdetachstate(&attr, detach);
22888 if( status ) return status;
22889 status = pthread_create( &t, &attr, task, NULL );
22890 #if HAVE_PTHREADS < 7
22891 if( status < 0 ) status = errno;
22893 if( status ) return status;
22895 /* Draft 4 pthreads */
22896 status = pthread_create( &t, pthread_attr_default, task, NULL );
22897 if( status ) return errno;
22899 /* give thread a chance to complete */
22900 /* it should remain joinable and hence detachable */
22903 status = pthread_detach( &t );
22904 if( status ) return errno;
22907 #ifdef HAVE_LINUX_THREADS
22908 pthread_kill_other_threads_np();
22917 rm -f conftest.$ac_objext conftest$ac_exeext
22918 if { (ac_try="$ac_link"
22919 case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_link") 2>conftest.er1
22926 grep -v '^ *+' conftest.er1 >conftest.err
22928 cat conftest.err >&5
22929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930 (exit $ac_status); } && {
22931 test -z "$ac_c_werror_flag" ||
22932 test ! -s conftest.err
22933 } && test -s conftest$ac_exeext &&
22934 $as_test_x conftest$ac_exeext; then
22935 ol_cv_pthread_lpthread=yes
22937 echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22940 ol_cv_pthread_lpthread=no
22943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22944 conftest$ac_exeext conftest.$ac_ext
22946 cat >conftest.$ac_ext <<_ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22953 /* pthread test headers */
22954 #include <pthread.h>
22955 #if HAVE_PTHREADS < 7
22959 #define NULL (void*)0
22962 static void *task(p)
22965 return (void *) (p == NULL);
22969 int main(argc, argv)
22974 /* pthread test function */
22975 #ifndef PTHREAD_CREATE_DETACHED
22976 #define PTHREAD_CREATE_DETACHED 1
22980 int detach = PTHREAD_CREATE_DETACHED;
22982 #if HAVE_PTHREADS > 4
22983 /* Final pthreads */
22984 pthread_attr_t attr;
22986 status = pthread_attr_init(&attr);
22987 if( status ) return status;
22989 #if HAVE_PTHREADS < 7
22990 status = pthread_attr_setdetachstate(&attr, &detach);
22991 if( status < 0 ) status = errno;
22993 status = pthread_attr_setdetachstate(&attr, detach);
22995 if( status ) return status;
22996 status = pthread_create( &t, &attr, task, NULL );
22997 #if HAVE_PTHREADS < 7
22998 if( status < 0 ) status = errno;
23000 if( status ) return status;
23002 /* Draft 4 pthreads */
23003 status = pthread_create( &t, pthread_attr_default, task, NULL );
23004 if( status ) return errno;
23006 /* give thread a chance to complete */
23007 /* it should remain joinable and hence detachable */
23010 status = pthread_detach( &t );
23011 if( status ) return errno;
23014 #ifdef HAVE_LINUX_THREADS
23015 pthread_kill_other_threads_np();
23023 rm -f conftest$ac_exeext
23024 if { (ac_try="$ac_link"
23025 case "(($ac_try" in
23026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027 *) ac_try_echo=$ac_try;;
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030 (eval "$ac_link") 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23034 { (case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_try") 2>&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 ol_cv_pthread_lpthread=yes
23045 echo "$as_me: program exited with status $ac_status" >&5
23046 echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23049 ( exit $ac_status )
23050 ol_cv_pthread_lpthread=no
23052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23061 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23062 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23064 if test $ol_cv_pthread_lpthread = yes ; then
23065 ol_link_pthreads="-lpthread"
23066 ol_link_threads=posix
23070 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23071 if test "$ol_link_threads" = no ; then
23073 { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23074 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23075 if test "${ol_cv_pthread_lc_r+set}" = set; then
23076 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 if test "$cross_compiling" = yes; then
23084 cat >conftest.$ac_ext <<_ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23091 /* pthread test headers */
23092 #include <pthread.h>
23093 #if HAVE_PTHREADS < 7
23097 #define NULL (void*)0
23100 static void *task(p)
23103 return (void *) (p == NULL);
23110 /* pthread test function */
23111 #ifndef PTHREAD_CREATE_DETACHED
23112 #define PTHREAD_CREATE_DETACHED 1
23116 int detach = PTHREAD_CREATE_DETACHED;
23118 #if HAVE_PTHREADS > 4
23119 /* Final pthreads */
23120 pthread_attr_t attr;
23122 status = pthread_attr_init(&attr);
23123 if( status ) return status;
23125 #if HAVE_PTHREADS < 7
23126 status = pthread_attr_setdetachstate(&attr, &detach);
23127 if( status < 0 ) status = errno;
23129 status = pthread_attr_setdetachstate(&attr, detach);
23131 if( status ) return status;
23132 status = pthread_create( &t, &attr, task, NULL );
23133 #if HAVE_PTHREADS < 7
23134 if( status < 0 ) status = errno;
23136 if( status ) return status;
23138 /* Draft 4 pthreads */
23139 status = pthread_create( &t, pthread_attr_default, task, NULL );
23140 if( status ) return errno;
23142 /* give thread a chance to complete */
23143 /* it should remain joinable and hence detachable */
23146 status = pthread_detach( &t );
23147 if( status ) return errno;
23150 #ifdef HAVE_LINUX_THREADS
23151 pthread_kill_other_threads_np();
23160 rm -f conftest.$ac_objext conftest$ac_exeext
23161 if { (ac_try="$ac_link"
23162 case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23167 (eval "$ac_link") 2>conftest.er1
23169 grep -v '^ *+' conftest.er1 >conftest.err
23171 cat conftest.err >&5
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); } && {
23174 test -z "$ac_c_werror_flag" ||
23175 test ! -s conftest.err
23176 } && test -s conftest$ac_exeext &&
23177 $as_test_x conftest$ac_exeext; then
23178 ol_cv_pthread_lc_r=yes
23180 echo "$as_me: failed program was:" >&5
23181 sed 's/^/| /' conftest.$ac_ext >&5
23183 ol_cv_pthread_lc_r=no
23186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23187 conftest$ac_exeext conftest.$ac_ext
23189 cat >conftest.$ac_ext <<_ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23196 /* pthread test headers */
23197 #include <pthread.h>
23198 #if HAVE_PTHREADS < 7
23202 #define NULL (void*)0
23205 static void *task(p)
23208 return (void *) (p == NULL);
23212 int main(argc, argv)
23217 /* pthread test function */
23218 #ifndef PTHREAD_CREATE_DETACHED
23219 #define PTHREAD_CREATE_DETACHED 1
23223 int detach = PTHREAD_CREATE_DETACHED;
23225 #if HAVE_PTHREADS > 4
23226 /* Final pthreads */
23227 pthread_attr_t attr;
23229 status = pthread_attr_init(&attr);
23230 if( status ) return status;
23232 #if HAVE_PTHREADS < 7
23233 status = pthread_attr_setdetachstate(&attr, &detach);
23234 if( status < 0 ) status = errno;
23236 status = pthread_attr_setdetachstate(&attr, detach);
23238 if( status ) return status;
23239 status = pthread_create( &t, &attr, task, NULL );
23240 #if HAVE_PTHREADS < 7
23241 if( status < 0 ) status = errno;
23243 if( status ) return status;
23245 /* Draft 4 pthreads */
23246 status = pthread_create( &t, pthread_attr_default, task, NULL );
23247 if( status ) return errno;
23249 /* give thread a chance to complete */
23250 /* it should remain joinable and hence detachable */
23253 status = pthread_detach( &t );
23254 if( status ) return errno;
23257 #ifdef HAVE_LINUX_THREADS
23258 pthread_kill_other_threads_np();
23266 rm -f conftest$ac_exeext
23267 if { (ac_try="$ac_link"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_link") 2>&5
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23277 { (case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_try") 2>&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); }; }; then
23286 ol_cv_pthread_lc_r=yes
23288 echo "$as_me: program exited with status $ac_status" >&5
23289 echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23292 ( exit $ac_status )
23293 ol_cv_pthread_lc_r=no
23295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23304 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23305 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23307 if test $ol_cv_pthread_lc_r = yes ; then
23308 ol_link_pthreads="-lc_r"
23309 ol_link_threads=posix
23314 # Pthread try link: -threads (ol_cv_pthread_threads)
23315 if test "$ol_link_threads" = no ; then
23317 { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23318 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23319 if test "${ol_cv_pthread_threads+set}" = set; then
23320 echo $ECHO_N "(cached) $ECHO_C" >&6
23325 LIBS="-threads $LIBS"
23327 if test "$cross_compiling" = yes; then
23328 cat >conftest.$ac_ext <<_ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h. */
23335 /* pthread test headers */
23336 #include <pthread.h>
23337 #if HAVE_PTHREADS < 7
23341 #define NULL (void*)0
23344 static void *task(p)
23347 return (void *) (p == NULL);
23354 /* pthread test function */
23355 #ifndef PTHREAD_CREATE_DETACHED
23356 #define PTHREAD_CREATE_DETACHED 1
23360 int detach = PTHREAD_CREATE_DETACHED;
23362 #if HAVE_PTHREADS > 4
23363 /* Final pthreads */
23364 pthread_attr_t attr;
23366 status = pthread_attr_init(&attr);
23367 if( status ) return status;
23369 #if HAVE_PTHREADS < 7
23370 status = pthread_attr_setdetachstate(&attr, &detach);
23371 if( status < 0 ) status = errno;
23373 status = pthread_attr_setdetachstate(&attr, detach);
23375 if( status ) return status;
23376 status = pthread_create( &t, &attr, task, NULL );
23377 #if HAVE_PTHREADS < 7
23378 if( status < 0 ) status = errno;
23380 if( status ) return status;
23382 /* Draft 4 pthreads */
23383 status = pthread_create( &t, pthread_attr_default, task, NULL );
23384 if( status ) return errno;
23386 /* give thread a chance to complete */
23387 /* it should remain joinable and hence detachable */
23390 status = pthread_detach( &t );
23391 if( status ) return errno;
23394 #ifdef HAVE_LINUX_THREADS
23395 pthread_kill_other_threads_np();
23404 rm -f conftest.$ac_objext conftest$ac_exeext
23405 if { (ac_try="$ac_link"
23406 case "(($ac_try" in
23407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23408 *) ac_try_echo=$ac_try;;
23410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23411 (eval "$ac_link") 2>conftest.er1
23413 grep -v '^ *+' conftest.er1 >conftest.err
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } && {
23418 test -z "$ac_c_werror_flag" ||
23419 test ! -s conftest.err
23420 } && test -s conftest$ac_exeext &&
23421 $as_test_x conftest$ac_exeext; then
23422 ol_cv_pthread_threads=yes
23424 echo "$as_me: failed program was:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ol_cv_pthread_threads=no
23430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23431 conftest$ac_exeext conftest.$ac_ext
23433 cat >conftest.$ac_ext <<_ACEOF
23436 cat confdefs.h >>conftest.$ac_ext
23437 cat >>conftest.$ac_ext <<_ACEOF
23438 /* end confdefs.h. */
23440 /* pthread test headers */
23441 #include <pthread.h>
23442 #if HAVE_PTHREADS < 7
23446 #define NULL (void*)0
23449 static void *task(p)
23452 return (void *) (p == NULL);
23456 int main(argc, argv)
23461 /* pthread test function */
23462 #ifndef PTHREAD_CREATE_DETACHED
23463 #define PTHREAD_CREATE_DETACHED 1
23467 int detach = PTHREAD_CREATE_DETACHED;
23469 #if HAVE_PTHREADS > 4
23470 /* Final pthreads */
23471 pthread_attr_t attr;
23473 status = pthread_attr_init(&attr);
23474 if( status ) return status;
23476 #if HAVE_PTHREADS < 7
23477 status = pthread_attr_setdetachstate(&attr, &detach);
23478 if( status < 0 ) status = errno;
23480 status = pthread_attr_setdetachstate(&attr, detach);
23482 if( status ) return status;
23483 status = pthread_create( &t, &attr, task, NULL );
23484 #if HAVE_PTHREADS < 7
23485 if( status < 0 ) status = errno;
23487 if( status ) return status;
23489 /* Draft 4 pthreads */
23490 status = pthread_create( &t, pthread_attr_default, task, NULL );
23491 if( status ) return errno;
23493 /* give thread a chance to complete */
23494 /* it should remain joinable and hence detachable */
23497 status = pthread_detach( &t );
23498 if( status ) return errno;
23501 #ifdef HAVE_LINUX_THREADS
23502 pthread_kill_other_threads_np();
23510 rm -f conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_link") 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23521 { (case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_try") 2>&5
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; }; then
23530 ol_cv_pthread_threads=yes
23532 echo "$as_me: program exited with status $ac_status" >&5
23533 echo "$as_me: failed program was:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 ( exit $ac_status )
23537 ol_cv_pthread_threads=no
23539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23548 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23549 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23551 if test $ol_cv_pthread_threads = yes ; then
23552 ol_link_pthreads="-threads"
23553 ol_link_threads=posix
23558 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23559 if test "$ol_link_threads" = no ; then
23560 # try -lpthreads -lmach -lexc -lc_r
23561 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23562 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23563 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23569 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23571 if test "$cross_compiling" = yes; then
23572 cat >conftest.$ac_ext <<_ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23579 /* pthread test headers */
23580 #include <pthread.h>
23581 #if HAVE_PTHREADS < 7
23585 #define NULL (void*)0
23588 static void *task(p)
23591 return (void *) (p == NULL);
23598 /* pthread test function */
23599 #ifndef PTHREAD_CREATE_DETACHED
23600 #define PTHREAD_CREATE_DETACHED 1
23604 int detach = PTHREAD_CREATE_DETACHED;
23606 #if HAVE_PTHREADS > 4
23607 /* Final pthreads */
23608 pthread_attr_t attr;
23610 status = pthread_attr_init(&attr);
23611 if( status ) return status;
23613 #if HAVE_PTHREADS < 7
23614 status = pthread_attr_setdetachstate(&attr, &detach);
23615 if( status < 0 ) status = errno;
23617 status = pthread_attr_setdetachstate(&attr, detach);
23619 if( status ) return status;
23620 status = pthread_create( &t, &attr, task, NULL );
23621 #if HAVE_PTHREADS < 7
23622 if( status < 0 ) status = errno;
23624 if( status ) return status;
23626 /* Draft 4 pthreads */
23627 status = pthread_create( &t, pthread_attr_default, task, NULL );
23628 if( status ) return errno;
23630 /* give thread a chance to complete */
23631 /* it should remain joinable and hence detachable */
23634 status = pthread_detach( &t );
23635 if( status ) return errno;
23638 #ifdef HAVE_LINUX_THREADS
23639 pthread_kill_other_threads_np();
23648 rm -f conftest.$ac_objext conftest$ac_exeext
23649 if { (ac_try="$ac_link"
23650 case "(($ac_try" in
23651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23652 *) ac_try_echo=$ac_try;;
23654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23655 (eval "$ac_link") 2>conftest.er1
23657 grep -v '^ *+' conftest.er1 >conftest.err
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } && {
23662 test -z "$ac_c_werror_flag" ||
23663 test ! -s conftest.err
23664 } && test -s conftest$ac_exeext &&
23665 $as_test_x conftest$ac_exeext; then
23666 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23668 echo "$as_me: failed program was:" >&5
23669 sed 's/^/| /' conftest.$ac_ext >&5
23671 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23675 conftest$ac_exeext conftest.$ac_ext
23677 cat >conftest.$ac_ext <<_ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23684 /* pthread test headers */
23685 #include <pthread.h>
23686 #if HAVE_PTHREADS < 7
23690 #define NULL (void*)0
23693 static void *task(p)
23696 return (void *) (p == NULL);
23700 int main(argc, argv)
23705 /* pthread test function */
23706 #ifndef PTHREAD_CREATE_DETACHED
23707 #define PTHREAD_CREATE_DETACHED 1
23711 int detach = PTHREAD_CREATE_DETACHED;
23713 #if HAVE_PTHREADS > 4
23714 /* Final pthreads */
23715 pthread_attr_t attr;
23717 status = pthread_attr_init(&attr);
23718 if( status ) return status;
23720 #if HAVE_PTHREADS < 7
23721 status = pthread_attr_setdetachstate(&attr, &detach);
23722 if( status < 0 ) status = errno;
23724 status = pthread_attr_setdetachstate(&attr, detach);
23726 if( status ) return status;
23727 status = pthread_create( &t, &attr, task, NULL );
23728 #if HAVE_PTHREADS < 7
23729 if( status < 0 ) status = errno;
23731 if( status ) return status;
23733 /* Draft 4 pthreads */
23734 status = pthread_create( &t, pthread_attr_default, task, NULL );
23735 if( status ) return errno;
23737 /* give thread a chance to complete */
23738 /* it should remain joinable and hence detachable */
23741 status = pthread_detach( &t );
23742 if( status ) return errno;
23745 #ifdef HAVE_LINUX_THREADS
23746 pthread_kill_other_threads_np();
23754 rm -f conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_link") 2>&5
23763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23765 { (case "(($ac_try" in
23766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23767 *) ac_try_echo=$ac_try;;
23769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23770 (eval "$ac_try") 2>&5
23772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); }; }; then
23774 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23776 echo "$as_me: program exited with status $ac_status" >&5
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ( exit $ac_status )
23781 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23792 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23793 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23795 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23796 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23797 ol_link_threads=posix
23801 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23802 if test "$ol_link_threads" = no ; then
23803 # try -lpthreads -lmach -lexc
23804 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23805 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23806 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23807 echo $ECHO_N "(cached) $ECHO_C" >&6
23812 LIBS="-lpthreads -lmach -lexc $LIBS"
23814 if test "$cross_compiling" = yes; then
23815 cat >conftest.$ac_ext <<_ACEOF
23818 cat confdefs.h >>conftest.$ac_ext
23819 cat >>conftest.$ac_ext <<_ACEOF
23820 /* end confdefs.h. */
23822 /* pthread test headers */
23823 #include <pthread.h>
23824 #if HAVE_PTHREADS < 7
23828 #define NULL (void*)0
23831 static void *task(p)
23834 return (void *) (p == NULL);
23841 /* pthread test function */
23842 #ifndef PTHREAD_CREATE_DETACHED
23843 #define PTHREAD_CREATE_DETACHED 1
23847 int detach = PTHREAD_CREATE_DETACHED;
23849 #if HAVE_PTHREADS > 4
23850 /* Final pthreads */
23851 pthread_attr_t attr;
23853 status = pthread_attr_init(&attr);
23854 if( status ) return status;
23856 #if HAVE_PTHREADS < 7
23857 status = pthread_attr_setdetachstate(&attr, &detach);
23858 if( status < 0 ) status = errno;
23860 status = pthread_attr_setdetachstate(&attr, detach);
23862 if( status ) return status;
23863 status = pthread_create( &t, &attr, task, NULL );
23864 #if HAVE_PTHREADS < 7
23865 if( status < 0 ) status = errno;
23867 if( status ) return status;
23869 /* Draft 4 pthreads */
23870 status = pthread_create( &t, pthread_attr_default, task, NULL );
23871 if( status ) return errno;
23873 /* give thread a chance to complete */
23874 /* it should remain joinable and hence detachable */
23877 status = pthread_detach( &t );
23878 if( status ) return errno;
23881 #ifdef HAVE_LINUX_THREADS
23882 pthread_kill_other_threads_np();
23891 rm -f conftest.$ac_objext conftest$ac_exeext
23892 if { (ac_try="$ac_link"
23893 case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23898 (eval "$ac_link") 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } && {
23905 test -z "$ac_c_werror_flag" ||
23906 test ! -s conftest.err
23907 } && test -s conftest$ac_exeext &&
23908 $as_test_x conftest$ac_exeext; then
23909 ol_cv_pthread_lpthreads_lmach_lexc=yes
23911 echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23914 ol_cv_pthread_lpthreads_lmach_lexc=no
23917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23918 conftest$ac_exeext conftest.$ac_ext
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23927 /* pthread test headers */
23928 #include <pthread.h>
23929 #if HAVE_PTHREADS < 7
23933 #define NULL (void*)0
23936 static void *task(p)
23939 return (void *) (p == NULL);
23943 int main(argc, argv)
23948 /* pthread test function */
23949 #ifndef PTHREAD_CREATE_DETACHED
23950 #define PTHREAD_CREATE_DETACHED 1
23954 int detach = PTHREAD_CREATE_DETACHED;
23956 #if HAVE_PTHREADS > 4
23957 /* Final pthreads */
23958 pthread_attr_t attr;
23960 status = pthread_attr_init(&attr);
23961 if( status ) return status;
23963 #if HAVE_PTHREADS < 7
23964 status = pthread_attr_setdetachstate(&attr, &detach);
23965 if( status < 0 ) status = errno;
23967 status = pthread_attr_setdetachstate(&attr, detach);
23969 if( status ) return status;
23970 status = pthread_create( &t, &attr, task, NULL );
23971 #if HAVE_PTHREADS < 7
23972 if( status < 0 ) status = errno;
23974 if( status ) return status;
23976 /* Draft 4 pthreads */
23977 status = pthread_create( &t, pthread_attr_default, task, NULL );
23978 if( status ) return errno;
23980 /* give thread a chance to complete */
23981 /* it should remain joinable and hence detachable */
23984 status = pthread_detach( &t );
23985 if( status ) return errno;
23988 #ifdef HAVE_LINUX_THREADS
23989 pthread_kill_other_threads_np();
23997 rm -f conftest$ac_exeext
23998 if { (ac_try="$ac_link"
23999 case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24004 (eval "$ac_link") 2>&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24008 { (case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_try") 2>&5
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; }; then
24017 ol_cv_pthread_lpthreads_lmach_lexc=yes
24019 echo "$as_me: program exited with status $ac_status" >&5
24020 echo "$as_me: failed program was:" >&5
24021 sed 's/^/| /' conftest.$ac_ext >&5
24023 ( exit $ac_status )
24024 ol_cv_pthread_lpthreads_lmach_lexc=no
24026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24035 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24036 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24038 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24039 ol_link_pthreads="-lpthreads -lmach -lexc"
24040 ol_link_threads=posix
24044 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24045 if test "$ol_link_threads" = no ; then
24046 # try -lpthreads -lexc
24047 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24048 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24049 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24050 echo $ECHO_N "(cached) $ECHO_C" >&6
24055 LIBS="-lpthreads -lexc $LIBS"
24057 if test "$cross_compiling" = yes; then
24058 cat >conftest.$ac_ext <<_ACEOF
24061 cat confdefs.h >>conftest.$ac_ext
24062 cat >>conftest.$ac_ext <<_ACEOF
24063 /* end confdefs.h. */
24065 /* pthread test headers */
24066 #include <pthread.h>
24067 #if HAVE_PTHREADS < 7
24071 #define NULL (void*)0
24074 static void *task(p)
24077 return (void *) (p == NULL);
24084 /* pthread test function */
24085 #ifndef PTHREAD_CREATE_DETACHED
24086 #define PTHREAD_CREATE_DETACHED 1
24090 int detach = PTHREAD_CREATE_DETACHED;
24092 #if HAVE_PTHREADS > 4
24093 /* Final pthreads */
24094 pthread_attr_t attr;
24096 status = pthread_attr_init(&attr);
24097 if( status ) return status;
24099 #if HAVE_PTHREADS < 7
24100 status = pthread_attr_setdetachstate(&attr, &detach);
24101 if( status < 0 ) status = errno;
24103 status = pthread_attr_setdetachstate(&attr, detach);
24105 if( status ) return status;
24106 status = pthread_create( &t, &attr, task, NULL );
24107 #if HAVE_PTHREADS < 7
24108 if( status < 0 ) status = errno;
24110 if( status ) return status;
24112 /* Draft 4 pthreads */
24113 status = pthread_create( &t, pthread_attr_default, task, NULL );
24114 if( status ) return errno;
24116 /* give thread a chance to complete */
24117 /* it should remain joinable and hence detachable */
24120 status = pthread_detach( &t );
24121 if( status ) return errno;
24124 #ifdef HAVE_LINUX_THREADS
24125 pthread_kill_other_threads_np();
24134 rm -f conftest.$ac_objext conftest$ac_exeext
24135 if { (ac_try="$ac_link"
24136 case "(($ac_try" in
24137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24138 *) ac_try_echo=$ac_try;;
24140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24141 (eval "$ac_link") 2>conftest.er1
24143 grep -v '^ *+' conftest.er1 >conftest.err
24145 cat conftest.err >&5
24146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24147 (exit $ac_status); } && {
24148 test -z "$ac_c_werror_flag" ||
24149 test ! -s conftest.err
24150 } && test -s conftest$ac_exeext &&
24151 $as_test_x conftest$ac_exeext; then
24152 ol_cv_pthread_lpthreads_lexc=yes
24154 echo "$as_me: failed program was:" >&5
24155 sed 's/^/| /' conftest.$ac_ext >&5
24157 ol_cv_pthread_lpthreads_lexc=no
24160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24161 conftest$ac_exeext conftest.$ac_ext
24163 cat >conftest.$ac_ext <<_ACEOF
24166 cat confdefs.h >>conftest.$ac_ext
24167 cat >>conftest.$ac_ext <<_ACEOF
24168 /* end confdefs.h. */
24170 /* pthread test headers */
24171 #include <pthread.h>
24172 #if HAVE_PTHREADS < 7
24176 #define NULL (void*)0
24179 static void *task(p)
24182 return (void *) (p == NULL);
24186 int main(argc, argv)
24191 /* pthread test function */
24192 #ifndef PTHREAD_CREATE_DETACHED
24193 #define PTHREAD_CREATE_DETACHED 1
24197 int detach = PTHREAD_CREATE_DETACHED;
24199 #if HAVE_PTHREADS > 4
24200 /* Final pthreads */
24201 pthread_attr_t attr;
24203 status = pthread_attr_init(&attr);
24204 if( status ) return status;
24206 #if HAVE_PTHREADS < 7
24207 status = pthread_attr_setdetachstate(&attr, &detach);
24208 if( status < 0 ) status = errno;
24210 status = pthread_attr_setdetachstate(&attr, detach);
24212 if( status ) return status;
24213 status = pthread_create( &t, &attr, task, NULL );
24214 #if HAVE_PTHREADS < 7
24215 if( status < 0 ) status = errno;
24217 if( status ) return status;
24219 /* Draft 4 pthreads */
24220 status = pthread_create( &t, pthread_attr_default, task, NULL );
24221 if( status ) return errno;
24223 /* give thread a chance to complete */
24224 /* it should remain joinable and hence detachable */
24227 status = pthread_detach( &t );
24228 if( status ) return errno;
24231 #ifdef HAVE_LINUX_THREADS
24232 pthread_kill_other_threads_np();
24240 rm -f conftest$ac_exeext
24241 if { (ac_try="$ac_link"
24242 case "(($ac_try" in
24243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24244 *) ac_try_echo=$ac_try;;
24246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24247 (eval "$ac_link") 2>&5
24249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24251 { (case "(($ac_try" in
24252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253 *) ac_try_echo=$ac_try;;
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256 (eval "$ac_try") 2>&5
24258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24259 (exit $ac_status); }; }; then
24260 ol_cv_pthread_lpthreads_lexc=yes
24262 echo "$as_me: program exited with status $ac_status" >&5
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24266 ( exit $ac_status )
24267 ol_cv_pthread_lpthreads_lexc=no
24269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24278 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24279 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24281 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24282 ol_link_pthreads="-lpthreads -lexc"
24283 ol_link_threads=posix
24288 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24289 if test "$ol_link_threads" = no ; then
24291 { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24292 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24293 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24294 echo $ECHO_N "(cached) $ECHO_C" >&6
24299 LIBS="-lpthreads $LIBS"
24301 if test "$cross_compiling" = yes; then
24302 cat >conftest.$ac_ext <<_ACEOF
24305 cat confdefs.h >>conftest.$ac_ext
24306 cat >>conftest.$ac_ext <<_ACEOF
24307 /* end confdefs.h. */
24309 /* pthread test headers */
24310 #include <pthread.h>
24311 #if HAVE_PTHREADS < 7
24315 #define NULL (void*)0
24318 static void *task(p)
24321 return (void *) (p == NULL);
24328 /* pthread test function */
24329 #ifndef PTHREAD_CREATE_DETACHED
24330 #define PTHREAD_CREATE_DETACHED 1
24334 int detach = PTHREAD_CREATE_DETACHED;
24336 #if HAVE_PTHREADS > 4
24337 /* Final pthreads */
24338 pthread_attr_t attr;
24340 status = pthread_attr_init(&attr);
24341 if( status ) return status;
24343 #if HAVE_PTHREADS < 7
24344 status = pthread_attr_setdetachstate(&attr, &detach);
24345 if( status < 0 ) status = errno;
24347 status = pthread_attr_setdetachstate(&attr, detach);
24349 if( status ) return status;
24350 status = pthread_create( &t, &attr, task, NULL );
24351 #if HAVE_PTHREADS < 7
24352 if( status < 0 ) status = errno;
24354 if( status ) return status;
24356 /* Draft 4 pthreads */
24357 status = pthread_create( &t, pthread_attr_default, task, NULL );
24358 if( status ) return errno;
24360 /* give thread a chance to complete */
24361 /* it should remain joinable and hence detachable */
24364 status = pthread_detach( &t );
24365 if( status ) return errno;
24368 #ifdef HAVE_LINUX_THREADS
24369 pthread_kill_other_threads_np();
24378 rm -f conftest.$ac_objext conftest$ac_exeext
24379 if { (ac_try="$ac_link"
24380 case "(($ac_try" in
24381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24382 *) ac_try_echo=$ac_try;;
24384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24385 (eval "$ac_link") 2>conftest.er1
24387 grep -v '^ *+' conftest.er1 >conftest.err
24389 cat conftest.err >&5
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); } && {
24392 test -z "$ac_c_werror_flag" ||
24393 test ! -s conftest.err
24394 } && test -s conftest$ac_exeext &&
24395 $as_test_x conftest$ac_exeext; then
24396 ol_cv_pthread_lib_lpthreads=yes
24398 echo "$as_me: failed program was:" >&5
24399 sed 's/^/| /' conftest.$ac_ext >&5
24401 ol_cv_pthread_lib_lpthreads=no
24404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24405 conftest$ac_exeext conftest.$ac_ext
24407 cat >conftest.$ac_ext <<_ACEOF
24410 cat confdefs.h >>conftest.$ac_ext
24411 cat >>conftest.$ac_ext <<_ACEOF
24412 /* end confdefs.h. */
24414 /* pthread test headers */
24415 #include <pthread.h>
24416 #if HAVE_PTHREADS < 7
24420 #define NULL (void*)0
24423 static void *task(p)
24426 return (void *) (p == NULL);
24430 int main(argc, argv)
24435 /* pthread test function */
24436 #ifndef PTHREAD_CREATE_DETACHED
24437 #define PTHREAD_CREATE_DETACHED 1
24441 int detach = PTHREAD_CREATE_DETACHED;
24443 #if HAVE_PTHREADS > 4
24444 /* Final pthreads */
24445 pthread_attr_t attr;
24447 status = pthread_attr_init(&attr);
24448 if( status ) return status;
24450 #if HAVE_PTHREADS < 7
24451 status = pthread_attr_setdetachstate(&attr, &detach);
24452 if( status < 0 ) status = errno;
24454 status = pthread_attr_setdetachstate(&attr, detach);
24456 if( status ) return status;
24457 status = pthread_create( &t, &attr, task, NULL );
24458 #if HAVE_PTHREADS < 7
24459 if( status < 0 ) status = errno;
24461 if( status ) return status;
24463 /* Draft 4 pthreads */
24464 status = pthread_create( &t, pthread_attr_default, task, NULL );
24465 if( status ) return errno;
24467 /* give thread a chance to complete */
24468 /* it should remain joinable and hence detachable */
24471 status = pthread_detach( &t );
24472 if( status ) return errno;
24475 #ifdef HAVE_LINUX_THREADS
24476 pthread_kill_other_threads_np();
24484 rm -f conftest$ac_exeext
24485 if { (ac_try="$ac_link"
24486 case "(($ac_try" in
24487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488 *) ac_try_echo=$ac_try;;
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491 (eval "$ac_link") 2>&5
24493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24495 { (case "(($ac_try" in
24496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497 *) ac_try_echo=$ac_try;;
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500 (eval "$ac_try") 2>&5
24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24503 (exit $ac_status); }; }; then
24504 ol_cv_pthread_lib_lpthreads=yes
24506 echo "$as_me: program exited with status $ac_status" >&5
24507 echo "$as_me: failed program was:" >&5
24508 sed 's/^/| /' conftest.$ac_ext >&5
24510 ( exit $ac_status )
24511 ol_cv_pthread_lib_lpthreads=no
24513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24522 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24523 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24525 if test $ol_cv_pthread_lib_lpthreads = yes ; then
24526 ol_link_pthreads="-lpthreads"
24527 ol_link_threads=posix
24532 if test $ol_link_threads != no ; then
24533 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24535 save_CPPFLAGS="$CPPFLAGS"
24537 LIBS="$LTHREAD_LIBS $LIBS"
24542 for ac_func in sched_yield pthread_yield thr_yield
24544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24550 cat >conftest.$ac_ext <<_ACEOF
24553 cat confdefs.h >>conftest.$ac_ext
24554 cat >>conftest.$ac_ext <<_ACEOF
24555 /* end confdefs.h. */
24556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24558 #define $ac_func innocuous_$ac_func
24560 /* System header to define __stub macros and hopefully few prototypes,
24561 which can conflict with char $ac_func (); below.
24562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24563 <limits.h> exists even on freestanding compilers. */
24566 # include <limits.h>
24568 # include <assert.h>
24573 /* Override any GCC internal prototype to avoid an error.
24574 Use char because int might match the return type of a GCC
24575 builtin and then its argument prototype would still apply. */
24580 /* The GNU C library defines this for functions which it implements
24581 to always fail with ENOSYS. Some functions are actually named
24582 something starting with __ and the normal name is an alias. */
24583 #if defined __stub_$ac_func || defined __stub___$ac_func
24590 return $ac_func ();
24595 rm -f conftest.$ac_objext conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599 *) ac_try_echo=$ac_try;;
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602 (eval "$ac_link") 2>conftest.er1
24604 grep -v '^ *+' conftest.er1 >conftest.err
24606 cat conftest.err >&5
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); } && {
24609 test -z "$ac_c_werror_flag" ||
24610 test ! -s conftest.err
24611 } && test -s conftest$ac_exeext &&
24612 $as_test_x conftest$ac_exeext; then
24613 eval "$as_ac_var=yes"
24615 echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 eval "$as_ac_var=no"
24621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24622 conftest$ac_exeext conftest.$ac_ext
24624 ac_res=`eval echo '${'$as_ac_var'}'`
24625 { echo "$as_me:$LINENO: result: $ac_res" >&5
24626 echo "${ECHO_T}$ac_res" >&6; }
24627 if test `eval echo '${'$as_ac_var'}'` = yes; then
24628 cat >>confdefs.h <<_ACEOF
24629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24636 if test $ac_cv_func_sched_yield = no &&
24637 test $ac_cv_func_pthread_yield = no &&
24638 test $ac_cv_func_thr_yield = no ; then
24639 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24640 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24641 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24642 echo $ECHO_N "(cached) $ECHO_C" >&6
24644 ac_check_lib_save_LIBS=$LIBS
24646 cat >conftest.$ac_ext <<_ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24653 /* Override any GCC internal prototype to avoid an error.
24654 Use char because int might match the return type of a GCC
24655 builtin and then its argument prototype would still apply. */
24659 char sched_yield ();
24663 return sched_yield ();
24668 rm -f conftest.$ac_objext conftest$ac_exeext
24669 if { (ac_try="$ac_link"
24670 case "(($ac_try" in
24671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24672 *) ac_try_echo=$ac_try;;
24674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24675 (eval "$ac_link") 2>conftest.er1
24677 grep -v '^ *+' conftest.er1 >conftest.err
24679 cat conftest.err >&5
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } && {
24682 test -z "$ac_c_werror_flag" ||
24683 test ! -s conftest.err
24684 } && test -s conftest$ac_exeext &&
24685 $as_test_x conftest$ac_exeext; then
24686 ac_cv_lib_rt_sched_yield=yes
24688 echo "$as_me: failed program was:" >&5
24689 sed 's/^/| /' conftest.$ac_ext >&5
24691 ac_cv_lib_rt_sched_yield=no
24694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24695 conftest$ac_exeext conftest.$ac_ext
24696 LIBS=$ac_check_lib_save_LIBS
24698 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24699 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24700 if test $ac_cv_lib_rt_sched_yield = yes; then
24701 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24703 cat >>confdefs.h <<\_ACEOF
24704 #define HAVE_SCHED_YIELD 1
24707 ac_cv_func_sched_yield=yes
24709 ac_cv_func_sched_yield=no
24713 if test $ac_cv_func_sched_yield = no &&
24714 test $ac_cv_func_pthread_yield = no &&
24715 test "$ac_cv_func_thr_yield" = no ; then
24716 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24717 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24721 for ac_func in pthread_kill
24723 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24724 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24725 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24727 echo $ECHO_N "(cached) $ECHO_C" >&6
24729 cat >conftest.$ac_ext <<_ACEOF
24732 cat confdefs.h >>conftest.$ac_ext
24733 cat >>conftest.$ac_ext <<_ACEOF
24734 /* end confdefs.h. */
24735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24737 #define $ac_func innocuous_$ac_func
24739 /* System header to define __stub macros and hopefully few prototypes,
24740 which can conflict with char $ac_func (); below.
24741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24742 <limits.h> exists even on freestanding compilers. */
24745 # include <limits.h>
24747 # include <assert.h>
24752 /* Override any GCC internal prototype to avoid an error.
24753 Use char because int might match the return type of a GCC
24754 builtin and then its argument prototype would still apply. */
24759 /* The GNU C library defines this for functions which it implements
24760 to always fail with ENOSYS. Some functions are actually named
24761 something starting with __ and the normal name is an alias. */
24762 #if defined __stub_$ac_func || defined __stub___$ac_func
24769 return $ac_func ();
24774 rm -f conftest.$ac_objext conftest$ac_exeext
24775 if { (ac_try="$ac_link"
24776 case "(($ac_try" in
24777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778 *) ac_try_echo=$ac_try;;
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781 (eval "$ac_link") 2>conftest.er1
24783 grep -v '^ *+' conftest.er1 >conftest.err
24785 cat conftest.err >&5
24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787 (exit $ac_status); } && {
24788 test -z "$ac_c_werror_flag" ||
24789 test ! -s conftest.err
24790 } && test -s conftest$ac_exeext &&
24791 $as_test_x conftest$ac_exeext; then
24792 eval "$as_ac_var=yes"
24794 echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24797 eval "$as_ac_var=no"
24800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24801 conftest$ac_exeext conftest.$ac_ext
24803 ac_res=`eval echo '${'$as_ac_var'}'`
24804 { echo "$as_me:$LINENO: result: $ac_res" >&5
24805 echo "${ECHO_T}$ac_res" >&6; }
24806 if test `eval echo '${'$as_ac_var'}'` = yes; then
24807 cat >>confdefs.h <<_ACEOF
24808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24815 { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24816 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24817 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24818 echo $ECHO_N "(cached) $ECHO_C" >&6
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24828 #include <pthread.h>
24829 pthread_rwlock_t rwlock;
24834 pthread_rwlock_destroy(&rwlock);
24839 rm -f conftest.$ac_objext conftest$ac_exeext
24840 if { (ac_try="$ac_link"
24841 case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846 (eval "$ac_link") 2>conftest.er1
24848 grep -v '^ *+' conftest.er1 >conftest.err
24850 cat conftest.err >&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } && {
24853 test -z "$ac_c_werror_flag" ||
24854 test ! -s conftest.err
24855 } && test -s conftest$ac_exeext &&
24856 $as_test_x conftest$ac_exeext; then
24857 ol_cv_func_pthread_rwlock_destroy=yes
24859 echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24862 ol_cv_func_pthread_rwlock_destroy=no
24865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24866 conftest$ac_exeext conftest.$ac_ext
24869 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24870 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24871 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24873 cat >>confdefs.h <<\_ACEOF
24874 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24879 { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24880 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24881 if test "${ol_cv_func_pthread_detach+set}" = set; then
24882 echo $ECHO_N "(cached) $ECHO_C" >&6
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24892 #include <pthread.h>
24894 #define NULL (void*)0
24900 pthread_detach(NULL);
24905 rm -f conftest.$ac_objext conftest$ac_exeext
24906 if { (ac_try="$ac_link"
24907 case "(($ac_try" in
24908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24909 *) ac_try_echo=$ac_try;;
24911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24912 (eval "$ac_link") 2>conftest.er1
24914 grep -v '^ *+' conftest.er1 >conftest.err
24916 cat conftest.err >&5
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); } && {
24919 test -z "$ac_c_werror_flag" ||
24920 test ! -s conftest.err
24921 } && test -s conftest$ac_exeext &&
24922 $as_test_x conftest$ac_exeext; then
24923 ol_cv_func_pthread_detach=yes
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24928 ol_cv_func_pthread_detach=no
24931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24932 conftest$ac_exeext conftest.$ac_ext
24935 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24936 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24938 if test $ol_cv_func_pthread_detach = no ; then
24939 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24940 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24941 { (exit 1); exit 1; }; }
24945 cat >>confdefs.h <<\_ACEOF
24946 #define HAVE_PTHREAD_DETACH 1
24955 pthread_setconcurrency \
24956 pthread_getconcurrency \
24957 thr_setconcurrency \
24958 thr_getconcurrency \
24961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24962 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24964 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24965 echo $ECHO_N "(cached) $ECHO_C" >&6
24967 cat >conftest.$ac_ext <<_ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h. */
24973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24975 #define $ac_func innocuous_$ac_func
24977 /* System header to define __stub macros and hopefully few prototypes,
24978 which can conflict with char $ac_func (); below.
24979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24980 <limits.h> exists even on freestanding compilers. */
24983 # include <limits.h>
24985 # include <assert.h>
24990 /* Override any GCC internal prototype to avoid an error.
24991 Use char because int might match the return type of a GCC
24992 builtin and then its argument prototype would still apply. */
24997 /* The GNU C library defines this for functions which it implements
24998 to always fail with ENOSYS. Some functions are actually named
24999 something starting with __ and the normal name is an alias. */
25000 #if defined __stub_$ac_func || defined __stub___$ac_func
25007 return $ac_func ();
25012 rm -f conftest.$ac_objext conftest$ac_exeext
25013 if { (ac_try="$ac_link"
25014 case "(($ac_try" in
25015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25016 *) ac_try_echo=$ac_try;;
25018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25019 (eval "$ac_link") 2>conftest.er1
25021 grep -v '^ *+' conftest.er1 >conftest.err
25023 cat conftest.err >&5
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); } && {
25026 test -z "$ac_c_werror_flag" ||
25027 test ! -s conftest.err
25028 } && test -s conftest$ac_exeext &&
25029 $as_test_x conftest$ac_exeext; then
25030 eval "$as_ac_var=yes"
25032 echo "$as_me: failed program was:" >&5
25033 sed 's/^/| /' conftest.$ac_ext >&5
25035 eval "$as_ac_var=no"
25038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25039 conftest$ac_exeext conftest.$ac_ext
25041 ac_res=`eval echo '${'$as_ac_var'}'`
25042 { echo "$as_me:$LINENO: result: $ac_res" >&5
25043 echo "${ECHO_T}$ac_res" >&6; }
25044 if test `eval echo '${'$as_ac_var'}'` = yes; then
25045 cat >>confdefs.h <<_ACEOF
25046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25055 for ac_func in pthread_kill_other_threads_np
25057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25061 echo $ECHO_N "(cached) $ECHO_C" >&6
25063 cat >conftest.$ac_ext <<_ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h. */
25069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25071 #define $ac_func innocuous_$ac_func
25073 /* System header to define __stub macros and hopefully few prototypes,
25074 which can conflict with char $ac_func (); below.
25075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25076 <limits.h> exists even on freestanding compilers. */
25079 # include <limits.h>
25081 # include <assert.h>
25086 /* Override any GCC internal prototype to avoid an error.
25087 Use char because int might match the return type of a GCC
25088 builtin and then its argument prototype would still apply. */
25093 /* The GNU C library defines this for functions which it implements
25094 to always fail with ENOSYS. Some functions are actually named
25095 something starting with __ and the normal name is an alias. */
25096 #if defined __stub_$ac_func || defined __stub___$ac_func
25103 return $ac_func ();
25108 rm -f conftest.$ac_objext conftest$ac_exeext
25109 if { (ac_try="$ac_link"
25110 case "(($ac_try" in
25111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25112 *) ac_try_echo=$ac_try;;
25114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25115 (eval "$ac_link") 2>conftest.er1
25117 grep -v '^ *+' conftest.er1 >conftest.err
25119 cat conftest.err >&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); } && {
25122 test -z "$ac_c_werror_flag" ||
25123 test ! -s conftest.err
25124 } && test -s conftest$ac_exeext &&
25125 $as_test_x conftest$ac_exeext; then
25126 eval "$as_ac_var=yes"
25128 echo "$as_me: failed program was:" >&5
25129 sed 's/^/| /' conftest.$ac_ext >&5
25131 eval "$as_ac_var=no"
25134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25135 conftest$ac_exeext conftest.$ac_ext
25137 ac_res=`eval echo '${'$as_ac_var'}'`
25138 { echo "$as_me:$LINENO: result: $ac_res" >&5
25139 echo "${ECHO_T}$ac_res" >&6; }
25140 if test `eval echo '${'$as_ac_var'}'` = yes; then
25141 cat >>confdefs.h <<_ACEOF
25142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25148 { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25149 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25150 if test "${ol_cv_sys_linux_threads+set}" = set; then
25151 echo $ECHO_N "(cached) $ECHO_C" >&6
25153 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25155 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25156 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25161 { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25162 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25163 if test "${ol_cv_linux_threads+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
25167 if test $ol_cv_header_linux_threads = yes &&
25168 test $ol_cv_sys_linux_threads = yes; then
25169 ol_cv_linux_threads=yes
25170 elif test $ol_cv_header_linux_threads = no &&
25171 test $ol_cv_sys_linux_threads = no; then
25172 ol_cv_linux_threads=no
25174 ol_cv_linux_threads=error
25178 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25179 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25182 if test $ol_cv_linux_threads = error; then
25183 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25184 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25185 { (exit 1); exit 1; }; };
25188 { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25189 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25190 if test "${ol_cv_pthread_create_works+set}" = set; then
25191 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 if test "$cross_compiling" = yes; then
25195 ol_cv_pthread_create_works=yes
25197 cat >conftest.$ac_ext <<_ACEOF
25200 cat confdefs.h >>conftest.$ac_ext
25201 cat >>conftest.$ac_ext <<_ACEOF
25202 /* end confdefs.h. */
25204 /* pthread test headers */
25205 #include <pthread.h>
25206 #if HAVE_PTHREADS < 7
25210 #define NULL (void*)0
25213 static void *task(p)
25216 return (void *) (p == NULL);
25220 int main(argc, argv)
25225 /* pthread test function */
25226 #ifndef PTHREAD_CREATE_DETACHED
25227 #define PTHREAD_CREATE_DETACHED 1
25231 int detach = PTHREAD_CREATE_DETACHED;
25233 #if HAVE_PTHREADS > 4
25234 /* Final pthreads */
25235 pthread_attr_t attr;
25237 status = pthread_attr_init(&attr);
25238 if( status ) return status;
25240 #if HAVE_PTHREADS < 7
25241 status = pthread_attr_setdetachstate(&attr, &detach);
25242 if( status < 0 ) status = errno;
25244 status = pthread_attr_setdetachstate(&attr, detach);
25246 if( status ) return status;
25247 status = pthread_create( &t, &attr, task, NULL );
25248 #if HAVE_PTHREADS < 7
25249 if( status < 0 ) status = errno;
25251 if( status ) return status;
25253 /* Draft 4 pthreads */
25254 status = pthread_create( &t, pthread_attr_default, task, NULL );
25255 if( status ) return errno;
25257 /* give thread a chance to complete */
25258 /* it should remain joinable and hence detachable */
25261 status = pthread_detach( &t );
25262 if( status ) return errno;
25265 #ifdef HAVE_LINUX_THREADS
25266 pthread_kill_other_threads_np();
25274 rm -f conftest$ac_exeext
25275 if { (ac_try="$ac_link"
25276 case "(($ac_try" in
25277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25278 *) ac_try_echo=$ac_try;;
25280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25281 (eval "$ac_link") 2>&5
25283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25285 { (case "(($ac_try" in
25286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287 *) ac_try_echo=$ac_try;;
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290 (eval "$ac_try") 2>&5
25292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); }; }; then
25294 ol_cv_pthread_create_works=yes
25296 echo "$as_me: program exited with status $ac_status" >&5
25297 echo "$as_me: failed program was:" >&5
25298 sed 's/^/| /' conftest.$ac_ext >&5
25300 ( exit $ac_status )
25301 ol_cv_pthread_create_works=no
25303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25308 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25309 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25311 if test $ol_cv_pthread_create_works = no ; then
25312 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25313 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25314 { (exit 1); exit 1; }; }
25317 ol_replace_broken_yield=no
25319 if test $ol_replace_broken_yield = yes ; then
25321 cat >>confdefs.h <<\_ACEOF
25322 #define REPLACE_BROKEN_YIELD 1
25327 if test $ol_with_yielding_select = auto ; then
25328 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25329 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25330 if test "${ol_cv_pthread_select_yields+set}" = set; then
25331 echo $ECHO_N "(cached) $ECHO_C" >&6
25334 if test "$cross_compiling" = yes; then
25335 ol_cv_pthread_select_yields=cross
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25344 #include <sys/types.h>
25345 #include <sys/time.h>
25346 #include <unistd.h>
25347 #include <pthread.h>
25349 #define NULL (void*) 0
25352 static int fildes[2];
25354 static void *task(p)
25366 FD_SET(fildes[0], &rfds);
25368 /* we're not interested in any fds */
25369 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25376 exit(0); /* if we exit here, the select blocked the whole process */
25379 int main(argc, argv)
25385 /* create a pipe to select */
25386 if(pipe(&fildes[0])) {
25391 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25392 (void) pthread_setconcurrency(2);
25394 #ifdef HAVE_THR_SETCONCURRENCY
25395 /* Set Solaris LWP concurrency to 2 */
25396 thr_setconcurrency(2);
25400 #if HAVE_PTHREADS < 6
25401 pthread_create(&t, pthread_attr_default, task, NULL);
25403 pthread_create(&t, NULL, task, NULL);
25406 /* make sure task runs first */
25407 #ifdef HAVE_THR_YIELD
25409 #elif defined( HAVE_SCHED_YIELD )
25411 #elif defined( HAVE_PTHREAD_YIELD )
25418 rm -f conftest$ac_exeext
25419 if { (ac_try="$ac_link"
25420 case "(($ac_try" in
25421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25422 *) ac_try_echo=$ac_try;;
25424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25425 (eval "$ac_link") 2>&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25429 { (case "(($ac_try" in
25430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25431 *) ac_try_echo=$ac_try;;
25433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25434 (eval "$ac_try") 2>&5
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); }; }; then
25438 ol_cv_pthread_select_yields=no
25440 echo "$as_me: program exited with status $ac_status" >&5
25441 echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.$ac_ext >&5
25444 ( exit $ac_status )
25445 ol_cv_pthread_select_yields=yes
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25452 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25453 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25455 if test $ol_cv_pthread_select_yields = cross ; then
25456 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25457 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25458 { (exit 1); exit 1; }; }
25461 if test $ol_cv_pthread_select_yields = yes ; then
25462 ol_with_yielding_select=yes
25466 CPPFLAGS="$save_CPPFLAGS"
25469 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25470 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25471 { (exit 1); exit 1; }; }
25475 if test $ol_with_threads = posix ; then
25476 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25477 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25478 { (exit 1); exit 1; }; }
25483 case $ol_with_threads in auto | yes | mach)
25487 for ac_header in mach/cthreads.h cthreads.h
25489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 ac_res=`eval echo '${'$as_ac_Header'}'`
25497 { echo "$as_me:$LINENO: result: $ac_res" >&5
25498 echo "${ECHO_T}$ac_res" >&6; }
25500 # Is the header compilable?
25501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25503 cat >conftest.$ac_ext <<_ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h. */
25509 $ac_includes_default
25510 #include <$ac_header>
25512 rm -f conftest.$ac_objext
25513 if { (ac_try="$ac_compile"
25514 case "(($ac_try" in
25515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25516 *) ac_try_echo=$ac_try;;
25518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25519 (eval "$ac_compile") 2>conftest.er1
25521 grep -v '^ *+' conftest.er1 >conftest.err
25523 cat conftest.err >&5
25524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25525 (exit $ac_status); } && {
25526 test -z "$ac_c_werror_flag" ||
25527 test ! -s conftest.err
25528 } && test -s conftest.$ac_objext; then
25529 ac_header_compiler=yes
25531 echo "$as_me: failed program was:" >&5
25532 sed 's/^/| /' conftest.$ac_ext >&5
25534 ac_header_compiler=no
25537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25539 echo "${ECHO_T}$ac_header_compiler" >&6; }
25541 # Is the header present?
25542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25544 cat >conftest.$ac_ext <<_ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h. */
25550 #include <$ac_header>
25552 if { (ac_try="$ac_cpp conftest.$ac_ext"
25553 case "(($ac_try" in
25554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555 *) ac_try_echo=$ac_try;;
25557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25560 grep -v '^ *+' conftest.er1 >conftest.err
25562 cat conftest.err >&5
25563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25564 (exit $ac_status); } >/dev/null && {
25565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25566 test ! -s conftest.err
25568 ac_header_preproc=yes
25570 echo "$as_me: failed program was:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 ac_header_preproc=no
25576 rm -f conftest.err conftest.$ac_ext
25577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25578 echo "${ECHO_T}$ac_header_preproc" >&6; }
25580 # So? What about this header?
25581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25587 ac_header_preproc=yes
25590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25603 ## --------------------------------------------- ##
25604 ## Report this to <http://www.openldap.org/its/> ##
25605 ## --------------------------------------------- ##
25607 ) | sed "s/^/$as_me: WARNING: /" >&2
25610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25615 eval "$as_ac_Header=\$ac_header_preproc"
25617 ac_res=`eval echo '${'$as_ac_Header'}'`
25618 { echo "$as_me:$LINENO: result: $ac_res" >&5
25619 echo "${ECHO_T}$ac_res" >&6; }
25622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25623 cat >>confdefs.h <<_ACEOF
25624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25631 if test $ac_cv_header_mach_cthreads_h = yes ; then
25632 ol_with_threads=found
25634 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25635 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25636 if test "${ac_cv_func_cthread_fork+set}" = set; then
25637 echo $ECHO_N "(cached) $ECHO_C" >&6
25639 cat >conftest.$ac_ext <<_ACEOF
25642 cat confdefs.h >>conftest.$ac_ext
25643 cat >>conftest.$ac_ext <<_ACEOF
25644 /* end confdefs.h. */
25645 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25647 #define cthread_fork innocuous_cthread_fork
25649 /* System header to define __stub macros and hopefully few prototypes,
25650 which can conflict with char cthread_fork (); below.
25651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25652 <limits.h> exists even on freestanding compilers. */
25655 # include <limits.h>
25657 # include <assert.h>
25660 #undef cthread_fork
25662 /* Override any GCC internal prototype to avoid an error.
25663 Use char because int might match the return type of a GCC
25664 builtin and then its argument prototype would still apply. */
25668 char cthread_fork ();
25669 /* The GNU C library defines this for functions which it implements
25670 to always fail with ENOSYS. Some functions are actually named
25671 something starting with __ and the normal name is an alias. */
25672 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25679 return cthread_fork ();
25684 rm -f conftest.$ac_objext conftest$ac_exeext
25685 if { (ac_try="$ac_link"
25686 case "(($ac_try" in
25687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688 *) ac_try_echo=$ac_try;;
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691 (eval "$ac_link") 2>conftest.er1
25693 grep -v '^ *+' conftest.er1 >conftest.err
25695 cat conftest.err >&5
25696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697 (exit $ac_status); } && {
25698 test -z "$ac_c_werror_flag" ||
25699 test ! -s conftest.err
25700 } && test -s conftest$ac_exeext &&
25701 $as_test_x conftest$ac_exeext; then
25702 ac_cv_func_cthread_fork=yes
25704 echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25707 ac_cv_func_cthread_fork=no
25710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25711 conftest$ac_exeext conftest.$ac_ext
25713 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25714 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25715 if test $ac_cv_func_cthread_fork = yes; then
25716 ol_link_threads=yes
25720 if test $ol_link_threads = no ; then
25721 { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25722 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25723 if test "${ol_cv_cthread_all_load+set}" = set; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25728 LIBS="-all_load $LIBS"
25729 cat >conftest.$ac_ext <<_ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h. */
25735 #include <mach/cthreads.h>
25740 cthread_fork((void *)0, (void *)0);
25746 rm -f conftest.$ac_objext conftest$ac_exeext
25747 if { (ac_try="$ac_link"
25748 case "(($ac_try" in
25749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25750 *) ac_try_echo=$ac_try;;
25752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25753 (eval "$ac_link") 2>conftest.er1
25755 grep -v '^ *+' conftest.er1 >conftest.err
25757 cat conftest.err >&5
25758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759 (exit $ac_status); } && {
25760 test -z "$ac_c_werror_flag" ||
25761 test ! -s conftest.err
25762 } && test -s conftest$ac_exeext &&
25763 $as_test_x conftest$ac_exeext; then
25764 ol_cv_cthread_all_load=yes
25766 echo "$as_me: failed program was:" >&5
25767 sed 's/^/| /' conftest.$ac_ext >&5
25769 ol_cv_cthread_all_load=no
25772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25773 conftest$ac_exeext conftest.$ac_ext
25777 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25778 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25780 if test $ol_cv_cthread_all_load = yes ; then
25781 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25782 ol_link_threads=mach
25783 ol_with_threads=found
25787 elif test $ac_cv_header_cthreads_h = yes ; then
25789 ol_with_threads=found
25792 LIBS="$LIBS -lthreads"
25793 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25794 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25795 if test "${ac_cv_func_cthread_fork+set}" = set; then
25796 echo $ECHO_N "(cached) $ECHO_C" >&6
25798 cat >conftest.$ac_ext <<_ACEOF
25801 cat confdefs.h >>conftest.$ac_ext
25802 cat >>conftest.$ac_ext <<_ACEOF
25803 /* end confdefs.h. */
25804 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25806 #define cthread_fork innocuous_cthread_fork
25808 /* System header to define __stub macros and hopefully few prototypes,
25809 which can conflict with char cthread_fork (); below.
25810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25811 <limits.h> exists even on freestanding compilers. */
25814 # include <limits.h>
25816 # include <assert.h>
25819 #undef cthread_fork
25821 /* Override any GCC internal prototype to avoid an error.
25822 Use char because int might match the return type of a GCC
25823 builtin and then its argument prototype would still apply. */
25827 char cthread_fork ();
25828 /* The GNU C library defines this for functions which it implements
25829 to always fail with ENOSYS. Some functions are actually named
25830 something starting with __ and the normal name is an alias. */
25831 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25838 return cthread_fork ();
25843 rm -f conftest.$ac_objext conftest$ac_exeext
25844 if { (ac_try="$ac_link"
25845 case "(($ac_try" in
25846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25847 *) ac_try_echo=$ac_try;;
25849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25850 (eval "$ac_link") 2>conftest.er1
25852 grep -v '^ *+' conftest.er1 >conftest.err
25854 cat conftest.err >&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } && {
25857 test -z "$ac_c_werror_flag" ||
25858 test ! -s conftest.err
25859 } && test -s conftest$ac_exeext &&
25860 $as_test_x conftest$ac_exeext; then
25861 ac_cv_func_cthread_fork=yes
25863 echo "$as_me: failed program was:" >&5
25864 sed 's/^/| /' conftest.$ac_ext >&5
25866 ac_cv_func_cthread_fork=no
25869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25870 conftest$ac_exeext conftest.$ac_ext
25872 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25873 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25874 if test $ac_cv_func_cthread_fork = yes; then
25875 ol_link_threads=yes
25880 if test $ol_link_threads = yes ; then
25881 LTHREAD_LIBS="-lthreads"
25882 ol_link_threads=mach
25883 ol_with_threads=found
25885 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25886 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25887 { (exit 1); exit 1; }; }
25890 elif test $ol_with_threads = mach ; then
25891 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25892 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25893 { (exit 1); exit 1; }; }
25896 if test $ol_link_threads = mach ; then
25898 cat >>confdefs.h <<\_ACEOF
25899 #define HAVE_MACH_CTHREADS 1
25902 elif test $ol_with_threads = found ; then
25903 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25904 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25905 { (exit 1); exit 1; }; }
25910 case $ol_with_threads in auto | yes | pth)
25913 for ac_header in pth.h
25915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25920 echo $ECHO_N "(cached) $ECHO_C" >&6
25922 ac_res=`eval echo '${'$as_ac_Header'}'`
25923 { echo "$as_me:$LINENO: result: $ac_res" >&5
25924 echo "${ECHO_T}$ac_res" >&6; }
25926 # Is the header compilable?
25927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25929 cat >conftest.$ac_ext <<_ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h. */
25935 $ac_includes_default
25936 #include <$ac_header>
25938 rm -f conftest.$ac_objext
25939 if { (ac_try="$ac_compile"
25940 case "(($ac_try" in
25941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25942 *) ac_try_echo=$ac_try;;
25944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25945 (eval "$ac_compile") 2>conftest.er1
25947 grep -v '^ *+' conftest.er1 >conftest.err
25949 cat conftest.err >&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); } && {
25952 test -z "$ac_c_werror_flag" ||
25953 test ! -s conftest.err
25954 } && test -s conftest.$ac_objext; then
25955 ac_header_compiler=yes
25957 echo "$as_me: failed program was:" >&5
25958 sed 's/^/| /' conftest.$ac_ext >&5
25960 ac_header_compiler=no
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25965 echo "${ECHO_T}$ac_header_compiler" >&6; }
25967 # Is the header present?
25968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25970 cat >conftest.$ac_ext <<_ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25976 #include <$ac_header>
25978 if { (ac_try="$ac_cpp conftest.$ac_ext"
25979 case "(($ac_try" in
25980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25981 *) ac_try_echo=$ac_try;;
25983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25986 grep -v '^ *+' conftest.er1 >conftest.err
25988 cat conftest.err >&5
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); } >/dev/null && {
25991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25992 test ! -s conftest.err
25994 ac_header_preproc=yes
25996 echo "$as_me: failed program was:" >&5
25997 sed 's/^/| /' conftest.$ac_ext >&5
25999 ac_header_preproc=no
26002 rm -f conftest.err conftest.$ac_ext
26003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26004 echo "${ECHO_T}$ac_header_preproc" >&6; }
26006 # So? What about this header?
26007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26013 ac_header_preproc=yes
26016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26029 ## --------------------------------------------- ##
26030 ## Report this to <http://www.openldap.org/its/> ##
26031 ## --------------------------------------------- ##
26033 ) | sed "s/^/$as_me: WARNING: /" >&2
26036 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26039 echo $ECHO_N "(cached) $ECHO_C" >&6
26041 eval "$as_ac_Header=\$ac_header_preproc"
26043 ac_res=`eval echo '${'$as_ac_Header'}'`
26044 { echo "$as_me:$LINENO: result: $ac_res" >&5
26045 echo "${ECHO_T}$ac_res" >&6; }
26048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26049 cat >>confdefs.h <<_ACEOF
26050 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26058 if test $ac_cv_header_pth_h = yes ; then
26059 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26060 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26061 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26064 ac_check_lib_save_LIBS=$LIBS
26066 cat >conftest.$ac_ext <<_ACEOF
26069 cat confdefs.h >>conftest.$ac_ext
26070 cat >>conftest.$ac_ext <<_ACEOF
26071 /* end confdefs.h. */
26073 /* Override any GCC internal prototype to avoid an error.
26074 Use char because int might match the return type of a GCC
26075 builtin and then its argument prototype would still apply. */
26079 char pth_version ();
26083 return pth_version ();
26088 rm -f conftest.$ac_objext conftest$ac_exeext
26089 if { (ac_try="$ac_link"
26090 case "(($ac_try" in
26091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26092 *) ac_try_echo=$ac_try;;
26094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26095 (eval "$ac_link") 2>conftest.er1
26097 grep -v '^ *+' conftest.er1 >conftest.err
26099 cat conftest.err >&5
26100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101 (exit $ac_status); } && {
26102 test -z "$ac_c_werror_flag" ||
26103 test ! -s conftest.err
26104 } && test -s conftest$ac_exeext &&
26105 $as_test_x conftest$ac_exeext; then
26106 ac_cv_lib_pth_pth_version=yes
26108 echo "$as_me: failed program was:" >&5
26109 sed 's/^/| /' conftest.$ac_ext >&5
26111 ac_cv_lib_pth_pth_version=no
26114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26115 conftest$ac_exeext conftest.$ac_ext
26116 LIBS=$ac_check_lib_save_LIBS
26118 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26119 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26120 if test $ac_cv_lib_pth_pth_version = yes; then
26127 if test $have_pth = yes ; then
26129 cat >>confdefs.h <<\_ACEOF
26130 #define HAVE_GNU_PTH 1
26133 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26134 ol_link_threads=pth
26135 ol_with_threads=found
26137 if test $ol_with_yielding_select = auto ; then
26138 ol_with_yielding_select=yes
26145 case $ol_with_threads in auto | yes | lwp)
26149 for ac_header in thread.h synch.h
26151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26156 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 ac_res=`eval echo '${'$as_ac_Header'}'`
26159 { echo "$as_me:$LINENO: result: $ac_res" >&5
26160 echo "${ECHO_T}$ac_res" >&6; }
26162 # Is the header compilable?
26163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26165 cat >conftest.$ac_ext <<_ACEOF
26168 cat confdefs.h >>conftest.$ac_ext
26169 cat >>conftest.$ac_ext <<_ACEOF
26170 /* end confdefs.h. */
26171 $ac_includes_default
26172 #include <$ac_header>
26174 rm -f conftest.$ac_objext
26175 if { (ac_try="$ac_compile"
26176 case "(($ac_try" in
26177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26178 *) ac_try_echo=$ac_try;;
26180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26181 (eval "$ac_compile") 2>conftest.er1
26183 grep -v '^ *+' conftest.er1 >conftest.err
26185 cat conftest.err >&5
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); } && {
26188 test -z "$ac_c_werror_flag" ||
26189 test ! -s conftest.err
26190 } && test -s conftest.$ac_objext; then
26191 ac_header_compiler=yes
26193 echo "$as_me: failed program was:" >&5
26194 sed 's/^/| /' conftest.$ac_ext >&5
26196 ac_header_compiler=no
26199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26201 echo "${ECHO_T}$ac_header_compiler" >&6; }
26203 # Is the header present?
26204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26206 cat >conftest.$ac_ext <<_ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h. */
26212 #include <$ac_header>
26214 if { (ac_try="$ac_cpp conftest.$ac_ext"
26215 case "(($ac_try" in
26216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217 *) ac_try_echo=$ac_try;;
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26222 grep -v '^ *+' conftest.er1 >conftest.err
26224 cat conftest.err >&5
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); } >/dev/null && {
26227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26228 test ! -s conftest.err
26230 ac_header_preproc=yes
26232 echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26235 ac_header_preproc=no
26238 rm -f conftest.err conftest.$ac_ext
26239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26240 echo "${ECHO_T}$ac_header_preproc" >&6; }
26242 # So? What about this header?
26243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26249 ac_header_preproc=yes
26252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26265 ## --------------------------------------------- ##
26266 ## Report this to <http://www.openldap.org/its/> ##
26267 ## --------------------------------------------- ##
26269 ) | sed "s/^/$as_me: WARNING: /" >&2
26272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26275 echo $ECHO_N "(cached) $ECHO_C" >&6
26277 eval "$as_ac_Header=\$ac_header_preproc"
26279 ac_res=`eval echo '${'$as_ac_Header'}'`
26280 { echo "$as_me:$LINENO: result: $ac_res" >&5
26281 echo "${ECHO_T}$ac_res" >&6; }
26284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26285 cat >>confdefs.h <<_ACEOF
26286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26293 if test $ac_cv_header_thread_h = yes &&
26294 test $ac_cv_header_synch_h = yes ; then
26295 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26296 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26297 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26298 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 ac_check_lib_save_LIBS=$LIBS
26301 LIBS="-lthread $LIBS"
26302 cat >conftest.$ac_ext <<_ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26309 /* Override any GCC internal prototype to avoid an error.
26310 Use char because int might match the return type of a GCC
26311 builtin and then its argument prototype would still apply. */
26315 char thr_create ();
26319 return thr_create ();
26324 rm -f conftest.$ac_objext conftest$ac_exeext
26325 if { (ac_try="$ac_link"
26326 case "(($ac_try" in
26327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26328 *) ac_try_echo=$ac_try;;
26330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26331 (eval "$ac_link") 2>conftest.er1
26333 grep -v '^ *+' conftest.er1 >conftest.err
26335 cat conftest.err >&5
26336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337 (exit $ac_status); } && {
26338 test -z "$ac_c_werror_flag" ||
26339 test ! -s conftest.err
26340 } && test -s conftest$ac_exeext &&
26341 $as_test_x conftest$ac_exeext; then
26342 ac_cv_lib_thread_thr_create=yes
26344 echo "$as_me: failed program was:" >&5
26345 sed 's/^/| /' conftest.$ac_ext >&5
26347 ac_cv_lib_thread_thr_create=no
26350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26351 conftest$ac_exeext conftest.$ac_ext
26352 LIBS=$ac_check_lib_save_LIBS
26354 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26355 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26356 if test $ac_cv_lib_thread_thr_create = yes; then
26363 if test $have_thr = yes ; then
26365 cat >>confdefs.h <<\_ACEOF
26369 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26370 ol_link_threads=thr
26372 if test $ol_with_yielding_select = auto ; then
26373 ol_with_yielding_select=yes
26379 thr_setconcurrency \
26380 thr_getconcurrency \
26383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26389 cat >conftest.$ac_ext <<_ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26397 #define $ac_func innocuous_$ac_func
26399 /* System header to define __stub macros and hopefully few prototypes,
26400 which can conflict with char $ac_func (); below.
26401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26402 <limits.h> exists even on freestanding compilers. */
26405 # include <limits.h>
26407 # include <assert.h>
26412 /* Override any GCC internal prototype to avoid an error.
26413 Use char because int might match the return type of a GCC
26414 builtin and then its argument prototype would still apply. */
26419 /* The GNU C library defines this for functions which it implements
26420 to always fail with ENOSYS. Some functions are actually named
26421 something starting with __ and the normal name is an alias. */
26422 #if defined __stub_$ac_func || defined __stub___$ac_func
26429 return $ac_func ();
26434 rm -f conftest.$ac_objext conftest$ac_exeext
26435 if { (ac_try="$ac_link"
26436 case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_link") 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } && {
26448 test -z "$ac_c_werror_flag" ||
26449 test ! -s conftest.err
26450 } && test -s conftest$ac_exeext &&
26451 $as_test_x conftest$ac_exeext; then
26452 eval "$as_ac_var=yes"
26454 echo "$as_me: failed program was:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26457 eval "$as_ac_var=no"
26460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461 conftest$ac_exeext conftest.$ac_ext
26463 ac_res=`eval echo '${'$as_ac_var'}'`
26464 { echo "$as_me:$LINENO: result: $ac_res" >&5
26465 echo "${ECHO_T}$ac_res" >&6; }
26466 if test `eval echo '${'$as_ac_var'}'` = yes; then
26467 cat >>confdefs.h <<_ACEOF
26468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26478 for ac_header in lwp/lwp.h
26480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26485 echo $ECHO_N "(cached) $ECHO_C" >&6
26487 ac_res=`eval echo '${'$as_ac_Header'}'`
26488 { echo "$as_me:$LINENO: result: $ac_res" >&5
26489 echo "${ECHO_T}$ac_res" >&6; }
26491 # Is the header compilable?
26492 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26494 cat >conftest.$ac_ext <<_ACEOF
26497 cat confdefs.h >>conftest.$ac_ext
26498 cat >>conftest.$ac_ext <<_ACEOF
26499 /* end confdefs.h. */
26500 $ac_includes_default
26501 #include <$ac_header>
26503 rm -f conftest.$ac_objext
26504 if { (ac_try="$ac_compile"
26505 case "(($ac_try" in
26506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26507 *) ac_try_echo=$ac_try;;
26509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26510 (eval "$ac_compile") 2>conftest.er1
26512 grep -v '^ *+' conftest.er1 >conftest.err
26514 cat conftest.err >&5
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); } && {
26517 test -z "$ac_c_werror_flag" ||
26518 test ! -s conftest.err
26519 } && test -s conftest.$ac_objext; then
26520 ac_header_compiler=yes
26522 echo "$as_me: failed program was:" >&5
26523 sed 's/^/| /' conftest.$ac_ext >&5
26525 ac_header_compiler=no
26528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26530 echo "${ECHO_T}$ac_header_compiler" >&6; }
26532 # Is the header present?
26533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26535 cat >conftest.$ac_ext <<_ACEOF
26538 cat confdefs.h >>conftest.$ac_ext
26539 cat >>conftest.$ac_ext <<_ACEOF
26540 /* end confdefs.h. */
26541 #include <$ac_header>
26543 if { (ac_try="$ac_cpp conftest.$ac_ext"
26544 case "(($ac_try" in
26545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546 *) ac_try_echo=$ac_try;;
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26551 grep -v '^ *+' conftest.er1 >conftest.err
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } >/dev/null && {
26556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26557 test ! -s conftest.err
26559 ac_header_preproc=yes
26561 echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26564 ac_header_preproc=no
26567 rm -f conftest.err conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26569 echo "${ECHO_T}$ac_header_preproc" >&6; }
26571 # So? What about this header?
26572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26578 ac_header_preproc=yes
26581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26594 ## --------------------------------------------- ##
26595 ## Report this to <http://www.openldap.org/its/> ##
26596 ## --------------------------------------------- ##
26598 ) | sed "s/^/$as_me: WARNING: /" >&2
26601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26606 eval "$as_ac_Header=\$ac_header_preproc"
26608 ac_res=`eval echo '${'$as_ac_Header'}'`
26609 { echo "$as_me:$LINENO: result: $ac_res" >&5
26610 echo "${ECHO_T}$ac_res" >&6; }
26613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26614 cat >>confdefs.h <<_ACEOF
26615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26622 if test $ac_cv_header_lwp_lwp_h = yes ; then
26623 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26624 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26625 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26626 echo $ECHO_N "(cached) $ECHO_C" >&6
26628 ac_check_lib_save_LIBS=$LIBS
26630 cat >conftest.$ac_ext <<_ACEOF
26633 cat confdefs.h >>conftest.$ac_ext
26634 cat >>conftest.$ac_ext <<_ACEOF
26635 /* end confdefs.h. */
26637 /* Override any GCC internal prototype to avoid an error.
26638 Use char because int might match the return type of a GCC
26639 builtin and then its argument prototype would still apply. */
26643 char lwp_create ();
26647 return lwp_create ();
26652 rm -f conftest.$ac_objext conftest$ac_exeext
26653 if { (ac_try="$ac_link"
26654 case "(($ac_try" in
26655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26656 *) ac_try_echo=$ac_try;;
26658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26659 (eval "$ac_link") 2>conftest.er1
26661 grep -v '^ *+' conftest.er1 >conftest.err
26663 cat conftest.err >&5
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); } && {
26666 test -z "$ac_c_werror_flag" ||
26667 test ! -s conftest.err
26668 } && test -s conftest$ac_exeext &&
26669 $as_test_x conftest$ac_exeext; then
26670 ac_cv_lib_lwp_lwp_create=yes
26672 echo "$as_me: failed program was:" >&5
26673 sed 's/^/| /' conftest.$ac_ext >&5
26675 ac_cv_lib_lwp_lwp_create=no
26678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26679 conftest$ac_exeext conftest.$ac_ext
26680 LIBS=$ac_check_lib_save_LIBS
26682 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26683 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26684 if test $ac_cv_lib_lwp_lwp_create = yes; then
26691 if test $have_lwp = yes ; then
26693 cat >>confdefs.h <<\_ACEOF
26697 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26698 ol_link_threads=lwp
26700 if test $ol_with_yielding_select = auto ; then
26701 ol_with_yielding_select=no
26708 if test $ol_with_yielding_select = yes ; then
26710 cat >>confdefs.h <<\_ACEOF
26711 #define HAVE_YIELDING_SELECT 1
26716 if test $ol_with_threads = manual ; then
26717 ol_link_threads=yes
26719 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26720 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26724 for ac_header in pthread.h sched.h
26726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26731 echo $ECHO_N "(cached) $ECHO_C" >&6
26733 ac_res=`eval echo '${'$as_ac_Header'}'`
26734 { echo "$as_me:$LINENO: result: $ac_res" >&5
26735 echo "${ECHO_T}$ac_res" >&6; }
26737 # Is the header compilable?
26738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26740 cat >conftest.$ac_ext <<_ACEOF
26743 cat confdefs.h >>conftest.$ac_ext
26744 cat >>conftest.$ac_ext <<_ACEOF
26745 /* end confdefs.h. */
26746 $ac_includes_default
26747 #include <$ac_header>
26749 rm -f conftest.$ac_objext
26750 if { (ac_try="$ac_compile"
26751 case "(($ac_try" in
26752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26753 *) ac_try_echo=$ac_try;;
26755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26756 (eval "$ac_compile") 2>conftest.er1
26758 grep -v '^ *+' conftest.er1 >conftest.err
26760 cat conftest.err >&5
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); } && {
26763 test -z "$ac_c_werror_flag" ||
26764 test ! -s conftest.err
26765 } && test -s conftest.$ac_objext; then
26766 ac_header_compiler=yes
26768 echo "$as_me: failed program was:" >&5
26769 sed 's/^/| /' conftest.$ac_ext >&5
26771 ac_header_compiler=no
26774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26776 echo "${ECHO_T}$ac_header_compiler" >&6; }
26778 # Is the header present?
26779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26781 cat >conftest.$ac_ext <<_ACEOF
26784 cat confdefs.h >>conftest.$ac_ext
26785 cat >>conftest.$ac_ext <<_ACEOF
26786 /* end confdefs.h. */
26787 #include <$ac_header>
26789 if { (ac_try="$ac_cpp conftest.$ac_ext"
26790 case "(($ac_try" in
26791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26792 *) ac_try_echo=$ac_try;;
26794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26797 grep -v '^ *+' conftest.er1 >conftest.err
26799 cat conftest.err >&5
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } >/dev/null && {
26802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26803 test ! -s conftest.err
26805 ac_header_preproc=yes
26807 echo "$as_me: failed program was:" >&5
26808 sed 's/^/| /' conftest.$ac_ext >&5
26810 ac_header_preproc=no
26813 rm -f conftest.err conftest.$ac_ext
26814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26815 echo "${ECHO_T}$ac_header_preproc" >&6; }
26817 # So? What about this header?
26818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26824 ac_header_preproc=yes
26827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26840 ## --------------------------------------------- ##
26841 ## Report this to <http://www.openldap.org/its/> ##
26842 ## --------------------------------------------- ##
26844 ) | sed "s/^/$as_me: WARNING: /" >&2
26847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26850 echo $ECHO_N "(cached) $ECHO_C" >&6
26852 eval "$as_ac_Header=\$ac_header_preproc"
26854 ac_res=`eval echo '${'$as_ac_Header'}'`
26855 { echo "$as_me:$LINENO: result: $ac_res" >&5
26856 echo "${ECHO_T}$ac_res" >&6; }
26859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26860 cat >>confdefs.h <<_ACEOF
26861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26870 for ac_func in sched_yield pthread_yield
26872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26876 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 cat >conftest.$ac_ext <<_ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26886 #define $ac_func innocuous_$ac_func
26888 /* System header to define __stub macros and hopefully few prototypes,
26889 which can conflict with char $ac_func (); below.
26890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26891 <limits.h> exists even on freestanding compilers. */
26894 # include <limits.h>
26896 # include <assert.h>
26901 /* Override any GCC internal prototype to avoid an error.
26902 Use char because int might match the return type of a GCC
26903 builtin and then its argument prototype would still apply. */
26908 /* The GNU C library defines this for functions which it implements
26909 to always fail with ENOSYS. Some functions are actually named
26910 something starting with __ and the normal name is an alias. */
26911 #if defined __stub_$ac_func || defined __stub___$ac_func
26918 return $ac_func ();
26923 rm -f conftest.$ac_objext conftest$ac_exeext
26924 if { (ac_try="$ac_link"
26925 case "(($ac_try" in
26926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927 *) ac_try_echo=$ac_try;;
26929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26930 (eval "$ac_link") 2>conftest.er1
26932 grep -v '^ *+' conftest.er1 >conftest.err
26934 cat conftest.err >&5
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } && {
26937 test -z "$ac_c_werror_flag" ||
26938 test ! -s conftest.err
26939 } && test -s conftest$ac_exeext &&
26940 $as_test_x conftest$ac_exeext; then
26941 eval "$as_ac_var=yes"
26943 echo "$as_me: failed program was:" >&5
26944 sed 's/^/| /' conftest.$ac_ext >&5
26946 eval "$as_ac_var=no"
26949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26950 conftest$ac_exeext conftest.$ac_ext
26952 ac_res=`eval echo '${'$as_ac_var'}'`
26953 { echo "$as_me:$LINENO: result: $ac_res" >&5
26954 echo "${ECHO_T}$ac_res" >&6; }
26955 if test `eval echo '${'$as_ac_var'}'` = yes; then
26956 cat >>confdefs.h <<_ACEOF
26957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26964 { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26965 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26966 if test "${ol_cv_header_linux_threads+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26969 cat >conftest.$ac_ext <<_ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h. */
26975 #include <pthread.h>
26977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26978 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26979 ol_cv_header_linux_threads=yes
26981 ol_cv_header_linux_threads=no
26987 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26988 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26989 if test $ol_cv_header_linux_threads = yes; then
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_LINUX_THREADS 1
26999 for ac_header in mach/cthreads.h
27001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27006 echo $ECHO_N "(cached) $ECHO_C" >&6
27008 ac_res=`eval echo '${'$as_ac_Header'}'`
27009 { echo "$as_me:$LINENO: result: $ac_res" >&5
27010 echo "${ECHO_T}$ac_res" >&6; }
27012 # Is the header compilable?
27013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27015 cat >conftest.$ac_ext <<_ACEOF
27018 cat confdefs.h >>conftest.$ac_ext
27019 cat >>conftest.$ac_ext <<_ACEOF
27020 /* end confdefs.h. */
27021 $ac_includes_default
27022 #include <$ac_header>
27024 rm -f conftest.$ac_objext
27025 if { (ac_try="$ac_compile"
27026 case "(($ac_try" in
27027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27028 *) ac_try_echo=$ac_try;;
27030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27031 (eval "$ac_compile") 2>conftest.er1
27033 grep -v '^ *+' conftest.er1 >conftest.err
27035 cat conftest.err >&5
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); } && {
27038 test -z "$ac_c_werror_flag" ||
27039 test ! -s conftest.err
27040 } && test -s conftest.$ac_objext; then
27041 ac_header_compiler=yes
27043 echo "$as_me: failed program was:" >&5
27044 sed 's/^/| /' conftest.$ac_ext >&5
27046 ac_header_compiler=no
27049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27051 echo "${ECHO_T}$ac_header_compiler" >&6; }
27053 # Is the header present?
27054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27056 cat >conftest.$ac_ext <<_ACEOF
27059 cat confdefs.h >>conftest.$ac_ext
27060 cat >>conftest.$ac_ext <<_ACEOF
27061 /* end confdefs.h. */
27062 #include <$ac_header>
27064 if { (ac_try="$ac_cpp conftest.$ac_ext"
27065 case "(($ac_try" in
27066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27067 *) ac_try_echo=$ac_try;;
27069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27072 grep -v '^ *+' conftest.er1 >conftest.err
27074 cat conftest.err >&5
27075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27076 (exit $ac_status); } >/dev/null && {
27077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27078 test ! -s conftest.err
27080 ac_header_preproc=yes
27082 echo "$as_me: failed program was:" >&5
27083 sed 's/^/| /' conftest.$ac_ext >&5
27085 ac_header_preproc=no
27088 rm -f conftest.err conftest.$ac_ext
27089 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27090 echo "${ECHO_T}$ac_header_preproc" >&6; }
27092 # So? What about this header?
27093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27096 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27099 ac_header_preproc=yes
27102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27103 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27105 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27107 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27109 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27113 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27115 ## --------------------------------------------- ##
27116 ## Report this to <http://www.openldap.org/its/> ##
27117 ## --------------------------------------------- ##
27119 ) | sed "s/^/$as_me: WARNING: /" >&2
27122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27125 echo $ECHO_N "(cached) $ECHO_C" >&6
27127 eval "$as_ac_Header=\$ac_header_preproc"
27129 ac_res=`eval echo '${'$as_ac_Header'}'`
27130 { echo "$as_me:$LINENO: result: $ac_res" >&5
27131 echo "${ECHO_T}$ac_res" >&6; }
27134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27135 cat >>confdefs.h <<_ACEOF
27136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27144 for ac_header in lwp/lwp.h
27146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27151 echo $ECHO_N "(cached) $ECHO_C" >&6
27153 ac_res=`eval echo '${'$as_ac_Header'}'`
27154 { echo "$as_me:$LINENO: result: $ac_res" >&5
27155 echo "${ECHO_T}$ac_res" >&6; }
27157 # Is the header compilable?
27158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27160 cat >conftest.$ac_ext <<_ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h. */
27166 $ac_includes_default
27167 #include <$ac_header>
27169 rm -f conftest.$ac_objext
27170 if { (ac_try="$ac_compile"
27171 case "(($ac_try" in
27172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173 *) ac_try_echo=$ac_try;;
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176 (eval "$ac_compile") 2>conftest.er1
27178 grep -v '^ *+' conftest.er1 >conftest.err
27180 cat conftest.err >&5
27181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27182 (exit $ac_status); } && {
27183 test -z "$ac_c_werror_flag" ||
27184 test ! -s conftest.err
27185 } && test -s conftest.$ac_objext; then
27186 ac_header_compiler=yes
27188 echo "$as_me: failed program was:" >&5
27189 sed 's/^/| /' conftest.$ac_ext >&5
27191 ac_header_compiler=no
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27196 echo "${ECHO_T}$ac_header_compiler" >&6; }
27198 # Is the header present?
27199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27201 cat >conftest.$ac_ext <<_ACEOF
27204 cat confdefs.h >>conftest.$ac_ext
27205 cat >>conftest.$ac_ext <<_ACEOF
27206 /* end confdefs.h. */
27207 #include <$ac_header>
27209 if { (ac_try="$ac_cpp conftest.$ac_ext"
27210 case "(($ac_try" in
27211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27212 *) ac_try_echo=$ac_try;;
27214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27217 grep -v '^ *+' conftest.er1 >conftest.err
27219 cat conftest.err >&5
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } >/dev/null && {
27222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27223 test ! -s conftest.err
27225 ac_header_preproc=yes
27227 echo "$as_me: failed program was:" >&5
27228 sed 's/^/| /' conftest.$ac_ext >&5
27230 ac_header_preproc=no
27233 rm -f conftest.err conftest.$ac_ext
27234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27235 echo "${ECHO_T}$ac_header_preproc" >&6; }
27237 # So? What about this header?
27238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27244 ac_header_preproc=yes
27247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27260 ## --------------------------------------------- ##
27261 ## Report this to <http://www.openldap.org/its/> ##
27262 ## --------------------------------------------- ##
27264 ) | sed "s/^/$as_me: WARNING: /" >&2
27267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27272 eval "$as_ac_Header=\$ac_header_preproc"
27274 ac_res=`eval echo '${'$as_ac_Header'}'`
27275 { echo "$as_me:$LINENO: result: $ac_res" >&5
27276 echo "${ECHO_T}$ac_res" >&6; }
27279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27280 cat >>confdefs.h <<_ACEOF
27281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27290 for ac_header in thread.h synch.h
27292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27297 echo $ECHO_N "(cached) $ECHO_C" >&6
27299 ac_res=`eval echo '${'$as_ac_Header'}'`
27300 { echo "$as_me:$LINENO: result: $ac_res" >&5
27301 echo "${ECHO_T}$ac_res" >&6; }
27303 # Is the header compilable?
27304 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27306 cat >conftest.$ac_ext <<_ACEOF
27309 cat confdefs.h >>conftest.$ac_ext
27310 cat >>conftest.$ac_ext <<_ACEOF
27311 /* end confdefs.h. */
27312 $ac_includes_default
27313 #include <$ac_header>
27315 rm -f conftest.$ac_objext
27316 if { (ac_try="$ac_compile"
27317 case "(($ac_try" in
27318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27319 *) ac_try_echo=$ac_try;;
27321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27322 (eval "$ac_compile") 2>conftest.er1
27324 grep -v '^ *+' conftest.er1 >conftest.err
27326 cat conftest.err >&5
27327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27328 (exit $ac_status); } && {
27329 test -z "$ac_c_werror_flag" ||
27330 test ! -s conftest.err
27331 } && test -s conftest.$ac_objext; then
27332 ac_header_compiler=yes
27334 echo "$as_me: failed program was:" >&5
27335 sed 's/^/| /' conftest.$ac_ext >&5
27337 ac_header_compiler=no
27340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27342 echo "${ECHO_T}$ac_header_compiler" >&6; }
27344 # Is the header present?
27345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27347 cat >conftest.$ac_ext <<_ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h. */
27353 #include <$ac_header>
27355 if { (ac_try="$ac_cpp conftest.$ac_ext"
27356 case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27363 grep -v '^ *+' conftest.er1 >conftest.err
27365 cat conftest.err >&5
27366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27367 (exit $ac_status); } >/dev/null && {
27368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27369 test ! -s conftest.err
27371 ac_header_preproc=yes
27373 echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27376 ac_header_preproc=no
27379 rm -f conftest.err conftest.$ac_ext
27380 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27381 echo "${ECHO_T}$ac_header_preproc" >&6; }
27383 # So? What about this header?
27384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27387 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27389 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27390 ac_header_preproc=yes
27393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27398 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27400 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27402 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27404 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27406 ## --------------------------------------------- ##
27407 ## Report this to <http://www.openldap.org/its/> ##
27408 ## --------------------------------------------- ##
27410 ) | sed "s/^/$as_me: WARNING: /" >&2
27413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27416 echo $ECHO_N "(cached) $ECHO_C" >&6
27418 eval "$as_ac_Header=\$ac_header_preproc"
27420 ac_res=`eval echo '${'$as_ac_Header'}'`
27421 { echo "$as_me:$LINENO: result: $ac_res" >&5
27422 echo "${ECHO_T}$ac_res" >&6; }
27425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27426 cat >>confdefs.h <<_ACEOF
27427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27436 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27437 cat >>confdefs.h <<\_ACEOF
27438 #define REENTRANT 1
27441 cat >>confdefs.h <<\_ACEOF
27442 #define _REENTRANT 1
27445 cat >>confdefs.h <<\_ACEOF
27446 #define THREAD_SAFE 1
27449 cat >>confdefs.h <<\_ACEOF
27450 #define _THREAD_SAFE 1
27453 cat >>confdefs.h <<\_ACEOF
27454 #define THREADSAFE 1
27457 cat >>confdefs.h <<\_ACEOF
27458 #define _THREADSAFE 1
27461 cat >>confdefs.h <<\_ACEOF
27462 #define _SGI_MP_SOURCE 1
27466 { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27467 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27468 if test "${ol_cv_errno_thread_specific+set}" = set; then
27469 echo $ECHO_N "(cached) $ECHO_C" >&6
27472 cat >conftest.$ac_ext <<_ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h. */
27487 rm -f conftest.$ac_objext conftest$ac_exeext
27488 if { (ac_try="$ac_link"
27489 case "(($ac_try" in
27490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491 *) ac_try_echo=$ac_try;;
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494 (eval "$ac_link") 2>conftest.er1
27496 grep -v '^ *+' conftest.er1 >conftest.err
27498 cat conftest.err >&5
27499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500 (exit $ac_status); } && {
27501 test -z "$ac_c_werror_flag" ||
27502 test ! -s conftest.err
27503 } && test -s conftest$ac_exeext &&
27504 $as_test_x conftest$ac_exeext; then
27505 ol_cv_errno_thread_specific=yes
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 ol_cv_errno_thread_specific=no
27513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27514 conftest$ac_exeext conftest.$ac_ext
27517 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27518 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27520 { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27521 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27522 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27526 cat >conftest.$ac_ext <<_ACEOF
27529 cat confdefs.h >>conftest.$ac_ext
27530 cat >>conftest.$ac_ext <<_ACEOF
27531 /* end confdefs.h. */
27541 rm -f conftest.$ac_objext conftest$ac_exeext
27542 if { (ac_try="$ac_link"
27543 case "(($ac_try" in
27544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545 *) ac_try_echo=$ac_try;;
27547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27548 (eval "$ac_link") 2>conftest.er1
27550 grep -v '^ *+' conftest.er1 >conftest.err
27552 cat conftest.err >&5
27553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27554 (exit $ac_status); } && {
27555 test -z "$ac_c_werror_flag" ||
27556 test ! -s conftest.err
27557 } && test -s conftest$ac_exeext &&
27558 $as_test_x conftest$ac_exeext; then
27559 ol_cv_h_errno_thread_specific=yes
27561 echo "$as_me: failed program was:" >&5
27562 sed 's/^/| /' conftest.$ac_ext >&5
27564 ol_cv_h_errno_thread_specific=no
27567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27568 conftest$ac_exeext conftest.$ac_ext
27571 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27572 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27574 if test $ol_cv_errno_thread_specific != yes ||
27575 test $ol_cv_h_errno_thread_specific != yes ; then
27576 LIBS="$LTHREAD_LIBS $LIBS"
27582 if test $ol_link_threads = no ; then
27583 if test $ol_with_threads = yes ; then
27584 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27585 echo "$as_me: error: no suitable thread support" >&2;}
27586 { (exit 1); exit 1; }; }
27589 if test $ol_with_threads = auto ; then
27590 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27591 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27596 cat >>confdefs.h <<\_ACEOF
27597 #define NO_THREADS 1
27606 if test $ol_link_threads != no ; then
27608 cat >>confdefs.h <<\_ACEOF
27609 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27619 gethostbyname_r gethostbyaddr_r \
27622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27626 echo $ECHO_N "(cached) $ECHO_C" >&6
27628 cat >conftest.$ac_ext <<_ACEOF
27631 cat confdefs.h >>conftest.$ac_ext
27632 cat >>conftest.$ac_ext <<_ACEOF
27633 /* end confdefs.h. */
27634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27636 #define $ac_func innocuous_$ac_func
27638 /* System header to define __stub macros and hopefully few prototypes,
27639 which can conflict with char $ac_func (); below.
27640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27641 <limits.h> exists even on freestanding compilers. */
27644 # include <limits.h>
27646 # include <assert.h>
27651 /* Override any GCC internal prototype to avoid an error.
27652 Use char because int might match the return type of a GCC
27653 builtin and then its argument prototype would still apply. */
27658 /* The GNU C library defines this for functions which it implements
27659 to always fail with ENOSYS. Some functions are actually named
27660 something starting with __ and the normal name is an alias. */
27661 #if defined __stub_$ac_func || defined __stub___$ac_func
27668 return $ac_func ();
27673 rm -f conftest.$ac_objext conftest$ac_exeext
27674 if { (ac_try="$ac_link"
27675 case "(($ac_try" in
27676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27677 *) ac_try_echo=$ac_try;;
27679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27680 (eval "$ac_link") 2>conftest.er1
27682 grep -v '^ *+' conftest.er1 >conftest.err
27684 cat conftest.err >&5
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); } && {
27687 test -z "$ac_c_werror_flag" ||
27688 test ! -s conftest.err
27689 } && test -s conftest$ac_exeext &&
27690 $as_test_x conftest$ac_exeext; then
27691 eval "$as_ac_var=yes"
27693 echo "$as_me: failed program was:" >&5
27694 sed 's/^/| /' conftest.$ac_ext >&5
27696 eval "$as_ac_var=no"
27699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27700 conftest$ac_exeext conftest.$ac_ext
27702 ac_res=`eval echo '${'$as_ac_var'}'`
27703 { echo "$as_me:$LINENO: result: $ac_res" >&5
27704 echo "${ECHO_T}$ac_res" >&6; }
27705 if test `eval echo '${'$as_ac_var'}'` = yes; then
27706 cat >>confdefs.h <<_ACEOF
27707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27714 if test "$ac_cv_func_ctime_r" = no ; then
27715 ol_cv_func_ctime_r_nargs=0
27717 { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27718 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27719 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27720 echo $ECHO_N "(cached) $ECHO_C" >&6
27722 cat >conftest.$ac_ext <<_ACEOF
27725 cat confdefs.h >>conftest.$ac_ext
27726 cat >>conftest.$ac_ext <<_ACEOF
27727 /* end confdefs.h. */
27732 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741 *) ac_try_echo=$ac_try;;
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744 (eval "$ac_compile") 2>conftest.er1
27746 grep -v '^ *+' conftest.er1 >conftest.err
27748 cat conftest.err >&5
27749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750 (exit $ac_status); } && {
27751 test -z "$ac_c_werror_flag" ||
27752 test ! -s conftest.err
27753 } && test -s conftest.$ac_objext; then
27754 ol_cv_func_ctime_r_nargs3=yes
27756 echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27759 ol_cv_func_ctime_r_nargs3=no
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27764 cat >conftest.$ac_ext <<_ACEOF
27767 cat confdefs.h >>conftest.$ac_ext
27768 cat >>conftest.$ac_ext <<_ACEOF
27769 /* end confdefs.h. */
27774 time_t ti; char *buffer; ctime_r(&ti,buffer);
27779 rm -f conftest.$ac_objext
27780 if { (ac_try="$ac_compile"
27781 case "(($ac_try" in
27782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27783 *) ac_try_echo=$ac_try;;
27785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27786 (eval "$ac_compile") 2>conftest.er1
27788 grep -v '^ *+' conftest.er1 >conftest.err
27790 cat conftest.err >&5
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); } && {
27793 test -z "$ac_c_werror_flag" ||
27794 test ! -s conftest.err
27795 } && test -s conftest.$ac_objext; then
27796 ol_cv_func_ctime_r_nargs2=yes
27798 echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27801 ol_cv_func_ctime_r_nargs2=no
27804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27806 if test $ol_cv_func_ctime_r_nargs3 = yes &&
27807 test $ol_cv_func_ctime_r_nargs2 = no ; then
27809 ol_cv_func_ctime_r_nargs=3
27811 elif test $ol_cv_func_ctime_r_nargs3 = no &&
27812 test $ol_cv_func_ctime_r_nargs2 = yes ; then
27814 ol_cv_func_ctime_r_nargs=2
27817 ol_cv_func_ctime_r_nargs=0
27821 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27822 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27824 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27826 cat >>confdefs.h <<_ACEOF
27827 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27834 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27835 { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27836 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27837 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27840 cat >conftest.$ac_ext <<_ACEOF
27843 cat confdefs.h >>conftest.$ac_ext
27844 cat >>conftest.$ac_ext <<_ACEOF
27845 /* end confdefs.h. */
27846 #include <sys/types.h>
27847 #include <sys/socket.h>
27848 #include <netinet/in.h>
27850 #define BUFSIZE (sizeof(struct hostent)+10)
27854 struct hostent hent; char buffer[BUFSIZE];
27855 int bufsize=BUFSIZE;int h_errno;
27856 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27857 buffer, bufsize, &h_errno);
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866 *) ac_try_echo=$ac_try;;
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869 (eval "$ac_compile") 2>conftest.er1
27871 grep -v '^ *+' conftest.er1 >conftest.err
27873 cat conftest.err >&5
27874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } && {
27876 test -z "$ac_c_werror_flag" ||
27877 test ! -s conftest.err
27878 } && test -s conftest.$ac_objext; then
27879 ol_cv_func_gethostbyname_r_nargs5=yes
27881 echo "$as_me: failed program was:" >&5
27882 sed 's/^/| /' conftest.$ac_ext >&5
27884 ol_cv_func_gethostbyname_r_nargs5=no
27887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27889 cat >conftest.$ac_ext <<_ACEOF
27892 cat confdefs.h >>conftest.$ac_ext
27893 cat >>conftest.$ac_ext <<_ACEOF
27894 /* end confdefs.h. */
27895 #include <sys/types.h>
27896 #include <sys/socket.h>
27897 #include <netinet/in.h>
27899 #define BUFSIZE (sizeof(struct hostent)+10)
27903 struct hostent hent;struct hostent *rhent;
27904 char buffer[BUFSIZE];
27905 int bufsize=BUFSIZE;int h_errno;
27906 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27912 rm -f conftest.$ac_objext
27913 if { (ac_try="$ac_compile"
27914 case "(($ac_try" in
27915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27916 *) ac_try_echo=$ac_try;;
27918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27919 (eval "$ac_compile") 2>conftest.er1
27921 grep -v '^ *+' conftest.er1 >conftest.err
27923 cat conftest.err >&5
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } && {
27926 test -z "$ac_c_werror_flag" ||
27927 test ! -s conftest.err
27928 } && test -s conftest.$ac_objext; then
27929 ol_cv_func_gethostbyname_r_nargs6=yes
27931 echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27934 ol_cv_func_gethostbyname_r_nargs6=no
27937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27939 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27940 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27942 ol_cv_func_gethostbyname_r_nargs=5
27944 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27945 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27947 ol_cv_func_gethostbyname_r_nargs=6
27950 ol_cv_func_gethostbyname_r_nargs=0
27954 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27955 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27956 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27958 cat >>confdefs.h <<_ACEOF
27959 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27965 ol_cv_func_gethostbyname_r_nargs=0
27968 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27969 { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27970 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27971 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27972 echo $ECHO_N "(cached) $ECHO_C" >&6
27974 cat >conftest.$ac_ext <<_ACEOF
27977 cat confdefs.h >>conftest.$ac_ext
27978 cat >>conftest.$ac_ext <<_ACEOF
27979 /* end confdefs.h. */
27980 #include <sys/types.h>
27981 #include <sys/socket.h>
27982 #include <netinet/in.h>
27984 #define BUFSIZE (sizeof(struct hostent)+10)
27988 struct hostent hent; char buffer[BUFSIZE];
27989 struct in_addr add;
27990 size_t alen=sizeof(struct in_addr);
27991 int bufsize=BUFSIZE;int h_errno;
27992 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27993 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27998 rm -f conftest.$ac_objext
27999 if { (ac_try="$ac_compile"
28000 case "(($ac_try" in
28001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002 *) ac_try_echo=$ac_try;;
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005 (eval "$ac_compile") 2>conftest.er1
28007 grep -v '^ *+' conftest.er1 >conftest.err
28009 cat conftest.err >&5
28010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011 (exit $ac_status); } && {
28012 test -z "$ac_c_werror_flag" ||
28013 test ! -s conftest.err
28014 } && test -s conftest.$ac_objext; then
28015 ol_cv_func_gethostbyaddr_r_nargs7=yes
28017 echo "$as_me: failed program was:" >&5
28018 sed 's/^/| /' conftest.$ac_ext >&5
28020 ol_cv_func_gethostbyaddr_r_nargs7=no
28023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28025 cat >conftest.$ac_ext <<_ACEOF
28028 cat confdefs.h >>conftest.$ac_ext
28029 cat >>conftest.$ac_ext <<_ACEOF
28030 /* end confdefs.h. */
28031 #include <sys/types.h>
28032 #include <sys/socket.h>
28033 #include <netinet/in.h>
28035 #define BUFSIZE (sizeof(struct hostent)+10)
28039 struct hostent hent;
28040 struct hostent *rhent; char buffer[BUFSIZE];
28041 struct in_addr add;
28042 size_t alen=sizeof(struct in_addr);
28043 int bufsize=BUFSIZE;int h_errno;
28044 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28045 alen, AF_INET, &hent, buffer, bufsize,
28051 rm -f conftest.$ac_objext
28052 if { (ac_try="$ac_compile"
28053 case "(($ac_try" in
28054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055 *) ac_try_echo=$ac_try;;
28057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058 (eval "$ac_compile") 2>conftest.er1
28060 grep -v '^ *+' conftest.er1 >conftest.err
28062 cat conftest.err >&5
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); } && {
28065 test -z "$ac_c_werror_flag" ||
28066 test ! -s conftest.err
28067 } && test -s conftest.$ac_objext; then
28068 ol_cv_func_gethostbyaddr_r_nargs8=yes
28070 echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28073 ol_cv_func_gethostbyaddr_r_nargs8=no
28076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28078 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28079 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28081 ol_cv_func_gethostbyaddr_r_nargs=7
28083 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28084 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28086 ol_cv_func_gethostbyaddr_r_nargs=8
28089 ol_cv_func_gethostbyaddr_r_nargs=0
28093 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28094 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28095 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28097 cat >>confdefs.h <<_ACEOF
28098 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28104 ol_cv_func_gethostbyaddr_r_nargs=0
28109 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28110 ol_cv_berkeley_db=no
28112 for ac_header in db.h
28114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28119 echo $ECHO_N "(cached) $ECHO_C" >&6
28121 ac_res=`eval echo '${'$as_ac_Header'}'`
28122 { echo "$as_me:$LINENO: result: $ac_res" >&5
28123 echo "${ECHO_T}$ac_res" >&6; }
28125 # Is the header compilable?
28126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28128 cat >conftest.$ac_ext <<_ACEOF
28131 cat confdefs.h >>conftest.$ac_ext
28132 cat >>conftest.$ac_ext <<_ACEOF
28133 /* end confdefs.h. */
28134 $ac_includes_default
28135 #include <$ac_header>
28137 rm -f conftest.$ac_objext
28138 if { (ac_try="$ac_compile"
28139 case "(($ac_try" in
28140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141 *) ac_try_echo=$ac_try;;
28143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28144 (eval "$ac_compile") 2>conftest.er1
28146 grep -v '^ *+' conftest.er1 >conftest.err
28148 cat conftest.err >&5
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); } && {
28151 test -z "$ac_c_werror_flag" ||
28152 test ! -s conftest.err
28153 } && test -s conftest.$ac_objext; then
28154 ac_header_compiler=yes
28156 echo "$as_me: failed program was:" >&5
28157 sed 's/^/| /' conftest.$ac_ext >&5
28159 ac_header_compiler=no
28162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28164 echo "${ECHO_T}$ac_header_compiler" >&6; }
28166 # Is the header present?
28167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28169 cat >conftest.$ac_ext <<_ACEOF
28172 cat confdefs.h >>conftest.$ac_ext
28173 cat >>conftest.$ac_ext <<_ACEOF
28174 /* end confdefs.h. */
28175 #include <$ac_header>
28177 if { (ac_try="$ac_cpp conftest.$ac_ext"
28178 case "(($ac_try" in
28179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180 *) ac_try_echo=$ac_try;;
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28185 grep -v '^ *+' conftest.er1 >conftest.err
28187 cat conftest.err >&5
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } >/dev/null && {
28190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28191 test ! -s conftest.err
28193 ac_header_preproc=yes
28195 echo "$as_me: failed program was:" >&5
28196 sed 's/^/| /' conftest.$ac_ext >&5
28198 ac_header_preproc=no
28201 rm -f conftest.err conftest.$ac_ext
28202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28203 echo "${ECHO_T}$ac_header_preproc" >&6; }
28205 # So? What about this header?
28206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28208 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28212 ac_header_preproc=yes
28215 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28217 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28218 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28219 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28221 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28222 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28225 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28228 ## --------------------------------------------- ##
28229 ## Report this to <http://www.openldap.org/its/> ##
28230 ## --------------------------------------------- ##
28232 ) | sed "s/^/$as_me: WARNING: /" >&2
28235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28238 echo $ECHO_N "(cached) $ECHO_C" >&6
28240 eval "$as_ac_Header=\$ac_header_preproc"
28242 ac_res=`eval echo '${'$as_ac_Header'}'`
28243 { echo "$as_me:$LINENO: result: $ac_res" >&5
28244 echo "${ECHO_T}$ac_res" >&6; }
28247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28248 cat >>confdefs.h <<_ACEOF
28249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28256 if test $ac_cv_header_db_h = yes; then
28257 { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28258 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28259 if test "${ol_cv_bdb_major+set}" = set; then
28260 echo $ECHO_N "(cached) $ECHO_C" >&6
28263 cat >conftest.$ac_ext <<_ACEOF
28266 #ifndef DB_VERSION_MAJOR
28267 # define DB_VERSION_MAJOR 1
28269 __db_version DB_VERSION_MAJOR
28272 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28273 ol_cv_bdb_major=${3}
28276 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28277 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28278 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28279 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28280 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28281 { (exit 1); exit 1; }; } ;;
28284 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28285 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28286 if test "${ol_cv_bdb_minor+set}" = set; then
28287 echo $ECHO_N "(cached) $ECHO_C" >&6
28290 cat >conftest.$ac_ext <<_ACEOF
28293 #ifndef DB_VERSION_MINOR
28294 # define DB_VERSION_MINOR 0
28296 __db_version DB_VERSION_MINOR
28299 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28300 ol_cv_bdb_minor=${3}
28303 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28304 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28305 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28306 { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28307 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28308 { (exit 1); exit 1; }; } ;;
28311 { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28312 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28313 if test "${ol_cv_bdb_compat+set}" = set; then
28314 echo $ECHO_N "(cached) $ECHO_C" >&6
28317 cat >conftest.$ac_ext <<_ACEOF
28320 cat confdefs.h >>conftest.$ac_ext
28321 cat >>conftest.$ac_ext <<_ACEOF
28322 /* end confdefs.h. */
28326 /* this check could be improved */
28327 #ifndef DB_VERSION_MAJOR
28328 # define DB_VERSION_MAJOR 1
28330 #ifndef DB_VERSION_MINOR
28331 # define DB_VERSION_MINOR 0
28334 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28336 /* require 4.4 or later */
28337 #if DB_VERSION_MM >= 0x0404
28338 __db_version_compat
28342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28343 $EGREP "__db_version_compat" >/dev/null 2>&1; then
28344 ol_cv_bdb_compat=yes
28346 ol_cv_bdb_compat=no
28351 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28352 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28355 if test $ol_cv_bdb_compat != yes ; then
28356 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28357 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28358 { (exit 1); exit 1; }; }
28363 if test $ol_cv_bdb_major = 4 ; then
28364 if test $ol_cv_lib_db = no ; then
28365 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28366 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28367 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28371 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28373 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28375 cat >conftest.$ac_ext <<_ACEOF
28378 cat confdefs.h >>conftest.$ac_ext
28379 cat >>conftest.$ac_ext <<_ACEOF
28380 /* end confdefs.h. */
28382 #ifdef HAVE_DB_185_H
28383 # include <db_185.h>
28388 #ifndef DB_VERSION_MAJOR
28389 # define DB_VERSION_MAJOR 1
28393 #define NULL ((void*)0)
28400 #if DB_VERSION_MAJOR > 2
28401 db_env_create( NULL, 0 );
28402 #elif DB_VERSION_MAJOR > 1
28403 db_appexit( NULL );
28405 (void) dbopen( NULL, 0, 0, 0, NULL);
28412 rm -f conftest.$ac_objext conftest$ac_exeext
28413 if { (ac_try="$ac_link"
28414 case "(($ac_try" in
28415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28416 *) ac_try_echo=$ac_try;;
28418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28419 (eval "$ac_link") 2>conftest.er1
28421 grep -v '^ *+' conftest.er1 >conftest.err
28423 cat conftest.err >&5
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); } && {
28426 test -z "$ac_c_werror_flag" ||
28427 test ! -s conftest.err
28428 } && test -s conftest$ac_exeext &&
28429 $as_test_x conftest$ac_exeext; then
28430 ol_cv_db_db_4_dot_m=yes
28432 echo "$as_me: failed program was:" >&5
28433 sed 's/^/| /' conftest.$ac_ext >&5
28435 ol_cv_db_db_4_dot_m=no
28438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28439 conftest$ac_exeext conftest.$ac_ext
28444 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28445 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28447 if test $ol_cv_db_db_4_dot_m = yes ; then
28448 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28452 if test $ol_cv_lib_db = no ; then
28453 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28454 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28455 if test "${ol_cv_db_db4m+set}" = set; then
28456 echo $ECHO_N "(cached) $ECHO_C" >&6
28459 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28461 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28463 cat >conftest.$ac_ext <<_ACEOF
28466 cat confdefs.h >>conftest.$ac_ext
28467 cat >>conftest.$ac_ext <<_ACEOF
28468 /* end confdefs.h. */
28470 #ifdef HAVE_DB_185_H
28471 # include <db_185.h>
28476 #ifndef DB_VERSION_MAJOR
28477 # define DB_VERSION_MAJOR 1
28481 #define NULL ((void*)0)
28488 #if DB_VERSION_MAJOR > 2
28489 db_env_create( NULL, 0 );
28490 #elif DB_VERSION_MAJOR > 1
28491 db_appexit( NULL );
28493 (void) dbopen( NULL, 0, 0, 0, NULL);
28500 rm -f conftest.$ac_objext conftest$ac_exeext
28501 if { (ac_try="$ac_link"
28502 case "(($ac_try" in
28503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504 *) ac_try_echo=$ac_try;;
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507 (eval "$ac_link") 2>conftest.er1
28509 grep -v '^ *+' conftest.er1 >conftest.err
28511 cat conftest.err >&5
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } && {
28514 test -z "$ac_c_werror_flag" ||
28515 test ! -s conftest.err
28516 } && test -s conftest$ac_exeext &&
28517 $as_test_x conftest$ac_exeext; then
28520 echo "$as_me: failed program was:" >&5
28521 sed 's/^/| /' conftest.$ac_ext >&5
28526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28527 conftest$ac_exeext conftest.$ac_ext
28532 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28533 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28535 if test $ol_cv_db_db4m = yes ; then
28536 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28540 if test $ol_cv_lib_db = no ; then
28541 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28542 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28543 if test "${ol_cv_db_db_4m+set}" = set; then
28544 echo $ECHO_N "(cached) $ECHO_C" >&6
28547 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28549 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28551 cat >conftest.$ac_ext <<_ACEOF
28554 cat confdefs.h >>conftest.$ac_ext
28555 cat >>conftest.$ac_ext <<_ACEOF
28556 /* end confdefs.h. */
28558 #ifdef HAVE_DB_185_H
28559 # include <db_185.h>
28564 #ifndef DB_VERSION_MAJOR
28565 # define DB_VERSION_MAJOR 1
28569 #define NULL ((void*)0)
28576 #if DB_VERSION_MAJOR > 2
28577 db_env_create( NULL, 0 );
28578 #elif DB_VERSION_MAJOR > 1
28579 db_appexit( NULL );
28581 (void) dbopen( NULL, 0, 0, 0, NULL);
28588 rm -f conftest.$ac_objext conftest$ac_exeext
28589 if { (ac_try="$ac_link"
28590 case "(($ac_try" in
28591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28592 *) ac_try_echo=$ac_try;;
28594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28595 (eval "$ac_link") 2>conftest.er1
28597 grep -v '^ *+' conftest.er1 >conftest.err
28599 cat conftest.err >&5
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); } && {
28602 test -z "$ac_c_werror_flag" ||
28603 test ! -s conftest.err
28604 } && test -s conftest$ac_exeext &&
28605 $as_test_x conftest$ac_exeext; then
28608 echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28615 conftest$ac_exeext conftest.$ac_ext
28620 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28621 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28623 if test $ol_cv_db_db_4m = yes ; then
28624 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28628 if test $ol_cv_lib_db = no ; then
28629 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28630 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28631 if test "${ol_cv_db_db_4_m+set}" = set; then
28632 echo $ECHO_N "(cached) $ECHO_C" >&6
28635 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28637 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28639 cat >conftest.$ac_ext <<_ACEOF
28642 cat confdefs.h >>conftest.$ac_ext
28643 cat >>conftest.$ac_ext <<_ACEOF
28644 /* end confdefs.h. */
28646 #ifdef HAVE_DB_185_H
28647 # include <db_185.h>
28652 #ifndef DB_VERSION_MAJOR
28653 # define DB_VERSION_MAJOR 1
28657 #define NULL ((void*)0)
28664 #if DB_VERSION_MAJOR > 2
28665 db_env_create( NULL, 0 );
28666 #elif DB_VERSION_MAJOR > 1
28667 db_appexit( NULL );
28669 (void) dbopen( NULL, 0, 0, 0, NULL);
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680 *) ac_try_echo=$ac_try;;
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683 (eval "$ac_link") 2>conftest.er1
28685 grep -v '^ *+' conftest.er1 >conftest.err
28687 cat conftest.err >&5
28688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689 (exit $ac_status); } && {
28690 test -z "$ac_c_werror_flag" ||
28691 test ! -s conftest.err
28692 } && test -s conftest$ac_exeext &&
28693 $as_test_x conftest$ac_exeext; then
28694 ol_cv_db_db_4_m=yes
28696 echo "$as_me: failed program was:" >&5
28697 sed 's/^/| /' conftest.$ac_ext >&5
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703 conftest$ac_exeext conftest.$ac_ext
28708 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28709 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28711 if test $ol_cv_db_db_4_m = yes ; then
28712 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28716 if test $ol_cv_lib_db = no ; then
28717 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28718 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28719 if test "${ol_cv_db_db_4+set}" = set; then
28720 echo $ECHO_N "(cached) $ECHO_C" >&6
28725 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28727 cat >conftest.$ac_ext <<_ACEOF
28730 cat confdefs.h >>conftest.$ac_ext
28731 cat >>conftest.$ac_ext <<_ACEOF
28732 /* end confdefs.h. */
28734 #ifdef HAVE_DB_185_H
28735 # include <db_185.h>
28740 #ifndef DB_VERSION_MAJOR
28741 # define DB_VERSION_MAJOR 1
28745 #define NULL ((void*)0)
28752 #if DB_VERSION_MAJOR > 2
28753 db_env_create( NULL, 0 );
28754 #elif DB_VERSION_MAJOR > 1
28755 db_appexit( NULL );
28757 (void) dbopen( NULL, 0, 0, 0, NULL);
28764 rm -f conftest.$ac_objext conftest$ac_exeext
28765 if { (ac_try="$ac_link"
28766 case "(($ac_try" in
28767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28768 *) ac_try_echo=$ac_try;;
28770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28771 (eval "$ac_link") 2>conftest.er1
28773 grep -v '^ *+' conftest.er1 >conftest.err
28775 cat conftest.err >&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } && {
28778 test -z "$ac_c_werror_flag" ||
28779 test ! -s conftest.err
28780 } && test -s conftest$ac_exeext &&
28781 $as_test_x conftest$ac_exeext; then
28784 echo "$as_me: failed program was:" >&5
28785 sed 's/^/| /' conftest.$ac_ext >&5
28790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28791 conftest$ac_exeext conftest.$ac_ext
28796 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28797 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28799 if test $ol_cv_db_db_4 = yes ; then
28800 ol_cv_lib_db=-ldb-4
28804 if test $ol_cv_lib_db = no ; then
28805 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28806 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28807 if test "${ol_cv_db_db4+set}" = set; then
28808 echo $ECHO_N "(cached) $ECHO_C" >&6
28813 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28815 cat >conftest.$ac_ext <<_ACEOF
28818 cat confdefs.h >>conftest.$ac_ext
28819 cat >>conftest.$ac_ext <<_ACEOF
28820 /* end confdefs.h. */
28822 #ifdef HAVE_DB_185_H
28823 # include <db_185.h>
28828 #ifndef DB_VERSION_MAJOR
28829 # define DB_VERSION_MAJOR 1
28833 #define NULL ((void*)0)
28840 #if DB_VERSION_MAJOR > 2
28841 db_env_create( NULL, 0 );
28842 #elif DB_VERSION_MAJOR > 1
28843 db_appexit( NULL );
28845 (void) dbopen( NULL, 0, 0, 0, NULL);
28852 rm -f conftest.$ac_objext conftest$ac_exeext
28853 if { (ac_try="$ac_link"
28854 case "(($ac_try" in
28855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28856 *) ac_try_echo=$ac_try;;
28858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28859 (eval "$ac_link") 2>conftest.er1
28861 grep -v '^ *+' conftest.er1 >conftest.err
28863 cat conftest.err >&5
28864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865 (exit $ac_status); } && {
28866 test -z "$ac_c_werror_flag" ||
28867 test ! -s conftest.err
28868 } && test -s conftest$ac_exeext &&
28869 $as_test_x conftest$ac_exeext; then
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28879 conftest$ac_exeext conftest.$ac_ext
28884 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28885 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28887 if test $ol_cv_db_db4 = yes ; then
28892 if test $ol_cv_lib_db = no ; then
28893 { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28894 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28895 if test "${ol_cv_db_db+set}" = set; then
28896 echo $ECHO_N "(cached) $ECHO_C" >&6
28901 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28903 cat >conftest.$ac_ext <<_ACEOF
28906 cat confdefs.h >>conftest.$ac_ext
28907 cat >>conftest.$ac_ext <<_ACEOF
28908 /* end confdefs.h. */
28910 #ifdef HAVE_DB_185_H
28911 # include <db_185.h>
28916 #ifndef DB_VERSION_MAJOR
28917 # define DB_VERSION_MAJOR 1
28921 #define NULL ((void*)0)
28928 #if DB_VERSION_MAJOR > 2
28929 db_env_create( NULL, 0 );
28930 #elif DB_VERSION_MAJOR > 1
28931 db_appexit( NULL );
28933 (void) dbopen( NULL, 0, 0, 0, NULL);
28940 rm -f conftest.$ac_objext conftest$ac_exeext
28941 if { (ac_try="$ac_link"
28942 case "(($ac_try" in
28943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28944 *) ac_try_echo=$ac_try;;
28946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28947 (eval "$ac_link") 2>conftest.er1
28949 grep -v '^ *+' conftest.er1 >conftest.err
28951 cat conftest.err >&5
28952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28953 (exit $ac_status); } && {
28954 test -z "$ac_c_werror_flag" ||
28955 test ! -s conftest.err
28956 } && test -s conftest$ac_exeext &&
28957 $as_test_x conftest$ac_exeext; then
28960 echo "$as_me: failed program was:" >&5
28961 sed 's/^/| /' conftest.$ac_ext >&5
28966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28967 conftest$ac_exeext conftest.$ac_ext
28972 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28973 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28975 if test $ol_cv_db_db = yes ; then
28981 if test $ol_cv_lib_db = no ; then
28982 { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28983 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28984 if test "${ol_cv_db_none+set}" = set; then
28985 echo $ECHO_N "(cached) $ECHO_C" >&6
28990 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28992 cat >conftest.$ac_ext <<_ACEOF
28995 cat confdefs.h >>conftest.$ac_ext
28996 cat >>conftest.$ac_ext <<_ACEOF
28997 /* end confdefs.h. */
28999 #ifdef HAVE_DB_185_H
29000 # include <db_185.h>
29005 #ifndef DB_VERSION_MAJOR
29006 # define DB_VERSION_MAJOR 1
29010 #define NULL ((void*)0)
29017 #if DB_VERSION_MAJOR > 2
29018 db_env_create( NULL, 0 );
29019 #elif DB_VERSION_MAJOR > 1
29020 db_appexit( NULL );
29022 (void) dbopen( NULL, 0, 0, 0, NULL);
29029 rm -f conftest.$ac_objext conftest$ac_exeext
29030 if { (ac_try="$ac_link"
29031 case "(($ac_try" in
29032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29033 *) ac_try_echo=$ac_try;;
29035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29036 (eval "$ac_link") 2>conftest.er1
29038 grep -v '^ *+' conftest.er1 >conftest.err
29040 cat conftest.err >&5
29041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042 (exit $ac_status); } && {
29043 test -z "$ac_c_werror_flag" ||
29044 test ! -s conftest.err
29045 } && test -s conftest$ac_exeext &&
29046 $as_test_x conftest$ac_exeext; then
29049 echo "$as_me: failed program was:" >&5
29050 sed 's/^/| /' conftest.$ac_ext >&5
29055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29056 conftest$ac_exeext conftest.$ac_ext
29061 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29062 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29064 if test $ol_cv_db_none = yes ; then
29070 if test "$ol_cv_lib_db" != no ; then
29071 ol_cv_berkeley_db=yes
29072 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29073 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29074 if test "${ol_cv_berkeley_db_version+set}" = set; then
29075 echo $ECHO_N "(cached) $ECHO_C" >&6
29079 LIBS="$LTHREAD_LIBS $LIBS"
29080 if test $ol_cv_lib_db != yes ; then
29081 LIBS="$ol_cv_lib_db $LIBS"
29084 if test "$cross_compiling" = yes; then
29085 ol_cv_berkeley_db_version=cross
29087 cat >conftest.$ac_ext <<_ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h. */
29094 #ifdef HAVE_DB_185_H
29099 #ifndef DB_VERSION_MAJOR
29100 # define DB_VERSION_MAJOR 1
29103 #define NULL ((void *)0)
29107 #if DB_VERSION_MAJOR > 1
29109 int major, minor, patch;
29111 version = db_version( &major, &minor, &patch );
29113 if( major != DB_VERSION_MAJOR ||
29114 minor != DB_VERSION_MINOR ||
29115 patch != DB_VERSION_PATCH )
29117 printf("Berkeley DB version mismatch\n"
29118 "\theader: %s\n\tlibrary: %s\n",
29119 DB_VERSION_STRING, version);
29127 rm -f conftest$ac_exeext
29128 if { (ac_try="$ac_link"
29129 case "(($ac_try" in
29130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29131 *) ac_try_echo=$ac_try;;
29133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29134 (eval "$ac_link") 2>&5
29136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29138 { (case "(($ac_try" in
29139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29140 *) ac_try_echo=$ac_try;;
29142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29143 (eval "$ac_try") 2>&5
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; }; then
29147 ol_cv_berkeley_db_version=yes
29149 echo "$as_me: program exited with status $ac_status" >&5
29150 echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29153 ( exit $ac_status )
29154 ol_cv_berkeley_db_version=no
29156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29164 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29165 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29167 if test $ol_cv_berkeley_db_version = no ; then
29168 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29169 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29170 { (exit 1); exit 1; }; }
29173 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29174 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29175 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29176 echo $ECHO_N "(cached) $ECHO_C" >&6
29180 LIBS="$LTHREAD_LIBS $LIBS"
29181 if test $ol_cv_lib_db != yes ; then
29182 LIBS="$ol_cv_lib_db $LIBS"
29185 if test "$cross_compiling" = yes; then
29186 ol_cv_berkeley_db_thread=cross
29188 cat >conftest.$ac_ext <<_ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h. */
29195 #ifdef HAVE_DB_185_H
29201 #define NULL ((void *)0)
29206 u_int32_t flags = DB_CREATE |
29212 #if DB_VERSION_MAJOR > 2
29213 DB_ENV *env = NULL;
29215 rc = db_env_create( &env, 0 );
29217 flags |= DB_INIT_MPOOL;
29218 #ifdef DB_MPOOL_PRIVATE
29219 flags |= DB_MPOOL_PRIVATE;
29223 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29227 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29228 rc = (env->open)( env, NULL, flags, 0 );
29230 rc = (env->open)( env, NULL, NULL, flags, 0 );
29234 rc = env->close( env, 0 );
29238 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29244 memset( &env, '\0', sizeof(env) );
29246 rc = db_appinit( NULL, NULL, &env, flags );
29249 db_appexit( &env );
29252 unlink("__db_mpool.share");
29253 unlink("__db_lock.share");
29259 rm -f conftest$ac_exeext
29260 if { (ac_try="$ac_link"
29261 case "(($ac_try" in
29262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263 *) ac_try_echo=$ac_try;;
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266 (eval "$ac_link") 2>&5
29268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29270 { (case "(($ac_try" in
29271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29272 *) ac_try_echo=$ac_try;;
29274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29275 (eval "$ac_try") 2>&5
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; }; then
29279 ol_cv_berkeley_db_thread=yes
29281 echo "$as_me: program exited with status $ac_status" >&5
29282 echo "$as_me: failed program was:" >&5
29283 sed 's/^/| /' conftest.$ac_ext >&5
29285 ( exit $ac_status )
29286 ol_cv_berkeley_db_thread=no
29288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29296 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29297 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29299 if test $ol_cv_berkeley_db_thread != no ; then
29301 cat >>confdefs.h <<\_ACEOF
29302 #define HAVE_BERKELEY_DB_THREAD 1
29311 if test $ol_cv_berkeley_db = no ; then
29312 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29313 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29314 { (exit 1); exit 1; }; }
29318 cat >>confdefs.h <<\_ACEOF
29319 #define HAVE_BERKELEY_DB 1
29323 if test $ol_cv_lib_db != yes ; then
29324 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29327 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29333 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29334 BUILD_LIBS_DYNAMIC=shared
29336 cat >>confdefs.h <<\_ACEOF
29337 #define LDAP_LIBS_DYNAMIC 1
29342 BUILD_LIBS_DYNAMIC=static
29346 if test $ol_enable_wrappers != no ; then
29348 for ac_header in tcpd.h
29350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29355 echo $ECHO_N "(cached) $ECHO_C" >&6
29357 ac_res=`eval echo '${'$as_ac_Header'}'`
29358 { echo "$as_me:$LINENO: result: $ac_res" >&5
29359 echo "${ECHO_T}$ac_res" >&6; }
29361 # Is the header compilable?
29362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29364 cat >conftest.$ac_ext <<_ACEOF
29367 cat confdefs.h >>conftest.$ac_ext
29368 cat >>conftest.$ac_ext <<_ACEOF
29369 /* end confdefs.h. */
29370 $ac_includes_default
29371 #include <$ac_header>
29373 rm -f conftest.$ac_objext
29374 if { (ac_try="$ac_compile"
29375 case "(($ac_try" in
29376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377 *) ac_try_echo=$ac_try;;
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380 (eval "$ac_compile") 2>conftest.er1
29382 grep -v '^ *+' conftest.er1 >conftest.err
29384 cat conftest.err >&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } && {
29387 test -z "$ac_c_werror_flag" ||
29388 test ! -s conftest.err
29389 } && test -s conftest.$ac_objext; then
29390 ac_header_compiler=yes
29392 echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.$ac_ext >&5
29395 ac_header_compiler=no
29398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29400 echo "${ECHO_T}$ac_header_compiler" >&6; }
29402 # Is the header present?
29403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29405 cat >conftest.$ac_ext <<_ACEOF
29408 cat confdefs.h >>conftest.$ac_ext
29409 cat >>conftest.$ac_ext <<_ACEOF
29410 /* end confdefs.h. */
29411 #include <$ac_header>
29413 if { (ac_try="$ac_cpp conftest.$ac_ext"
29414 case "(($ac_try" in
29415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29416 *) ac_try_echo=$ac_try;;
29418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29421 grep -v '^ *+' conftest.er1 >conftest.err
29423 cat conftest.err >&5
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } >/dev/null && {
29426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29427 test ! -s conftest.err
29429 ac_header_preproc=yes
29431 echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29434 ac_header_preproc=no
29437 rm -f conftest.err conftest.$ac_ext
29438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29439 echo "${ECHO_T}$ac_header_preproc" >&6; }
29441 # So? What about this header?
29442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29448 ac_header_preproc=yes
29451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29464 ## --------------------------------------------- ##
29465 ## Report this to <http://www.openldap.org/its/> ##
29466 ## --------------------------------------------- ##
29468 ) | sed "s/^/$as_me: WARNING: /" >&2
29471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29474 echo $ECHO_N "(cached) $ECHO_C" >&6
29476 eval "$as_ac_Header=\$ac_header_preproc"
29478 ac_res=`eval echo '${'$as_ac_Header'}'`
29479 { echo "$as_me:$LINENO: result: $ac_res" >&5
29480 echo "${ECHO_T}$ac_res" >&6; }
29483 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29484 cat >>confdefs.h <<_ACEOF
29485 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29488 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29489 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29491 LIBS="$LIBS -lwrap"
29492 cat >conftest.$ac_ext <<_ACEOF
29495 cat confdefs.h >>conftest.$ac_ext
29496 cat >>conftest.$ac_ext <<_ACEOF
29497 /* end confdefs.h. */
29500 int allow_severity = 0;
29501 int deny_severity = 0;
29503 struct request_info *req;
29515 rm -f conftest.$ac_objext conftest$ac_exeext
29516 if { (ac_try="$ac_link"
29517 case "(($ac_try" in
29518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519 *) ac_try_echo=$ac_try;;
29521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29522 (eval "$ac_link") 2>conftest.er1
29524 grep -v '^ *+' conftest.er1 >conftest.err
29526 cat conftest.err >&5
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); } && {
29529 test -z "$ac_c_werror_flag" ||
29530 test ! -s conftest.err
29531 } && test -s conftest$ac_exeext &&
29532 $as_test_x conftest$ac_exeext; then
29533 { echo "$as_me:$LINENO: result: -lwrap" >&5
29534 echo "${ECHO_T}-lwrap" >&6; }
29538 echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.$ac_ext >&5
29543 cat >conftest.$ac_ext <<_ACEOF
29546 cat confdefs.h >>conftest.$ac_ext
29547 cat >>conftest.$ac_ext <<_ACEOF
29548 /* end confdefs.h. */
29551 int allow_severity = 0;
29552 int deny_severity = 0;
29554 struct request_info *req;
29566 rm -f conftest.$ac_objext conftest$ac_exeext
29567 if { (ac_try="$ac_link"
29568 case "(($ac_try" in
29569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570 *) ac_try_echo=$ac_try;;
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573 (eval "$ac_link") 2>conftest.er1
29575 grep -v '^ *+' conftest.er1 >conftest.err
29577 cat conftest.err >&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); } && {
29580 test -z "$ac_c_werror_flag" ||
29581 test ! -s conftest.err
29582 } && test -s conftest$ac_exeext &&
29583 $as_test_x conftest$ac_exeext; then
29584 { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29585 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29587 LIBS="$save_LIBS -lnsl"
29589 echo "$as_me: failed program was:" >&5
29590 sed 's/^/| /' conftest.$ac_ext >&5
29593 { echo "$as_me:$LINENO: result: no" >&5
29594 echo "${ECHO_T}no" >&6; }
29599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29600 conftest$ac_exeext conftest.$ac_ext
29603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29604 conftest$ac_exeext conftest.$ac_ext
29612 if test $have_wrappers = yes ; then
29614 cat >>confdefs.h <<\_ACEOF
29615 #define HAVE_TCPD 1
29619 elif test $ol_enable_wrappers = yes ; then
29620 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29621 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29622 { (exit 1); exit 1; }; }
29624 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29625 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29630 if test $ol_enable_syslog != no ; then
29631 { echo "$as_me:$LINENO: checking for openlog" >&5
29632 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29633 if test "${ac_cv_func_openlog+set}" = set; then
29634 echo $ECHO_N "(cached) $ECHO_C" >&6
29636 cat >conftest.$ac_ext <<_ACEOF
29639 cat confdefs.h >>conftest.$ac_ext
29640 cat >>conftest.$ac_ext <<_ACEOF
29641 /* end confdefs.h. */
29642 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29644 #define openlog innocuous_openlog
29646 /* System header to define __stub macros and hopefully few prototypes,
29647 which can conflict with char openlog (); below.
29648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29649 <limits.h> exists even on freestanding compilers. */
29652 # include <limits.h>
29654 # include <assert.h>
29659 /* Override any GCC internal prototype to avoid an error.
29660 Use char because int might match the return type of a GCC
29661 builtin and then its argument prototype would still apply. */
29666 /* The GNU C library defines this for functions which it implements
29667 to always fail with ENOSYS. Some functions are actually named
29668 something starting with __ and the normal name is an alias. */
29669 #if defined __stub_openlog || defined __stub___openlog
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_link") 2>conftest.er1
29690 grep -v '^ *+' conftest.er1 >conftest.err
29692 cat conftest.err >&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } && {
29695 test -z "$ac_c_werror_flag" ||
29696 test ! -s conftest.err
29697 } && test -s conftest$ac_exeext &&
29698 $as_test_x conftest$ac_exeext; then
29699 ac_cv_func_openlog=yes
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_func_openlog=no
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708 conftest$ac_exeext conftest.$ac_ext
29710 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29711 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29713 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29714 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29715 echo "$as_me: error: could not find syslog" >&2;}
29716 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29718 ol_enable_syslog=$ac_cv_func_openlog
29722 if test $ol_enable_sql != no ; then
29725 for ac_header in sql.h sqlext.h
29727 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29732 echo $ECHO_N "(cached) $ECHO_C" >&6
29734 ac_res=`eval echo '${'$as_ac_Header'}'`
29735 { echo "$as_me:$LINENO: result: $ac_res" >&5
29736 echo "${ECHO_T}$ac_res" >&6; }
29738 # Is the header compilable?
29739 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29741 cat >conftest.$ac_ext <<_ACEOF
29744 cat confdefs.h >>conftest.$ac_ext
29745 cat >>conftest.$ac_ext <<_ACEOF
29746 /* end confdefs.h. */
29747 $ac_includes_default
29748 #include <$ac_header>
29750 rm -f conftest.$ac_objext
29751 if { (ac_try="$ac_compile"
29752 case "(($ac_try" in
29753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29754 *) ac_try_echo=$ac_try;;
29756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29757 (eval "$ac_compile") 2>conftest.er1
29759 grep -v '^ *+' conftest.er1 >conftest.err
29761 cat conftest.err >&5
29762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29763 (exit $ac_status); } && {
29764 test -z "$ac_c_werror_flag" ||
29765 test ! -s conftest.err
29766 } && test -s conftest.$ac_objext; then
29767 ac_header_compiler=yes
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772 ac_header_compiler=no
29775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29777 echo "${ECHO_T}$ac_header_compiler" >&6; }
29779 # Is the header present?
29780 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29782 cat >conftest.$ac_ext <<_ACEOF
29785 cat confdefs.h >>conftest.$ac_ext
29786 cat >>conftest.$ac_ext <<_ACEOF
29787 /* end confdefs.h. */
29788 #include <$ac_header>
29790 if { (ac_try="$ac_cpp conftest.$ac_ext"
29791 case "(($ac_try" in
29792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793 *) ac_try_echo=$ac_try;;
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29798 grep -v '^ *+' conftest.er1 >conftest.err
29800 cat conftest.err >&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } >/dev/null && {
29803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29804 test ! -s conftest.err
29806 ac_header_preproc=yes
29808 echo "$as_me: failed program was:" >&5
29809 sed 's/^/| /' conftest.$ac_ext >&5
29811 ac_header_preproc=no
29814 rm -f conftest.err conftest.$ac_ext
29815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29816 echo "${ECHO_T}$ac_header_preproc" >&6; }
29818 # So? What about this header?
29819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29825 ac_header_preproc=yes
29828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29831 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29835 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29841 ## --------------------------------------------- ##
29842 ## Report this to <http://www.openldap.org/its/> ##
29843 ## --------------------------------------------- ##
29845 ) | sed "s/^/$as_me: WARNING: /" >&2
29848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29853 eval "$as_ac_Header=\$ac_header_preproc"
29855 ac_res=`eval echo '${'$as_ac_Header'}'`
29856 { echo "$as_me:$LINENO: result: $ac_res" >&5
29857 echo "${ECHO_T}$ac_res" >&6; }
29860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29861 cat >>confdefs.h <<_ACEOF
29862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29867 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29868 echo "$as_me: error: could not locate SQL headers" >&2;}
29869 { (exit 1); exit 1; }; }
29877 LIBS="$LTHREAD_LIBS"
29879 if test $ol_with_odbc = auto ; then
29880 ol_with_odbc="iodbc unixodbc odbc32"
29883 for odbc in $ol_with_odbc ; do
29884 if test $ol_link_sql = no ; then
29887 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29888 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29889 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29892 ac_check_lib_save_LIBS=$LIBS
29893 LIBS="-liodbc $LIBS"
29894 cat >conftest.$ac_ext <<_ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h. */
29901 /* Override any GCC internal prototype to avoid an error.
29902 Use char because int might match the return type of a GCC
29903 builtin and then its argument prototype would still apply. */
29907 char SQLDriverConnect ();
29911 return SQLDriverConnect ();
29916 rm -f conftest.$ac_objext conftest$ac_exeext
29917 if { (ac_try="$ac_link"
29918 case "(($ac_try" in
29919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29920 *) ac_try_echo=$ac_try;;
29922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29923 (eval "$ac_link") 2>conftest.er1
29925 grep -v '^ *+' conftest.er1 >conftest.err
29927 cat conftest.err >&5
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); } && {
29930 test -z "$ac_c_werror_flag" ||
29931 test ! -s conftest.err
29932 } && test -s conftest$ac_exeext &&
29933 $as_test_x conftest$ac_exeext; then
29934 ac_cv_lib_iodbc_SQLDriverConnect=yes
29936 echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29939 ac_cv_lib_iodbc_SQLDriverConnect=no
29942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29943 conftest$ac_exeext conftest.$ac_ext
29944 LIBS=$ac_check_lib_save_LIBS
29946 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29947 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29948 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29954 if test $have_iodbc = yes ; then
29955 ol_link_sql="-liodbc"
29960 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29961 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29962 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29963 echo $ECHO_N "(cached) $ECHO_C" >&6
29965 ac_check_lib_save_LIBS=$LIBS
29966 LIBS="-lodbc $LIBS"
29967 cat >conftest.$ac_ext <<_ACEOF
29970 cat confdefs.h >>conftest.$ac_ext
29971 cat >>conftest.$ac_ext <<_ACEOF
29972 /* end confdefs.h. */
29974 /* Override any GCC internal prototype to avoid an error.
29975 Use char because int might match the return type of a GCC
29976 builtin and then its argument prototype would still apply. */
29980 char SQLDriverConnect ();
29984 return SQLDriverConnect ();
29989 rm -f conftest.$ac_objext conftest$ac_exeext
29990 if { (ac_try="$ac_link"
29991 case "(($ac_try" in
29992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29993 *) ac_try_echo=$ac_try;;
29995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29996 (eval "$ac_link") 2>conftest.er1
29998 grep -v '^ *+' conftest.er1 >conftest.err
30000 cat conftest.err >&5
30001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002 (exit $ac_status); } && {
30003 test -z "$ac_c_werror_flag" ||
30004 test ! -s conftest.err
30005 } && test -s conftest$ac_exeext &&
30006 $as_test_x conftest$ac_exeext; then
30007 ac_cv_lib_odbc_SQLDriverConnect=yes
30009 echo "$as_me: failed program was:" >&5
30010 sed 's/^/| /' conftest.$ac_ext >&5
30012 ac_cv_lib_odbc_SQLDriverConnect=no
30015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30016 conftest$ac_exeext conftest.$ac_ext
30017 LIBS=$ac_check_lib_save_LIBS
30019 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30020 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30021 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30027 if test $have_odbc = yes ; then
30028 ol_link_sql="-lodbc"
30033 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30034 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30035 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30038 ac_check_lib_save_LIBS=$LIBS
30039 LIBS="-lodbc32 $LIBS"
30040 cat >conftest.$ac_ext <<_ACEOF
30043 cat confdefs.h >>conftest.$ac_ext
30044 cat >>conftest.$ac_ext <<_ACEOF
30045 /* end confdefs.h. */
30047 /* Override any GCC internal prototype to avoid an error.
30048 Use char because int might match the return type of a GCC
30049 builtin and then its argument prototype would still apply. */
30053 char SQLDriverConnect ();
30057 return SQLDriverConnect ();
30062 rm -f conftest.$ac_objext conftest$ac_exeext
30063 if { (ac_try="$ac_link"
30064 case "(($ac_try" in
30065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30066 *) ac_try_echo=$ac_try;;
30068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30069 (eval "$ac_link") 2>conftest.er1
30071 grep -v '^ *+' conftest.er1 >conftest.err
30073 cat conftest.err >&5
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); } && {
30076 test -z "$ac_c_werror_flag" ||
30077 test ! -s conftest.err
30078 } && test -s conftest$ac_exeext &&
30079 $as_test_x conftest$ac_exeext; then
30080 ac_cv_lib_odbc32_SQLDriverConnect=yes
30082 echo "$as_me: failed program was:" >&5
30083 sed 's/^/| /' conftest.$ac_ext >&5
30085 ac_cv_lib_odbc32_SQLDriverConnect=no
30088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30089 conftest$ac_exeext conftest.$ac_ext
30090 LIBS=$ac_check_lib_save_LIBS
30092 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30093 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30094 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30100 if test $have_odbc32 = yes ; then
30101 ol_link_sql="-lodbc32"
30106 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30107 echo "$as_me: error: unknown ODBC library" >&2;}
30108 { (exit 1); exit 1; }; }
30116 if test $ol_link_sql != no ; then
30117 SLAPD_SQL_LIBS="$ol_link_sql"
30119 elif test $ol_enable_sql != auto ; then
30120 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30121 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30122 { (exit 1); exit 1; }; }
30127 if test $ol_enable_ndb != no ; then
30128 # Extract the first word of "mysql_config", so it can be a program name with args.
30129 set dummy mysql_config; ac_word=$2
30130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30132 if test "${ac_cv_prog_MYSQL+set}" = set; then
30133 echo $ECHO_N "(cached) $ECHO_C" >&6
30135 if test -n "$MYSQL"; then
30136 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30139 for as_dir in $PATH
30142 test -z "$as_dir" && as_dir=.
30143 for ac_exec_ext in '' $ac_executable_extensions; do
30144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30145 ac_cv_prog_MYSQL="yes"
30146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30155 MYSQL=$ac_cv_prog_MYSQL
30156 if test -n "$MYSQL"; then
30157 { echo "$as_me:$LINENO: result: $MYSQL" >&5
30158 echo "${ECHO_T}$MYSQL" >&6; }
30160 { echo "$as_me:$LINENO: result: no" >&5
30161 echo "${ECHO_T}no" >&6; }
30165 if test "$MYSQL" != yes ; then
30166 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30167 echo "$as_me: error: could not locate mysql_config" >&2;}
30168 { (exit 1); exit 1; }; }
30171 SQL_INC=`mysql_config --include`
30172 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30174 save_CPPFLAGS="$CPPFLAGS"
30175 CPPFLAGS="$SLAPD_NDB_INCS"
30176 { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30177 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30178 cat >conftest.$ac_ext <<_ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h. */
30184 #include <NdbApi.hpp>
30186 if { (ac_try="$ac_cpp conftest.$ac_ext"
30187 case "(($ac_try" in
30188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30189 *) ac_try_echo=$ac_try;;
30191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30194 grep -v '^ *+' conftest.er1 >conftest.err
30196 cat conftest.err >&5
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } >/dev/null && {
30199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30200 test ! -s conftest.err
30202 { echo "$as_me:$LINENO: result: yes" >&5
30203 echo "${ECHO_T}yes" >&6; }
30205 echo "$as_me: failed program was:" >&5
30206 sed 's/^/| /' conftest.$ac_ext >&5
30208 { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30209 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30210 { (exit 1); exit 1; }; }
30214 rm -f conftest.err conftest.$ac_ext
30215 CPPFLAGS="$save_CPPFLAGS"
30217 SQL_LIB=`mysql_config --libs_r`
30218 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30220 save_LDFLAGS="$LDFLAGS"
30223 { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30224 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30225 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30226 echo $ECHO_N "(cached) $ECHO_C" >&6
30228 ac_check_lib_save_LIBS=$LIBS
30229 LIBS="-lndbclient -lstdc++ $LIBS"
30230 cat >conftest.$ac_ext <<_ACEOF
30233 cat confdefs.h >>conftest.$ac_ext
30234 cat >>conftest.$ac_ext <<_ACEOF
30235 /* end confdefs.h. */
30237 /* Override any GCC internal prototype to avoid an error.
30238 Use char because int might match the return type of a GCC
30239 builtin and then its argument prototype would still apply. */
30247 return ndb_init ();
30252 rm -f conftest.$ac_objext conftest$ac_exeext
30253 if { (ac_try="$ac_link"
30254 case "(($ac_try" in
30255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30256 *) ac_try_echo=$ac_try;;
30258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30259 (eval "$ac_link") 2>conftest.er1
30261 grep -v '^ *+' conftest.er1 >conftest.err
30263 cat conftest.err >&5
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); } && {
30266 test -z "$ac_c_werror_flag" ||
30267 test ! -s conftest.err
30268 } && test -s conftest$ac_exeext &&
30269 $as_test_x conftest$ac_exeext; then
30270 ac_cv_lib_ndbclient_ndb_init=yes
30272 echo "$as_me: failed program was:" >&5
30273 sed 's/^/| /' conftest.$ac_ext >&5
30275 ac_cv_lib_ndbclient_ndb_init=no
30278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30279 conftest$ac_exeext conftest.$ac_ext
30280 LIBS=$ac_check_lib_save_LIBS
30282 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30283 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30284 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30288 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30289 echo "$as_me: error: could not locate ndbclient library" >&2;}
30290 { (exit 1); exit 1; }; }
30295 LDFLAGS="$save_LDFLAGS"
30297 if test "$ol_enable_ndb" = yes ; then
30298 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30304 for ac_header in unicode/utypes.h
30306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30313 ac_res=`eval echo '${'$as_ac_Header'}'`
30314 { echo "$as_me:$LINENO: result: $ac_res" >&5
30315 echo "${ECHO_T}$ac_res" >&6; }
30317 # Is the header compilable?
30318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30320 cat >conftest.$ac_ext <<_ACEOF
30323 cat confdefs.h >>conftest.$ac_ext
30324 cat >>conftest.$ac_ext <<_ACEOF
30325 /* end confdefs.h. */
30326 $ac_includes_default
30327 #include <$ac_header>
30329 rm -f conftest.$ac_objext
30330 if { (ac_try="$ac_compile"
30331 case "(($ac_try" in
30332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30333 *) ac_try_echo=$ac_try;;
30335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30336 (eval "$ac_compile") 2>conftest.er1
30338 grep -v '^ *+' conftest.er1 >conftest.err
30340 cat conftest.err >&5
30341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30342 (exit $ac_status); } && {
30343 test -z "$ac_c_werror_flag" ||
30344 test ! -s conftest.err
30345 } && test -s conftest.$ac_objext; then
30346 ac_header_compiler=yes
30348 echo "$as_me: failed program was:" >&5
30349 sed 's/^/| /' conftest.$ac_ext >&5
30351 ac_header_compiler=no
30354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30356 echo "${ECHO_T}$ac_header_compiler" >&6; }
30358 # Is the header present?
30359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30361 cat >conftest.$ac_ext <<_ACEOF
30364 cat confdefs.h >>conftest.$ac_ext
30365 cat >>conftest.$ac_ext <<_ACEOF
30366 /* end confdefs.h. */
30367 #include <$ac_header>
30369 if { (ac_try="$ac_cpp conftest.$ac_ext"
30370 case "(($ac_try" in
30371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372 *) ac_try_echo=$ac_try;;
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30377 grep -v '^ *+' conftest.er1 >conftest.err
30379 cat conftest.err >&5
30380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381 (exit $ac_status); } >/dev/null && {
30382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30383 test ! -s conftest.err
30385 ac_header_preproc=yes
30387 echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30390 ac_header_preproc=no
30393 rm -f conftest.err conftest.$ac_ext
30394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30395 echo "${ECHO_T}$ac_header_preproc" >&6; }
30397 # So? What about this header?
30398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30404 ac_header_preproc=yes
30407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30420 ## --------------------------------------------- ##
30421 ## Report this to <http://www.openldap.org/its/> ##
30422 ## --------------------------------------------- ##
30424 ) | sed "s/^/$as_me: WARNING: /" >&2
30427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30430 echo $ECHO_N "(cached) $ECHO_C" >&6
30432 eval "$as_ac_Header=\$ac_header_preproc"
30434 ac_res=`eval echo '${'$as_ac_Header'}'`
30435 { echo "$as_me:$LINENO: result: $ac_res" >&5
30436 echo "${ECHO_T}$ac_res" >&6; }
30439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30440 cat >>confdefs.h <<_ACEOF
30441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30448 if test $ac_cv_header_unicode_utypes_h = yes ; then
30449 OL_ICULIBS="-licuuc -licudata"
30451 { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30452 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30453 if test "${ol_cv_lib_icu+set}" = set; then
30454 echo $ECHO_N "(cached) $ECHO_C" >&6
30458 LIBS="$OL_ICULIBS $LIBS"
30459 cat >conftest.$ac_ext <<_ACEOF
30462 cat confdefs.h >>conftest.$ac_ext
30463 cat >>conftest.$ac_ext <<_ACEOF
30464 /* end confdefs.h. */
30466 #include <unicode/utypes.h>
30472 (void) u_errorName(0);
30478 rm -f conftest.$ac_objext conftest$ac_exeext
30479 if { (ac_try="$ac_link"
30480 case "(($ac_try" in
30481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482 *) ac_try_echo=$ac_try;;
30484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30485 (eval "$ac_link") 2>conftest.er1
30487 grep -v '^ *+' conftest.er1 >conftest.err
30489 cat conftest.err >&5
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } && {
30492 test -z "$ac_c_werror_flag" ||
30493 test ! -s conftest.err
30494 } && test -s conftest$ac_exeext &&
30495 $as_test_x conftest$ac_exeext; then
30498 echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30505 conftest$ac_exeext conftest.$ac_ext
30509 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30510 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30512 if test $ol_cv_lib_icu != no ; then
30513 ol_icu="$OL_ICULIBS"
30515 cat >>confdefs.h <<\_ACEOF
30522 if test "$ol_icu" = no ; then
30523 { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30524 echo "$as_me: WARNING: ICU not available" >&2;}
30531 if test $ol_with_cyrus_sasl != no ; then
30534 for ac_header in sasl/sasl.h sasl.h
30536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30541 echo $ECHO_N "(cached) $ECHO_C" >&6
30543 ac_res=`eval echo '${'$as_ac_Header'}'`
30544 { echo "$as_me:$LINENO: result: $ac_res" >&5
30545 echo "${ECHO_T}$ac_res" >&6; }
30547 # Is the header compilable?
30548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30550 cat >conftest.$ac_ext <<_ACEOF
30553 cat confdefs.h >>conftest.$ac_ext
30554 cat >>conftest.$ac_ext <<_ACEOF
30555 /* end confdefs.h. */
30556 $ac_includes_default
30557 #include <$ac_header>
30559 rm -f conftest.$ac_objext
30560 if { (ac_try="$ac_compile"
30561 case "(($ac_try" in
30562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30563 *) ac_try_echo=$ac_try;;
30565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30566 (eval "$ac_compile") 2>conftest.er1
30568 grep -v '^ *+' conftest.er1 >conftest.err
30570 cat conftest.err >&5
30571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30572 (exit $ac_status); } && {
30573 test -z "$ac_c_werror_flag" ||
30574 test ! -s conftest.err
30575 } && test -s conftest.$ac_objext; then
30576 ac_header_compiler=yes
30578 echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30581 ac_header_compiler=no
30584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30586 echo "${ECHO_T}$ac_header_compiler" >&6; }
30588 # Is the header present?
30589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30591 cat >conftest.$ac_ext <<_ACEOF
30594 cat confdefs.h >>conftest.$ac_ext
30595 cat >>conftest.$ac_ext <<_ACEOF
30596 /* end confdefs.h. */
30597 #include <$ac_header>
30599 if { (ac_try="$ac_cpp conftest.$ac_ext"
30600 case "(($ac_try" in
30601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602 *) ac_try_echo=$ac_try;;
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30607 grep -v '^ *+' conftest.er1 >conftest.err
30609 cat conftest.err >&5
30610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611 (exit $ac_status); } >/dev/null && {
30612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30613 test ! -s conftest.err
30615 ac_header_preproc=yes
30617 echo "$as_me: failed program was:" >&5
30618 sed 's/^/| /' conftest.$ac_ext >&5
30620 ac_header_preproc=no
30623 rm -f conftest.err conftest.$ac_ext
30624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30625 echo "${ECHO_T}$ac_header_preproc" >&6; }
30627 # So? What about this header?
30628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30634 ac_header_preproc=yes
30637 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30639 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30640 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30641 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30643 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30644 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30647 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30650 ## --------------------------------------------- ##
30651 ## Report this to <http://www.openldap.org/its/> ##
30652 ## --------------------------------------------- ##
30654 ) | sed "s/^/$as_me: WARNING: /" >&2
30657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30662 eval "$as_ac_Header=\$ac_header_preproc"
30664 ac_res=`eval echo '${'$as_ac_Header'}'`
30665 { echo "$as_me:$LINENO: result: $ac_res" >&5
30666 echo "${ECHO_T}$ac_res" >&6; }
30669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30670 cat >>confdefs.h <<_ACEOF
30671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30679 if test $ac_cv_header_sasl_sasl_h = yes ||
30680 test $ac_cv_header_sasl_h = yes; then
30681 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30682 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30683 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30684 echo $ECHO_N "(cached) $ECHO_C" >&6
30686 ac_check_lib_save_LIBS=$LIBS
30687 LIBS="-lsasl2 $LIBS"
30688 cat >conftest.$ac_ext <<_ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h. */
30695 /* Override any GCC internal prototype to avoid an error.
30696 Use char because int might match the return type of a GCC
30697 builtin and then its argument prototype would still apply. */
30701 char sasl_client_init ();
30705 return sasl_client_init ();
30710 rm -f conftest.$ac_objext conftest$ac_exeext
30711 if { (ac_try="$ac_link"
30712 case "(($ac_try" in
30713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30714 *) ac_try_echo=$ac_try;;
30716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30717 (eval "$ac_link") 2>conftest.er1
30719 grep -v '^ *+' conftest.er1 >conftest.err
30721 cat conftest.err >&5
30722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30723 (exit $ac_status); } && {
30724 test -z "$ac_c_werror_flag" ||
30725 test ! -s conftest.err
30726 } && test -s conftest$ac_exeext &&
30727 $as_test_x conftest$ac_exeext; then
30728 ac_cv_lib_sasl2_sasl_client_init=yes
30730 echo "$as_me: failed program was:" >&5
30731 sed 's/^/| /' conftest.$ac_ext >&5
30733 ac_cv_lib_sasl2_sasl_client_init=no
30736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30737 conftest$ac_exeext conftest.$ac_ext
30738 LIBS=$ac_check_lib_save_LIBS
30740 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30741 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30742 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30743 ol_link_sasl="-lsasl2"
30745 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30746 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30747 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30748 echo $ECHO_N "(cached) $ECHO_C" >&6
30750 ac_check_lib_save_LIBS=$LIBS
30751 LIBS="-lsasl $LIBS"
30752 cat >conftest.$ac_ext <<_ACEOF
30755 cat confdefs.h >>conftest.$ac_ext
30756 cat >>conftest.$ac_ext <<_ACEOF
30757 /* end confdefs.h. */
30759 /* Override any GCC internal prototype to avoid an error.
30760 Use char because int might match the return type of a GCC
30761 builtin and then its argument prototype would still apply. */
30765 char sasl_client_init ();
30769 return sasl_client_init ();
30774 rm -f conftest.$ac_objext conftest$ac_exeext
30775 if { (ac_try="$ac_link"
30776 case "(($ac_try" in
30777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30778 *) ac_try_echo=$ac_try;;
30780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30781 (eval "$ac_link") 2>conftest.er1
30783 grep -v '^ *+' conftest.er1 >conftest.err
30785 cat conftest.err >&5
30786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30787 (exit $ac_status); } && {
30788 test -z "$ac_c_werror_flag" ||
30789 test ! -s conftest.err
30790 } && test -s conftest$ac_exeext &&
30791 $as_test_x conftest$ac_exeext; then
30792 ac_cv_lib_sasl_sasl_client_init=yes
30794 echo "$as_me: failed program was:" >&5
30795 sed 's/^/| /' conftest.$ac_ext >&5
30797 ac_cv_lib_sasl_sasl_client_init=no
30800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30801 conftest$ac_exeext conftest.$ac_ext
30802 LIBS=$ac_check_lib_save_LIBS
30804 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30805 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30806 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30807 ol_link_sasl="-lsasl"
30814 if test $ol_link_sasl = no ; then
30815 if test $ol_with_cyrus_sasl != auto ; then
30816 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30817 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30818 { (exit 1); exit 1; }; }
30820 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30821 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30822 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30823 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30824 if test $ol_link_tls = no ; then
30825 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30826 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30830 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30831 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30832 if test "${ol_cv_sasl_compat+set}" = set; then
30833 echo $ECHO_N "(cached) $ECHO_C" >&6
30836 cat >conftest.$ac_ext <<_ACEOF
30839 cat confdefs.h >>conftest.$ac_ext
30840 cat >>conftest.$ac_ext <<_ACEOF
30841 /* end confdefs.h. */
30843 #ifdef HAVE_SASL_SASL_H
30844 #include <sasl/sasl.h>
30849 /* Require 2.1.15+ */
30850 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
30851 char *__sasl_compat = "2.2+ or better okay (we guess)";
30852 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
30853 && SASL_VERSION_STEP >=15
30854 char *__sasl_compat = "2.1.15+ or better okay";
30858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30859 $EGREP "__sasl_compat" >/dev/null 2>&1; then
30860 ol_cv_sasl_compat=yes
30862 ol_cv_sasl_compat=no
30867 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30868 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30870 if test $ol_cv_sasl_compat = no ; then
30872 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30873 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30874 { (exit 1); exit 1; }; }
30878 cat >>confdefs.h <<\_ACEOF
30879 #define HAVE_CYRUS_SASL 1
30882 SASL_LIBS="$ol_link_sasl"
30883 if test $ol_enable_spasswd != no ; then
30884 ol_link_spasswd=yes
30887 ac_save_LIBS="$LIBS"
30888 LIBS="$LIBS $ol_link_sasl"
30889 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30890 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30891 if test "${ac_cv_func_sasl_version+set}" = set; then
30892 echo $ECHO_N "(cached) $ECHO_C" >&6
30894 cat >conftest.$ac_ext <<_ACEOF
30897 cat confdefs.h >>conftest.$ac_ext
30898 cat >>conftest.$ac_ext <<_ACEOF
30899 /* end confdefs.h. */
30900 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30902 #define sasl_version innocuous_sasl_version
30904 /* System header to define __stub macros and hopefully few prototypes,
30905 which can conflict with char sasl_version (); below.
30906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30907 <limits.h> exists even on freestanding compilers. */
30910 # include <limits.h>
30912 # include <assert.h>
30915 #undef sasl_version
30917 /* Override any GCC internal prototype to avoid an error.
30918 Use char because int might match the return type of a GCC
30919 builtin and then its argument prototype would still apply. */
30923 char sasl_version ();
30924 /* The GNU C library defines this for functions which it implements
30925 to always fail with ENOSYS. Some functions are actually named
30926 something starting with __ and the normal name is an alias. */
30927 #if defined __stub_sasl_version || defined __stub___sasl_version
30934 return sasl_version ();
30939 rm -f conftest.$ac_objext conftest$ac_exeext
30940 if { (ac_try="$ac_link"
30941 case "(($ac_try" in
30942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30943 *) ac_try_echo=$ac_try;;
30945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30946 (eval "$ac_link") 2>conftest.er1
30948 grep -v '^ *+' conftest.er1 >conftest.err
30950 cat conftest.err >&5
30951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30952 (exit $ac_status); } && {
30953 test -z "$ac_c_werror_flag" ||
30954 test ! -s conftest.err
30955 } && test -s conftest$ac_exeext &&
30956 $as_test_x conftest$ac_exeext; then
30957 ac_cv_func_sasl_version=yes
30959 echo "$as_me: failed program was:" >&5
30960 sed 's/^/| /' conftest.$ac_ext >&5
30962 ac_cv_func_sasl_version=no
30965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30966 conftest$ac_exeext conftest.$ac_ext
30968 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30969 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30970 if test $ac_cv_func_sasl_version = yes; then
30972 cat >>confdefs.h <<\_ACEOF
30973 #define HAVE_SASL_VERSION 1
30978 LIBS="$ac_save_LIBS"
30984 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30985 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30986 if test $ol_link_tls = no ; then
30987 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30988 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30992 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30994 if test -r /dev/urandom ; then
30995 dev="/dev/urandom";
30996 elif test -r /idev/urandom ; then
30997 dev="/idev/urandom";
30998 elif test -r /dev/srandom ; then
30999 dev="/dev/srandom";
31000 elif test -r /dev/random ; then
31002 elif test -r /idev/random ; then
31003 dev="/idev/random";
31006 if test $dev != no ; then
31008 cat >>confdefs.h <<_ACEOF
31009 #define URANDOM_DEVICE "$dev"
31016 if test $ol_with_fetch != no ; then
31018 LIBS="-lfetch -lcom_err $LIBS"
31019 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31020 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31021 if test "${ol_cv_lib_fetch+set}" = set; then
31022 echo $ECHO_N "(cached) $ECHO_C" >&6
31025 cat >conftest.$ac_ext <<_ACEOF
31028 cat confdefs.h >>conftest.$ac_ext
31029 cat >>conftest.$ac_ext <<_ACEOF
31030 /* end confdefs.h. */
31032 #ifdef HAVE_SYS_PARAM_H
31033 #include <sys/param.h>
31040 struct url *u = fetchParseURL("file:///");
31045 rm -f conftest.$ac_objext conftest$ac_exeext
31046 if { (ac_try="$ac_link"
31047 case "(($ac_try" in
31048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31049 *) ac_try_echo=$ac_try;;
31051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31052 (eval "$ac_link") 2>conftest.er1
31054 grep -v '^ *+' conftest.er1 >conftest.err
31056 cat conftest.err >&5
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); } && {
31059 test -z "$ac_c_werror_flag" ||
31060 test ! -s conftest.err
31061 } && test -s conftest$ac_exeext &&
31062 $as_test_x conftest$ac_exeext; then
31063 ol_cv_lib_fetch=yes
31065 echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.$ac_ext >&5
31071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31072 conftest$ac_exeext conftest.$ac_ext
31074 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31075 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31077 if test $ol_cv_lib_fetch != no ; then
31078 ol_link_fetch="-lfetch -lcom_err"
31080 cat >>confdefs.h <<\_ACEOF
31081 #define HAVE_FETCH 1
31087 if test $ol_cv_lib_fetch != no ; then
31088 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31089 ol_link_fetch=freebsd
31091 elif test $ol_with_fetch != auto ; then
31092 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31093 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31094 { (exit 1); exit 1; }; }
31098 if test $ol_enable_crypt != no ; then
31100 LIBS="$TLS_LIBS $LIBS"
31102 { echo "$as_me:$LINENO: checking for crypt" >&5
31103 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31104 if test "${ac_cv_func_crypt+set}" = set; then
31105 echo $ECHO_N "(cached) $ECHO_C" >&6
31107 cat >conftest.$ac_ext <<_ACEOF
31110 cat confdefs.h >>conftest.$ac_ext
31111 cat >>conftest.$ac_ext <<_ACEOF
31112 /* end confdefs.h. */
31113 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31115 #define crypt innocuous_crypt
31117 /* System header to define __stub macros and hopefully few prototypes,
31118 which can conflict with char crypt (); below.
31119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31120 <limits.h> exists even on freestanding compilers. */
31123 # include <limits.h>
31125 # include <assert.h>
31130 /* Override any GCC internal prototype to avoid an error.
31131 Use char because int might match the return type of a GCC
31132 builtin and then its argument prototype would still apply. */
31137 /* The GNU C library defines this for functions which it implements
31138 to always fail with ENOSYS. Some functions are actually named
31139 something starting with __ and the normal name is an alias. */
31140 #if defined __stub_crypt || defined __stub___crypt
31152 rm -f conftest.$ac_objext conftest$ac_exeext
31153 if { (ac_try="$ac_link"
31154 case "(($ac_try" in
31155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31156 *) ac_try_echo=$ac_try;;
31158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31159 (eval "$ac_link") 2>conftest.er1
31161 grep -v '^ *+' conftest.er1 >conftest.err
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } && {
31166 test -z "$ac_c_werror_flag" ||
31167 test ! -s conftest.err
31168 } && test -s conftest$ac_exeext &&
31169 $as_test_x conftest$ac_exeext; then
31170 ac_cv_func_crypt=yes
31172 echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31175 ac_cv_func_crypt=no
31178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31179 conftest$ac_exeext conftest.$ac_ext
31181 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31182 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31183 if test $ac_cv_func_crypt = yes; then
31188 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31189 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31190 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31191 echo $ECHO_N "(cached) $ECHO_C" >&6
31193 ac_check_lib_save_LIBS=$LIBS
31194 LIBS="-lcrypt $LIBS"
31195 cat >conftest.$ac_ext <<_ACEOF
31198 cat confdefs.h >>conftest.$ac_ext
31199 cat >>conftest.$ac_ext <<_ACEOF
31200 /* end confdefs.h. */
31202 /* Override any GCC internal prototype to avoid an error.
31203 Use char because int might match the return type of a GCC
31204 builtin and then its argument prototype would still apply. */
31217 rm -f conftest.$ac_objext conftest$ac_exeext
31218 if { (ac_try="$ac_link"
31219 case "(($ac_try" in
31220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221 *) ac_try_echo=$ac_try;;
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224 (eval "$ac_link") 2>conftest.er1
31226 grep -v '^ *+' conftest.er1 >conftest.err
31228 cat conftest.err >&5
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); } && {
31231 test -z "$ac_c_werror_flag" ||
31232 test ! -s conftest.err
31233 } && test -s conftest$ac_exeext &&
31234 $as_test_x conftest$ac_exeext; then
31235 ac_cv_lib_crypt_crypt=yes
31237 echo "$as_me: failed program was:" >&5
31238 sed 's/^/| /' conftest.$ac_ext >&5
31240 ac_cv_lib_crypt_crypt=no
31243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31244 conftest$ac_exeext conftest.$ac_ext
31245 LIBS=$ac_check_lib_save_LIBS
31247 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31248 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31249 if test $ac_cv_lib_crypt_crypt = yes; then
31250 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31261 if test $have_crypt = yes ; then
31263 cat >>confdefs.h <<\_ACEOF
31264 #define HAVE_CRYPT 1
31268 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31269 echo "$as_me: WARNING: could not find crypt" >&2;}
31270 if test $ol_enable_crypt = yes ; then
31271 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31272 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31273 { (exit 1); exit 1; }; }
31276 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31277 echo "$as_me: WARNING: disabling crypt support" >&2;}
31282 if test $ol_enable_proctitle != no ; then
31283 { echo "$as_me:$LINENO: checking for setproctitle" >&5
31284 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31285 if test "${ac_cv_func_setproctitle+set}" = set; then
31286 echo $ECHO_N "(cached) $ECHO_C" >&6
31288 cat >conftest.$ac_ext <<_ACEOF
31291 cat confdefs.h >>conftest.$ac_ext
31292 cat >>conftest.$ac_ext <<_ACEOF
31293 /* end confdefs.h. */
31294 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31296 #define setproctitle innocuous_setproctitle
31298 /* System header to define __stub macros and hopefully few prototypes,
31299 which can conflict with char setproctitle (); below.
31300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31301 <limits.h> exists even on freestanding compilers. */
31304 # include <limits.h>
31306 # include <assert.h>
31309 #undef setproctitle
31311 /* Override any GCC internal prototype to avoid an error.
31312 Use char because int might match the return type of a GCC
31313 builtin and then its argument prototype would still apply. */
31317 char setproctitle ();
31318 /* The GNU C library defines this for functions which it implements
31319 to always fail with ENOSYS. Some functions are actually named
31320 something starting with __ and the normal name is an alias. */
31321 #if defined __stub_setproctitle || defined __stub___setproctitle
31328 return setproctitle ();
31333 rm -f conftest.$ac_objext conftest$ac_exeext
31334 if { (ac_try="$ac_link"
31335 case "(($ac_try" in
31336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31337 *) ac_try_echo=$ac_try;;
31339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31340 (eval "$ac_link") 2>conftest.er1
31342 grep -v '^ *+' conftest.er1 >conftest.err
31344 cat conftest.err >&5
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); } && {
31347 test -z "$ac_c_werror_flag" ||
31348 test ! -s conftest.err
31349 } && test -s conftest$ac_exeext &&
31350 $as_test_x conftest$ac_exeext; then
31351 ac_cv_func_setproctitle=yes
31353 echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.$ac_ext >&5
31356 ac_cv_func_setproctitle=no
31359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31360 conftest$ac_exeext conftest.$ac_ext
31362 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31363 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31364 if test $ac_cv_func_setproctitle = yes; then
31365 have_setproctitle=yes
31368 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31369 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31370 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31371 echo $ECHO_N "(cached) $ECHO_C" >&6
31373 ac_check_lib_save_LIBS=$LIBS
31374 LIBS="-lutil $LIBS"
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31382 /* Override any GCC internal prototype to avoid an error.
31383 Use char because int might match the return type of a GCC
31384 builtin and then its argument prototype would still apply. */
31388 char setproctitle ();
31392 return setproctitle ();
31397 rm -f conftest.$ac_objext conftest$ac_exeext
31398 if { (ac_try="$ac_link"
31399 case "(($ac_try" in
31400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31401 *) ac_try_echo=$ac_try;;
31403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31404 (eval "$ac_link") 2>conftest.er1
31406 grep -v '^ *+' conftest.er1 >conftest.err
31408 cat conftest.err >&5
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); } && {
31411 test -z "$ac_c_werror_flag" ||
31412 test ! -s conftest.err
31413 } && test -s conftest$ac_exeext &&
31414 $as_test_x conftest$ac_exeext; then
31415 ac_cv_lib_util_setproctitle=yes
31417 echo "$as_me: failed program was:" >&5
31418 sed 's/^/| /' conftest.$ac_ext >&5
31420 ac_cv_lib_util_setproctitle=no
31423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31424 conftest$ac_exeext conftest.$ac_ext
31425 LIBS=$ac_check_lib_save_LIBS
31427 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31428 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31429 if test $ac_cv_lib_util_setproctitle = yes; then
31430 have_setproctitle=yes
31431 LUTIL_LIBS="$LUTIL_LIBS -lutil"
31433 have_setproctitle=no
31434 case " $LIBOBJS " in
31435 *" setproctitle.$ac_objext "* ) ;;
31436 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31440 LIBSRCS="$LIBSRCS setproctitle.c"
31446 if test $have_setproctitle = yes ; then
31448 cat >>confdefs.h <<\_ACEOF
31449 #define HAVE_SETPROCTITLE 1
31455 if test $ol_enable_slp != no ; then
31457 for ac_header in slp.h
31459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31466 ac_res=`eval echo '${'$as_ac_Header'}'`
31467 { echo "$as_me:$LINENO: result: $ac_res" >&5
31468 echo "${ECHO_T}$ac_res" >&6; }
31470 # Is the header compilable?
31471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31473 cat >conftest.$ac_ext <<_ACEOF
31476 cat confdefs.h >>conftest.$ac_ext
31477 cat >>conftest.$ac_ext <<_ACEOF
31478 /* end confdefs.h. */
31479 $ac_includes_default
31480 #include <$ac_header>
31482 rm -f conftest.$ac_objext
31483 if { (ac_try="$ac_compile"
31484 case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_compile") 2>conftest.er1
31491 grep -v '^ *+' conftest.er1 >conftest.err
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } && {
31496 test -z "$ac_c_werror_flag" ||
31497 test ! -s conftest.err
31498 } && test -s conftest.$ac_objext; then
31499 ac_header_compiler=yes
31501 echo "$as_me: failed program was:" >&5
31502 sed 's/^/| /' conftest.$ac_ext >&5
31504 ac_header_compiler=no
31507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31509 echo "${ECHO_T}$ac_header_compiler" >&6; }
31511 # Is the header present?
31512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31514 cat >conftest.$ac_ext <<_ACEOF
31517 cat confdefs.h >>conftest.$ac_ext
31518 cat >>conftest.$ac_ext <<_ACEOF
31519 /* end confdefs.h. */
31520 #include <$ac_header>
31522 if { (ac_try="$ac_cpp conftest.$ac_ext"
31523 case "(($ac_try" in
31524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31525 *) ac_try_echo=$ac_try;;
31527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31530 grep -v '^ *+' conftest.er1 >conftest.err
31532 cat conftest.err >&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); } >/dev/null && {
31535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31536 test ! -s conftest.err
31538 ac_header_preproc=yes
31540 echo "$as_me: failed program was:" >&5
31541 sed 's/^/| /' conftest.$ac_ext >&5
31543 ac_header_preproc=no
31546 rm -f conftest.err conftest.$ac_ext
31547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31548 echo "${ECHO_T}$ac_header_preproc" >&6; }
31550 # So? What about this header?
31551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31557 ac_header_preproc=yes
31560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31563 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31567 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31573 ## --------------------------------------------- ##
31574 ## Report this to <http://www.openldap.org/its/> ##
31575 ## --------------------------------------------- ##
31577 ) | sed "s/^/$as_me: WARNING: /" >&2
31580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31583 echo $ECHO_N "(cached) $ECHO_C" >&6
31585 eval "$as_ac_Header=\$ac_header_preproc"
31587 ac_res=`eval echo '${'$as_ac_Header'}'`
31588 { echo "$as_me:$LINENO: result: $ac_res" >&5
31589 echo "${ECHO_T}$ac_res" >&6; }
31592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31593 cat >>confdefs.h <<_ACEOF
31594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31602 if test $ac_cv_header_slp_h = yes ; then
31603 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31604 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31605 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31606 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 ac_check_lib_save_LIBS=$LIBS
31610 cat >conftest.$ac_ext <<_ACEOF
31613 cat confdefs.h >>conftest.$ac_ext
31614 cat >>conftest.$ac_ext <<_ACEOF
31615 /* end confdefs.h. */
31617 /* Override any GCC internal prototype to avoid an error.
31618 Use char because int might match the return type of a GCC
31619 builtin and then its argument prototype would still apply. */
31632 rm -f conftest.$ac_objext conftest$ac_exeext
31633 if { (ac_try="$ac_link"
31634 case "(($ac_try" in
31635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31636 *) ac_try_echo=$ac_try;;
31638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31639 (eval "$ac_link") 2>conftest.er1
31641 grep -v '^ *+' conftest.er1 >conftest.err
31643 cat conftest.err >&5
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } && {
31646 test -z "$ac_c_werror_flag" ||
31647 test ! -s conftest.err
31648 } && test -s conftest$ac_exeext &&
31649 $as_test_x conftest$ac_exeext; then
31650 ac_cv_lib_slp_SLPOpen=yes
31652 echo "$as_me: failed program was:" >&5
31653 sed 's/^/| /' conftest.$ac_ext >&5
31655 ac_cv_lib_slp_SLPOpen=no
31658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31659 conftest$ac_exeext conftest.$ac_ext
31660 LIBS=$ac_check_lib_save_LIBS
31662 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31663 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31664 if test $ac_cv_lib_slp_SLPOpen = yes; then
31670 if test $have_slp = yes ; then
31672 cat >>confdefs.h <<\_ACEOF
31676 SLAPD_SLP_LIBS=-lslp
31679 elif test $ol_enable_slp = yes ; then
31680 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31681 echo "$as_me: error: SLP not found" >&2;}
31682 { (exit 1); exit 1; }; }
31687 { echo "$as_me:$LINENO: checking for mode_t" >&5
31688 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31689 if test "${ac_cv_type_mode_t+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
31692 cat >conftest.$ac_ext <<_ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h. */
31698 $ac_includes_default
31699 typedef mode_t ac__type_new_;
31703 if ((ac__type_new_ *) 0)
31705 if (sizeof (ac__type_new_))
31711 rm -f conftest.$ac_objext
31712 if { (ac_try="$ac_compile"
31713 case "(($ac_try" in
31714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31715 *) ac_try_echo=$ac_try;;
31717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31718 (eval "$ac_compile") 2>conftest.er1
31720 grep -v '^ *+' conftest.er1 >conftest.err
31722 cat conftest.err >&5
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); } && {
31725 test -z "$ac_c_werror_flag" ||
31726 test ! -s conftest.err
31727 } && test -s conftest.$ac_objext; then
31728 ac_cv_type_mode_t=yes
31730 echo "$as_me: failed program was:" >&5
31731 sed 's/^/| /' conftest.$ac_ext >&5
31733 ac_cv_type_mode_t=no
31736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31738 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31739 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31740 if test $ac_cv_type_mode_t = yes; then
31744 cat >>confdefs.h <<_ACEOF
31750 { echo "$as_me:$LINENO: checking for off_t" >&5
31751 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31752 if test "${ac_cv_type_off_t+set}" = set; then
31753 echo $ECHO_N "(cached) $ECHO_C" >&6
31755 cat >conftest.$ac_ext <<_ACEOF
31758 cat confdefs.h >>conftest.$ac_ext
31759 cat >>conftest.$ac_ext <<_ACEOF
31760 /* end confdefs.h. */
31761 $ac_includes_default
31762 typedef off_t ac__type_new_;
31766 if ((ac__type_new_ *) 0)
31768 if (sizeof (ac__type_new_))
31774 rm -f conftest.$ac_objext
31775 if { (ac_try="$ac_compile"
31776 case "(($ac_try" in
31777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778 *) ac_try_echo=$ac_try;;
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781 (eval "$ac_compile") 2>conftest.er1
31783 grep -v '^ *+' conftest.er1 >conftest.err
31785 cat conftest.err >&5
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); } && {
31788 test -z "$ac_c_werror_flag" ||
31789 test ! -s conftest.err
31790 } && test -s conftest.$ac_objext; then
31791 ac_cv_type_off_t=yes
31793 echo "$as_me: failed program was:" >&5
31794 sed 's/^/| /' conftest.$ac_ext >&5
31796 ac_cv_type_off_t=no
31799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31801 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31802 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31803 if test $ac_cv_type_off_t = yes; then
31807 cat >>confdefs.h <<_ACEOF
31813 { echo "$as_me:$LINENO: checking for pid_t" >&5
31814 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31815 if test "${ac_cv_type_pid_t+set}" = set; then
31816 echo $ECHO_N "(cached) $ECHO_C" >&6
31818 cat >conftest.$ac_ext <<_ACEOF
31821 cat confdefs.h >>conftest.$ac_ext
31822 cat >>conftest.$ac_ext <<_ACEOF
31823 /* end confdefs.h. */
31824 $ac_includes_default
31825 typedef pid_t ac__type_new_;
31829 if ((ac__type_new_ *) 0)
31831 if (sizeof (ac__type_new_))
31837 rm -f conftest.$ac_objext
31838 if { (ac_try="$ac_compile"
31839 case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_compile") 2>conftest.er1
31846 grep -v '^ *+' conftest.er1 >conftest.err
31848 cat conftest.err >&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); } && {
31851 test -z "$ac_c_werror_flag" ||
31852 test ! -s conftest.err
31853 } && test -s conftest.$ac_objext; then
31854 ac_cv_type_pid_t=yes
31856 echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31859 ac_cv_type_pid_t=no
31862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31864 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31865 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31866 if test $ac_cv_type_pid_t = yes; then
31870 cat >>confdefs.h <<_ACEOF
31876 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31877 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31878 if test "${ac_cv_type_ssize_t+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31881 cat >conftest.$ac_ext <<_ACEOF
31884 cat confdefs.h >>conftest.$ac_ext
31885 cat >>conftest.$ac_ext <<_ACEOF
31886 /* end confdefs.h. */
31887 $ac_includes_default
31888 typedef ssize_t ac__type_new_;
31892 if ((ac__type_new_ *) 0)
31894 if (sizeof (ac__type_new_))
31900 rm -f conftest.$ac_objext
31901 if { (ac_try="$ac_compile"
31902 case "(($ac_try" in
31903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904 *) ac_try_echo=$ac_try;;
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907 (eval "$ac_compile") 2>conftest.er1
31909 grep -v '^ *+' conftest.er1 >conftest.err
31911 cat conftest.err >&5
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); } && {
31914 test -z "$ac_c_werror_flag" ||
31915 test ! -s conftest.err
31916 } && test -s conftest.$ac_objext; then
31917 ac_cv_type_ssize_t=yes
31919 echo "$as_me: failed program was:" >&5
31920 sed 's/^/| /' conftest.$ac_ext >&5
31922 ac_cv_type_ssize_t=no
31925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31927 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31928 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31929 if test $ac_cv_type_ssize_t = yes; then
31933 cat >>confdefs.h <<_ACEOF
31934 #define ssize_t signed int
31939 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31940 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31941 if test "${ac_cv_type_caddr_t+set}" = set; then
31942 echo $ECHO_N "(cached) $ECHO_C" >&6
31944 cat >conftest.$ac_ext <<_ACEOF
31947 cat confdefs.h >>conftest.$ac_ext
31948 cat >>conftest.$ac_ext <<_ACEOF
31949 /* end confdefs.h. */
31950 $ac_includes_default
31951 typedef caddr_t ac__type_new_;
31955 if ((ac__type_new_ *) 0)
31957 if (sizeof (ac__type_new_))
31963 rm -f conftest.$ac_objext
31964 if { (ac_try="$ac_compile"
31965 case "(($ac_try" in
31966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31967 *) ac_try_echo=$ac_try;;
31969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31970 (eval "$ac_compile") 2>conftest.er1
31972 grep -v '^ *+' conftest.er1 >conftest.err
31974 cat conftest.err >&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); } && {
31977 test -z "$ac_c_werror_flag" ||
31978 test ! -s conftest.err
31979 } && test -s conftest.$ac_objext; then
31980 ac_cv_type_caddr_t=yes
31982 echo "$as_me: failed program was:" >&5
31983 sed 's/^/| /' conftest.$ac_ext >&5
31985 ac_cv_type_caddr_t=no
31988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31990 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31991 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31992 if test $ac_cv_type_caddr_t = yes; then
31996 cat >>confdefs.h <<_ACEOF
31997 #define caddr_t char *
32002 { echo "$as_me:$LINENO: checking for size_t" >&5
32003 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32004 if test "${ac_cv_type_size_t+set}" = set; then
32005 echo $ECHO_N "(cached) $ECHO_C" >&6
32007 cat >conftest.$ac_ext <<_ACEOF
32010 cat confdefs.h >>conftest.$ac_ext
32011 cat >>conftest.$ac_ext <<_ACEOF
32012 /* end confdefs.h. */
32013 $ac_includes_default
32014 typedef size_t ac__type_new_;
32018 if ((ac__type_new_ *) 0)
32020 if (sizeof (ac__type_new_))
32026 rm -f conftest.$ac_objext
32027 if { (ac_try="$ac_compile"
32028 case "(($ac_try" in
32029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32030 *) ac_try_echo=$ac_try;;
32032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32033 (eval "$ac_compile") 2>conftest.er1
32035 grep -v '^ *+' conftest.er1 >conftest.err
32037 cat conftest.err >&5
32038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32039 (exit $ac_status); } && {
32040 test -z "$ac_c_werror_flag" ||
32041 test ! -s conftest.err
32042 } && test -s conftest.$ac_objext; then
32043 ac_cv_type_size_t=yes
32045 echo "$as_me: failed program was:" >&5
32046 sed 's/^/| /' conftest.$ac_ext >&5
32048 ac_cv_type_size_t=no
32051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32053 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32054 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32055 if test $ac_cv_type_size_t = yes; then
32059 cat >>confdefs.h <<_ACEOF
32060 #define size_t unsigned
32066 { echo "$as_me:$LINENO: checking for long long" >&5
32067 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32068 if test "${ac_cv_type_long_long+set}" = set; then
32069 echo $ECHO_N "(cached) $ECHO_C" >&6
32071 cat >conftest.$ac_ext <<_ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h. */
32077 $ac_includes_default
32078 typedef long long ac__type_new_;
32082 if ((ac__type_new_ *) 0)
32084 if (sizeof (ac__type_new_))
32090 rm -f conftest.$ac_objext
32091 if { (ac_try="$ac_compile"
32092 case "(($ac_try" in
32093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32094 *) ac_try_echo=$ac_try;;
32096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32097 (eval "$ac_compile") 2>conftest.er1
32099 grep -v '^ *+' conftest.er1 >conftest.err
32101 cat conftest.err >&5
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } && {
32104 test -z "$ac_c_werror_flag" ||
32105 test ! -s conftest.err
32106 } && test -s conftest.$ac_objext; then
32107 ac_cv_type_long_long=yes
32109 echo "$as_me: failed program was:" >&5
32110 sed 's/^/| /' conftest.$ac_ext >&5
32112 ac_cv_type_long_long=no
32115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32117 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32118 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32119 if test $ac_cv_type_long_long = yes; then
32121 cat >>confdefs.h <<_ACEOF
32122 #define HAVE_LONG_LONG 1
32128 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32129 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32130 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32131 echo $ECHO_N "(cached) $ECHO_C" >&6
32133 cat >conftest.$ac_ext <<_ACEOF
32136 cat confdefs.h >>conftest.$ac_ext
32137 cat >>conftest.$ac_ext <<_ACEOF
32138 /* end confdefs.h. */
32139 $ac_includes_default
32140 typedef ptrdiff_t ac__type_new_;
32144 if ((ac__type_new_ *) 0)
32146 if (sizeof (ac__type_new_))
32152 rm -f conftest.$ac_objext
32153 if { (ac_try="$ac_compile"
32154 case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_compile") 2>conftest.er1
32161 grep -v '^ *+' conftest.er1 >conftest.err
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } && {
32166 test -z "$ac_c_werror_flag" ||
32167 test ! -s conftest.err
32168 } && test -s conftest.$ac_objext; then
32169 ac_cv_type_ptrdiff_t=yes
32171 echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32174 ac_cv_type_ptrdiff_t=no
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32179 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32180 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32181 if test $ac_cv_type_ptrdiff_t = yes; then
32183 cat >>confdefs.h <<_ACEOF
32184 #define HAVE_PTRDIFF_T 1
32192 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32193 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32194 if test "${ac_cv_type_socklen_t+set}" = set; then
32195 echo $ECHO_N "(cached) $ECHO_C" >&6
32197 cat >conftest.$ac_ext <<_ACEOF
32200 cat confdefs.h >>conftest.$ac_ext
32201 cat >>conftest.$ac_ext <<_ACEOF
32202 /* end confdefs.h. */
32203 $ac_includes_default
32204 #ifdef HAVE_SYS_SOCKET_H
32205 #include <sys/socket.h>
32208 typedef socklen_t ac__type_new_;
32212 if ((ac__type_new_ *) 0)
32214 if (sizeof (ac__type_new_))
32220 rm -f conftest.$ac_objext
32221 if { (ac_try="$ac_compile"
32222 case "(($ac_try" in
32223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224 *) ac_try_echo=$ac_try;;
32226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32227 (eval "$ac_compile") 2>conftest.er1
32229 grep -v '^ *+' conftest.er1 >conftest.err
32231 cat conftest.err >&5
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); } && {
32234 test -z "$ac_c_werror_flag" ||
32235 test ! -s conftest.err
32236 } && test -s conftest.$ac_objext; then
32237 ac_cv_type_socklen_t=yes
32239 echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32242 ac_cv_type_socklen_t=no
32245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32247 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32248 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32251 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32252 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32253 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32254 echo $ECHO_N "(cached) $ECHO_C" >&6
32257 set socklen_t int unsigned "unsigned long" long size_t
32258 test "$ac_cv_type_socklen_t" = yes || shift
32259 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32260 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32261 cat >conftest.$ac_ext <<_ACEOF
32264 cat confdefs.h >>conftest.$ac_ext
32265 cat >>conftest.$ac_ext <<_ACEOF
32266 /* end confdefs.h. */
32267 $ac_includes_default
32268 #ifdef HAVE_SYS_SOCKET_H
32269 #include <sys/socket.h>
32271 extern int accept(int s, $addrtype *ap, $lentype *lp);
32277 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32283 rm -f conftest.$ac_objext
32284 if { (ac_try="$ac_compile"
32285 case "(($ac_try" in
32286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32287 *) ac_try_echo=$ac_try;;
32289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32290 (eval "$ac_compile") 2>conftest.er1
32292 grep -v '^ *+' conftest.er1 >conftest.err
32294 cat conftest.err >&5
32295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32296 (exit $ac_status); } && {
32297 test -z "$ac_c_werror_flag" ||
32298 test ! -s conftest.err
32299 } && test -s conftest.$ac_objext; then
32300 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32302 echo "$as_me: failed program was:" >&5
32303 sed 's/^/| /' conftest.$ac_ext >&5
32308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32312 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32313 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32315 cat >>confdefs.h <<_ACEOF
32316 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32320 if test "$ac_cv_type_socklen_t" != yes; then
32322 cat >>confdefs.h <<_ACEOF
32323 #define socklen_t $ol_cv_type_ber_socklen_t
32329 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32330 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32331 if test "${ac_cv_type_signal+set}" = set; then
32332 echo $ECHO_N "(cached) $ECHO_C" >&6
32334 cat >conftest.$ac_ext <<_ACEOF
32337 cat confdefs.h >>conftest.$ac_ext
32338 cat >>conftest.$ac_ext <<_ACEOF
32339 /* end confdefs.h. */
32340 #include <sys/types.h>
32341 #include <signal.h>
32346 return *(signal (0, 0)) (0) == 1;
32351 rm -f conftest.$ac_objext
32352 if { (ac_try="$ac_compile"
32353 case "(($ac_try" in
32354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32355 *) ac_try_echo=$ac_try;;
32357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32358 (eval "$ac_compile") 2>conftest.er1
32360 grep -v '^ *+' conftest.er1 >conftest.err
32362 cat conftest.err >&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); } && {
32365 test -z "$ac_c_werror_flag" ||
32366 test ! -s conftest.err
32367 } && test -s conftest.$ac_objext; then
32368 ac_cv_type_signal=int
32370 echo "$as_me: failed program was:" >&5
32371 sed 's/^/| /' conftest.$ac_ext >&5
32373 ac_cv_type_signal=void
32376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32378 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32379 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32381 cat >>confdefs.h <<_ACEOF
32382 #define RETSIGTYPE $ac_cv_type_signal
32387 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32388 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32389 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32390 echo $ECHO_N "(cached) $ECHO_C" >&6
32392 cat >conftest.$ac_ext <<_ACEOF
32395 cat confdefs.h >>conftest.$ac_ext
32396 cat >>conftest.$ac_ext <<_ACEOF
32397 /* end confdefs.h. */
32398 $ac_includes_default
32399 #include <signal.h>
32402 typedef sig_atomic_t ac__type_new_;
32406 if ((ac__type_new_ *) 0)
32408 if (sizeof (ac__type_new_))
32414 rm -f conftest.$ac_objext
32415 if { (ac_try="$ac_compile"
32416 case "(($ac_try" in
32417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32418 *) ac_try_echo=$ac_try;;
32420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32421 (eval "$ac_compile") 2>conftest.er1
32423 grep -v '^ *+' conftest.er1 >conftest.err
32425 cat conftest.err >&5
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } && {
32428 test -z "$ac_c_werror_flag" ||
32429 test ! -s conftest.err
32430 } && test -s conftest.$ac_objext; then
32431 ac_cv_type_sig_atomic_t=yes
32433 echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32436 ac_cv_type_sig_atomic_t=no
32439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32442 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32443 if test $ac_cv_type_sig_atomic_t = yes; then
32447 cat >>confdefs.h <<_ACEOF
32448 #define sig_atomic_t int
32454 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32455 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32456 if test "${ac_cv_type_uid_t+set}" = set; then
32457 echo $ECHO_N "(cached) $ECHO_C" >&6
32459 cat >conftest.$ac_ext <<_ACEOF
32462 cat confdefs.h >>conftest.$ac_ext
32463 cat >>conftest.$ac_ext <<_ACEOF
32464 /* end confdefs.h. */
32465 #include <sys/types.h>
32468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32469 $EGREP "uid_t" >/dev/null 2>&1; then
32470 ac_cv_type_uid_t=yes
32472 ac_cv_type_uid_t=no
32477 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32478 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32479 if test $ac_cv_type_uid_t = no; then
32481 cat >>confdefs.h <<\_ACEOF
32486 cat >>confdefs.h <<\_ACEOF
32493 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32494 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32495 if test "${ac_cv_header_time+set}" = set; then
32496 echo $ECHO_N "(cached) $ECHO_C" >&6
32498 cat >conftest.$ac_ext <<_ACEOF
32501 cat confdefs.h >>conftest.$ac_ext
32502 cat >>conftest.$ac_ext <<_ACEOF
32503 /* end confdefs.h. */
32504 #include <sys/types.h>
32505 #include <sys/time.h>
32511 if ((struct tm *) 0)
32517 rm -f conftest.$ac_objext
32518 if { (ac_try="$ac_compile"
32519 case "(($ac_try" in
32520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32521 *) ac_try_echo=$ac_try;;
32523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32524 (eval "$ac_compile") 2>conftest.er1
32526 grep -v '^ *+' conftest.er1 >conftest.err
32528 cat conftest.err >&5
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); } && {
32531 test -z "$ac_c_werror_flag" ||
32532 test ! -s conftest.err
32533 } && test -s conftest.$ac_objext; then
32534 ac_cv_header_time=yes
32536 echo "$as_me: failed program was:" >&5
32537 sed 's/^/| /' conftest.$ac_ext >&5
32539 ac_cv_header_time=no
32542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32544 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32545 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32546 if test $ac_cv_header_time = yes; then
32548 cat >>confdefs.h <<\_ACEOF
32549 #define TIME_WITH_SYS_TIME 1
32554 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32555 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32556 if test "${ac_cv_struct_tm+set}" = set; then
32557 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 cat >conftest.$ac_ext <<_ACEOF
32562 cat confdefs.h >>conftest.$ac_ext
32563 cat >>conftest.$ac_ext <<_ACEOF
32564 /* end confdefs.h. */
32565 #include <sys/types.h>
32572 int *p = &tm.tm_sec;
32578 rm -f conftest.$ac_objext
32579 if { (ac_try="$ac_compile"
32580 case "(($ac_try" in
32581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32582 *) ac_try_echo=$ac_try;;
32584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32585 (eval "$ac_compile") 2>conftest.er1
32587 grep -v '^ *+' conftest.er1 >conftest.err
32589 cat conftest.err >&5
32590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32591 (exit $ac_status); } && {
32592 test -z "$ac_c_werror_flag" ||
32593 test ! -s conftest.err
32594 } && test -s conftest.$ac_objext; then
32595 ac_cv_struct_tm=time.h
32597 echo "$as_me: failed program was:" >&5
32598 sed 's/^/| /' conftest.$ac_ext >&5
32600 ac_cv_struct_tm=sys/time.h
32603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32605 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32606 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32607 if test $ac_cv_struct_tm = sys/time.h; then
32609 cat >>confdefs.h <<\_ACEOF
32610 #define TM_IN_SYS_TIME 1
32615 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32616 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32617 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32620 cat >conftest.$ac_ext <<_ACEOF
32623 cat confdefs.h >>conftest.$ac_ext
32624 cat >>conftest.$ac_ext <<_ACEOF
32625 /* end confdefs.h. */
32626 $ac_includes_default
32630 static struct stat ac_aggr;
32631 if (ac_aggr.st_blksize)
32637 rm -f conftest.$ac_objext
32638 if { (ac_try="$ac_compile"
32639 case "(($ac_try" in
32640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32641 *) ac_try_echo=$ac_try;;
32643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32644 (eval "$ac_compile") 2>conftest.er1
32646 grep -v '^ *+' conftest.er1 >conftest.err
32648 cat conftest.err >&5
32649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32650 (exit $ac_status); } && {
32651 test -z "$ac_c_werror_flag" ||
32652 test ! -s conftest.err
32653 } && test -s conftest.$ac_objext; then
32654 ac_cv_member_struct_stat_st_blksize=yes
32656 echo "$as_me: failed program was:" >&5
32657 sed 's/^/| /' conftest.$ac_ext >&5
32659 cat >conftest.$ac_ext <<_ACEOF
32662 cat confdefs.h >>conftest.$ac_ext
32663 cat >>conftest.$ac_ext <<_ACEOF
32664 /* end confdefs.h. */
32665 $ac_includes_default
32669 static struct stat ac_aggr;
32670 if (sizeof ac_aggr.st_blksize)
32676 rm -f conftest.$ac_objext
32677 if { (ac_try="$ac_compile"
32678 case "(($ac_try" in
32679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32680 *) ac_try_echo=$ac_try;;
32682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32683 (eval "$ac_compile") 2>conftest.er1
32685 grep -v '^ *+' conftest.er1 >conftest.err
32687 cat conftest.err >&5
32688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689 (exit $ac_status); } && {
32690 test -z "$ac_c_werror_flag" ||
32691 test ! -s conftest.err
32692 } && test -s conftest.$ac_objext; then
32693 ac_cv_member_struct_stat_st_blksize=yes
32695 echo "$as_me: failed program was:" >&5
32696 sed 's/^/| /' conftest.$ac_ext >&5
32698 ac_cv_member_struct_stat_st_blksize=no
32701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32706 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32707 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32708 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32710 cat >>confdefs.h <<_ACEOF
32711 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32717 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32718 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32719 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32720 echo $ECHO_N "(cached) $ECHO_C" >&6
32722 cat >conftest.$ac_ext <<_ACEOF
32725 cat confdefs.h >>conftest.$ac_ext
32726 cat >>conftest.$ac_ext <<_ACEOF
32727 /* end confdefs.h. */
32728 $ac_includes_default
32734 static struct passwd ac_aggr;
32735 if (ac_aggr.pw_gecos)
32741 rm -f conftest.$ac_objext
32742 if { (ac_try="$ac_compile"
32743 case "(($ac_try" in
32744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745 *) ac_try_echo=$ac_try;;
32747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32748 (eval "$ac_compile") 2>conftest.er1
32750 grep -v '^ *+' conftest.er1 >conftest.err
32752 cat conftest.err >&5
32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32754 (exit $ac_status); } && {
32755 test -z "$ac_c_werror_flag" ||
32756 test ! -s conftest.err
32757 } && test -s conftest.$ac_objext; then
32758 ac_cv_member_struct_passwd_pw_gecos=yes
32760 echo "$as_me: failed program was:" >&5
32761 sed 's/^/| /' conftest.$ac_ext >&5
32763 cat >conftest.$ac_ext <<_ACEOF
32766 cat confdefs.h >>conftest.$ac_ext
32767 cat >>conftest.$ac_ext <<_ACEOF
32768 /* end confdefs.h. */
32769 $ac_includes_default
32775 static struct passwd ac_aggr;
32776 if (sizeof ac_aggr.pw_gecos)
32782 rm -f conftest.$ac_objext
32783 if { (ac_try="$ac_compile"
32784 case "(($ac_try" in
32785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786 *) ac_try_echo=$ac_try;;
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789 (eval "$ac_compile") 2>conftest.er1
32791 grep -v '^ *+' conftest.er1 >conftest.err
32793 cat conftest.err >&5
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); } && {
32796 test -z "$ac_c_werror_flag" ||
32797 test ! -s conftest.err
32798 } && test -s conftest.$ac_objext; then
32799 ac_cv_member_struct_passwd_pw_gecos=yes
32801 echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32804 ac_cv_member_struct_passwd_pw_gecos=no
32807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32812 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32813 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32814 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32816 cat >>confdefs.h <<_ACEOF
32817 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32823 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32824 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32825 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32826 echo $ECHO_N "(cached) $ECHO_C" >&6
32828 cat >conftest.$ac_ext <<_ACEOF
32831 cat confdefs.h >>conftest.$ac_ext
32832 cat >>conftest.$ac_ext <<_ACEOF
32833 /* end confdefs.h. */
32834 $ac_includes_default
32840 static struct passwd ac_aggr;
32841 if (ac_aggr.pw_passwd)
32847 rm -f conftest.$ac_objext
32848 if { (ac_try="$ac_compile"
32849 case "(($ac_try" in
32850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32851 *) ac_try_echo=$ac_try;;
32853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32854 (eval "$ac_compile") 2>conftest.er1
32856 grep -v '^ *+' conftest.er1 >conftest.err
32858 cat conftest.err >&5
32859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860 (exit $ac_status); } && {
32861 test -z "$ac_c_werror_flag" ||
32862 test ! -s conftest.err
32863 } && test -s conftest.$ac_objext; then
32864 ac_cv_member_struct_passwd_pw_passwd=yes
32866 echo "$as_me: failed program was:" >&5
32867 sed 's/^/| /' conftest.$ac_ext >&5
32869 cat >conftest.$ac_ext <<_ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h. */
32875 $ac_includes_default
32881 static struct passwd ac_aggr;
32882 if (sizeof ac_aggr.pw_passwd)
32888 rm -f conftest.$ac_objext
32889 if { (ac_try="$ac_compile"
32890 case "(($ac_try" in
32891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892 *) ac_try_echo=$ac_try;;
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895 (eval "$ac_compile") 2>conftest.er1
32897 grep -v '^ *+' conftest.er1 >conftest.err
32899 cat conftest.err >&5
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); } && {
32902 test -z "$ac_c_werror_flag" ||
32903 test ! -s conftest.err
32904 } && test -s conftest.$ac_objext; then
32905 ac_cv_member_struct_passwd_pw_passwd=yes
32907 echo "$as_me: failed program was:" >&5
32908 sed 's/^/| /' conftest.$ac_ext >&5
32910 ac_cv_member_struct_passwd_pw_passwd=no
32913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32918 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32919 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32920 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32922 cat >>confdefs.h <<_ACEOF
32923 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32930 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32931 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32932 if test "${ol_cv_c_upper_lower+set}" = set; then
32933 echo $ECHO_N "(cached) $ECHO_C" >&6
32936 if test "$cross_compiling" = yes; then
32937 ol_cv_c_upper_lower=safe
32939 cat >conftest.$ac_ext <<_ACEOF
32942 cat confdefs.h >>conftest.$ac_ext
32943 cat >>conftest.$ac_ext <<_ACEOF
32944 /* end confdefs.h. */
32949 if ('C' == toupper('C'))
32955 rm -f conftest$ac_exeext
32956 if { (ac_try="$ac_link"
32957 case "(($ac_try" in
32958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959 *) ac_try_echo=$ac_try;;
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962 (eval "$ac_link") 2>&5
32964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32966 { (case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_try") 2>&5
32973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32974 (exit $ac_status); }; }; then
32975 ol_cv_c_upper_lower=no
32977 echo "$as_me: program exited with status $ac_status" >&5
32978 echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.$ac_ext >&5
32981 ( exit $ac_status )
32982 ol_cv_c_upper_lower=yes
32984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32989 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32990 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32991 if test $ol_cv_c_upper_lower != no ; then
32993 cat >>confdefs.h <<\_ACEOF
32994 #define C_UPPER_LOWER 1
32999 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33001 if test "${ac_cv_c_const+set}" = set; then
33002 echo $ECHO_N "(cached) $ECHO_C" >&6
33004 cat >conftest.$ac_ext <<_ACEOF
33007 cat confdefs.h >>conftest.$ac_ext
33008 cat >>conftest.$ac_ext <<_ACEOF
33009 /* end confdefs.h. */
33014 /* FIXME: Include the comments suggested by Paul. */
33015 #ifndef __cplusplus
33016 /* Ultrix mips cc rejects this. */
33017 typedef int charset[2];
33019 /* SunOS 4.1.1 cc rejects this. */
33020 char const *const *pcpcc;
33022 /* NEC SVR4.0.2 mips cc rejects this. */
33023 struct point {int x, y;};
33024 static struct point const zero = {0,0};
33025 /* AIX XL C 1.02.0.0 rejects this.
33026 It does not let you subtract one const X* pointer from another in
33027 an arm of an if-expression whose if-part is not a constant
33029 const char *g = "string";
33030 pcpcc = &g + (g ? g-g : 0);
33031 /* HPUX 7.0 cc rejects these. */
33033 ppc = (char**) pcpcc;
33034 pcpcc = (char const *const *) ppc;
33035 { /* SCO 3.2v4 cc rejects this. */
33037 char const *s = 0 ? (char *) 0 : (char const *) 0;
33042 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33043 int x[] = {25, 17};
33044 const int *foo = &x[0];
33047 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33048 typedef const int *iptr;
33052 { /* AIX XL C 1.02.0.0 rejects this saying
33053 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33054 struct s { int j; const int *ap[3]; };
33055 struct s *b; b->j = 5;
33057 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33058 const int foo = 10;
33059 if (!foo) return 0;
33061 return !cs[0] && !zero.x;
33068 rm -f conftest.$ac_objext
33069 if { (ac_try="$ac_compile"
33070 case "(($ac_try" in
33071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33072 *) ac_try_echo=$ac_try;;
33074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33075 (eval "$ac_compile") 2>conftest.er1
33077 grep -v '^ *+' conftest.er1 >conftest.err
33079 cat conftest.err >&5
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); } && {
33082 test -z "$ac_c_werror_flag" ||
33083 test ! -s conftest.err
33084 } && test -s conftest.$ac_objext; then
33087 echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33095 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33096 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33097 if test $ac_cv_c_const = no; then
33099 cat >>confdefs.h <<\_ACEOF
33105 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33106 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33107 if test "${ol_cv_c_volatile+set}" = set; then
33108 echo $ECHO_N "(cached) $ECHO_C" >&6
33110 cat >conftest.$ac_ext <<_ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h. */
33120 volatile int a; int * volatile b = x ? &y : &z;
33121 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33127 rm -f conftest.$ac_objext
33128 if { (ac_try="$ac_compile"
33129 case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_compile") 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } && {
33141 test -z "$ac_c_werror_flag" ||
33142 test ! -s conftest.err
33143 } && test -s conftest.$ac_objext; then
33144 ol_cv_c_volatile=yes
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33149 ol_cv_c_volatile=no
33152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33154 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33155 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33156 if test $ol_cv_c_volatile = yes; then
33160 cat >>confdefs.h <<\_ACEOF
33167 if test $cross_compiling = yes ; then
33168 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33169 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33171 cat >>confdefs.h <<\_ACEOF
33172 #define CROSS_COMPILING 1
33176 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33177 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33178 if test "${ac_cv_c_bigendian+set}" = set; then
33179 echo $ECHO_N "(cached) $ECHO_C" >&6
33181 # See if sys/param.h defines the BYTE_ORDER macro.
33182 cat >conftest.$ac_ext <<_ACEOF
33185 cat confdefs.h >>conftest.$ac_ext
33186 cat >>conftest.$ac_ext <<_ACEOF
33187 /* end confdefs.h. */
33188 #include <sys/types.h>
33189 #include <sys/param.h>
33194 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33195 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33196 bogus endian macros
33203 rm -f conftest.$ac_objext
33204 if { (ac_try="$ac_compile"
33205 case "(($ac_try" in
33206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33207 *) ac_try_echo=$ac_try;;
33209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33210 (eval "$ac_compile") 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } && {
33217 test -z "$ac_c_werror_flag" ||
33218 test ! -s conftest.err
33219 } && test -s conftest.$ac_objext; then
33220 # It does; now see whether it defined to BIG_ENDIAN or not.
33221 cat >conftest.$ac_ext <<_ACEOF
33224 cat confdefs.h >>conftest.$ac_ext
33225 cat >>conftest.$ac_ext <<_ACEOF
33226 /* end confdefs.h. */
33227 #include <sys/types.h>
33228 #include <sys/param.h>
33233 #if BYTE_ORDER != BIG_ENDIAN
33241 rm -f conftest.$ac_objext
33242 if { (ac_try="$ac_compile"
33243 case "(($ac_try" in
33244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33245 *) ac_try_echo=$ac_try;;
33247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33248 (eval "$ac_compile") 2>conftest.er1
33250 grep -v '^ *+' conftest.er1 >conftest.err
33252 cat conftest.err >&5
33253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33254 (exit $ac_status); } && {
33255 test -z "$ac_c_werror_flag" ||
33256 test ! -s conftest.err
33257 } && test -s conftest.$ac_objext; then
33258 ac_cv_c_bigendian=yes
33260 echo "$as_me: failed program was:" >&5
33261 sed 's/^/| /' conftest.$ac_ext >&5
33263 ac_cv_c_bigendian=no
33266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33268 echo "$as_me: failed program was:" >&5
33269 sed 's/^/| /' conftest.$ac_ext >&5
33271 # It does not; compile a test program.
33272 if test "$cross_compiling" = yes; then
33273 # try to guess the endianness by grepping values into an object file
33274 ac_cv_c_bigendian=unknown
33275 cat >conftest.$ac_ext <<_ACEOF
33278 cat confdefs.h >>conftest.$ac_ext
33279 cat >>conftest.$ac_ext <<_ACEOF
33280 /* end confdefs.h. */
33281 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33282 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33283 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33284 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33285 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33286 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33290 _ascii (); _ebcdic ();
33295 rm -f conftest.$ac_objext
33296 if { (ac_try="$ac_compile"
33297 case "(($ac_try" in
33298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33299 *) ac_try_echo=$ac_try;;
33301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33302 (eval "$ac_compile") 2>conftest.er1
33304 grep -v '^ *+' conftest.er1 >conftest.err
33306 cat conftest.err >&5
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); } && {
33309 test -z "$ac_c_werror_flag" ||
33310 test ! -s conftest.err
33311 } && test -s conftest.$ac_objext; then
33312 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33313 ac_cv_c_bigendian=yes
33315 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33316 if test "$ac_cv_c_bigendian" = unknown; then
33317 ac_cv_c_bigendian=no
33319 # finding both strings is unlikely to happen, but who knows?
33320 ac_cv_c_bigendian=unknown
33324 echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33332 cat >conftest.$ac_ext <<_ACEOF
33335 cat confdefs.h >>conftest.$ac_ext
33336 cat >>conftest.$ac_ext <<_ACEOF
33337 /* end confdefs.h. */
33338 $ac_includes_default
33343 /* Are we little or big endian? From Harbison&Steele. */
33347 char c[sizeof (long int)];
33350 return u.c[sizeof (long int) - 1] == 1;
33356 rm -f conftest$ac_exeext
33357 if { (ac_try="$ac_link"
33358 case "(($ac_try" in
33359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33360 *) ac_try_echo=$ac_try;;
33362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33363 (eval "$ac_link") 2>&5
33365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33367 { (case "(($ac_try" in
33368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33369 *) ac_try_echo=$ac_try;;
33371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33372 (eval "$ac_try") 2>&5
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); }; }; then
33376 ac_cv_c_bigendian=no
33378 echo "$as_me: program exited with status $ac_status" >&5
33379 echo "$as_me: failed program was:" >&5
33380 sed 's/^/| /' conftest.$ac_ext >&5
33382 ( exit $ac_status )
33383 ac_cv_c_bigendian=yes
33385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33393 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33394 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33395 case $ac_cv_c_bigendian in
33398 cat >>confdefs.h <<\_ACEOF
33399 #define WORDS_BIGENDIAN 1
33405 { { echo "$as_me:$LINENO: error: unknown endianness
33406 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33407 echo "$as_me: error: unknown endianness
33408 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33409 { (exit 1); exit 1; }; } ;;
33414 { echo "$as_me:$LINENO: checking for short" >&5
33415 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33416 if test "${ac_cv_type_short+set}" = set; then
33417 echo $ECHO_N "(cached) $ECHO_C" >&6
33419 cat >conftest.$ac_ext <<_ACEOF
33422 cat confdefs.h >>conftest.$ac_ext
33423 cat >>conftest.$ac_ext <<_ACEOF
33424 /* end confdefs.h. */
33425 $ac_includes_default
33426 typedef short ac__type_new_;
33430 if ((ac__type_new_ *) 0)
33432 if (sizeof (ac__type_new_))
33438 rm -f conftest.$ac_objext
33439 if { (ac_try="$ac_compile"
33440 case "(($ac_try" in
33441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442 *) ac_try_echo=$ac_try;;
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445 (eval "$ac_compile") 2>conftest.er1
33447 grep -v '^ *+' conftest.er1 >conftest.err
33449 cat conftest.err >&5
33450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451 (exit $ac_status); } && {
33452 test -z "$ac_c_werror_flag" ||
33453 test ! -s conftest.err
33454 } && test -s conftest.$ac_objext; then
33455 ac_cv_type_short=yes
33457 echo "$as_me: failed program was:" >&5
33458 sed 's/^/| /' conftest.$ac_ext >&5
33460 ac_cv_type_short=no
33463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33465 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33466 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33468 # The cast to long int works around a bug in the HP C Compiler
33469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33471 # This bug is HP SR number 8606223364.
33472 { echo "$as_me:$LINENO: checking size of short" >&5
33473 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33474 if test "${ac_cv_sizeof_short+set}" = set; then
33475 echo $ECHO_N "(cached) $ECHO_C" >&6
33477 if test "$cross_compiling" = yes; then
33478 # Depending upon the size, compute the lo and hi bounds.
33479 cat >conftest.$ac_ext <<_ACEOF
33482 cat confdefs.h >>conftest.$ac_ext
33483 cat >>conftest.$ac_ext <<_ACEOF
33484 /* end confdefs.h. */
33485 $ac_includes_default
33486 typedef short ac__type_sizeof_;
33490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33497 rm -f conftest.$ac_objext
33498 if { (ac_try="$ac_compile"
33499 case "(($ac_try" in
33500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33501 *) ac_try_echo=$ac_try;;
33503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33504 (eval "$ac_compile") 2>conftest.er1
33506 grep -v '^ *+' conftest.er1 >conftest.err
33508 cat conftest.err >&5
33509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510 (exit $ac_status); } && {
33511 test -z "$ac_c_werror_flag" ||
33512 test ! -s conftest.err
33513 } && test -s conftest.$ac_objext; then
33516 cat >conftest.$ac_ext <<_ACEOF
33519 cat confdefs.h >>conftest.$ac_ext
33520 cat >>conftest.$ac_ext <<_ACEOF
33521 /* end confdefs.h. */
33522 $ac_includes_default
33523 typedef short ac__type_sizeof_;
33527 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33534 rm -f conftest.$ac_objext
33535 if { (ac_try="$ac_compile"
33536 case "(($ac_try" in
33537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33538 *) ac_try_echo=$ac_try;;
33540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33541 (eval "$ac_compile") 2>conftest.er1
33543 grep -v '^ *+' conftest.er1 >conftest.err
33545 cat conftest.err >&5
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); } && {
33548 test -z "$ac_c_werror_flag" ||
33549 test ! -s conftest.err
33550 } && test -s conftest.$ac_objext; then
33551 ac_hi=$ac_mid; break
33553 echo "$as_me: failed program was:" >&5
33554 sed 's/^/| /' conftest.$ac_ext >&5
33556 ac_lo=`expr $ac_mid + 1`
33557 if test $ac_lo -le $ac_mid; then
33561 ac_mid=`expr 2 '*' $ac_mid + 1`
33564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33567 echo "$as_me: failed program was:" >&5
33568 sed 's/^/| /' conftest.$ac_ext >&5
33570 cat >conftest.$ac_ext <<_ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h. */
33576 $ac_includes_default
33577 typedef short ac__type_sizeof_;
33581 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592 *) ac_try_echo=$ac_try;;
33594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33595 (eval "$ac_compile") 2>conftest.er1
33597 grep -v '^ *+' conftest.er1 >conftest.err
33599 cat conftest.err >&5
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); } && {
33602 test -z "$ac_c_werror_flag" ||
33603 test ! -s conftest.err
33604 } && test -s conftest.$ac_objext; then
33607 cat >conftest.$ac_ext <<_ACEOF
33610 cat confdefs.h >>conftest.$ac_ext
33611 cat >>conftest.$ac_ext <<_ACEOF
33612 /* end confdefs.h. */
33613 $ac_includes_default
33614 typedef short ac__type_sizeof_;
33618 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33625 rm -f conftest.$ac_objext
33626 if { (ac_try="$ac_compile"
33627 case "(($ac_try" in
33628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629 *) ac_try_echo=$ac_try;;
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632 (eval "$ac_compile") 2>conftest.er1
33634 grep -v '^ *+' conftest.er1 >conftest.err
33636 cat conftest.err >&5
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); } && {
33639 test -z "$ac_c_werror_flag" ||
33640 test ! -s conftest.err
33641 } && test -s conftest.$ac_objext; then
33642 ac_lo=$ac_mid; break
33644 echo "$as_me: failed program was:" >&5
33645 sed 's/^/| /' conftest.$ac_ext >&5
33647 ac_hi=`expr '(' $ac_mid ')' - 1`
33648 if test $ac_mid -le $ac_hi; then
33652 ac_mid=`expr 2 '*' $ac_mid`
33655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33658 echo "$as_me: failed program was:" >&5
33659 sed 's/^/| /' conftest.$ac_ext >&5
33664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33668 # Binary search between lo and hi bounds.
33669 while test "x$ac_lo" != "x$ac_hi"; do
33670 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33671 cat >conftest.$ac_ext <<_ACEOF
33674 cat confdefs.h >>conftest.$ac_ext
33675 cat >>conftest.$ac_ext <<_ACEOF
33676 /* end confdefs.h. */
33677 $ac_includes_default
33678 typedef short ac__type_sizeof_;
33682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33689 rm -f conftest.$ac_objext
33690 if { (ac_try="$ac_compile"
33691 case "(($ac_try" in
33692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33693 *) ac_try_echo=$ac_try;;
33695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33696 (eval "$ac_compile") 2>conftest.er1
33698 grep -v '^ *+' conftest.er1 >conftest.err
33700 cat conftest.err >&5
33701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33702 (exit $ac_status); } && {
33703 test -z "$ac_c_werror_flag" ||
33704 test ! -s conftest.err
33705 } && test -s conftest.$ac_objext; then
33708 echo "$as_me: failed program was:" >&5
33709 sed 's/^/| /' conftest.$ac_ext >&5
33711 ac_lo=`expr '(' $ac_mid ')' + 1`
33714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33717 ?*) ac_cv_sizeof_short=$ac_lo;;
33718 '') if test "$ac_cv_type_short" = yes; then
33719 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33720 See \`config.log' for more details." >&5
33721 echo "$as_me: error: cannot compute sizeof (short)
33722 See \`config.log' for more details." >&2;}
33723 { (exit 77); exit 77; }; }
33725 ac_cv_sizeof_short=0
33729 cat >conftest.$ac_ext <<_ACEOF
33732 cat confdefs.h >>conftest.$ac_ext
33733 cat >>conftest.$ac_ext <<_ACEOF
33734 /* end confdefs.h. */
33735 $ac_includes_default
33736 typedef short ac__type_sizeof_;
33737 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33738 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33740 #include <stdlib.h>
33745 FILE *f = fopen ("conftest.val", "w");
33748 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33750 long int i = longval ();
33751 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33753 fprintf (f, "%ld\n", i);
33757 unsigned long int i = ulongval ();
33758 if (i != ((long int) (sizeof (ac__type_sizeof_))))
33760 fprintf (f, "%lu\n", i);
33762 return ferror (f) || fclose (f) != 0;
33768 rm -f conftest$ac_exeext
33769 if { (ac_try="$ac_link"
33770 case "(($ac_try" in
33771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33772 *) ac_try_echo=$ac_try;;
33774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33775 (eval "$ac_link") 2>&5
33777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33779 { (case "(($ac_try" in
33780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33781 *) ac_try_echo=$ac_try;;
33783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33784 (eval "$ac_try") 2>&5
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); }; }; then
33788 ac_cv_sizeof_short=`cat conftest.val`
33790 echo "$as_me: program exited with status $ac_status" >&5
33791 echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.$ac_ext >&5
33794 ( exit $ac_status )
33795 if test "$ac_cv_type_short" = yes; then
33796 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33797 See \`config.log' for more details." >&5
33798 echo "$as_me: error: cannot compute sizeof (short)
33799 See \`config.log' for more details." >&2;}
33800 { (exit 77); exit 77; }; }
33802 ac_cv_sizeof_short=0
33805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33809 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33810 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33814 cat >>confdefs.h <<_ACEOF
33815 #define SIZEOF_SHORT $ac_cv_sizeof_short
33819 { echo "$as_me:$LINENO: checking for int" >&5
33820 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33821 if test "${ac_cv_type_int+set}" = set; then
33822 echo $ECHO_N "(cached) $ECHO_C" >&6
33824 cat >conftest.$ac_ext <<_ACEOF
33827 cat confdefs.h >>conftest.$ac_ext
33828 cat >>conftest.$ac_ext <<_ACEOF
33829 /* end confdefs.h. */
33830 $ac_includes_default
33831 typedef int ac__type_new_;
33835 if ((ac__type_new_ *) 0)
33837 if (sizeof (ac__type_new_))
33843 rm -f conftest.$ac_objext
33844 if { (ac_try="$ac_compile"
33845 case "(($ac_try" in
33846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33847 *) ac_try_echo=$ac_try;;
33849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33850 (eval "$ac_compile") 2>conftest.er1
33852 grep -v '^ *+' conftest.er1 >conftest.err
33854 cat conftest.err >&5
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); } && {
33857 test -z "$ac_c_werror_flag" ||
33858 test ! -s conftest.err
33859 } && test -s conftest.$ac_objext; then
33862 echo "$as_me: failed program was:" >&5
33863 sed 's/^/| /' conftest.$ac_ext >&5
33868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33870 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33871 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33873 # The cast to long int works around a bug in the HP C Compiler
33874 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33875 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33876 # This bug is HP SR number 8606223364.
33877 { echo "$as_me:$LINENO: checking size of int" >&5
33878 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33879 if test "${ac_cv_sizeof_int+set}" = set; then
33880 echo $ECHO_N "(cached) $ECHO_C" >&6
33882 if test "$cross_compiling" = yes; then
33883 # Depending upon the size, compute the lo and hi bounds.
33884 cat >conftest.$ac_ext <<_ACEOF
33887 cat confdefs.h >>conftest.$ac_ext
33888 cat >>conftest.$ac_ext <<_ACEOF
33889 /* end confdefs.h. */
33890 $ac_includes_default
33891 typedef int ac__type_sizeof_;
33895 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33902 rm -f conftest.$ac_objext
33903 if { (ac_try="$ac_compile"
33904 case "(($ac_try" in
33905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33906 *) ac_try_echo=$ac_try;;
33908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33909 (eval "$ac_compile") 2>conftest.er1
33911 grep -v '^ *+' conftest.er1 >conftest.err
33913 cat conftest.err >&5
33914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33915 (exit $ac_status); } && {
33916 test -z "$ac_c_werror_flag" ||
33917 test ! -s conftest.err
33918 } && test -s conftest.$ac_objext; then
33921 cat >conftest.$ac_ext <<_ACEOF
33924 cat confdefs.h >>conftest.$ac_ext
33925 cat >>conftest.$ac_ext <<_ACEOF
33926 /* end confdefs.h. */
33927 $ac_includes_default
33928 typedef int ac__type_sizeof_;
33932 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33939 rm -f conftest.$ac_objext
33940 if { (ac_try="$ac_compile"
33941 case "(($ac_try" in
33942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33943 *) ac_try_echo=$ac_try;;
33945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33946 (eval "$ac_compile") 2>conftest.er1
33948 grep -v '^ *+' conftest.er1 >conftest.err
33950 cat conftest.err >&5
33951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33952 (exit $ac_status); } && {
33953 test -z "$ac_c_werror_flag" ||
33954 test ! -s conftest.err
33955 } && test -s conftest.$ac_objext; then
33956 ac_hi=$ac_mid; break
33958 echo "$as_me: failed program was:" >&5
33959 sed 's/^/| /' conftest.$ac_ext >&5
33961 ac_lo=`expr $ac_mid + 1`
33962 if test $ac_lo -le $ac_mid; then
33966 ac_mid=`expr 2 '*' $ac_mid + 1`
33969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33972 echo "$as_me: failed program was:" >&5
33973 sed 's/^/| /' conftest.$ac_ext >&5
33975 cat >conftest.$ac_ext <<_ACEOF
33978 cat confdefs.h >>conftest.$ac_ext
33979 cat >>conftest.$ac_ext <<_ACEOF
33980 /* end confdefs.h. */
33981 $ac_includes_default
33982 typedef int ac__type_sizeof_;
33986 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33993 rm -f conftest.$ac_objext
33994 if { (ac_try="$ac_compile"
33995 case "(($ac_try" in
33996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33997 *) ac_try_echo=$ac_try;;
33999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34000 (eval "$ac_compile") 2>conftest.er1
34002 grep -v '^ *+' conftest.er1 >conftest.err
34004 cat conftest.err >&5
34005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34006 (exit $ac_status); } && {
34007 test -z "$ac_c_werror_flag" ||
34008 test ! -s conftest.err
34009 } && test -s conftest.$ac_objext; then
34012 cat >conftest.$ac_ext <<_ACEOF
34015 cat confdefs.h >>conftest.$ac_ext
34016 cat >>conftest.$ac_ext <<_ACEOF
34017 /* end confdefs.h. */
34018 $ac_includes_default
34019 typedef int ac__type_sizeof_;
34023 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34030 rm -f conftest.$ac_objext
34031 if { (ac_try="$ac_compile"
34032 case "(($ac_try" in
34033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34034 *) ac_try_echo=$ac_try;;
34036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34037 (eval "$ac_compile") 2>conftest.er1
34039 grep -v '^ *+' conftest.er1 >conftest.err
34041 cat conftest.err >&5
34042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34043 (exit $ac_status); } && {
34044 test -z "$ac_c_werror_flag" ||
34045 test ! -s conftest.err
34046 } && test -s conftest.$ac_objext; then
34047 ac_lo=$ac_mid; break
34049 echo "$as_me: failed program was:" >&5
34050 sed 's/^/| /' conftest.$ac_ext >&5
34052 ac_hi=`expr '(' $ac_mid ')' - 1`
34053 if test $ac_mid -le $ac_hi; then
34057 ac_mid=`expr 2 '*' $ac_mid`
34060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34063 echo "$as_me: failed program was:" >&5
34064 sed 's/^/| /' conftest.$ac_ext >&5
34069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34073 # Binary search between lo and hi bounds.
34074 while test "x$ac_lo" != "x$ac_hi"; do
34075 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34076 cat >conftest.$ac_ext <<_ACEOF
34079 cat confdefs.h >>conftest.$ac_ext
34080 cat >>conftest.$ac_ext <<_ACEOF
34081 /* end confdefs.h. */
34082 $ac_includes_default
34083 typedef int ac__type_sizeof_;
34087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34094 rm -f conftest.$ac_objext
34095 if { (ac_try="$ac_compile"
34096 case "(($ac_try" in
34097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34098 *) ac_try_echo=$ac_try;;
34100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34101 (eval "$ac_compile") 2>conftest.er1
34103 grep -v '^ *+' conftest.er1 >conftest.err
34105 cat conftest.err >&5
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } && {
34108 test -z "$ac_c_werror_flag" ||
34109 test ! -s conftest.err
34110 } && test -s conftest.$ac_objext; then
34113 echo "$as_me: failed program was:" >&5
34114 sed 's/^/| /' conftest.$ac_ext >&5
34116 ac_lo=`expr '(' $ac_mid ')' + 1`
34119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34122 ?*) ac_cv_sizeof_int=$ac_lo;;
34123 '') if test "$ac_cv_type_int" = yes; then
34124 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34125 See \`config.log' for more details." >&5
34126 echo "$as_me: error: cannot compute sizeof (int)
34127 See \`config.log' for more details." >&2;}
34128 { (exit 77); exit 77; }; }
34134 cat >conftest.$ac_ext <<_ACEOF
34137 cat confdefs.h >>conftest.$ac_ext
34138 cat >>conftest.$ac_ext <<_ACEOF
34139 /* end confdefs.h. */
34140 $ac_includes_default
34141 typedef int ac__type_sizeof_;
34142 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34143 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34145 #include <stdlib.h>
34150 FILE *f = fopen ("conftest.val", "w");
34153 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34155 long int i = longval ();
34156 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34158 fprintf (f, "%ld\n", i);
34162 unsigned long int i = ulongval ();
34163 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34165 fprintf (f, "%lu\n", i);
34167 return ferror (f) || fclose (f) != 0;
34173 rm -f conftest$ac_exeext
34174 if { (ac_try="$ac_link"
34175 case "(($ac_try" in
34176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34177 *) ac_try_echo=$ac_try;;
34179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34180 (eval "$ac_link") 2>&5
34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34183 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34184 { (case "(($ac_try" in
34185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34186 *) ac_try_echo=$ac_try;;
34188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34189 (eval "$ac_try") 2>&5
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; }; then
34193 ac_cv_sizeof_int=`cat conftest.val`
34195 echo "$as_me: program exited with status $ac_status" >&5
34196 echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34199 ( exit $ac_status )
34200 if test "$ac_cv_type_int" = yes; then
34201 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34202 See \`config.log' for more details." >&5
34203 echo "$as_me: error: cannot compute sizeof (int)
34204 See \`config.log' for more details." >&2;}
34205 { (exit 77); exit 77; }; }
34210 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34214 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34215 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34219 cat >>confdefs.h <<_ACEOF
34220 #define SIZEOF_INT $ac_cv_sizeof_int
34224 { echo "$as_me:$LINENO: checking for long" >&5
34225 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34226 if test "${ac_cv_type_long+set}" = set; then
34227 echo $ECHO_N "(cached) $ECHO_C" >&6
34229 cat >conftest.$ac_ext <<_ACEOF
34232 cat confdefs.h >>conftest.$ac_ext
34233 cat >>conftest.$ac_ext <<_ACEOF
34234 /* end confdefs.h. */
34235 $ac_includes_default
34236 typedef long ac__type_new_;
34240 if ((ac__type_new_ *) 0)
34242 if (sizeof (ac__type_new_))
34248 rm -f conftest.$ac_objext
34249 if { (ac_try="$ac_compile"
34250 case "(($ac_try" in
34251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34252 *) ac_try_echo=$ac_try;;
34254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34255 (eval "$ac_compile") 2>conftest.er1
34257 grep -v '^ *+' conftest.er1 >conftest.err
34259 cat conftest.err >&5
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); } && {
34262 test -z "$ac_c_werror_flag" ||
34263 test ! -s conftest.err
34264 } && test -s conftest.$ac_objext; then
34265 ac_cv_type_long=yes
34267 echo "$as_me: failed program was:" >&5
34268 sed 's/^/| /' conftest.$ac_ext >&5
34273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34275 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34276 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34278 # The cast to long int works around a bug in the HP C Compiler
34279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34281 # This bug is HP SR number 8606223364.
34282 { echo "$as_me:$LINENO: checking size of long" >&5
34283 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34284 if test "${ac_cv_sizeof_long+set}" = set; then
34285 echo $ECHO_N "(cached) $ECHO_C" >&6
34287 if test "$cross_compiling" = yes; then
34288 # Depending upon the size, compute the lo and hi bounds.
34289 cat >conftest.$ac_ext <<_ACEOF
34292 cat confdefs.h >>conftest.$ac_ext
34293 cat >>conftest.$ac_ext <<_ACEOF
34294 /* end confdefs.h. */
34295 $ac_includes_default
34296 typedef long ac__type_sizeof_;
34300 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34307 rm -f conftest.$ac_objext
34308 if { (ac_try="$ac_compile"
34309 case "(($ac_try" in
34310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34311 *) ac_try_echo=$ac_try;;
34313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34314 (eval "$ac_compile") 2>conftest.er1
34316 grep -v '^ *+' conftest.er1 >conftest.err
34318 cat conftest.err >&5
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); } && {
34321 test -z "$ac_c_werror_flag" ||
34322 test ! -s conftest.err
34323 } && test -s conftest.$ac_objext; then
34326 cat >conftest.$ac_ext <<_ACEOF
34329 cat confdefs.h >>conftest.$ac_ext
34330 cat >>conftest.$ac_ext <<_ACEOF
34331 /* end confdefs.h. */
34332 $ac_includes_default
34333 typedef long ac__type_sizeof_;
34337 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34344 rm -f conftest.$ac_objext
34345 if { (ac_try="$ac_compile"
34346 case "(($ac_try" in
34347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34348 *) ac_try_echo=$ac_try;;
34350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34351 (eval "$ac_compile") 2>conftest.er1
34353 grep -v '^ *+' conftest.er1 >conftest.err
34355 cat conftest.err >&5
34356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34357 (exit $ac_status); } && {
34358 test -z "$ac_c_werror_flag" ||
34359 test ! -s conftest.err
34360 } && test -s conftest.$ac_objext; then
34361 ac_hi=$ac_mid; break
34363 echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34366 ac_lo=`expr $ac_mid + 1`
34367 if test $ac_lo -le $ac_mid; then
34371 ac_mid=`expr 2 '*' $ac_mid + 1`
34374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34377 echo "$as_me: failed program was:" >&5
34378 sed 's/^/| /' conftest.$ac_ext >&5
34380 cat >conftest.$ac_ext <<_ACEOF
34383 cat confdefs.h >>conftest.$ac_ext
34384 cat >>conftest.$ac_ext <<_ACEOF
34385 /* end confdefs.h. */
34386 $ac_includes_default
34387 typedef long ac__type_sizeof_;
34391 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34398 rm -f conftest.$ac_objext
34399 if { (ac_try="$ac_compile"
34400 case "(($ac_try" in
34401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34402 *) ac_try_echo=$ac_try;;
34404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34405 (eval "$ac_compile") 2>conftest.er1
34407 grep -v '^ *+' conftest.er1 >conftest.err
34409 cat conftest.err >&5
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); } && {
34412 test -z "$ac_c_werror_flag" ||
34413 test ! -s conftest.err
34414 } && test -s conftest.$ac_objext; then
34417 cat >conftest.$ac_ext <<_ACEOF
34420 cat confdefs.h >>conftest.$ac_ext
34421 cat >>conftest.$ac_ext <<_ACEOF
34422 /* end confdefs.h. */
34423 $ac_includes_default
34424 typedef long ac__type_sizeof_;
34428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34435 rm -f conftest.$ac_objext
34436 if { (ac_try="$ac_compile"
34437 case "(($ac_try" in
34438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34439 *) ac_try_echo=$ac_try;;
34441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34442 (eval "$ac_compile") 2>conftest.er1
34444 grep -v '^ *+' conftest.er1 >conftest.err
34446 cat conftest.err >&5
34447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34448 (exit $ac_status); } && {
34449 test -z "$ac_c_werror_flag" ||
34450 test ! -s conftest.err
34451 } && test -s conftest.$ac_objext; then
34452 ac_lo=$ac_mid; break
34454 echo "$as_me: failed program was:" >&5
34455 sed 's/^/| /' conftest.$ac_ext >&5
34457 ac_hi=`expr '(' $ac_mid ')' - 1`
34458 if test $ac_mid -le $ac_hi; then
34462 ac_mid=`expr 2 '*' $ac_mid`
34465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34468 echo "$as_me: failed program was:" >&5
34469 sed 's/^/| /' conftest.$ac_ext >&5
34474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34478 # Binary search between lo and hi bounds.
34479 while test "x$ac_lo" != "x$ac_hi"; do
34480 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34481 cat >conftest.$ac_ext <<_ACEOF
34484 cat confdefs.h >>conftest.$ac_ext
34485 cat >>conftest.$ac_ext <<_ACEOF
34486 /* end confdefs.h. */
34487 $ac_includes_default
34488 typedef long ac__type_sizeof_;
34492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34499 rm -f conftest.$ac_objext
34500 if { (ac_try="$ac_compile"
34501 case "(($ac_try" in
34502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34503 *) ac_try_echo=$ac_try;;
34505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34506 (eval "$ac_compile") 2>conftest.er1
34508 grep -v '^ *+' conftest.er1 >conftest.err
34510 cat conftest.err >&5
34511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 (exit $ac_status); } && {
34513 test -z "$ac_c_werror_flag" ||
34514 test ! -s conftest.err
34515 } && test -s conftest.$ac_objext; then
34518 echo "$as_me: failed program was:" >&5
34519 sed 's/^/| /' conftest.$ac_ext >&5
34521 ac_lo=`expr '(' $ac_mid ')' + 1`
34524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34527 ?*) ac_cv_sizeof_long=$ac_lo;;
34528 '') if test "$ac_cv_type_long" = yes; then
34529 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34530 See \`config.log' for more details." >&5
34531 echo "$as_me: error: cannot compute sizeof (long)
34532 See \`config.log' for more details." >&2;}
34533 { (exit 77); exit 77; }; }
34535 ac_cv_sizeof_long=0
34539 cat >conftest.$ac_ext <<_ACEOF
34542 cat confdefs.h >>conftest.$ac_ext
34543 cat >>conftest.$ac_ext <<_ACEOF
34544 /* end confdefs.h. */
34545 $ac_includes_default
34546 typedef long ac__type_sizeof_;
34547 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34548 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34550 #include <stdlib.h>
34555 FILE *f = fopen ("conftest.val", "w");
34558 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34560 long int i = longval ();
34561 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34563 fprintf (f, "%ld\n", i);
34567 unsigned long int i = ulongval ();
34568 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34570 fprintf (f, "%lu\n", i);
34572 return ferror (f) || fclose (f) != 0;
34578 rm -f conftest$ac_exeext
34579 if { (ac_try="$ac_link"
34580 case "(($ac_try" in
34581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34582 *) ac_try_echo=$ac_try;;
34584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34585 (eval "$ac_link") 2>&5
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34589 { (case "(($ac_try" in
34590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34591 *) ac_try_echo=$ac_try;;
34593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34594 (eval "$ac_try") 2>&5
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); }; }; then
34598 ac_cv_sizeof_long=`cat conftest.val`
34600 echo "$as_me: program exited with status $ac_status" >&5
34601 echo "$as_me: failed program was:" >&5
34602 sed 's/^/| /' conftest.$ac_ext >&5
34604 ( exit $ac_status )
34605 if test "$ac_cv_type_long" = yes; then
34606 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34607 See \`config.log' for more details." >&5
34608 echo "$as_me: error: cannot compute sizeof (long)
34609 See \`config.log' for more details." >&2;}
34610 { (exit 77); exit 77; }; }
34612 ac_cv_sizeof_long=0
34615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34619 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34620 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34624 cat >>confdefs.h <<_ACEOF
34625 #define SIZEOF_LONG $ac_cv_sizeof_long
34629 { echo "$as_me:$LINENO: checking for long long" >&5
34630 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34631 if test "${ac_cv_type_long_long+set}" = set; then
34632 echo $ECHO_N "(cached) $ECHO_C" >&6
34634 cat >conftest.$ac_ext <<_ACEOF
34637 cat confdefs.h >>conftest.$ac_ext
34638 cat >>conftest.$ac_ext <<_ACEOF
34639 /* end confdefs.h. */
34640 $ac_includes_default
34641 typedef long long ac__type_new_;
34645 if ((ac__type_new_ *) 0)
34647 if (sizeof (ac__type_new_))
34653 rm -f conftest.$ac_objext
34654 if { (ac_try="$ac_compile"
34655 case "(($ac_try" in
34656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34657 *) ac_try_echo=$ac_try;;
34659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34660 (eval "$ac_compile") 2>conftest.er1
34662 grep -v '^ *+' conftest.er1 >conftest.err
34664 cat conftest.err >&5
34665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666 (exit $ac_status); } && {
34667 test -z "$ac_c_werror_flag" ||
34668 test ! -s conftest.err
34669 } && test -s conftest.$ac_objext; then
34670 ac_cv_type_long_long=yes
34672 echo "$as_me: failed program was:" >&5
34673 sed 's/^/| /' conftest.$ac_ext >&5
34675 ac_cv_type_long_long=no
34678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34680 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34681 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34683 # The cast to long int works around a bug in the HP C Compiler
34684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34686 # This bug is HP SR number 8606223364.
34687 { echo "$as_me:$LINENO: checking size of long long" >&5
34688 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34689 if test "${ac_cv_sizeof_long_long+set}" = set; then
34690 echo $ECHO_N "(cached) $ECHO_C" >&6
34692 if test "$cross_compiling" = yes; then
34693 # Depending upon the size, compute the lo and hi bounds.
34694 cat >conftest.$ac_ext <<_ACEOF
34697 cat confdefs.h >>conftest.$ac_ext
34698 cat >>conftest.$ac_ext <<_ACEOF
34699 /* end confdefs.h. */
34700 $ac_includes_default
34701 typedef long long ac__type_sizeof_;
34705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34712 rm -f conftest.$ac_objext
34713 if { (ac_try="$ac_compile"
34714 case "(($ac_try" in
34715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34716 *) ac_try_echo=$ac_try;;
34718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34719 (eval "$ac_compile") 2>conftest.er1
34721 grep -v '^ *+' conftest.er1 >conftest.err
34723 cat conftest.err >&5
34724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); } && {
34726 test -z "$ac_c_werror_flag" ||
34727 test ! -s conftest.err
34728 } && test -s conftest.$ac_objext; then
34731 cat >conftest.$ac_ext <<_ACEOF
34734 cat confdefs.h >>conftest.$ac_ext
34735 cat >>conftest.$ac_ext <<_ACEOF
34736 /* end confdefs.h. */
34737 $ac_includes_default
34738 typedef long long ac__type_sizeof_;
34742 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34749 rm -f conftest.$ac_objext
34750 if { (ac_try="$ac_compile"
34751 case "(($ac_try" in
34752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34753 *) ac_try_echo=$ac_try;;
34755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34756 (eval "$ac_compile") 2>conftest.er1
34758 grep -v '^ *+' conftest.er1 >conftest.err
34760 cat conftest.err >&5
34761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34762 (exit $ac_status); } && {
34763 test -z "$ac_c_werror_flag" ||
34764 test ! -s conftest.err
34765 } && test -s conftest.$ac_objext; then
34766 ac_hi=$ac_mid; break
34768 echo "$as_me: failed program was:" >&5
34769 sed 's/^/| /' conftest.$ac_ext >&5
34771 ac_lo=`expr $ac_mid + 1`
34772 if test $ac_lo -le $ac_mid; then
34776 ac_mid=`expr 2 '*' $ac_mid + 1`
34779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34782 echo "$as_me: failed program was:" >&5
34783 sed 's/^/| /' conftest.$ac_ext >&5
34785 cat >conftest.$ac_ext <<_ACEOF
34788 cat confdefs.h >>conftest.$ac_ext
34789 cat >>conftest.$ac_ext <<_ACEOF
34790 /* end confdefs.h. */
34791 $ac_includes_default
34792 typedef long long ac__type_sizeof_;
34796 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34803 rm -f conftest.$ac_objext
34804 if { (ac_try="$ac_compile"
34805 case "(($ac_try" in
34806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34807 *) ac_try_echo=$ac_try;;
34809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34810 (eval "$ac_compile") 2>conftest.er1
34812 grep -v '^ *+' conftest.er1 >conftest.err
34814 cat conftest.err >&5
34815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34816 (exit $ac_status); } && {
34817 test -z "$ac_c_werror_flag" ||
34818 test ! -s conftest.err
34819 } && test -s conftest.$ac_objext; then
34822 cat >conftest.$ac_ext <<_ACEOF
34825 cat confdefs.h >>conftest.$ac_ext
34826 cat >>conftest.$ac_ext <<_ACEOF
34827 /* end confdefs.h. */
34828 $ac_includes_default
34829 typedef long long ac__type_sizeof_;
34833 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34840 rm -f conftest.$ac_objext
34841 if { (ac_try="$ac_compile"
34842 case "(($ac_try" in
34843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34844 *) ac_try_echo=$ac_try;;
34846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34847 (eval "$ac_compile") 2>conftest.er1
34849 grep -v '^ *+' conftest.er1 >conftest.err
34851 cat conftest.err >&5
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); } && {
34854 test -z "$ac_c_werror_flag" ||
34855 test ! -s conftest.err
34856 } && test -s conftest.$ac_objext; then
34857 ac_lo=$ac_mid; break
34859 echo "$as_me: failed program was:" >&5
34860 sed 's/^/| /' conftest.$ac_ext >&5
34862 ac_hi=`expr '(' $ac_mid ')' - 1`
34863 if test $ac_mid -le $ac_hi; then
34867 ac_mid=`expr 2 '*' $ac_mid`
34870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34873 echo "$as_me: failed program was:" >&5
34874 sed 's/^/| /' conftest.$ac_ext >&5
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34883 # Binary search between lo and hi bounds.
34884 while test "x$ac_lo" != "x$ac_hi"; do
34885 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34886 cat >conftest.$ac_ext <<_ACEOF
34889 cat confdefs.h >>conftest.$ac_ext
34890 cat >>conftest.$ac_ext <<_ACEOF
34891 /* end confdefs.h. */
34892 $ac_includes_default
34893 typedef long long ac__type_sizeof_;
34897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34904 rm -f conftest.$ac_objext
34905 if { (ac_try="$ac_compile"
34906 case "(($ac_try" in
34907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34908 *) ac_try_echo=$ac_try;;
34910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34911 (eval "$ac_compile") 2>conftest.er1
34913 grep -v '^ *+' conftest.er1 >conftest.err
34915 cat conftest.err >&5
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); } && {
34918 test -z "$ac_c_werror_flag" ||
34919 test ! -s conftest.err
34920 } && test -s conftest.$ac_objext; then
34923 echo "$as_me: failed program was:" >&5
34924 sed 's/^/| /' conftest.$ac_ext >&5
34926 ac_lo=`expr '(' $ac_mid ')' + 1`
34929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34932 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34933 '') if test "$ac_cv_type_long_long" = yes; then
34934 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34935 See \`config.log' for more details." >&5
34936 echo "$as_me: error: cannot compute sizeof (long long)
34937 See \`config.log' for more details." >&2;}
34938 { (exit 77); exit 77; }; }
34940 ac_cv_sizeof_long_long=0
34944 cat >conftest.$ac_ext <<_ACEOF
34947 cat confdefs.h >>conftest.$ac_ext
34948 cat >>conftest.$ac_ext <<_ACEOF
34949 /* end confdefs.h. */
34950 $ac_includes_default
34951 typedef long long ac__type_sizeof_;
34952 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34953 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34955 #include <stdlib.h>
34960 FILE *f = fopen ("conftest.val", "w");
34963 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34965 long int i = longval ();
34966 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34968 fprintf (f, "%ld\n", i);
34972 unsigned long int i = ulongval ();
34973 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34975 fprintf (f, "%lu\n", i);
34977 return ferror (f) || fclose (f) != 0;
34983 rm -f conftest$ac_exeext
34984 if { (ac_try="$ac_link"
34985 case "(($ac_try" in
34986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34987 *) ac_try_echo=$ac_try;;
34989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34990 (eval "$ac_link") 2>&5
34992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34994 { (case "(($ac_try" in
34995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34996 *) ac_try_echo=$ac_try;;
34998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34999 (eval "$ac_try") 2>&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); }; }; then
35003 ac_cv_sizeof_long_long=`cat conftest.val`
35005 echo "$as_me: program exited with status $ac_status" >&5
35006 echo "$as_me: failed program was:" >&5
35007 sed 's/^/| /' conftest.$ac_ext >&5
35009 ( exit $ac_status )
35010 if test "$ac_cv_type_long_long" = yes; then
35011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35012 See \`config.log' for more details." >&5
35013 echo "$as_me: error: cannot compute sizeof (long long)
35014 See \`config.log' for more details." >&2;}
35015 { (exit 77); exit 77; }; }
35017 ac_cv_sizeof_long_long=0
35020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35024 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35025 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35029 cat >>confdefs.h <<_ACEOF
35030 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35034 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35035 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35036 if test "${ac_cv_type_wchar_t+set}" = set; then
35037 echo $ECHO_N "(cached) $ECHO_C" >&6
35039 cat >conftest.$ac_ext <<_ACEOF
35042 cat confdefs.h >>conftest.$ac_ext
35043 cat >>conftest.$ac_ext <<_ACEOF
35044 /* end confdefs.h. */
35045 $ac_includes_default
35046 typedef wchar_t ac__type_new_;
35050 if ((ac__type_new_ *) 0)
35052 if (sizeof (ac__type_new_))
35058 rm -f conftest.$ac_objext
35059 if { (ac_try="$ac_compile"
35060 case "(($ac_try" in
35061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35062 *) ac_try_echo=$ac_try;;
35064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35065 (eval "$ac_compile") 2>conftest.er1
35067 grep -v '^ *+' conftest.er1 >conftest.err
35069 cat conftest.err >&5
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); } && {
35072 test -z "$ac_c_werror_flag" ||
35073 test ! -s conftest.err
35074 } && test -s conftest.$ac_objext; then
35075 ac_cv_type_wchar_t=yes
35077 echo "$as_me: failed program was:" >&5
35078 sed 's/^/| /' conftest.$ac_ext >&5
35080 ac_cv_type_wchar_t=no
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35085 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35086 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35088 # The cast to long int works around a bug in the HP C Compiler
35089 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35090 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35091 # This bug is HP SR number 8606223364.
35092 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35093 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35094 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35095 echo $ECHO_N "(cached) $ECHO_C" >&6
35097 if test "$cross_compiling" = yes; then
35098 # Depending upon the size, compute the lo and hi bounds.
35099 cat >conftest.$ac_ext <<_ACEOF
35102 cat confdefs.h >>conftest.$ac_ext
35103 cat >>conftest.$ac_ext <<_ACEOF
35104 /* end confdefs.h. */
35105 $ac_includes_default
35106 typedef wchar_t ac__type_sizeof_;
35110 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35117 rm -f conftest.$ac_objext
35118 if { (ac_try="$ac_compile"
35119 case "(($ac_try" in
35120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35121 *) ac_try_echo=$ac_try;;
35123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35124 (eval "$ac_compile") 2>conftest.er1
35126 grep -v '^ *+' conftest.er1 >conftest.err
35128 cat conftest.err >&5
35129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35130 (exit $ac_status); } && {
35131 test -z "$ac_c_werror_flag" ||
35132 test ! -s conftest.err
35133 } && test -s conftest.$ac_objext; then
35136 cat >conftest.$ac_ext <<_ACEOF
35139 cat confdefs.h >>conftest.$ac_ext
35140 cat >>conftest.$ac_ext <<_ACEOF
35141 /* end confdefs.h. */
35142 $ac_includes_default
35143 typedef wchar_t ac__type_sizeof_;
35147 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35154 rm -f conftest.$ac_objext
35155 if { (ac_try="$ac_compile"
35156 case "(($ac_try" in
35157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35158 *) ac_try_echo=$ac_try;;
35160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35161 (eval "$ac_compile") 2>conftest.er1
35163 grep -v '^ *+' conftest.er1 >conftest.err
35165 cat conftest.err >&5
35166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167 (exit $ac_status); } && {
35168 test -z "$ac_c_werror_flag" ||
35169 test ! -s conftest.err
35170 } && test -s conftest.$ac_objext; then
35171 ac_hi=$ac_mid; break
35173 echo "$as_me: failed program was:" >&5
35174 sed 's/^/| /' conftest.$ac_ext >&5
35176 ac_lo=`expr $ac_mid + 1`
35177 if test $ac_lo -le $ac_mid; then
35181 ac_mid=`expr 2 '*' $ac_mid + 1`
35184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35187 echo "$as_me: failed program was:" >&5
35188 sed 's/^/| /' conftest.$ac_ext >&5
35190 cat >conftest.$ac_ext <<_ACEOF
35193 cat confdefs.h >>conftest.$ac_ext
35194 cat >>conftest.$ac_ext <<_ACEOF
35195 /* end confdefs.h. */
35196 $ac_includes_default
35197 typedef wchar_t ac__type_sizeof_;
35201 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35208 rm -f conftest.$ac_objext
35209 if { (ac_try="$ac_compile"
35210 case "(($ac_try" in
35211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35212 *) ac_try_echo=$ac_try;;
35214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35215 (eval "$ac_compile") 2>conftest.er1
35217 grep -v '^ *+' conftest.er1 >conftest.err
35219 cat conftest.err >&5
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); } && {
35222 test -z "$ac_c_werror_flag" ||
35223 test ! -s conftest.err
35224 } && test -s conftest.$ac_objext; then
35227 cat >conftest.$ac_ext <<_ACEOF
35230 cat confdefs.h >>conftest.$ac_ext
35231 cat >>conftest.$ac_ext <<_ACEOF
35232 /* end confdefs.h. */
35233 $ac_includes_default
35234 typedef wchar_t ac__type_sizeof_;
35238 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35245 rm -f conftest.$ac_objext
35246 if { (ac_try="$ac_compile"
35247 case "(($ac_try" in
35248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35249 *) ac_try_echo=$ac_try;;
35251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35252 (eval "$ac_compile") 2>conftest.er1
35254 grep -v '^ *+' conftest.er1 >conftest.err
35256 cat conftest.err >&5
35257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35258 (exit $ac_status); } && {
35259 test -z "$ac_c_werror_flag" ||
35260 test ! -s conftest.err
35261 } && test -s conftest.$ac_objext; then
35262 ac_lo=$ac_mid; break
35264 echo "$as_me: failed program was:" >&5
35265 sed 's/^/| /' conftest.$ac_ext >&5
35267 ac_hi=`expr '(' $ac_mid ')' - 1`
35268 if test $ac_mid -le $ac_hi; then
35272 ac_mid=`expr 2 '*' $ac_mid`
35275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35278 echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35288 # Binary search between lo and hi bounds.
35289 while test "x$ac_lo" != "x$ac_hi"; do
35290 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35291 cat >conftest.$ac_ext <<_ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h. */
35297 $ac_includes_default
35298 typedef wchar_t ac__type_sizeof_;
35302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35309 rm -f conftest.$ac_objext
35310 if { (ac_try="$ac_compile"
35311 case "(($ac_try" in
35312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35313 *) ac_try_echo=$ac_try;;
35315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35316 (eval "$ac_compile") 2>conftest.er1
35318 grep -v '^ *+' conftest.er1 >conftest.err
35320 cat conftest.err >&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); } && {
35323 test -z "$ac_c_werror_flag" ||
35324 test ! -s conftest.err
35325 } && test -s conftest.$ac_objext; then
35328 echo "$as_me: failed program was:" >&5
35329 sed 's/^/| /' conftest.$ac_ext >&5
35331 ac_lo=`expr '(' $ac_mid ')' + 1`
35334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35337 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35338 '') if test "$ac_cv_type_wchar_t" = yes; then
35339 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35340 See \`config.log' for more details." >&5
35341 echo "$as_me: error: cannot compute sizeof (wchar_t)
35342 See \`config.log' for more details." >&2;}
35343 { (exit 77); exit 77; }; }
35345 ac_cv_sizeof_wchar_t=0
35349 cat >conftest.$ac_ext <<_ACEOF
35352 cat confdefs.h >>conftest.$ac_ext
35353 cat >>conftest.$ac_ext <<_ACEOF
35354 /* end confdefs.h. */
35355 $ac_includes_default
35356 typedef wchar_t ac__type_sizeof_;
35357 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35358 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35360 #include <stdlib.h>
35365 FILE *f = fopen ("conftest.val", "w");
35368 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35370 long int i = longval ();
35371 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35373 fprintf (f, "%ld\n", i);
35377 unsigned long int i = ulongval ();
35378 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35380 fprintf (f, "%lu\n", i);
35382 return ferror (f) || fclose (f) != 0;
35388 rm -f conftest$ac_exeext
35389 if { (ac_try="$ac_link"
35390 case "(($ac_try" in
35391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35392 *) ac_try_echo=$ac_try;;
35394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35395 (eval "$ac_link") 2>&5
35397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35399 { (case "(($ac_try" in
35400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35401 *) ac_try_echo=$ac_try;;
35403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35404 (eval "$ac_try") 2>&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); }; }; then
35408 ac_cv_sizeof_wchar_t=`cat conftest.val`
35410 echo "$as_me: program exited with status $ac_status" >&5
35411 echo "$as_me: failed program was:" >&5
35412 sed 's/^/| /' conftest.$ac_ext >&5
35414 ( exit $ac_status )
35415 if test "$ac_cv_type_wchar_t" = yes; then
35416 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35417 See \`config.log' for more details." >&5
35418 echo "$as_me: error: cannot compute sizeof (wchar_t)
35419 See \`config.log' for more details." >&2;}
35420 { (exit 77); exit 77; }; }
35422 ac_cv_sizeof_wchar_t=0
35425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35429 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35430 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35434 cat >>confdefs.h <<_ACEOF
35435 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35440 if test "$ac_cv_sizeof_int" -lt 4 ; then
35441 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35442 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35445 cat >>confdefs.h <<\_ACEOF
35446 #define LBER_INT_T long
35451 cat >>confdefs.h <<\_ACEOF
35452 #define LBER_INT_T int
35458 cat >>confdefs.h <<\_ACEOF
35459 #define LBER_LEN_T long
35463 cat >>confdefs.h <<\_ACEOF
35464 #define LBER_SOCKET_T int
35468 cat >>confdefs.h <<\_ACEOF
35469 #define LBER_TAG_T long
35473 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35474 if test $ac_cv_sizeof_long_long -gt 4 ; then
35475 ol_with_mp=longlong
35477 cat >>confdefs.h <<\_ACEOF
35478 #define USE_MP_LONG_LONG 1
35481 elif test $ol_with_mp = longlong ; then
35482 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35483 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35484 { (exit 1); exit 1; }; }
35487 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35488 if test $ac_cv_sizeof_long -gt 4 ; then
35491 cat >>confdefs.h <<\_ACEOF
35492 #define USE_MP_LONG 1
35495 elif test $ol_with_mp = long ; then
35496 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35497 echo "$as_me: error: long unusable for multiple precision" >&2;}
35498 { (exit 1); exit 1; }; }
35501 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35503 for ac_header in openssl/bn.h
35505 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35510 echo $ECHO_N "(cached) $ECHO_C" >&6
35512 ac_res=`eval echo '${'$as_ac_Header'}'`
35513 { echo "$as_me:$LINENO: result: $ac_res" >&5
35514 echo "${ECHO_T}$ac_res" >&6; }
35516 # Is the header compilable?
35517 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35518 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35519 cat >conftest.$ac_ext <<_ACEOF
35522 cat confdefs.h >>conftest.$ac_ext
35523 cat >>conftest.$ac_ext <<_ACEOF
35524 /* end confdefs.h. */
35525 $ac_includes_default
35526 #include <$ac_header>
35528 rm -f conftest.$ac_objext
35529 if { (ac_try="$ac_compile"
35530 case "(($ac_try" in
35531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35532 *) ac_try_echo=$ac_try;;
35534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35535 (eval "$ac_compile") 2>conftest.er1
35537 grep -v '^ *+' conftest.er1 >conftest.err
35539 cat conftest.err >&5
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); } && {
35542 test -z "$ac_c_werror_flag" ||
35543 test ! -s conftest.err
35544 } && test -s conftest.$ac_objext; then
35545 ac_header_compiler=yes
35547 echo "$as_me: failed program was:" >&5
35548 sed 's/^/| /' conftest.$ac_ext >&5
35550 ac_header_compiler=no
35553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35554 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35555 echo "${ECHO_T}$ac_header_compiler" >&6; }
35557 # Is the header present?
35558 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35560 cat >conftest.$ac_ext <<_ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h. */
35566 #include <$ac_header>
35568 if { (ac_try="$ac_cpp conftest.$ac_ext"
35569 case "(($ac_try" in
35570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35571 *) ac_try_echo=$ac_try;;
35573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35576 grep -v '^ *+' conftest.er1 >conftest.err
35578 cat conftest.err >&5
35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35580 (exit $ac_status); } >/dev/null && {
35581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35582 test ! -s conftest.err
35584 ac_header_preproc=yes
35586 echo "$as_me: failed program was:" >&5
35587 sed 's/^/| /' conftest.$ac_ext >&5
35589 ac_header_preproc=no
35592 rm -f conftest.err conftest.$ac_ext
35593 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35594 echo "${ECHO_T}$ac_header_preproc" >&6; }
35596 # So? What about this header?
35597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35603 ac_header_preproc=yes
35606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35619 ## --------------------------------------------- ##
35620 ## Report this to <http://www.openldap.org/its/> ##
35621 ## --------------------------------------------- ##
35623 ) | sed "s/^/$as_me: WARNING: /" >&2
35626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35629 echo $ECHO_N "(cached) $ECHO_C" >&6
35631 eval "$as_ac_Header=\$ac_header_preproc"
35633 ac_res=`eval echo '${'$as_ac_Header'}'`
35634 { echo "$as_me:$LINENO: result: $ac_res" >&5
35635 echo "${ECHO_T}$ac_res" >&6; }
35638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35639 cat >>confdefs.h <<_ACEOF
35640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35648 for ac_header in openssl/crypto.h
35650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35652 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35655 echo $ECHO_N "(cached) $ECHO_C" >&6
35657 ac_res=`eval echo '${'$as_ac_Header'}'`
35658 { echo "$as_me:$LINENO: result: $ac_res" >&5
35659 echo "${ECHO_T}$ac_res" >&6; }
35661 # Is the header compilable?
35662 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35664 cat >conftest.$ac_ext <<_ACEOF
35667 cat confdefs.h >>conftest.$ac_ext
35668 cat >>conftest.$ac_ext <<_ACEOF
35669 /* end confdefs.h. */
35670 $ac_includes_default
35671 #include <$ac_header>
35673 rm -f conftest.$ac_objext
35674 if { (ac_try="$ac_compile"
35675 case "(($ac_try" in
35676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35677 *) ac_try_echo=$ac_try;;
35679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35680 (eval "$ac_compile") 2>conftest.er1
35682 grep -v '^ *+' conftest.er1 >conftest.err
35684 cat conftest.err >&5
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); } && {
35687 test -z "$ac_c_werror_flag" ||
35688 test ! -s conftest.err
35689 } && test -s conftest.$ac_objext; then
35690 ac_header_compiler=yes
35692 echo "$as_me: failed program was:" >&5
35693 sed 's/^/| /' conftest.$ac_ext >&5
35695 ac_header_compiler=no
35698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35700 echo "${ECHO_T}$ac_header_compiler" >&6; }
35702 # Is the header present?
35703 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35705 cat >conftest.$ac_ext <<_ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h. */
35711 #include <$ac_header>
35713 if { (ac_try="$ac_cpp conftest.$ac_ext"
35714 case "(($ac_try" in
35715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35716 *) ac_try_echo=$ac_try;;
35718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35721 grep -v '^ *+' conftest.er1 >conftest.err
35723 cat conftest.err >&5
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); } >/dev/null && {
35726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35727 test ! -s conftest.err
35729 ac_header_preproc=yes
35731 echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35734 ac_header_preproc=no
35737 rm -f conftest.err conftest.$ac_ext
35738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35739 echo "${ECHO_T}$ac_header_preproc" >&6; }
35741 # So? What about this header?
35742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35745 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35747 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35748 ac_header_preproc=yes
35751 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35752 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35753 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35754 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35755 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35756 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35757 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35758 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35761 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35762 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35764 ## --------------------------------------------- ##
35765 ## Report this to <http://www.openldap.org/its/> ##
35766 ## --------------------------------------------- ##
35768 ) | sed "s/^/$as_me: WARNING: /" >&2
35771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35774 echo $ECHO_N "(cached) $ECHO_C" >&6
35776 eval "$as_ac_Header=\$ac_header_preproc"
35778 ac_res=`eval echo '${'$as_ac_Header'}'`
35779 { echo "$as_me:$LINENO: result: $ac_res" >&5
35780 echo "${ECHO_T}$ac_res" >&6; }
35783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35784 cat >>confdefs.h <<_ACEOF
35785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35792 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35793 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35794 test "$ol_with_tls" = "found" ; then
35797 cat >>confdefs.h <<\_ACEOF
35798 #define USE_MP_BIGNUM 1
35801 elif test $ol_with_mp = bignum ; then
35802 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35803 echo "$as_me: error: bignum not available" >&2;}
35804 { (exit 1); exit 1; }; }
35807 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35809 for ac_header in gmp.h
35811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35816 echo $ECHO_N "(cached) $ECHO_C" >&6
35818 ac_res=`eval echo '${'$as_ac_Header'}'`
35819 { echo "$as_me:$LINENO: result: $ac_res" >&5
35820 echo "${ECHO_T}$ac_res" >&6; }
35822 # Is the header compilable?
35823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35825 cat >conftest.$ac_ext <<_ACEOF
35828 cat confdefs.h >>conftest.$ac_ext
35829 cat >>conftest.$ac_ext <<_ACEOF
35830 /* end confdefs.h. */
35831 $ac_includes_default
35832 #include <$ac_header>
35834 rm -f conftest.$ac_objext
35835 if { (ac_try="$ac_compile"
35836 case "(($ac_try" in
35837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35838 *) ac_try_echo=$ac_try;;
35840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35841 (eval "$ac_compile") 2>conftest.er1
35843 grep -v '^ *+' conftest.er1 >conftest.err
35845 cat conftest.err >&5
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } && {
35848 test -z "$ac_c_werror_flag" ||
35849 test ! -s conftest.err
35850 } && test -s conftest.$ac_objext; then
35851 ac_header_compiler=yes
35853 echo "$as_me: failed program was:" >&5
35854 sed 's/^/| /' conftest.$ac_ext >&5
35856 ac_header_compiler=no
35859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35860 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35861 echo "${ECHO_T}$ac_header_compiler" >&6; }
35863 # Is the header present?
35864 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35865 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35866 cat >conftest.$ac_ext <<_ACEOF
35869 cat confdefs.h >>conftest.$ac_ext
35870 cat >>conftest.$ac_ext <<_ACEOF
35871 /* end confdefs.h. */
35872 #include <$ac_header>
35874 if { (ac_try="$ac_cpp conftest.$ac_ext"
35875 case "(($ac_try" in
35876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35877 *) ac_try_echo=$ac_try;;
35879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35882 grep -v '^ *+' conftest.er1 >conftest.err
35884 cat conftest.err >&5
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); } >/dev/null && {
35887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35888 test ! -s conftest.err
35890 ac_header_preproc=yes
35892 echo "$as_me: failed program was:" >&5
35893 sed 's/^/| /' conftest.$ac_ext >&5
35895 ac_header_preproc=no
35898 rm -f conftest.err conftest.$ac_ext
35899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35900 echo "${ECHO_T}$ac_header_preproc" >&6; }
35902 # So? What about this header?
35903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35909 ac_header_preproc=yes
35912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35925 ## --------------------------------------------- ##
35926 ## Report this to <http://www.openldap.org/its/> ##
35927 ## --------------------------------------------- ##
35929 ) | sed "s/^/$as_me: WARNING: /" >&2
35932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35935 echo $ECHO_N "(cached) $ECHO_C" >&6
35937 eval "$as_ac_Header=\$ac_header_preproc"
35939 ac_res=`eval echo '${'$as_ac_Header'}'`
35940 { echo "$as_me:$LINENO: result: $ac_res" >&5
35941 echo "${ECHO_T}$ac_res" >&6; }
35944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35945 cat >>confdefs.h <<_ACEOF
35946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35954 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35955 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35956 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35957 echo $ECHO_N "(cached) $ECHO_C" >&6
35959 ac_check_lib_save_LIBS=$LIBS
35961 cat >conftest.$ac_ext <<_ACEOF
35964 cat confdefs.h >>conftest.$ac_ext
35965 cat >>conftest.$ac_ext <<_ACEOF
35966 /* end confdefs.h. */
35968 /* Override any GCC internal prototype to avoid an error.
35969 Use char because int might match the return type of a GCC
35970 builtin and then its argument prototype would still apply. */
35974 char __gmpz_add_ui ();
35978 return __gmpz_add_ui ();
35983 rm -f conftest.$ac_objext conftest$ac_exeext
35984 if { (ac_try="$ac_link"
35985 case "(($ac_try" in
35986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35987 *) ac_try_echo=$ac_try;;
35989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35990 (eval "$ac_link") 2>conftest.er1
35992 grep -v '^ *+' conftest.er1 >conftest.err
35994 cat conftest.err >&5
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); } && {
35997 test -z "$ac_c_werror_flag" ||
35998 test ! -s conftest.err
35999 } && test -s conftest$ac_exeext &&
36000 $as_test_x conftest$ac_exeext; then
36001 ac_cv_lib_gmp___gmpz_add_ui=yes
36003 echo "$as_me: failed program was:" >&5
36004 sed 's/^/| /' conftest.$ac_ext >&5
36006 ac_cv_lib_gmp___gmpz_add_ui=no
36009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36010 conftest$ac_exeext conftest.$ac_ext
36011 LIBS=$ac_check_lib_save_LIBS
36013 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36014 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36015 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36016 cat >>confdefs.h <<_ACEOF
36017 #define HAVE_LIBGMP 1
36024 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36026 cat >>confdefs.h <<\_ACEOF
36027 #define USE_MP_GMP 1
36031 elif test $ol_with_mp = gmp ; then
36032 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36033 echo "$as_me: error: gmp not available" >&2;}
36034 { (exit 1); exit 1; }; }
36037 if test $ol_with_mp = auto ; then
36041 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36042 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36043 if test "${ac_cv_func_memcmp_working+set}" = set; then
36044 echo $ECHO_N "(cached) $ECHO_C" >&6
36046 if test "$cross_compiling" = yes; then
36047 ac_cv_func_memcmp_working=no
36049 cat >conftest.$ac_ext <<_ACEOF
36052 cat confdefs.h >>conftest.$ac_ext
36053 cat >>conftest.$ac_ext <<_ACEOF
36054 /* end confdefs.h. */
36055 $ac_includes_default
36060 /* Some versions of memcmp are not 8-bit clean. */
36061 char c0 = '\100', c1 = '\200', c2 = '\201';
36062 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36065 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36066 or more and with at least one buffer not starting on a 4-byte boundary.
36067 William Lewis provided this test program. */
36072 for (i = 0; i < 4; i++)
36076 strcpy (a, "--------01111111");
36077 strcpy (b, "--------10000000");
36078 if (memcmp (a, b, 16) >= 0)
36088 rm -f conftest$ac_exeext
36089 if { (ac_try="$ac_link"
36090 case "(($ac_try" in
36091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36092 *) ac_try_echo=$ac_try;;
36094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36095 (eval "$ac_link") 2>&5
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36099 { (case "(($ac_try" in
36100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36101 *) ac_try_echo=$ac_try;;
36103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36104 (eval "$ac_try") 2>&5
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); }; }; then
36108 ac_cv_func_memcmp_working=yes
36110 echo "$as_me: program exited with status $ac_status" >&5
36111 echo "$as_me: failed program was:" >&5
36112 sed 's/^/| /' conftest.$ac_ext >&5
36114 ( exit $ac_status )
36115 ac_cv_func_memcmp_working=no
36117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36122 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36123 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36124 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36125 *" memcmp.$ac_objext "* ) ;;
36126 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36132 if test $ac_cv_func_memcmp_working = no ; then
36134 cat >>confdefs.h <<\_ACEOF
36135 #define NEED_MEMCMP_REPLACEMENT 1
36141 for ac_func in strftime
36143 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36147 echo $ECHO_N "(cached) $ECHO_C" >&6
36149 cat >conftest.$ac_ext <<_ACEOF
36152 cat confdefs.h >>conftest.$ac_ext
36153 cat >>conftest.$ac_ext <<_ACEOF
36154 /* end confdefs.h. */
36155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36157 #define $ac_func innocuous_$ac_func
36159 /* System header to define __stub macros and hopefully few prototypes,
36160 which can conflict with char $ac_func (); below.
36161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36162 <limits.h> exists even on freestanding compilers. */
36165 # include <limits.h>
36167 # include <assert.h>
36172 /* Override any GCC internal prototype to avoid an error.
36173 Use char because int might match the return type of a GCC
36174 builtin and then its argument prototype would still apply. */
36179 /* The GNU C library defines this for functions which it implements
36180 to always fail with ENOSYS. Some functions are actually named
36181 something starting with __ and the normal name is an alias. */
36182 #if defined __stub_$ac_func || defined __stub___$ac_func
36189 return $ac_func ();
36194 rm -f conftest.$ac_objext conftest$ac_exeext
36195 if { (ac_try="$ac_link"
36196 case "(($ac_try" in
36197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36198 *) ac_try_echo=$ac_try;;
36200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36201 (eval "$ac_link") 2>conftest.er1
36203 grep -v '^ *+' conftest.er1 >conftest.err
36205 cat conftest.err >&5
36206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36207 (exit $ac_status); } && {
36208 test -z "$ac_c_werror_flag" ||
36209 test ! -s conftest.err
36210 } && test -s conftest$ac_exeext &&
36211 $as_test_x conftest$ac_exeext; then
36212 eval "$as_ac_var=yes"
36214 echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.$ac_ext >&5
36217 eval "$as_ac_var=no"
36220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36221 conftest$ac_exeext conftest.$ac_ext
36223 ac_res=`eval echo '${'$as_ac_var'}'`
36224 { echo "$as_me:$LINENO: result: $ac_res" >&5
36225 echo "${ECHO_T}$ac_res" >&6; }
36226 if test `eval echo '${'$as_ac_var'}'` = yes; then
36227 cat >>confdefs.h <<_ACEOF
36228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36232 # strftime is in -lintl on SCO UNIX.
36233 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36234 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36235 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36236 echo $ECHO_N "(cached) $ECHO_C" >&6
36238 ac_check_lib_save_LIBS=$LIBS
36239 LIBS="-lintl $LIBS"
36240 cat >conftest.$ac_ext <<_ACEOF
36243 cat confdefs.h >>conftest.$ac_ext
36244 cat >>conftest.$ac_ext <<_ACEOF
36245 /* end confdefs.h. */
36247 /* Override any GCC internal prototype to avoid an error.
36248 Use char because int might match the return type of a GCC
36249 builtin and then its argument prototype would still apply. */
36257 return strftime ();
36262 rm -f conftest.$ac_objext conftest$ac_exeext
36263 if { (ac_try="$ac_link"
36264 case "(($ac_try" in
36265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36266 *) ac_try_echo=$ac_try;;
36268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36269 (eval "$ac_link") 2>conftest.er1
36271 grep -v '^ *+' conftest.er1 >conftest.err
36273 cat conftest.err >&5
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); } && {
36276 test -z "$ac_c_werror_flag" ||
36277 test ! -s conftest.err
36278 } && test -s conftest$ac_exeext &&
36279 $as_test_x conftest$ac_exeext; then
36280 ac_cv_lib_intl_strftime=yes
36282 echo "$as_me: failed program was:" >&5
36283 sed 's/^/| /' conftest.$ac_ext >&5
36285 ac_cv_lib_intl_strftime=no
36288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36289 conftest$ac_exeext conftest.$ac_ext
36290 LIBS=$ac_check_lib_save_LIBS
36292 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36293 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36294 if test $ac_cv_lib_intl_strftime = yes; then
36295 cat >>confdefs.h <<\_ACEOF
36296 #define HAVE_STRFTIME 1
36299 LIBS="-lintl $LIBS"
36306 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36307 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36308 if test "${ol_cv_func_inet_aton+set}" = set; then
36309 echo $ECHO_N "(cached) $ECHO_C" >&6
36311 cat >conftest.$ac_ext <<_ACEOF
36314 cat confdefs.h >>conftest.$ac_ext
36315 cat >>conftest.$ac_ext <<_ACEOF
36316 /* end confdefs.h. */
36318 #ifdef HAVE_SYS_TYPES_H
36319 # include <sys/types.h>
36321 #ifdef HAVE_SYS_SOCKET_H
36322 # include <sys/socket.h>
36323 # ifdef HAVE_SYS_SELECT_H
36324 # include <sys/select.h>
36326 # include <netinet/in.h>
36327 # ifdef HAVE_ARPA_INET_H
36328 # include <arpa/inet.h>
36336 int rc = inet_aton( "255.255.255.255", &in );
36341 rm -f conftest.$ac_objext conftest$ac_exeext
36342 if { (ac_try="$ac_link"
36343 case "(($ac_try" in
36344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36345 *) ac_try_echo=$ac_try;;
36347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36348 (eval "$ac_link") 2>conftest.er1
36350 grep -v '^ *+' conftest.er1 >conftest.err
36352 cat conftest.err >&5
36353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36354 (exit $ac_status); } && {
36355 test -z "$ac_c_werror_flag" ||
36356 test ! -s conftest.err
36357 } && test -s conftest$ac_exeext &&
36358 $as_test_x conftest$ac_exeext; then
36359 ol_cv_func_inet_aton=yes
36361 echo "$as_me: failed program was:" >&5
36362 sed 's/^/| /' conftest.$ac_ext >&5
36364 ol_cv_func_inet_aton=no
36367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36368 conftest$ac_exeext conftest.$ac_ext
36370 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36371 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36372 if test $ol_cv_func_inet_aton != no; then
36374 cat >>confdefs.h <<\_ACEOF
36375 #define HAVE_INET_ATON 1
36381 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36382 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36383 if test "${ac_cv_func__spawnlp+set}" = set; then
36384 echo $ECHO_N "(cached) $ECHO_C" >&6
36386 cat >conftest.$ac_ext <<_ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h. */
36392 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36394 #define _spawnlp innocuous__spawnlp
36396 /* System header to define __stub macros and hopefully few prototypes,
36397 which can conflict with char _spawnlp (); below.
36398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36399 <limits.h> exists even on freestanding compilers. */
36402 # include <limits.h>
36404 # include <assert.h>
36409 /* Override any GCC internal prototype to avoid an error.
36410 Use char because int might match the return type of a GCC
36411 builtin and then its argument prototype would still apply. */
36416 /* The GNU C library defines this for functions which it implements
36417 to always fail with ENOSYS. Some functions are actually named
36418 something starting with __ and the normal name is an alias. */
36419 #if defined __stub__spawnlp || defined __stub____spawnlp
36426 return _spawnlp ();
36431 rm -f conftest.$ac_objext conftest$ac_exeext
36432 if { (ac_try="$ac_link"
36433 case "(($ac_try" in
36434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36435 *) ac_try_echo=$ac_try;;
36437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36438 (eval "$ac_link") 2>conftest.er1
36440 grep -v '^ *+' conftest.er1 >conftest.err
36442 cat conftest.err >&5
36443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36444 (exit $ac_status); } && {
36445 test -z "$ac_c_werror_flag" ||
36446 test ! -s conftest.err
36447 } && test -s conftest$ac_exeext &&
36448 $as_test_x conftest$ac_exeext; then
36449 ac_cv_func__spawnlp=yes
36451 echo "$as_me: failed program was:" >&5
36452 sed 's/^/| /' conftest.$ac_ext >&5
36454 ac_cv_func__spawnlp=no
36457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36458 conftest$ac_exeext conftest.$ac_ext
36460 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36461 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36462 if test $ac_cv_func__spawnlp = yes; then
36464 cat >>confdefs.h <<\_ACEOF
36465 #define HAVE_SPAWNLP 1
36471 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36472 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36473 if test "${ac_cv_func__snprintf+set}" = set; then
36474 echo $ECHO_N "(cached) $ECHO_C" >&6
36476 cat >conftest.$ac_ext <<_ACEOF
36479 cat confdefs.h >>conftest.$ac_ext
36480 cat >>conftest.$ac_ext <<_ACEOF
36481 /* end confdefs.h. */
36482 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36484 #define _snprintf innocuous__snprintf
36486 /* System header to define __stub macros and hopefully few prototypes,
36487 which can conflict with char _snprintf (); below.
36488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36489 <limits.h> exists even on freestanding compilers. */
36492 # include <limits.h>
36494 # include <assert.h>
36499 /* Override any GCC internal prototype to avoid an error.
36500 Use char because int might match the return type of a GCC
36501 builtin and then its argument prototype would still apply. */
36506 /* The GNU C library defines this for functions which it implements
36507 to always fail with ENOSYS. Some functions are actually named
36508 something starting with __ and the normal name is an alias. */
36509 #if defined __stub__snprintf || defined __stub____snprintf
36516 return _snprintf ();
36521 rm -f conftest.$ac_objext conftest$ac_exeext
36522 if { (ac_try="$ac_link"
36523 case "(($ac_try" in
36524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525 *) ac_try_echo=$ac_try;;
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528 (eval "$ac_link") 2>conftest.er1
36530 grep -v '^ *+' conftest.er1 >conftest.err
36532 cat conftest.err >&5
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } && {
36535 test -z "$ac_c_werror_flag" ||
36536 test ! -s conftest.err
36537 } && test -s conftest$ac_exeext &&
36538 $as_test_x conftest$ac_exeext; then
36539 ac_cv_func__snprintf=yes
36541 echo "$as_me: failed program was:" >&5
36542 sed 's/^/| /' conftest.$ac_ext >&5
36544 ac_cv_func__snprintf=no
36547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36548 conftest$ac_exeext conftest.$ac_ext
36550 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36551 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36552 if test $ac_cv_func__snprintf = yes; then
36553 ac_cv_func_snprintf=yes
36555 cat >>confdefs.h <<\_ACEOF
36556 #define snprintf _snprintf
36565 for ac_func in vsnprintf _vsnprintf
36567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36571 echo $ECHO_N "(cached) $ECHO_C" >&6
36573 cat >conftest.$ac_ext <<_ACEOF
36576 cat confdefs.h >>conftest.$ac_ext
36577 cat >>conftest.$ac_ext <<_ACEOF
36578 /* end confdefs.h. */
36579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36581 #define $ac_func innocuous_$ac_func
36583 /* System header to define __stub macros and hopefully few prototypes,
36584 which can conflict with char $ac_func (); below.
36585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36586 <limits.h> exists even on freestanding compilers. */
36589 # include <limits.h>
36591 # include <assert.h>
36596 /* Override any GCC internal prototype to avoid an error.
36597 Use char because int might match the return type of a GCC
36598 builtin and then its argument prototype would still apply. */
36603 /* The GNU C library defines this for functions which it implements
36604 to always fail with ENOSYS. Some functions are actually named
36605 something starting with __ and the normal name is an alias. */
36606 #if defined __stub_$ac_func || defined __stub___$ac_func
36613 return $ac_func ();
36618 rm -f conftest.$ac_objext conftest$ac_exeext
36619 if { (ac_try="$ac_link"
36620 case "(($ac_try" in
36621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36622 *) ac_try_echo=$ac_try;;
36624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36625 (eval "$ac_link") 2>conftest.er1
36627 grep -v '^ *+' conftest.er1 >conftest.err
36629 cat conftest.err >&5
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); } && {
36632 test -z "$ac_c_werror_flag" ||
36633 test ! -s conftest.err
36634 } && test -s conftest$ac_exeext &&
36635 $as_test_x conftest$ac_exeext; then
36636 eval "$as_ac_var=yes"
36638 echo "$as_me: failed program was:" >&5
36639 sed 's/^/| /' conftest.$ac_ext >&5
36641 eval "$as_ac_var=no"
36644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36645 conftest$ac_exeext conftest.$ac_ext
36647 ac_res=`eval echo '${'$as_ac_var'}'`
36648 { echo "$as_me:$LINENO: result: $ac_res" >&5
36649 echo "${ECHO_T}$ac_res" >&6; }
36650 if test `eval echo '${'$as_ac_var'}'` = yes; then
36651 cat >>confdefs.h <<_ACEOF
36652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36659 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36660 ac_cv_func_vsnprintf=yes
36662 cat >>confdefs.h <<\_ACEOF
36663 #define vsnprintf _vsnprintf
36669 for ac_func in vprintf
36671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36675 echo $ECHO_N "(cached) $ECHO_C" >&6
36677 cat >conftest.$ac_ext <<_ACEOF
36680 cat confdefs.h >>conftest.$ac_ext
36681 cat >>conftest.$ac_ext <<_ACEOF
36682 /* end confdefs.h. */
36683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36685 #define $ac_func innocuous_$ac_func
36687 /* System header to define __stub macros and hopefully few prototypes,
36688 which can conflict with char $ac_func (); below.
36689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36690 <limits.h> exists even on freestanding compilers. */
36693 # include <limits.h>
36695 # include <assert.h>
36700 /* Override any GCC internal prototype to avoid an error.
36701 Use char because int might match the return type of a GCC
36702 builtin and then its argument prototype would still apply. */
36707 /* The GNU C library defines this for functions which it implements
36708 to always fail with ENOSYS. Some functions are actually named
36709 something starting with __ and the normal name is an alias. */
36710 #if defined __stub_$ac_func || defined __stub___$ac_func
36717 return $ac_func ();
36722 rm -f conftest.$ac_objext conftest$ac_exeext
36723 if { (ac_try="$ac_link"
36724 case "(($ac_try" in
36725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36726 *) ac_try_echo=$ac_try;;
36728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36729 (eval "$ac_link") 2>conftest.er1
36731 grep -v '^ *+' conftest.er1 >conftest.err
36733 cat conftest.err >&5
36734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36735 (exit $ac_status); } && {
36736 test -z "$ac_c_werror_flag" ||
36737 test ! -s conftest.err
36738 } && test -s conftest$ac_exeext &&
36739 $as_test_x conftest$ac_exeext; then
36740 eval "$as_ac_var=yes"
36742 echo "$as_me: failed program was:" >&5
36743 sed 's/^/| /' conftest.$ac_ext >&5
36745 eval "$as_ac_var=no"
36748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36749 conftest$ac_exeext conftest.$ac_ext
36751 ac_res=`eval echo '${'$as_ac_var'}'`
36752 { echo "$as_me:$LINENO: result: $ac_res" >&5
36753 echo "${ECHO_T}$ac_res" >&6; }
36754 if test `eval echo '${'$as_ac_var'}'` = yes; then
36755 cat >>confdefs.h <<_ACEOF
36756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36759 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36760 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36761 if test "${ac_cv_func__doprnt+set}" = set; then
36762 echo $ECHO_N "(cached) $ECHO_C" >&6
36764 cat >conftest.$ac_ext <<_ACEOF
36767 cat confdefs.h >>conftest.$ac_ext
36768 cat >>conftest.$ac_ext <<_ACEOF
36769 /* end confdefs.h. */
36770 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36772 #define _doprnt innocuous__doprnt
36774 /* System header to define __stub macros and hopefully few prototypes,
36775 which can conflict with char _doprnt (); below.
36776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36777 <limits.h> exists even on freestanding compilers. */
36780 # include <limits.h>
36782 # include <assert.h>
36787 /* Override any GCC internal prototype to avoid an error.
36788 Use char because int might match the return type of a GCC
36789 builtin and then its argument prototype would still apply. */
36794 /* The GNU C library defines this for functions which it implements
36795 to always fail with ENOSYS. Some functions are actually named
36796 something starting with __ and the normal name is an alias. */
36797 #if defined __stub__doprnt || defined __stub____doprnt
36809 rm -f conftest.$ac_objext conftest$ac_exeext
36810 if { (ac_try="$ac_link"
36811 case "(($ac_try" in
36812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36813 *) ac_try_echo=$ac_try;;
36815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36816 (eval "$ac_link") 2>conftest.er1
36818 grep -v '^ *+' conftest.er1 >conftest.err
36820 cat conftest.err >&5
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); } && {
36823 test -z "$ac_c_werror_flag" ||
36824 test ! -s conftest.err
36825 } && test -s conftest$ac_exeext &&
36826 $as_test_x conftest$ac_exeext; then
36827 ac_cv_func__doprnt=yes
36829 echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36832 ac_cv_func__doprnt=no
36835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36836 conftest$ac_exeext conftest.$ac_ext
36838 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36839 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36840 if test $ac_cv_func__doprnt = yes; then
36842 cat >>confdefs.h <<\_ACEOF
36843 #define HAVE_DOPRNT 1
36853 if test $ac_cv_func_vprintf = yes ; then
36856 for ac_func in snprintf vsnprintf
36858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36859 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36861 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36862 echo $ECHO_N "(cached) $ECHO_C" >&6
36864 cat >conftest.$ac_ext <<_ACEOF
36867 cat confdefs.h >>conftest.$ac_ext
36868 cat >>conftest.$ac_ext <<_ACEOF
36869 /* end confdefs.h. */
36870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36872 #define $ac_func innocuous_$ac_func
36874 /* System header to define __stub macros and hopefully few prototypes,
36875 which can conflict with char $ac_func (); below.
36876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36877 <limits.h> exists even on freestanding compilers. */
36880 # include <limits.h>
36882 # include <assert.h>
36887 /* Override any GCC internal prototype to avoid an error.
36888 Use char because int might match the return type of a GCC
36889 builtin and then its argument prototype would still apply. */
36894 /* The GNU C library defines this for functions which it implements
36895 to always fail with ENOSYS. Some functions are actually named
36896 something starting with __ and the normal name is an alias. */
36897 #if defined __stub_$ac_func || defined __stub___$ac_func
36904 return $ac_func ();
36909 rm -f conftest.$ac_objext conftest$ac_exeext
36910 if { (ac_try="$ac_link"
36911 case "(($ac_try" in
36912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36913 *) ac_try_echo=$ac_try;;
36915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36916 (eval "$ac_link") 2>conftest.er1
36918 grep -v '^ *+' conftest.er1 >conftest.err
36920 cat conftest.err >&5
36921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36922 (exit $ac_status); } && {
36923 test -z "$ac_c_werror_flag" ||
36924 test ! -s conftest.err
36925 } && test -s conftest$ac_exeext &&
36926 $as_test_x conftest$ac_exeext; then
36927 eval "$as_ac_var=yes"
36929 echo "$as_me: failed program was:" >&5
36930 sed 's/^/| /' conftest.$ac_ext >&5
36932 eval "$as_ac_var=no"
36935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36936 conftest$ac_exeext conftest.$ac_ext
36938 ac_res=`eval echo '${'$as_ac_var'}'`
36939 { echo "$as_me:$LINENO: result: $ac_res" >&5
36940 echo "${ECHO_T}$ac_res" >&6; }
36941 if test `eval echo '${'$as_ac_var'}'` = yes; then
36942 cat >>confdefs.h <<_ACEOF
36943 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37070 echo $ECHO_N "(cached) $ECHO_C" >&6
37072 cat >conftest.$ac_ext <<_ACEOF
37075 cat confdefs.h >>conftest.$ac_ext
37076 cat >>conftest.$ac_ext <<_ACEOF
37077 /* end confdefs.h. */
37078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37080 #define $ac_func innocuous_$ac_func
37082 /* System header to define __stub macros and hopefully few prototypes,
37083 which can conflict with char $ac_func (); below.
37084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37085 <limits.h> exists even on freestanding compilers. */
37088 # include <limits.h>
37090 # include <assert.h>
37095 /* Override any GCC internal prototype to avoid an error.
37096 Use char because int might match the return type of a GCC
37097 builtin and then its argument prototype would still apply. */
37102 /* The GNU C library defines this for functions which it implements
37103 to always fail with ENOSYS. Some functions are actually named
37104 something starting with __ and the normal name is an alias. */
37105 #if defined __stub_$ac_func || defined __stub___$ac_func
37112 return $ac_func ();
37117 rm -f conftest.$ac_objext conftest$ac_exeext
37118 if { (ac_try="$ac_link"
37119 case "(($ac_try" in
37120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37121 *) ac_try_echo=$ac_try;;
37123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37124 (eval "$ac_link") 2>conftest.er1
37126 grep -v '^ *+' conftest.er1 >conftest.err
37128 cat conftest.err >&5
37129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37130 (exit $ac_status); } && {
37131 test -z "$ac_c_werror_flag" ||
37132 test ! -s conftest.err
37133 } && test -s conftest$ac_exeext &&
37134 $as_test_x conftest$ac_exeext; then
37135 eval "$as_ac_var=yes"
37137 echo "$as_me: failed program was:" >&5
37138 sed 's/^/| /' conftest.$ac_ext >&5
37140 eval "$as_ac_var=no"
37143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37144 conftest$ac_exeext conftest.$ac_ext
37146 ac_res=`eval echo '${'$as_ac_var'}'`
37147 { echo "$as_me:$LINENO: result: $ac_res" >&5
37148 echo "${ECHO_T}$ac_res" >&6; }
37149 if test `eval echo '${'$as_ac_var'}'` = yes; then
37150 cat >>confdefs.h <<_ACEOF
37151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37160 for ac_func in getopt getpeereid
37162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37166 echo $ECHO_N "(cached) $ECHO_C" >&6
37168 cat >conftest.$ac_ext <<_ACEOF
37171 cat confdefs.h >>conftest.$ac_ext
37172 cat >>conftest.$ac_ext <<_ACEOF
37173 /* end confdefs.h. */
37174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37176 #define $ac_func innocuous_$ac_func
37178 /* System header to define __stub macros and hopefully few prototypes,
37179 which can conflict with char $ac_func (); below.
37180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37181 <limits.h> exists even on freestanding compilers. */
37184 # include <limits.h>
37186 # include <assert.h>
37191 /* Override any GCC internal prototype to avoid an error.
37192 Use char because int might match the return type of a GCC
37193 builtin and then its argument prototype would still apply. */
37198 /* The GNU C library defines this for functions which it implements
37199 to always fail with ENOSYS. Some functions are actually named
37200 something starting with __ and the normal name is an alias. */
37201 #if defined __stub_$ac_func || defined __stub___$ac_func
37208 return $ac_func ();
37213 rm -f conftest.$ac_objext conftest$ac_exeext
37214 if { (ac_try="$ac_link"
37215 case "(($ac_try" in
37216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37217 *) ac_try_echo=$ac_try;;
37219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37220 (eval "$ac_link") 2>conftest.er1
37222 grep -v '^ *+' conftest.er1 >conftest.err
37224 cat conftest.err >&5
37225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226 (exit $ac_status); } && {
37227 test -z "$ac_c_werror_flag" ||
37228 test ! -s conftest.err
37229 } && test -s conftest$ac_exeext &&
37230 $as_test_x conftest$ac_exeext; then
37231 eval "$as_ac_var=yes"
37233 echo "$as_me: failed program was:" >&5
37234 sed 's/^/| /' conftest.$ac_ext >&5
37236 eval "$as_ac_var=no"
37239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37240 conftest$ac_exeext conftest.$ac_ext
37242 ac_res=`eval echo '${'$as_ac_var'}'`
37243 { echo "$as_me:$LINENO: result: $ac_res" >&5
37244 echo "${ECHO_T}$ac_res" >&6; }
37245 if test `eval echo '${'$as_ac_var'}'` = yes; then
37246 cat >>confdefs.h <<_ACEOF
37247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37251 case " $LIBOBJS " in
37252 *" $ac_func.$ac_objext "* ) ;;
37253 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37262 if test "$ac_cv_func_getopt" != yes; then
37263 LIBSRCS="$LIBSRCS getopt.c"
37266 if test "$ac_cv_func_getpeereid" != yes; then
37268 for ac_func in getpeerucred
37270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37274 echo $ECHO_N "(cached) $ECHO_C" >&6
37276 cat >conftest.$ac_ext <<_ACEOF
37279 cat confdefs.h >>conftest.$ac_ext
37280 cat >>conftest.$ac_ext <<_ACEOF
37281 /* end confdefs.h. */
37282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37284 #define $ac_func innocuous_$ac_func
37286 /* System header to define __stub macros and hopefully few prototypes,
37287 which can conflict with char $ac_func (); below.
37288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37289 <limits.h> exists even on freestanding compilers. */
37292 # include <limits.h>
37294 # include <assert.h>
37299 /* Override any GCC internal prototype to avoid an error.
37300 Use char because int might match the return type of a GCC
37301 builtin and then its argument prototype would still apply. */
37306 /* The GNU C library defines this for functions which it implements
37307 to always fail with ENOSYS. Some functions are actually named
37308 something starting with __ and the normal name is an alias. */
37309 #if defined __stub_$ac_func || defined __stub___$ac_func
37316 return $ac_func ();
37321 rm -f conftest.$ac_objext conftest$ac_exeext
37322 if { (ac_try="$ac_link"
37323 case "(($ac_try" in
37324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37325 *) ac_try_echo=$ac_try;;
37327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37328 (eval "$ac_link") 2>conftest.er1
37330 grep -v '^ *+' conftest.er1 >conftest.err
37332 cat conftest.err >&5
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); } && {
37335 test -z "$ac_c_werror_flag" ||
37336 test ! -s conftest.err
37337 } && test -s conftest$ac_exeext &&
37338 $as_test_x conftest$ac_exeext; then
37339 eval "$as_ac_var=yes"
37341 echo "$as_me: failed program was:" >&5
37342 sed 's/^/| /' conftest.$ac_ext >&5
37344 eval "$as_ac_var=no"
37347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37348 conftest$ac_exeext conftest.$ac_ext
37350 ac_res=`eval echo '${'$as_ac_var'}'`
37351 { echo "$as_me:$LINENO: result: $ac_res" >&5
37352 echo "${ECHO_T}$ac_res" >&6; }
37353 if test `eval echo '${'$as_ac_var'}'` = yes; then
37354 cat >>confdefs.h <<_ACEOF
37355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37361 if test "$ac_cv_func_getpeerucred" != yes ; then
37362 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37363 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37364 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37365 echo $ECHO_N "(cached) $ECHO_C" >&6
37367 cat >conftest.$ac_ext <<_ACEOF
37370 cat confdefs.h >>conftest.$ac_ext
37371 cat >>conftest.$ac_ext <<_ACEOF
37372 /* end confdefs.h. */
37373 $ac_includes_default
37374 #ifdef HAVE_SYS_SOCKET_H
37375 #include <sys/socket.h>
37381 static struct msghdr ac_aggr;
37382 if (ac_aggr.msg_accrightslen)
37388 rm -f conftest.$ac_objext
37389 if { (ac_try="$ac_compile"
37390 case "(($ac_try" in
37391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37392 *) ac_try_echo=$ac_try;;
37394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37395 (eval "$ac_compile") 2>conftest.er1
37397 grep -v '^ *+' conftest.er1 >conftest.err
37399 cat conftest.err >&5
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); } && {
37402 test -z "$ac_c_werror_flag" ||
37403 test ! -s conftest.err
37404 } && test -s conftest.$ac_objext; then
37405 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37407 echo "$as_me: failed program was:" >&5
37408 sed 's/^/| /' conftest.$ac_ext >&5
37410 cat >conftest.$ac_ext <<_ACEOF
37413 cat confdefs.h >>conftest.$ac_ext
37414 cat >>conftest.$ac_ext <<_ACEOF
37415 /* end confdefs.h. */
37416 $ac_includes_default
37417 #ifdef HAVE_SYS_SOCKET_H
37418 #include <sys/socket.h>
37424 static struct msghdr ac_aggr;
37425 if (sizeof ac_aggr.msg_accrightslen)
37431 rm -f conftest.$ac_objext
37432 if { (ac_try="$ac_compile"
37433 case "(($ac_try" in
37434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37435 *) ac_try_echo=$ac_try;;
37437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37438 (eval "$ac_compile") 2>conftest.er1
37440 grep -v '^ *+' conftest.er1 >conftest.err
37442 cat conftest.err >&5
37443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37444 (exit $ac_status); } && {
37445 test -z "$ac_c_werror_flag" ||
37446 test ! -s conftest.err
37447 } && test -s conftest.$ac_objext; then
37448 ac_cv_member_struct_msghdr_msg_accrightslen=yes
37450 echo "$as_me: failed program was:" >&5
37451 sed 's/^/| /' conftest.$ac_ext >&5
37453 ac_cv_member_struct_msghdr_msg_accrightslen=no
37456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37461 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37462 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37463 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37465 cat >>confdefs.h <<_ACEOF
37466 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37472 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37473 { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37474 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37475 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37476 echo $ECHO_N "(cached) $ECHO_C" >&6
37478 cat >conftest.$ac_ext <<_ACEOF
37481 cat confdefs.h >>conftest.$ac_ext
37482 cat >>conftest.$ac_ext <<_ACEOF
37483 /* end confdefs.h. */
37484 $ac_includes_default
37485 #ifdef HAVE_SYS_SOCKET_H
37486 #include <sys/socket.h>
37492 static struct msghdr ac_aggr;
37493 if (ac_aggr.msg_control)
37499 rm -f conftest.$ac_objext
37500 if { (ac_try="$ac_compile"
37501 case "(($ac_try" in
37502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37503 *) ac_try_echo=$ac_try;;
37505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37506 (eval "$ac_compile") 2>conftest.er1
37508 grep -v '^ *+' conftest.er1 >conftest.err
37510 cat conftest.err >&5
37511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37512 (exit $ac_status); } && {
37513 test -z "$ac_c_werror_flag" ||
37514 test ! -s conftest.err
37515 } && test -s conftest.$ac_objext; then
37516 ac_cv_member_struct_msghdr_msg_control=yes
37518 echo "$as_me: failed program was:" >&5
37519 sed 's/^/| /' conftest.$ac_ext >&5
37521 cat >conftest.$ac_ext <<_ACEOF
37524 cat confdefs.h >>conftest.$ac_ext
37525 cat >>conftest.$ac_ext <<_ACEOF
37526 /* end confdefs.h. */
37527 $ac_includes_default
37528 #ifdef HAVE_SYS_SOCKET_H
37529 #include <sys/socket.h>
37535 static struct msghdr ac_aggr;
37536 if (sizeof ac_aggr.msg_control)
37542 rm -f conftest.$ac_objext
37543 if { (ac_try="$ac_compile"
37544 case "(($ac_try" in
37545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37546 *) ac_try_echo=$ac_try;;
37548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37549 (eval "$ac_compile") 2>conftest.er1
37551 grep -v '^ *+' conftest.er1 >conftest.err
37553 cat conftest.err >&5
37554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37555 (exit $ac_status); } && {
37556 test -z "$ac_c_werror_flag" ||
37557 test ! -s conftest.err
37558 } && test -s conftest.$ac_objext; then
37559 ac_cv_member_struct_msghdr_msg_control=yes
37561 echo "$as_me: failed program was:" >&5
37562 sed 's/^/| /' conftest.$ac_ext >&5
37564 ac_cv_member_struct_msghdr_msg_control=no
37567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37572 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37573 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37574 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37576 cat >>confdefs.h <<_ACEOF
37577 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
37584 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
37585 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
37586 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
37587 echo $ECHO_N "(cached) $ECHO_C" >&6
37589 cat >conftest.$ac_ext <<_ACEOF
37592 cat confdefs.h >>conftest.$ac_ext
37593 cat >>conftest.$ac_ext <<_ACEOF
37594 /* end confdefs.h. */
37595 $ac_includes_default
37599 static struct stat ac_aggr;
37600 if (ac_aggr.st_fstype)
37606 rm -f conftest.$ac_objext
37607 if { (ac_try="$ac_compile"
37608 case "(($ac_try" in
37609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37610 *) ac_try_echo=$ac_try;;
37612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37613 (eval "$ac_compile") 2>conftest.er1
37615 grep -v '^ *+' conftest.er1 >conftest.err
37617 cat conftest.err >&5
37618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619 (exit $ac_status); } && {
37620 test -z "$ac_c_werror_flag" ||
37621 test ! -s conftest.err
37622 } && test -s conftest.$ac_objext; then
37623 ac_cv_member_struct_stat_st_fstype=yes
37625 echo "$as_me: failed program was:" >&5
37626 sed 's/^/| /' conftest.$ac_ext >&5
37628 cat >conftest.$ac_ext <<_ACEOF
37631 cat confdefs.h >>conftest.$ac_ext
37632 cat >>conftest.$ac_ext <<_ACEOF
37633 /* end confdefs.h. */
37634 $ac_includes_default
37638 static struct stat ac_aggr;
37639 if (sizeof ac_aggr.st_fstype)
37645 rm -f conftest.$ac_objext
37646 if { (ac_try="$ac_compile"
37647 case "(($ac_try" in
37648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37649 *) ac_try_echo=$ac_try;;
37651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37652 (eval "$ac_compile") 2>conftest.er1
37654 grep -v '^ *+' conftest.er1 >conftest.err
37656 cat conftest.err >&5
37657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37658 (exit $ac_status); } && {
37659 test -z "$ac_c_werror_flag" ||
37660 test ! -s conftest.err
37661 } && test -s conftest.$ac_objext; then
37662 ac_cv_member_struct_stat_st_fstype=yes
37664 echo "$as_me: failed program was:" >&5
37665 sed 's/^/| /' conftest.$ac_ext >&5
37667 ac_cv_member_struct_stat_st_fstype=no
37670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37675 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
37676 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
37677 if test $ac_cv_member_struct_stat_st_fstype = yes; then
37679 cat >>confdefs.h <<_ACEOF
37680 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
37685 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
37686 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
37687 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
37688 echo $ECHO_N "(cached) $ECHO_C" >&6
37690 cat >conftest.$ac_ext <<_ACEOF
37693 cat confdefs.h >>conftest.$ac_ext
37694 cat >>conftest.$ac_ext <<_ACEOF
37695 /* end confdefs.h. */
37696 $ac_includes_default
37700 static struct stat ac_aggr;
37701 if (ac_aggr.st_vfstype)
37707 rm -f conftest.$ac_objext
37708 if { (ac_try="$ac_compile"
37709 case "(($ac_try" in
37710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37711 *) ac_try_echo=$ac_try;;
37713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37714 (eval "$ac_compile") 2>conftest.er1
37716 grep -v '^ *+' conftest.er1 >conftest.err
37718 cat conftest.err >&5
37719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37720 (exit $ac_status); } && {
37721 test -z "$ac_c_werror_flag" ||
37722 test ! -s conftest.err
37723 } && test -s conftest.$ac_objext; then
37724 ac_cv_member_struct_stat_st_vfstype=yes
37726 echo "$as_me: failed program was:" >&5
37727 sed 's/^/| /' conftest.$ac_ext >&5
37729 cat >conftest.$ac_ext <<_ACEOF
37732 cat confdefs.h >>conftest.$ac_ext
37733 cat >>conftest.$ac_ext <<_ACEOF
37734 /* end confdefs.h. */
37735 $ac_includes_default
37739 static struct stat ac_aggr;
37740 if (sizeof ac_aggr.st_vfstype)
37746 rm -f conftest.$ac_objext
37747 if { (ac_try="$ac_compile"
37748 case "(($ac_try" in
37749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37750 *) ac_try_echo=$ac_try;;
37752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37753 (eval "$ac_compile") 2>conftest.er1
37755 grep -v '^ *+' conftest.er1 >conftest.err
37757 cat conftest.err >&5
37758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37759 (exit $ac_status); } && {
37760 test -z "$ac_c_werror_flag" ||
37761 test ! -s conftest.err
37762 } && test -s conftest.$ac_objext; then
37763 ac_cv_member_struct_stat_st_vfstype=yes
37765 echo "$as_me: failed program was:" >&5
37766 sed 's/^/| /' conftest.$ac_ext >&5
37768 ac_cv_member_struct_stat_st_vfstype=no
37771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37776 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
37777 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
37778 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
37780 cat >>confdefs.h <<_ACEOF
37781 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
37787 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
37788 cat >conftest.$ac_ext <<_ACEOF
37789 struct stat st; char *ptr=st.st_fstype;
37791 rm -f conftest.$ac_objext
37792 if { (ac_try="$ac_compile"
37793 case "(($ac_try" in
37794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37795 *) ac_try_echo=$ac_try;;
37797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37798 (eval "$ac_compile") 2>conftest.er1
37800 grep -v '^ *+' conftest.er1 >conftest.err
37802 cat conftest.err >&5
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); } && {
37805 test -z "$ac_c_werror_flag" ||
37806 test ! -s conftest.err
37807 } && test -s conftest.$ac_objext; then
37809 cat >>confdefs.h <<\_ACEOF
37810 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
37814 echo "$as_me: failed program was:" >&5
37815 sed 's/^/| /' conftest.$ac_ext >&5
37818 cat >>confdefs.h <<\_ACEOF
37819 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
37824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37827 LIBSRCS="$LIBSRCS getpeereid.c"
37830 if test "$ac_cv_func_snprintf" != yes ||
37831 test "$ac_cv_func_vsnprintf" != yes; then
37832 if test "$ac_cv_func_snprintf" != yes; then
37834 cat >>confdefs.h <<\_ACEOF
37835 #define snprintf ber_pvt_snprintf
37839 if test "$ac_cv_func_vsnprintf" != yes; then
37841 cat >>confdefs.h <<\_ACEOF
37842 #define vsnprintf ber_pvt_vsnprintf
37849 if test "$ol_enable_slapi" != no ; then
37851 for ac_header in ltdl.h
37853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37858 echo $ECHO_N "(cached) $ECHO_C" >&6
37860 ac_res=`eval echo '${'$as_ac_Header'}'`
37861 { echo "$as_me:$LINENO: result: $ac_res" >&5
37862 echo "${ECHO_T}$ac_res" >&6; }
37864 # Is the header compilable?
37865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
37866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
37867 cat >conftest.$ac_ext <<_ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h. */
37873 $ac_includes_default
37874 #include <$ac_header>
37876 rm -f conftest.$ac_objext
37877 if { (ac_try="$ac_compile"
37878 case "(($ac_try" in
37879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37880 *) ac_try_echo=$ac_try;;
37882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37883 (eval "$ac_compile") 2>conftest.er1
37885 grep -v '^ *+' conftest.er1 >conftest.err
37887 cat conftest.err >&5
37888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37889 (exit $ac_status); } && {
37890 test -z "$ac_c_werror_flag" ||
37891 test ! -s conftest.err
37892 } && test -s conftest.$ac_objext; then
37893 ac_header_compiler=yes
37895 echo "$as_me: failed program was:" >&5
37896 sed 's/^/| /' conftest.$ac_ext >&5
37898 ac_header_compiler=no
37901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37903 echo "${ECHO_T}$ac_header_compiler" >&6; }
37905 # Is the header present?
37906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
37907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
37908 cat >conftest.$ac_ext <<_ACEOF
37911 cat confdefs.h >>conftest.$ac_ext
37912 cat >>conftest.$ac_ext <<_ACEOF
37913 /* end confdefs.h. */
37914 #include <$ac_header>
37916 if { (ac_try="$ac_cpp conftest.$ac_ext"
37917 case "(($ac_try" in
37918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37919 *) ac_try_echo=$ac_try;;
37921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37924 grep -v '^ *+' conftest.er1 >conftest.err
37926 cat conftest.err >&5
37927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37928 (exit $ac_status); } >/dev/null && {
37929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37930 test ! -s conftest.err
37932 ac_header_preproc=yes
37934 echo "$as_me: failed program was:" >&5
37935 sed 's/^/| /' conftest.$ac_ext >&5
37937 ac_header_preproc=no
37940 rm -f conftest.err conftest.$ac_ext
37941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37942 echo "${ECHO_T}$ac_header_preproc" >&6; }
37944 # So? What about this header?
37945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37951 ac_header_preproc=yes
37954 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37956 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37957 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37958 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37960 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37961 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37964 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37967 ## --------------------------------------------- ##
37968 ## Report this to <http://www.openldap.org/its/> ##
37969 ## --------------------------------------------- ##
37971 ) | sed "s/^/$as_me: WARNING: /" >&2
37974 { echo "$as_me:$LINENO: checking for $ac_header" >&5
37975 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
37976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
37977 echo $ECHO_N "(cached) $ECHO_C" >&6
37979 eval "$as_ac_Header=\$ac_header_preproc"
37981 ac_res=`eval echo '${'$as_ac_Header'}'`
37982 { echo "$as_me:$LINENO: result: $ac_res" >&5
37983 echo "${ECHO_T}$ac_res" >&6; }
37986 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37987 cat >>confdefs.h <<_ACEOF
37988 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37996 if test $ac_cv_header_ltdl_h != yes ; then
37997 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
37998 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
37999 { (exit 1); exit 1; }; }
38001 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38002 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38003 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38004 echo $ECHO_N "(cached) $ECHO_C" >&6
38006 ac_check_lib_save_LIBS=$LIBS
38007 LIBS="-lltdl $LIBS"
38008 cat >conftest.$ac_ext <<_ACEOF
38011 cat confdefs.h >>conftest.$ac_ext
38012 cat >>conftest.$ac_ext <<_ACEOF
38013 /* end confdefs.h. */
38015 /* Override any GCC internal prototype to avoid an error.
38016 Use char because int might match the return type of a GCC
38017 builtin and then its argument prototype would still apply. */
38025 return lt_dlinit ();
38030 rm -f conftest.$ac_objext conftest$ac_exeext
38031 if { (ac_try="$ac_link"
38032 case "(($ac_try" in
38033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38034 *) ac_try_echo=$ac_try;;
38036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38037 (eval "$ac_link") 2>conftest.er1
38039 grep -v '^ *+' conftest.er1 >conftest.err
38041 cat conftest.err >&5
38042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38043 (exit $ac_status); } && {
38044 test -z "$ac_c_werror_flag" ||
38045 test ! -s conftest.err
38046 } && test -s conftest$ac_exeext &&
38047 $as_test_x conftest$ac_exeext; then
38048 ac_cv_lib_ltdl_lt_dlinit=yes
38050 echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38053 ac_cv_lib_ltdl_lt_dlinit=no
38056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38057 conftest$ac_exeext conftest.$ac_ext
38058 LIBS=$ac_check_lib_save_LIBS
38060 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38061 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38062 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38065 LIBSLAPI=libslapi.a
38066 LIBSLAPITOOLS=../libslapi.a
38068 cat >>confdefs.h <<\_ACEOF
38069 #define HAVE_LIBLTDL 1
38074 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38075 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38076 { (exit 1); exit 1; }; }
38081 cat >>confdefs.h <<\_ACEOF
38082 #define LDAP_SLAPI 1
38087 if test "$ol_enable_debug" != no ; then
38088 if test "$ol_enable_debug" = traditional; then
38090 cat >>confdefs.h <<\_ACEOF
38091 #define OLD_DEBUG 1
38096 cat >>confdefs.h <<\_ACEOF
38097 #define LDAP_DEBUG 1
38101 if test "$ol_enable_syslog" = yes ; then
38103 cat >>confdefs.h <<\_ACEOF
38104 #define LDAP_SYSLOG 1
38108 if test "$ol_enable_proctitle" != no ; then
38110 cat >>confdefs.h <<\_ACEOF
38111 #define LDAP_PROCTITLE 1
38115 if test "$ol_enable_referrals" != no ; then
38117 cat >>confdefs.h <<\_ACEOF
38118 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38122 if test "$ol_enable_local" != no; then
38124 cat >>confdefs.h <<\_ACEOF
38125 #define LDAP_PF_LOCAL 1
38129 if test "$ol_link_ipv6" != no; then
38131 cat >>confdefs.h <<\_ACEOF
38132 #define LDAP_PF_INET6 1
38136 if test "$ol_enable_cleartext" != no ; then
38138 cat >>confdefs.h <<\_ACEOF
38139 #define SLAPD_CLEARTEXT 1
38143 if test "$ol_enable_crypt" != no ; then
38145 cat >>confdefs.h <<\_ACEOF
38146 #define SLAPD_CRYPT 1
38150 if test "$ol_link_spasswd" != no ; then
38152 cat >>confdefs.h <<\_ACEOF
38153 #define SLAPD_SPASSWD 1
38157 if test "$ol_enable_rlookups" != no ; then
38159 cat >>confdefs.h <<\_ACEOF
38160 #define SLAPD_RLOOKUPS 1
38164 if test "$ol_enable_aci" != no ; then
38165 if test $ol_enable_dynacl = no ; then
38166 ol_enable_dynacl=yes
38167 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38168 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38170 if test "$ol_enable_aci" = mod ; then
38171 MFLAG=SLAPD_MOD_DYNAMIC
38172 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38173 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38174 { (exit 1); exit 1; }; }
38176 MFLAG=SLAPD_MOD_STATIC
38178 WITH_ACI_ENABLED=$ol_enable_aci
38180 cat >>confdefs.h <<_ACEOF
38181 #define SLAPD_ACI_ENABLED $MFLAG
38185 WITH_ACI_ENABLED=no
38187 if test "$ol_enable_dynacl" != no ; then
38189 cat >>confdefs.h <<\_ACEOF
38190 #define SLAP_DYNACL 1
38195 if test "$ol_link_modules" != no ; then
38197 cat >>confdefs.h <<\_ACEOF
38198 #define SLAPD_MODULES 1
38202 SLAPD_MODULES_LDFLAGS="-dlopen self"
38206 cat >>confdefs.h <<\_ACEOF
38207 #define SLAPD_MOD_STATIC 1
38211 cat >>confdefs.h <<\_ACEOF
38212 #define SLAPD_MOD_DYNAMIC 2
38216 if test "$ol_enable_monitor" != no ; then
38218 BUILD_MONITOR=$ol_enable_monitor
38219 if test "$ol_enable_monitor" = mod ; then
38220 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38221 MFLAG=SLAPD_MOD_DYNAMIC
38223 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38224 MFLAG=SLAPD_MOD_STATIC
38227 cat >>confdefs.h <<_ACEOF
38228 #define SLAPD_MONITOR $MFLAG
38233 if test "$ol_enable_bdb" != no ; then
38235 BUILD_BDB=$ol_enable_bdb
38236 if test "$ol_enable_bdb" = mod ; then
38237 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38238 MFLAG=SLAPD_MOD_DYNAMIC
38240 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38241 MFLAG=SLAPD_MOD_STATIC
38244 cat >>confdefs.h <<_ACEOF
38245 #define SLAPD_BDB $MFLAG
38250 if test "$ol_enable_dnssrv" != no ; then
38252 BUILD_DNSSRV=$ol_enable_dnssrv
38253 if test "$ol_enable_dnssrv" = mod ; then
38254 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38255 MFLAG=SLAPD_MOD_DYNAMIC
38257 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38258 MFLAG=SLAPD_MOD_STATIC
38261 cat >>confdefs.h <<_ACEOF
38262 #define SLAPD_DNSSRV $MFLAG
38267 if test "$ol_enable_hdb" != no ; then
38269 BUILD_HDB=$ol_enable_hdb
38270 if test "$ol_enable_hdb" = mod ; then
38271 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38272 MFLAG=SLAPD_MOD_DYNAMIC
38274 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38275 MFLAG=SLAPD_MOD_STATIC
38278 cat >>confdefs.h <<_ACEOF
38279 #define SLAPD_HDB $MFLAG
38284 if test "$ol_enable_ldap" != no ; then
38286 BUILD_LDAP=$ol_enable_ldap
38287 if test "$ol_enable_ldap" = mod ; then
38288 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38289 MFLAG=SLAPD_MOD_DYNAMIC
38291 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38292 MFLAG=SLAPD_MOD_STATIC
38295 cat >>confdefs.h <<_ACEOF
38296 #define SLAPD_LDAP $MFLAG
38301 if test "$ol_enable_meta" != no ; then
38303 BUILD_META=$ol_enable_meta
38305 if test "$ol_enable_meta" = mod ; then
38306 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38307 MFLAG=SLAPD_MOD_DYNAMIC
38309 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38310 MFLAG=SLAPD_MOD_STATIC
38313 cat >>confdefs.h <<_ACEOF
38314 #define SLAPD_META $MFLAG
38319 if test "$ol_enable_ndb" != no ; then
38321 BUILD_NDB=$ol_enable_ndb
38322 if test "$ol_enable_ndb" = mod ; then
38323 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38324 MFLAG=SLAPD_MOD_DYNAMIC
38326 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38327 MFLAG=SLAPD_MOD_STATIC
38330 cat >>confdefs.h <<_ACEOF
38331 #define SLAPD_NDB $MFLAG
38336 if test "$ol_enable_null" != no ; then
38338 BUILD_NULL=$ol_enable_null
38339 if test "$ol_enable_null" = mod ; then
38340 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38341 MFLAG=SLAPD_MOD_DYNAMIC
38343 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38344 MFLAG=SLAPD_MOD_STATIC
38347 cat >>confdefs.h <<_ACEOF
38348 #define SLAPD_NULL $MFLAG
38353 if test "$ol_enable_passwd" != no ; then
38355 BUILD_PASSWD=$ol_enable_passwd
38356 if test "$ol_enable_passwd" = mod ; then
38357 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38358 MFLAG=SLAPD_MOD_DYNAMIC
38360 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38361 MFLAG=SLAPD_MOD_STATIC
38364 cat >>confdefs.h <<_ACEOF
38365 #define SLAPD_PASSWD $MFLAG
38370 if test "$ol_link_perl" != no ; then
38372 BUILD_PERL=$ol_enable_perl
38373 if test "$ol_enable_perl" = mod ; then
38374 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38375 MFLAG=SLAPD_MOD_DYNAMIC
38377 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38378 MFLAG=SLAPD_MOD_STATIC
38381 cat >>confdefs.h <<_ACEOF
38382 #define SLAPD_PERL $MFLAG
38387 if test "$ol_enable_relay" != no ; then
38389 BUILD_RELAY=$ol_enable_relay
38390 if test "$ol_enable_relay" = mod ; then
38391 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38392 MFLAG=SLAPD_MOD_DYNAMIC
38394 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38395 MFLAG=SLAPD_MOD_STATIC
38398 cat >>confdefs.h <<_ACEOF
38399 #define SLAPD_RELAY $MFLAG
38404 if test "$ol_enable_shell" != no ; then
38405 if test "$ol_link_threads" != no ; then
38406 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38407 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38410 BUILD_SHELL=$ol_enable_shell
38411 if test "$ol_enable_shell" = mod ; then
38412 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38413 MFLAG=SLAPD_MOD_DYNAMIC
38415 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38416 MFLAG=SLAPD_MOD_STATIC
38419 cat >>confdefs.h <<_ACEOF
38420 #define SLAPD_SHELL $MFLAG
38425 if test "$ol_enable_sock" != no ; then
38427 BUILD_SOCK=$ol_enable_sock
38428 if test "$ol_enable_sock" = mod ; then
38429 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38430 MFLAG=SLAPD_MOD_DYNAMIC
38432 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38433 MFLAG=SLAPD_MOD_STATIC
38436 cat >>confdefs.h <<_ACEOF
38437 #define SLAPD_SOCK $MFLAG
38442 if test "$ol_link_sql" != no ; then
38444 BUILD_SQL=$ol_enable_sql
38445 if test "$ol_enable_sql" = mod; then
38446 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38447 MFLAG=SLAPD_MOD_DYNAMIC
38449 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38450 MFLAG=SLAPD_MOD_STATIC
38453 cat >>confdefs.h <<_ACEOF
38454 #define SLAPD_SQL $MFLAG
38459 if test "$ol_enable_accesslog" != no ; then
38460 BUILD_ACCESSLOG=$ol_enable_accesslog
38461 if test "$ol_enable_accesslog" = mod ; then
38462 MFLAG=SLAPD_MOD_DYNAMIC
38463 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38465 MFLAG=SLAPD_MOD_STATIC
38466 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38469 cat >>confdefs.h <<_ACEOF
38470 #define SLAPD_OVER_ACCESSLOG $MFLAG
38475 if test "$ol_enable_auditlog" != no ; then
38476 BUILD_AUDITLOG=$ol_enable_auditlog
38477 if test "$ol_enable_auditlog" = mod ; then
38478 MFLAG=SLAPD_MOD_DYNAMIC
38479 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38481 MFLAG=SLAPD_MOD_STATIC
38482 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38485 cat >>confdefs.h <<_ACEOF
38486 #define SLAPD_OVER_AUDITLOG $MFLAG
38491 if test "$ol_enable_collect" != no ; then
38492 BUILD_COLLECT=$ol_enable_collect
38493 if test "$ol_enable_collect" = mod ; then
38494 MFLAG=SLAPD_MOD_DYNAMIC
38495 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38497 MFLAG=SLAPD_MOD_STATIC
38498 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38501 cat >>confdefs.h <<_ACEOF
38502 #define SLAPD_OVER_COLLECT $MFLAG
38507 if test "$ol_enable_constraint" != no ; then
38508 BUILD_CONSTRAINT=$ol_enable_constraint
38509 if test "$ol_enable_constraint" = mod ; then
38510 MFLAG=SLAPD_MOD_DYNAMIC
38511 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38513 MFLAG=SLAPD_MOD_STATIC
38514 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38517 cat >>confdefs.h <<_ACEOF
38518 #define SLAPD_OVER_CONSTRAINT $MFLAG
38523 if test "$ol_enable_dds" != no ; then
38524 BUILD_DDS=$ol_enable_dds
38525 if test "$ol_enable_dds" = mod ; then
38526 MFLAG=SLAPD_MOD_DYNAMIC
38527 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38529 MFLAG=SLAPD_MOD_STATIC
38530 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38533 cat >>confdefs.h <<_ACEOF
38534 #define SLAPD_OVER_DDS $MFLAG
38539 if test "$ol_enable_deref" != no ; then
38540 BUILD_DDS=$ol_enable_deref
38541 if test "$ol_enable_deref" = mod ; then
38542 MFLAG=SLAPD_MOD_DYNAMIC
38543 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38545 MFLAG=SLAPD_MOD_STATIC
38546 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38549 cat >>confdefs.h <<_ACEOF
38550 #define SLAPD_OVER_DEREF $MFLAG
38555 if test "$ol_enable_dyngroup" != no ; then
38556 BUILD_DYNGROUP=$ol_enable_dyngroup
38557 if test "$ol_enable_dyngroup" = mod ; then
38558 MFLAG=SLAPD_MOD_DYNAMIC
38559 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38561 MFLAG=SLAPD_MOD_STATIC
38562 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38565 cat >>confdefs.h <<_ACEOF
38566 #define SLAPD_OVER_DYNGROUP $MFLAG
38571 if test "$ol_enable_dynlist" != no ; then
38572 BUILD_DYNLIST=$ol_enable_dynlist
38573 if test "$ol_enable_dynlist" = mod ; then
38574 MFLAG=SLAPD_MOD_DYNAMIC
38575 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38577 MFLAG=SLAPD_MOD_STATIC
38578 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
38581 cat >>confdefs.h <<_ACEOF
38582 #define SLAPD_OVER_DYNLIST $MFLAG
38587 if test "$ol_enable_memberof" != no ; then
38588 BUILD_MEMBEROF=$ol_enable_memberof
38589 if test "$ol_enable_memberof" = mod ; then
38590 MFLAG=SLAPD_MOD_DYNAMIC
38591 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
38593 MFLAG=SLAPD_MOD_STATIC
38594 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
38597 cat >>confdefs.h <<_ACEOF
38598 #define SLAPD_OVER_MEMBEROF $MFLAG
38603 if test "$ol_enable_ppolicy" != no ; then
38604 BUILD_PPOLICY=$ol_enable_ppolicy
38605 if test "$ol_enable_ppolicy" = mod ; then
38606 MFLAG=SLAPD_MOD_DYNAMIC
38607 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
38609 MFLAG=SLAPD_MOD_STATIC
38610 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
38613 cat >>confdefs.h <<_ACEOF
38614 #define SLAPD_OVER_PPOLICY $MFLAG
38619 if test "$ol_enable_proxycache" != no ; then
38620 BUILD_PROXYCACHE=$ol_enable_proxycache
38621 if test "$ol_enable_proxycache" = mod ; then
38622 MFLAG=SLAPD_MOD_DYNAMIC
38623 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
38625 MFLAG=SLAPD_MOD_STATIC
38626 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
38629 cat >>confdefs.h <<_ACEOF
38630 #define SLAPD_OVER_PROXYCACHE $MFLAG
38635 if test "$ol_enable_refint" != no ; then
38636 BUILD_REFINT=$ol_enable_refint
38637 if test "$ol_enable_refint" = mod ; then
38638 MFLAG=SLAPD_MOD_DYNAMIC
38639 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
38641 MFLAG=SLAPD_MOD_STATIC
38642 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
38645 cat >>confdefs.h <<_ACEOF
38646 #define SLAPD_OVER_REFINT $MFLAG
38651 if test "$ol_enable_retcode" != no ; then
38652 BUILD_RETCODE=$ol_enable_retcode
38653 if test "$ol_enable_retcode" = mod ; then
38654 MFLAG=SLAPD_MOD_DYNAMIC
38655 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
38657 MFLAG=SLAPD_MOD_STATIC
38658 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
38661 cat >>confdefs.h <<_ACEOF
38662 #define SLAPD_OVER_RETCODE $MFLAG
38667 if test "$ol_enable_rwm" != no ; then
38669 BUILD_RWM=$ol_enable_rwm
38670 if test "$ol_enable_rwm" = mod ; then
38671 MFLAG=SLAPD_MOD_DYNAMIC
38672 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
38674 MFLAG=SLAPD_MOD_STATIC
38675 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
38678 cat >>confdefs.h <<_ACEOF
38679 #define SLAPD_OVER_RWM $MFLAG
38684 if test "$ol_enable_seqmod" != no ; then
38685 BUILD_SEQMOD=$ol_enable_seqmod
38686 if test "$ol_enable_seqmod" = mod ; then
38687 MFLAG=SLAPD_MOD_DYNAMIC
38688 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
38690 MFLAG=SLAPD_MOD_STATIC
38691 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
38694 cat >>confdefs.h <<_ACEOF
38695 #define SLAPD_OVER_SEQMOD $MFLAG
38700 if test "$ol_enable_syncprov" != no ; then
38701 BUILD_SYNCPROV=$ol_enable_syncprov
38702 if test "$ol_enable_syncprov" = mod ; then
38703 MFLAG=SLAPD_MOD_DYNAMIC
38704 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
38706 MFLAG=SLAPD_MOD_STATIC
38707 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
38710 cat >>confdefs.h <<_ACEOF
38711 #define SLAPD_OVER_SYNCPROV $MFLAG
38716 if test "$ol_enable_translucent" != no ; then
38717 BUILD_TRANSLUCENT=$ol_enable_translucent
38718 if test "$ol_enable_translucent" = mod ; then
38719 MFLAG=SLAPD_MOD_DYNAMIC
38720 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
38722 MFLAG=SLAPD_MOD_STATIC
38723 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
38726 cat >>confdefs.h <<_ACEOF
38727 #define SLAPD_OVER_TRANSLUCENT $MFLAG
38732 if test "$ol_enable_unique" != no ; then
38733 BUILD_UNIQUE=$ol_enable_unique
38734 if test "$ol_enable_unique" = mod ; then
38735 MFLAG=SLAPD_MOD_DYNAMIC
38736 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
38738 MFLAG=SLAPD_MOD_STATIC
38739 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
38742 cat >>confdefs.h <<_ACEOF
38743 #define SLAPD_OVER_UNIQUE $MFLAG
38748 if test "$ol_enable_valsort" != no ; then
38749 BUILD_VALSORT=$ol_enable_valsort
38750 if test "$ol_enable_valsort" = mod ; then
38751 MFLAG=SLAPD_MOD_DYNAMIC
38752 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
38754 MFLAG=SLAPD_MOD_STATIC
38755 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
38758 cat >>confdefs.h <<_ACEOF
38759 #define SLAPD_OVER_VALSORT $MFLAG
38764 if test "$ol_enable_rewrite" != no ; then
38766 cat >>confdefs.h <<\_ACEOF
38767 #define ENABLE_REWRITE 1
38773 if test "$ol_enable_slapi" != no ; then
38775 cat >>confdefs.h <<\_ACEOF
38776 #define ENABLE_SLAPI 1
38780 SLAPD_SLAPI_DEPEND=libslapi.a
38785 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
38787 SLAPD_MODULES_LDFLAGS=
38880 # Check whether --with-xxinstall was given.
38881 if test "${with_xxinstall+set}" = set; then
38882 withval=$with_xxinstall;
38887 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"
38890 ac_config_commands="$ac_config_commands default"
38894 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38895 # Let make expand exec_prefix.
38896 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38898 DEFS=-DHAVE_CONFIG_H
38902 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38903 # 1. Remove the extension, and $U if already installed.
38904 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38905 ac_i=`echo "$ac_i" | sed "$ac_script"`
38906 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
38907 # will be set to the directory where LIBOBJS objects are built.
38908 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38909 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38911 LIBOBJS=$ac_libobjs
38913 LTLIBOBJS=$ac_ltlibobjs
38916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38917 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38918 Usually this means the macro was only invoked conditionally." >&5
38919 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38920 Usually this means the macro was only invoked conditionally." >&2;}
38921 { (exit 1); exit 1; }; }
38923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38924 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38925 Usually this means the macro was only invoked conditionally." >&5
38926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38927 Usually this means the macro was only invoked conditionally." >&2;}
38928 { (exit 1); exit 1; }; }
38930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38931 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38932 Usually this means the macro was only invoked conditionally." >&5
38933 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38934 Usually this means the macro was only invoked conditionally." >&2;}
38935 { (exit 1); exit 1; }; }
38938 : ${CONFIG_STATUS=./config.status}
38939 ac_clean_files_save=$ac_clean_files
38940 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38941 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38942 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38943 cat >$CONFIG_STATUS <<_ACEOF
38945 # Generated by $as_me.
38946 # Run this file to recreate the current configuration.
38947 # Compiler output produced by configure, useful for debugging
38948 # configure, is in config.log if it exists.
38951 ac_cs_recheck=false
38953 SHELL=\${CONFIG_SHELL-$SHELL}
38956 cat >>$CONFIG_STATUS <<\_ACEOF
38957 ## --------------------- ##
38958 ## M4sh Initialization. ##
38959 ## --------------------- ##
38961 # Be more Bourne compatible
38962 DUALCASE=1; export DUALCASE # for MKS sh
38963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38966 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38967 # is contrary to our usage. Disable this feature.
38968 alias -g '${1+"$@"}'='"$@"'
38969 setopt NO_GLOB_SUBST
38971 case `(set -o) 2>/dev/null` in
38972 *posix*) set -o posix ;;
38981 # Avoid depending upon Character Ranges.
38982 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38983 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38984 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38985 as_cr_digits='0123456789'
38986 as_cr_alnum=$as_cr_Letters$as_cr_digits
38988 # The user is always right.
38989 if test "${PATH_SEPARATOR+set}" != set; then
38990 echo "#! /bin/sh" >conf$$.sh
38991 echo "exit 0" >>conf$$.sh
38993 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39001 # Support unset when possible.
39002 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39010 # We need space, tab and new line, in precisely that order. Quoting is
39011 # there to prevent editors from complaining about space-tab.
39012 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39013 # splitting by setting IFS to empty value.)
39018 # Find who we are. Look in the path if we contain no directory separator.
39020 *[\\/]* ) as_myself=$0 ;;
39021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39022 for as_dir in $PATH
39025 test -z "$as_dir" && as_dir=.
39026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39032 # We did not find ourselves, most probably we were run as `sh COMMAND'
39033 # in which case we are not to be found in the path.
39034 if test "x$as_myself" = x; then
39037 if test ! -f "$as_myself"; then
39038 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39039 { (exit 1); exit 1; }
39042 # Work around bugs in pre-3.0 UWIN ksh.
39043 for as_var in ENV MAIL MAILPATH
39044 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39052 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39053 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39054 LC_TELEPHONE LC_TIME
39056 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39057 eval $as_var=C; export $as_var
39059 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39063 # Required to use basename.
39064 if expr a : '\(a\)' >/dev/null 2>&1 &&
39065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39071 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39072 as_basename=basename
39078 # Name of the executable.
39079 as_me=`$as_basename -- "$0" ||
39080 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39081 X"$0" : 'X\(//\)$' \| \
39082 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39084 sed '/^.*\/\([^/][^/]*\)\/*$/{
39103 as_lineno_1=$LINENO
39104 as_lineno_2=$LINENO
39105 test "x$as_lineno_1" != "x$as_lineno_2" &&
39106 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39108 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39109 # uniformly replaced by the line number. The first 'sed' inserts a
39110 # line-number line after each line using $LINENO; the second 'sed'
39111 # does the real work. The second script uses 'N' to pair each
39112 # line-number line with the line containing $LINENO, and appends
39113 # trailing '-' during substitution so that $LINENO is not a special
39114 # case at line end.
39115 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39116 # scripts with optimization help from Paolo Bonzini. Blame Lee
39117 # E. McMahon (1931-1989) for sed's syntax. :-)
39129 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39132 ' >$as_me.lineno &&
39133 chmod +x "$as_me.lineno" ||
39134 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39135 { (exit 1); exit 1; }; }
39137 # Don't try to exec as it changes $[0], causing all sort of problems
39138 # (the dirname of $[0] is not the place where we might find the
39139 # original and so on. Autoconf is especially sensitive to this).
39140 . "./$as_me.lineno"
39141 # Exit status is that of the last command.
39146 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39152 ECHO_C= ECHO_N= ECHO_T=
39153 case `echo -n x` in
39155 case `echo 'x\c'` in
39156 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39163 if expr a : '\(a\)' >/dev/null 2>&1 &&
39164 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39170 rm -f conf$$ conf$$.exe conf$$.file
39171 if test -d conf$$.dir; then
39172 rm -f conf$$.dir/conf$$.file
39178 if ln -s conf$$.file conf$$ 2>/dev/null; then
39180 # ... but there are two gotchas:
39181 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39182 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39183 # In both cases, we have to default to `cp -p'.
39184 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39186 elif ln conf$$.file conf$$ 2>/dev/null; then
39191 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39192 rmdir conf$$.dir 2>/dev/null
39194 if mkdir -p . 2>/dev/null; then
39197 test -d ./-p && rmdir ./-p
39201 if test -x / >/dev/null 2>&1; then
39202 as_test_x='test -x'
39204 if ls -dL / >/dev/null 2>&1; then
39211 if test -d "$1"; then
39217 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39218 ???[sx]*):;;*)false;;esac;fi
39222 as_executable_p=$as_test_x
39224 # Sed expression to map a string onto a valid CPP name.
39225 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39227 # Sed expression to map a string onto a valid variable name.
39228 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39233 # Save the log message, to keep $[0] and so on meaningful, and to
39234 # report actual input values of CONFIG_FILES etc. instead of their
39235 # values after options handling.
39237 This file was extended by $as_me, which was
39238 generated by GNU Autoconf 2.61. Invocation command line was
39240 CONFIG_FILES = $CONFIG_FILES
39241 CONFIG_HEADERS = $CONFIG_HEADERS
39242 CONFIG_LINKS = $CONFIG_LINKS
39243 CONFIG_COMMANDS = $CONFIG_COMMANDS
39246 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39251 cat >>$CONFIG_STATUS <<_ACEOF
39252 # Files that config.status was made for.
39253 config_files="$ac_config_files"
39254 config_headers="$ac_config_headers"
39255 config_commands="$ac_config_commands"
39259 cat >>$CONFIG_STATUS <<\_ACEOF
39261 \`$as_me' instantiates files from templates according to the
39262 current configuration.
39264 Usage: $0 [OPTIONS] [FILE]...
39266 -h, --help print this help, then exit
39267 -V, --version print version number and configuration settings, then exit
39268 -q, --quiet do not print progress messages
39269 -d, --debug don't remove temporary files
39270 --recheck update $as_me by reconfiguring in the same conditions
39271 --file=FILE[:TEMPLATE]
39272 instantiate the configuration file FILE
39273 --header=FILE[:TEMPLATE]
39274 instantiate the configuration header FILE
39276 Configuration files:
39279 Configuration headers:
39282 Configuration commands:
39285 Report bugs to <bug-autoconf@gnu.org>."
39288 cat >>$CONFIG_STATUS <<_ACEOF
39291 configured by $0, generated by GNU Autoconf 2.61,
39292 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39294 Copyright (C) 2006 Free Software Foundation, Inc.
39295 This config.status script is free software; the Free Software Foundation
39296 gives unlimited permission to copy, distribute and modify it."
39303 cat >>$CONFIG_STATUS <<\_ACEOF
39304 # If no file are specified by the user, then we need to provide default
39305 # value. By we need to know if files were specified by the user.
39311 ac_option=`expr "X$1" : 'X\([^=]*\)='`
39312 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39323 # Handling of the options.
39324 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39326 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39327 echo "$ac_cs_version"; exit ;;
39328 --debug | --debu | --deb | --de | --d | -d )
39330 --file | --fil | --fi | --f )
39332 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39333 ac_need_defaults=false;;
39334 --header | --heade | --head | --hea )
39336 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39337 ac_need_defaults=false;;
39339 # Conflict between --help and --header
39340 { echo "$as_me: error: ambiguous option: $1
39341 Try \`$0 --help' for more information." >&2
39342 { (exit 1); exit 1; }; };;
39343 --help | --hel | -h )
39344 echo "$ac_cs_usage"; exit ;;
39345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39349 # This is an error.
39350 -*) { echo "$as_me: error: unrecognized option: $1
39351 Try \`$0 --help' for more information." >&2
39352 { (exit 1); exit 1; }; } ;;
39354 *) ac_config_targets="$ac_config_targets $1"
39355 ac_need_defaults=false ;;
39361 ac_configure_extra_args=
39363 if $ac_cs_silent; then
39365 ac_configure_extra_args="$ac_configure_extra_args --silent"
39369 cat >>$CONFIG_STATUS <<_ACEOF
39370 if \$ac_cs_recheck; then
39371 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39372 CONFIG_SHELL=$SHELL
39373 export CONFIG_SHELL
39374 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39378 cat >>$CONFIG_STATUS <<\_ACEOF
39382 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39383 ## Running $as_me. ##
39389 cat >>$CONFIG_STATUS <<_ACEOF
39393 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39395 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39396 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39401 cat >>$CONFIG_STATUS <<\_ACEOF
39403 # Handling of arguments.
39404 for ac_config_target in $ac_config_targets
39406 case $ac_config_target in
39407 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39408 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39409 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39410 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39411 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39412 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39413 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39414 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39415 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39416 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39417 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39418 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39419 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39420 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39421 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39422 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39423 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39424 "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" ;;
39425 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39426 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39427 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39428 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39429 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39430 "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" ;;
39431 "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" ;;
39432 "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" ;;
39433 "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" ;;
39434 "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" ;;
39435 "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" ;;
39436 "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" ;;
39437 "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" ;;
39438 "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" ;;
39439 "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" ;;
39440 "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" ;;
39441 "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" ;;
39442 "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" ;;
39443 "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" ;;
39444 "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" ;;
39445 "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" ;;
39446 "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" ;;
39447 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39448 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39449 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39450 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39451 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39453 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39454 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39455 { (exit 1); exit 1; }; };;
39460 # If the user did not use the arguments to specify the items to instantiate,
39461 # then the envvar interface is used. Set only those that are not.
39462 # We use the long form for the default assignment because of an extremely
39463 # bizarre bug on SunOS 4.1.3.
39464 if $ac_need_defaults; then
39465 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39466 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39467 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39470 # Have a temporary directory for convenience. Make it in the build tree
39471 # simply because there is no reason against having it here, and in addition,
39472 # creating and moving files from /tmp can sometimes cause problems.
39473 # Hook for its removal unless debugging.
39474 # Note that there is a small window in which the directory will not be cleaned:
39475 # after its creation but before its name has been assigned to `$tmp'.
39479 trap 'exit_status=$?
39480 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39482 trap '{ (exit 1); exit 1; }' 1 2 13 15
39484 # Create a (secure) tmp directory for tmp files.
39487 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39488 test -n "$tmp" && test -d "$tmp"
39491 tmp=./conf$$-$RANDOM
39492 (umask 077 && mkdir "$tmp")
39495 echo "$me: cannot create a temporary directory in ." >&2
39496 { (exit 1); exit 1; }
39500 # Set up the sed scripts for CONFIG_FILES section.
39503 # No need to generate the scripts if there are no CONFIG_FILES.
39504 # This happens for instance when ./config.status config.h
39505 if test -n "$CONFIG_FILES"; then
39512 for ac_last_try in false false false false false :; do
39513 cat >conf$$subs.sed <<_ACEOF
39514 SHELL!$SHELL$ac_delim
39515 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39516 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39517 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39518 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39519 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39520 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39521 exec_prefix!$exec_prefix$ac_delim
39522 prefix!$prefix$ac_delim
39523 program_transform_name!$program_transform_name$ac_delim
39524 bindir!$bindir$ac_delim
39525 sbindir!$sbindir$ac_delim
39526 libexecdir!$libexecdir$ac_delim
39527 datarootdir!$datarootdir$ac_delim
39528 datadir!$datadir$ac_delim
39529 sysconfdir!$sysconfdir$ac_delim
39530 sharedstatedir!$sharedstatedir$ac_delim
39531 localstatedir!$localstatedir$ac_delim
39532 includedir!$includedir$ac_delim
39533 oldincludedir!$oldincludedir$ac_delim
39534 docdir!$docdir$ac_delim
39535 infodir!$infodir$ac_delim
39536 htmldir!$htmldir$ac_delim
39537 dvidir!$dvidir$ac_delim
39538 pdfdir!$pdfdir$ac_delim
39539 psdir!$psdir$ac_delim
39540 libdir!$libdir$ac_delim
39541 localedir!$localedir$ac_delim
39542 mandir!$mandir$ac_delim
39543 DEFS!$DEFS$ac_delim
39544 ECHO_C!$ECHO_C$ac_delim
39545 ECHO_N!$ECHO_N$ac_delim
39546 ECHO_T!$ECHO_T$ac_delim
39547 LIBS!$LIBS$ac_delim
39548 build_alias!$build_alias$ac_delim
39549 host_alias!$host_alias$ac_delim
39550 target_alias!$target_alias$ac_delim
39551 build!$build$ac_delim
39552 build_cpu!$build_cpu$ac_delim
39553 build_vendor!$build_vendor$ac_delim
39554 build_os!$build_os$ac_delim
39555 host!$host$ac_delim
39556 host_cpu!$host_cpu$ac_delim
39557 host_vendor!$host_vendor$ac_delim
39558 host_os!$host_os$ac_delim
39559 target!$target$ac_delim
39560 target_cpu!$target_cpu$ac_delim
39561 target_vendor!$target_vendor$ac_delim
39562 target_os!$target_os$ac_delim
39563 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39564 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39565 INSTALL_DATA!$INSTALL_DATA$ac_delim
39566 CYGPATH_W!$CYGPATH_W$ac_delim
39567 PACKAGE!$PACKAGE$ac_delim
39568 VERSION!$VERSION$ac_delim
39569 ACLOCAL!$ACLOCAL$ac_delim
39570 AUTOCONF!$AUTOCONF$ac_delim
39571 AUTOMAKE!$AUTOMAKE$ac_delim
39572 AUTOHEADER!$AUTOHEADER$ac_delim
39573 MAKEINFO!$MAKEINFO$ac_delim
39574 install_sh!$install_sh$ac_delim
39575 STRIP!$STRIP$ac_delim
39576 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39577 mkdir_p!$mkdir_p$ac_delim
39579 SET_MAKE!$SET_MAKE$ac_delim
39580 am__leading_dot!$am__leading_dot$ac_delim
39581 AMTAR!$AMTAR$ac_delim
39582 am__tar!$am__tar$ac_delim
39583 am__untar!$am__untar$ac_delim
39584 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39585 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39586 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39587 top_builddir!$top_builddir$ac_delim
39588 ldap_subdir!$ldap_subdir$ac_delim
39591 CFLAGS!$CFLAGS$ac_delim
39592 LDFLAGS!$LDFLAGS$ac_delim
39593 CPPFLAGS!$CPPFLAGS$ac_delim
39594 ac_ct_CC!$ac_ct_CC$ac_delim
39595 EXEEXT!$EXEEXT$ac_delim
39596 OBJEXT!$OBJEXT$ac_delim
39597 DEPDIR!$DEPDIR$ac_delim
39598 am__include!$am__include$ac_delim
39599 am__quote!$am__quote$ac_delim
39600 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39601 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39602 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39603 CCDEPMODE!$CCDEPMODE$ac_delim
39604 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39605 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39606 GREP!$GREP$ac_delim
39607 EGREP!$EGREP$ac_delim
39608 LN_S!$LN_S$ac_delim
39609 ECHO!$ECHO$ac_delim
39610 RANLIB!$RANLIB$ac_delim
39613 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39615 elif $ac_last_try; then
39616 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39617 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39618 { (exit 1); exit 1; }; }
39620 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39624 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39625 if test -n "$ac_eof"; then
39626 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39627 ac_eof=`expr $ac_eof + 1`
39630 cat >>$CONFIG_STATUS <<_ACEOF
39631 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39632 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39635 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39636 s/^/s,@/; s/!/@,|#_!!_#|/
39639 s/'"$ac_delim"'$/,g/; t
39641 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39642 ' >>$CONFIG_STATUS <conf$$subs.sed
39643 rm -f conf$$subs.sed
39644 cat >>$CONFIG_STATUS <<_ACEOF
39650 for ac_last_try in false false false false false :; do
39651 cat >conf$$subs.sed <<_ACEOF
39652 DLLTOOL!$DLLTOOL$ac_delim
39654 OBJDUMP!$OBJDUMP$ac_delim
39656 LIBTOOL!$LIBTOOL$ac_delim
39657 PERLBIN!$PERLBIN$ac_delim
39658 OL_MKDEP!$OL_MKDEP$ac_delim
39659 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39660 LTSTATIC!$LTSTATIC$ac_delim
39661 MYSQL!$MYSQL$ac_delim
39662 LIBOBJS!$LIBOBJS$ac_delim
39663 LIBSRCS!$LIBSRCS$ac_delim
39664 PLAT!$PLAT$ac_delim
39665 WITH_SASL!$WITH_SASL$ac_delim
39666 WITH_TLS!$WITH_TLS$ac_delim
39667 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39668 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39669 BUILD_THREAD!$BUILD_THREAD$ac_delim
39670 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39671 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39672 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39673 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39674 BUILD_BDB!$BUILD_BDB$ac_delim
39675 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39676 BUILD_HDB!$BUILD_HDB$ac_delim
39677 BUILD_LDAP!$BUILD_LDAP$ac_delim
39678 BUILD_META!$BUILD_META$ac_delim
39679 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39680 BUILD_NDB!$BUILD_NDB$ac_delim
39681 BUILD_NULL!$BUILD_NULL$ac_delim
39682 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39683 BUILD_RELAY!$BUILD_RELAY$ac_delim
39684 BUILD_PERL!$BUILD_PERL$ac_delim
39685 BUILD_SHELL!$BUILD_SHELL$ac_delim
39686 BUILD_SOCK!$BUILD_SOCK$ac_delim
39687 BUILD_SQL!$BUILD_SQL$ac_delim
39688 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39689 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39690 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39691 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39692 BUILD_DDS!$BUILD_DDS$ac_delim
39693 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39694 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39695 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39696 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39697 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39698 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39699 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39700 BUILD_REFINT!$BUILD_REFINT$ac_delim
39701 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39702 BUILD_RWM!$BUILD_RWM$ac_delim
39703 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39704 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39705 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39706 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39707 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39708 LDAP_LIBS!$LDAP_LIBS$ac_delim
39709 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39710 BDB_LIBS!$BDB_LIBS$ac_delim
39711 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39712 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39713 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39714 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39715 WRAP_LIBS!$WRAP_LIBS$ac_delim
39716 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39717 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39718 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39719 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39720 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39721 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39722 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39723 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39724 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39725 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39726 KRB4_LIBS!$KRB4_LIBS$ac_delim
39727 KRB5_LIBS!$KRB5_LIBS$ac_delim
39728 SASL_LIBS!$SASL_LIBS$ac_delim
39729 TLS_LIBS!$TLS_LIBS$ac_delim
39730 MODULES_LIBS!$MODULES_LIBS$ac_delim
39731 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39732 LIBSLAPI!$LIBSLAPI$ac_delim
39733 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39734 AUTH_LIBS!$AUTH_LIBS$ac_delim
39735 ICU_LIBS!$ICU_LIBS$ac_delim
39736 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39737 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39738 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39739 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39740 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39741 LTLIBOBJS!$LTLIBOBJS$ac_delim
39744 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
39746 elif $ac_last_try; then
39747 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39748 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39749 { (exit 1); exit 1; }; }
39751 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39755 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39756 if test -n "$ac_eof"; then
39757 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39758 ac_eof=`expr $ac_eof + 1`
39761 cat >>$CONFIG_STATUS <<_ACEOF
39762 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39766 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39767 s/^/s,@/; s/!/@,|#_!!_#|/
39770 s/'"$ac_delim"'$/,g/; t
39772 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39773 ' >>$CONFIG_STATUS <conf$$subs.sed
39774 rm -f conf$$subs.sed
39775 cat >>$CONFIG_STATUS <<_ACEOF
39782 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39783 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39784 # trailing colons and then remove the whole line if VPATH becomes empty
39785 # (actually we leave an empty line to preserve line numbers).
39786 if test "x$srcdir" = x.; then
39787 ac_vpsub='/^[ ]*VPATH[ ]*=/{
39788 s/:*\$(srcdir):*/:/
39789 s/:*\${srcdir}:*/:/
39791 s/^\([^=]*=[ ]*\):*/\1/
39797 cat >>$CONFIG_STATUS <<\_ACEOF
39798 fi # test -n "$CONFIG_FILES"
39801 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
39804 :[FHLC]) ac_mode=$ac_tag; continue;;
39806 case $ac_mode$ac_tag in
39808 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39809 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39810 { (exit 1); exit 1; }; };;
39811 :[FH]-) ac_tag=-:-;;
39812 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39829 -) ac_f="$tmp/stdin";;
39830 *) # Look for the file first in the build tree, then in the source tree
39831 # (if the path is not absolute). The absolute path cannot be DOS-style,
39832 # because $ac_f cannot contain `:'.
39836 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39838 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39839 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39840 { (exit 1); exit 1; }; };;
39842 ac_file_inputs="$ac_file_inputs $ac_f"
39845 # Let's still pretend it is `configure' which instantiates (i.e., don't
39846 # use $as_me), people would be surprised to read:
39847 # /* config.h. Generated by config.status. */
39848 configure_input="Generated from "`IFS=:
39849 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39850 if test x"$ac_file" != x-; then
39851 configure_input="$ac_file. $configure_input"
39852 { echo "$as_me:$LINENO: creating $ac_file" >&5
39853 echo "$as_me: creating $ac_file" >&6;}
39857 *:-:* | *:-) cat >"$tmp/stdin";;
39862 ac_dir=`$as_dirname -- "$ac_file" ||
39863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39864 X"$ac_file" : 'X\(//\)[^/]' \| \
39865 X"$ac_file" : 'X\(//\)$' \| \
39866 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39872 /^X\(\/\/\)[^/].*/{
39887 -*) as_dir=./$as_dir;;
39889 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39893 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39894 *) as_qdir=$as_dir;;
39896 as_dirs="'$as_qdir' $as_dirs"
39897 as_dir=`$as_dirname -- "$as_dir" ||
39898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39899 X"$as_dir" : 'X\(//\)[^/]' \| \
39900 X"$as_dir" : 'X\(//\)$' \| \
39901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39907 /^X\(\/\/\)[^/].*/{
39920 test -d "$as_dir" && break
39922 test -z "$as_dirs" || eval "mkdir $as_dirs"
39923 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39924 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39925 { (exit 1); exit 1; }; }; }
39929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39932 # A ".." for each directory in $ac_dir_suffix.
39933 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39934 case $ac_top_builddir_sub in
39935 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39936 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39939 ac_abs_top_builddir=$ac_pwd
39940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39941 # for backward compatibility:
39942 ac_top_builddir=$ac_top_build_prefix
39945 .) # We are building in place.
39947 ac_top_srcdir=$ac_top_builddir_sub
39948 ac_abs_top_srcdir=$ac_pwd ;;
39949 [\\/]* | ?:[\\/]* ) # Absolute name.
39950 ac_srcdir=$srcdir$ac_dir_suffix;
39951 ac_top_srcdir=$srcdir
39952 ac_abs_top_srcdir=$srcdir ;;
39953 *) # Relative name.
39954 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39955 ac_top_srcdir=$ac_top_build_prefix$srcdir
39956 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39968 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39969 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39973 cat >>$CONFIG_STATUS <<\_ACEOF
39974 # If the template does not know about datarootdir, expand it.
39975 # FIXME: This hack should be removed a few years after 2.60.
39976 ac_datarootdir_hack=; ac_datarootdir_seen=
39978 case `sed -n '/datarootdir/ {
39987 ' $ac_file_inputs` in
39988 *datarootdir*) ac_datarootdir_seen=yes;;
39989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39990 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39991 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39993 cat >>$CONFIG_STATUS <<_ACEOF
39994 ac_datarootdir_hack='
39995 s&@datadir@&$datadir&g
39996 s&@docdir@&$docdir&g
39997 s&@infodir@&$infodir&g
39998 s&@localedir@&$localedir&g
39999 s&@mandir@&$mandir&g
40000 s&\\\${datarootdir}&$datarootdir&g' ;;
40004 # Neutralize VPATH when `$srcdir' = `.'.
40005 # Shell code in configure.ac might set extrasub.
40006 # FIXME: do we really want to maintain this feature?
40007 cat >>$CONFIG_STATUS <<_ACEOF
40011 cat >>$CONFIG_STATUS <<\_ACEOF
40013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40014 s&@configure_input@&$configure_input&;t t
40015 s&@top_builddir@&$ac_top_builddir_sub&;t t
40016 s&@srcdir@&$ac_srcdir&;t t
40017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40018 s&@top_srcdir@&$ac_top_srcdir&;t t
40019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40020 s&@builddir@&$ac_builddir&;t t
40021 s&@abs_builddir@&$ac_abs_builddir&;t t
40022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40023 s&@INSTALL@&$ac_INSTALL&;t t
40024 $ac_datarootdir_hack
40025 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40027 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40028 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40029 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40030 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40031 which seems to be undefined. Please make sure it is defined." >&5
40032 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40033 which seems to be undefined. Please make sure it is defined." >&2;}
40037 -) cat "$tmp/out"; rm -f "$tmp/out";;
40038 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40047 # Transform confdefs.h into a sed script `conftest.defines', that
40048 # substitutes the proper values into config.h.in to produce config.h.
40049 rm -f conftest.defines conftest.tail
40050 # First, append a space to every undef/define line, to ease matching.
40051 echo 's/$/ /' >conftest.defines
40052 # Then, protect against being on the right side of a sed subst, or in
40053 # an unquoted here document, in config.status. If some macros were
40054 # called several times there might be several #defines for the same
40055 # symbol, which is useless. But do not sort them, since the last
40056 # AC_DEFINE must be honored.
40057 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40058 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40059 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40060 # PARAMS is the parameter list in the macro definition--in most cases, it's
40061 # just an empty string.
40062 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
40063 ac_dB='\\)[ (].*,\\1define\\2'
40071 s/^[ ]*#[ ]*define[ ][ ]*//
40076 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40077 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40078 ' >>conftest.defines
40080 # Remove the space that was appended to ease matching.
40081 # Then replace #undef with comments. This is necessary, for
40082 # example, in the case of _POSIX_SOURCE, which is predefined and required
40083 # on some systems where configure will not decide to define it.
40084 # (The regexp can be short, since the line contains either #define or #undef.)
40086 s,^[ #]*u.*,/* & */,' >>conftest.defines
40088 # Break up conftest.defines:
40089 ac_max_sed_lines=50
40091 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40092 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40093 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40095 ac_in='$ac_file_inputs'
40096 ac_out='"$tmp/out1"'
40097 ac_nxt='"$tmp/out2"'
40101 # Write a here document:
40102 cat >>$CONFIG_STATUS <<_ACEOF
40103 # First, check the format of the line:
40104 cat >"\$tmp/defines.sed" <<\\CEOF
40105 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
40106 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
40110 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40112 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40113 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40114 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40115 grep . conftest.tail >/dev/null || break
40116 rm -f conftest.defines
40117 mv conftest.tail conftest.defines
40119 rm -f conftest.defines conftest.tail
40121 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40122 cat >>$CONFIG_STATUS <<\_ACEOF
40123 if test x"$ac_file" != x-; then
40124 echo "/* $configure_input */" >"$tmp/config.h"
40125 cat "$ac_result" >>"$tmp/config.h"
40126 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40127 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40128 echo "$as_me: $ac_file is unchanged" >&6;}
40131 mv "$tmp/config.h" $ac_file
40134 echo "/* $configure_input */"
40138 # Compute $ac_file's index in $config_headers.
40140 for _am_header in $config_headers :; do
40141 case $_am_header in
40142 $ac_file | $ac_file:* )
40145 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40148 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40149 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40150 X$ac_file : 'X\(//\)[^/]' \| \
40151 X$ac_file : 'X\(//\)$' \| \
40152 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40158 /^X\(\/\/\)[^/].*/{
40170 s/.*/./; q'`/stamp-h$_am_stamp_count
40173 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40174 echo "$as_me: executing $ac_file commands" >&6;}
40179 case $ac_file$ac_mode in
40180 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40181 # Strip MF so we end up with the name of the file.
40182 mf=`echo "$mf" | sed -e 's/:.*$//'`
40183 # Check whether this is an Automake generated Makefile or not.
40184 # We used to match only the files named `Makefile.in', but
40185 # some people rename them; so instead we look at the file content.
40186 # Grep'ing the first line is not enough: some people post-process
40187 # each Makefile.in and add a new line on top of each file to say so.
40188 # So let's grep whole file.
40189 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40190 dirpart=`$as_dirname -- "$mf" ||
40191 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40192 X"$mf" : 'X\(//\)[^/]' \| \
40193 X"$mf" : 'X\(//\)$' \| \
40194 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40200 /^X\(\/\/\)[^/].*/{
40216 # Extract the definition of DEPDIR, am__include, and am__quote
40217 # from the Makefile without running `make'.
40218 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40219 test -z "$DEPDIR" && continue
40220 am__include=`sed -n 's/^am__include = //p' < "$mf"`
40221 test -z "am__include" && continue
40222 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40223 # When using ansi2knr, U may be empty or an underscore; expand it
40224 U=`sed -n 's/^U = //p' < "$mf"`
40225 # Find all dependency output files, they are included files with
40226 # $(DEPDIR) in their names. We invoke sed twice because it is the
40227 # simplest approach to changing $(DEPDIR) to its actual value in the
40229 for file in `sed -n "
40230 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40231 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40232 # Make sure the directory exists.
40233 test -f "$dirpart/$file" && continue
40234 fdir=`$as_dirname -- "$file" ||
40235 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40236 X"$file" : 'X\(//\)[^/]' \| \
40237 X"$file" : 'X\(//\)$' \| \
40238 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40244 /^X\(\/\/\)[^/].*/{
40257 { as_dir=$dirpart/$fdir
40259 -*) as_dir=./$as_dir;;
40261 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40265 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40266 *) as_qdir=$as_dir;;
40268 as_dirs="'$as_qdir' $as_dirs"
40269 as_dir=`$as_dirname -- "$as_dir" ||
40270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40271 X"$as_dir" : 'X\(//\)[^/]' \| \
40272 X"$as_dir" : 'X\(//\)$' \| \
40273 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40279 /^X\(\/\/\)[^/].*/{
40292 test -d "$as_dir" && break
40294 test -z "$as_dirs" || eval "mkdir $as_dirs"
40295 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40296 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40297 { (exit 1); exit 1; }; }; }
40298 # echo "creating $dirpart/$file"
40299 echo '# dummy' > "$dirpart/$file"
40306 BACKENDSC="servers/slapd/backends.c"
40307 echo "Making $BACKENDSC"
40309 cat > $BACKENDSC << ENDX
40310 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40312 * Copyright 1998-2009 The OpenLDAP Foundation.
40313 * All rights reserved.
40315 * Redistribution and use in source and binary forms, with or without
40316 * modification, are permitted only as authorized by the OpenLDAP
40319 * A copy of this license is available in the file LICENSE in the
40320 * top-level directory of the distribution or, alternatively, at
40321 * <http://www.OpenLDAP.org/license.html>.
40323 /* This file is automatically generated by configure; please do not edit. */
40325 #include "portable.h"
40329 if test "${STATIC_BACKENDS}"; then
40330 for b in config ${STATIC_BACKENDS}; do
40331 bb=`echo "${b}" | sed -e 's/back-//'`
40332 cat >> $BACKENDSC << ENDX
40333 extern BI_init ${bb}_back_initialize;
40337 cat >> $BACKENDSC << ENDX
40339 BackendInfo slap_binfo[] = {
40342 for b in config ${STATIC_BACKENDS}; do
40343 bb=`echo "${b}" | sed -e 's/back-//'`
40344 echo " Add ${bb} ..."
40345 cat >> $BACKENDSC << ENDX
40346 { "${bb}", ${bb}_back_initialize },
40350 cat >> $BACKENDSC << ENDX
40354 /* end of generated file */
40357 OVERLAYSC="servers/slapd/overlays/statover.c"
40358 echo "Making $OVERLAYSC"
40360 cat > $OVERLAYSC << 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_OVERLAYS}"; then
40381 for o in ${STATIC_OVERLAYS}; do
40382 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40383 cat >> $OVERLAYSC << ENDX
40384 extern OV_init ${oo}_initialize;
40389 cat >> $OVERLAYSC << ENDX
40391 OverlayInit slap_oinfo[] = {
40394 if test "${STATIC_OVERLAYS}"; then
40395 for o in ${STATIC_OVERLAYS}; do
40396 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40397 echo " Add ${oo} ..."
40398 cat >> $OVERLAYSC << ENDX
40399 { "${oo}", ${oo}_initialize },
40404 cat >> $OVERLAYSC << ENDX
40408 /* end of generated file */
40411 if test "${ol_cv_mkdep}" = no; then
40412 echo '(Do not "make depend"; we do not know how to build dependencies)'
40414 echo 'Please run "make depend" to build dependencies'
40422 { (exit 0); exit 0; }
40424 chmod +x $CONFIG_STATUS
40425 ac_clean_files=$ac_clean_files_save
40428 # configure is writing to config.log, and then calls config.status.
40429 # config.status does its own redirection, appending to config.log.
40430 # Unfortunately, on DOS this fails, as config.log is still kept open
40431 # by configure, so config.status won't be able to write to it; its
40432 # output is simply discarded. So we exec the FD to /dev/null,
40433 # effectively closing config.log, so it can be properly (re)opened and
40434 # appended to by config.status. When coming back to configure, we
40435 # need to make the FD available again.
40436 if test "$no_create" != yes; then
40438 ac_config_status_args=
40439 test "$silent" = yes &&
40440 ac_config_status_args="$ac_config_status_args --quiet"
40442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40445 # would make configure fail if this is the last instruction.
40446 $ac_cs_success || { (exit 1); exit 1; }