2 # From configure.in Id: 46e5e8cc8f0216bd3fa077597f237c3dbabd3a75 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65.
6 # Copyright 1998-2018 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
15 # This configure script is free software; the Free Software Foundation
16 # gives unlimited permission to copy, distribute and modify it.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72 as_echo_n='sh -c $as_echo_n_body as_echo'
75 as_echo='sh -c $as_echo_body as_echo'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev/null; then :
184 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
189 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir=.
196 for as_base in sh bash ksh sh5; do
197 # Try only shells that exist, to save several forks.
198 as_shell=$as_dir/$as_base
199 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 CONFIG_SHELL=$as_shell as_have_required=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
212 CONFIG_SHELL=$SHELL as_have_required=yes
217 if test "x$CONFIG_SHELL" != x; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x$as_have_required = xno; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x${ZSH_VERSION+set} = xset ; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: <http://www.openldap.org/its/> about your system,
237 $0: including any error possibly output before this
238 $0: message. Then install a modern shell, or manually run
239 $0: the script under such a shell if you do have one."
245 SHELL=${CONFIG_SHELL-/bin/sh}
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE= GREP_OPTIONS=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
256 # Portably unset VAR.
259 { eval $1=; unset $1;}
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
283 # Create "$as_dir" as a directory, including parents if necessary.
288 -*) as_dir=./$as_dir;;
290 test -d "$as_dir" || eval $as_mkdir_p || {
294 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 as_dirs="'$as_qdir' $as_dirs"
298 as_dir=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321 test -d "$as_dir" && break
323 test -z "$as_dirs" || eval "mkdir $as_dirs"
324 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
335 eval 'as_fn_append ()
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 as_val=`expr "$@" || test $? -eq 1`
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
371 as_status=$?; test $as_status -eq 0 && as_status=1
373 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit $as_status
380 if expr a : '\(a\)' >/dev/null 2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001; then
387 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
399 as_me=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 # Avoid depending upon Character Ranges.
419 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits='0123456789'
423 as_cr_alnum=$as_cr_Letters$as_cr_digits
426 as_lineno_1=$LINENO as_lineno_1a=$LINENO
427 as_lineno_2=$LINENO as_lineno_2a=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 chmod +x "$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
453 # Exit status is that of the last command.
457 ECHO_C= ECHO_N= ECHO_T=
458 case `echo -n x` in #(((((
460 case `echo 'xy\c'` in
461 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 rm -f conf$$ conf$$.exe conf$$.file
471 if test -d conf$$.dir; then
472 rm -f conf$$.dir/conf$$.file
475 mkdir conf$$.dir 2>/dev/null
477 if (echo >conf$$.file) 2>/dev/null; then
478 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 elif ln conf$$.file conf$$ 2>/dev/null; then
494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
495 rmdir conf$$.dir 2>/dev/null
497 if mkdir -p . 2>/dev/null; then
498 as_mkdir_p='mkdir -p "$as_dir"'
500 test -d ./-p && rmdir ./-p
504 if test -x / >/dev/null 2>&1; then
507 if ls -dL / >/dev/null 2>&1; then
514 if test -d "$1"; then
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
525 as_executable_p=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 # Check that we are running under the correct shell.
536 SHELL=${CONFIG_SHELL-/bin/sh}
540 # Remove one level of quotation (which was required for Make).
541 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
546 if test "X$1" = X--no-reexec; then
547 # Discard the --no-reexec flag, and continue.
549 elif test "X$1" = X--fallback-echo; then
550 # Avoid inline document here, it may be left over
552 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
553 # Yippee, $echo works!
556 # Restart under the correct shell.
557 exec $SHELL "$0" --no-reexec ${1+"$@"}
560 if test "X$1" = X--fallback-echo; then
561 # used as fallback echo
569 # The HP-UX ksh and POSIX shell print the target directory to stdout
571 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
573 if test -z "$ECHO"; then
574 if test "X${echo_test_string+set}" != Xset; then
575 # find a string as large as possible, as long as the shell can cope with it
576 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
577 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
578 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
579 echo_test_string=`eval $cmd` &&
580 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
587 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
588 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
589 test "X$echo_testing_string" = "X$echo_test_string"; then
592 # The Solaris, AIX, and Digital Unix default echo programs unquote
593 # backslashes. This makes it impossible to quote backslashes using
594 # echo "$something" | sed 's/\\/\\\\/g'
596 # So, first we look for a working echo in the user's PATH.
598 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
599 for dir in $PATH /usr/ucb; do
601 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
602 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
603 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
604 test "X$echo_testing_string" = "X$echo_test_string"; then
611 if test "X$echo" = Xecho; then
612 # We didn't find a better echo, so look for alternatives.
613 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
616 # This shell has a builtin print -r that does the trick.
618 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
619 test "X$CONFIG_SHELL" != X/bin/ksh; then
620 # If we have ksh, try running configure again with it.
621 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
622 export ORIGINAL_CONFIG_SHELL
623 CONFIG_SHELL=/bin/ksh
625 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
634 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
635 test "X$echo_testing_string" = 'X\t' &&
636 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
640 SHELL="$CONFIG_SHELL"
642 echo="$CONFIG_SHELL $0 --fallback-echo"
643 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
644 test "X$echo_testing_string" = 'X\t' &&
645 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$CONFIG_SHELL $0 --fallback-echo"
649 # maybe with a smaller string...
652 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
653 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
660 if test "$prev" != 'sed 50q "$0"'; then
661 echo_test_string=`eval $prev`
662 export echo_test_string
663 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
665 # Oops. We lost completely, so just stick with echo.
674 # Copy echo and quote the copy suitably for passing to libtool from
675 # the Makefile, instead of quoting the original, which is used later.
677 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
678 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
684 test -n "$DJDIR" || exec 7<&0 </dev/null
688 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
689 # so uname gets run too.
690 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
695 ac_default_prefix=/usr/local
697 ac_config_libobj_dir=.
704 # Identity of this package.
712 ac_unique_file="OpenLDAP"
713 ac_unique_file="build/version.sh"
714 ac_default_prefix=/usr/local
715 # Factoring default headers for most tests.
716 ac_includes_default="\
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
728 # ifdef HAVE_STDLIB_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
751 ac_subst_vars='LTLIBOBJS
772 SLAPD_DYNAMIC_OVERLAYS
773 SLAPD_STATIC_OVERLAYS
774 SLAPD_DYNAMIC_BACKENDS
775 SLAPD_STATIC_BACKENDS
777 SLAPD_MODULES_LDFLAGS
778 SLAPD_MODULES_CPPFLAGS
874 OPENLDAP_RELEASE_DATE
884 INSTALL_STRIP_PROGRAM
937 program_transform_name
950 enable_option_checking
965 enable_xxslapdoptions
979 enable_xxslapbackends
998 enable_xxslapoverlays
1025 enable_dependency_tracking
1032 ac_precious_vars='build_alias
1043 # Initialize some variables set by options.
1045 ac_init_version=false
1046 ac_unrecognized_opts=
1047 ac_unrecognized_sep=
1048 # The variables have the same names as the options, with
1049 # dashes changed to underlines.
1050 cache_file=/dev/null
1057 program_transform_name=s,x,x,
1065 # Installation directory options.
1066 # These are left unexpanded so users can "make install exec_prefix=/foo"
1067 # and all the variables that are supposed to be based on exec_prefix
1068 # by default will actually change.
1069 # Use braces instead of parens because sh, perl, etc. also accept them.
1070 # (The list follows the same order as the GNU Coding Standards.)
1071 bindir='${exec_prefix}/bin'
1072 sbindir='${exec_prefix}/sbin'
1073 libexecdir='${exec_prefix}/libexec'
1074 datarootdir='${prefix}/share'
1075 datadir='${datarootdir}'
1076 sysconfdir='${prefix}/etc'
1077 sharedstatedir='${prefix}/com'
1078 localstatedir='${prefix}/var'
1079 includedir='${prefix}/include'
1080 oldincludedir='/usr/include'
1081 docdir='${datarootdir}/doc/${PACKAGE}'
1082 infodir='${datarootdir}/info'
1087 libdir='${exec_prefix}/lib'
1088 localedir='${datarootdir}/locale'
1089 mandir='${datarootdir}/man'
1095 # If the previous option needs an argument, assign it.
1096 if test -n "$ac_prev"; then
1097 eval $ac_prev=\$ac_option
1103 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1107 # Accept the important Cygnus configure options, so we can diagnose typos.
1109 case $ac_dashdash$ac_option in
1113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1116 bindir=$ac_optarg ;;
1118 -build | --build | --buil | --bui | --bu)
1119 ac_prev=build_alias ;;
1120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1121 build_alias=$ac_optarg ;;
1123 -cache-file | --cache-file | --cache-fil | --cache-fi \
1124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125 ac_prev=cache_file ;;
1126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128 cache_file=$ac_optarg ;;
1130 --config-cache | -C)
1131 cache_file=config.cache ;;
1133 -datadir | --datadir | --datadi | --datad)
1135 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1136 datadir=$ac_optarg ;;
1138 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1139 | --dataroo | --dataro | --datar)
1140 ac_prev=datarootdir ;;
1141 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1142 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1143 datarootdir=$ac_optarg ;;
1145 -disable-* | --disable-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error "invalid feature name: $ac_useropt"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1154 "enable_$ac_useropt"
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1159 eval enable_$ac_useropt=no ;;
1161 -docdir | --docdir | --docdi | --doc | --do)
1163 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1164 docdir=$ac_optarg ;;
1166 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1168 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1169 dvidir=$ac_optarg ;;
1171 -enable-* | --enable-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error "invalid feature name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "enable_$ac_useropt"
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1185 eval enable_$ac_useropt=\$ac_optarg ;;
1187 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189 | --exec | --exe | --ex)
1190 ac_prev=exec_prefix ;;
1191 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193 | --exec=* | --exe=* | --ex=*)
1194 exec_prefix=$ac_optarg ;;
1196 -gas | --gas | --ga | --g)
1197 # Obsolete; use --with-gas.
1200 -help | --help | --hel | --he | -h)
1201 ac_init_help=long ;;
1202 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203 ac_init_help=recursive ;;
1204 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205 ac_init_help=short ;;
1207 -host | --host | --hos | --ho)
1208 ac_prev=host_alias ;;
1209 -host=* | --host=* | --hos=* | --ho=*)
1210 host_alias=$ac_optarg ;;
1212 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1214 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1216 htmldir=$ac_optarg ;;
1218 -includedir | --includedir | --includedi | --included | --include \
1219 | --includ | --inclu | --incl | --inc)
1220 ac_prev=includedir ;;
1221 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222 | --includ=* | --inclu=* | --incl=* | --inc=*)
1223 includedir=$ac_optarg ;;
1225 -infodir | --infodir | --infodi | --infod | --info | --inf)
1227 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228 infodir=$ac_optarg ;;
1230 -libdir | --libdir | --libdi | --libd)
1232 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233 libdir=$ac_optarg ;;
1235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236 | --libexe | --libex | --libe)
1237 ac_prev=libexecdir ;;
1238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239 | --libexe=* | --libex=* | --libe=*)
1240 libexecdir=$ac_optarg ;;
1242 -localedir | --localedir | --localedi | --localed | --locale)
1243 ac_prev=localedir ;;
1244 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245 localedir=$ac_optarg ;;
1247 -localstatedir | --localstatedir | --localstatedi | --localstated \
1248 | --localstate | --localstat | --localsta | --localst | --locals)
1249 ac_prev=localstatedir ;;
1250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252 localstatedir=$ac_optarg ;;
1254 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1256 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257 mandir=$ac_optarg ;;
1259 -nfp | --nfp | --nf)
1260 # Obsolete; use --without-fp.
1263 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264 | --no-cr | --no-c | -n)
1267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1271 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273 | --oldin | --oldi | --old | --ol | --o)
1274 ac_prev=oldincludedir ;;
1275 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278 oldincludedir=$ac_optarg ;;
1280 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1282 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283 prefix=$ac_optarg ;;
1285 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286 | --program-pre | --program-pr | --program-p)
1287 ac_prev=program_prefix ;;
1288 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290 program_prefix=$ac_optarg ;;
1292 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293 | --program-suf | --program-su | --program-s)
1294 ac_prev=program_suffix ;;
1295 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297 program_suffix=$ac_optarg ;;
1299 -program-transform-name | --program-transform-name \
1300 | --program-transform-nam | --program-transform-na \
1301 | --program-transform-n | --program-transform- \
1302 | --program-transform | --program-transfor \
1303 | --program-transfo | --program-transf \
1304 | --program-trans | --program-tran \
1305 | --progr-tra | --program-tr | --program-t)
1306 ac_prev=program_transform_name ;;
1307 -program-transform-name=* | --program-transform-name=* \
1308 | --program-transform-nam=* | --program-transform-na=* \
1309 | --program-transform-n=* | --program-transform-=* \
1310 | --program-transform=* | --program-transfor=* \
1311 | --program-transfo=* | --program-transf=* \
1312 | --program-trans=* | --program-tran=* \
1313 | --progr-tra=* | --program-tr=* | --program-t=*)
1314 program_transform_name=$ac_optarg ;;
1316 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1318 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319 pdfdir=$ac_optarg ;;
1321 -psdir | --psdir | --psdi | --psd | --ps)
1323 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1326 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327 | -silent | --silent | --silen | --sile | --sil)
1330 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1332 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1334 sbindir=$ac_optarg ;;
1336 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338 | --sharedst | --shareds | --shared | --share | --shar \
1340 ac_prev=sharedstatedir ;;
1341 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1345 sharedstatedir=$ac_optarg ;;
1347 -site | --site | --sit)
1349 -site=* | --site=* | --sit=*)
1352 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1354 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355 srcdir=$ac_optarg ;;
1357 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358 | --syscon | --sysco | --sysc | --sys | --sy)
1359 ac_prev=sysconfdir ;;
1360 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362 sysconfdir=$ac_optarg ;;
1364 -target | --target | --targe | --targ | --tar | --ta | --t)
1365 ac_prev=target_alias ;;
1366 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367 target_alias=$ac_optarg ;;
1369 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1372 -version | --version | --versio | --versi | --vers | -V)
1373 ac_init_version=: ;;
1376 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error "invalid package name: $ac_useropt"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1389 eval with_$ac_useropt=\$ac_optarg ;;
1391 -without-* | --without-*)
1392 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1393 # Reject names that are not valid shell variable names.
1394 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1395 as_fn_error "invalid package name: $ac_useropt"
1396 ac_useropt_orig=$ac_useropt
1397 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1398 case $ac_user_opts in
1402 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1403 ac_unrecognized_sep=', ';;
1405 eval with_$ac_useropt=no ;;
1408 # Obsolete; use --with-x.
1411 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1412 | --x-incl | --x-inc | --x-in | --x-i)
1413 ac_prev=x_includes ;;
1414 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1415 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1416 x_includes=$ac_optarg ;;
1418 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1419 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1420 ac_prev=x_libraries ;;
1421 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1422 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1423 x_libraries=$ac_optarg ;;
1425 -*) as_fn_error "unrecognized option: \`$ac_option'
1426 Try \`$0 --help' for more information."
1430 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1431 # Reject names that are not valid shell variable names.
1432 case $ac_envvar in #(
1433 '' | [0-9]* | *[!_$as_cr_alnum]* )
1434 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1436 eval $ac_envvar=\$ac_optarg
1437 export $ac_envvar ;;
1440 # FIXME: should be removed in autoconf 3.0.
1441 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1442 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1443 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1444 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1450 if test -n "$ac_prev"; then
1451 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1452 as_fn_error "missing argument to $ac_option"
1455 if test -n "$ac_unrecognized_opts"; then
1456 case $enable_option_checking in
1458 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1459 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1463 # Check all directory arguments for consistency.
1464 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1465 datadir sysconfdir sharedstatedir localstatedir includedir \
1466 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1467 libdir localedir mandir
1469 eval ac_val=\$$ac_var
1470 # Remove trailing slashes.
1473 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1474 eval $ac_var=\$ac_val;;
1476 # Be sure to have absolute directory names.
1478 [\\/$]* | ?:[\\/]* ) continue;;
1479 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1481 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1484 # There might be people who depend on the old broken behavior: `$host'
1485 # used to hold the argument of --host etc.
1486 # FIXME: To remove some day.
1489 target=$target_alias
1491 # FIXME: To remove some day.
1492 if test "x$host_alias" != x; then
1493 if test "x$build_alias" = x; then
1494 cross_compiling=maybe
1495 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1496 If a cross compiler is detected then cross compile mode will be used." >&2
1497 elif test "x$build_alias" != "x$host_alias"; then
1503 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505 test "$silent" = yes && exec 6>/dev/null
1508 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1509 ac_ls_di=`ls -di .` &&
1510 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1511 as_fn_error "working directory cannot be determined"
1512 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1513 as_fn_error "pwd does not report name of working directory"
1516 # Find the source files, if location was not specified.
1517 if test -z "$srcdir"; then
1518 ac_srcdir_defaulted=yes
1519 # Try the directory containing this script, then the parent directory.
1520 ac_confdir=`$as_dirname -- "$as_myself" ||
1521 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1522 X"$as_myself" : 'X\(//\)[^/]' \| \
1523 X"$as_myself" : 'X\(//\)$' \| \
1524 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1525 $as_echo X"$as_myself" |
1526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1544 if test ! -r "$srcdir/$ac_unique_file"; then
1548 ac_srcdir_defaulted=no
1550 if test ! -r "$srcdir/$ac_unique_file"; then
1551 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1552 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1554 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1640 --program-prefix=PREFIX prepend PREFIX to installed program names
1641 --program-suffix=SUFFIX append SUFFIX to installed program names
1642 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1645 --build=BUILD configure for building on BUILD [guessed]
1646 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1647 --target=TARGET configure for building compilers for TARGET [HOST]
1651 if test -n "$ac_init_help"; then
1656 --disable-option-checking ignore unrecognized --enable/--with options
1657 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1658 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1659 --enable-debug enable debugging no|yes|traditional [yes]
1660 --enable-dynamic enable linking built binaries with dynamic libs [no]
1661 --enable-syslog enable syslog support [auto]
1662 --enable-proctitle enable proctitle support [yes]
1663 --enable-ipv6 enable IPv6 support [auto]
1664 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1666 SLAPD (Standalone LDAP Daemon) Options:
1667 --enable-slapd enable building slapd [yes]
1668 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1669 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1670 --enable-cleartext enable cleartext passwords [yes]
1671 --enable-crypt enable crypt(3) passwords [no]
1672 --enable-lmpasswd enable LAN Manager passwords [no]
1673 --enable-spasswd enable (Cyrus) SASL password verification [no]
1674 --enable-modules enable dynamic module support [no]
1675 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1676 --enable-rlookups enable reverse lookups of client hostnames [no]
1677 --enable-slapi enable SLAPI support (experimental) [no]
1678 --enable-slp enable SLPv2 support [no]
1679 --enable-wrappers enable tcp wrapper support [no]
1681 SLAPD Backend Options:
1682 --enable-backends enable all available backends no|yes|mod
1683 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1684 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1685 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]
1686 --enable-ldap enable ldap backend no|yes|mod [no]
1687 --enable-mdb enable mdb database backend no|yes|mod [yes]
1688 --enable-meta enable metadirectory backend no|yes|mod [no]
1689 --enable-asyncmeta enable asynchronous metadirectory backend no|yes|mod [no]
1690 --enable-monitor enable monitor backend no|yes|mod [yes]
1691 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1692 --enable-null enable null backend no|yes|mod [no]
1693 --enable-passwd enable passwd backend no|yes|mod [no]
1694 --enable-perl enable perl backend no|yes|mod [no]
1695 --enable-relay enable relay backend no|yes|mod [yes]
1696 --enable-shell enable shell backend no|yes|mod [no]
1697 --enable-sock enable sock backend no|yes|mod [no]
1698 --enable-sql enable sql backend no|yes|mod [no]
1699 --enable-wt enable WiredTiger backend no|yes|mod [no]
1701 SLAPD Overlay Options:
1702 --enable-overlays enable all available overlays no|yes|mod
1703 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1704 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1705 --enable-autoca Automatic Certificate Authority overlay no|yes|mod [no]
1706 --enable-collect Collect overlay no|yes|mod [no]
1707 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1708 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1709 --enable-deref Dereference overlay no|yes|mod [no]
1710 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1711 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1712 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1713 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1714 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1715 --enable-refint Referential Integrity overlay no|yes|mod [no]
1716 --enable-retcode Return Code testing overlay no|yes|mod [no]
1717 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1718 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1719 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1720 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1721 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1722 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1723 --enable-valsort Value Sorting overlay no|yes|mod [no]
1725 Library Generation & Linking Options
1726 --enable-static[=PKGS] build static libraries [default=yes]
1727 --enable-shared[=PKGS] build shared libraries [default=yes]
1728 --enable-fast-install[=PKGS]
1729 optimize for fast installation [default=yes]
1730 --disable-dependency-tracking speeds up one-time build
1731 --enable-dependency-tracking do not reject slow dependency extractors
1732 --disable-libtool-lock avoid locking (might break parallel builds)
1735 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1736 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1737 --with-subdir=DIR change default subdirectory used for installs
1738 --with-cyrus-sasl with Cyrus SASL support [auto]
1739 --with-fetch with fetch(3) URL support [auto]
1740 --with-threads with threads [auto]
1741 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1742 --with-yielding-select with implicitly yielding select [auto]
1743 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1744 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1745 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1746 --with-pic try to use only PIC/non-PIC objects [default=use
1748 --with-tags[=TAGS] include additional configurations [automatic]
1750 See INSTALL file for further details.
1752 Some influential environment variables:
1753 CC C compiler command
1754 CFLAGS C compiler flags
1755 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1756 nonstandard directory <lib dir>
1757 LIBS libraries to pass to the linker, e.g. -l<library>
1758 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1759 you have headers in a nonstandard directory <include dir>
1762 Use these variables to override the choices made by `configure' or to help
1763 it to find libraries and programs with nonstandard names/locations.
1765 Report bugs to the package provider.
1770 if test "$ac_init_help" = "recursive"; then
1771 # If there are subdirs, report their specific --help.
1772 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773 test -d "$ac_dir" ||
1774 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1781 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1782 # A ".." for each directory in $ac_dir_suffix.
1783 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1784 case $ac_top_builddir_sub in
1785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1795 .) # We are building in place.
1797 ac_top_srcdir=$ac_top_builddir_sub
1798 ac_abs_top_srcdir=$ac_pwd ;;
1799 [\\/]* | ?:[\\/]* ) # Absolute name.
1800 ac_srcdir=$srcdir$ac_dir_suffix;
1801 ac_top_srcdir=$srcdir
1802 ac_abs_top_srcdir=$srcdir ;;
1804 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805 ac_top_srcdir=$ac_top_build_prefix$srcdir
1806 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1810 cd "$ac_dir" || { ac_status=$?; continue; }
1811 # Check for guested configure.
1812 if test -f "$ac_srcdir/configure.gnu"; then
1814 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815 elif test -f "$ac_srcdir/configure"; then
1817 $SHELL "$ac_srcdir/configure" --help=recursive
1819 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1821 cd "$ac_pwd" || { ac_status=$?; break; }
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1829 generated by GNU Autoconf 2.65
1831 Copyright (C) 2009 Free Software Foundation, Inc.
1832 This configure script is free software; the Free Software Foundation
1833 gives unlimited permission to copy, distribute and modify it.
1835 Copyright 1998-2018 The OpenLDAP Foundation. All rights reserved.
1836 Restrictions apply, see COPYRIGHT and LICENSE files.
1841 ## ------------------------ ##
1842 ## Autoconf initialization. ##
1843 ## ------------------------ ##
1845 # ac_fn_c_try_compile LINENO
1846 # --------------------------
1847 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_compile ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext
1852 if { { ac_try="$ac_compile"
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_compile") 2>conftest.err
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest.$ac_objext; then :
1873 $as_echo "$as_me: failed program was:" >&5
1874 sed 's/^/| /' conftest.$ac_ext >&5
1878 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1879 as_fn_set_status $ac_retval
1881 } # ac_fn_c_try_compile
1883 # ac_fn_c_try_link LINENO
1884 # -----------------------
1885 # Try to link conftest.$ac_ext, and return whether this succeeded.
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext conftest$ac_exeext
1890 if { { ac_try="$ac_link"
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_link") 2>conftest.err
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_c_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest$ac_exeext && {
1909 test "$cross_compiling" = yes ||
1910 $as_test_x conftest$ac_exeext
1914 $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1919 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1920 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1921 # interfere with the next link command; also delete a directory that is
1922 # left behind by Apple's compiler. We do this before executing the actions.
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 as_fn_set_status $ac_retval
1927 } # ac_fn_c_try_link
1929 # ac_fn_c_try_cpp LINENO
1930 # ----------------------
1931 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_cpp conftest.$ac_ext"
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } >/dev/null && {
1951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 as_fn_set_status $ac_retval
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1971 ac_fn_c_check_header_mongrel ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1995 ac_header_compiler=no
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2011 ac_header_preproc=no
2013 rm -f conftest.err conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2037 ## --------------------------------------------- ##
2038 ## Report this to <http://www.openldap.org/its/> ##
2039 ## --------------------------------------------- ##
2041 ) | sed "s/^/$as_me: WARNING: /" >&2
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2047 $as_echo_n "(cached) " >&6
2049 eval "$3=\$ac_header_compiler"
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057 } # ac_fn_c_check_header_mongrel
2059 # ac_fn_c_try_run LINENO
2060 # ----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 if { { ac_try="$ac_link"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_link") 2>&5
2075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077 { { case "(($ac_try" in
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_try") 2>&5
2085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086 test $ac_status = 0; }; }; then :
2089 $as_echo "$as_me: program exited with status $ac_status" >&5
2090 $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2093 ac_retval=$ac_status
2095 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2097 as_fn_set_status $ac_retval
2101 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2102 # -------------------------------------------------------
2103 # Tests whether HEADER exists and can be compiled using the include files in
2104 # INCLUDES, setting the cache variable VAR accordingly.
2105 ac_fn_c_check_header_compile ()
2107 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2111 $as_echo_n "(cached) " >&6
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2118 if ac_fn_c_try_compile "$LINENO"; then :
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 } # ac_fn_c_check_header_compile
2132 # ac_fn_c_check_func LINENO FUNC VAR
2133 # ----------------------------------
2134 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2135 ac_fn_c_check_func ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2147 #define $2 innocuous_$2
2149 /* System header to define __stub macros and hopefully few prototypes,
2150 which can conflict with char $2 (); below.
2151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2152 <limits.h> exists even on freestanding compilers. */
2155 # include <limits.h>
2157 # include <assert.h>
2162 /* Override any GCC internal prototype to avoid an error.
2163 Use char because int might match the return type of a GCC
2164 builtin and then its argument prototype would still apply. */
2169 /* The GNU C library defines this for functions which it implements
2170 to always fail with ENOSYS. Some functions are actually named
2171 something starting with __ and the normal name is an alias. */
2172 #if defined __stub_$2 || defined __stub___$2
2184 if ac_fn_c_try_link "$LINENO"; then :
2189 rm -f core conftest.err conftest.$ac_objext \
2190 conftest$ac_exeext conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197 } # ac_fn_c_check_func
2199 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2200 # -------------------------------------------
2201 # Tests whether TYPE exists after having included INCLUDES, setting cache
2202 # variable VAR accordingly.
2203 ac_fn_c_check_type ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207 $as_echo_n "checking for $2... " >&6; }
2208 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_check_type
2253 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2254 # ----------------------------------------------------
2255 # Tries to find if the field MEMBER exists in type AGGR, after including
2256 # INCLUDES, setting cache variable VAR accordingly.
2257 ac_fn_c_check_member ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2261 $as_echo_n "checking for $2.$3... " >&6; }
2262 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2278 if ac_fn_c_try_compile "$LINENO"; then :
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2288 if (sizeof ac_aggr.$3)
2294 if ac_fn_c_try_compile "$LINENO"; then :
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_member
2310 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2311 # --------------------------------------------
2312 # Tries to find the compile-time value of EXPR in a program that includes
2313 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2315 ac_fn_c_compute_int ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 if test "$cross_compiling" = yes; then
2319 # Depending upon the size, compute the lo and hi bounds.
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321 /* end confdefs.h. */
2326 static int test_array [1 - 2 * !(($2) >= 0)];
2333 if ac_fn_c_try_compile "$LINENO"; then :
2336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2337 /* end confdefs.h. */
2342 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 ac_hi=$ac_mid; break
2352 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2353 if test $ac_lo -le $ac_mid; then
2357 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h. */
2368 static int test_array [1 - 2 * !(($2) < 0)];
2375 if ac_fn_c_try_compile "$LINENO"; then :
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2384 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2391 if ac_fn_c_try_compile "$LINENO"; then :
2392 ac_lo=$ac_mid; break
2394 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2395 if test $ac_mid -le $ac_hi; then
2399 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 # Binary search between lo and hi bounds.
2410 while test "x$ac_lo" != "x$ac_hi"; do
2411 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2418 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2425 if ac_fn_c_try_compile "$LINENO"; then :
2428 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h. */
2440 static long int longval () { return $2; }
2441 static unsigned long int ulongval () { return $2; }
2448 FILE *f = fopen ("conftest.val", "w");
2453 long int i = longval ();
2456 fprintf (f, "%ld", i);
2460 unsigned long int i = ulongval ();
2463 fprintf (f, "%lu", i);
2465 /* Do not output a trailing newline, as this causes \r\n confusion
2466 on some platforms. */
2467 return ferror (f) || fclose (f) != 0;
2473 if ac_fn_c_try_run "$LINENO"; then :
2474 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2479 conftest.$ac_objext conftest.beam conftest.$ac_ext
2483 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 as_fn_set_status $ac_retval
2486 } # ac_fn_c_compute_int
2487 cat >config.log <<_ACEOF
2488 This file contains any messages produced by compilers while
2489 running configure, to aid debugging if configure makes a mistake.
2491 It was created by $as_me, which was
2492 generated by GNU Autoconf 2.65. Invocation command line was
2504 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2505 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2506 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2507 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2508 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2510 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2511 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2513 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2514 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2515 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2516 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2517 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2518 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2519 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 $as_echo "PATH: $as_dir"
2544 # Keep a trace of the command line.
2545 # Strip out --no-create and --no-recursion so they do not pile up.
2546 # Strip out --silent because we don't want to record it for future runs.
2547 # Also quote any args containing shell meta-characters.
2548 # Make two passes to allow for proper duplicate-argument suppression.
2552 ac_must_keep_next=false
2558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2560 | -silent | --silent | --silen | --sile | --sil)
2563 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2566 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2568 as_fn_append ac_configure_args1 " '$ac_arg'"
2569 if test $ac_must_keep_next = true; then
2570 ac_must_keep_next=false # Got value, back to normal.
2573 *=* | --config-cache | -C | -disable-* | --disable-* \
2574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2576 | -with-* | --with-* | -without-* | --without-* | --x)
2577 case "$ac_configure_args0 " in
2578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2581 -* ) ac_must_keep_next=true ;;
2584 as_fn_append ac_configure_args " '$ac_arg'"
2589 { ac_configure_args0=; unset ac_configure_args0;}
2590 { ac_configure_args1=; unset ac_configure_args1;}
2592 # When interrupted or exit'd, cleanup temporary files, and complete
2593 # config.log. We remove comments because anyway the quotes in there
2594 # would cause problems or look ugly.
2595 # WARNING: Use '\'' to represent an apostrophe within the trap.
2596 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2597 trap 'exit_status=$?
2598 # Save into config.log some information that might help in debugging.
2603 ## ---------------- ##
2604 ## Cache variables. ##
2605 ## ---------------- ##
2608 # The following way of writing the cache mishandles newlines in values,
2610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2611 eval ac_val=\$$ac_var
2615 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2616 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2619 _ | IFS | as_nl) ;; #(
2620 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2621 *) { eval $ac_var=; unset $ac_var;} ;;
2626 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2627 *${as_nl}ac_space=\ *)
2629 "s/'\''/'\''\\\\'\'''\''/g;
2630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2641 ## ----------------- ##
2642 ## Output variables. ##
2643 ## ----------------- ##
2646 for ac_var in $ac_subst_vars
2648 eval ac_val=\$$ac_var
2650 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652 $as_echo "$ac_var='\''$ac_val'\''"
2656 if test -n "$ac_subst_files"; then
2658 ## ------------------- ##
2659 ## File substitutions. ##
2660 ## ------------------- ##
2663 for ac_var in $ac_subst_files
2665 eval ac_val=\$$ac_var
2667 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2669 $as_echo "$ac_var='\''$ac_val'\''"
2674 if test -s confdefs.h; then
2684 test "$ac_signal" != 0 &&
2685 $as_echo "$as_me: caught signal $ac_signal"
2686 $as_echo "$as_me: exit $exit_status"
2688 rm -f core *.core core.conftest.* &&
2689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2692 for ac_signal in 1 2 13 15; do
2693 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2698 rm -f -r conftest* confdefs.h
2700 $as_echo "/* confdefs.h */" > confdefs.h
2702 # Predefined preprocessor variables.
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_NAME "$PACKAGE_NAME"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_STRING "$PACKAGE_STRING"
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_URL "$PACKAGE_URL"
2729 # Let the site file select an alternate cache file if it wants to.
2730 # Prefer an explicitly selected file to automatically selected ones.
2733 if test -n "$CONFIG_SITE"; then
2734 ac_site_file1=$CONFIG_SITE
2735 elif test "x$prefix" != xNONE; then
2736 ac_site_file1=$prefix/share/config.site
2737 ac_site_file2=$prefix/etc/config.site
2739 ac_site_file1=$ac_default_prefix/share/config.site
2740 ac_site_file2=$ac_default_prefix/etc/config.site
2742 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2744 test "x$ac_site_file" = xNONE && continue
2745 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2747 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2748 sed 's/^/| /' "$ac_site_file" >&5
2754 # Check that the precious variables saved in the cache have kept the same
2756 ac_cache_corrupted=false
2757 for ac_var in $ac_precious_vars; do
2758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2759 eval ac_new_set=\$ac_env_${ac_var}_set
2760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2761 eval ac_new_val=\$ac_env_${ac_var}_value
2762 case $ac_old_set,$ac_new_set in
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2766 ac_cache_corrupted=: ;;
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2769 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2770 ac_cache_corrupted=: ;;
2773 if test "x$ac_old_val" != "x$ac_new_val"; then
2774 # differences in whitespace do not lead to failure.
2775 ac_old_val_w=`echo x $ac_old_val`
2776 ac_new_val_w=`echo x $ac_new_val`
2777 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2779 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2780 ac_cache_corrupted=:
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2783 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2784 eval $ac_var=\$ac_old_val
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2787 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2789 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2792 # Pass precious variables to config.status.
2793 if test "$ac_new_set" = set; then
2795 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2796 *) ac_arg=$ac_var=$ac_new_val ;;
2798 case " $ac_configure_args " in
2799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2800 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2804 if $ac_cache_corrupted; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2808 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2809 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2811 ## -------------------- ##
2812 ## Main body of script. ##
2813 ## -------------------- ##
2816 ac_cpp='$CPP $CPPFLAGS'
2817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2849 for ac_dir in build "$srcdir"/build; do
2850 for ac_t in install-sh install.sh shtool; do
2851 if test -f "$ac_dir/$ac_t"; then
2853 ac_install_sh="$ac_aux_dir/$ac_t -c"
2858 if test -z "$ac_aux_dir"; then
2859 as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2862 # These three variables are undocumented and unsupported,
2863 # and are intended to be withdrawn in a future Autoconf release.
2864 # They can cause serious problems if a builder's source tree is in a directory
2865 # whose full name contains unusual characters.
2866 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2867 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2868 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2871 eval `$ac_aux_dir/version.sh`
2872 if test -z "$OL_STRING"; then
2873 as_fn_error "could not determine version" "$LINENO" 5
2876 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2877 ac_cv_shtool="$ac_aux_dir/shtool"
2879 as_fn_error "no shtool found in $ac_aux_dir" "$LINENO" 5
2882 SHTOOL="$ac_cv_shtool"
2886 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2887 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2891 if test -d $ac_aux_dir/../.git; then
2892 OPENLDAP_REPO="(from Git clone) "
2893 elif test -d $ac_aux_dir/CVS; then
2894 OPENLDAP_REPO="(from CVS checkout) "
2897 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2899 # Make sure we can run config.sub.
2900 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2901 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2904 $as_echo_n "checking build system type... " >&6; }
2905 if test "${ac_cv_build+set}" = set; then :
2906 $as_echo_n "(cached) " >&6
2908 ac_build_alias=$build_alias
2909 test "x$ac_build_alias" = x &&
2910 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2911 test "x$ac_build_alias" = x &&
2912 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2913 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2914 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2918 $as_echo "$ac_cv_build" >&6; }
2919 case $ac_cv_build in
2921 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2924 ac_save_IFS=$IFS; IFS='-'
2930 # Remember, the first character of IFS is used to create $*,
2931 # except with old shells:
2934 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2938 $as_echo_n "checking host system type... " >&6; }
2939 if test "${ac_cv_host+set}" = set; then :
2940 $as_echo_n "(cached) " >&6
2942 if test "x$host_alias" = x; then
2943 ac_cv_host=$ac_cv_build
2945 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2946 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2951 $as_echo "$ac_cv_host" >&6; }
2954 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2957 ac_save_IFS=$IFS; IFS='-'
2963 # Remember, the first character of IFS is used to create $*,
2964 # except with old shells:
2967 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2971 $as_echo_n "checking target system type... " >&6; }
2972 if test "${ac_cv_target+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2975 if test "x$target_alias" = x; then
2976 ac_cv_target=$ac_cv_host
2978 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2979 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2984 $as_echo "$ac_cv_target" >&6; }
2985 case $ac_cv_target in
2987 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2989 target=$ac_cv_target
2990 ac_save_IFS=$IFS; IFS='-'
2996 # Remember, the first character of IFS is used to create $*,
2997 # except with old shells:
3000 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3003 # The aliases save the names the user supplied, while $host etc.
3004 # will get canonicalized.
3005 test -n "$target_alias" &&
3006 test "$program_prefix$program_suffix$program_transform_name" = \
3008 program_prefix=${target_alias}-
3010 am__api_version="1.9"
3011 # Find a good install program. We prefer a C program (faster),
3012 # so one script is as good as another. But avoid the broken or
3013 # incompatible versions:
3014 # SysV /etc/install, /usr/sbin/install
3015 # SunOS /usr/etc/install
3016 # IRIX /sbin/install
3018 # AmigaOS /C/install, which installs bootblocks on floppy discs
3019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3022 # OS/2's system install, which has a completely different semantic
3023 # ./install, which can be erroneously created by make from ./install.sh.
3024 # Reject install programs that cannot install multiple files.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3027 if test -z "$INSTALL"; then
3028 if test "${ac_cv_path_install+set}" = set; then :
3029 $as_echo_n "(cached) " >&6
3031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir=.
3036 # Account for people who put trailing slashes in PATH elements.
3037 case $as_dir/ in #((
3038 ./ | .// | /[cC]/* | \
3039 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3040 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3043 # OSF1 and SCO ODT 3.0 have their own names for install.
3044 # Don't use installbsd from OSF since it installs stuff as root
3046 for ac_prog in ginstall scoinst install; do
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3049 if test $ac_prog = install &&
3050 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3051 # AIX install. It has an incompatible calling convention.
3053 elif test $ac_prog = install &&
3054 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055 # program-specific install script used by HP pwplus--don't use.
3058 rm -rf conftest.one conftest.two conftest.dir
3059 echo one > conftest.one
3060 echo two > conftest.two
3062 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3063 test -s conftest.one && test -s conftest.two &&
3064 test -s conftest.dir/conftest.one &&
3065 test -s conftest.dir/conftest.two
3067 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3080 rm -rf conftest.one conftest.two conftest.dir
3083 if test "${ac_cv_path_install+set}" = set; then
3084 INSTALL=$ac_cv_path_install
3086 # As a last resort, use the slow shell script. Don't cache a
3087 # value for INSTALL within a source directory, because that will
3088 # break other packages using the cache if that directory is
3089 # removed, or if the value is a relative name.
3090 INSTALL=$ac_install_sh
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3094 $as_echo "$INSTALL" >&6; }
3096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3097 # It thinks the first close brace ends the variable substitution.
3098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3105 $as_echo_n "checking whether build environment is sane... " >&6; }
3108 echo timestamp > conftest.file
3109 # Do `set' in a subshell so we don't clobber the current shell's
3110 # arguments. Must try -L first in case configure is actually a
3111 # symlink; some systems play weird games with the mod time of symlinks
3112 # (eg FreeBSD returns the mod time of the symlink's containing
3115 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3116 if test "$*" = "X"; then
3118 set X `ls -t $srcdir/configure conftest.file`
3121 if test "$*" != "X $srcdir/configure conftest.file" \
3122 && test "$*" != "X conftest.file $srcdir/configure"; then
3124 # If neither matched, then we have a broken ls. This can happen
3125 # if, for instance, CONFIG_SHELL is bash and it inherits a
3126 # broken ls alias from the environment. This has actually
3127 # happened. Such a system could not be considered "sane".
3128 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3129 alias in your environment" "$LINENO" 5
3132 test "$2" = conftest.file
3138 as_fn_error "newly created file is older than distributed files!
3139 Check your system clock" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3142 $as_echo "yes" >&6; }
3143 test "$program_prefix" != NONE &&
3144 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3145 # Use a double $ so make ignores it.
3146 test "$program_suffix" != NONE &&
3147 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3148 # Double any \ or $.
3149 # By default was `s,x,x', remove it if useless.
3150 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3151 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3153 # expand $ac_aux_dir to an absolute path
3154 am_aux_dir=`cd $ac_aux_dir && pwd`
3156 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3157 # Use eval to expand $SHELL
3158 if eval "$MISSING --run true"; then
3159 am_missing_run="$MISSING --run "
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3163 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3166 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3167 # We used to keeping the `.' as first argument, in order to
3168 # allow $(mkdir_p) to be used without argument. As in
3169 # $(mkdir_p) $(somedir)
3170 # where $(somedir) is conditionally defined. However this is wrong
3172 # 1. if the package is installed by a user who cannot write `.'
3173 # make install will fail,
3174 # 2. the above comment should most certainly read
3175 # $(mkdir_p) $(DESTDIR)$(somedir)
3176 # so it does not work when $(somedir) is undefined and
3177 # $(DESTDIR) is not.
3178 # To support the latter case, we have to write
3179 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3180 # so the `.' trick is pointless.
3181 mkdir_p='mkdir -p --'
3183 # On NextStep and OpenStep, the `mkdir' command does not
3184 # recognize any option. It will interpret all options as
3185 # directories to create, and then abort because `.' already
3187 for d in ./-p ./--version;
3189 test -d $d && rmdir $d
3191 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3192 if test -f "$ac_aux_dir/mkinstalldirs"; then
3193 mkdir_p='$(mkinstalldirs)'
3195 mkdir_p='$(install_sh) -d'
3199 for ac_prog in gawk mawk nawk awk
3201 # Extract the first word of "$ac_prog", so it can be a program name with args.
3202 set dummy $ac_prog; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_AWK+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 if test -n "$AWK"; then
3209 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_AWK="$ac_prog"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229 if test -n "$AWK"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3231 $as_echo "$AWK" >&6; }
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3238 test -n "$AWK" && break
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3242 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3244 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3245 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3246 $as_echo_n "(cached) " >&6
3248 cat >conftest.make <<\_ACEOF
3251 @echo '@@@%%%=$(MAKE)=@@@%%%'
3253 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3254 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3256 eval ac_cv_prog_make_${ac_make}_set=yes;;
3258 eval ac_cv_prog_make_${ac_make}_set=no;;
3262 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3264 $as_echo "yes" >&6; }
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 SET_MAKE="MAKE=${MAKE-make}"
3272 rm -rf .tst 2>/dev/null
3273 mkdir .tst 2>/dev/null
3274 if test -d .tst; then
3279 rmdir .tst 2>/dev/null
3281 # test to see if srcdir already configured
3282 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3283 test -f $srcdir/config.status; then
3284 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3297 # Define the identity of the package.
3302 # Some tools Automake needs.
3304 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3307 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3310 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3313 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3316 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3318 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3320 # Installed binaries are usually stripped using `strip' when the user
3321 # run `make install-strip'. However `strip' might not be the right
3322 # tool to use in cross-compilation environments, therefore Automake
3323 # will honor the `STRIP' environment variable to overrule this program.
3324 if test "$cross_compiling" != no; then
3325 if test -n "$ac_tool_prefix"; then
3326 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}strip; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if test "${ac_cv_prog_STRIP+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3333 if test -n "$STRIP"; then
3334 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3353 STRIP=$ac_cv_prog_STRIP
3354 if test -n "$STRIP"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3356 $as_echo "$STRIP" >&6; }
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3364 if test -z "$ac_cv_prog_STRIP"; then
3366 # Extract the first word of "strip", so it can be a program name with args.
3367 set dummy strip; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3371 $as_echo_n "(cached) " >&6
3373 if test -n "$ac_ct_STRIP"; then
3374 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383 ac_cv_prog_ac_ct_STRIP="strip"
3384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3394 if test -n "$ac_ct_STRIP"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3396 $as_echo "$ac_ct_STRIP" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3402 if test "x$ac_ct_STRIP" = x; then
3405 case $cross_compiling:$ac_tool_warned in
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3414 STRIP="$ac_cv_prog_STRIP"
3418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3420 # We need awk for the "check" target. The system "awk" is bad on
3422 # Always define AMTAR for backward compatibility.
3424 AMTAR=${AMTAR-"${am_missing_run}tar"}
3426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3432 cat >>confdefs.h <<_ACEOF
3433 #define OPENLDAP_PACKAGE "$PACKAGE"
3437 cat >>confdefs.h <<_ACEOF
3438 #define OPENLDAP_VERSION "$VERSION"
3443 cat >>confdefs.h <<_ACEOF
3444 #define LDAP_VENDOR_VERSION $OL_API_INC
3448 cat >>confdefs.h <<_ACEOF
3449 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3453 cat >>confdefs.h <<_ACEOF
3454 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3458 cat >>confdefs.h <<_ACEOF
3459 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3463 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3465 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3467 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3473 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3475 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3477 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3481 $as_echo_n "checking configure arguments... " >&6; }
3486 ldap_subdir="/openldap"
3489 # Check whether --with-subdir was given.
3490 if test "${with_subdir+set}" = set; then :
3491 withval=$with_subdir; case "$withval" in
3497 ldap_subdir="$withval"
3500 ldap_subdir="/$withval"
3507 # OpenLDAP --enable-debug
3509 # Check whether --enable-debug was given.
3510 if test "${enable_debug+set}" = set; then :
3511 enableval=$enable_debug;
3513 for ol_val in no yes traditional ; do
3514 if test "$enableval" = "$ol_val" ; then
3518 if test "$ol_arg" = "invalid" ; then
3519 as_fn_error "bad value $enableval for --enable-debug" "$LINENO" 5
3521 ol_enable_debug="$ol_arg"
3527 # end --enable-debug
3528 # OpenLDAP --enable-dynamic
3530 # Check whether --enable-dynamic was given.
3531 if test "${enable_dynamic+set}" = set; then :
3532 enableval=$enable_dynamic;
3534 for ol_val in auto yes no ; do
3535 if test "$enableval" = "$ol_val" ; then
3539 if test "$ol_arg" = "invalid" ; then
3540 as_fn_error "bad value $enableval for --enable-dynamic" "$LINENO" 5
3542 ol_enable_dynamic="$ol_arg"
3545 ol_enable_dynamic=no
3548 # end --enable-dynamic
3549 # OpenLDAP --enable-syslog
3551 # Check whether --enable-syslog was given.
3552 if test "${enable_syslog+set}" = set; then :
3553 enableval=$enable_syslog;
3555 for ol_val in auto yes no ; do
3556 if test "$enableval" = "$ol_val" ; then
3560 if test "$ol_arg" = "invalid" ; then
3561 as_fn_error "bad value $enableval for --enable-syslog" "$LINENO" 5
3563 ol_enable_syslog="$ol_arg"
3566 ol_enable_syslog=auto
3569 # end --enable-syslog
3570 # OpenLDAP --enable-proctitle
3572 # Check whether --enable-proctitle was given.
3573 if test "${enable_proctitle+set}" = set; then :
3574 enableval=$enable_proctitle;
3576 for ol_val in auto yes no ; do
3577 if test "$enableval" = "$ol_val" ; then
3581 if test "$ol_arg" = "invalid" ; then
3582 as_fn_error "bad value $enableval for --enable-proctitle" "$LINENO" 5
3584 ol_enable_proctitle="$ol_arg"
3587 ol_enable_proctitle=yes
3590 # end --enable-proctitle
3591 ol_enable_referrals=${ol_enable_referrals-no}
3592 # OpenLDAP --enable-ipv6
3594 # Check whether --enable-ipv6 was given.
3595 if test "${enable_ipv6+set}" = set; then :
3596 enableval=$enable_ipv6;
3598 for ol_val in auto yes no ; do
3599 if test "$enableval" = "$ol_val" ; then
3603 if test "$ol_arg" = "invalid" ; then
3604 as_fn_error "bad value $enableval for --enable-ipv6" "$LINENO" 5
3606 ol_enable_ipv6="$ol_arg"
3613 # OpenLDAP --enable-local
3615 # Check whether --enable-local was given.
3616 if test "${enable_local+set}" = set; then :
3617 enableval=$enable_local;
3619 for ol_val in auto yes no ; do
3620 if test "$enableval" = "$ol_val" ; then
3624 if test "$ol_arg" = "invalid" ; then
3625 as_fn_error "bad value $enableval for --enable-local" "$LINENO" 5
3627 ol_enable_local="$ol_arg"
3630 ol_enable_local=auto
3633 # end --enable-local
3635 # OpenLDAP --with-cyrus_sasl
3637 # Check whether --with-cyrus_sasl was given.
3638 if test "${with_cyrus_sasl+set}" = set; then :
3639 withval=$with_cyrus_sasl;
3641 for ol_val in auto yes no ; do
3642 if test "$withval" = "$ol_val" ; then
3646 if test "$ol_arg" = "invalid" ; then
3647 as_fn_error "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3649 ol_with_cyrus_sasl="$ol_arg"
3652 ol_with_cyrus_sasl="auto"
3654 # end --with-cyrus_sasl
3656 # OpenLDAP --with-fetch
3658 # Check whether --with-fetch was given.
3659 if test "${with_fetch+set}" = set; then :
3660 withval=$with_fetch;
3662 for ol_val in auto yes no ; do
3663 if test "$withval" = "$ol_val" ; then
3667 if test "$ol_arg" = "invalid" ; then
3668 as_fn_error "bad value $withval for --with-fetch" "$LINENO" 5
3670 ol_with_fetch="$ol_arg"
3673 ol_with_fetch="auto"
3677 # OpenLDAP --with-threads
3679 # Check whether --with-threads was given.
3680 if test "${with_threads+set}" = set; then :
3681 withval=$with_threads;
3683 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3684 if test "$withval" = "$ol_val" ; then
3688 if test "$ol_arg" = "invalid" ; then
3689 as_fn_error "bad value $withval for --with-threads" "$LINENO" 5
3691 ol_with_threads="$ol_arg"
3694 ol_with_threads="auto"
3696 # end --with-threads
3698 # OpenLDAP --with-tls
3700 # Check whether --with-tls was given.
3701 if test "${with_tls+set}" = set; then :
3704 for ol_val in auto openssl gnutls moznss yes no ; do
3705 if test "$withval" = "$ol_val" ; then
3709 if test "$ol_arg" = "invalid" ; then
3710 as_fn_error "bad value $withval for --with-tls" "$LINENO" 5
3712 ol_with_tls="$ol_arg"
3719 # OpenLDAP --with-yielding_select
3721 # Check whether --with-yielding_select was given.
3722 if test "${with_yielding_select+set}" = set; then :
3723 withval=$with_yielding_select;
3725 for ol_val in auto yes no manual ; do
3726 if test "$withval" = "$ol_val" ; then
3730 if test "$ol_arg" = "invalid" ; then
3731 as_fn_error "bad value $withval for --with-yielding_select" "$LINENO" 5
3733 ol_with_yielding_select="$ol_arg"
3736 ol_with_yielding_select="auto"
3738 # end --with-yielding_select
3740 # OpenLDAP --with-mp
3742 # Check whether --with-mp was given.
3743 if test "${with_mp+set}" = set; then :
3746 for ol_val in auto longlong long bignum gmp yes no ; do
3747 if test "$withval" = "$ol_val" ; then
3751 if test "$ol_arg" = "invalid" ; then
3752 as_fn_error "bad value $withval for --with-mp" "$LINENO" 5
3754 ol_with_mp="$ol_arg"
3761 # OpenLDAP --with-odbc
3763 # Check whether --with-odbc was given.
3764 if test "${with_odbc+set}" = set; then :
3767 for ol_val in auto iodbc unixodbc odbc32 ; do
3768 if test "$withval" = "$ol_val" ; then
3772 if test "$ol_arg" = "invalid" ; then
3773 as_fn_error "bad value $withval for --with-odbc" "$LINENO" 5
3775 ol_with_odbc="$ol_arg"
3784 # Check whether --enable-xxslapdoptions was given.
3785 if test "${enable_xxslapdoptions+set}" = set; then :
3786 enableval=$enable_xxslapdoptions;
3789 # OpenLDAP --enable-slapd
3791 # Check whether --enable-slapd was given.
3792 if test "${enable_slapd+set}" = set; then :
3793 enableval=$enable_slapd;
3795 for ol_val in auto yes no ; do
3796 if test "$enableval" = "$ol_val" ; then
3800 if test "$ol_arg" = "invalid" ; then
3801 as_fn_error "bad value $enableval for --enable-slapd" "$LINENO" 5
3803 ol_enable_slapd="$ol_arg"
3809 # end --enable-slapd
3810 # OpenLDAP --enable-dynacl
3812 # Check whether --enable-dynacl was given.
3813 if test "${enable_dynacl+set}" = set; then :
3814 enableval=$enable_dynacl;
3816 for ol_val in auto yes no ; do
3817 if test "$enableval" = "$ol_val" ; then
3821 if test "$ol_arg" = "invalid" ; then
3822 as_fn_error "bad value $enableval for --enable-dynacl" "$LINENO" 5
3824 ol_enable_dynacl="$ol_arg"
3830 # end --enable-dynacl
3831 # OpenLDAP --enable-aci
3833 # Check whether --enable-aci was given.
3834 if test "${enable_aci+set}" = set; then :
3835 enableval=$enable_aci;
3837 for ol_val in no yes mod ; do
3838 if test "$enableval" = "$ol_val" ; then
3842 if test "$ol_arg" = "invalid" ; then
3843 as_fn_error "bad value $enableval for --enable-aci" "$LINENO" 5
3845 ol_enable_aci="$ol_arg"
3852 # OpenLDAP --enable-cleartext
3854 # Check whether --enable-cleartext was given.
3855 if test "${enable_cleartext+set}" = set; then :
3856 enableval=$enable_cleartext;
3858 for ol_val in auto yes no ; do
3859 if test "$enableval" = "$ol_val" ; then
3863 if test "$ol_arg" = "invalid" ; then
3864 as_fn_error "bad value $enableval for --enable-cleartext" "$LINENO" 5
3866 ol_enable_cleartext="$ol_arg"
3869 ol_enable_cleartext=yes
3872 # end --enable-cleartext
3873 # OpenLDAP --enable-crypt
3875 # Check whether --enable-crypt was given.
3876 if test "${enable_crypt+set}" = set; then :
3877 enableval=$enable_crypt;
3879 for ol_val in auto yes no ; do
3880 if test "$enableval" = "$ol_val" ; then
3884 if test "$ol_arg" = "invalid" ; then
3885 as_fn_error "bad value $enableval for --enable-crypt" "$LINENO" 5
3887 ol_enable_crypt="$ol_arg"
3893 # end --enable-crypt
3894 # OpenLDAP --enable-lmpasswd
3896 # Check whether --enable-lmpasswd was given.
3897 if test "${enable_lmpasswd+set}" = set; then :
3898 enableval=$enable_lmpasswd;
3900 for ol_val in auto yes no ; do
3901 if test "$enableval" = "$ol_val" ; then
3905 if test "$ol_arg" = "invalid" ; then
3906 as_fn_error "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3908 ol_enable_lmpasswd="$ol_arg"
3911 ol_enable_lmpasswd=no
3914 # end --enable-lmpasswd
3915 # OpenLDAP --enable-spasswd
3917 # Check whether --enable-spasswd was given.
3918 if test "${enable_spasswd+set}" = set; then :
3919 enableval=$enable_spasswd;
3921 for ol_val in auto yes no ; do
3922 if test "$enableval" = "$ol_val" ; then
3926 if test "$ol_arg" = "invalid" ; then
3927 as_fn_error "bad value $enableval for --enable-spasswd" "$LINENO" 5
3929 ol_enable_spasswd="$ol_arg"
3932 ol_enable_spasswd=no
3935 # end --enable-spasswd
3936 # OpenLDAP --enable-modules
3938 # Check whether --enable-modules was given.
3939 if test "${enable_modules+set}" = set; then :
3940 enableval=$enable_modules;
3942 for ol_val in auto yes no ; do
3943 if test "$enableval" = "$ol_val" ; then
3947 if test "$ol_arg" = "invalid" ; then
3948 as_fn_error "bad value $enableval for --enable-modules" "$LINENO" 5
3950 ol_enable_modules="$ol_arg"
3953 ol_enable_modules=no
3956 # end --enable-modules
3957 # OpenLDAP --enable-rewrite
3959 # Check whether --enable-rewrite was given.
3960 if test "${enable_rewrite+set}" = set; then :
3961 enableval=$enable_rewrite;
3963 for ol_val in auto yes no ; do
3964 if test "$enableval" = "$ol_val" ; then
3968 if test "$ol_arg" = "invalid" ; then
3969 as_fn_error "bad value $enableval for --enable-rewrite" "$LINENO" 5
3971 ol_enable_rewrite="$ol_arg"
3974 ol_enable_rewrite=auto
3977 # end --enable-rewrite
3978 # OpenLDAP --enable-rlookups
3980 # Check whether --enable-rlookups was given.
3981 if test "${enable_rlookups+set}" = set; then :
3982 enableval=$enable_rlookups;
3984 for ol_val in auto yes no ; do
3985 if test "$enableval" = "$ol_val" ; then
3989 if test "$ol_arg" = "invalid" ; then
3990 as_fn_error "bad value $enableval for --enable-rlookups" "$LINENO" 5
3992 ol_enable_rlookups="$ol_arg"
3995 ol_enable_rlookups=no
3998 # end --enable-rlookups
3999 # OpenLDAP --enable-slapi
4001 # Check whether --enable-slapi was given.
4002 if test "${enable_slapi+set}" = set; then :
4003 enableval=$enable_slapi;
4005 for ol_val in auto yes no ; do
4006 if test "$enableval" = "$ol_val" ; then
4010 if test "$ol_arg" = "invalid" ; then
4011 as_fn_error "bad value $enableval for --enable-slapi" "$LINENO" 5
4013 ol_enable_slapi="$ol_arg"
4019 # end --enable-slapi
4020 # OpenLDAP --enable-slp
4022 # Check whether --enable-slp was given.
4023 if test "${enable_slp+set}" = set; then :
4024 enableval=$enable_slp;
4026 for ol_val in auto yes no ; do
4027 if test "$enableval" = "$ol_val" ; then
4031 if test "$ol_arg" = "invalid" ; then
4032 as_fn_error "bad value $enableval for --enable-slp" "$LINENO" 5
4034 ol_enable_slp="$ol_arg"
4041 # OpenLDAP --enable-wrappers
4043 # Check whether --enable-wrappers was given.
4044 if test "${enable_wrappers+set}" = set; then :
4045 enableval=$enable_wrappers;
4047 for ol_val in auto yes no ; do
4048 if test "$enableval" = "$ol_val" ; then
4052 if test "$ol_arg" = "invalid" ; then
4053 as_fn_error "bad value $enableval for --enable-wrappers" "$LINENO" 5
4055 ol_enable_wrappers="$ol_arg"
4058 ol_enable_wrappers=no
4061 # end --enable-wrappers
4081 # Check whether --enable-xxslapbackends was given.
4082 if test "${enable_xxslapbackends+set}" = set; then :
4083 enableval=$enable_xxslapbackends;
4087 # OpenLDAP --enable-backends
4089 # Check whether --enable-backends was given.
4090 if test "${enable_backends+set}" = set; then :
4091 enableval=$enable_backends;
4093 for ol_val in no yes mod ; do
4094 if test "$enableval" = "$ol_val" ; then
4098 if test "$ol_arg" = "invalid" ; then
4099 as_fn_error "bad value $enableval for --enable-backends" "$LINENO" 5
4101 ol_enable_backends="$ol_arg"
4105 # end --enable-backends
4106 # OpenLDAP --enable-bdb
4108 # Check whether --enable-bdb was given.
4109 if test "${enable_bdb+set}" = set; then :
4110 enableval=$enable_bdb;
4112 for ol_val in no yes mod ; do
4113 if test "$enableval" = "$ol_val" ; then
4117 if test "$ol_arg" = "invalid" ; then
4118 as_fn_error "bad value $enableval for --enable-bdb" "$LINENO" 5
4120 ol_enable_bdb="$ol_arg"
4123 ol_enable_bdb=${ol_enable_backends:-no}
4127 # OpenLDAP --enable-dnssrv
4129 # Check whether --enable-dnssrv was given.
4130 if test "${enable_dnssrv+set}" = set; then :
4131 enableval=$enable_dnssrv;
4133 for ol_val in no yes mod ; do
4134 if test "$enableval" = "$ol_val" ; then
4138 if test "$ol_arg" = "invalid" ; then
4139 as_fn_error "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4141 ol_enable_dnssrv="$ol_arg"
4144 ol_enable_dnssrv=${ol_enable_backends:-no}
4147 # end --enable-dnssrv
4148 # OpenLDAP --enable-hdb
4150 # Check whether --enable-hdb was given.
4151 if test "${enable_hdb+set}" = set; then :
4152 enableval=$enable_hdb;
4154 for ol_val in no yes mod ; do
4155 if test "$enableval" = "$ol_val" ; then
4159 if test "$ol_arg" = "invalid" ; then
4160 as_fn_error "bad value $enableval for --enable-hdb" "$LINENO" 5
4162 ol_enable_hdb="$ol_arg"
4165 ol_enable_hdb=${ol_enable_backends:-no}
4169 # OpenLDAP --enable-ldap
4171 # Check whether --enable-ldap was given.
4172 if test "${enable_ldap+set}" = set; then :
4173 enableval=$enable_ldap;
4175 for ol_val in no yes mod ; do
4176 if test "$enableval" = "$ol_val" ; then
4180 if test "$ol_arg" = "invalid" ; then
4181 as_fn_error "bad value $enableval for --enable-ldap" "$LINENO" 5
4183 ol_enable_ldap="$ol_arg"
4186 ol_enable_ldap=${ol_enable_backends:-no}
4190 # OpenLDAP --enable-mdb
4192 # Check whether --enable-mdb was given.
4193 if test "${enable_mdb+set}" = set; then :
4194 enableval=$enable_mdb;
4196 for ol_val in no yes mod ; do
4197 if test "$enableval" = "$ol_val" ; then
4201 if test "$ol_arg" = "invalid" ; then
4202 as_fn_error "bad value $enableval for --enable-mdb" "$LINENO" 5
4204 ol_enable_mdb="$ol_arg"
4207 ol_enable_mdb=${ol_enable_backends:-yes}
4211 # OpenLDAP --enable-meta
4213 # Check whether --enable-meta was given.
4214 if test "${enable_meta+set}" = set; then :
4215 enableval=$enable_meta;
4217 for ol_val in no yes mod ; do
4218 if test "$enableval" = "$ol_val" ; then
4222 if test "$ol_arg" = "invalid" ; then
4223 as_fn_error "bad value $enableval for --enable-meta" "$LINENO" 5
4225 ol_enable_meta="$ol_arg"
4228 ol_enable_meta=${ol_enable_backends:-no}
4232 # OpenLDAP --enable-asyncmeta
4234 # Check whether --enable-asyncmeta was given.
4235 if test "${enable_asyncmeta+set}" = set; then :
4236 enableval=$enable_asyncmeta;
4238 for ol_val in no yes mod ; do
4239 if test "$enableval" = "$ol_val" ; then
4243 if test "$ol_arg" = "invalid" ; then
4244 as_fn_error "bad value $enableval for --enable-asyncmeta" "$LINENO" 5
4246 ol_enable_asyncmeta="$ol_arg"
4249 ol_enable_asyncmeta=${ol_enable_backends:-no}
4252 # end --enable-asyncmeta
4253 # OpenLDAP --enable-monitor
4255 # Check whether --enable-monitor was given.
4256 if test "${enable_monitor+set}" = set; then :
4257 enableval=$enable_monitor;
4259 for ol_val in no yes mod ; do
4260 if test "$enableval" = "$ol_val" ; then
4264 if test "$ol_arg" = "invalid" ; then
4265 as_fn_error "bad value $enableval for --enable-monitor" "$LINENO" 5
4267 ol_enable_monitor="$ol_arg"
4270 ol_enable_monitor=${ol_enable_backends:-yes}
4273 # end --enable-monitor
4274 # OpenLDAP --enable-ndb
4276 # Check whether --enable-ndb was given.
4277 if test "${enable_ndb+set}" = set; then :
4278 enableval=$enable_ndb;
4280 for ol_val in no yes mod ; do
4281 if test "$enableval" = "$ol_val" ; then
4285 if test "$ol_arg" = "invalid" ; then
4286 as_fn_error "bad value $enableval for --enable-ndb" "$LINENO" 5
4288 ol_enable_ndb="$ol_arg"
4291 ol_enable_ndb=${ol_enable_backends:-no}
4295 # OpenLDAP --enable-null
4297 # Check whether --enable-null was given.
4298 if test "${enable_null+set}" = set; then :
4299 enableval=$enable_null;
4301 for ol_val in no yes mod ; do
4302 if test "$enableval" = "$ol_val" ; then
4306 if test "$ol_arg" = "invalid" ; then
4307 as_fn_error "bad value $enableval for --enable-null" "$LINENO" 5
4309 ol_enable_null="$ol_arg"
4312 ol_enable_null=${ol_enable_backends:-no}
4316 # OpenLDAP --enable-passwd
4318 # Check whether --enable-passwd was given.
4319 if test "${enable_passwd+set}" = set; then :
4320 enableval=$enable_passwd;
4322 for ol_val in no yes mod ; do
4323 if test "$enableval" = "$ol_val" ; then
4327 if test "$ol_arg" = "invalid" ; then
4328 as_fn_error "bad value $enableval for --enable-passwd" "$LINENO" 5
4330 ol_enable_passwd="$ol_arg"
4333 ol_enable_passwd=${ol_enable_backends:-no}
4336 # end --enable-passwd
4337 # OpenLDAP --enable-perl
4339 # Check whether --enable-perl was given.
4340 if test "${enable_perl+set}" = set; then :
4341 enableval=$enable_perl;
4343 for ol_val in no yes mod ; do
4344 if test "$enableval" = "$ol_val" ; then
4348 if test "$ol_arg" = "invalid" ; then
4349 as_fn_error "bad value $enableval for --enable-perl" "$LINENO" 5
4351 ol_enable_perl="$ol_arg"
4354 ol_enable_perl=${ol_enable_backends:-no}
4358 # OpenLDAP --enable-relay
4360 # Check whether --enable-relay was given.
4361 if test "${enable_relay+set}" = set; then :
4362 enableval=$enable_relay;
4364 for ol_val in no yes mod ; do
4365 if test "$enableval" = "$ol_val" ; then
4369 if test "$ol_arg" = "invalid" ; then
4370 as_fn_error "bad value $enableval for --enable-relay" "$LINENO" 5
4372 ol_enable_relay="$ol_arg"
4375 ol_enable_relay=${ol_enable_backends:-yes}
4378 # end --enable-relay
4379 # OpenLDAP --enable-shell
4381 # Check whether --enable-shell was given.
4382 if test "${enable_shell+set}" = set; then :
4383 enableval=$enable_shell;
4385 for ol_val in no yes mod ; do
4386 if test "$enableval" = "$ol_val" ; then
4390 if test "$ol_arg" = "invalid" ; then
4391 as_fn_error "bad value $enableval for --enable-shell" "$LINENO" 5
4393 ol_enable_shell="$ol_arg"
4396 ol_enable_shell=${ol_enable_backends:-no}
4399 # end --enable-shell
4400 # OpenLDAP --enable-sock
4402 # Check whether --enable-sock was given.
4403 if test "${enable_sock+set}" = set; then :
4404 enableval=$enable_sock;
4406 for ol_val in no yes mod ; do
4407 if test "$enableval" = "$ol_val" ; then
4411 if test "$ol_arg" = "invalid" ; then
4412 as_fn_error "bad value $enableval for --enable-sock" "$LINENO" 5
4414 ol_enable_sock="$ol_arg"
4417 ol_enable_sock=${ol_enable_backends:-no}
4421 # OpenLDAP --enable-sql
4423 # Check whether --enable-sql was given.
4424 if test "${enable_sql+set}" = set; then :
4425 enableval=$enable_sql;
4427 for ol_val in no yes mod ; do
4428 if test "$enableval" = "$ol_val" ; then
4432 if test "$ol_arg" = "invalid" ; then
4433 as_fn_error "bad value $enableval for --enable-sql" "$LINENO" 5
4435 ol_enable_sql="$ol_arg"
4438 ol_enable_sql=${ol_enable_backends:-no}
4442 # OpenLDAP --enable-wt
4444 # Check whether --enable-wt was given.
4445 if test "${enable_wt+set}" = set; then :
4446 enableval=$enable_wt;
4448 for ol_val in no yes mod ; do
4449 if test "$enableval" = "$ol_val" ; then
4453 if test "$ol_arg" = "invalid" ; then
4454 as_fn_error "bad value $enableval for --enable-wt" "$LINENO" 5
4456 ol_enable_wt="$ol_arg"
4459 ol_enable_wt=${ol_enable_backends:-no}
4464 Overlays="accesslog \
4486 # Check whether --enable-xxslapoverlays was given.
4487 if test "${enable_xxslapoverlays+set}" = set; then :
4488 enableval=$enable_xxslapoverlays;
4492 # OpenLDAP --enable-overlays
4494 # Check whether --enable-overlays was given.
4495 if test "${enable_overlays+set}" = set; then :
4496 enableval=$enable_overlays;
4498 for ol_val in no yes mod ; do
4499 if test "$enableval" = "$ol_val" ; then
4503 if test "$ol_arg" = "invalid" ; then
4504 as_fn_error "bad value $enableval for --enable-overlays" "$LINENO" 5
4506 ol_enable_overlays="$ol_arg"
4510 # end --enable-overlays
4511 # OpenLDAP --enable-accesslog
4513 # Check whether --enable-accesslog was given.
4514 if test "${enable_accesslog+set}" = set; then :
4515 enableval=$enable_accesslog;
4517 for ol_val in no yes mod ; do
4518 if test "$enableval" = "$ol_val" ; then
4522 if test "$ol_arg" = "invalid" ; then
4523 as_fn_error "bad value $enableval for --enable-accesslog" "$LINENO" 5
4525 ol_enable_accesslog="$ol_arg"
4528 ol_enable_accesslog=${ol_enable_overlays:-no}
4531 # end --enable-accesslog
4533 # OpenLDAP --enable-auditlog
4535 # Check whether --enable-auditlog was given.
4536 if test "${enable_auditlog+set}" = set; then :
4537 enableval=$enable_auditlog;
4539 for ol_val in no yes mod ; do
4540 if test "$enableval" = "$ol_val" ; then
4544 if test "$ol_arg" = "invalid" ; then
4545 as_fn_error "bad value $enableval for --enable-auditlog" "$LINENO" 5
4547 ol_enable_auditlog="$ol_arg"
4550 ol_enable_auditlog=${ol_enable_overlays:-no}
4553 # end --enable-auditlog
4555 # OpenLDAP --enable-autoca
4557 # Check whether --enable-autoca was given.
4558 if test "${enable_autoca+set}" = set; then :
4559 enableval=$enable_autoca;
4561 for ol_val in no yes mod ; do
4562 if test "$enableval" = "$ol_val" ; then
4566 if test "$ol_arg" = "invalid" ; then
4567 as_fn_error "bad value $enableval for --enable-autoca" "$LINENO" 5
4569 ol_enable_autoca="$ol_arg"
4572 ol_enable_autoca=${ol_enable_overlays:-no}
4575 # end --enable-autoca
4577 # OpenLDAP --enable-collect
4579 # Check whether --enable-collect was given.
4580 if test "${enable_collect+set}" = set; then :
4581 enableval=$enable_collect;
4583 for ol_val in no yes mod ; do
4584 if test "$enableval" = "$ol_val" ; then
4588 if test "$ol_arg" = "invalid" ; then
4589 as_fn_error "bad value $enableval for --enable-collect" "$LINENO" 5
4591 ol_enable_collect="$ol_arg"
4594 ol_enable_collect=${ol_enable_overlays:-no}
4597 # end --enable-collect
4599 # OpenLDAP --enable-constraint
4601 # Check whether --enable-constraint was given.
4602 if test "${enable_constraint+set}" = set; then :
4603 enableval=$enable_constraint;
4605 for ol_val in no yes mod ; do
4606 if test "$enableval" = "$ol_val" ; then
4610 if test "$ol_arg" = "invalid" ; then
4611 as_fn_error "bad value $enableval for --enable-constraint" "$LINENO" 5
4613 ol_enable_constraint="$ol_arg"
4616 ol_enable_constraint=${ol_enable_overlays:-no}
4619 # end --enable-constraint
4621 # OpenLDAP --enable-dds
4623 # Check whether --enable-dds was given.
4624 if test "${enable_dds+set}" = set; then :
4625 enableval=$enable_dds;
4627 for ol_val in no yes mod ; do
4628 if test "$enableval" = "$ol_val" ; then
4632 if test "$ol_arg" = "invalid" ; then
4633 as_fn_error "bad value $enableval for --enable-dds" "$LINENO" 5
4635 ol_enable_dds="$ol_arg"
4638 ol_enable_dds=${ol_enable_overlays:-no}
4643 # OpenLDAP --enable-deref
4645 # Check whether --enable-deref was given.
4646 if test "${enable_deref+set}" = set; then :
4647 enableval=$enable_deref;
4649 for ol_val in no yes mod ; do
4650 if test "$enableval" = "$ol_val" ; then
4654 if test "$ol_arg" = "invalid" ; then
4655 as_fn_error "bad value $enableval for --enable-deref" "$LINENO" 5
4657 ol_enable_deref="$ol_arg"
4660 ol_enable_deref=${ol_enable_overlays:-no}
4663 # end --enable-deref
4665 # OpenLDAP --enable-dyngroup
4667 # Check whether --enable-dyngroup was given.
4668 if test "${enable_dyngroup+set}" = set; then :
4669 enableval=$enable_dyngroup;
4671 for ol_val in no yes mod ; do
4672 if test "$enableval" = "$ol_val" ; then
4676 if test "$ol_arg" = "invalid" ; then
4677 as_fn_error "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4679 ol_enable_dyngroup="$ol_arg"
4682 ol_enable_dyngroup=${ol_enable_overlays:-no}
4685 # end --enable-dyngroup
4687 # OpenLDAP --enable-dynlist
4689 # Check whether --enable-dynlist was given.
4690 if test "${enable_dynlist+set}" = set; then :
4691 enableval=$enable_dynlist;
4693 for ol_val in no yes mod ; do
4694 if test "$enableval" = "$ol_val" ; then
4698 if test "$ol_arg" = "invalid" ; then
4699 as_fn_error "bad value $enableval for --enable-dynlist" "$LINENO" 5
4701 ol_enable_dynlist="$ol_arg"
4704 ol_enable_dynlist=${ol_enable_overlays:-no}
4707 # end --enable-dynlist
4709 # OpenLDAP --enable-memberof
4711 # Check whether --enable-memberof was given.
4712 if test "${enable_memberof+set}" = set; then :
4713 enableval=$enable_memberof;
4715 for ol_val in no yes mod ; do
4716 if test "$enableval" = "$ol_val" ; then
4720 if test "$ol_arg" = "invalid" ; then
4721 as_fn_error "bad value $enableval for --enable-memberof" "$LINENO" 5
4723 ol_enable_memberof="$ol_arg"
4726 ol_enable_memberof=${ol_enable_overlays:-no}
4729 # end --enable-memberof
4731 # OpenLDAP --enable-ppolicy
4733 # Check whether --enable-ppolicy was given.
4734 if test "${enable_ppolicy+set}" = set; then :
4735 enableval=$enable_ppolicy;
4737 for ol_val in no yes mod ; do
4738 if test "$enableval" = "$ol_val" ; then
4742 if test "$ol_arg" = "invalid" ; then
4743 as_fn_error "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4745 ol_enable_ppolicy="$ol_arg"
4748 ol_enable_ppolicy=${ol_enable_overlays:-no}
4751 # end --enable-ppolicy
4753 # OpenLDAP --enable-proxycache
4755 # Check whether --enable-proxycache was given.
4756 if test "${enable_proxycache+set}" = set; then :
4757 enableval=$enable_proxycache;
4759 for ol_val in no yes mod ; do
4760 if test "$enableval" = "$ol_val" ; then
4764 if test "$ol_arg" = "invalid" ; then
4765 as_fn_error "bad value $enableval for --enable-proxycache" "$LINENO" 5
4767 ol_enable_proxycache="$ol_arg"
4770 ol_enable_proxycache=${ol_enable_overlays:-no}
4773 # end --enable-proxycache
4775 # OpenLDAP --enable-refint
4777 # Check whether --enable-refint was given.
4778 if test "${enable_refint+set}" = set; then :
4779 enableval=$enable_refint;
4781 for ol_val in no yes mod ; do
4782 if test "$enableval" = "$ol_val" ; then
4786 if test "$ol_arg" = "invalid" ; then
4787 as_fn_error "bad value $enableval for --enable-refint" "$LINENO" 5
4789 ol_enable_refint="$ol_arg"
4792 ol_enable_refint=${ol_enable_overlays:-no}
4795 # end --enable-refint
4797 # OpenLDAP --enable-retcode
4799 # Check whether --enable-retcode was given.
4800 if test "${enable_retcode+set}" = set; then :
4801 enableval=$enable_retcode;
4803 for ol_val in no yes mod ; do
4804 if test "$enableval" = "$ol_val" ; then
4808 if test "$ol_arg" = "invalid" ; then
4809 as_fn_error "bad value $enableval for --enable-retcode" "$LINENO" 5
4811 ol_enable_retcode="$ol_arg"
4814 ol_enable_retcode=${ol_enable_overlays:-no}
4817 # end --enable-retcode
4819 # OpenLDAP --enable-rwm
4821 # Check whether --enable-rwm was given.
4822 if test "${enable_rwm+set}" = set; then :
4823 enableval=$enable_rwm;
4825 for ol_val in no yes mod ; do
4826 if test "$enableval" = "$ol_val" ; then
4830 if test "$ol_arg" = "invalid" ; then
4831 as_fn_error "bad value $enableval for --enable-rwm" "$LINENO" 5
4833 ol_enable_rwm="$ol_arg"
4836 ol_enable_rwm=${ol_enable_overlays:-no}
4841 # OpenLDAP --enable-seqmod
4843 # Check whether --enable-seqmod was given.
4844 if test "${enable_seqmod+set}" = set; then :
4845 enableval=$enable_seqmod;
4847 for ol_val in no yes mod ; do
4848 if test "$enableval" = "$ol_val" ; then
4852 if test "$ol_arg" = "invalid" ; then
4853 as_fn_error "bad value $enableval for --enable-seqmod" "$LINENO" 5
4855 ol_enable_seqmod="$ol_arg"
4858 ol_enable_seqmod=${ol_enable_overlays:-no}
4861 # end --enable-seqmod
4863 # OpenLDAP --enable-sssvlv
4865 # Check whether --enable-sssvlv was given.
4866 if test "${enable_sssvlv+set}" = set; then :
4867 enableval=$enable_sssvlv;
4869 for ol_val in no yes mod ; do
4870 if test "$enableval" = "$ol_val" ; then
4874 if test "$ol_arg" = "invalid" ; then
4875 as_fn_error "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4877 ol_enable_sssvlv="$ol_arg"
4880 ol_enable_sssvlv=${ol_enable_overlays:-no}
4883 # end --enable-sssvlv
4885 # OpenLDAP --enable-syncprov
4887 # Check whether --enable-syncprov was given.
4888 if test "${enable_syncprov+set}" = set; then :
4889 enableval=$enable_syncprov;
4891 for ol_val in no yes mod ; do
4892 if test "$enableval" = "$ol_val" ; then
4896 if test "$ol_arg" = "invalid" ; then
4897 as_fn_error "bad value $enableval for --enable-syncprov" "$LINENO" 5
4899 ol_enable_syncprov="$ol_arg"
4902 ol_enable_syncprov=${ol_enable_overlays:-yes}
4905 # end --enable-syncprov
4907 # OpenLDAP --enable-translucent
4909 # Check whether --enable-translucent was given.
4910 if test "${enable_translucent+set}" = set; then :
4911 enableval=$enable_translucent;
4913 for ol_val in no yes mod ; do
4914 if test "$enableval" = "$ol_val" ; then
4918 if test "$ol_arg" = "invalid" ; then
4919 as_fn_error "bad value $enableval for --enable-translucent" "$LINENO" 5
4921 ol_enable_translucent="$ol_arg"
4924 ol_enable_translucent=${ol_enable_overlays:-no}
4927 # end --enable-translucent
4929 # OpenLDAP --enable-unique
4931 # Check whether --enable-unique was given.
4932 if test "${enable_unique+set}" = set; then :
4933 enableval=$enable_unique;
4935 for ol_val in no yes mod ; do
4936 if test "$enableval" = "$ol_val" ; then
4940 if test "$ol_arg" = "invalid" ; then
4941 as_fn_error "bad value $enableval for --enable-unique" "$LINENO" 5
4943 ol_enable_unique="$ol_arg"
4946 ol_enable_unique=${ol_enable_overlays:-no}
4949 # end --enable-unique
4951 # OpenLDAP --enable-valsort
4953 # Check whether --enable-valsort was given.
4954 if test "${enable_valsort+set}" = set; then :
4955 enableval=$enable_valsort;
4957 for ol_val in no yes mod ; do
4958 if test "$enableval" = "$ol_val" ; then
4962 if test "$ol_arg" = "invalid" ; then
4963 as_fn_error "bad value $enableval for --enable-valsort" "$LINENO" 5
4965 ol_enable_valsort="$ol_arg"
4968 ol_enable_valsort=${ol_enable_overlays:-no}
4971 # end --enable-valsort
4974 # Check whether --enable-xxliboptions was given.
4975 if test "${enable_xxliboptions+set}" = set; then :
4976 enableval=$enable_xxliboptions;
4979 # Check whether --enable-static was given.
4980 if test "${enable_static+set}" = set; then :
4981 enableval=$enable_static; p=${PACKAGE-default}
4983 yes) enable_static=yes ;;
4984 no) enable_static=no ;;
4987 # Look at the argument we got. We use all the common list separators.
4988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4989 for pkg in $enableval; do
4991 if test "X$pkg" = "X$p"; then
5003 # Check whether --enable-shared was given.
5004 if test "${enable_shared+set}" = set; then :
5005 enableval=$enable_shared; p=${PACKAGE-default}
5007 yes) enable_shared=yes ;;
5008 no) enable_shared=no ;;
5011 # Look at the argument we got. We use all the common list separators.
5012 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5013 for pkg in $enableval; do
5015 if test "X$pkg" = "X$p"; then
5030 if test $ol_enable_slapd = no ; then
5031 if test $ol_enable_slapi = yes ; then
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
5033 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
5035 case "$ol_enable_backends" in yes | mod)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
5037 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
5039 for i in $Backends; do
5040 eval "ol_tmp=\$ol_enable_$i"
5041 if test $ol_tmp != no ; then
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5043 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5044 eval "ol_enable_$i=no"
5047 if test $ol_enable_modules = yes ; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
5049 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
5051 if test $ol_enable_wrappers = yes ; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
5053 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
5055 if test $ol_enable_rlookups = yes ; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
5057 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
5059 if test $ol_enable_dynacl = yes ; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
5061 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
5063 if test $ol_enable_aci != no ; then
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
5065 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
5067 if test $ol_enable_rewrite = yes ; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
5069 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
5071 case "$ol_enable_overlays" in yes | mod)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
5073 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
5075 for i in $Overlays; do
5076 eval "ol_tmp=\$ol_enable_$i"
5077 if test $ol_tmp != no ; then
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5079 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5080 eval "ol_enable_$i=no"
5084 # force settings to no
5089 ol_enable_modules=no
5090 ol_enable_rlookups=no
5093 ol_enable_wrappers=no
5095 ol_enable_rewrite=no
5097 elif test $ol_enable_modules != yes &&
5098 test $ol_enable_bdb = no &&
5099 test $ol_enable_dnssrv = no &&
5100 test $ol_enable_hdb = no &&
5101 test $ol_enable_ldap = no &&
5102 test $ol_enable_mdb = no &&
5103 test $ol_enable_meta = no &&
5104 test $ol_enable_asyncmeta = no &&
5105 test $ol_enable_monitor = no &&
5106 test $ol_enable_ndb = no &&
5107 test $ol_enable_null = no &&
5108 test $ol_enable_passwd = no &&
5109 test $ol_enable_perl = no &&
5110 test $ol_enable_relay = no &&
5111 test $ol_enable_shell = no &&
5112 test $ol_enable_sock = no &&
5113 test $ol_enable_sql = no &&
5114 test $ol_enable_wt = no ; then
5116 if test $ol_enable_slapd = yes ; then
5117 as_fn_error "slapd requires a backend" "$LINENO" 5
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5120 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5125 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5126 as_fn_error "--enable-meta requires --enable-ldap" "$LINENO" 5
5129 if test $ol_enable_asyncmeta/$ol_enable_ldap = yes/no ; then
5130 as_fn_error "--enable-asyncmeta requires --enable-ldap" "$LINENO" 5
5133 if test $ol_enable_lmpasswd = yes ; then
5134 if test $ol_with_tls = no ; then
5135 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
5139 if test $ol_enable_spasswd = yes ; then
5140 if test $ol_with_cyrus_sasl = no ; then
5141 as_fn_error "options require --with-cyrus-sasl" "$LINENO" 5
5143 ol_with_cyrus_sasl=yes
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5147 $as_echo "done" >&6; }
5202 BUILD_TRANSLUCENT=no
5206 SLAPD_STATIC_OVERLAYS=
5207 SLAPD_DYNAMIC_OVERLAYS=
5209 SLAPD_MODULES_LDFLAGS=
5210 SLAPD_MODULES_CPPFLAGS=
5212 SLAPD_STATIC_BACKENDS=back-ldif
5213 SLAPD_DYNAMIC_BACKENDS=
5239 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5246 *-*-aix*) if test -z "$CC" ; then
5247 case "$ol_with_threads" in
5248 auto | yes | posix) ol_aix_threads=yes ;;
5254 if test $ol_aix_threads = yes ; then
5255 if test -z "${CC}" ; then
5256 for ac_prog in cc_r xlc_r cc
5258 # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_CC+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$CC"; then
5266 ac_cv_prog_CC="$CC" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_CC="$ac_prog"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 if test -n "$CC"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5288 $as_echo "$CC" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5295 test -n "$CC" && break
5299 if test "$CC" = cc ; then
5300 if test $ol_with_threads != auto ; then
5301 as_fn_error "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5304 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5310 case ${CC} in cc_r | xlc_r)
5311 ol_with_threads=posix
5312 ol_cv_pthread_create=yes
5317 if test -z "${CC}"; then
5318 for ac_prog in cc gcc
5320 # Extract the first word of "$ac_prog", so it can be a program name with args.
5321 set dummy $ac_prog; ac_word=$2
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5323 $as_echo_n "checking for $ac_word... " >&6; }
5324 if test "${ac_cv_prog_CC+set}" = set; then :
5325 $as_echo_n "(cached) " >&6
5327 if test -n "$CC"; then
5328 ac_cv_prog_CC="$CC" # Let the user override the test.
5330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5334 test -z "$as_dir" && as_dir=.
5335 for ac_exec_ext in '' $ac_executable_extensions; do
5336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5337 ac_cv_prog_CC="$ac_prog"
5338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 if test -n "$CC"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5350 $as_echo "$CC" >&6; }
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 test -n "$CC" && break
5359 test -n "$CC" || CC="missing"
5362 if test "${CC}" = "missing" ; then
5363 as_fn_error "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5367 if test -z "${AR}"; then
5368 for ac_prog in ar gar
5370 # Extract the first word of "$ac_prog", so it can be a program name with args.
5371 set dummy $ac_prog; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 $as_echo_n "checking for $ac_word... " >&6; }
5374 if test "${ac_cv_prog_AR+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5377 if test -n "$AR"; then
5378 ac_cv_prog_AR="$AR" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5387 ac_cv_prog_AR="$ac_prog"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 if test -n "$AR"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5400 $as_echo "$AR" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403 $as_echo "no" >&6; }
5407 test -n "$AR" && break
5409 test -n "$AR" || AR="missing"
5412 if test "${AR}" = "missing" ; then
5413 as_fn_error "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5421 # Check whether --enable-fast-install was given.
5422 if test "${enable_fast_install+set}" = set; then :
5423 enableval=$enable_fast_install; p=${PACKAGE-default}
5425 yes) enable_fast_install=yes ;;
5426 no) enable_fast_install=no ;;
5428 enable_fast_install=no
5429 # Look at the argument we got. We use all the common list separators.
5430 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5431 for pkg in $enableval; do
5433 if test "X$pkg" = "X$p"; then
5434 enable_fast_install=yes
5441 enable_fast_install=yes
5445 DEPDIR="${am__leading_dot}deps"
5447 ac_config_commands="$ac_config_commands depfiles"
5450 am_make=${MAKE-make}
5451 cat > confinc << 'END'
5456 # If we don't find an include directive, just comment out the code.
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5458 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5462 # First try GNU make style include.
5463 echo "include confinc" > confmf
5464 # We grep out `Entering directory' and `Leaving directory'
5465 # messages which can occur if `w' ends up in MAKEFLAGS.
5466 # In particular we don't look at `^make:' because GNU make might
5467 # be invoked under some other name (usually "gmake"), in which
5468 # case it prints its new name instead of `make'.
5469 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5474 # Now try BSD make style include.
5475 if test "$am__include" = "#"; then
5476 echo '.include "confinc"' > confmf
5477 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5478 am__include=.include
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5486 $as_echo "$_am_result" >&6; }
5487 rm -f confinc confmf
5489 # Check whether --enable-dependency-tracking was given.
5490 if test "${enable_dependency_tracking+set}" = set; then :
5491 enableval=$enable_dependency_tracking;
5494 if test "x$enable_dependency_tracking" != xno; then
5495 am_depcomp="$ac_aux_dir/depcomp"
5500 if test "x$enable_dependency_tracking" != xno; then
5511 ac_cpp='$CPP $CPPFLAGS'
5512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if test "${ac_cv_prog_CC+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$CC"; then
5524 ac_cv_prog_CC="$CC" # Let the user override the test.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 if test -n "$CC"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5546 $as_echo "$CC" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5554 if test -z "$ac_cv_prog_CC"; then
5556 # Extract the first word of "gcc", so it can be a program name with args.
5557 set dummy gcc; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$ac_ct_CC"; then
5564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir=.
5571 for ac_exec_ext in '' $ac_executable_extensions; do
5572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573 ac_cv_prog_ac_ct_CC="gcc"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5584 if test -n "$ac_ct_CC"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5586 $as_echo "$ac_ct_CC" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5592 if test "x$ac_ct_CC" = x; then
5595 case $cross_compiling:$ac_tool_warned in
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5607 if test -z "$CC"; then
5608 if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5610 set dummy ${ac_tool_prefix}cc; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_prog_CC+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -n "$CC"; then
5617 ac_cv_prog_CC="$CC" # Let the user override the test.
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_CC="${ac_tool_prefix}cc"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 if test -n "$CC"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5639 $as_echo "$CC" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5648 if test -z "$CC"; then
5649 # Extract the first word of "cc", so it can be a program name with args.
5650 set dummy cc; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_CC+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5656 if test -n "$CC"; then
5657 ac_cv_prog_CC="$CC" # Let the user override the test.
5660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 test -z "$as_dir" && as_dir=.
5665 for ac_exec_ext in '' $ac_executable_extensions; do
5666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5668 ac_prog_rejected=yes
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 if test $ac_prog_rejected = yes; then
5680 # We found a bogon in the path, so make sure we never use it.
5681 set dummy $ac_cv_prog_CC
5683 if test $# != 0; then
5684 # We chose a different compiler from the bogus one.
5685 # However, it has the same basename, so the bogon will be chosen
5686 # first if we set CC to just the basename; use the full file name.
5688 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5694 if test -n "$CC"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5696 $as_echo "$CC" >&6; }
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5704 if test -z "$CC"; then
5705 if test -n "$ac_tool_prefix"; then
5706 for ac_prog in cl.exe
5708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_CC+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5715 if test -n "$CC"; then
5716 ac_cv_prog_CC="$CC" # Let the user override the test.
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 if test -n "$CC"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5738 $as_echo "$CC" >&6; }
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 test -n "$CC" && break
5748 if test -z "$CC"; then
5750 for ac_prog in cl.exe
5752 # Extract the first word of "$ac_prog", so it can be a program name with args.
5753 set dummy $ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5759 if test -n "$ac_ct_CC"; then
5760 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_CC="$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5780 if test -n "$ac_ct_CC"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5782 $as_echo "$ac_ct_CC" >&6; }
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5789 test -n "$ac_ct_CC" && break
5792 if test "x$ac_ct_CC" = x; then
5795 case $cross_compiling:$ac_tool_warned in
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5808 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5810 as_fn_error "no acceptable C compiler found in \$PATH
5811 See \`config.log' for more details." "$LINENO" 5; }
5813 # Provide some information about the compiler.
5814 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5817 for ac_option in --version -v -V -qversion; do
5818 { { ac_try="$ac_compiler $ac_option >&5"
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5824 $as_echo "$ac_try_echo"; } >&5
5825 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5827 if test -s conftest.err; then
5829 ... rest of stderr output deleted ...
5830 10q' conftest.err >conftest.er1
5831 cat conftest.er1 >&5
5833 rm -f conftest.er1 conftest.err
5834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5835 test $ac_status = 0; }
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5849 ac_clean_files_save=$ac_clean_files
5850 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5851 # Try to create an executable without -o first, disregard a.out.
5852 # It will help us diagnose broken compilers, and finding out an intuition
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5855 $as_echo_n "checking whether the C compiler works... " >&6; }
5856 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5858 # The possible output files:
5859 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5862 for ac_file in $ac_files
5865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5866 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5871 if { { ac_try="$ac_link_default"
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5877 $as_echo "$ac_try_echo"; } >&5
5878 (eval "$ac_link_default") 2>&5
5880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5881 test $ac_status = 0; }; then :
5882 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5883 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5884 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5885 # so that the user can short-circuit this test for compilers unknown to
5887 for ac_file in $ac_files ''
5889 test -f "$ac_file" || continue
5891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5894 # We found the default executable, but exeext='' is most
5898 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5902 # We set ac_cv_exeext here because the later test for it is not
5903 # safe: cross compilers may not add the suffix if given an `-o'
5904 # argument, so we may need to know it at that point already.
5905 # Even if this section looks crufty: it has the advantage of
5912 test "$ac_cv_exeext" = no && ac_cv_exeext=
5917 if test -z "$ac_file"; then :
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5919 $as_echo "no" >&6; }
5920 $as_echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5925 { as_fn_set_status 77
5926 as_fn_error "C compiler cannot create executables
5927 See \`config.log' for more details." "$LINENO" 5; }; }
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5930 $as_echo "yes" >&6; }
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5933 $as_echo_n "checking for C compiler default output file name... " >&6; }
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5935 $as_echo "$ac_file" >&6; }
5936 ac_exeext=$ac_cv_exeext
5938 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5939 ac_clean_files=$ac_clean_files_save
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5941 $as_echo_n "checking for suffix of executables... " >&6; }
5942 if { { ac_try="$ac_link"
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5947 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5948 $as_echo "$ac_try_echo"; } >&5
5949 (eval "$ac_link") 2>&5
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5952 test $ac_status = 0; }; then :
5953 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5954 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5955 # work properly (i.e., refer to `conftest.exe'), while it won't with
5957 for ac_file in conftest.exe conftest conftest.*; do
5958 test -f "$ac_file" || continue
5960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5961 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5969 as_fn_error "cannot compute suffix of executables: cannot compile and link
5970 See \`config.log' for more details." "$LINENO" 5; }
5972 rm -f conftest conftest$ac_cv_exeext
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5974 $as_echo "$ac_cv_exeext" >&6; }
5976 rm -f conftest.$ac_ext
5977 EXEEXT=$ac_cv_exeext
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5985 FILE *f = fopen ("conftest.out", "w");
5986 return ferror (f) || fclose (f) != 0;
5992 ac_clean_files="$ac_clean_files conftest.out"
5993 # Check that the compiler produces executables we can run. If not, either
5994 # the compiler is broken, or we cross compile.
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5996 $as_echo_n "checking whether we are cross compiling... " >&6; }
5997 if test "$cross_compiling" != yes; then
5998 { { ac_try="$ac_link"
6000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6001 *) ac_try_echo=$ac_try;;
6003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6004 $as_echo "$ac_try_echo"; } >&5
6005 (eval "$ac_link") 2>&5
6007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6008 test $ac_status = 0; }
6009 if { ac_try='./conftest$ac_cv_exeext'
6010 { { case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6015 $as_echo "$ac_try_echo"; } >&5
6016 (eval "$ac_try") 2>&5
6018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6019 test $ac_status = 0; }; }; then
6022 if test "$cross_compiling" = maybe; then
6025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6027 as_fn_error "cannot run C compiled programs.
6028 If you meant to cross compile, use \`--host'.
6029 See \`config.log' for more details." "$LINENO" 5; }
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6034 $as_echo "$cross_compiling" >&6; }
6036 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6037 ac_clean_files=$ac_clean_files_save
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6039 $as_echo_n "checking for suffix of object files... " >&6; }
6040 if test "${ac_cv_objext+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6054 rm -f conftest.o conftest.obj
6055 if { { ac_try="$ac_compile"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6061 $as_echo "$ac_try_echo"; } >&5
6062 (eval "$ac_compile") 2>&5
6064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6065 test $ac_status = 0; }; then :
6066 for ac_file in conftest.o conftest.obj conftest.*; do
6067 test -f "$ac_file" || continue;
6069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6070 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6075 $as_echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6080 as_fn_error "cannot compute suffix of object files: cannot compile
6081 See \`config.log' for more details." "$LINENO" 5; }
6083 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6086 $as_echo "$ac_cv_objext" >&6; }
6087 OBJEXT=$ac_cv_objext
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6090 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6091 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6092 $as_echo_n "(cached) " >&6
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6108 if ac_fn_c_try_compile "$LINENO"; then :
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6118 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6119 if test $ac_compiler_gnu = yes; then
6124 ac_test_CFLAGS=${CFLAGS+set}
6125 ac_save_CFLAGS=$CFLAGS
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6127 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6128 if test "${ac_cv_prog_cc_g+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6131 ac_save_c_werror_flag=$ac_c_werror_flag
6132 ac_c_werror_flag=yes
6135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6136 /* end confdefs.h. */
6146 if ac_fn_c_try_compile "$LINENO"; then :
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6161 if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_c_werror_flag=$ac_save_c_werror_flag
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6177 if ac_fn_c_try_compile "$LINENO"; then :
6180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 ac_c_werror_flag=$ac_save_c_werror_flag
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6188 $as_echo "$ac_cv_prog_cc_g" >&6; }
6189 if test "$ac_test_CFLAGS" = set; then
6190 CFLAGS=$ac_save_CFLAGS
6191 elif test $ac_cv_prog_cc_g = yes; then
6192 if test "$GCC" = yes; then
6198 if test "$GCC" = yes; then
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6205 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6206 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6209 ac_cv_prog_cc_c89=no
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6215 #include <sys/types.h>
6216 #include <sys/stat.h>
6217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6218 struct buf { int x; };
6219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6220 static char *e (p, i)
6226 static char *f (char * (*g) (char **, int), char **p, ...)
6231 s = g (p, va_arg (v,int));
6236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6237 function prototypes and stuff, but not '\xHH' hex character constants.
6238 These don't provoke an error unfortunately, instead are silently treated
6239 as 'x'. The following induces an error, until -std is added to get
6240 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6241 array size at least. It's necessary to write '\x00'==0 to get something
6242 that's true only with -std. */
6243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6245 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6246 inside strings and character constants. */
6248 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6250 int test (int i, double x);
6251 struct s1 {int (*f) (int a);};
6252 struct s2 {int (*f) (double a);};
6253 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6259 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6264 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6265 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6267 CC="$ac_save_CC $ac_arg"
6268 if ac_fn_c_try_compile "$LINENO"; then :
6269 ac_cv_prog_cc_c89=$ac_arg
6271 rm -f core conftest.err conftest.$ac_objext
6272 test "x$ac_cv_prog_cc_c89" != "xno" && break
6274 rm -f conftest.$ac_ext
6279 case "x$ac_cv_prog_cc_c89" in
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6282 $as_echo "none needed" >&6; } ;;
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6285 $as_echo "unsupported" >&6; } ;;
6287 CC="$CC $ac_cv_prog_cc_c89"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6289 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6291 if test "x$ac_cv_prog_cc_c89" != xno; then :
6296 ac_cpp='$CPP $CPPFLAGS'
6297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6301 depcc="$CC" am_compiler_list=
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6304 $as_echo_n "checking dependency style of $depcc... " >&6; }
6305 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6309 # We make a subdir and do the tests there. Otherwise we can end up
6310 # making bogus files that we don't know about and never remove. For
6311 # instance it was reported that on HP-UX the gcc test will end up
6312 # making a dummy file named `D' -- because `-MD' means `put the output
6315 # Copy depcomp to subdir because otherwise we won't find it if we're
6316 # using a relative directory.
6317 cp "$am_depcomp" conftest.dir
6319 # We will build objects and dependencies in a subdirectory because
6320 # it helps to detect inapplicable dependency modes. For instance
6321 # both Tru64's cc and ICC support -MD to output dependencies as a
6322 # side effect of compilation, but ICC will put the dependencies in
6323 # the current directory while Tru64 will put them in the object
6327 am_cv_CC_dependencies_compiler_type=none
6328 if test "$am_compiler_list" = ""; then
6329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6331 for depmode in $am_compiler_list; do
6332 # Setup a source with many dependencies, because some compilers
6333 # like to wrap large dependency lists on column 80 (with \), and
6334 # we should not choose a depcomp mode which is confused by this.
6336 # We need to recreate these files for each test, as the compiler may
6337 # overwrite some of them when testing with obscure command lines.
6338 # This happens at least with the AIX C compiler.
6340 for i in 1 2 3 4 5 6; do
6341 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6342 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6343 # Solaris 8's {/usr,}/bin/sh.
6344 touch sub/conftst$i.h
6346 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6350 # after this tag, mechanisms are not by side-effect, so they'll
6351 # only be used when explicitly requested
6352 if test "x$enable_dependency_tracking" = xyes; then
6360 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6361 # mode. It turns out that the SunPro C++ compiler does not properly
6362 # handle `-M -o', and we need to detect this.
6363 if depmode=$depmode \
6364 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6365 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6366 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6367 >/dev/null 2>conftest.err &&
6368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6369 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6371 # icc doesn't choke on unknown options, it will just issue warnings
6372 # or remarks (even with -Werror). So we grep stderr for any message
6373 # that says an option was ignored or not supported.
6374 # When given -MP, icc 7.0 and 7.1 complain thusly:
6375 # icc: Command line warning: ignoring option '-M'; no argument required
6376 # The diagnosis changed in icc 8.0:
6377 # icc: Command line remark: option '-MP' not supported
6378 if (grep 'ignoring option' conftest.err ||
6379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6380 am_cv_CC_dependencies_compiler_type=$depmode
6389 am_cv_CC_dependencies_compiler_type=none
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6394 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6395 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6400 test "x$enable_dependency_tracking" != xno \
6401 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6403 am__fastdepCC_FALSE='#'
6405 am__fastdepCC_TRUE='#'
6406 am__fastdepCC_FALSE=
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6411 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6412 if test "${lt_cv_path_SED+set}" = set; then :
6413 $as_echo_n "(cached) " >&6
6415 # Loop through the user's path and test for sed and gsed.
6416 # Then use that list of sed's as ones to test for truncation.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for lt_ac_prog in sed gsed; do
6423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6425 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6432 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6433 # along with /bin/sed that truncates output.
6434 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6435 test ! -f $lt_ac_sed && continue
6436 cat /dev/null > conftest.in
6438 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6439 # Check for GNU sed and select it if it is found.
6440 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6441 lt_cv_path_SED=$lt_ac_sed
6445 cat conftest.in conftest.in >conftest.tmp
6446 mv conftest.tmp conftest.in
6447 cp conftest.in conftest.nl
6449 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6450 cmp -s conftest.out conftest.nl || break
6451 # 10000 chars as input seems more than enough
6452 test $lt_ac_count -gt 10 && break
6453 lt_ac_count=`expr $lt_ac_count + 1`
6454 if test $lt_ac_count -gt $lt_ac_max; then
6455 lt_ac_max=$lt_ac_count
6456 lt_cv_path_SED=$lt_ac_sed
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6465 $as_echo "$SED" >&6; }
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6468 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6469 if test "${ac_cv_path_GREP+set}" = set; then :
6470 $as_echo_n "(cached) " >&6
6472 if test -z "$GREP"; then
6473 ac_path_GREP_found=false
6474 # Loop through the user's path and test for each of PROGNAME-LIST
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6479 test -z "$as_dir" && as_dir=.
6480 for ac_prog in grep ggrep; do
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6483 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6484 # Check for GNU ac_path_GREP and select it if it is found.
6485 # Check for GNU $ac_path_GREP
6486 case `"$ac_path_GREP" --version 2>&1` in
6488 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6491 $as_echo_n 0123456789 >"conftest.in"
6494 cat "conftest.in" "conftest.in" >"conftest.tmp"
6495 mv "conftest.tmp" "conftest.in"
6496 cp "conftest.in" "conftest.nl"
6497 $as_echo 'GREP' >> "conftest.nl"
6498 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6499 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6500 as_fn_arith $ac_count + 1 && ac_count=$as_val
6501 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6502 # Best one so far, save it but keep looking for a better one
6503 ac_cv_path_GREP="$ac_path_GREP"
6504 ac_path_GREP_max=$ac_count
6506 # 10*(2^10) chars as input seems more than enough
6507 test $ac_count -gt 10 && break
6509 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6512 $ac_path_GREP_found && break 3
6517 if test -z "$ac_cv_path_GREP"; then
6518 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6521 ac_cv_path_GREP=$GREP
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6526 $as_echo "$ac_cv_path_GREP" >&6; }
6527 GREP="$ac_cv_path_GREP"
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6531 $as_echo_n "checking for egrep... " >&6; }
6532 if test "${ac_cv_path_EGREP+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6535 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6536 then ac_cv_path_EGREP="$GREP -E"
6538 if test -z "$EGREP"; then
6539 ac_path_EGREP_found=false
6540 # Loop through the user's path and test for each of PROGNAME-LIST
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6545 test -z "$as_dir" && as_dir=.
6546 for ac_prog in egrep; do
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6549 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6550 # Check for GNU ac_path_EGREP and select it if it is found.
6551 # Check for GNU $ac_path_EGREP
6552 case `"$ac_path_EGREP" --version 2>&1` in
6554 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6557 $as_echo_n 0123456789 >"conftest.in"
6560 cat "conftest.in" "conftest.in" >"conftest.tmp"
6561 mv "conftest.tmp" "conftest.in"
6562 cp "conftest.in" "conftest.nl"
6563 $as_echo 'EGREP' >> "conftest.nl"
6564 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6566 as_fn_arith $ac_count + 1 && ac_count=$as_val
6567 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6568 # Best one so far, save it but keep looking for a better one
6569 ac_cv_path_EGREP="$ac_path_EGREP"
6570 ac_path_EGREP_max=$ac_count
6572 # 10*(2^10) chars as input seems more than enough
6573 test $ac_count -gt 10 && break
6575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6578 $ac_path_EGREP_found && break 3
6583 if test -z "$ac_cv_path_EGREP"; then
6584 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6587 ac_cv_path_EGREP=$EGREP
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6593 $as_echo "$ac_cv_path_EGREP" >&6; }
6594 EGREP="$ac_cv_path_EGREP"
6598 # Check whether --with-gnu-ld was given.
6599 if test "${with_gnu_ld+set}" = set; then :
6600 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6606 if test "$GCC" = yes; then
6607 # Check if gcc -print-prog-name=ld gives a path.
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6609 $as_echo_n "checking for ld used by $CC... " >&6; }
6612 # gcc leaves a trailing carriage return which upsets mingw
6613 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6615 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6618 # Accept absolute paths.
6620 re_direlt='/[^/][^/]*/\.\./'
6621 # Canonicalize the pathname of ld
6622 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6623 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6624 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6626 test -z "$LD" && LD="$ac_prog"
6629 # If it fails, then pretend we aren't using GCC.
6633 # If it is relative, then search for the first ld in PATH.
6637 elif test "$with_gnu_ld" = yes; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6639 $as_echo_n "checking for GNU ld... " >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6642 $as_echo_n "checking for non-GNU ld... " >&6; }
6644 if test "${lt_cv_path_LD+set}" = set; then :
6645 $as_echo_n "(cached) " >&6
6647 if test -z "$LD"; then
6648 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6649 for ac_dir in $PATH; do
6651 test -z "$ac_dir" && ac_dir=.
6652 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6653 lt_cv_path_LD="$ac_dir/$ac_prog"
6654 # Check to see if the program is GNU ld. I'd rather use --version,
6655 # but apparently some variants of GNU ld only accept -v.
6656 # Break only if it was the GNU/non-GNU ld that we prefer.
6657 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6658 *GNU* | *'with BFD'*)
6659 test "$with_gnu_ld" != no && break
6662 test "$with_gnu_ld" != yes && break
6669 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6674 if test -n "$LD"; then
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6676 $as_echo "$LD" >&6; }
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6681 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6683 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6684 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6687 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6688 case `$LD -v 2>&1 </dev/null` in
6689 *GNU* | *'with BFD'*)
6690 lt_cv_prog_gnu_ld=yes
6693 lt_cv_prog_gnu_ld=no
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6698 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6699 with_gnu_ld=$lt_cv_prog_gnu_ld
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6703 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6704 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6705 $as_echo_n "(cached) " >&6
6707 lt_cv_ld_reload_flag='-r'
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6710 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6711 reload_flag=$lt_cv_ld_reload_flag
6712 case $reload_flag in
6714 *) reload_flag=" $reload_flag" ;;
6716 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6719 if test "$GCC" = yes; then
6720 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6722 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6728 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6729 if test "${lt_cv_path_NM+set}" = set; then :
6730 $as_echo_n "(cached) " >&6
6732 if test -n "$NM"; then
6733 # Let the user override the test.
6736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6737 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6739 test -z "$ac_dir" && ac_dir=.
6740 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6741 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6742 # Check to see if the nm accepts a BSD-compat flag.
6743 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6744 # nm: unknown option "B" ignored
6745 # Tru64's nm complains that /dev/null is an invalid object file
6746 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6747 */dev/null* | *'Invalid file or object type'*)
6748 lt_cv_path_NM="$tmp_nm -B"
6752 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6754 lt_cv_path_NM="$tmp_nm -p"
6758 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6759 continue # so that we can try to find one that supports BSD flags
6766 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6770 $as_echo "$lt_cv_path_NM" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6774 $as_echo_n "checking whether ln -s works... " >&6; }
6776 if test "$LN_S" = "ln -s"; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6778 $as_echo "yes" >&6; }
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6781 $as_echo "no, using $LN_S" >&6; }
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6785 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6786 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6787 $as_echo_n "(cached) " >&6
6789 lt_cv_file_magic_cmd='$MAGIC_CMD'
6790 lt_cv_file_magic_test_file=
6791 lt_cv_deplibs_check_method='unknown'
6792 # Need to set the preceding variable on all platforms that support
6793 # interlibrary dependencies.
6794 # 'none' -- dependencies not supported.
6795 # `unknown' -- same as none, but documents that we really don't know.
6796 # 'pass_all' -- all dependencies passed with no checks.
6797 # 'test_compile' -- check by making test program.
6798 # 'file_magic [[regex]]' -- check by looking for files in library path
6799 # which responds to the $file_magic_cmd with a given extended regex.
6800 # If you have `file' or equivalent on your system and you're not sure
6801 # whether `pass_all' will *always* work, you probably want this one.
6805 lt_cv_deplibs_check_method=pass_all
6809 lt_cv_deplibs_check_method=pass_all
6813 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6814 lt_cv_file_magic_cmd='/usr/bin/file -L'
6815 lt_cv_file_magic_test_file=/shlib/libc.so
6819 # func_win32_libid is a shell function defined in ltmain.sh
6820 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6821 lt_cv_file_magic_cmd='func_win32_libid'
6825 # Base MSYS/MinGW do not provide the 'file' command needed by
6826 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6827 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6828 lt_cv_file_magic_cmd='$OBJDUMP -f'
6831 darwin* | rhapsody*)
6832 lt_cv_deplibs_check_method=pass_all
6835 freebsd* | kfreebsd*-gnu | dragonfly*)
6836 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6839 # Not sure whether the presence of OpenBSD here was a mistake.
6840 # Let's accept both of them until this is cleared up.
6841 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6842 lt_cv_file_magic_cmd=/usr/bin/file
6843 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6847 lt_cv_deplibs_check_method=pass_all
6852 lt_cv_deplibs_check_method=pass_all
6855 hpux10.20* | hpux11*)
6856 lt_cv_file_magic_cmd=/usr/bin/file
6859 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6860 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6863 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]'
6864 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6868 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6873 irix5* | irix6* | nonstopux*)
6875 *-32|*"-32 ") libmagic=32-bit;;
6876 *-n32|*"-n32 ") libmagic=N32;;
6877 *-64|*"-64 ") libmagic=64-bit;;
6878 *) libmagic=never-match;;
6880 lt_cv_deplibs_check_method=pass_all
6883 # This must be Linux ELF.
6885 lt_cv_deplibs_check_method=pass_all
6889 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6898 lt_cv_file_magic_cmd=/usr/bin/file
6899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6903 lt_cv_deplibs_check_method=unknown
6907 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6914 osf3* | osf4* | osf5*)
6915 lt_cv_deplibs_check_method=pass_all
6919 lt_cv_deplibs_check_method=pass_all
6923 lt_cv_deplibs_check_method=pass_all
6926 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6927 case $host_vendor in
6929 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]'
6930 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6933 lt_cv_deplibs_check_method=pass_all
6936 lt_cv_file_magic_cmd='/bin/file'
6937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6940 lt_cv_file_magic_cmd='/bin/file'
6941 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6942 lt_cv_file_magic_test_file=/lib/libc.so
6945 lt_cv_deplibs_check_method=pass_all
6950 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6951 lt_cv_deplibs_check_method=pass_all
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6957 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6958 file_magic_cmd=$lt_cv_file_magic_cmd
6959 deplibs_check_method=$lt_cv_deplibs_check_method
6960 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6965 # If no C compiler was specified, use CC.
6968 # Allow CC to be a program name with arguments.
6972 # Check whether --enable-libtool-lock was given.
6973 if test "${enable_libtool_lock+set}" = set; then :
6974 enableval=$enable_libtool_lock;
6977 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6979 # Some flags need to be propagated to the compiler or linker for good
6983 # Find out which ABI we are using.
6984 echo 'int i;' > conftest.$ac_ext
6985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6986 (eval $ac_compile) 2>&5
6988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6989 test $ac_status = 0; }; then
6990 case `/usr/bin/file conftest.$ac_objext` in
7002 # Find out which ABI we are using.
7003 echo '#line 7001 "configure"' > conftest.$ac_ext
7004 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005 (eval $ac_compile) 2>&5
7007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008 test $ac_status = 0; }; then
7009 if test "$lt_cv_prog_gnu_ld" = yes; then
7010 case `/usr/bin/file conftest.$ac_objext` in
7012 LD="${LD-ld} -melf32bsmip"
7015 LD="${LD-ld} -melf32bmipn32"
7018 LD="${LD-ld} -melf64bmip"
7022 case `/usr/bin/file conftest.$ac_objext` in
7038 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7039 # Find out which ABI we are using.
7040 echo 'int i;' > conftest.$ac_ext
7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7042 (eval $ac_compile) 2>&5
7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7045 test $ac_status = 0; }; then
7046 case `/usr/bin/file conftest.o` in
7050 LD="${LD-ld} -m elf_i386"
7052 ppc64-*linux*|powerpc64-*linux*)
7053 LD="${LD-ld} -m elf32ppclinux"
7056 LD="${LD-ld} -m elf_s390"
7059 LD="${LD-ld} -m elf32_sparc"
7066 LD="${LD-ld} -m elf_x86_64"
7068 ppc*-*linux*|powerpc*-*linux*)
7069 LD="${LD-ld} -m elf64ppc"
7072 LD="${LD-ld} -m elf64_s390"
7075 LD="${LD-ld} -m elf64_sparc"
7085 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7086 SAVE_CFLAGS="$CFLAGS"
7087 CFLAGS="$CFLAGS -belf"
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7089 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7090 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7094 ac_cpp='$CPP $CPPFLAGS'
7095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7110 if ac_fn_c_try_link "$LINENO"; then :
7111 lt_cv_cc_needs_belf=yes
7113 lt_cv_cc_needs_belf=no
7115 rm -f core conftest.err conftest.$ac_objext \
7116 conftest$ac_exeext conftest.$ac_ext
7118 ac_cpp='$CPP $CPPFLAGS'
7119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7125 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7126 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7127 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7128 CFLAGS="$SAVE_CFLAGS"
7131 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7132 if test -n "$ac_tool_prefix"; then
7133 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7134 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136 $as_echo_n "checking for $ac_word... " >&6; }
7137 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7140 if test -n "$DLLTOOL"; then
7141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 test -z "$as_dir" && as_dir=.
7148 for ac_exec_ext in '' $ac_executable_extensions; do
7149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 DLLTOOL=$ac_cv_prog_DLLTOOL
7161 if test -n "$DLLTOOL"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7163 $as_echo "$DLLTOOL" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7171 if test -z "$ac_cv_prog_DLLTOOL"; then
7172 ac_ct_DLLTOOL=$DLLTOOL
7173 # Extract the first word of "dlltool", so it can be a program name with args.
7174 set dummy dlltool; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7180 if test -n "$ac_ct_DLLTOOL"; then
7181 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7201 if test -n "$ac_ct_DLLTOOL"; then
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7203 $as_echo "$ac_ct_DLLTOOL" >&6; }
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7209 if test "x$ac_ct_DLLTOOL" = x; then
7212 case $cross_compiling:$ac_tool_warned in
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7216 ac_tool_warned=yes ;;
7218 DLLTOOL=$ac_ct_DLLTOOL
7221 DLLTOOL="$ac_cv_prog_DLLTOOL"
7224 if test -n "$ac_tool_prefix"; then
7225 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}as; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if test "${ac_cv_prog_AS+set}" = set; then :
7230 $as_echo_n "(cached) " >&6
7232 if test -n "$AS"; then
7233 ac_cv_prog_AS="$AS" # Let the user override the test.
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 test -z "$as_dir" && as_dir=.
7240 for ac_exec_ext in '' $ac_executable_extensions; do
7241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242 ac_cv_prog_AS="${ac_tool_prefix}as"
7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 if test -n "$AS"; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7255 $as_echo "$AS" >&6; }
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7263 if test -z "$ac_cv_prog_AS"; then
7265 # Extract the first word of "as", so it can be a program name with args.
7266 set dummy as; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7270 $as_echo_n "(cached) " >&6
7272 if test -n "$ac_ct_AS"; then
7273 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 test -z "$as_dir" && as_dir=.
7280 for ac_exec_ext in '' $ac_executable_extensions; do
7281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282 ac_cv_prog_ac_ct_AS="as"
7283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7293 if test -n "$ac_ct_AS"; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7295 $as_echo "$ac_ct_AS" >&6; }
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7301 if test "x$ac_ct_AS" = x; then
7304 case $cross_compiling:$ac_tool_warned in
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7316 if test -n "$ac_tool_prefix"; then
7317 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7318 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7320 $as_echo_n "checking for $ac_word... " >&6; }
7321 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7322 $as_echo_n "(cached) " >&6
7324 if test -n "$OBJDUMP"; then
7325 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 OBJDUMP=$ac_cv_prog_OBJDUMP
7345 if test -n "$OBJDUMP"; then
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7347 $as_echo "$OBJDUMP" >&6; }
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7350 $as_echo "no" >&6; }
7355 if test -z "$ac_cv_prog_OBJDUMP"; then
7356 ac_ct_OBJDUMP=$OBJDUMP
7357 # Extract the first word of "objdump", so it can be a program name with args.
7358 set dummy objdump; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7362 $as_echo_n "(cached) " >&6
7364 if test -n "$ac_ct_OBJDUMP"; then
7365 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 test -z "$as_dir" && as_dir=.
7372 for ac_exec_ext in '' $ac_executable_extensions; do
7373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7385 if test -n "$ac_ct_OBJDUMP"; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7387 $as_echo "$ac_ct_OBJDUMP" >&6; }
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7393 if test "x$ac_ct_OBJDUMP" = x; then
7396 case $cross_compiling:$ac_tool_warned in
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7400 ac_tool_warned=yes ;;
7402 OBJDUMP=$ac_ct_OBJDUMP
7405 OBJDUMP="$ac_cv_prog_OBJDUMP"
7412 need_locks="$enable_libtool_lock"
7416 ac_cpp='$CPP $CPPFLAGS'
7417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7421 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7422 # On Suns, sometimes $CPP names a directory.
7423 if test -n "$CPP" && test -d "$CPP"; then
7426 if test -z "$CPP"; then
7427 if test "${ac_cv_prog_CPP+set}" = set; then :
7428 $as_echo_n "(cached) " >&6
7430 # Double quotes because CPP needs to be expanded
7431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7434 for ac_c_preproc_warn_flag in '' yes
7436 # Use a header file that comes with gcc, so configuring glibc
7437 # with a fresh cross-compiler works.
7438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7439 # <limits.h> exists even on freestanding compilers.
7440 # On the NeXT, cc -E runs the code through the compiler's parser,
7441 # not just through cpp. "Syntax error" is here to catch this case.
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7445 # include <limits.h>
7447 # include <assert.h>
7451 if ac_fn_c_try_cpp "$LINENO"; then :
7454 # Broken: fails on valid input.
7457 rm -f conftest.err conftest.$ac_ext
7459 # OK, works on sane cases. Now check whether nonexistent headers
7460 # can be detected and how.
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 #include <ac_nonexistent.h>
7465 if ac_fn_c_try_cpp "$LINENO"; then :
7466 # Broken: success on invalid input.
7469 # Passes both tests.
7473 rm -f conftest.err conftest.$ac_ext
7476 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7477 rm -f conftest.err conftest.$ac_ext
7478 if $ac_preproc_ok; then :
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7491 $as_echo "$CPP" >&6; }
7493 for ac_c_preproc_warn_flag in '' yes
7495 # Use a header file that comes with gcc, so configuring glibc
7496 # with a fresh cross-compiler works.
7497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7498 # <limits.h> exists even on freestanding compilers.
7499 # On the NeXT, cc -E runs the code through the compiler's parser,
7500 # not just through cpp. "Syntax error" is here to catch this case.
7501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7504 # include <limits.h>
7506 # include <assert.h>
7510 if ac_fn_c_try_cpp "$LINENO"; then :
7513 # Broken: fails on valid input.
7516 rm -f conftest.err conftest.$ac_ext
7518 # OK, works on sane cases. Now check whether nonexistent headers
7519 # can be detected and how.
7520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7521 /* end confdefs.h. */
7522 #include <ac_nonexistent.h>
7524 if ac_fn_c_try_cpp "$LINENO"; then :
7525 # Broken: success on invalid input.
7528 # Passes both tests.
7532 rm -f conftest.err conftest.$ac_ext
7535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7536 rm -f conftest.err conftest.$ac_ext
7537 if $ac_preproc_ok; then :
7540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7542 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7543 See \`config.log' for more details." "$LINENO" 5; }
7547 ac_cpp='$CPP $CPPFLAGS'
7548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7554 $as_echo_n "checking for ANSI C header files... " >&6; }
7555 if test "${ac_cv_header_stdc+set}" = set; then :
7556 $as_echo_n "(cached) " >&6
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7573 if ac_fn_c_try_compile "$LINENO"; then :
7574 ac_cv_header_stdc=yes
7576 ac_cv_header_stdc=no
7578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 if test $ac_cv_header_stdc = yes; then
7581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7588 $EGREP "memchr" >/dev/null 2>&1; then :
7591 ac_cv_header_stdc=no
7597 if test $ac_cv_header_stdc = yes; then
7598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600 /* end confdefs.h. */
7604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7605 $EGREP "free" >/dev/null 2>&1; then :
7608 ac_cv_header_stdc=no
7614 if test $ac_cv_header_stdc = yes; then
7615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7616 if test "$cross_compiling" = yes; then :
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7623 #if ((' ' & 0x0FF) == 0x020)
7624 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7625 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7627 # define ISLOWER(c) \
7628 (('a' <= (c) && (c) <= 'i') \
7629 || ('j' <= (c) && (c) <= 'r') \
7630 || ('s' <= (c) && (c) <= 'z'))
7631 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7634 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7639 for (i = 0; i < 256; i++)
7640 if (XOR (islower (i), ISLOWER (i))
7641 || toupper (i) != TOUPPER (i))
7646 if ac_fn_c_try_run "$LINENO"; then :
7649 ac_cv_header_stdc=no
7651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7652 conftest.$ac_objext conftest.beam conftest.$ac_ext
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7658 $as_echo "$ac_cv_header_stdc" >&6; }
7659 if test $ac_cv_header_stdc = yes; then
7661 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7665 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7666 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7667 inttypes.h stdint.h unistd.h
7669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7670 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7672 eval as_val=\$$as_ac_Header
7673 if test "x$as_val" = x""yes; then :
7674 cat >>confdefs.h <<_ACEOF
7675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7683 for ac_header in dlfcn.h
7685 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7686 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7687 cat >>confdefs.h <<_ACEOF
7688 #define HAVE_DLFCN_H 1
7696 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7698 # find the maximum length of command line arguments
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7700 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7701 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7702 $as_echo_n "(cached) " >&6
7709 # On DJGPP, this test can blow up pretty badly due to problems in libc
7710 # (any single argument exceeding 2000 bytes causes a buffer overrun
7711 # during glob expansion). Even if it were fixed, the result of this
7712 # check would be larger than it should be.
7713 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7717 # Under GNU Hurd, this test is not required because there is
7718 # no limit to the length of command line arguments.
7719 # Libtool will interpret -1 as no limit whatsoever
7720 lt_cv_sys_max_cmd_len=-1;
7724 # On Win9x/ME, this test blows up -- it succeeds, but takes
7725 # about 5 minutes as the teststring grows exponentially.
7726 # Worse, since 9x/ME are not pre-emptively multitasking,
7727 # you end up with a "frozen" computer, even though with patience
7728 # the test eventually succeeds (with a max line length of 256k).
7729 # Instead, let's just punt: use the minimum linelength reported by
7730 # all of the supported platforms: 8192 (on NT/2K/XP).
7731 lt_cv_sys_max_cmd_len=8192;
7735 # On AmigaOS with pdksh, this test takes hours, literally.
7736 # So we just punt and use a minimum line length of 8192.
7737 lt_cv_sys_max_cmd_len=8192;
7740 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7741 # This has been around since 386BSD, at least. Likely further.
7742 if test -x /sbin/sysctl; then
7743 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7744 elif test -x /usr/sbin/sysctl; then
7745 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7747 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7749 # And add a safety zone
7750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7756 # nice to cause kernel panics so lets avoid the loop below.
7757 # First set a reasonable default.
7758 lt_cv_sys_max_cmd_len=16384
7760 if test -x /sbin/sysconfig; then
7761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7767 # If test is not a shell built-in, we'll probably end up computing a
7768 # maximum length that is only half of the actual maximum length, but
7770 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7771 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7772 = "XX$teststring") >/dev/null 2>&1 &&
7773 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7774 lt_cv_sys_max_cmd_len=$new_result &&
7775 test $i != 17 # 1/2 MB should be enough
7778 teststring=$teststring$teststring
7781 # Add a significant safety factor because C++ compilers can tack on massive
7782 # amounts of additional arguments before passing them to the linker.
7783 # It appears as though 1/2 is a usable value.
7784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7790 if test -n $lt_cv_sys_max_cmd_len ; then
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7792 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7795 $as_echo "none" >&6; }
7801 # Check for command to grab the raw symbol name followed by C symbol from nm.
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7803 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7804 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7805 $as_echo_n "(cached) " >&6
7808 # These are sane defaults that work on at least a few old systems.
7809 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7811 # Character class describing NM global symbol codes.
7812 symcode='[BCDEGRST]'
7814 # Regexp to match symbols that can be accessed directly from C.
7815 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7817 # Transform an extracted symbol line into a proper C declaration
7818 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7820 # Transform an extracted symbol line into symbol name and symbol address
7821 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'"
7823 # Define system-specific variables.
7828 cygwin* | mingw* | pw32*)
7829 symcode='[ABCDGISTW]'
7831 hpux*) # Its linker distinguishes data from code symbols
7832 if test "$host_cpu" = ia64; then
7833 symcode='[ABCDEGRST]'
7835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7836 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'"
7839 if test "$host_cpu" = ia64; then
7840 symcode='[ABCDGIRSTW]'
7841 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7842 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'"
7846 symcode='[BCDEGRST]'
7849 symcode='[BCDEGQRST]'
7859 # Handle CRLF in mingw tool chain
7863 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7867 # If we're using GNU nm, then use its standard symbol codes.
7868 case `$NM -V 2>&1` in
7869 *GNU* | *'with BFD'*)
7870 symcode='[ABCDGIRSTW]' ;;
7873 # Try without a prefix undercore, then with it.
7874 for ac_symprfx in "" "_"; do
7876 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7877 symxfrm="\\1 $ac_symprfx\\2 \\2"
7879 # Write the raw and C identifiers.
7880 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7882 # Check to see that the pipe works correctly.
7886 cat > conftest.$ac_ext <<EOF
7891 void nm_test_func(){}
7895 int main(){nm_test_var='a';nm_test_func();return(0);}
7898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7899 (eval $ac_compile) 2>&5
7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7902 test $ac_status = 0; }; then
7903 # Now try to grab the symbols.
7905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7906 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7909 test $ac_status = 0; } && test -s "$nlist"; then
7910 # Try sorting and uniquifying the output.
7911 if sort "$nlist" | uniq > "$nlist"T; then
7912 mv -f "$nlist"T "$nlist"
7917 # Make sure that we snagged all the symbols we need.
7918 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7919 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7920 cat <<EOF > conftest.$ac_ext
7926 # Now generate the symbol file.
7927 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7929 cat <<EOF >> conftest.$ac_ext
7930 #if defined (__STDC__) && __STDC__
7931 # define lt_ptr_t void *
7933 # define lt_ptr_t char *
7937 /* The mapping between symbol names and symbols. */
7942 lt_preloaded_symbols[] =
7945 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7946 cat <<\EOF >> conftest.$ac_ext
7954 # Now try linking the two files.
7955 mv conftest.$ac_objext conftstm.$ac_objext
7956 lt_save_LIBS="$LIBS"
7957 lt_save_CFLAGS="$CFLAGS"
7958 LIBS="conftstm.$ac_objext"
7959 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7961 (eval $ac_link) 2>&5
7963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7964 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7967 LIBS="$lt_save_LIBS"
7968 CFLAGS="$lt_save_CFLAGS"
7970 echo "cannot find nm_test_func in $nlist" >&5
7973 echo "cannot find nm_test_var in $nlist" >&5
7976 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7979 echo "$progname: failed program was:" >&5
7980 cat conftest.$ac_ext >&5
7982 rm -f conftest* conftst*
7984 # Do not use the global_symbol_pipe unless it works.
7985 if test "$pipe_works" = yes; then
7988 lt_cv_sys_global_symbol_pipe=
7994 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7995 lt_cv_sys_global_symbol_to_cdecl=
7997 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7999 $as_echo "failed" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8002 $as_echo "ok" >&6; }
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8006 $as_echo_n "checking for objdir... " >&6; }
8007 if test "${lt_cv_objdir+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8010 rm -f .libs 2>/dev/null
8011 mkdir .libs 2>/dev/null
8012 if test -d .libs; then
8015 # MS-DOS does not allow filenames that begin with a dot.
8018 rmdir .libs 2>/dev/null
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8021 $as_echo "$lt_cv_objdir" >&6; }
8022 objdir=$lt_cv_objdir
8030 # AIX sometimes has problems with the GCC collect2 program. For some
8031 # reason, if we set the COLLECT_NAMES environment variable, the problems
8032 # vanish in a puff of smoke.
8033 if test "X${COLLECT_NAMES+set}" != Xset; then
8035 export COLLECT_NAMES
8040 # Sed substitution that helps us do robust quoting. It backslashifies
8041 # metacharacters that are still active within double-quoted strings.
8042 Xsed='sed -e 1s/^X//'
8043 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8045 # Same as above, but do not quote variable references.
8046 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8048 # Sed substitution to delay expansion of an escaped shell variable in a
8049 # double_quote_subst'ed string.
8050 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8052 # Sed substitution to avoid accidental globbing in evaled expressions
8053 no_glob_subst='s/\*/\\\*/g'
8059 default_ofile=libtool
8060 can_build_shared=yes
8062 # All known linkers require a `.a' archive for static linking (except MSVC,
8063 # which needs '.lib').
8065 ltmain="$ac_aux_dir/ltmain.sh"
8066 ofile="$default_ofile"
8067 with_gnu_ld="$lt_cv_prog_gnu_ld"
8069 if test -n "$ac_tool_prefix"; then
8070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8071 set dummy ${ac_tool_prefix}ar; ac_word=$2
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8073 $as_echo_n "checking for $ac_word... " >&6; }
8074 if test "${ac_cv_prog_AR+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8077 if test -n "$AR"; then
8078 ac_cv_prog_AR="$AR" # Let the user override the test.
8080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 test -z "$as_dir" && as_dir=.
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8087 ac_cv_prog_AR="${ac_tool_prefix}ar"
8088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8098 if test -n "$AR"; then
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8100 $as_echo "$AR" >&6; }
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 $as_echo "no" >&6; }
8108 if test -z "$ac_cv_prog_AR"; then
8110 # Extract the first word of "ar", so it can be a program name with args.
8111 set dummy ar; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8117 if test -n "$ac_ct_AR"; then
8118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_prog_ac_ct_AR="ar"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8138 if test -n "$ac_ct_AR"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8140 $as_echo "$ac_ct_AR" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8146 if test "x$ac_ct_AR" = x; then
8149 case $cross_compiling:$ac_tool_warned in
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8153 ac_tool_warned=yes ;;
8161 if test -n "$ac_tool_prefix"; then
8162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8163 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8169 if test -n "$RANLIB"; then
8170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176 test -z "$as_dir" && as_dir=.
8177 for ac_exec_ext in '' $ac_executable_extensions; do
8178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 RANLIB=$ac_cv_prog_RANLIB
8190 if test -n "$RANLIB"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8192 $as_echo "$RANLIB" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8200 if test -z "$ac_cv_prog_RANLIB"; then
8201 ac_ct_RANLIB=$RANLIB
8202 # Extract the first word of "ranlib", so it can be a program name with args.
8203 set dummy ranlib; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8207 $as_echo_n "(cached) " >&6
8209 if test -n "$ac_ct_RANLIB"; then
8210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8219 ac_cv_prog_ac_ct_RANLIB="ranlib"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8230 if test -n "$ac_ct_RANLIB"; then
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8232 $as_echo "$ac_ct_RANLIB" >&6; }
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8235 $as_echo "no" >&6; }
8238 if test "x$ac_ct_RANLIB" = x; then
8241 case $cross_compiling:$ac_tool_warned in
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245 ac_tool_warned=yes ;;
8247 RANLIB=$ac_ct_RANLIB
8250 RANLIB="$ac_cv_prog_RANLIB"
8253 if test -n "$ac_tool_prefix"; then
8254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8255 set dummy ${ac_tool_prefix}strip; ac_word=$2
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257 $as_echo_n "checking for $ac_word... " >&6; }
8258 if test "${ac_cv_prog_STRIP+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
8261 if test -n "$STRIP"; then
8262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 test -z "$as_dir" && as_dir=.
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 STRIP=$ac_cv_prog_STRIP
8282 if test -n "$STRIP"; then
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8284 $as_echo "$STRIP" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287 $as_echo "no" >&6; }
8292 if test -z "$ac_cv_prog_STRIP"; then
8294 # Extract the first word of "strip", so it can be a program name with args.
8295 set dummy strip; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$ac_ct_STRIP"; then
8302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_ac_ct_STRIP="strip"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8322 if test -n "$ac_ct_STRIP"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8324 $as_echo "$ac_ct_STRIP" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8330 if test "x$ac_ct_STRIP" = x; then
8333 case $cross_compiling:$ac_tool_warned in
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8342 STRIP="$ac_cv_prog_STRIP"
8347 old_CFLAGS="$CFLAGS"
8349 # Set sane defaults for various variables
8350 test -z "$AR" && AR=ar
8351 test -z "$AR_FLAGS" && AR_FLAGS=cru
8352 test -z "$AS" && AS=as
8353 test -z "$CC" && CC=cc
8354 test -z "$LTCC" && LTCC=$CC
8355 test -z "$DLLTOOL" && DLLTOOL=dlltool
8356 test -z "$LD" && LD=ld
8357 test -z "$LN_S" && LN_S="ln -s"
8358 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8359 test -z "$NM" && NM=nm
8360 test -z "$SED" && SED=sed
8361 test -z "$OBJDUMP" && OBJDUMP=objdump
8362 test -z "$RANLIB" && RANLIB=:
8363 test -z "$STRIP" && STRIP=:
8364 test -z "$ac_objext" && ac_objext=o
8366 # Determine commands to create old-style static archives.
8367 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8368 old_postinstall_cmds='chmod 644 $oldlib'
8369 old_postuninstall_cmds=
8371 if test -n "$RANLIB"; then
8374 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8377 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8380 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8383 for cc_temp in $compiler""; do
8385 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8386 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8391 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8394 # Only perform the check for file, if the check method requires it
8395 case $deplibs_check_method in
8397 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8399 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8400 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8405 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8408 lt_save_MAGIC_CMD="$MAGIC_CMD"
8409 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8411 for ac_dir in $ac_dummy; do
8413 test -z "$ac_dir" && ac_dir=.
8414 if test -f $ac_dir/${ac_tool_prefix}file; then
8415 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8416 if test -n "$file_magic_test_file"; then
8417 case $deplibs_check_method in
8419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8422 $EGREP "$file_magic_regex" > /dev/null; then
8427 *** Warning: the command libtool uses to detect shared libraries,
8428 *** $file_magic_cmd, produces output that libtool cannot recognize.
8429 *** The result is that libtool may fail to recognize shared libraries
8430 *** as such. This will affect the creation of libtool libraries that
8431 *** depend on shared libraries, but programs linked with such libtool
8432 *** libraries will work regardless of this problem. Nevertheless, you
8433 *** may want to report the problem to your system manager and/or to
8434 *** bug-libtool@gnu.org
8444 MAGIC_CMD="$lt_save_MAGIC_CMD"
8449 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8450 if test -n "$MAGIC_CMD"; then
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8452 $as_echo "$MAGIC_CMD" >&6; }
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 $as_echo "no" >&6; }
8458 if test -z "$lt_cv_path_MAGIC_CMD"; then
8459 if test -n "$ac_tool_prefix"; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8461 $as_echo_n "checking for file... " >&6; }
8462 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
8467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8470 lt_save_MAGIC_CMD="$MAGIC_CMD"
8471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8473 for ac_dir in $ac_dummy; do
8475 test -z "$ac_dir" && ac_dir=.
8476 if test -f $ac_dir/file; then
8477 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8478 if test -n "$file_magic_test_file"; then
8479 case $deplibs_check_method in
8481 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8484 $EGREP "$file_magic_regex" > /dev/null; then
8489 *** Warning: the command libtool uses to detect shared libraries,
8490 *** $file_magic_cmd, produces output that libtool cannot recognize.
8491 *** The result is that libtool may fail to recognize shared libraries
8492 *** as such. This will affect the creation of libtool libraries that
8493 *** depend on shared libraries, but programs linked with such libtool
8494 *** libraries will work regardless of this problem. Nevertheless, you
8495 *** may want to report the problem to your system manager and/or to
8496 *** bug-libtool@gnu.org
8506 MAGIC_CMD="$lt_save_MAGIC_CMD"
8511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512 if test -n "$MAGIC_CMD"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8514 $as_echo "$MAGIC_CMD" >&6; }
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8517 $as_echo "no" >&6; }
8530 enable_win32_dll=yes
8532 # Check whether --enable-libtool-lock was given.
8533 if test "${enable_libtool_lock+set}" = set; then :
8534 enableval=$enable_libtool_lock;
8537 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8540 # Check whether --with-pic was given.
8541 if test "${with_pic+set}" = set; then :
8542 withval=$with_pic; pic_mode="$withval"
8547 test -z "$pic_mode" && pic_mode=default
8549 # Use C for the default configuration in the libtool script
8553 ac_cpp='$CPP $CPPFLAGS'
8554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8559 # Source file extension for C test sources.
8562 # Object file extension for compiled C test sources.
8566 # Code to be used in simple compile tests
8567 lt_simple_compile_test_code="int some_variable = 0;\n"
8569 # Code to be used in simple link tests
8570 lt_simple_link_test_code='int main(){return(0);}\n'
8573 # If no C compiler was specified, use CC.
8576 # Allow CC to be a program name with arguments.
8580 # save warnings/boilerplate of simple test code
8581 ac_outfile=conftest.$ac_objext
8582 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8584 _lt_compiler_boilerplate=`cat conftest.err`
8587 ac_outfile=conftest.$ac_objext
8588 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8590 _lt_linker_boilerplate=`cat conftest.err`
8595 # Check for any special shared library compilation flags.
8598 if test "$GCC" = no; then
8601 lt_prog_cc_shlib='-belf'
8605 if test -n "$lt_prog_cc_shlib"; then
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8607 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8608 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8611 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8612 lt_cv_prog_cc_can_build_shared=no
8618 # Check to make sure the static flag actually works.
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8621 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8622 if test "${lt_prog_compiler_static_works+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
8625 lt_prog_compiler_static_works=no
8626 save_LDFLAGS="$LDFLAGS"
8627 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8628 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8629 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8630 # The linker can only warn and ignore the option if not recognized
8631 # So say no if there are warnings
8632 if test -s conftest.err; then
8633 # Append any errors to the config.log.
8634 cat conftest.err 1>&5
8635 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8636 $SED '/^$/d' conftest.err >conftest.er2
8637 if diff conftest.exp conftest.er2 >/dev/null; then
8638 lt_prog_compiler_static_works=yes
8641 lt_prog_compiler_static_works=yes
8645 LDFLAGS="$save_LDFLAGS"
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8649 $as_echo "$lt_prog_compiler_static_works" >&6; }
8651 if test x"$lt_prog_compiler_static_works" = xyes; then
8654 lt_prog_compiler_static=
8660 lt_prog_compiler_no_builtin_flag=
8662 if test "$GCC" = yes; then
8663 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8667 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8668 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8671 lt_cv_prog_compiler_rtti_exceptions=no
8672 ac_outfile=conftest.$ac_objext
8673 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8674 lt_compiler_flag="-fno-rtti -fno-exceptions"
8675 # Insert the option either (1) after the last *FLAGS variable, or
8676 # (2) before a word containing "conftest.", or (3) at the end.
8677 # Note that $ac_compile itself does not contain backslashes and begins
8678 # with a dollar sign (not a hyphen), so the echo should work correctly.
8679 # The option is referenced via a variable to avoid confusing sed.
8680 lt_compile=`echo "$ac_compile" | $SED \
8681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8683 -e 's:$: $lt_compiler_flag:'`
8684 (eval echo "\"\$as_me:8682: $lt_compile\"" >&5)
8685 (eval "$lt_compile" 2>conftest.err)
8687 cat conftest.err >&5
8688 echo "$as_me:8686: \$? = $ac_status" >&5
8689 if (exit $ac_status) && test -s "$ac_outfile"; then
8690 # The compiler can only warn and ignore the option if not recognized
8691 # So say no if there are warnings other than the usual output.
8692 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8693 $SED '/^$/d' conftest.err >conftest.er2
8694 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8695 lt_cv_prog_compiler_rtti_exceptions=yes
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8702 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8704 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8705 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8712 lt_prog_compiler_wl=
8713 lt_prog_compiler_pic=
8714 lt_prog_compiler_static=
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8717 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8719 if test "$GCC" = yes; then
8720 lt_prog_compiler_wl='-Wl,'
8721 lt_prog_compiler_static='-static'
8725 # All AIX code is PIC.
8726 if test "$host_cpu" = ia64; then
8727 # AIX 5 now supports IA64 processor
8728 lt_prog_compiler_static='-Bstatic'
8733 # FIXME: we need at least 68020 code to build shared libraries, but
8734 # adding the `-m68020' flag to GCC prevents building anything better,
8736 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8739 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8740 # PIC is the default for these OSes.
8743 mingw* | pw32* | os2*)
8744 # This hack is so that the source file can tell whether it is being
8745 # built for inclusion in a dll (and should export symbols for example).
8746 lt_prog_compiler_pic='-DDLL_EXPORT'
8749 darwin* | rhapsody*)
8750 # PIC is the default on this platform
8751 # Common symbols not allowed in MH_DYLIB files
8752 lt_prog_compiler_pic='-fno-common'
8756 # Just because we use GCC doesn't mean we suddenly get shared libraries
8757 # on systems that don't support them.
8758 lt_prog_compiler_can_build_shared=no
8763 if test -d /usr/nec; then
8764 lt_prog_compiler_pic=-Kconform_pic
8769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8776 lt_prog_compiler_pic='-fPIC'
8782 lt_prog_compiler_pic='-fPIC'
8786 # PORTME Check for flag to pass linker flags through the system compiler.
8789 lt_prog_compiler_wl='-Wl,'
8790 if test "$host_cpu" = ia64; then
8791 # AIX 5 now supports IA64 processor
8792 lt_prog_compiler_static='-Bstatic'
8794 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8798 # PIC is the default on this platform
8799 # Common symbols not allowed in MH_DYLIB files
8800 case $cc_basename in
8802 lt_prog_compiler_pic='-qnocommon'
8803 lt_prog_compiler_wl='-Wl,'
8808 mingw* | pw32* | os2*)
8809 # This hack is so that the source file can tell whether it is being
8810 # built for inclusion in a dll (and should export symbols for example).
8811 lt_prog_compiler_pic='-DDLL_EXPORT'
8814 hpux9* | hpux10* | hpux11*)
8815 lt_prog_compiler_wl='-Wl,'
8816 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8823 lt_prog_compiler_pic='+Z'
8826 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8827 lt_prog_compiler_static='${wl}-a ${wl}archive'
8830 irix5* | irix6* | nonstopux*)
8831 lt_prog_compiler_wl='-Wl,'
8832 # PIC (with -KPIC) is the default.
8833 lt_prog_compiler_static='-non_shared'
8837 lt_prog_compiler_pic='-KPIC'
8838 lt_prog_compiler_static='-Bstatic'
8842 case $cc_basename in
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-KPIC'
8846 lt_prog_compiler_static='-static'
8848 pgcc* | pgf77* | pgf90* | pgf95*)
8849 # Portland Group compilers (*not* the Pentium gcc compiler,
8850 # which looks to be a dead project)
8851 lt_prog_compiler_wl='-Wl,'
8852 lt_prog_compiler_pic='-fpic'
8853 lt_prog_compiler_static='-Bstatic'
8856 lt_prog_compiler_wl='-Wl,'
8857 # All Alpha code is PIC.
8858 lt_prog_compiler_static='-non_shared'
8863 osf3* | osf4* | osf5*)
8864 lt_prog_compiler_wl='-Wl,'
8865 # All OSF/1 code is PIC.
8866 lt_prog_compiler_static='-non_shared'
8870 lt_prog_compiler_pic='-Kpic'
8871 lt_prog_compiler_static='-dn'
8875 lt_prog_compiler_pic='-KPIC'
8876 lt_prog_compiler_static='-Bstatic'
8877 case $cc_basename in
8879 lt_prog_compiler_wl='-Qoption ld ';;
8881 lt_prog_compiler_wl='-Wl,';;
8886 lt_prog_compiler_wl='-Qoption ld '
8887 lt_prog_compiler_pic='-PIC'
8888 lt_prog_compiler_static='-Bstatic'
8891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8892 lt_prog_compiler_wl='-Wl,'
8893 lt_prog_compiler_pic='-KPIC'
8894 lt_prog_compiler_static='-Bstatic'
8898 if test -d /usr/nec ;then
8899 lt_prog_compiler_pic='-Kconform_pic'
8900 lt_prog_compiler_static='-Bstatic'
8905 lt_prog_compiler_wl='-Wl,'
8906 lt_prog_compiler_can_build_shared=no
8910 lt_prog_compiler_pic='-pic'
8911 lt_prog_compiler_static='-Bstatic'
8915 lt_prog_compiler_can_build_shared=no
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8921 $as_echo "$lt_prog_compiler_pic" >&6; }
8924 # Check to make sure the PIC flag actually works.
8926 if test -n "$lt_prog_compiler_pic"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8929 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8930 if test "${lt_prog_compiler_pic_works+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8933 lt_prog_compiler_pic_works=no
8934 ac_outfile=conftest.$ac_objext
8935 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8936 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 # The option is referenced via a variable to avoid confusing sed.
8942 lt_compile=`echo "$ac_compile" | $SED \
8943 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8944 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8945 -e 's:$: $lt_compiler_flag:'`
8946 (eval echo "\"\$as_me:8944: $lt_compile\"" >&5)
8947 (eval "$lt_compile" 2>conftest.err)
8949 cat conftest.err >&5
8950 echo "$as_me:8948: \$? = $ac_status" >&5
8951 if (exit $ac_status) && test -s "$ac_outfile"; then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings other than the usual output.
8954 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8955 $SED '/^$/d' conftest.err >conftest.er2
8956 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8957 lt_prog_compiler_pic_works=yes
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8964 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8966 if test x"$lt_prog_compiler_pic_works" = xyes; then
8967 case $lt_prog_compiler_pic in
8969 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8972 lt_prog_compiler_pic=
8973 lt_prog_compiler_can_build_shared=no
8978 # For platforms which do not support PIC, -DPIC is meaningless:
8980 lt_prog_compiler_pic=
8983 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8988 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8989 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8990 $as_echo_n "(cached) " >&6
8992 lt_cv_prog_compiler_c_o=no
8993 $rm -r conftest 2>/dev/null
8997 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8999 lt_compiler_flag="-o out/conftest2.$ac_objext"
9000 # Insert the option either (1) after the last *FLAGS variable, or
9001 # (2) before a word containing "conftest.", or (3) at the end.
9002 # Note that $ac_compile itself does not contain backslashes and begins
9003 # with a dollar sign (not a hyphen), so the echo should work correctly.
9004 lt_compile=`echo "$ac_compile" | $SED \
9005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9007 -e 's:$: $lt_compiler_flag:'`
9008 (eval echo "\"\$as_me:9006: $lt_compile\"" >&5)
9009 (eval "$lt_compile" 2>out/conftest.err)
9011 cat out/conftest.err >&5
9012 echo "$as_me:9010: \$? = $ac_status" >&5
9013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9015 # The compiler can only warn and ignore the option if not recognized
9016 # So say no if there are warnings
9017 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
9018 $SED '/^$/d' out/conftest.err >out/conftest.er2
9019 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9020 lt_cv_prog_compiler_c_o=yes
9025 # SGI C++ compiler will create directory out/ii_files/ for
9026 # template instantiation
9027 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9028 $rm out/* && rmdir out
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9035 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9038 hard_links="nottested"
9039 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9040 # do not overwrite the value of need_locks provided by the user
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9042 $as_echo_n "checking if we can lock with hard links... " >&6; }
9045 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9047 ln conftest.a conftest.b 2>&5 || hard_links=no
9048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9050 $as_echo "$hard_links" >&6; }
9051 if test "$hard_links" = no; then
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9053 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9061 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9064 allow_undefined_flag=
9065 enable_shared_with_static_runtimes=no
9067 archive_expsym_cmds=
9068 old_archive_From_new_cmds=
9069 old_archive_from_expsyms_cmds=
9070 export_dynamic_flag_spec=
9071 whole_archive_flag_spec=
9072 thread_safe_flag_spec=
9073 hardcode_libdir_flag_spec=
9074 hardcode_libdir_flag_spec_ld=
9075 hardcode_libdir_separator=
9078 hardcode_shlibpath_var=unsupported
9079 link_all_deplibs=unknown
9080 hardcode_automatic=no
9083 always_export_symbols=no
9084 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9085 # include_expsyms should be a list of space-separated symbols to be *always*
9086 # included in the symbol list
9088 # exclude_expsyms can be an extended regexp of symbols to exclude
9089 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9090 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9091 # as well as any symbol that contains `d'.
9092 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9093 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9094 # platforms (ab)use it in PIC code, but their linkers get confused if
9095 # the symbol is explicitly referenced. Since portable code cannot
9096 # rely on this symbol name, it's probably fine to never include it in
9097 # preloaded symbol tables.
9098 extract_expsyms_cmds=
9099 # Just being paranoid about ensuring that cc_basename is set.
9100 for cc_temp in $compiler""; do
9102 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9103 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9108 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9111 cygwin* | mingw* | pw32*)
9112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9113 # When not using gcc, we currently assume that we are using
9114 # Microsoft Visual C++.
9115 if test "$GCC" != yes; then
9125 if test "$with_gnu_ld" = yes; then
9126 # If archive_cmds runs LD, not CC, wlarc should be empty
9129 # Set some defaults for GNU ld with shared library support. These
9130 # are reset later if shared libraries are not supported. Putting them
9131 # here allows them to be overridden if necessary.
9132 runpath_var=LD_RUN_PATH
9133 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9134 export_dynamic_flag_spec='${wl}--export-dynamic'
9135 # ancient GNU ld didn't support --whole-archive et. al.
9136 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9137 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9139 whole_archive_flag_spec=
9141 supports_anon_versioning=no
9142 case `$LD -v 2>/dev/null` in
9143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9146 *\ 2.11.*) ;; # other 2.11 versions
9147 *) supports_anon_versioning=yes ;;
9150 # See if GNU ld supports shared libraries.
9152 aix3* | aix4* | aix5*)
9153 # On AIX/PPC, the GNU linker is very broken
9154 if test "$host_cpu" != ia64; then
9158 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9159 *** to be unable to reliably create shared libraries on AIX.
9160 *** Therefore, libtool is disabling shared libraries support. If you
9161 *** really care for shared libraries, you may want to modify your PATH
9162 *** so that a non-GNU linker is found, and then restart.
9169 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)'
9170 hardcode_libdir_flag_spec='-L$libdir'
9171 hardcode_minus_L=yes
9173 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9174 # that the semantics of dynamic libraries on AmigaOS, at least up
9175 # to version 4, is to share data among multiple programs linked
9176 # with the same dynamic library. Since this doesn't match the
9177 # behavior of shared libraries on other platforms, we can't use
9183 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9184 allow_undefined_flag=unsupported
9185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9186 # support --undefined. This deserves some investigation. FIXME
9187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9193 cygwin* | mingw* | pw32*)
9194 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9195 # as there is no search path for DLLs.
9196 hardcode_libdir_flag_spec='-L$libdir'
9197 allow_undefined_flag=unsupported
9198 always_export_symbols=no
9199 enable_shared_with_static_runtimes=yes
9200 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9202 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9204 # If the export-symbols file already is a .def file (1st line
9205 # is EXPORTS), use it as is; otherwise, prepend...
9206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9207 cp $export_symbols $output_objdir/$soname.def;
9209 echo EXPORTS > $output_objdir/$soname.def;
9210 cat $export_symbols >> $output_objdir/$soname.def;
9212 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9219 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9221 case $cc_basename,$host_cpu in
9222 pgcc*) # Portland Group C compiler
9223 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'
9224 tmp_addflag=' $pic_flag'
9226 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9227 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'
9228 tmp_addflag=' $pic_flag -Mnomain' ;;
9229 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9230 tmp_addflag=' -i_dynamic' ;;
9231 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9232 tmp_addflag=' -i_dynamic -nofor_main' ;;
9233 ifc* | ifort*) # Intel Fortran compiler
9234 tmp_addflag=' -nofor_main' ;;
9236 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238 if test $supports_anon_versioning = yes; then
9239 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9240 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9241 $echo "local: *; };" >> $output_objdir/$libname.ver~
9242 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9251 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9254 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9260 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9264 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9265 *** create shared libraries on Solaris systems. Therefore, libtool
9266 *** is disabling shared libraries support. We urge you to upgrade GNU
9267 *** binutils to release 2.9.1 or newer. Another option is to modify
9268 *** your PATH or compiler configuration so that the native linker is
9269 *** used, and then restart.
9272 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9284 hardcode_shlibpath_var=no
9288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9297 if test "$ld_shlibs" = no; then
9299 hardcode_libdir_flag_spec=
9300 export_dynamic_flag_spec=
9301 whole_archive_flag_spec=
9304 # PORTME fill in a description of your system's linker (not GNU ld)
9307 allow_undefined_flag=unsupported
9308 always_export_symbols=yes
9309 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'
9310 # Note: this linker hardcodes the directories in LIBPATH if there
9311 # are no directories specified by -L.
9312 hardcode_minus_L=yes
9313 if test "$GCC" = yes && test -z "$link_static_flag"; then
9314 # Neither direct hardcoding nor static linking is supported with a
9316 hardcode_direct=unsupported
9321 if test "$host_cpu" = ia64; then
9322 # On IA64, the linker does run time linking by default, so we don't
9323 # have to do anything special.
9324 aix_use_runtimelinking=no
9325 exp_sym_flag='-Bexport'
9328 # If we're using GNU nm, then we don't want the "-C" option.
9329 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9330 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9331 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'
9333 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'
9335 aix_use_runtimelinking=no
9337 # Test if we are trying to use run time linking or normal
9338 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9339 # need to do runtime linking.
9340 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9341 for ld_flag in $LDFLAGS; do
9342 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9343 aix_use_runtimelinking=yes
9349 exp_sym_flag='-bexport'
9350 no_entry_flag='-bnoentry'
9353 # When large executables or shared objects are built, AIX ld can
9354 # have problems creating the table of contents. If linking a library
9355 # or program results in "error TOC overflow" add -mminimal-toc to
9356 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9357 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9361 hardcode_libdir_separator=':'
9362 link_all_deplibs=yes
9364 if test "$GCC" = yes; then
9365 case $host_os in aix4.[012]|aix4.[012].*)
9366 # We only want to do this on AIX 4.2 and lower, the check
9367 # below for broken collect2 doesn't work under 4.3+
9368 collect2name=`${CC} -print-prog-name=collect2`
9369 if test -f "$collect2name" && \
9370 strings "$collect2name" | grep resolve_lib_name >/dev/null
9372 # We have reworked collect2
9375 # We have old collect2
9376 hardcode_direct=unsupported
9377 # It fails to find uninstalled libraries when the uninstalled
9378 # path is not listed in the libpath. Setting hardcode_minus_L
9379 # to unsupported forces relinking
9380 hardcode_minus_L=yes
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_libdir_separator=
9385 shared_flag='-shared'
9386 if test "$aix_use_runtimelinking" = yes; then
9387 shared_flag="$shared_flag "'${wl}-G'
9391 if test "$host_cpu" = ia64; then
9392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9393 # chokes on -Wl,-G. The following line is correct:
9396 if test "$aix_use_runtimelinking" = yes; then
9397 shared_flag='${wl}-G'
9399 shared_flag='${wl}-bM:SRE'
9404 # It seems that -bexpall does not export symbols beginning with
9405 # underscore (_), so it is better to generate a list of symbols to export.
9406 always_export_symbols=yes
9407 if test "$aix_use_runtimelinking" = yes; then
9408 # Warning - without using the other runtime loading flags (-brtl),
9409 # -berok will link without error, but may produce a broken library.
9410 allow_undefined_flag='-berok'
9411 # Determine the default libpath from the value encoded in an empty executable.
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9423 if ac_fn_c_try_link "$LINENO"; then :
9425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9427 # Check for a 64-bit object if we didn't find anything.
9428 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; }
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9435 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9436 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"
9438 if test "$host_cpu" = ia64; then
9439 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9440 allow_undefined_flag="-z nodefs"
9441 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"
9443 # Determine the default libpath from the value encoded in an empty executable.
9444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9445 /* end confdefs.h. */
9455 if ac_fn_c_try_link "$LINENO"; then :
9457 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9459 # Check for a 64-bit object if we didn't find anything.
9460 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; }
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9467 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9468 # Warning - without using the other run time loading flags,
9469 # -berok will link without error, but may produce a broken library.
9470 no_undefined_flag=' ${wl}-bernotok'
9471 allow_undefined_flag=' ${wl}-berok'
9472 # -bexpall does not export symbols beginning with underscore (_)
9473 always_export_symbols=yes
9474 # Exported symbols can be pulled into shared objects from archives
9475 whole_archive_flag_spec=' '
9476 archive_cmds_need_lc=yes
9477 # This is similar to how AIX traditionally builds its shared libraries.
9478 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'
9484 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)'
9485 hardcode_libdir_flag_spec='-L$libdir'
9486 hardcode_minus_L=yes
9487 # see comment about different semantics on the GNU ld section
9492 export_dynamic_flag_spec=-rdynamic
9495 cygwin* | mingw* | pw32*)
9496 # When not using gcc, we currently assume that we are using
9497 # Microsoft Visual C++.
9498 # hardcode_libdir_flag_spec is actually meaningless, as there is
9499 # no search path for DLLs.
9500 hardcode_libdir_flag_spec=' '
9501 allow_undefined_flag=unsupported
9502 # Tell ltmain to make .lib files, not .a files.
9504 # Tell ltmain to make .dll files, not .so files.
9506 # FIXME: Setting linknames here is a bad hack.
9507 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9508 # The linker will automatically build a .lib file if we build a DLL.
9509 old_archive_From_new_cmds='true'
9510 # FIXME: Should let the user specify the lib program.
9511 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9512 fix_srcfile_path='`cygpath -w "$srcfile"`'
9513 enable_shared_with_static_runtimes=yes
9516 darwin* | rhapsody*)
9518 rhapsody* | darwin1.[012])
9519 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9522 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9523 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9525 case ${MACOSX_DEPLOYMENT_TARGET} in
9527 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9530 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9536 archive_cmds_need_lc=no
9538 hardcode_automatic=yes
9539 hardcode_shlibpath_var=unsupported
9540 whole_archive_flag_spec=''
9541 link_all_deplibs=yes
9542 if test "$GCC" = yes ; then
9543 output_verbose_link_cmd='echo'
9544 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9545 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9547 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}'
9548 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}'
9550 case $cc_basename in
9552 output_verbose_link_cmd='echo'
9553 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9554 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9555 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9556 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}'
9557 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}'
9567 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9568 hardcode_libdir_flag_spec='-L$libdir'
9569 hardcode_shlibpath_var=no
9576 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9577 # support. Future versions do this automatically, but an explicit c++rt0.o
9578 # does not break anything, and helps significantly (at the cost of a little
9581 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9582 hardcode_libdir_flag_spec='-R$libdir'
9584 hardcode_shlibpath_var=no
9587 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9591 hardcode_minus_L=yes
9592 hardcode_shlibpath_var=no
9595 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9596 freebsd* | kfreebsd*-gnu | dragonfly*)
9597 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9598 hardcode_libdir_flag_spec='-R$libdir'
9600 hardcode_shlibpath_var=no
9604 if test "$GCC" = yes; then
9605 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'
9607 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'
9609 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9610 hardcode_libdir_separator=:
9613 # hardcode_minus_L: Not really in the search PATH,
9614 # but as the default location of the library.
9615 hardcode_minus_L=yes
9616 export_dynamic_flag_spec='${wl}-E'
9620 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9623 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9632 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9639 if test "$with_gnu_ld" = no; then
9642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9643 hardcode_libdir_flag_spec_ld='+b $libdir'
9644 hardcode_libdir_separator=:
9646 hardcode_shlibpath_var=no
9649 hardcode_libdir_flag_spec='-L$libdir'
9651 hardcode_shlibpath_var=no
9653 # hardcode_minus_L: Not really in the search PATH,
9654 # but as the default location of the library.
9655 hardcode_minus_L=yes
9658 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9659 hardcode_libdir_separator=:
9661 export_dynamic_flag_spec='${wl}-E'
9663 # hardcode_minus_L: Not really in the search PATH,
9664 # but as the default location of the library.
9665 hardcode_minus_L=yes
9671 irix5* | irix6* | nonstopux*)
9672 if test "$GCC" = yes; then
9673 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'
9675 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'
9676 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9679 hardcode_libdir_separator=:
9680 link_all_deplibs=yes
9684 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9687 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9689 hardcode_libdir_flag_spec='-R$libdir'
9691 hardcode_shlibpath_var=no
9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9698 hardcode_libdir_separator=:
9699 hardcode_shlibpath_var=no
9704 hardcode_shlibpath_var=no
9705 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9707 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9708 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9709 export_dynamic_flag_spec='${wl}-E'
9712 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9713 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9714 hardcode_libdir_flag_spec='-R$libdir'
9717 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9718 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9725 hardcode_libdir_flag_spec='-L$libdir'
9726 hardcode_minus_L=yes
9727 allow_undefined_flag=unsupported
9728 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'
9729 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9733 if test "$GCC" = yes; then
9734 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9735 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'
9737 allow_undefined_flag=' -expect_unresolved \*'
9738 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'
9740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 hardcode_libdir_separator=:
9744 osf4* | osf5*) # as osf3* with the addition of -msym flag
9745 if test "$GCC" = yes; then
9746 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9747 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'
9748 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9750 allow_undefined_flag=' -expect_unresolved \*'
9751 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'
9752 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9753 $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'
9755 # Both c and cxx compiler support -rpath directly
9756 hardcode_libdir_flag_spec='-rpath $libdir'
9758 hardcode_libdir_separator=:
9762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763 hardcode_shlibpath_var=no
9764 export_dynamic_flag_spec='${wl}-Bexport'
9765 runpath_var=LD_RUN_PATH
9766 hardcode_runpath_var=yes
9770 no_undefined_flag=' -z text'
9771 if test "$GCC" = yes; then
9773 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9775 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9778 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9779 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9780 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9782 hardcode_libdir_flag_spec='-R$libdir'
9783 hardcode_shlibpath_var=no
9785 solaris2.[0-5] | solaris2.[0-5].*) ;;
9787 # The compiler driver will combine linker options so we
9788 # cannot just pass the convience library names through
9789 # without $wl, iff we do not link with $LD.
9790 # Luckily, gcc supports the same syntax we need for Sun Studio.
9791 # Supported since Solaris 2.6 (maybe 2.5.1?)
9794 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9796 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' ;;
9799 link_all_deplibs=yes
9803 if test "x$host_vendor" = xsequent; then
9804 # Use $CC to link under sequent, because it throws in some extra .o
9805 # files that make .init and .fini sections work.
9806 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9808 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_libdir_flag_spec='-L$libdir'
9812 hardcode_minus_L=yes
9813 hardcode_shlibpath_var=no
9817 case $host_vendor in
9819 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9820 hardcode_direct=yes # is this really true???
9823 ## LD is ld it makes a PLAMLIB
9824 ## CC just makes a GrossModule.
9825 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9826 reload_cmds='$CC -r -o $output$reload_objs'
9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9831 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9834 runpath_var='LD_RUN_PATH'
9835 hardcode_shlibpath_var=no
9839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9840 hardcode_shlibpath_var=no
9841 export_dynamic_flag_spec='-Bexport'
9845 if test -d /usr/nec; then
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_shlibpath_var=no
9848 runpath_var=LD_RUN_PATH
9849 hardcode_runpath_var=yes
9855 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9858 hardcode_shlibpath_var=no
9859 hardcode_runpath_var=yes
9860 runpath_var=LD_RUN_PATH
9863 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9864 no_undefined_flag='${wl}-z ${wl}text'
9865 if test "$GCC" = yes; then
9866 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9868 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9870 runpath_var='LD_RUN_PATH'
9871 hardcode_shlibpath_var=no
9875 no_undefined_flag=' -z text'
9876 # $CC -shared without GNU ld will not create a library from C++
9877 # object files and a static libstdc++, better avoid it by now
9878 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9879 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9880 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9881 hardcode_libdir_flag_spec=
9882 hardcode_shlibpath_var=no
9883 runpath_var='LD_RUN_PATH'
9887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9888 hardcode_libdir_flag_spec='-L$libdir'
9889 hardcode_shlibpath_var=no
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9899 $as_echo "$ld_shlibs" >&6; }
9900 test "$ld_shlibs" = no && can_build_shared=no
9902 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9903 if test "$GCC" = yes; then
9904 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9908 # Do we need to explicitly link libc?
9910 case "x$archive_cmds_need_lc" in
9912 # Assume -lc should be added
9913 archive_cmds_need_lc=yes
9915 if test "$enable_shared" = yes && test "$GCC" = yes; then
9916 case $archive_cmds in
9918 # FIXME: we may have to deal with multi-command sequences.
9921 # Test whether the compiler implicitly links with -lc since on some
9922 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9923 # to ld, don't add -lc before -lgcc.
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9925 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930 (eval $ac_compile) 2>&5
9932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933 test $ac_status = 0; } 2>conftest.err; then
9936 libobjs=conftest.$ac_objext
9938 wl=$lt_prog_compiler_wl
9944 lt_save_allow_undefined_flag=$allow_undefined_flag
9945 allow_undefined_flag=
9946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9947 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9950 test $ac_status = 0; }
9952 archive_cmds_need_lc=no
9954 archive_cmds_need_lc=yes
9956 allow_undefined_flag=$lt_save_allow_undefined_flag
9958 cat conftest.err 1>&5
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9962 $as_echo "$archive_cmds_need_lc" >&6; }
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9970 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9972 libname_spec='lib$name'
9980 shlibpath_overrides_runpath=unknown
9982 dynamic_linker="$host_os ld.so"
9983 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9984 if test "$GCC" = yes; then
9985 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9986 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9987 # if the path contains ";" then we assume it to be the separator
9988 # otherwise default to the standard path separator (i.e. ":") - it is
9989 # assumed that no part of a normal pathname contains ";" but that should
9990 # okay in the real world where ";" in dirpaths is itself problematic.
9991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9993 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9998 need_lib_prefix=unknown
9999 hardcode_into_libs=no
10001 # when you set need_version to no, make sure it does not cause -set_version
10002 # flags to be left without arguments
10003 need_version=unknown
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10009 shlibpath_var=LIBPATH
10011 # AIX 3 has no versioning support, so we append a major version to the name.
10012 soname_spec='${libname}${release}${shared_ext}$major'
10019 hardcode_into_libs=yes
10020 if test "$host_cpu" = ia64; then
10021 # AIX 5 supports IA64
10022 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10023 shlibpath_var=LD_LIBRARY_PATH
10025 # With GCC up to 2.95.x, collect2 would create an import file
10026 # for dependence libraries. The import file would start with
10027 # the line `#! .'. This would cause the generated library to
10028 # depend on `.', always an invalid library. This was fixed in
10029 # development snapshots of GCC prior to 3.0.
10031 aix4 | aix4.[01] | aix4.[01].*)
10032 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10034 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10037 can_build_shared=no
10041 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10042 # soname into executable. Probably we can add versioning support to
10043 # collect2, so additional links can be useful in future.
10044 if test "$aix_use_runtimelinking" = yes; then
10045 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10046 # instead of lib<name>.a to let people know that these are not
10047 # typical AIX shared libraries.
10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10050 # We preserve .a as extension for shared libraries through AIX4.2
10051 # and later when we are not doing run time linking.
10052 library_names_spec='${libname}${release}.a $libname.a'
10053 soname_spec='${libname}${release}${shared_ext}$major'
10055 shlibpath_var=LIBPATH
10060 library_names_spec='$libname.ixlibrary $libname.a'
10061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10062 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'
10066 library_names_spec='${libname}${shared_ext}'
10067 dynamic_linker="$host_os ld.so"
10068 shlibpath_var=LIBRARY_PATH
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10079 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10080 # the default ld.so.conf also contains /usr/contrib/lib and
10081 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10082 # libtool to hard-code these into programs
10085 cygwin* | mingw* | pw32*)
10086 version_type=windows
10091 case $GCC,$host_os in
10092 yes,cygwin* | yes,mingw* | yes,pw32*)
10093 library_names_spec='$libname.dll.a'
10094 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10095 postinstall_cmds='base_file=`basename \${file}`~
10096 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10097 dldir=$destdir/`dirname \$dlpath`~
10098 test -d \$dldir || mkdir -p \$dldir~
10099 $install_prog $dir/$dlname \$dldir/$dlname~
10100 chmod a+x \$dldir/$dlname'
10101 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10102 dlpath=$dir/\$dldll~
10104 shlibpath_overrides_runpath=yes
10108 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10109 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10110 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10113 # MinGW DLLs use traditional 'lib' prefix
10114 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10115 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10116 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10117 # It is most probably a Windows format PATH printed by
10118 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10119 # path with ; separators, and with drive letters. We can handle the
10120 # drive letters (cygwin fileutils understands them), so leave them,
10121 # especially as we might pass files found there to a mingw objdump,
10122 # which wouldn't understand a cygwinified path. Ahh.
10123 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10125 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10129 # pw32 DLLs use 'pw' prefix rather than 'lib'
10130 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10136 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10139 dynamic_linker='Win32 ld.exe'
10140 # FIXME: first we should search . and the directory the executable is in
10144 darwin* | rhapsody*)
10145 dynamic_linker="$host_os dyld"
10146 version_type=darwin
10149 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10150 soname_spec='${libname}${release}${major}$shared_ext'
10151 shlibpath_overrides_runpath=yes
10152 shlibpath_var=DYLD_LIBRARY_PATH
10153 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10154 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10155 if test "$GCC" = yes; then
10156 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"`
10158 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10160 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 shlibpath_var=LD_LIBRARY_PATH
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 dynamic_linker='GNU ld.so'
10188 freebsd* | dragonfly*)
10189 # DragonFly does not have aout. When/if they implement a new
10190 # versioning mechanism, adjust this.
10191 if test -x /usr/bin/objformat; then
10192 objformat=`/usr/bin/objformat`
10195 freebsd[123]*) objformat=aout ;;
10196 *) objformat=elf ;;
10199 version_type=freebsd-$objformat
10200 case $version_type in
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10207 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10211 shlibpath_var=LD_LIBRARY_PATH
10214 shlibpath_overrides_runpath=yes
10216 freebsd3.[01]* | freebsdelf3.[01]*)
10217 shlibpath_overrides_runpath=yes
10218 hardcode_into_libs=yes
10221 shlibpath_overrides_runpath=no
10222 hardcode_into_libs=yes
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10232 soname_spec='${libname}${release}${shared_ext}$major'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 hardcode_into_libs=yes
10237 hpux9* | hpux10* | hpux11*)
10238 # Give a soname corresponding to the major version so that dld.sl refuses to
10239 # link against other versions.
10246 hardcode_into_libs=yes
10247 dynamic_linker="$host_os dld.so"
10248 shlibpath_var=LD_LIBRARY_PATH
10249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 if test "X$HPUX_IA64_MODE" = X32; then
10253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10255 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10261 hardcode_into_libs=yes
10262 dynamic_linker="$host_os dld.sl"
10263 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10272 dynamic_linker="$host_os dld.sl"
10273 shlibpath_var=SHLIB_PATH
10274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10279 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10280 postinstall_cmds='chmod 555 $lib'
10283 irix5* | irix6* | nonstopux*)
10285 nonstopux*) version_type=nonstopux ;;
10287 if test "$lt_cv_prog_gnu_ld" = yes; then
10295 soname_spec='${libname}${release}${shared_ext}$major'
10296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10298 irix5* | nonstopux*)
10299 libsuff= shlibsuff=
10302 case $LD in # libtool.m4 will add one of these switches to LD
10303 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10304 libsuff= shlibsuff= libmagic=32-bit;;
10305 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10306 libsuff=32 shlibsuff=N32 libmagic=N32;;
10307 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10308 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10309 *) libsuff= shlibsuff= libmagic=never-match;;
10313 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10314 shlibpath_overrides_runpath=no
10315 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10316 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10317 hardcode_into_libs=yes
10320 # No shared lib support for Linux oldld, aout, or coff.
10321 linux*oldld* | linux*aout* | linux*coff*)
10325 # This must be Linux ELF.
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10333 shlibpath_var=LD_LIBRARY_PATH
10334 shlibpath_overrides_runpath=no
10335 # This implies no fast_install, which is unacceptable.
10336 # Some rework will be needed to allow for fast_install
10337 # before this can be enabled.
10338 hardcode_into_libs=yes
10340 # Append ld.so.conf contents to the search path
10341 if test -f /etc/ld.so.conf; then
10342 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' ' '`
10343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10346 # We used to test for /lib/ld.so.1 and disable shared libraries on
10347 # powerpc, because MkLinux only supported shared libraries with the
10348 # GNU dynamic linker. Since this was broken with cross compilers,
10349 # most powerpc-linux boxes support dynamic linking these days and
10350 # people can always --disable-shared, the test was removed, and we
10351 # assume the GNU/Linux dynamic linker is in use.
10352 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_overrides_runpath=no
10363 hardcode_into_libs=yes
10364 dynamic_linker='GNU ld.so'
10371 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10374 dynamic_linker='NetBSD (a.out) ld.so'
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 dynamic_linker='NetBSD ld.elf_so'
10380 shlibpath_var=LD_LIBRARY_PATH
10381 shlibpath_overrides_runpath=yes
10382 hardcode_into_libs=yes
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 shlibpath_var=LD_LIBRARY_PATH
10389 shlibpath_overrides_runpath=yes
10396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10397 soname_spec='${libname}${release}${shared_ext}$major'
10398 shlibpath_var=LD_LIBRARY_PATH
10399 shlibpath_overrides_runpath=yes
10405 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10407 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10408 *) need_version=no ;;
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10412 shlibpath_var=LD_LIBRARY_PATH
10413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10415 openbsd2.[89] | openbsd2.[89].*)
10416 shlibpath_overrides_runpath=no
10419 shlibpath_overrides_runpath=yes
10423 shlibpath_overrides_runpath=yes
10428 libname_spec='$name'
10431 library_names_spec='$libname${shared_ext} $libname.a'
10432 dynamic_linker='OS/2 ld.exe'
10433 shlibpath_var=LIBPATH
10436 osf3* | osf4* | osf5*)
10440 soname_spec='${libname}${release}${shared_ext}$major'
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10449 soname_spec='${libname}${release}${shared_ext}$major'
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 shlibpath_var=LD_LIBRARY_PATH
10458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10459 soname_spec='${libname}${release}${shared_ext}$major'
10460 shlibpath_var=LD_LIBRARY_PATH
10461 shlibpath_overrides_runpath=yes
10462 hardcode_into_libs=yes
10463 # ldd complains unless libraries are executable
10464 postinstall_cmds='chmod +x $lib'
10469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10471 shlibpath_var=LD_LIBRARY_PATH
10472 shlibpath_overrides_runpath=yes
10473 if test "$with_gnu_ld" = yes; then
10479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10482 soname_spec='${libname}${release}${shared_ext}$major'
10483 shlibpath_var=LD_LIBRARY_PATH
10484 case $host_vendor in
10486 shlibpath_overrides_runpath=no
10488 export_dynamic_flag_spec='${wl}-Blargedynsym'
10489 runpath_var=LD_RUN_PATH
10497 shlibpath_overrides_runpath=no
10498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10504 if test -d /usr/nec ;then
10506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10507 soname_spec='$libname${shared_ext}.$major'
10508 shlibpath_var=LD_LIBRARY_PATH
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LD_LIBRARY_PATH
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10524 $as_echo "$dynamic_linker" >&6; }
10525 test "$dynamic_linker" = no && can_build_shared=no
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10530 if test -n "$hardcode_libdir_flag_spec" || \
10531 test -n "$runpath_var" || \
10532 test "X$hardcode_automatic" = "Xyes" ; then
10534 # We can hardcode non-existant directories.
10535 if test "$hardcode_direct" != no &&
10536 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10537 # have to relink, otherwise we might link with an installed library
10538 # when we should be linking with a yet-to-be-installed one
10539 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10540 test "$hardcode_minus_L" != no; then
10541 # Linking always hardcodes the temporary library directory.
10542 hardcode_action=relink
10544 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10545 hardcode_action=immediate
10548 # We cannot hardcode anything, or else we can only hardcode existing
10550 hardcode_action=unsupported
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10553 $as_echo "$hardcode_action" >&6; }
10555 if test "$hardcode_action" = relink; then
10556 # Fast installation is not supported
10557 enable_fast_install=no
10558 elif test "$shlibpath_overrides_runpath" = yes ||
10559 test "$enable_shared" = no; then
10560 # Fast installation is not necessary
10561 enable_fast_install=needless
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10567 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10568 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10569 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10570 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10572 $as_echo "yes" >&6; }
10574 # FIXME - insert some real tests, host_os isn't really good enough
10577 if test -n "$STRIP" ; then
10578 striplib="$STRIP -x"
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580 $as_echo "yes" >&6; }
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583 $as_echo "no" >&6; }
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10593 if test "x$enable_dlopen" != xyes; then
10594 enable_dlopen=unknown
10595 enable_dlopen_self=unknown
10596 enable_dlopen_self_static=unknown
10603 lt_cv_dlopen="load_add_on"
10605 lt_cv_dlopen_self=yes
10609 lt_cv_dlopen="LoadLibrary"
10614 lt_cv_dlopen="dlopen"
10619 # if libdl is installed we need to link against it
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10621 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10622 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10625 ac_check_lib_save_LIBS=$LIBS
10627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 /* end confdefs.h. */
10630 /* Override any GCC internal prototype to avoid an error.
10631 Use char because int might match the return type of a GCC
10632 builtin and then its argument prototype would still apply. */
10645 if ac_fn_c_try_link "$LINENO"; then :
10646 ac_cv_lib_dl_dlopen=yes
10648 ac_cv_lib_dl_dlopen=no
10650 rm -f core conftest.err conftest.$ac_objext \
10651 conftest$ac_exeext conftest.$ac_ext
10652 LIBS=$ac_check_lib_save_LIBS
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10655 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10656 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10657 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10660 lt_cv_dlopen="dyld"
10662 lt_cv_dlopen_self=yes
10669 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10670 if test "x$ac_cv_func_shl_load" = x""yes; then :
10671 lt_cv_dlopen="shl_load"
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10674 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10675 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10676 $as_echo_n "(cached) " >&6
10678 ac_check_lib_save_LIBS=$LIBS
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10683 /* Override any GCC internal prototype to avoid an error.
10684 Use char because int might match the return type of a GCC
10685 builtin and then its argument prototype would still apply. */
10693 return shl_load ();
10698 if ac_fn_c_try_link "$LINENO"; then :
10699 ac_cv_lib_dld_shl_load=yes
10701 ac_cv_lib_dld_shl_load=no
10703 rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
10705 LIBS=$ac_check_lib_save_LIBS
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10708 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10709 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10710 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10712 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10713 if test "x$ac_cv_func_dlopen" = x""yes; then :
10714 lt_cv_dlopen="dlopen"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10717 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10718 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10719 $as_echo_n "(cached) " >&6
10721 ac_check_lib_save_LIBS=$LIBS
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_dl_dlopen=yes
10744 ac_cv_lib_dl_dlopen=no
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10751 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10752 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10753 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10756 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10757 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
10760 ac_check_lib_save_LIBS=$LIBS
10761 LIBS="-lsvld $LIBS"
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10765 /* Override any GCC internal prototype to avoid an error.
10766 Use char because int might match the return type of a GCC
10767 builtin and then its argument prototype would still apply. */
10780 if ac_fn_c_try_link "$LINENO"; then :
10781 ac_cv_lib_svld_dlopen=yes
10783 ac_cv_lib_svld_dlopen=no
10785 rm -f core conftest.err conftest.$ac_objext \
10786 conftest$ac_exeext conftest.$ac_ext
10787 LIBS=$ac_check_lib_save_LIBS
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10790 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10791 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10792 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10795 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10796 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10799 ac_check_lib_save_LIBS=$LIBS
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10804 /* Override any GCC internal prototype to avoid an error.
10805 Use char because int might match the return type of a GCC
10806 builtin and then its argument prototype would still apply. */
10814 return dld_link ();
10819 if ac_fn_c_try_link "$LINENO"; then :
10820 ac_cv_lib_dld_dld_link=yes
10822 ac_cv_lib_dld_dld_link=no
10824 rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_check_lib_save_LIBS
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10829 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10830 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10831 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10852 if test "x$lt_cv_dlopen" != xno; then
10858 case $lt_cv_dlopen in
10860 save_CPPFLAGS="$CPPFLAGS"
10861 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10863 save_LDFLAGS="$LDFLAGS"
10864 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10867 LIBS="$lt_cv_dlopen_libs $LIBS"
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10870 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10871 if test "${lt_cv_dlopen_self+set}" = set; then :
10872 $as_echo_n "(cached) " >&6
10874 if test "$cross_compiling" = yes; then :
10875 lt_cv_dlopen_self=cross
10877 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10878 lt_status=$lt_dlunknown
10879 cat > conftest.$ac_ext <<EOF
10880 #line 10878 "configure"
10881 #include "confdefs.h"
10890 # define LT_DLGLOBAL RTLD_GLOBAL
10893 # define LT_DLGLOBAL DL_GLOBAL
10895 # define LT_DLGLOBAL 0
10899 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10900 find out it does not work in some platform. */
10901 #ifndef LT_DLLAZY_OR_NOW
10903 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10906 # define LT_DLLAZY_OR_NOW DL_LAZY
10909 # define LT_DLLAZY_OR_NOW RTLD_NOW
10912 # define LT_DLLAZY_OR_NOW DL_NOW
10914 # define LT_DLLAZY_OR_NOW 0
10922 extern "C" void exit (int);
10925 void fnord() { int i=42;}
10928 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10929 int status = $lt_dlunknown;
10933 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10934 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10935 /* dlclose (self); */
10941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10942 (eval $ac_link) 2>&5
10944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10945 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10946 (./conftest; exit; ) >&5 2>/dev/null
10948 case x$lt_status in
10949 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10950 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10951 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10954 # compilation failed
10955 lt_cv_dlopen_self=no
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10963 $as_echo "$lt_cv_dlopen_self" >&6; }
10965 if test "x$lt_cv_dlopen_self" = xyes; then
10966 LDFLAGS="$LDFLAGS $link_static_flag"
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10968 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10969 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
10972 if test "$cross_compiling" = yes; then :
10973 lt_cv_dlopen_self_static=cross
10975 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10976 lt_status=$lt_dlunknown
10977 cat > conftest.$ac_ext <<EOF
10978 #line 10976 "configure"
10979 #include "confdefs.h"
10988 # define LT_DLGLOBAL RTLD_GLOBAL
10991 # define LT_DLGLOBAL DL_GLOBAL
10993 # define LT_DLGLOBAL 0
10997 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10998 find out it does not work in some platform. */
10999 #ifndef LT_DLLAZY_OR_NOW
11001 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11004 # define LT_DLLAZY_OR_NOW DL_LAZY
11007 # define LT_DLLAZY_OR_NOW RTLD_NOW
11010 # define LT_DLLAZY_OR_NOW DL_NOW
11012 # define LT_DLLAZY_OR_NOW 0
11020 extern "C" void exit (int);
11023 void fnord() { int i=42;}
11026 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11027 int status = $lt_dlunknown;
11031 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11032 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11033 /* dlclose (self); */
11039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11040 (eval $ac_link) 2>&5
11042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11044 (./conftest; exit; ) >&5 2>/dev/null
11046 case x$lt_status in
11047 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11048 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11049 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11052 # compilation failed
11053 lt_cv_dlopen_self_static=no
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11061 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11064 CPPFLAGS="$save_CPPFLAGS"
11065 LDFLAGS="$save_LDFLAGS"
11070 case $lt_cv_dlopen_self in
11071 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11072 *) enable_dlopen_self=unknown ;;
11075 case $lt_cv_dlopen_self_static in
11076 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11077 *) enable_dlopen_self_static=unknown ;;
11082 # Report which librarie types wil actually be built
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11084 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11086 $as_echo "$can_build_shared" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11089 $as_echo_n "checking whether to build shared libraries... " >&6; }
11090 test "$can_build_shared" = "no" && enable_shared=no
11092 # On AIX, shared libraries and static libraries use the same namespace, and
11093 # are all built from PIC.
11096 test "$enable_shared" = yes && enable_static=no
11097 if test -n "$RANLIB"; then
11098 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11099 postinstall_cmds='$RANLIB $lib'
11104 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11105 test "$enable_shared" = yes && enable_static=no
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11110 $as_echo "$enable_shared" >&6; }
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11113 $as_echo_n "checking whether to build static libraries... " >&6; }
11114 # Make sure either enable_shared or enable_static is yes.
11115 test "$enable_shared" = yes || enable_static=yes
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11117 $as_echo "$enable_static" >&6; }
11119 # The else clause should only fire when bootstrapping the
11120 # libtool distribution, otherwise you forgot to ship ltmain.sh
11121 # with your package, and you will get complaints that there are
11122 # no rules to generate ltmain.sh.
11123 if test -f "$ltmain"; then
11124 # See if we are running on zsh, and set the options which allow our commands through
11125 # without removal of \ escapes.
11126 if test -n "${ZSH_VERSION+set}" ; then
11127 setopt NO_GLOB_SUBST
11129 # Now quote all the things that may contain metacharacters while being
11130 # careful not to overquote the AC_SUBSTed values. We take copies of the
11131 # variables and quote the copies for generation of the libtool script.
11132 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11134 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11135 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11136 deplibs_check_method reload_flag reload_cmds need_locks \
11137 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11138 lt_cv_sys_global_symbol_to_c_name_address \
11139 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11140 old_postinstall_cmds old_postuninstall_cmds \
11144 lt_prog_compiler_wl \
11145 lt_prog_compiler_pic \
11146 lt_prog_compiler_static \
11147 lt_prog_compiler_no_builtin_flag \
11148 export_dynamic_flag_spec \
11149 thread_safe_flag_spec \
11150 whole_archive_flag_spec \
11151 enable_shared_with_static_runtimes \
11153 old_archive_from_new_cmds \
11158 compiler_lib_search_path \
11160 archive_expsym_cmds \
11162 postuninstall_cmds \
11163 old_archive_from_expsyms_cmds \
11164 allow_undefined_flag \
11165 no_undefined_flag \
11166 export_symbols_cmds \
11167 hardcode_libdir_flag_spec \
11168 hardcode_libdir_flag_spec_ld \
11169 hardcode_libdir_separator \
11170 hardcode_automatic \
11172 module_expsym_cmds \
11173 lt_cv_prog_compiler_c_o \
11175 include_expsyms; do
11178 old_archive_cmds | \
11179 old_archive_from_new_cmds | \
11181 archive_expsym_cmds | \
11183 module_expsym_cmds | \
11184 old_archive_from_expsyms_cmds | \
11185 export_symbols_cmds | \
11186 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11187 postinstall_cmds | postuninstall_cmds | \
11188 old_postinstall_cmds | old_postuninstall_cmds | \
11189 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11190 # Double-quote double-evaled strings.
11191 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11200 *'\$0 --fallback-echo"')
11201 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11205 cfgfile="${ofile}T"
11206 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11209 $as_echo "$as_me: creating $ofile" >&6;}
11211 cat <<__EOF__ >> "$cfgfile"
11214 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11215 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11216 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11218 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11219 # Free Software Foundation, Inc.
11221 # This file is part of GNU Libtool:
11222 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11224 # This program is free software; you can redistribute it and/or modify
11225 # it under the terms of the GNU General Public License as published by
11226 # the Free Software Foundation; either version 2 of the License, or
11227 # (at your option) any later version.
11229 # This program is distributed in the hope that it will be useful, but
11230 # WITHOUT ANY WARRANTY; without even the implied warranty of
11231 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11232 # General Public License for more details.
11234 # You should have received a copy of the GNU General Public License
11235 # along with this program; if not, write to the Free Software
11236 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11238 # As a special exception to the GNU General Public License, if you
11239 # distribute this file as part of a program that contains a
11240 # configuration script generated by Autoconf, you may include it under
11241 # the same distribution terms that you use for the rest of that program.
11243 # A sed program that does not truncate output.
11246 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11247 Xsed="$SED -e 1s/^X//"
11249 # The HP-UX ksh and POSIX shell print the target directory to stdout
11250 # if CDPATH is set.
11251 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11253 # The names of the tagged configurations supported by this script.
11256 # ### BEGIN LIBTOOL CONFIG
11258 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11260 # Shell to use when invoking shell scripts.
11263 # Whether or not to build shared libraries.
11264 build_libtool_libs=$enable_shared
11266 # Whether or not to build static libraries.
11267 build_old_libs=$enable_static
11269 # Whether or not to add -lc for building shared libraries.
11270 build_libtool_need_lc=$archive_cmds_need_lc
11272 # Whether or not to disallow shared libs when runtime libs are static
11273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11275 # Whether or not to optimize for fast installation.
11276 fast_install=$enable_fast_install
11279 host_alias=$host_alias
11283 # The build system.
11284 build_alias=$build_alias
11288 # An echo program that does not interpret backslashes.
11293 AR_FLAGS=$lt_AR_FLAGS
11298 # A language-specific compiler.
11301 # Is the compiler the GNU C compiler?
11307 # The linker used to build libraries.
11310 # Whether we need hard or soft links.
11313 # A BSD-compatible nm program.
11316 # A symbol stripping program
11319 # Used to examine libraries when file_magic_cmd begins "file"
11320 MAGIC_CMD=$MAGIC_CMD
11322 # Used on cygwin: DLL creation program.
11325 # Used on cygwin: object dumper.
11328 # Used on cygwin: assembler.
11331 # The name of the directory that contains temporary libtool files.
11334 # How to create reloadable object files.
11335 reload_flag=$lt_reload_flag
11336 reload_cmds=$lt_reload_cmds
11338 # How to pass a linker flag through the compiler.
11339 wl=$lt_lt_prog_compiler_wl
11341 # Object file suffix (normally "o").
11342 objext="$ac_objext"
11344 # Old archive suffix (normally "a").
11347 # Shared library suffix (normally ".so").
11348 shrext_cmds='$shrext_cmds'
11350 # Executable file suffix (normally "").
11353 # Additional compiler flags for building library objects.
11354 pic_flag=$lt_lt_prog_compiler_pic
11357 # What is the maximum length of a command?
11358 max_cmd_len=$lt_cv_sys_max_cmd_len
11360 # Does compiler simultaneously support -c and -o options?
11361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11363 # Must we lock files when doing compilation?
11364 need_locks=$lt_need_locks
11366 # Do we need the lib prefix for modules?
11367 need_lib_prefix=$need_lib_prefix
11369 # Do we need a version for libraries?
11370 need_version=$need_version
11372 # Whether dlopen is supported.
11373 dlopen_support=$enable_dlopen
11375 # Whether dlopen of programs is supported.
11376 dlopen_self=$enable_dlopen_self
11378 # Whether dlopen of statically linked programs is supported.
11379 dlopen_self_static=$enable_dlopen_self_static
11381 # Compiler flag to prevent dynamic linking.
11382 link_static_flag=$lt_lt_prog_compiler_static
11384 # Compiler flag to turn off builtin functions.
11385 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11387 # Compiler flag to allow reflexive dlopens.
11388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11390 # Compiler flag to generate shared objects directly from archives.
11391 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11393 # Compiler flag to generate thread-safe objects.
11394 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11396 # Library versioning type.
11397 version_type=$version_type
11399 # Format of library name prefix.
11400 libname_spec=$lt_libname_spec
11402 # List of archive names. First name is the real one, the rest are links.
11403 # The last name is the one that the linker finds with -lNAME.
11404 library_names_spec=$lt_library_names_spec
11406 # The coded name of the library, if different from the real name.
11407 soname_spec=$lt_soname_spec
11409 # Commands used to build and install an old-style archive.
11411 old_archive_cmds=$lt_old_archive_cmds
11412 old_postinstall_cmds=$lt_old_postinstall_cmds
11413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11415 # Create an old-style archive from a shared archive.
11416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11418 # Create a temporary old-style archive to link instead of a shared archive.
11419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11421 # Commands used to build and install a shared archive.
11422 archive_cmds=$lt_archive_cmds
11423 archive_expsym_cmds=$lt_archive_expsym_cmds
11424 postinstall_cmds=$lt_postinstall_cmds
11425 postuninstall_cmds=$lt_postuninstall_cmds
11427 # Commands used to build a loadable module (assumed same as above if empty)
11428 module_cmds=$lt_module_cmds
11429 module_expsym_cmds=$lt_module_expsym_cmds
11431 # Commands to strip libraries.
11432 old_striplib=$lt_old_striplib
11433 striplib=$lt_striplib
11435 # Dependencies to place before the objects being linked to create a
11437 predep_objects=$lt_predep_objects
11439 # Dependencies to place after the objects being linked to create a
11441 postdep_objects=$lt_postdep_objects
11443 # Dependencies to place before the objects being linked to create a
11445 predeps=$lt_predeps
11447 # Dependencies to place after the objects being linked to create a
11449 postdeps=$lt_postdeps
11451 # The library search path used internally by the compiler when linking
11452 # a shared library.
11453 compiler_lib_search_path=$lt_compiler_lib_search_path
11455 # Method to check whether dependent libraries are shared objects.
11456 deplibs_check_method=$lt_deplibs_check_method
11458 # Command to use when deplibs_check_method == file_magic.
11459 file_magic_cmd=$lt_file_magic_cmd
11461 # Flag that allows shared libraries with undefined symbols to be built.
11462 allow_undefined_flag=$lt_allow_undefined_flag
11464 # Flag that forces no undefined symbols.
11465 no_undefined_flag=$lt_no_undefined_flag
11467 # Commands used to finish a libtool library installation in a directory.
11468 finish_cmds=$lt_finish_cmds
11470 # Same as above, but a single script fragment to be evaled but not shown.
11471 finish_eval=$lt_finish_eval
11473 # Take the output of nm and produce a listing of raw symbols and C names.
11474 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11476 # Transform the output of nm in a proper C declaration
11477 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11479 # Transform the output of nm in a C name address pair
11480 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11482 # This is the shared library runtime path variable.
11483 runpath_var=$runpath_var
11485 # This is the shared library path variable.
11486 shlibpath_var=$shlibpath_var
11488 # Is shlibpath searched before the hard-coded library search path?
11489 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11491 # How to hardcode a shared library path into an executable.
11492 hardcode_action=$hardcode_action
11494 # Whether we should hardcode library paths into libraries.
11495 hardcode_into_libs=$hardcode_into_libs
11497 # Flag to hardcode \$libdir into a binary during linking.
11498 # This must work even if \$libdir does not exist.
11499 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11501 # If ld is used when linking, flag to hardcode \$libdir into
11502 # a binary during linking. This must work even if \$libdir does
11504 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11506 # Whether we need a single -rpath flag with a separated argument.
11507 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11509 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11510 # resulting binary.
11511 hardcode_direct=$hardcode_direct
11513 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11514 # resulting binary.
11515 hardcode_minus_L=$hardcode_minus_L
11517 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11518 # the resulting binary.
11519 hardcode_shlibpath_var=$hardcode_shlibpath_var
11521 # Set to yes if building a shared library automatically hardcodes DIR into the library
11522 # and all subsequent libraries and executables linked against it.
11523 hardcode_automatic=$hardcode_automatic
11525 # Variables whose values should be saved in libtool wrapper scripts and
11526 # restored at relink time.
11527 variables_saved_for_relink="$variables_saved_for_relink"
11529 # Whether libtool must link a program against all its dependency libraries.
11530 link_all_deplibs=$link_all_deplibs
11532 # Compile-time system search path for libraries
11533 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11535 # Run-time system search path for libraries
11536 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11538 # Fix the shell variable \$srcfile for the compiler.
11539 fix_srcfile_path="$fix_srcfile_path"
11541 # Set to yes if exported symbols are required.
11542 always_export_symbols=$always_export_symbols
11544 # The commands to list exported symbols.
11545 export_symbols_cmds=$lt_export_symbols_cmds
11547 # The commands to extract the exported symbol list from a shared archive.
11548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11550 # Symbols that should not be listed in the preloaded symbols.
11551 exclude_expsyms=$lt_exclude_expsyms
11553 # Symbols that must always be exported.
11554 include_expsyms=$lt_include_expsyms
11556 # ### END LIBTOOL CONFIG
11563 cat <<\EOF >> "$cfgfile"
11565 # AIX sometimes has problems with the GCC collect2 program. For some
11566 # reason, if we set the COLLECT_NAMES environment variable, the problems
11567 # vanish in a puff of smoke.
11568 if test "X${COLLECT_NAMES+set}" != Xset; then
11570 export COLLECT_NAMES
11576 # We use sed instead of cat because bash on DJGPP gets confused if
11577 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11578 # text mode, it properly converts lines to CR/LF. This bash problem
11579 # is reportedly fixed, but why not run on old versions too?
11580 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11582 mv -f "$cfgfile" "$ofile" || \
11583 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11587 # If there is no Makefile yet, we rely on a make rule to execute
11588 # `config.status --recheck' to rerun these tests and create the
11589 # libtool script then.
11590 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11591 if test -f "$ltmain_in"; then
11592 test -f Makefile && make "$ltmain"
11598 ac_cpp='$CPP $CPPFLAGS'
11599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11606 # Check whether --with-tags was given.
11607 if test "${with_tags+set}" = set; then :
11608 withval=$with_tags; tagnames="$withval"
11612 if test -f "$ltmain" && test -n "$tagnames"; then
11613 if test ! -f "${ofile}"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11615 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11618 if test -z "$LTCC"; then
11619 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11620 if test -z "$LTCC"; then
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11622 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11625 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11629 # Extract list of available tagged configurations in $ofile.
11630 # Note that this assumes the entire list is on one line.
11631 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11634 for tagname in $tagnames; do
11636 # Check whether tagname contains only valid characters
11637 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11639 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11643 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11645 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11648 # Update the list of available tags.
11649 if test -n "$tagname"; then
11650 echo appending configuration tag \"$tagname\" to $ofile
11654 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11655 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11656 (test "X$CXX" != "Xg++"))) ; then
11664 if test -n "$F77" && test "X$F77" != "Xno"; then
11672 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11682 # Source file extension for RC test sources.
11685 # Object file extension for compiled RC test sources.
11689 # Code to be used in simple compile tests
11690 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11692 # Code to be used in simple link tests
11693 lt_simple_link_test_code="$lt_simple_compile_test_code"
11695 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11697 # If no C compiler was specified, use CC.
11700 # Allow CC to be a program name with arguments.
11704 # save warnings/boilerplate of simple test code
11705 ac_outfile=conftest.$ac_objext
11706 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11707 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11708 _lt_compiler_boilerplate=`cat conftest.err`
11711 ac_outfile=conftest.$ac_objext
11712 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11713 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11714 _lt_linker_boilerplate=`cat conftest.err`
11718 # Allow CC to be a program name with arguments.
11723 for cc_temp in $compiler""; do
11725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11731 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11733 lt_cv_prog_compiler_c_o_RC=yes
11735 # The else clause should only fire when bootstrapping the
11736 # libtool distribution, otherwise you forgot to ship ltmain.sh
11737 # with your package, and you will get complaints that there are
11738 # no rules to generate ltmain.sh.
11739 if test -f "$ltmain"; then
11740 # See if we are running on zsh, and set the options which allow our commands through
11741 # without removal of \ escapes.
11742 if test -n "${ZSH_VERSION+set}" ; then
11743 setopt NO_GLOB_SUBST
11745 # Now quote all the things that may contain metacharacters while being
11746 # careful not to overquote the AC_SUBSTed values. We take copies of the
11747 # variables and quote the copies for generation of the libtool script.
11748 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11750 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11751 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11752 deplibs_check_method reload_flag reload_cmds need_locks \
11753 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11754 lt_cv_sys_global_symbol_to_c_name_address \
11755 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11756 old_postinstall_cmds old_postuninstall_cmds \
11760 lt_prog_compiler_wl_RC \
11761 lt_prog_compiler_pic_RC \
11762 lt_prog_compiler_static_RC \
11763 lt_prog_compiler_no_builtin_flag_RC \
11764 export_dynamic_flag_spec_RC \
11765 thread_safe_flag_spec_RC \
11766 whole_archive_flag_spec_RC \
11767 enable_shared_with_static_runtimes_RC \
11768 old_archive_cmds_RC \
11769 old_archive_from_new_cmds_RC \
11770 predep_objects_RC \
11771 postdep_objects_RC \
11774 compiler_lib_search_path_RC \
11776 archive_expsym_cmds_RC \
11777 postinstall_cmds_RC \
11778 postuninstall_cmds_RC \
11779 old_archive_from_expsyms_cmds_RC \
11780 allow_undefined_flag_RC \
11781 no_undefined_flag_RC \
11782 export_symbols_cmds_RC \
11783 hardcode_libdir_flag_spec_RC \
11784 hardcode_libdir_flag_spec_ld_RC \
11785 hardcode_libdir_separator_RC \
11786 hardcode_automatic_RC \
11788 module_expsym_cmds_RC \
11789 lt_cv_prog_compiler_c_o_RC \
11790 exclude_expsyms_RC \
11791 include_expsyms_RC; do
11794 old_archive_cmds_RC | \
11795 old_archive_from_new_cmds_RC | \
11796 archive_cmds_RC | \
11797 archive_expsym_cmds_RC | \
11799 module_expsym_cmds_RC | \
11800 old_archive_from_expsyms_cmds_RC | \
11801 export_symbols_cmds_RC | \
11802 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11803 postinstall_cmds | postuninstall_cmds | \
11804 old_postinstall_cmds | old_postuninstall_cmds | \
11805 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11806 # Double-quote double-evaled strings.
11807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11816 *'\$0 --fallback-echo"')
11817 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11823 cat <<__EOF__ >> "$cfgfile"
11824 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11826 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11828 # Shell to use when invoking shell scripts.
11831 # Whether or not to build shared libraries.
11832 build_libtool_libs=$enable_shared
11834 # Whether or not to build static libraries.
11835 build_old_libs=$enable_static
11837 # Whether or not to add -lc for building shared libraries.
11838 build_libtool_need_lc=$archive_cmds_need_lc_RC
11840 # Whether or not to disallow shared libs when runtime libs are static
11841 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11843 # Whether or not to optimize for fast installation.
11844 fast_install=$enable_fast_install
11847 host_alias=$host_alias
11851 # The build system.
11852 build_alias=$build_alias
11856 # An echo program that does not interpret backslashes.
11861 AR_FLAGS=$lt_AR_FLAGS
11866 # A language-specific compiler.
11869 # Is the compiler the GNU C compiler?
11875 # The linker used to build libraries.
11878 # Whether we need hard or soft links.
11881 # A BSD-compatible nm program.
11884 # A symbol stripping program
11887 # Used to examine libraries when file_magic_cmd begins "file"
11888 MAGIC_CMD=$MAGIC_CMD
11890 # Used on cygwin: DLL creation program.
11893 # Used on cygwin: object dumper.
11896 # Used on cygwin: assembler.
11899 # The name of the directory that contains temporary libtool files.
11902 # How to create reloadable object files.
11903 reload_flag=$lt_reload_flag
11904 reload_cmds=$lt_reload_cmds
11906 # How to pass a linker flag through the compiler.
11907 wl=$lt_lt_prog_compiler_wl_RC
11909 # Object file suffix (normally "o").
11910 objext="$ac_objext"
11912 # Old archive suffix (normally "a").
11915 # Shared library suffix (normally ".so").
11916 shrext_cmds='$shrext_cmds'
11918 # Executable file suffix (normally "").
11921 # Additional compiler flags for building library objects.
11922 pic_flag=$lt_lt_prog_compiler_pic_RC
11925 # What is the maximum length of a command?
11926 max_cmd_len=$lt_cv_sys_max_cmd_len
11928 # Does compiler simultaneously support -c and -o options?
11929 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11931 # Must we lock files when doing compilation?
11932 need_locks=$lt_need_locks
11934 # Do we need the lib prefix for modules?
11935 need_lib_prefix=$need_lib_prefix
11937 # Do we need a version for libraries?
11938 need_version=$need_version
11940 # Whether dlopen is supported.
11941 dlopen_support=$enable_dlopen
11943 # Whether dlopen of programs is supported.
11944 dlopen_self=$enable_dlopen_self
11946 # Whether dlopen of statically linked programs is supported.
11947 dlopen_self_static=$enable_dlopen_self_static
11949 # Compiler flag to prevent dynamic linking.
11950 link_static_flag=$lt_lt_prog_compiler_static_RC
11952 # Compiler flag to turn off builtin functions.
11953 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11955 # Compiler flag to allow reflexive dlopens.
11956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11958 # Compiler flag to generate shared objects directly from archives.
11959 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11961 # Compiler flag to generate thread-safe objects.
11962 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11964 # Library versioning type.
11965 version_type=$version_type
11967 # Format of library name prefix.
11968 libname_spec=$lt_libname_spec
11970 # List of archive names. First name is the real one, the rest are links.
11971 # The last name is the one that the linker finds with -lNAME.
11972 library_names_spec=$lt_library_names_spec
11974 # The coded name of the library, if different from the real name.
11975 soname_spec=$lt_soname_spec
11977 # Commands used to build and install an old-style archive.
11979 old_archive_cmds=$lt_old_archive_cmds_RC
11980 old_postinstall_cmds=$lt_old_postinstall_cmds
11981 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11983 # Create an old-style archive from a shared archive.
11984 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11986 # Create a temporary old-style archive to link instead of a shared archive.
11987 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11989 # Commands used to build and install a shared archive.
11990 archive_cmds=$lt_archive_cmds_RC
11991 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11992 postinstall_cmds=$lt_postinstall_cmds
11993 postuninstall_cmds=$lt_postuninstall_cmds
11995 # Commands used to build a loadable module (assumed same as above if empty)
11996 module_cmds=$lt_module_cmds_RC
11997 module_expsym_cmds=$lt_module_expsym_cmds_RC
11999 # Commands to strip libraries.
12000 old_striplib=$lt_old_striplib
12001 striplib=$lt_striplib
12003 # Dependencies to place before the objects being linked to create a
12005 predep_objects=$lt_predep_objects_RC
12007 # Dependencies to place after the objects being linked to create a
12009 postdep_objects=$lt_postdep_objects_RC
12011 # Dependencies to place before the objects being linked to create a
12013 predeps=$lt_predeps_RC
12015 # Dependencies to place after the objects being linked to create a
12017 postdeps=$lt_postdeps_RC
12019 # The library search path used internally by the compiler when linking
12020 # a shared library.
12021 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12023 # Method to check whether dependent libraries are shared objects.
12024 deplibs_check_method=$lt_deplibs_check_method
12026 # Command to use when deplibs_check_method == file_magic.
12027 file_magic_cmd=$lt_file_magic_cmd
12029 # Flag that allows shared libraries with undefined symbols to be built.
12030 allow_undefined_flag=$lt_allow_undefined_flag_RC
12032 # Flag that forces no undefined symbols.
12033 no_undefined_flag=$lt_no_undefined_flag_RC
12035 # Commands used to finish a libtool library installation in a directory.
12036 finish_cmds=$lt_finish_cmds
12038 # Same as above, but a single script fragment to be evaled but not shown.
12039 finish_eval=$lt_finish_eval
12041 # Take the output of nm and produce a listing of raw symbols and C names.
12042 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12044 # Transform the output of nm in a proper C declaration
12045 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12047 # Transform the output of nm in a C name address pair
12048 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12050 # This is the shared library runtime path variable.
12051 runpath_var=$runpath_var
12053 # This is the shared library path variable.
12054 shlibpath_var=$shlibpath_var
12056 # Is shlibpath searched before the hard-coded library search path?
12057 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12059 # How to hardcode a shared library path into an executable.
12060 hardcode_action=$hardcode_action_RC
12062 # Whether we should hardcode library paths into libraries.
12063 hardcode_into_libs=$hardcode_into_libs
12065 # Flag to hardcode \$libdir into a binary during linking.
12066 # This must work even if \$libdir does not exist.
12067 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12069 # If ld is used when linking, flag to hardcode \$libdir into
12070 # a binary during linking. This must work even if \$libdir does
12072 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12074 # Whether we need a single -rpath flag with a separated argument.
12075 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12077 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12078 # resulting binary.
12079 hardcode_direct=$hardcode_direct_RC
12081 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12082 # resulting binary.
12083 hardcode_minus_L=$hardcode_minus_L_RC
12085 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12086 # the resulting binary.
12087 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12089 # Set to yes if building a shared library automatically hardcodes DIR into the library
12090 # and all subsequent libraries and executables linked against it.
12091 hardcode_automatic=$hardcode_automatic_RC
12093 # Variables whose values should be saved in libtool wrapper scripts and
12094 # restored at relink time.
12095 variables_saved_for_relink="$variables_saved_for_relink"
12097 # Whether libtool must link a program against all its dependency libraries.
12098 link_all_deplibs=$link_all_deplibs_RC
12100 # Compile-time system search path for libraries
12101 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12103 # Run-time system search path for libraries
12104 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12106 # Fix the shell variable \$srcfile for the compiler.
12107 fix_srcfile_path="$fix_srcfile_path_RC"
12109 # Set to yes if exported symbols are required.
12110 always_export_symbols=$always_export_symbols_RC
12112 # The commands to list exported symbols.
12113 export_symbols_cmds=$lt_export_symbols_cmds_RC
12115 # The commands to extract the exported symbol list from a shared archive.
12116 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12118 # Symbols that should not be listed in the preloaded symbols.
12119 exclude_expsyms=$lt_exclude_expsyms_RC
12121 # Symbols that must always be exported.
12122 include_expsyms=$lt_include_expsyms_RC
12124 # ### END LIBTOOL TAG CONFIG: $tagname
12130 # If there is no Makefile yet, we rely on a make rule to execute
12131 # `config.status --recheck' to rerun these tests and create the
12132 # libtool script then.
12133 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12134 if test -f "$ltmain_in"; then
12135 test -f Makefile && make "$ltmain"
12141 ac_cpp='$CPP $CPPFLAGS'
12142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12151 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12155 # Append the new tag name to the list of available tags.
12156 if test -n "$tagname" ; then
12157 available_tags="$available_tags $tagname"
12163 # Now substitute the updated list of available tags.
12164 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12165 mv "${ofile}T" "$ofile"
12169 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12175 # This can be used to rebuild libtool when needed
12176 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12178 # Always use our own libtool.
12179 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12181 # Prevent multiple expansion
12193 if test $ol_enable_perl != no ; then
12194 # Extract the first word of "perl", so it can be a program name with args.
12195 set dummy perl; ac_word=$2
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12197 $as_echo_n "checking for $ac_word... " >&6; }
12198 if test "${ac_cv_path_PERLBIN+set}" = set; then :
12199 $as_echo_n "(cached) " >&6
12203 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207 for as_dir in $PATH
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12221 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12225 PERLBIN=$ac_cv_path_PERLBIN
12226 if test -n "$PERLBIN"; then
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12228 $as_echo "$PERLBIN" >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231 $as_echo "no" >&6; }
12236 if test "no$PERLBIN" = "no" ; then
12237 if test $ol_enable_perl = yes ; then
12238 as_fn_error "could not locate perl" "$LINENO" 5
12242 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12243 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12245 if test x"$ol_enable_perl" = "xyes" ; then
12246 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12248 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12255 ac_cpp='$CPP $CPPFLAGS'
12256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12260 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12261 # On Suns, sometimes $CPP names a directory.
12262 if test -n "$CPP" && test -d "$CPP"; then
12265 if test -z "$CPP"; then
12266 if test "${ac_cv_prog_CPP+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12269 # Double quotes because CPP needs to be expanded
12270 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12272 ac_preproc_ok=false
12273 for ac_c_preproc_warn_flag in '' yes
12275 # Use a header file that comes with gcc, so configuring glibc
12276 # with a fresh cross-compiler works.
12277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12278 # <limits.h> exists even on freestanding compilers.
12279 # On the NeXT, cc -E runs the code through the compiler's parser,
12280 # not just through cpp. "Syntax error" is here to catch this case.
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12284 # include <limits.h>
12286 # include <assert.h>
12290 if ac_fn_c_try_cpp "$LINENO"; then :
12293 # Broken: fails on valid input.
12296 rm -f conftest.err conftest.$ac_ext
12298 # OK, works on sane cases. Now check whether nonexistent headers
12299 # can be detected and how.
12300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h. */
12302 #include <ac_nonexistent.h>
12304 if ac_fn_c_try_cpp "$LINENO"; then :
12305 # Broken: success on invalid input.
12308 # Passes both tests.
12312 rm -f conftest.err conftest.$ac_ext
12315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12316 rm -f conftest.err conftest.$ac_ext
12317 if $ac_preproc_ok; then :
12322 ac_cv_prog_CPP=$CPP
12325 CPP=$ac_cv_prog_CPP
12327 ac_cv_prog_CPP=$CPP
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12330 $as_echo "$CPP" >&6; }
12331 ac_preproc_ok=false
12332 for ac_c_preproc_warn_flag in '' yes
12334 # Use a header file that comes with gcc, so configuring glibc
12335 # with a fresh cross-compiler works.
12336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12337 # <limits.h> exists even on freestanding compilers.
12338 # On the NeXT, cc -E runs the code through the compiler's parser,
12339 # not just through cpp. "Syntax error" is here to catch this case.
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h. */
12343 # include <limits.h>
12345 # include <assert.h>
12349 if ac_fn_c_try_cpp "$LINENO"; then :
12352 # Broken: fails on valid input.
12355 rm -f conftest.err conftest.$ac_ext
12357 # OK, works on sane cases. Now check whether nonexistent headers
12358 # can be detected and how.
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361 #include <ac_nonexistent.h>
12363 if ac_fn_c_try_cpp "$LINENO"; then :
12364 # Broken: success on invalid input.
12367 # Passes both tests.
12371 rm -f conftest.err conftest.$ac_ext
12374 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12375 rm -f conftest.err conftest.$ac_ext
12376 if $ac_preproc_ok; then :
12379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12381 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12382 See \`config.log' for more details." "$LINENO" 5; }
12386 ac_cpp='$CPP $CPPFLAGS'
12387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12392 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12393 if test "${ol_cv_msvc+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12400 #include <__FOO__/generate_error.h>
12404 if ac_fn_c_try_cpp "$LINENO"; then :
12409 rm -f conftest.err conftest.$ac_ext
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12412 $as_echo "$ol_cv_msvc" >&6; }
12415 *mingw32* ) ac_cv_mingw32=yes ;;
12416 *cygwin* ) ac_cv_cygwin=yes ;;
12417 *interix* ) ac_cv_interix=yes ;;
12423 cat >>confdefs.h <<_ACEOF
12424 #define EXEEXT "${EXEEXT}"
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12429 $as_echo_n "checking for be_app in -lbe... " >&6; }
12430 if test "${ac_cv_lib_be_be_app+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-lbe -lroot -lnet $LIBS"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12453 if ac_fn_c_try_link "$LINENO"; then :
12454 ac_cv_lib_be_be_app=yes
12456 ac_cv_lib_be_be_app=no
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12463 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12464 if test "x$ac_cv_lib_be_be_app" = x""yes; then :
12465 LIBS="$LIBS -lbe -lroot -lnet"
12472 ac_cpp='$CPP $CPPFLAGS'
12473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12476 if test -n "$ac_tool_prefix"; then
12477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12480 $as_echo_n "checking for $ac_word... " >&6; }
12481 if test "${ac_cv_prog_CC+set}" = set; then :
12482 $as_echo_n "(cached) " >&6
12484 if test -n "$CC"; then
12485 ac_cv_prog_CC="$CC" # Let the user override the test.
12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12488 for as_dir in $PATH
12491 test -z "$as_dir" && as_dir=.
12492 for ac_exec_ext in '' $ac_executable_extensions; do
12493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12505 if test -n "$CC"; then
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12507 $as_echo "$CC" >&6; }
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12510 $as_echo "no" >&6; }
12515 if test -z "$ac_cv_prog_CC"; then
12517 # Extract the first word of "gcc", so it can be a program name with args.
12518 set dummy gcc; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12522 $as_echo_n "(cached) " >&6
12524 if test -n "$ac_ct_CC"; then
12525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12531 test -z "$as_dir" && as_dir=.
12532 for ac_exec_ext in '' $ac_executable_extensions; do
12533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12534 ac_cv_prog_ac_ct_CC="gcc"
12535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12545 if test -n "$ac_ct_CC"; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12547 $as_echo "$ac_ct_CC" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12553 if test "x$ac_ct_CC" = x; then
12556 case $cross_compiling:$ac_tool_warned in
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12560 ac_tool_warned=yes ;;
12565 CC="$ac_cv_prog_CC"
12568 if test -z "$CC"; then
12569 if test -n "$ac_tool_prefix"; then
12570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12571 set dummy ${ac_tool_prefix}cc; ac_word=$2
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573 $as_echo_n "checking for $ac_word... " >&6; }
12574 if test "${ac_cv_prog_CC+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
12577 if test -n "$CC"; then
12578 ac_cv_prog_CC="$CC" # Let the user override the test.
12580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12581 for as_dir in $PATH
12584 test -z "$as_dir" && as_dir=.
12585 for ac_exec_ext in '' $ac_executable_extensions; do
12586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12587 ac_cv_prog_CC="${ac_tool_prefix}cc"
12588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598 if test -n "$CC"; then
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12600 $as_echo "$CC" >&6; }
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603 $as_echo "no" >&6; }
12609 if test -z "$CC"; then
12610 # Extract the first word of "cc", so it can be a program name with args.
12611 set dummy cc; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12613 $as_echo_n "checking for $ac_word... " >&6; }
12614 if test "${ac_cv_prog_CC+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12617 if test -n "$CC"; then
12618 ac_cv_prog_CC="$CC" # Let the user override the test.
12620 ac_prog_rejected=no
12621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12622 for as_dir in $PATH
12625 test -z "$as_dir" && as_dir=.
12626 for ac_exec_ext in '' $ac_executable_extensions; do
12627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12629 ac_prog_rejected=yes
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12640 if test $ac_prog_rejected = yes; then
12641 # We found a bogon in the path, so make sure we never use it.
12642 set dummy $ac_cv_prog_CC
12644 if test $# != 0; then
12645 # We chose a different compiler from the bogus one.
12646 # However, it has the same basename, so the bogon will be chosen
12647 # first if we set CC to just the basename; use the full file name.
12649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12655 if test -n "$CC"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12657 $as_echo "$CC" >&6; }
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660 $as_echo "no" >&6; }
12665 if test -z "$CC"; then
12666 if test -n "$ac_tool_prefix"; then
12667 for ac_prog in cl.exe
12669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if test "${ac_cv_prog_CC+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12676 if test -n "$CC"; then
12677 ac_cv_prog_CC="$CC" # Let the user override the test.
12679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12680 for as_dir in $PATH
12683 test -z "$as_dir" && as_dir=.
12684 for ac_exec_ext in '' $ac_executable_extensions; do
12685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697 if test -n "$CC"; then
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12699 $as_echo "$CC" >&6; }
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12702 $as_echo "no" >&6; }
12706 test -n "$CC" && break
12709 if test -z "$CC"; then
12711 for ac_prog in cl.exe
12713 # Extract the first word of "$ac_prog", so it can be a program name with args.
12714 set dummy $ac_prog; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12720 if test -n "$ac_ct_CC"; then
12721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_prog_ac_ct_CC="$ac_prog"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12741 if test -n "$ac_ct_CC"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12743 $as_echo "$ac_ct_CC" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12750 test -n "$ac_ct_CC" && break
12753 if test "x$ac_ct_CC" = x; then
12756 case $cross_compiling:$ac_tool_warned in
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12760 ac_tool_warned=yes ;;
12769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12771 as_fn_error "no acceptable C compiler found in \$PATH
12772 See \`config.log' for more details." "$LINENO" 5; }
12774 # Provide some information about the compiler.
12775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12778 for ac_option in --version -v -V -qversion; do
12779 { { ac_try="$ac_compiler $ac_option >&5"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12785 $as_echo "$ac_try_echo"; } >&5
12786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12788 if test -s conftest.err; then
12790 ... rest of stderr output deleted ...
12791 10q' conftest.err >conftest.er1
12792 cat conftest.er1 >&5
12794 rm -f conftest.er1 conftest.err
12795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12796 test $ac_status = 0; }
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12801 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
12804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805 /* end confdefs.h. */
12818 if ac_fn_c_try_compile "$LINENO"; then :
12819 ac_compiler_gnu=yes
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12829 if test $ac_compiler_gnu = yes; then
12834 ac_test_CFLAGS=${CFLAGS+set}
12835 ac_save_CFLAGS=$CFLAGS
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12838 if test "${ac_cv_prog_cc_g+set}" = set; then :
12839 $as_echo_n "(cached) " >&6
12841 ac_save_c_werror_flag=$ac_c_werror_flag
12842 ac_c_werror_flag=yes
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846 /* end confdefs.h. */
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857 ac_cv_prog_cc_g=yes
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12871 if ac_fn_c_try_compile "$LINENO"; then :
12874 ac_c_werror_flag=$ac_save_c_werror_flag
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12887 if ac_fn_c_try_compile "$LINENO"; then :
12888 ac_cv_prog_cc_g=yes
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895 ac_c_werror_flag=$ac_save_c_werror_flag
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12898 $as_echo "$ac_cv_prog_cc_g" >&6; }
12899 if test "$ac_test_CFLAGS" = set; then
12900 CFLAGS=$ac_save_CFLAGS
12901 elif test $ac_cv_prog_cc_g = yes; then
12902 if test "$GCC" = yes; then
12908 if test "$GCC" = yes; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12916 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12917 $as_echo_n "(cached) " >&6
12919 ac_cv_prog_cc_c89=no
12921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12922 /* end confdefs.h. */
12923 #include <stdarg.h>
12925 #include <sys/types.h>
12926 #include <sys/stat.h>
12927 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12928 struct buf { int x; };
12929 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12930 static char *e (p, i)
12936 static char *f (char * (*g) (char **, int), char **p, ...)
12941 s = g (p, va_arg (v,int));
12946 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12947 function prototypes and stuff, but not '\xHH' hex character constants.
12948 These don't provoke an error unfortunately, instead are silently treated
12949 as 'x'. The following induces an error, until -std is added to get
12950 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12951 array size at least. It's necessary to write '\x00'==0 to get something
12952 that's true only with -std. */
12953 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12955 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12956 inside strings and character constants. */
12958 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12960 int test (int i, double x);
12961 struct s1 {int (*f) (int a);};
12962 struct s2 {int (*f) (double a);};
12963 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12969 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12974 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12975 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12977 CC="$ac_save_CC $ac_arg"
12978 if ac_fn_c_try_compile "$LINENO"; then :
12979 ac_cv_prog_cc_c89=$ac_arg
12981 rm -f core conftest.err conftest.$ac_objext
12982 test "x$ac_cv_prog_cc_c89" != "xno" && break
12984 rm -f conftest.$ac_ext
12989 case "x$ac_cv_prog_cc_c89" in
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12992 $as_echo "none needed" >&6; } ;;
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12995 $as_echo "unsupported" >&6; } ;;
12997 CC="$CC $ac_cv_prog_cc_c89"
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13001 if test "x$ac_cv_prog_cc_c89" != xno; then :
13006 ac_cpp='$CPP $CPPFLAGS'
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13011 depcc="$CC" am_compiler_list=
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13014 $as_echo_n "checking dependency style of $depcc... " >&6; }
13015 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13016 $as_echo_n "(cached) " >&6
13018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13019 # We make a subdir and do the tests there. Otherwise we can end up
13020 # making bogus files that we don't know about and never remove. For
13021 # instance it was reported that on HP-UX the gcc test will end up
13022 # making a dummy file named `D' -- because `-MD' means `put the output
13025 # Copy depcomp to subdir because otherwise we won't find it if we're
13026 # using a relative directory.
13027 cp "$am_depcomp" conftest.dir
13029 # We will build objects and dependencies in a subdirectory because
13030 # it helps to detect inapplicable dependency modes. For instance
13031 # both Tru64's cc and ICC support -MD to output dependencies as a
13032 # side effect of compilation, but ICC will put the dependencies in
13033 # the current directory while Tru64 will put them in the object
13037 am_cv_CC_dependencies_compiler_type=none
13038 if test "$am_compiler_list" = ""; then
13039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13041 for depmode in $am_compiler_list; do
13042 # Setup a source with many dependencies, because some compilers
13043 # like to wrap large dependency lists on column 80 (with \), and
13044 # we should not choose a depcomp mode which is confused by this.
13046 # We need to recreate these files for each test, as the compiler may
13047 # overwrite some of them when testing with obscure command lines.
13048 # This happens at least with the AIX C compiler.
13050 for i in 1 2 3 4 5 6; do
13051 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13052 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13053 # Solaris 8's {/usr,}/bin/sh.
13054 touch sub/conftst$i.h
13056 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13060 # after this tag, mechanisms are not by side-effect, so they'll
13061 # only be used when explicitly requested
13062 if test "x$enable_dependency_tracking" = xyes; then
13070 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13071 # mode. It turns out that the SunPro C++ compiler does not properly
13072 # handle `-M -o', and we need to detect this.
13073 if depmode=$depmode \
13074 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13075 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13076 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13077 >/dev/null 2>conftest.err &&
13078 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13079 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13080 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13081 # icc doesn't choke on unknown options, it will just issue warnings
13082 # or remarks (even with -Werror). So we grep stderr for any message
13083 # that says an option was ignored or not supported.
13084 # When given -MP, icc 7.0 and 7.1 complain thusly:
13085 # icc: Command line warning: ignoring option '-M'; no argument required
13086 # The diagnosis changed in icc 8.0:
13087 # icc: Command line remark: option '-MP' not supported
13088 if (grep 'ignoring option' conftest.err ||
13089 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13090 am_cv_CC_dependencies_compiler_type=$depmode
13097 rm -rf conftest.dir
13099 am_cv_CC_dependencies_compiler_type=none
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13104 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13105 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13110 test "x$enable_dependency_tracking" != xno \
13111 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13112 am__fastdepCC_TRUE=
13113 am__fastdepCC_FALSE='#'
13115 am__fastdepCC_TRUE='#'
13116 am__fastdepCC_FALSE=
13120 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13121 as_fn_error "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13124 # test for make depend flag
13127 if test -z "${MKDEP}"; then
13128 OL_MKDEP="${CC-cc}"
13129 if test -z "${MKDEP_FLAGS}"; then
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13131 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13132 if test "${ol_cv_mkdep+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13137 for flag in "-M" "-xM"; do
13138 cat > conftest.c <<EOF
13141 if { ac_try='$OL_MKDEP $flag conftest.c'
13142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13143 (eval $ac_try) 2>&5
13145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13146 test $ac_status = 0; }; } \
13147 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13149 if test ! -f conftest."${ac_object}" ; then
13151 OL_MKDEP_FLAGS="$flag"
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13160 $as_echo "$ol_cv_mkdep" >&6; }
13161 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13164 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13168 OL_MKDEP="${MKDEP}"
13169 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13174 if test "${ol_cv_mkdep}" = no ; then
13175 # this will soon become an error
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13177 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13181 $as_echo_n "checking for afopen in -ls... " >&6; }
13182 if test "${ac_cv_lib_s_afopen+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13185 ac_check_lib_save_LIBS=$LIBS
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13190 /* Override any GCC internal prototype to avoid an error.
13191 Use char because int might match the return type of a GCC
13192 builtin and then its argument prototype would still apply. */
13205 if ac_fn_c_try_link "$LINENO"; then :
13206 ac_cv_lib_s_afopen=yes
13208 ac_cv_lib_s_afopen=no
13210 rm -f core conftest.err conftest.$ac_objext \
13211 conftest$ac_exeext conftest.$ac_ext
13212 LIBS=$ac_check_lib_save_LIBS
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13215 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13216 if test "x$ac_cv_lib_s_afopen" = x""yes; then :
13220 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13228 ac_cv_func_getopt=no
13230 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13236 WITH_MODULES_ENABLED=no
13237 if test $ol_enable_modules != no ; then
13238 for ac_header in ltdl.h
13240 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13241 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13242 cat >>confdefs.h <<_ACEOF
13243 #define HAVE_LTDL_H 1
13251 if test $ac_cv_header_ltdl_h = no ; then
13252 as_fn_error "could not locate libtool ltdl.h" "$LINENO" 5
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13256 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13257 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
13258 $as_echo_n "(cached) " >&6
13260 ac_check_lib_save_LIBS=$LIBS
13261 LIBS="-lltdl $LIBS"
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13265 /* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13275 return lt_dlinit ();
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_lib_ltdl_lt_dlinit=yes
13283 ac_cv_lib_ltdl_lt_dlinit=no
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13290 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13291 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
13293 MODULES_LIBS=-lltdl
13295 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13301 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13302 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
13304 ol_link_modules=yes
13305 WITH_MODULES_ENABLED=yes
13308 for i in $Backends; do
13309 eval "ol_tmp=\$ol_enable_$i"
13310 if test $ol_tmp = mod ; then
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13312 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13313 eval "ol_enable_$i=yes"
13316 for i in $Overlays; do
13317 eval "ol_tmp=\$ol_enable_$i"
13318 if test $ol_tmp = mod ; then
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13320 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13321 eval "ol_enable_$i=yes"
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13328 $as_echo_n "checking for EBCDIC... " >&6; }
13329 if test "${ol_cv_cpp_ebcdic+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13337 #include <__ASCII__/generate_error.h>
13341 if ac_fn_c_try_cpp "$LINENO"; then :
13342 ol_cv_cpp_ebcdic=yes
13344 ol_cv_cpp_ebcdic=no
13346 rm -f conftest.err conftest.$ac_ext
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13349 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13350 if test $ol_cv_cpp_ebcdic = yes ; then
13352 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13357 $as_echo_n "checking for ANSI C header files... " >&6; }
13358 if test "${ol_cv_header_stdc+set}" = set; then :
13359 $as_echo_n "(cached) " >&6
13361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13362 /* end confdefs.h. */
13363 #include <stdlib.h>
13364 #include <stdarg.h>
13365 #include <string.h>
13368 if ac_fn_c_try_cpp "$LINENO"; then :
13369 ol_cv_header_stdc=yes
13371 ol_cv_header_stdc=no
13373 rm -f conftest.err conftest.$ac_ext
13375 if test $ol_cv_header_stdc = yes; then
13376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379 #include <string.h>
13382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13383 $EGREP "memchr" >/dev/null 2>&1; then :
13386 ol_cv_header_stdc=no
13392 if test $ol_cv_header_stdc = yes; then
13393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13395 /* end confdefs.h. */
13396 #include <stdlib.h>
13399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13400 $EGREP "free" >/dev/null 2>&1; then :
13403 ol_cv_header_stdc=no
13409 if test $ol_cv_header_stdc = yes; then
13410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13411 if test "$cross_compiling" = yes; then :
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13417 #ifndef HAVE_EBCDIC
13418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13421 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13422 || ('j' <= (c) && (c) <= 'r') \
13423 || ('s' <= (c) && (c) <= 'z'))
13424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13426 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13427 int main () { int i; for (i = 0; i < 256; i++)
13428 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13432 if ac_fn_c_try_run "$LINENO"; then :
13435 ol_cv_header_stdc=no
13437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13438 conftest.$ac_objext conftest.beam conftest.$ac_ext
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13444 $as_echo "$ol_cv_header_stdc" >&6; }
13445 if test $ol_cv_header_stdc = yes; then
13446 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13449 ac_cv_header_stdc=disable
13452 if test $ol_cv_header_stdc != yes; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13454 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13457 ac_header_dirent=no
13458 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13459 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13461 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13463 $as_echo_n "(cached) " >&6
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13467 #include <sys/types.h>
13479 if ac_fn_c_try_compile "$LINENO"; then :
13480 eval "$as_ac_Header=yes"
13482 eval "$as_ac_Header=no"
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 eval ac_res=\$$as_ac_Header
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13488 $as_echo "$ac_res" >&6; }
13489 eval as_val=\$$as_ac_Header
13490 if test "x$as_val" = x""yes; then :
13491 cat >>confdefs.h <<_ACEOF
13492 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13495 ac_header_dirent=$ac_hdr; break
13499 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13500 if test $ac_header_dirent = dirent.h; then
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13502 $as_echo_n "checking for library containing opendir... " >&6; }
13503 if test "${ac_cv_search_opendir+set}" = set; then :
13504 $as_echo_n "(cached) " >&6
13506 ac_func_search_save_LIBS=$LIBS
13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508 /* end confdefs.h. */
13510 /* Override any GCC internal prototype to avoid an error.
13511 Use char because int might match the return type of a GCC
13512 builtin and then its argument prototype would still apply. */
13525 for ac_lib in '' dir; do
13526 if test -z "$ac_lib"; then
13527 ac_res="none required"
13530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13532 if ac_fn_c_try_link "$LINENO"; then :
13533 ac_cv_search_opendir=$ac_res
13535 rm -f core conftest.err conftest.$ac_objext \
13537 if test "${ac_cv_search_opendir+set}" = set; then :
13541 if test "${ac_cv_search_opendir+set}" = set; then :
13544 ac_cv_search_opendir=no
13546 rm conftest.$ac_ext
13547 LIBS=$ac_func_search_save_LIBS
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13550 $as_echo "$ac_cv_search_opendir" >&6; }
13551 ac_res=$ac_cv_search_opendir
13552 if test "$ac_res" != no; then :
13553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13559 $as_echo_n "checking for library containing opendir... " >&6; }
13560 if test "${ac_cv_search_opendir+set}" = set; then :
13561 $as_echo_n "(cached) " >&6
13563 ac_func_search_save_LIBS=$LIBS
13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h. */
13567 /* Override any GCC internal prototype to avoid an error.
13568 Use char because int might match the return type of a GCC
13569 builtin and then its argument prototype would still apply. */
13582 for ac_lib in '' x; do
13583 if test -z "$ac_lib"; then
13584 ac_res="none required"
13587 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13589 if ac_fn_c_try_link "$LINENO"; then :
13590 ac_cv_search_opendir=$ac_res
13592 rm -f core conftest.err conftest.$ac_objext \
13594 if test "${ac_cv_search_opendir+set}" = set; then :
13598 if test "${ac_cv_search_opendir+set}" = set; then :
13601 ac_cv_search_opendir=no
13603 rm conftest.$ac_ext
13604 LIBS=$ac_func_search_save_LIBS
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13607 $as_echo "$ac_cv_search_opendir" >&6; }
13608 ac_res=$ac_cv_search_opendir
13609 if test "$ac_res" != no; then :
13610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13617 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13618 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13619 $as_echo_n "(cached) " >&6
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h. */
13623 #include <sys/types.h>
13624 #include <sys/wait.h>
13625 #ifndef WEXITSTATUS
13626 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13629 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13637 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13642 if ac_fn_c_try_compile "$LINENO"; then :
13643 ac_cv_header_sys_wait_h=yes
13645 ac_cv_header_sys_wait_h=no
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13650 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13651 if test $ac_cv_header_sys_wait_h = yes; then
13653 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13658 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13659 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13660 $as_echo_n "(cached) " >&6
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <sys/types.h>
13665 #include <termios.h>
13671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13672 $EGREP "yes" >/dev/null 2>&1; then :
13673 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13675 ac_cv_sys_tiocgwinsz_in_termios_h=no
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13681 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13683 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13685 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13686 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13687 $as_echo_n "(cached) " >&6
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 #include <sys/types.h>
13692 #include <sys/ioctl.h>
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "yes" >/dev/null 2>&1; then :
13700 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13702 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13708 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13710 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13712 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13768 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13769 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13770 eval as_val=\$$as_ac_Header
13771 if test "x$as_val" = x""yes; then :
13772 cat >>confdefs.h <<_ACEOF
13773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13781 if test "$ac_cv_mingw32" = yes \
13782 -o "$ac_cv_interix" = yes \
13783 -o "$ol_cv_msvc" = yes
13785 for ac_header in winsock.h winsock2.h
13787 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13788 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13789 eval as_val=\$$as_ac_Header
13790 if test "x$as_val" = x""yes; then :
13791 cat >>confdefs.h <<_ACEOF
13792 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13801 for ac_header in resolv.h
13803 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13804 #include <netinet/in.h>
13807 if test "x$ac_cv_header_resolv_h" = x""yes; then :
13808 cat >>confdefs.h <<_ACEOF
13809 #define HAVE_RESOLV_H 1
13817 for ac_header in netinet/tcp.h
13819 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13820 #include <netinet/in.h>
13823 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
13824 cat >>confdefs.h <<_ACEOF
13825 #define HAVE_NETINET_TCP_H 1
13833 for ac_header in sys/ucred.h
13835 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13836 #ifdef HAVE_SYS_PARAM_H
13837 #include <sys/param.h>
13841 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
13842 cat >>confdefs.h <<_ACEOF
13843 #define HAVE_SYS_UCRED_H 1
13852 for ac_func in sigaction sigset
13854 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13855 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13856 eval as_val=\$$as_ac_var
13857 if test "x$as_val" = x""yes; then :
13858 cat >>confdefs.h <<_ACEOF
13859 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13866 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13868 $as_echo_n "checking for sigset in -lV3... " >&6; }
13869 if test "${ac_cv_lib_V3_sigset+set}" = set; then :
13870 $as_echo_n "(cached) " >&6
13872 ac_check_lib_save_LIBS=$LIBS
13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13875 /* end confdefs.h. */
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13892 if ac_fn_c_try_link "$LINENO"; then :
13893 ac_cv_lib_V3_sigset=yes
13895 ac_cv_lib_V3_sigset=no
13897 rm -f core conftest.err conftest.$ac_objext \
13898 conftest$ac_exeext conftest.$ac_ext
13899 LIBS=$ac_check_lib_save_LIBS
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13902 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13903 if test "x$ac_cv_lib_V3_sigset" = x""yes; then :
13904 cat >>confdefs.h <<_ACEOF
13905 #define HAVE_LIBV3 1
13914 if test $ol_cv_msvc = yes ; then
13918 if test "$ac_cv_header_winsock_h" = yes; then
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13920 $as_echo_n "checking for winsock... " >&6; }
13921 if test "${ol_cv_winsock+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13926 for curlib in none ws2_32 wsock32; do
13927 if test $curlib != none ; then
13928 LIBS="$save_LIBS -l$curlib"
13930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 #include <winsock.h>
13939 select(0,NULL,NULL,NULL,NULL);
13941 gethostname(NULL,0);
13947 if ac_fn_c_try_link "$LINENO"; then :
13948 ol_cv_winsock=$curlib
13952 rm -f core conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13955 test "$ol_cv_winsock" != no && break
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13961 $as_echo "$ol_cv_winsock" >&6; }
13963 if test $ol_cv_winsock != no ; then
13965 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13967 ac_cv_func_socket=yes
13968 ac_cv_func_select=yes
13969 ac_cv_func_closesocket=yes
13970 ac_cv_func_gethostname=yes
13972 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13973 LIBS="$LIBS -l$ol_cv_winsock"
13976 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13978 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13985 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13986 if test "x$ac_cv_func_socket" = x""yes; then :
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13991 $as_echo_n "checking for main in -lsocket... " >&6; }
13992 if test "${ac_cv_lib_socket_main+set}" = set; then :
13993 $as_echo_n "(cached) " >&6
13995 ac_check_lib_save_LIBS=$LIBS
13996 LIBS="-lsocket $LIBS"
13997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13998 /* end confdefs.h. */
14009 if ac_fn_c_try_link "$LINENO"; then :
14010 ac_cv_lib_socket_main=yes
14012 ac_cv_lib_socket_main=no
14014 rm -f core conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
14019 $as_echo "$ac_cv_lib_socket_main" >&6; }
14020 if test "x$ac_cv_lib_socket_main" = x""yes; then :
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_LIBSOCKET 1
14025 LIBS="-lsocket $LIBS"
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
14030 $as_echo_n "checking for socket in -lnet... " >&6; }
14031 if test "${ac_cv_lib_net_socket+set}" = set; then :
14032 $as_echo_n "(cached) " >&6
14034 ac_check_lib_save_LIBS=$LIBS
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14054 if ac_fn_c_try_link "$LINENO"; then :
14055 ac_cv_lib_net_socket=yes
14057 ac_cv_lib_net_socket=no
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
14064 $as_echo "$ac_cv_lib_net_socket" >&6; }
14065 if test "x$ac_cv_lib_net_socket" = x""yes; then :
14066 cat >>confdefs.h <<_ACEOF
14067 #define HAVE_LIBNET 1
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
14075 $as_echo_n "checking for main in -lnsl_s... " >&6; }
14076 if test "${ac_cv_lib_nsl_s_main+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14079 ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lnsl_s $LIBS"
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14093 if ac_fn_c_try_link "$LINENO"; then :
14094 ac_cv_lib_nsl_s_main=yes
14096 ac_cv_lib_nsl_s_main=no
14098 rm -f core conftest.err conftest.$ac_objext \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14103 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14104 if test "x$ac_cv_lib_nsl_s_main" = x""yes; then :
14105 cat >>confdefs.h <<_ACEOF
14106 #define HAVE_LIBNSL_S 1
14109 LIBS="-lnsl_s $LIBS"
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14114 $as_echo_n "checking for main in -lnsl... " >&6; }
14115 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14116 $as_echo_n "(cached) " >&6
14118 ac_check_lib_save_LIBS=$LIBS
14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14121 /* end confdefs.h. */
14132 if ac_fn_c_try_link "$LINENO"; then :
14133 ac_cv_lib_nsl_main=yes
14135 ac_cv_lib_nsl_main=no
14137 rm -f core conftest.err conftest.$ac_objext \
14138 conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14142 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14143 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_LIBNSL 1
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14153 $as_echo_n "checking for socket in -linet... " >&6; }
14154 if test "${ac_cv_lib_inet_socket+set}" = set; then :
14155 $as_echo_n "(cached) " >&6
14157 ac_check_lib_save_LIBS=$LIBS
14158 LIBS="-linet $LIBS"
14159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14160 /* end confdefs.h. */
14162 /* Override any GCC internal prototype to avoid an error.
14163 Use char because int might match the return type of a GCC
14164 builtin and then its argument prototype would still apply. */
14177 if ac_fn_c_try_link "$LINENO"; then :
14178 ac_cv_lib_inet_socket=yes
14180 ac_cv_lib_inet_socket=no
14182 rm -f core conftest.err conftest.$ac_objext \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14187 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14188 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
14189 cat >>confdefs.h <<_ACEOF
14190 #define HAVE_LIBINET 1
14193 LIBS="-linet $LIBS"
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14198 $as_echo_n "checking for main in -lgen... " >&6; }
14199 if test "${ac_cv_lib_gen_main+set}" = set; then :
14200 $as_echo_n "(cached) " >&6
14202 ac_check_lib_save_LIBS=$LIBS
14204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14205 /* end confdefs.h. */
14216 if ac_fn_c_try_link "$LINENO"; then :
14217 ac_cv_lib_gen_main=yes
14219 ac_cv_lib_gen_main=no
14221 rm -f core conftest.err conftest.$ac_objext \
14222 conftest$ac_exeext conftest.$ac_ext
14223 LIBS=$ac_check_lib_save_LIBS
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14226 $as_echo "$ac_cv_lib_gen_main" >&6; }
14227 if test "x$ac_cv_lib_gen_main" = x""yes; then :
14228 cat >>confdefs.h <<_ACEOF
14229 #define HAVE_LIBGEN 1
14240 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14241 if test "x$ac_cv_func_select" = x""yes; then :
14244 as_fn_error "select() required." "$LINENO" 5
14248 if test "${ac_cv_header_winsock_h}" != yes; then
14249 for ac_header in sys/select.h sys/socket.h
14251 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14252 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14253 eval as_val=\$$as_ac_Header
14254 if test "x$as_val" = x""yes; then :
14255 cat >>confdefs.h <<_ACEOF
14256 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14264 $as_echo_n "checking types of arguments for select... " >&6; }
14265 if test "${ac_cv_func_select_args+set}" = set; then :
14266 $as_echo_n "(cached) " >&6
14268 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14269 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14270 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273 $ac_includes_default
14274 #ifdef HAVE_SYS_SELECT_H
14275 # include <sys/select.h>
14277 #ifdef HAVE_SYS_SOCKET_H
14278 # include <sys/socket.h>
14284 extern int select ($ac_arg1,
14285 $ac_arg234, $ac_arg234, $ac_arg234,
14291 if ac_fn_c_try_compile "$LINENO"; then :
14292 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14298 # Provide a safe default value.
14299 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14303 $as_echo "$ac_cv_func_select_args" >&6; }
14304 ac_save_IFS=$IFS; IFS=','
14305 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14309 cat >>confdefs.h <<_ACEOF
14310 #define SELECT_TYPE_ARG1 $1
14314 cat >>confdefs.h <<_ACEOF
14315 #define SELECT_TYPE_ARG234 ($2)
14319 cat >>confdefs.h <<_ACEOF
14320 #define SELECT_TYPE_ARG5 ($3)
14328 for ac_func in poll
14330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14332 eval as_val=\$$as_ac_var
14333 if test "x$as_val" = x""yes; then :
14334 cat >>confdefs.h <<_ACEOF
14335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14341 if test $ac_cv_func_poll = yes; then
14342 for ac_header in poll.h sys/poll.h
14344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14345 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14346 eval as_val=\$$as_ac_Header
14347 if test "x$as_val" = x""yes; then :
14348 cat >>confdefs.h <<_ACEOF
14349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14358 for ac_header in sys/epoll.h
14360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14362 eval as_val=\$$as_ac_Header
14363 if test "x$as_val" = x""yes; then :
14364 cat >>confdefs.h <<_ACEOF
14365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14372 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14374 $as_echo_n "checking for epoll system call... " >&6; }
14375 if test "$cross_compiling" = yes; then :
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14377 $as_echo "no" >&6; }
14379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h. */
14381 int main(int argc, char **argv)
14383 int epfd = epoll_create(256);
14384 exit (epfd == -1 ? 1 : 0);
14387 if ac_fn_c_try_run "$LINENO"; then :
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14389 $as_echo "yes" >&6; }
14391 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14398 conftest.$ac_objext conftest.beam conftest.$ac_ext
14403 for ac_header in sys/event.h
14405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14407 eval as_val=\$$as_ac_Header
14408 if test "x$as_val" = x""yes; then :
14409 cat >>confdefs.h <<_ACEOF
14410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14417 if test "${ac_cv_header_sys_event_h}" = yes; then
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue system call" >&5
14419 $as_echo_n "checking for kqueue system call... " >&6; }
14420 if test "$cross_compiling" = yes; then :
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14422 $as_echo "no" >&6; }
14424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14425 /* end confdefs.h. */
14426 int main(int argc, char **argv)
14428 int kqfd = kqueue();
14429 exit (kqfd == -1 ? 1 : 0);
14432 if ac_fn_c_try_run "$LINENO"; then :
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14434 $as_echo "yes" >&6; }
14436 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14440 $as_echo "no" >&6; }
14442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14443 conftest.$ac_objext conftest.beam conftest.$ac_ext
14448 for ac_header in sys/devpoll.h
14450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14451 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14452 eval as_val=\$$as_ac_Header
14453 if test "x$as_val" = x""yes; then :
14454 cat >>confdefs.h <<_ACEOF
14455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14462 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14463 -a "${ac_cv_header_poll_h}" = yes ; \
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14466 $as_echo_n "checking for /dev/poll... " >&6; }
14467 if test "$cross_compiling" = yes; then :
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14469 $as_echo "no" >&6; }
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 int main(int argc, char **argv)
14475 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14476 exit (devpollfd == -1 ? 1 : 0);
14479 if ac_fn_c_try_run "$LINENO"; then :
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14481 $as_echo "yes" >&6; }
14483 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14487 $as_echo "no" >&6; }
14489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14490 conftest.$ac_objext conftest.beam conftest.$ac_ext
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14496 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14497 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14505 #include <sys/types.h>
14508 #include <stdlib.h>
14513 char *c = (char *) *sys_errlist
14518 if ac_fn_c_try_compile "$LINENO"; then :
14519 ol_cv_dcl_sys_errlist=yes
14520 ol_cv_have_sys_errlist=yes
14522 ol_cv_dcl_sys_errlist=no
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14527 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14529 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14530 if test $ol_cv_dcl_sys_errlist = no ; then
14532 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14536 $as_echo_n "checking existence of sys_errlist... " >&6; }
14537 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14538 $as_echo_n "(cached) " >&6
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14547 char *c = (char *) *sys_errlist
14552 if ac_fn_c_try_link "$LINENO"; then :
14553 ol_cv_have_sys_errlist=yes
14555 ol_cv_have_sys_errlist=no
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14561 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14563 if test $ol_cv_have_sys_errlist = yes ; then
14565 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14568 for ac_func in strerror strerror_r
14570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14572 eval as_val=\$$as_ac_var
14573 if test "x$as_val" = x""yes; then :
14574 cat >>confdefs.h <<_ACEOF
14575 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14581 ol_cv_func_strerror_r=no
14582 if test "${ac_cv_func_strerror_r}" = yes ; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14584 $as_echo_n "checking non-posix strerror_r... " >&6; }
14585 if test "${ol_cv_nonposix_strerror_r+set}" = set; then :
14586 $as_echo_n "(cached) " >&6
14589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14590 /* end confdefs.h. */
14591 #include <string.h>
14593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14594 $EGREP "strerror_r" >/dev/null 2>&1; then :
14595 ol_decl_strerror_r=yes
14597 ol_decl_strerror_r=no
14601 if test $ol_decl_strerror_r = yes ; then
14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14603 /* end confdefs.h. */
14604 #include <string.h>
14608 /* from autoconf 2.59 */
14610 char x = *strerror_r (0, buf, sizeof buf);
14611 char *p = strerror_r (0, buf, sizeof buf);
14617 if ac_fn_c_try_compile "$LINENO"; then :
14618 ol_cv_nonposix_strerror_r=yes
14620 ol_cv_nonposix_strerror_r=no
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14624 if test "$cross_compiling" = yes; then :
14625 ol_cv_nonposix_strerror=no
14627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h. */
14633 strerror_r( 1, buf, sizeof buf );
14634 exit( buf[0] == 0 );
14638 if ac_fn_c_try_run "$LINENO"; then :
14639 ol_cv_nonposix_strerror_r=yes
14641 ol_cv_nonposix_strerror=no
14643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14644 conftest.$ac_objext conftest.beam conftest.$ac_ext
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14651 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14652 if test $ol_cv_nonposix_strerror_r = yes ; then
14654 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14658 elif test "${ac_cv_func_strerror}" = no ; then
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14660 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14661 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14662 $as_echo_n "(cached) " >&6
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14669 #include <sys/types.h>
14672 #include <stdlib.h>
14677 char *c = (char *) *sys_errlist
14682 if ac_fn_c_try_compile "$LINENO"; then :
14683 ol_cv_dcl_sys_errlist=yes
14684 ol_cv_have_sys_errlist=yes
14686 ol_cv_dcl_sys_errlist=no
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14691 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14693 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14694 if test $ol_cv_dcl_sys_errlist = no ; then
14696 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14700 $as_echo_n "checking existence of sys_errlist... " >&6; }
14701 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14702 $as_echo_n "(cached) " >&6
14705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706 /* end confdefs.h. */
14711 char *c = (char *) *sys_errlist
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ol_cv_have_sys_errlist=yes
14719 ol_cv_have_sys_errlist=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14725 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14727 if test $ol_cv_have_sys_errlist = yes ; then
14729 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14736 for ac_header in regex.h
14738 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14739 #ifdef HAVE_SYS_TYPES_H
14740 #include <sys/types.h>
14744 if test "x$ac_cv_header_regex_h" = x""yes; then :
14745 cat >>confdefs.h <<_ACEOF
14746 #define HAVE_REGEX_H 1
14754 if test "$ac_cv_header_regex_h" != yes ; then
14755 as_fn_error "POSIX regex.h required." "$LINENO" 5
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14758 $as_echo_n "checking for library containing regfree... " >&6; }
14759 if test "${ac_cv_search_regfree+set}" = set; then :
14760 $as_echo_n "(cached) " >&6
14762 ac_func_search_save_LIBS=$LIBS
14763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14764 /* end confdefs.h. */
14766 /* Override any GCC internal prototype to avoid an error.
14767 Use char because int might match the return type of a GCC
14768 builtin and then its argument prototype would still apply. */
14781 for ac_lib in '' regex gnuregex; do
14782 if test -z "$ac_lib"; then
14783 ac_res="none required"
14786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14788 if ac_fn_c_try_link "$LINENO"; then :
14789 ac_cv_search_regfree=$ac_res
14791 rm -f core conftest.err conftest.$ac_objext \
14793 if test "${ac_cv_search_regfree+set}" = set; then :
14797 if test "${ac_cv_search_regfree+set}" = set; then :
14800 ac_cv_search_regfree=no
14802 rm conftest.$ac_ext
14803 LIBS=$ac_func_search_save_LIBS
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14806 $as_echo "$ac_cv_search_regfree" >&6; }
14807 ac_res=$ac_cv_search_regfree
14808 if test "$ac_res" != no; then :
14809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14812 as_fn_error "POSIX regex required." "$LINENO" 5
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14818 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14819 if test "${ol_cv_c_posix_regex+set}" = set; then :
14820 $as_echo_n "(cached) " >&6
14823 if test "$cross_compiling" = yes; then :
14824 ol_cv_c_posix_regex=cross
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14829 #include <sys/types.h>
14831 static char *pattern, *string;
14839 if(regcomp(&re, pattern, 0)) {
14843 string = "ALL MATCH";
14845 rc = regexec(&re, string, 0, (void*)0, 0);
14852 if ac_fn_c_try_run "$LINENO"; then :
14853 ol_cv_c_posix_regex=yes
14855 ol_cv_c_posix_regex=no
14857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14858 conftest.$ac_objext conftest.beam conftest.$ac_ext
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14863 $as_echo "$ol_cv_c_posix_regex" >&6; }
14865 if test "$ol_cv_c_posix_regex" = no ; then
14866 as_fn_error "broken POSIX regex!" "$LINENO" 5
14871 for ac_header in sys/uuid.h
14873 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14874 if test "x$ac_cv_header_sys_uuid_h" = x""yes; then :
14875 cat >>confdefs.h <<_ACEOF
14876 #define HAVE_SYS_UUID_H 1
14883 if test $ac_cv_header_sys_uuid_h = yes ; then
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14886 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14887 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14888 $as_echo_n "(cached) " >&6
14890 ac_func_search_save_LIBS=$LIBS
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14900 char uuid_to_str ();
14904 return uuid_to_str ();
14909 for ac_lib in '' uuid; do
14910 if test -z "$ac_lib"; then
14911 ac_res="none required"
14914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14916 if ac_fn_c_try_link "$LINENO"; then :
14917 ac_cv_search_uuid_to_str=$ac_res
14919 rm -f core conftest.err conftest.$ac_objext \
14921 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14925 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14928 ac_cv_search_uuid_to_str=no
14930 rm conftest.$ac_ext
14931 LIBS=$ac_func_search_save_LIBS
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14934 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14935 ac_res=$ac_cv_search_uuid_to_str
14936 if test "$ac_res" != no; then :
14937 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14944 $as_echo_n "checking for library containing uuid_create... " >&6; }
14945 if test "${ac_cv_search_uuid_create+set}" = set; then :
14946 $as_echo_n "(cached) " >&6
14948 ac_func_search_save_LIBS=$LIBS
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14958 char uuid_create ();
14962 return uuid_create ();
14967 for ac_lib in '' uuid; do
14968 if test -z "$ac_lib"; then
14969 ac_res="none required"
14972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14974 if ac_fn_c_try_link "$LINENO"; then :
14975 ac_cv_search_uuid_create=$ac_res
14977 rm -f core conftest.err conftest.$ac_objext \
14979 if test "${ac_cv_search_uuid_create+set}" = set; then :
14983 if test "${ac_cv_search_uuid_create+set}" = set; then :
14986 ac_cv_search_uuid_create=no
14988 rm conftest.$ac_ext
14989 LIBS=$ac_func_search_save_LIBS
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14992 $as_echo "$ac_cv_search_uuid_create" >&6; }
14993 ac_res=$ac_cv_search_uuid_create
14994 if test "$ac_res" != no; then :
14995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15003 if test $have_uuid = yes ; then
15005 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
15008 test "$ac_cv_search_uuid_to_str" = "none required" || \
15009 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
15013 if test $have_uuid = no ; then
15014 for ac_header in uuid/uuid.h
15016 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
15017 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
15018 cat >>confdefs.h <<_ACEOF
15019 #define HAVE_UUID_UUID_H 1
15026 if test $ac_cv_header_uuid_uuid_h = yes ; then
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
15029 $as_echo_n "checking for library containing uuid_generate... " >&6; }
15030 if test "${ac_cv_search_uuid_generate+set}" = set; then :
15031 $as_echo_n "(cached) " >&6
15033 ac_func_search_save_LIBS=$LIBS
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15037 /* Override any GCC internal prototype to avoid an error.
15038 Use char because int might match the return type of a GCC
15039 builtin and then its argument prototype would still apply. */
15043 char uuid_generate ();
15047 return uuid_generate ();
15052 for ac_lib in '' uuid; do
15053 if test -z "$ac_lib"; then
15054 ac_res="none required"
15057 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15059 if ac_fn_c_try_link "$LINENO"; then :
15060 ac_cv_search_uuid_generate=$ac_res
15062 rm -f core conftest.err conftest.$ac_objext \
15064 if test "${ac_cv_search_uuid_generate+set}" = set; then :
15068 if test "${ac_cv_search_uuid_generate+set}" = set; then :
15071 ac_cv_search_uuid_generate=no
15073 rm conftest.$ac_ext
15074 LIBS=$ac_func_search_save_LIBS
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
15077 $as_echo "$ac_cv_search_uuid_generate" >&6; }
15078 ac_res=$ac_cv_search_uuid_generate
15079 if test "$ac_res" != no; then :
15080 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
15087 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
15088 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15089 $as_echo_n "(cached) " >&6
15091 ac_func_search_save_LIBS=$LIBS
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15101 char uuid_unparse_lower ();
15105 return uuid_unparse_lower ();
15110 for ac_lib in '' uuid; do
15111 if test -z "$ac_lib"; then
15112 ac_res="none required"
15115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15117 if ac_fn_c_try_link "$LINENO"; then :
15118 ac_cv_search_uuid_unparse_lower=$ac_res
15120 rm -f core conftest.err conftest.$ac_objext \
15122 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15126 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15129 ac_cv_search_uuid_unparse_lower=no
15131 rm conftest.$ac_ext
15132 LIBS=$ac_func_search_save_LIBS
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15135 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15136 ac_res=$ac_cv_search_uuid_unparse_lower
15137 if test "$ac_res" != no; then :
15138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15146 if test $have_uuid = yes ; then
15148 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15151 test "$ac_cv_search_uuid_generate" = "none required" || \
15152 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15157 if test $have_uuid = no ; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15159 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15161 LIBS="$LIBS -lrpcrt4"
15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15163 /* end confdefs.h. */
15165 int __stdcall UuidCreate(void *);
15166 int __stdcall UuidToStringA(void *,void **);
15173 UuidToStringA(0,0);
15179 if ac_fn_c_try_link "$LINENO"; then :
15184 rm -f core conftest.err conftest.$ac_objext \
15185 conftest$ac_exeext conftest.$ac_ext
15186 if test $need_rpcrt = yes; then
15187 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15191 $as_echo "$need_rpcrt" >&6; }
15194 ol_cv_lib_resolver=no
15195 if test $ol_cv_lib_resolver = no ; then
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15197 $as_echo_n "checking for resolver link (default)... " >&6; }
15198 if test "${ol_cv_resolver_none+set}" = set; then :
15199 $as_echo_n "(cached) " >&6
15204 LIBS="$ol_RESOLVER_LIB $LIBS"
15206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15207 /* end confdefs.h. */
15209 #ifdef HAVE_SYS_TYPES_H
15210 # include <sys/types.h>
15212 #include <netinet/in.h>
15213 #ifdef HAVE_ARPA_NAMESER_H
15214 # include <arpa/nameser.h>
15216 #ifdef HAVE_RESOLV_H
15217 # include <resolv.h>
15225 char *request = NULL;
15226 unsigned char reply[64*1024];
15227 unsigned char host[64*1024];
15231 /* Bind 8/9 interface */
15232 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15234 /* Bind 4 interface */
15238 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15242 /* Bind 8/9 interface */
15244 #elif defined(HFIXEDSZ)
15245 /* Bind 4 interface w/ HFIXEDSZ */
15248 /* Bind 4 interface w/o HFIXEDSZ */
15249 p += sizeof(HEADER);
15251 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15257 if ac_fn_c_try_link "$LINENO"; then :
15258 ol_cv_resolver_none=yes
15260 ol_cv_resolver_none=no
15262 rm -f core conftest.err conftest.$ac_objext \
15263 conftest$ac_exeext conftest.$ac_ext
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15269 $as_echo "$ol_cv_resolver_none" >&6; }
15271 if test $ol_cv_resolver_none = yes ; then
15272 ol_cv_lib_resolver=yes
15276 if test $ol_cv_lib_resolver = no ; then
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15278 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15279 if test "${ol_cv_resolver_resolv+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15283 ol_RESOLVER_LIB=-lresolv
15285 LIBS="$ol_RESOLVER_LIB $LIBS"
15287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15288 /* end confdefs.h. */
15290 #ifdef HAVE_SYS_TYPES_H
15291 # include <sys/types.h>
15293 #include <netinet/in.h>
15294 #ifdef HAVE_ARPA_NAMESER_H
15295 # include <arpa/nameser.h>
15297 #ifdef HAVE_RESOLV_H
15298 # include <resolv.h>
15306 char *request = NULL;
15307 unsigned char reply[64*1024];
15308 unsigned char host[64*1024];
15312 /* Bind 8/9 interface */
15313 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15315 /* Bind 4 interface */
15319 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15323 /* Bind 8/9 interface */
15325 #elif defined(HFIXEDSZ)
15326 /* Bind 4 interface w/ HFIXEDSZ */
15329 /* Bind 4 interface w/o HFIXEDSZ */
15330 p += sizeof(HEADER);
15332 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15338 if ac_fn_c_try_link "$LINENO"; then :
15339 ol_cv_resolver_resolv=yes
15341 ol_cv_resolver_resolv=no
15343 rm -f core conftest.err conftest.$ac_objext \
15344 conftest$ac_exeext conftest.$ac_ext
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15350 $as_echo "$ol_cv_resolver_resolv" >&6; }
15352 if test $ol_cv_resolver_resolv = yes ; then
15353 ol_cv_lib_resolver=-lresolv
15357 if test $ol_cv_lib_resolver = no ; then
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15359 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15360 if test "${ol_cv_resolver_bind+set}" = set; then :
15361 $as_echo_n "(cached) " >&6
15364 ol_RESOLVER_LIB=-lbind
15366 LIBS="$ol_RESOLVER_LIB $LIBS"
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15371 #ifdef HAVE_SYS_TYPES_H
15372 # include <sys/types.h>
15374 #include <netinet/in.h>
15375 #ifdef HAVE_ARPA_NAMESER_H
15376 # include <arpa/nameser.h>
15378 #ifdef HAVE_RESOLV_H
15379 # include <resolv.h>
15387 char *request = NULL;
15388 unsigned char reply[64*1024];
15389 unsigned char host[64*1024];
15393 /* Bind 8/9 interface */
15394 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15396 /* Bind 4 interface */
15400 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15404 /* Bind 8/9 interface */
15406 #elif defined(HFIXEDSZ)
15407 /* Bind 4 interface w/ HFIXEDSZ */
15410 /* Bind 4 interface w/o HFIXEDSZ */
15411 p += sizeof(HEADER);
15413 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15419 if ac_fn_c_try_link "$LINENO"; then :
15420 ol_cv_resolver_bind=yes
15422 ol_cv_resolver_bind=no
15424 rm -f core conftest.err conftest.$ac_objext \
15425 conftest$ac_exeext conftest.$ac_ext
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15431 $as_echo "$ol_cv_resolver_bind" >&6; }
15433 if test $ol_cv_resolver_bind = yes ; then
15434 ol_cv_lib_resolver=-lbind
15441 if test "$ol_cv_lib_resolver" != no ; then
15443 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15446 if test "$ol_enable_dnssrv" != no ; then
15450 if test "$ol_cv_lib_resolver" != yes ; then
15451 LIBS="$ol_cv_lib_resolver $LIBS"
15455 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15456 if test "$ol_link_dnssrv" = no ; then
15457 as_fn_error "DNSSRV requires res_query()" "$LINENO" 5
15460 ol_enable_dnssrv=no
15463 for ac_func in hstrerror
15465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15467 eval as_val=\$$as_ac_var
15468 if test "x$as_val" = x""yes; then :
15469 cat >>confdefs.h <<_ACEOF
15470 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15477 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15479 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15481 eval as_val=\$$as_ac_var
15482 if test "x$as_val" = x""yes; then :
15483 cat >>confdefs.h <<_ACEOF
15484 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15492 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15493 if test $ol_enable_ipv6 = yes ; then
15494 as_fn_error "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15496 elif test $ol_enable_ipv6 != no ; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15498 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15499 if test "${ol_cv_inet6_addrstrlen+set}" = set; then :
15500 $as_echo_n "(cached) " >&6
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15506 # include <netinet/in.h>
15507 # ifdef INET6_ADDRSTRLEN
15508 __has_inet6_addrstrlen__;
15512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15513 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15514 ol_cv_inet6_addrstrlen=yes
15516 ol_cv_inet6_addrstrlen=no
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15522 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15526 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15527 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then :
15528 $as_echo_n "(cached) " >&6
15531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15534 #include <sys/types.h>
15535 #include <sys/socket.h>
15541 struct sockaddr_storage ss;
15547 if ac_fn_c_try_compile "$LINENO"; then :
15548 ol_cv_struct_sockaddr_storage=yes
15550 ol_cv_struct_sockaddr_storage=no
15552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15555 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15557 if test $ol_cv_inet6_addrstrlen = yes &&
15558 test $ol_cv_struct_sockaddr_storage = yes ; then
15560 elif test $ol_enable_ipv6 = yes &&
15561 test $ol_cv_inet6_addrstrlen = no ; then
15562 as_fn_error "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15563 elif test $ol_enable_ipv6 = yes &&
15564 test $ol_cv_struct_sockaddr_storage = no ; then
15565 as_fn_error "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15569 if test $ol_enable_local != no ; then
15570 for ac_header in sys/un.h
15572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15574 eval as_val=\$$as_ac_Header
15575 if test "x$as_val" = x""yes; then :
15576 cat >>confdefs.h <<_ACEOF
15577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15585 if test $ol_enable_local = auto ; then
15586 ol_enable_local=$ac_cv_header_sys_un_h
15587 elif test $ac_cv_header_sys_un_h = no ; then
15588 as_fn_error "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15593 if test $ol_with_tls = yes ; then
15598 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15599 for ac_header in openssl/ssl.h
15601 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15602 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
15603 cat >>confdefs.h <<_ACEOF
15604 #define HAVE_OPENSSL_SSL_H 1
15612 if test $ac_cv_header_openssl_ssl_h = yes ; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_msg_callback in -lssl" >&5
15614 $as_echo_n "checking for SSL_CTX_set_msg_callback in -lssl... " >&6; }
15615 if test "${ac_cv_lib_ssl_SSL_CTX_set_msg_callback+set}" = set; then :
15616 $as_echo_n "(cached) " >&6
15618 ac_check_lib_save_LIBS=$LIBS
15619 LIBS="-lssl -lcrypto $LIBS"
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15623 /* Override any GCC internal prototype to avoid an error.
15624 Use char because int might match the return type of a GCC
15625 builtin and then its argument prototype would still apply. */
15629 char SSL_CTX_set_msg_callback ();
15633 return SSL_CTX_set_msg_callback ();
15638 if ac_fn_c_try_link "$LINENO"; then :
15639 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=yes
15641 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=no
15643 rm -f core conftest.err conftest.$ac_objext \
15644 conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&5
15648 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&6; }
15649 if test "x$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" = x""yes; then :
15657 if test $have_openssl = no ; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15659 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15660 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then :
15661 $as_echo_n "(cached) " >&6
15663 ac_check_lib_save_LIBS=$LIBS
15664 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15666 /* end confdefs.h. */
15668 /* Override any GCC internal prototype to avoid an error.
15669 Use char because int might match the return type of a GCC
15670 builtin and then its argument prototype would still apply. */
15674 char ssl3_accept ();
15678 return ssl3_accept ();
15683 if ac_fn_c_try_link "$LINENO"; then :
15684 ac_cv_lib_ssl_ssl3_accept=yes
15686 ac_cv_lib_ssl_ssl3_accept=no
15688 rm -f core conftest.err conftest.$ac_objext \
15689 conftest$ac_exeext conftest.$ac_ext
15690 LIBS=$ac_check_lib_save_LIBS
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15693 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15694 if test "x$ac_cv_lib_ssl_ssl3_accept" = x""yes; then :
15703 if test $have_openssl = yes ; then
15704 ol_with_tls=openssl
15706 WITH_TLS_TYPE=openssl
15709 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15712 if test $need_rsaref = yes; then
15714 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15717 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15719 TLS_LIBS="-lssl -lcrypto"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15723 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15724 if test "${ol_cv_ssl_crl_compat+set}" = set; then :
15725 $as_echo_n "(cached) " >&6
15728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729 /* end confdefs.h. */
15731 #ifdef HAVE_OPENSSL_SSL_H
15732 #include <openssl/ssl.h>
15735 /* Require 0.9.7d+ */
15736 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15737 char *__ssl_compat = "0.9.7d";
15741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15742 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15743 ol_cv_ssl_crl_compat=yes
15745 ol_cv_ssl_crl_compat=no
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15751 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15753 if test $ol_cv_ssl_crl_compat = yes ; then
15755 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15762 if test $ol_link_tls = no ; then
15763 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15764 for ac_header in gnutls/gnutls.h
15766 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15767 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
15768 cat >>confdefs.h <<_ACEOF
15769 #define HAVE_GNUTLS_GNUTLS_H 1
15777 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15779 /* end confdefs.h. */
15780 #include <gnutls/gnutls.h>
15781 #if GNUTLS_VERSION_NUMBER < 0x020c00
15782 #error "GnuTLS 2.12.0 or newer required"
15785 if ac_fn_c_try_cpp "$LINENO"; then :
15788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15790 as_fn_error "GnuTLS is too old
15791 See \`config.log' for more details." "$LINENO" 5; }
15793 rm -f conftest.err conftest.$ac_ext
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15796 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15797 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then :
15798 $as_echo_n "(cached) " >&6
15800 ac_check_lib_save_LIBS=$LIBS
15801 LIBS="-lgnutls $LIBS"
15802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15805 /* Override any GCC internal prototype to avoid an error.
15806 Use char because int might match the return type of a GCC
15807 builtin and then its argument prototype would still apply. */
15811 char gnutls_init ();
15815 return gnutls_init ();
15820 if ac_fn_c_try_link "$LINENO"; then :
15821 ac_cv_lib_gnutls_gnutls_init=yes
15823 ac_cv_lib_gnutls_gnutls_init=no
15825 rm -f core conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15830 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15831 if test "x$ac_cv_lib_gnutls_gnutls_init" = x""yes; then :
15838 if test $have_gnutls = yes ; then
15841 WITH_TLS_TYPE=gnutls
15843 TLS_LIBS="-lgnutls"
15846 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15853 if test $ol_link_tls = no ; then
15854 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15856 for ac_header in nssutil.h
15858 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15859 if test "x$ac_cv_header_nssutil_h" = x""yes; then :
15860 cat >>confdefs.h <<_ACEOF
15861 #define HAVE_NSSUTIL_H 1
15868 if test "$ac_cv_header_nssutil_h" = yes ; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15870 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15871 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15874 ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lnss3 $LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15885 char NSS_Initialize ();
15889 return NSS_Initialize ();
15894 if ac_fn_c_try_link "$LINENO"; then :
15895 ac_cv_lib_nss3_NSS_Initialize=yes
15897 ac_cv_lib_nss3_NSS_Initialize=no
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 LIBS=$ac_check_lib_save_LIBS
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15904 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15905 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
15913 if test "$have_moznss" = yes ; then
15917 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15919 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15921 if test $ol_with_tls = moznss ; then
15922 as_fn_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)" "$LINENO" 5
15929 if test $ol_link_tls = yes ; then
15931 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15934 elif test $ol_with_tls = auto ; then
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15936 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15938 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15939 elif test $ol_with_tls != no ; then
15940 as_fn_error "Could not locate TLS/SSL package" "$LINENO" 5
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15943 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15946 if test $ol_enable_lmpasswd != no; then
15947 if test $ol_link_tls != yes ; then
15948 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
15952 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15958 case $ol_with_threads in auto | yes | nt)
15961 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15962 if test "x$ac_cv_func__beginthread" = x""yes; then :
15967 if test $ac_cv_func__beginthread = yes ; then
15969 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15971 ol_cv_nt_threads=yes
15975 if test "$ol_cv_nt_threads" = yes ; then
15977 ol_with_threads=found
15978 ol_with_yielding_select=yes
15981 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15984 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15988 if test $ol_with_threads = nt ; then
15989 as_fn_error "could not locate NT Threads" "$LINENO" 5
15994 case $ol_with_threads in auto | yes | posix)
15996 for ac_header in pthread.h
15998 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15999 if test "x$ac_cv_header_pthread_h" = x""yes; then :
16000 cat >>confdefs.h <<_ACEOF
16001 #define HAVE_PTHREAD_H 1
16009 if test $ac_cv_header_pthread_h = yes ; then
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
16011 $as_echo_n "checking POSIX thread version... " >&6; }
16012 if test "${ol_cv_pthread_version+set}" = set; then :
16013 $as_echo_n "(cached) " >&6
16016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16017 /* end confdefs.h. */
16019 # include <pthread.h>
16025 int i = PTHREAD_CREATE_JOINABLE;
16031 if ac_fn_c_try_compile "$LINENO"; then :
16033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034 /* end confdefs.h. */
16035 #include <pthread.h>
16038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16039 $EGREP "pthread_detach" >/dev/null 2>&1; then :
16040 ol_cv_pthread_version=10
16042 ol_cv_pthread_version=8
16048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16049 /* end confdefs.h. */
16051 # include <pthread.h>
16052 # ifdef PTHREAD_CREATE_UNDETACHED
16057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16058 $EGREP "draft7" >/dev/null 2>&1; then :
16059 ol_cv_pthread_version=7
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16064 #include <pthread.h>
16067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16068 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
16069 ol_cv_pthread_version=6
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16075 # include <pthread.h>
16076 #ifdef PTHREAD_MUTEX_INITIALIZER
16081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16082 $EGREP "draft5" >/dev/null 2>&1; then :
16083 ol_cv_pthread_version=5
16085 ol_cv_pthread_version=4
16096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
16100 $as_echo "$ol_cv_pthread_version" >&6; }
16103 if test $ol_cv_pthread_version != 0 ; then
16105 cat >>confdefs.h <<_ACEOF
16106 #define HAVE_PTHREADS $ol_cv_pthread_version
16110 as_fn_error "unknown pthread version" "$LINENO" 5
16113 # consider threads found
16114 ol_with_threads=found
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
16118 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
16119 if test "${ol_cv_header_linux_threads+set}" = set; then :
16120 $as_echo_n "(cached) " >&6
16122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16123 /* end confdefs.h. */
16124 #include <pthread.h>
16126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16127 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
16128 ol_cv_header_linux_threads=yes
16130 ol_cv_header_linux_threads=no
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
16137 $as_echo "$ol_cv_header_linux_threads" >&6; }
16138 if test $ol_cv_header_linux_threads = yes; then
16140 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
16146 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
16147 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then :
16148 $as_echo_n "(cached) " >&6
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16152 #include <pthread.h>
16153 #ifdef _POSIX_THREAD_IS_GNU_PTH
16158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16159 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16160 ol_cv_header_gnu_pth_pthread_h=yes
16162 ol_cv_header_gnu_pth_pthread_h=no
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16169 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16172 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16173 for ac_header in sched.h
16175 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16176 if test "x$ac_cv_header_sched_h" = x""yes; then :
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_SCHED_H 1
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16189 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16190 if test "${ol_cv_pthread_create+set}" = set; then :
16191 $as_echo_n "(cached) " >&6
16194 if test "$cross_compiling" = yes; then :
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16198 /* pthread test headers */
16199 #include <pthread.h>
16200 #if HAVE_PTHREADS < 7
16204 #define NULL (void*)0
16207 static void *task(p)
16210 return (void *) (p == NULL);
16217 /* pthread test function */
16218 #ifndef PTHREAD_CREATE_DETACHED
16219 #define PTHREAD_CREATE_DETACHED 1
16223 int detach = PTHREAD_CREATE_DETACHED;
16225 #if HAVE_PTHREADS > 4
16226 /* Final pthreads */
16227 pthread_attr_t attr;
16229 status = pthread_attr_init(&attr);
16230 if( status ) return status;
16232 #if HAVE_PTHREADS < 7
16233 status = pthread_attr_setdetachstate(&attr, &detach);
16234 if( status < 0 ) status = errno;
16236 status = pthread_attr_setdetachstate(&attr, detach);
16238 if( status ) return status;
16239 status = pthread_create( &t, &attr, task, NULL );
16240 #if HAVE_PTHREADS < 7
16241 if( status < 0 ) status = errno;
16243 if( status ) return status;
16245 /* Draft 4 pthreads */
16246 status = pthread_create( &t, pthread_attr_default, task, NULL );
16247 if( status ) return errno;
16249 /* give thread a chance to complete */
16250 /* it should remain joinable and hence detachable */
16253 status = pthread_detach( &t );
16254 if( status ) return errno;
16257 #ifdef HAVE_LINUX_THREADS
16258 pthread_kill_other_threads_np();
16267 if ac_fn_c_try_link "$LINENO"; then :
16268 ol_cv_pthread_create=yes
16270 ol_cv_pthread_create=no
16272 rm -f core conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16278 /* pthread test headers */
16279 #include <pthread.h>
16280 #if HAVE_PTHREADS < 7
16284 #define NULL (void*)0
16287 static void *task(p)
16290 return (void *) (p == NULL);
16294 int main(argc, argv)
16299 /* pthread test function */
16300 #ifndef PTHREAD_CREATE_DETACHED
16301 #define PTHREAD_CREATE_DETACHED 1
16305 int detach = PTHREAD_CREATE_DETACHED;
16307 #if HAVE_PTHREADS > 4
16308 /* Final pthreads */
16309 pthread_attr_t attr;
16311 status = pthread_attr_init(&attr);
16312 if( status ) return status;
16314 #if HAVE_PTHREADS < 7
16315 status = pthread_attr_setdetachstate(&attr, &detach);
16316 if( status < 0 ) status = errno;
16318 status = pthread_attr_setdetachstate(&attr, detach);
16320 if( status ) return status;
16321 status = pthread_create( &t, &attr, task, NULL );
16322 #if HAVE_PTHREADS < 7
16323 if( status < 0 ) status = errno;
16325 if( status ) return status;
16327 /* Draft 4 pthreads */
16328 status = pthread_create( &t, pthread_attr_default, task, NULL );
16329 if( status ) return errno;
16331 /* give thread a chance to complete */
16332 /* it should remain joinable and hence detachable */
16335 status = pthread_detach( &t );
16336 if( status ) return errno;
16339 #ifdef HAVE_LINUX_THREADS
16340 pthread_kill_other_threads_np();
16348 if ac_fn_c_try_run "$LINENO"; then :
16349 ol_cv_pthread_create=yes
16351 ol_cv_pthread_create=no
16353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16354 conftest.$ac_objext conftest.beam conftest.$ac_ext
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16359 $as_echo "$ol_cv_pthread_create" >&6; }
16361 if test $ol_cv_pthread_create != no ; then
16362 ol_link_threads=posix
16363 ol_link_pthreads=""
16366 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16367 if test "$ol_link_threads" = no ; then
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16370 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16371 if test "${ol_cv_pthread_kthread+set}" = set; then :
16372 $as_echo_n "(cached) " >&6
16377 LIBS="-kthread $LIBS"
16379 if test "$cross_compiling" = yes; then :
16380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16381 /* end confdefs.h. */
16383 /* pthread test headers */
16384 #include <pthread.h>
16385 #if HAVE_PTHREADS < 7
16389 #define NULL (void*)0
16392 static void *task(p)
16395 return (void *) (p == NULL);
16402 /* pthread test function */
16403 #ifndef PTHREAD_CREATE_DETACHED
16404 #define PTHREAD_CREATE_DETACHED 1
16408 int detach = PTHREAD_CREATE_DETACHED;
16410 #if HAVE_PTHREADS > 4
16411 /* Final pthreads */
16412 pthread_attr_t attr;
16414 status = pthread_attr_init(&attr);
16415 if( status ) return status;
16417 #if HAVE_PTHREADS < 7
16418 status = pthread_attr_setdetachstate(&attr, &detach);
16419 if( status < 0 ) status = errno;
16421 status = pthread_attr_setdetachstate(&attr, detach);
16423 if( status ) return status;
16424 status = pthread_create( &t, &attr, task, NULL );
16425 #if HAVE_PTHREADS < 7
16426 if( status < 0 ) status = errno;
16428 if( status ) return status;
16430 /* Draft 4 pthreads */
16431 status = pthread_create( &t, pthread_attr_default, task, NULL );
16432 if( status ) return errno;
16434 /* give thread a chance to complete */
16435 /* it should remain joinable and hence detachable */
16438 status = pthread_detach( &t );
16439 if( status ) return errno;
16442 #ifdef HAVE_LINUX_THREADS
16443 pthread_kill_other_threads_np();
16452 if ac_fn_c_try_link "$LINENO"; then :
16453 ol_cv_pthread_kthread=yes
16455 ol_cv_pthread_kthread=no
16457 rm -f core conftest.err conftest.$ac_objext \
16458 conftest$ac_exeext conftest.$ac_ext
16460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16461 /* end confdefs.h. */
16463 /* pthread test headers */
16464 #include <pthread.h>
16465 #if HAVE_PTHREADS < 7
16469 #define NULL (void*)0
16472 static void *task(p)
16475 return (void *) (p == NULL);
16479 int main(argc, argv)
16484 /* pthread test function */
16485 #ifndef PTHREAD_CREATE_DETACHED
16486 #define PTHREAD_CREATE_DETACHED 1
16490 int detach = PTHREAD_CREATE_DETACHED;
16492 #if HAVE_PTHREADS > 4
16493 /* Final pthreads */
16494 pthread_attr_t attr;
16496 status = pthread_attr_init(&attr);
16497 if( status ) return status;
16499 #if HAVE_PTHREADS < 7
16500 status = pthread_attr_setdetachstate(&attr, &detach);
16501 if( status < 0 ) status = errno;
16503 status = pthread_attr_setdetachstate(&attr, detach);
16505 if( status ) return status;
16506 status = pthread_create( &t, &attr, task, NULL );
16507 #if HAVE_PTHREADS < 7
16508 if( status < 0 ) status = errno;
16510 if( status ) return status;
16512 /* Draft 4 pthreads */
16513 status = pthread_create( &t, pthread_attr_default, task, NULL );
16514 if( status ) return errno;
16516 /* give thread a chance to complete */
16517 /* it should remain joinable and hence detachable */
16520 status = pthread_detach( &t );
16521 if( status ) return errno;
16524 #ifdef HAVE_LINUX_THREADS
16525 pthread_kill_other_threads_np();
16533 if ac_fn_c_try_run "$LINENO"; then :
16534 ol_cv_pthread_kthread=yes
16536 ol_cv_pthread_kthread=no
16538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16539 conftest.$ac_objext conftest.beam conftest.$ac_ext
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16548 $as_echo "$ol_cv_pthread_kthread" >&6; }
16550 if test $ol_cv_pthread_kthread = yes ; then
16551 ol_link_pthreads="-kthread"
16552 ol_link_threads=posix
16556 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16557 if test "$ol_link_threads" = no ; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16560 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16561 if test "${ol_cv_pthread_pthread+set}" = set; then :
16562 $as_echo_n "(cached) " >&6
16567 LIBS="-pthread $LIBS"
16569 if test "$cross_compiling" = yes; then :
16570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16571 /* end confdefs.h. */
16573 /* pthread test headers */
16574 #include <pthread.h>
16575 #if HAVE_PTHREADS < 7
16579 #define NULL (void*)0
16582 static void *task(p)
16585 return (void *) (p == NULL);
16592 /* pthread test function */
16593 #ifndef PTHREAD_CREATE_DETACHED
16594 #define PTHREAD_CREATE_DETACHED 1
16598 int detach = PTHREAD_CREATE_DETACHED;
16600 #if HAVE_PTHREADS > 4
16601 /* Final pthreads */
16602 pthread_attr_t attr;
16604 status = pthread_attr_init(&attr);
16605 if( status ) return status;
16607 #if HAVE_PTHREADS < 7
16608 status = pthread_attr_setdetachstate(&attr, &detach);
16609 if( status < 0 ) status = errno;
16611 status = pthread_attr_setdetachstate(&attr, detach);
16613 if( status ) return status;
16614 status = pthread_create( &t, &attr, task, NULL );
16615 #if HAVE_PTHREADS < 7
16616 if( status < 0 ) status = errno;
16618 if( status ) return status;
16620 /* Draft 4 pthreads */
16621 status = pthread_create( &t, pthread_attr_default, task, NULL );
16622 if( status ) return errno;
16624 /* give thread a chance to complete */
16625 /* it should remain joinable and hence detachable */
16628 status = pthread_detach( &t );
16629 if( status ) return errno;
16632 #ifdef HAVE_LINUX_THREADS
16633 pthread_kill_other_threads_np();
16642 if ac_fn_c_try_link "$LINENO"; then :
16643 ol_cv_pthread_pthread=yes
16645 ol_cv_pthread_pthread=no
16647 rm -f core conftest.err conftest.$ac_objext \
16648 conftest$ac_exeext conftest.$ac_ext
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16653 /* pthread test headers */
16654 #include <pthread.h>
16655 #if HAVE_PTHREADS < 7
16659 #define NULL (void*)0
16662 static void *task(p)
16665 return (void *) (p == NULL);
16669 int main(argc, argv)
16674 /* pthread test function */
16675 #ifndef PTHREAD_CREATE_DETACHED
16676 #define PTHREAD_CREATE_DETACHED 1
16680 int detach = PTHREAD_CREATE_DETACHED;
16682 #if HAVE_PTHREADS > 4
16683 /* Final pthreads */
16684 pthread_attr_t attr;
16686 status = pthread_attr_init(&attr);
16687 if( status ) return status;
16689 #if HAVE_PTHREADS < 7
16690 status = pthread_attr_setdetachstate(&attr, &detach);
16691 if( status < 0 ) status = errno;
16693 status = pthread_attr_setdetachstate(&attr, detach);
16695 if( status ) return status;
16696 status = pthread_create( &t, &attr, task, NULL );
16697 #if HAVE_PTHREADS < 7
16698 if( status < 0 ) status = errno;
16700 if( status ) return status;
16702 /* Draft 4 pthreads */
16703 status = pthread_create( &t, pthread_attr_default, task, NULL );
16704 if( status ) return errno;
16706 /* give thread a chance to complete */
16707 /* it should remain joinable and hence detachable */
16710 status = pthread_detach( &t );
16711 if( status ) return errno;
16714 #ifdef HAVE_LINUX_THREADS
16715 pthread_kill_other_threads_np();
16723 if ac_fn_c_try_run "$LINENO"; then :
16724 ol_cv_pthread_pthread=yes
16726 ol_cv_pthread_pthread=no
16728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16729 conftest.$ac_objext conftest.beam conftest.$ac_ext
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16738 $as_echo "$ol_cv_pthread_pthread" >&6; }
16740 if test $ol_cv_pthread_pthread = yes ; then
16741 ol_link_pthreads="-pthread"
16742 ol_link_threads=posix
16746 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16747 if test "$ol_link_threads" = no ; then
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16750 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16751 if test "${ol_cv_pthread_pthreads+set}" = set; then :
16752 $as_echo_n "(cached) " >&6
16757 LIBS="-pthreads $LIBS"
16759 if test "$cross_compiling" = yes; then :
16760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16761 /* end confdefs.h. */
16763 /* pthread test headers */
16764 #include <pthread.h>
16765 #if HAVE_PTHREADS < 7
16769 #define NULL (void*)0
16772 static void *task(p)
16775 return (void *) (p == NULL);
16782 /* pthread test function */
16783 #ifndef PTHREAD_CREATE_DETACHED
16784 #define PTHREAD_CREATE_DETACHED 1
16788 int detach = PTHREAD_CREATE_DETACHED;
16790 #if HAVE_PTHREADS > 4
16791 /* Final pthreads */
16792 pthread_attr_t attr;
16794 status = pthread_attr_init(&attr);
16795 if( status ) return status;
16797 #if HAVE_PTHREADS < 7
16798 status = pthread_attr_setdetachstate(&attr, &detach);
16799 if( status < 0 ) status = errno;
16801 status = pthread_attr_setdetachstate(&attr, detach);
16803 if( status ) return status;
16804 status = pthread_create( &t, &attr, task, NULL );
16805 #if HAVE_PTHREADS < 7
16806 if( status < 0 ) status = errno;
16808 if( status ) return status;
16810 /* Draft 4 pthreads */
16811 status = pthread_create( &t, pthread_attr_default, task, NULL );
16812 if( status ) return errno;
16814 /* give thread a chance to complete */
16815 /* it should remain joinable and hence detachable */
16818 status = pthread_detach( &t );
16819 if( status ) return errno;
16822 #ifdef HAVE_LINUX_THREADS
16823 pthread_kill_other_threads_np();
16832 if ac_fn_c_try_link "$LINENO"; then :
16833 ol_cv_pthread_pthreads=yes
16835 ol_cv_pthread_pthreads=no
16837 rm -f core conftest.err conftest.$ac_objext \
16838 conftest$ac_exeext conftest.$ac_ext
16840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16841 /* end confdefs.h. */
16843 /* pthread test headers */
16844 #include <pthread.h>
16845 #if HAVE_PTHREADS < 7
16849 #define NULL (void*)0
16852 static void *task(p)
16855 return (void *) (p == NULL);
16859 int main(argc, argv)
16864 /* pthread test function */
16865 #ifndef PTHREAD_CREATE_DETACHED
16866 #define PTHREAD_CREATE_DETACHED 1
16870 int detach = PTHREAD_CREATE_DETACHED;
16872 #if HAVE_PTHREADS > 4
16873 /* Final pthreads */
16874 pthread_attr_t attr;
16876 status = pthread_attr_init(&attr);
16877 if( status ) return status;
16879 #if HAVE_PTHREADS < 7
16880 status = pthread_attr_setdetachstate(&attr, &detach);
16881 if( status < 0 ) status = errno;
16883 status = pthread_attr_setdetachstate(&attr, detach);
16885 if( status ) return status;
16886 status = pthread_create( &t, &attr, task, NULL );
16887 #if HAVE_PTHREADS < 7
16888 if( status < 0 ) status = errno;
16890 if( status ) return status;
16892 /* Draft 4 pthreads */
16893 status = pthread_create( &t, pthread_attr_default, task, NULL );
16894 if( status ) return errno;
16896 /* give thread a chance to complete */
16897 /* it should remain joinable and hence detachable */
16900 status = pthread_detach( &t );
16901 if( status ) return errno;
16904 #ifdef HAVE_LINUX_THREADS
16905 pthread_kill_other_threads_np();
16913 if ac_fn_c_try_run "$LINENO"; then :
16914 ol_cv_pthread_pthreads=yes
16916 ol_cv_pthread_pthreads=no
16918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16919 conftest.$ac_objext conftest.beam conftest.$ac_ext
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16928 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16930 if test $ol_cv_pthread_pthreads = yes ; then
16931 ol_link_pthreads="-pthreads"
16932 ol_link_threads=posix
16936 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16937 if test "$ol_link_threads" = no ; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16940 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16941 if test "${ol_cv_pthread_mthreads+set}" = set; then :
16942 $as_echo_n "(cached) " >&6
16947 LIBS="-mthreads $LIBS"
16949 if test "$cross_compiling" = yes; then :
16950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16951 /* end confdefs.h. */
16953 /* pthread test headers */
16954 #include <pthread.h>
16955 #if HAVE_PTHREADS < 7
16959 #define NULL (void*)0
16962 static void *task(p)
16965 return (void *) (p == NULL);
16972 /* pthread test function */
16973 #ifndef PTHREAD_CREATE_DETACHED
16974 #define PTHREAD_CREATE_DETACHED 1
16978 int detach = PTHREAD_CREATE_DETACHED;
16980 #if HAVE_PTHREADS > 4
16981 /* Final pthreads */
16982 pthread_attr_t attr;
16984 status = pthread_attr_init(&attr);
16985 if( status ) return status;
16987 #if HAVE_PTHREADS < 7
16988 status = pthread_attr_setdetachstate(&attr, &detach);
16989 if( status < 0 ) status = errno;
16991 status = pthread_attr_setdetachstate(&attr, detach);
16993 if( status ) return status;
16994 status = pthread_create( &t, &attr, task, NULL );
16995 #if HAVE_PTHREADS < 7
16996 if( status < 0 ) status = errno;
16998 if( status ) return status;
17000 /* Draft 4 pthreads */
17001 status = pthread_create( &t, pthread_attr_default, task, NULL );
17002 if( status ) return errno;
17004 /* give thread a chance to complete */
17005 /* it should remain joinable and hence detachable */
17008 status = pthread_detach( &t );
17009 if( status ) return errno;
17012 #ifdef HAVE_LINUX_THREADS
17013 pthread_kill_other_threads_np();
17022 if ac_fn_c_try_link "$LINENO"; then :
17023 ol_cv_pthread_mthreads=yes
17025 ol_cv_pthread_mthreads=no
17027 rm -f core conftest.err conftest.$ac_objext \
17028 conftest$ac_exeext conftest.$ac_ext
17030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031 /* end confdefs.h. */
17033 /* pthread test headers */
17034 #include <pthread.h>
17035 #if HAVE_PTHREADS < 7
17039 #define NULL (void*)0
17042 static void *task(p)
17045 return (void *) (p == NULL);
17049 int main(argc, argv)
17054 /* pthread test function */
17055 #ifndef PTHREAD_CREATE_DETACHED
17056 #define PTHREAD_CREATE_DETACHED 1
17060 int detach = PTHREAD_CREATE_DETACHED;
17062 #if HAVE_PTHREADS > 4
17063 /* Final pthreads */
17064 pthread_attr_t attr;
17066 status = pthread_attr_init(&attr);
17067 if( status ) return status;
17069 #if HAVE_PTHREADS < 7
17070 status = pthread_attr_setdetachstate(&attr, &detach);
17071 if( status < 0 ) status = errno;
17073 status = pthread_attr_setdetachstate(&attr, detach);
17075 if( status ) return status;
17076 status = pthread_create( &t, &attr, task, NULL );
17077 #if HAVE_PTHREADS < 7
17078 if( status < 0 ) status = errno;
17080 if( status ) return status;
17082 /* Draft 4 pthreads */
17083 status = pthread_create( &t, pthread_attr_default, task, NULL );
17084 if( status ) return errno;
17086 /* give thread a chance to complete */
17087 /* it should remain joinable and hence detachable */
17090 status = pthread_detach( &t );
17091 if( status ) return errno;
17094 #ifdef HAVE_LINUX_THREADS
17095 pthread_kill_other_threads_np();
17103 if ac_fn_c_try_run "$LINENO"; then :
17104 ol_cv_pthread_mthreads=yes
17106 ol_cv_pthread_mthreads=no
17108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17109 conftest.$ac_objext conftest.beam conftest.$ac_ext
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
17118 $as_echo "$ol_cv_pthread_mthreads" >&6; }
17120 if test $ol_cv_pthread_mthreads = yes ; then
17121 ol_link_pthreads="-mthreads"
17122 ol_link_threads=posix
17126 # Pthread try link: -thread (ol_cv_pthread_thread)
17127 if test "$ol_link_threads" = no ; then
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
17130 $as_echo_n "checking for pthread link with -thread... " >&6; }
17131 if test "${ol_cv_pthread_thread+set}" = set; then :
17132 $as_echo_n "(cached) " >&6
17137 LIBS="-thread $LIBS"
17139 if test "$cross_compiling" = yes; then :
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17143 /* pthread test headers */
17144 #include <pthread.h>
17145 #if HAVE_PTHREADS < 7
17149 #define NULL (void*)0
17152 static void *task(p)
17155 return (void *) (p == NULL);
17162 /* pthread test function */
17163 #ifndef PTHREAD_CREATE_DETACHED
17164 #define PTHREAD_CREATE_DETACHED 1
17168 int detach = PTHREAD_CREATE_DETACHED;
17170 #if HAVE_PTHREADS > 4
17171 /* Final pthreads */
17172 pthread_attr_t attr;
17174 status = pthread_attr_init(&attr);
17175 if( status ) return status;
17177 #if HAVE_PTHREADS < 7
17178 status = pthread_attr_setdetachstate(&attr, &detach);
17179 if( status < 0 ) status = errno;
17181 status = pthread_attr_setdetachstate(&attr, detach);
17183 if( status ) return status;
17184 status = pthread_create( &t, &attr, task, NULL );
17185 #if HAVE_PTHREADS < 7
17186 if( status < 0 ) status = errno;
17188 if( status ) return status;
17190 /* Draft 4 pthreads */
17191 status = pthread_create( &t, pthread_attr_default, task, NULL );
17192 if( status ) return errno;
17194 /* give thread a chance to complete */
17195 /* it should remain joinable and hence detachable */
17198 status = pthread_detach( &t );
17199 if( status ) return errno;
17202 #ifdef HAVE_LINUX_THREADS
17203 pthread_kill_other_threads_np();
17212 if ac_fn_c_try_link "$LINENO"; then :
17213 ol_cv_pthread_thread=yes
17215 ol_cv_pthread_thread=no
17217 rm -f core conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
17220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17221 /* end confdefs.h. */
17223 /* pthread test headers */
17224 #include <pthread.h>
17225 #if HAVE_PTHREADS < 7
17229 #define NULL (void*)0
17232 static void *task(p)
17235 return (void *) (p == NULL);
17239 int main(argc, argv)
17244 /* pthread test function */
17245 #ifndef PTHREAD_CREATE_DETACHED
17246 #define PTHREAD_CREATE_DETACHED 1
17250 int detach = PTHREAD_CREATE_DETACHED;
17252 #if HAVE_PTHREADS > 4
17253 /* Final pthreads */
17254 pthread_attr_t attr;
17256 status = pthread_attr_init(&attr);
17257 if( status ) return status;
17259 #if HAVE_PTHREADS < 7
17260 status = pthread_attr_setdetachstate(&attr, &detach);
17261 if( status < 0 ) status = errno;
17263 status = pthread_attr_setdetachstate(&attr, detach);
17265 if( status ) return status;
17266 status = pthread_create( &t, &attr, task, NULL );
17267 #if HAVE_PTHREADS < 7
17268 if( status < 0 ) status = errno;
17270 if( status ) return status;
17272 /* Draft 4 pthreads */
17273 status = pthread_create( &t, pthread_attr_default, task, NULL );
17274 if( status ) return errno;
17276 /* give thread a chance to complete */
17277 /* it should remain joinable and hence detachable */
17280 status = pthread_detach( &t );
17281 if( status ) return errno;
17284 #ifdef HAVE_LINUX_THREADS
17285 pthread_kill_other_threads_np();
17293 if ac_fn_c_try_run "$LINENO"; then :
17294 ol_cv_pthread_thread=yes
17296 ol_cv_pthread_thread=no
17298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17299 conftest.$ac_objext conftest.beam conftest.$ac_ext
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17308 $as_echo "$ol_cv_pthread_thread" >&6; }
17310 if test $ol_cv_pthread_thread = yes ; then
17311 ol_link_pthreads="-thread"
17312 ol_link_threads=posix
17317 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17318 if test "$ol_link_threads" = no ; then
17319 # try -lpthread -lmach -lexc -lc_r
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17321 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17322 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then :
17323 $as_echo_n "(cached) " >&6
17328 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17330 if test "$cross_compiling" = yes; then :
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17334 /* pthread test headers */
17335 #include <pthread.h>
17336 #if HAVE_PTHREADS < 7
17340 #define NULL (void*)0
17343 static void *task(p)
17346 return (void *) (p == NULL);
17353 /* pthread test function */
17354 #ifndef PTHREAD_CREATE_DETACHED
17355 #define PTHREAD_CREATE_DETACHED 1
17359 int detach = PTHREAD_CREATE_DETACHED;
17361 #if HAVE_PTHREADS > 4
17362 /* Final pthreads */
17363 pthread_attr_t attr;
17365 status = pthread_attr_init(&attr);
17366 if( status ) return status;
17368 #if HAVE_PTHREADS < 7
17369 status = pthread_attr_setdetachstate(&attr, &detach);
17370 if( status < 0 ) status = errno;
17372 status = pthread_attr_setdetachstate(&attr, detach);
17374 if( status ) return status;
17375 status = pthread_create( &t, &attr, task, NULL );
17376 #if HAVE_PTHREADS < 7
17377 if( status < 0 ) status = errno;
17379 if( status ) return status;
17381 /* Draft 4 pthreads */
17382 status = pthread_create( &t, pthread_attr_default, task, NULL );
17383 if( status ) return errno;
17385 /* give thread a chance to complete */
17386 /* it should remain joinable and hence detachable */
17389 status = pthread_detach( &t );
17390 if( status ) return errno;
17393 #ifdef HAVE_LINUX_THREADS
17394 pthread_kill_other_threads_np();
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17406 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17414 /* pthread test headers */
17415 #include <pthread.h>
17416 #if HAVE_PTHREADS < 7
17420 #define NULL (void*)0
17423 static void *task(p)
17426 return (void *) (p == NULL);
17430 int main(argc, argv)
17435 /* pthread test function */
17436 #ifndef PTHREAD_CREATE_DETACHED
17437 #define PTHREAD_CREATE_DETACHED 1
17441 int detach = PTHREAD_CREATE_DETACHED;
17443 #if HAVE_PTHREADS > 4
17444 /* Final pthreads */
17445 pthread_attr_t attr;
17447 status = pthread_attr_init(&attr);
17448 if( status ) return status;
17450 #if HAVE_PTHREADS < 7
17451 status = pthread_attr_setdetachstate(&attr, &detach);
17452 if( status < 0 ) status = errno;
17454 status = pthread_attr_setdetachstate(&attr, detach);
17456 if( status ) return status;
17457 status = pthread_create( &t, &attr, task, NULL );
17458 #if HAVE_PTHREADS < 7
17459 if( status < 0 ) status = errno;
17461 if( status ) return status;
17463 /* Draft 4 pthreads */
17464 status = pthread_create( &t, pthread_attr_default, task, NULL );
17465 if( status ) return errno;
17467 /* give thread a chance to complete */
17468 /* it should remain joinable and hence detachable */
17471 status = pthread_detach( &t );
17472 if( status ) return errno;
17475 #ifdef HAVE_LINUX_THREADS
17476 pthread_kill_other_threads_np();
17484 if ac_fn_c_try_run "$LINENO"; then :
17485 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17487 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17489 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17490 conftest.$ac_objext conftest.beam conftest.$ac_ext
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17499 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17501 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17502 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17503 ol_link_threads=posix
17507 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17508 if test "$ol_link_threads" = no ; then
17509 # try -lpthread -lmach -lexc
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17511 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17512 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then :
17513 $as_echo_n "(cached) " >&6
17518 LIBS="-lpthread -lmach -lexc $LIBS"
17520 if test "$cross_compiling" = yes; then :
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522 /* end confdefs.h. */
17524 /* pthread test headers */
17525 #include <pthread.h>
17526 #if HAVE_PTHREADS < 7
17530 #define NULL (void*)0
17533 static void *task(p)
17536 return (void *) (p == NULL);
17543 /* pthread test function */
17544 #ifndef PTHREAD_CREATE_DETACHED
17545 #define PTHREAD_CREATE_DETACHED 1
17549 int detach = PTHREAD_CREATE_DETACHED;
17551 #if HAVE_PTHREADS > 4
17552 /* Final pthreads */
17553 pthread_attr_t attr;
17555 status = pthread_attr_init(&attr);
17556 if( status ) return status;
17558 #if HAVE_PTHREADS < 7
17559 status = pthread_attr_setdetachstate(&attr, &detach);
17560 if( status < 0 ) status = errno;
17562 status = pthread_attr_setdetachstate(&attr, detach);
17564 if( status ) return status;
17565 status = pthread_create( &t, &attr, task, NULL );
17566 #if HAVE_PTHREADS < 7
17567 if( status < 0 ) status = errno;
17569 if( status ) return status;
17571 /* Draft 4 pthreads */
17572 status = pthread_create( &t, pthread_attr_default, task, NULL );
17573 if( status ) return errno;
17575 /* give thread a chance to complete */
17576 /* it should remain joinable and hence detachable */
17579 status = pthread_detach( &t );
17580 if( status ) return errno;
17583 #ifdef HAVE_LINUX_THREADS
17584 pthread_kill_other_threads_np();
17593 if ac_fn_c_try_link "$LINENO"; then :
17594 ol_cv_pthread_lpthread_lmach_lexc=yes
17596 ol_cv_pthread_lpthread_lmach_lexc=no
17598 rm -f core conftest.err conftest.$ac_objext \
17599 conftest$ac_exeext conftest.$ac_ext
17601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17602 /* end confdefs.h. */
17604 /* pthread test headers */
17605 #include <pthread.h>
17606 #if HAVE_PTHREADS < 7
17610 #define NULL (void*)0
17613 static void *task(p)
17616 return (void *) (p == NULL);
17620 int main(argc, argv)
17625 /* pthread test function */
17626 #ifndef PTHREAD_CREATE_DETACHED
17627 #define PTHREAD_CREATE_DETACHED 1
17631 int detach = PTHREAD_CREATE_DETACHED;
17633 #if HAVE_PTHREADS > 4
17634 /* Final pthreads */
17635 pthread_attr_t attr;
17637 status = pthread_attr_init(&attr);
17638 if( status ) return status;
17640 #if HAVE_PTHREADS < 7
17641 status = pthread_attr_setdetachstate(&attr, &detach);
17642 if( status < 0 ) status = errno;
17644 status = pthread_attr_setdetachstate(&attr, detach);
17646 if( status ) return status;
17647 status = pthread_create( &t, &attr, task, NULL );
17648 #if HAVE_PTHREADS < 7
17649 if( status < 0 ) status = errno;
17651 if( status ) return status;
17653 /* Draft 4 pthreads */
17654 status = pthread_create( &t, pthread_attr_default, task, NULL );
17655 if( status ) return errno;
17657 /* give thread a chance to complete */
17658 /* it should remain joinable and hence detachable */
17661 status = pthread_detach( &t );
17662 if( status ) return errno;
17665 #ifdef HAVE_LINUX_THREADS
17666 pthread_kill_other_threads_np();
17674 if ac_fn_c_try_run "$LINENO"; then :
17675 ol_cv_pthread_lpthread_lmach_lexc=yes
17677 ol_cv_pthread_lpthread_lmach_lexc=no
17679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17680 conftest.$ac_objext conftest.beam conftest.$ac_ext
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17689 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17691 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17692 ol_link_pthreads="-lpthread -lmach -lexc"
17693 ol_link_threads=posix
17698 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17699 if test "$ol_link_threads" = no ; then
17700 # try -lpthread -Wl,-woff,85
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17702 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17703 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17709 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17711 if test "$cross_compiling" = yes; then :
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17715 /* pthread test headers */
17716 #include <pthread.h>
17717 #if HAVE_PTHREADS < 7
17721 #define NULL (void*)0
17724 static void *task(p)
17727 return (void *) (p == NULL);
17734 /* pthread test function */
17735 #ifndef PTHREAD_CREATE_DETACHED
17736 #define PTHREAD_CREATE_DETACHED 1
17740 int detach = PTHREAD_CREATE_DETACHED;
17742 #if HAVE_PTHREADS > 4
17743 /* Final pthreads */
17744 pthread_attr_t attr;
17746 status = pthread_attr_init(&attr);
17747 if( status ) return status;
17749 #if HAVE_PTHREADS < 7
17750 status = pthread_attr_setdetachstate(&attr, &detach);
17751 if( status < 0 ) status = errno;
17753 status = pthread_attr_setdetachstate(&attr, detach);
17755 if( status ) return status;
17756 status = pthread_create( &t, &attr, task, NULL );
17757 #if HAVE_PTHREADS < 7
17758 if( status < 0 ) status = errno;
17760 if( status ) return status;
17762 /* Draft 4 pthreads */
17763 status = pthread_create( &t, pthread_attr_default, task, NULL );
17764 if( status ) return errno;
17766 /* give thread a chance to complete */
17767 /* it should remain joinable and hence detachable */
17770 status = pthread_detach( &t );
17771 if( status ) return errno;
17774 #ifdef HAVE_LINUX_THREADS
17775 pthread_kill_other_threads_np();
17784 if ac_fn_c_try_link "$LINENO"; then :
17785 ol_cv_pthread_lib_lpthread_woff=yes
17787 ol_cv_pthread_lib_lpthread_woff=no
17789 rm -f core conftest.err conftest.$ac_objext \
17790 conftest$ac_exeext conftest.$ac_ext
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17795 /* pthread test headers */
17796 #include <pthread.h>
17797 #if HAVE_PTHREADS < 7
17801 #define NULL (void*)0
17804 static void *task(p)
17807 return (void *) (p == NULL);
17811 int main(argc, argv)
17816 /* pthread test function */
17817 #ifndef PTHREAD_CREATE_DETACHED
17818 #define PTHREAD_CREATE_DETACHED 1
17822 int detach = PTHREAD_CREATE_DETACHED;
17824 #if HAVE_PTHREADS > 4
17825 /* Final pthreads */
17826 pthread_attr_t attr;
17828 status = pthread_attr_init(&attr);
17829 if( status ) return status;
17831 #if HAVE_PTHREADS < 7
17832 status = pthread_attr_setdetachstate(&attr, &detach);
17833 if( status < 0 ) status = errno;
17835 status = pthread_attr_setdetachstate(&attr, detach);
17837 if( status ) return status;
17838 status = pthread_create( &t, &attr, task, NULL );
17839 #if HAVE_PTHREADS < 7
17840 if( status < 0 ) status = errno;
17842 if( status ) return status;
17844 /* Draft 4 pthreads */
17845 status = pthread_create( &t, pthread_attr_default, task, NULL );
17846 if( status ) return errno;
17848 /* give thread a chance to complete */
17849 /* it should remain joinable and hence detachable */
17852 status = pthread_detach( &t );
17853 if( status ) return errno;
17856 #ifdef HAVE_LINUX_THREADS
17857 pthread_kill_other_threads_np();
17865 if ac_fn_c_try_run "$LINENO"; then :
17866 ol_cv_pthread_lib_lpthread_woff=yes
17868 ol_cv_pthread_lib_lpthread_woff=no
17870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17871 conftest.$ac_objext conftest.beam conftest.$ac_ext
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17880 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17882 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17883 ol_link_pthreads="-lpthread -Wl,-woff,85"
17884 ol_link_threads=posix
17889 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17890 if test "$ol_link_threads" = no ; then
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17893 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17894 if test "${ol_cv_pthread_lpthread+set}" = set; then :
17895 $as_echo_n "(cached) " >&6
17900 LIBS="-lpthread $LIBS"
17902 if test "$cross_compiling" = yes; then :
17903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17904 /* end confdefs.h. */
17906 /* pthread test headers */
17907 #include <pthread.h>
17908 #if HAVE_PTHREADS < 7
17912 #define NULL (void*)0
17915 static void *task(p)
17918 return (void *) (p == NULL);
17925 /* pthread test function */
17926 #ifndef PTHREAD_CREATE_DETACHED
17927 #define PTHREAD_CREATE_DETACHED 1
17931 int detach = PTHREAD_CREATE_DETACHED;
17933 #if HAVE_PTHREADS > 4
17934 /* Final pthreads */
17935 pthread_attr_t attr;
17937 status = pthread_attr_init(&attr);
17938 if( status ) return status;
17940 #if HAVE_PTHREADS < 7
17941 status = pthread_attr_setdetachstate(&attr, &detach);
17942 if( status < 0 ) status = errno;
17944 status = pthread_attr_setdetachstate(&attr, detach);
17946 if( status ) return status;
17947 status = pthread_create( &t, &attr, task, NULL );
17948 #if HAVE_PTHREADS < 7
17949 if( status < 0 ) status = errno;
17951 if( status ) return status;
17953 /* Draft 4 pthreads */
17954 status = pthread_create( &t, pthread_attr_default, task, NULL );
17955 if( status ) return errno;
17957 /* give thread a chance to complete */
17958 /* it should remain joinable and hence detachable */
17961 status = pthread_detach( &t );
17962 if( status ) return errno;
17965 #ifdef HAVE_LINUX_THREADS
17966 pthread_kill_other_threads_np();
17975 if ac_fn_c_try_link "$LINENO"; then :
17976 ol_cv_pthread_lpthread=yes
17978 ol_cv_pthread_lpthread=no
17980 rm -f core conftest.err conftest.$ac_objext \
17981 conftest$ac_exeext conftest.$ac_ext
17983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17984 /* end confdefs.h. */
17986 /* pthread test headers */
17987 #include <pthread.h>
17988 #if HAVE_PTHREADS < 7
17992 #define NULL (void*)0
17995 static void *task(p)
17998 return (void *) (p == NULL);
18002 int main(argc, argv)
18007 /* pthread test function */
18008 #ifndef PTHREAD_CREATE_DETACHED
18009 #define PTHREAD_CREATE_DETACHED 1
18013 int detach = PTHREAD_CREATE_DETACHED;
18015 #if HAVE_PTHREADS > 4
18016 /* Final pthreads */
18017 pthread_attr_t attr;
18019 status = pthread_attr_init(&attr);
18020 if( status ) return status;
18022 #if HAVE_PTHREADS < 7
18023 status = pthread_attr_setdetachstate(&attr, &detach);
18024 if( status < 0 ) status = errno;
18026 status = pthread_attr_setdetachstate(&attr, detach);
18028 if( status ) return status;
18029 status = pthread_create( &t, &attr, task, NULL );
18030 #if HAVE_PTHREADS < 7
18031 if( status < 0 ) status = errno;
18033 if( status ) return status;
18035 /* Draft 4 pthreads */
18036 status = pthread_create( &t, pthread_attr_default, task, NULL );
18037 if( status ) return errno;
18039 /* give thread a chance to complete */
18040 /* it should remain joinable and hence detachable */
18043 status = pthread_detach( &t );
18044 if( status ) return errno;
18047 #ifdef HAVE_LINUX_THREADS
18048 pthread_kill_other_threads_np();
18056 if ac_fn_c_try_run "$LINENO"; then :
18057 ol_cv_pthread_lpthread=yes
18059 ol_cv_pthread_lpthread=no
18061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18062 conftest.$ac_objext conftest.beam conftest.$ac_ext
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
18071 $as_echo "$ol_cv_pthread_lpthread" >&6; }
18073 if test $ol_cv_pthread_lpthread = yes ; then
18074 ol_link_pthreads="-lpthread"
18075 ol_link_threads=posix
18079 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
18080 if test "$ol_link_threads" = no ; then
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
18083 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
18084 if test "${ol_cv_pthread_lc_r+set}" = set; then :
18085 $as_echo_n "(cached) " >&6
18092 if test "$cross_compiling" = yes; then :
18093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18094 /* end confdefs.h. */
18096 /* pthread test headers */
18097 #include <pthread.h>
18098 #if HAVE_PTHREADS < 7
18102 #define NULL (void*)0
18105 static void *task(p)
18108 return (void *) (p == NULL);
18115 /* pthread test function */
18116 #ifndef PTHREAD_CREATE_DETACHED
18117 #define PTHREAD_CREATE_DETACHED 1
18121 int detach = PTHREAD_CREATE_DETACHED;
18123 #if HAVE_PTHREADS > 4
18124 /* Final pthreads */
18125 pthread_attr_t attr;
18127 status = pthread_attr_init(&attr);
18128 if( status ) return status;
18130 #if HAVE_PTHREADS < 7
18131 status = pthread_attr_setdetachstate(&attr, &detach);
18132 if( status < 0 ) status = errno;
18134 status = pthread_attr_setdetachstate(&attr, detach);
18136 if( status ) return status;
18137 status = pthread_create( &t, &attr, task, NULL );
18138 #if HAVE_PTHREADS < 7
18139 if( status < 0 ) status = errno;
18141 if( status ) return status;
18143 /* Draft 4 pthreads */
18144 status = pthread_create( &t, pthread_attr_default, task, NULL );
18145 if( status ) return errno;
18147 /* give thread a chance to complete */
18148 /* it should remain joinable and hence detachable */
18151 status = pthread_detach( &t );
18152 if( status ) return errno;
18155 #ifdef HAVE_LINUX_THREADS
18156 pthread_kill_other_threads_np();
18165 if ac_fn_c_try_link "$LINENO"; then :
18166 ol_cv_pthread_lc_r=yes
18168 ol_cv_pthread_lc_r=no
18170 rm -f core conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18176 /* pthread test headers */
18177 #include <pthread.h>
18178 #if HAVE_PTHREADS < 7
18182 #define NULL (void*)0
18185 static void *task(p)
18188 return (void *) (p == NULL);
18192 int main(argc, argv)
18197 /* pthread test function */
18198 #ifndef PTHREAD_CREATE_DETACHED
18199 #define PTHREAD_CREATE_DETACHED 1
18203 int detach = PTHREAD_CREATE_DETACHED;
18205 #if HAVE_PTHREADS > 4
18206 /* Final pthreads */
18207 pthread_attr_t attr;
18209 status = pthread_attr_init(&attr);
18210 if( status ) return status;
18212 #if HAVE_PTHREADS < 7
18213 status = pthread_attr_setdetachstate(&attr, &detach);
18214 if( status < 0 ) status = errno;
18216 status = pthread_attr_setdetachstate(&attr, detach);
18218 if( status ) return status;
18219 status = pthread_create( &t, &attr, task, NULL );
18220 #if HAVE_PTHREADS < 7
18221 if( status < 0 ) status = errno;
18223 if( status ) return status;
18225 /* Draft 4 pthreads */
18226 status = pthread_create( &t, pthread_attr_default, task, NULL );
18227 if( status ) return errno;
18229 /* give thread a chance to complete */
18230 /* it should remain joinable and hence detachable */
18233 status = pthread_detach( &t );
18234 if( status ) return errno;
18237 #ifdef HAVE_LINUX_THREADS
18238 pthread_kill_other_threads_np();
18246 if ac_fn_c_try_run "$LINENO"; then :
18247 ol_cv_pthread_lc_r=yes
18249 ol_cv_pthread_lc_r=no
18251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18252 conftest.$ac_objext conftest.beam conftest.$ac_ext
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18261 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18263 if test $ol_cv_pthread_lc_r = yes ; then
18264 ol_link_pthreads="-lc_r"
18265 ol_link_threads=posix
18270 # Pthread try link: -threads (ol_cv_pthread_threads)
18271 if test "$ol_link_threads" = no ; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18274 $as_echo_n "checking for pthread link with -threads... " >&6; }
18275 if test "${ol_cv_pthread_threads+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18281 LIBS="-threads $LIBS"
18283 if test "$cross_compiling" = yes; then :
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18287 /* pthread test headers */
18288 #include <pthread.h>
18289 #if HAVE_PTHREADS < 7
18293 #define NULL (void*)0
18296 static void *task(p)
18299 return (void *) (p == NULL);
18306 /* pthread test function */
18307 #ifndef PTHREAD_CREATE_DETACHED
18308 #define PTHREAD_CREATE_DETACHED 1
18312 int detach = PTHREAD_CREATE_DETACHED;
18314 #if HAVE_PTHREADS > 4
18315 /* Final pthreads */
18316 pthread_attr_t attr;
18318 status = pthread_attr_init(&attr);
18319 if( status ) return status;
18321 #if HAVE_PTHREADS < 7
18322 status = pthread_attr_setdetachstate(&attr, &detach);
18323 if( status < 0 ) status = errno;
18325 status = pthread_attr_setdetachstate(&attr, detach);
18327 if( status ) return status;
18328 status = pthread_create( &t, &attr, task, NULL );
18329 #if HAVE_PTHREADS < 7
18330 if( status < 0 ) status = errno;
18332 if( status ) return status;
18334 /* Draft 4 pthreads */
18335 status = pthread_create( &t, pthread_attr_default, task, NULL );
18336 if( status ) return errno;
18338 /* give thread a chance to complete */
18339 /* it should remain joinable and hence detachable */
18342 status = pthread_detach( &t );
18343 if( status ) return errno;
18346 #ifdef HAVE_LINUX_THREADS
18347 pthread_kill_other_threads_np();
18356 if ac_fn_c_try_link "$LINENO"; then :
18357 ol_cv_pthread_threads=yes
18359 ol_cv_pthread_threads=no
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18367 /* pthread test headers */
18368 #include <pthread.h>
18369 #if HAVE_PTHREADS < 7
18373 #define NULL (void*)0
18376 static void *task(p)
18379 return (void *) (p == NULL);
18383 int main(argc, argv)
18388 /* pthread test function */
18389 #ifndef PTHREAD_CREATE_DETACHED
18390 #define PTHREAD_CREATE_DETACHED 1
18394 int detach = PTHREAD_CREATE_DETACHED;
18396 #if HAVE_PTHREADS > 4
18397 /* Final pthreads */
18398 pthread_attr_t attr;
18400 status = pthread_attr_init(&attr);
18401 if( status ) return status;
18403 #if HAVE_PTHREADS < 7
18404 status = pthread_attr_setdetachstate(&attr, &detach);
18405 if( status < 0 ) status = errno;
18407 status = pthread_attr_setdetachstate(&attr, detach);
18409 if( status ) return status;
18410 status = pthread_create( &t, &attr, task, NULL );
18411 #if HAVE_PTHREADS < 7
18412 if( status < 0 ) status = errno;
18414 if( status ) return status;
18416 /* Draft 4 pthreads */
18417 status = pthread_create( &t, pthread_attr_default, task, NULL );
18418 if( status ) return errno;
18420 /* give thread a chance to complete */
18421 /* it should remain joinable and hence detachable */
18424 status = pthread_detach( &t );
18425 if( status ) return errno;
18428 #ifdef HAVE_LINUX_THREADS
18429 pthread_kill_other_threads_np();
18437 if ac_fn_c_try_run "$LINENO"; then :
18438 ol_cv_pthread_threads=yes
18440 ol_cv_pthread_threads=no
18442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18443 conftest.$ac_objext conftest.beam conftest.$ac_ext
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18452 $as_echo "$ol_cv_pthread_threads" >&6; }
18454 if test $ol_cv_pthread_threads = yes ; then
18455 ol_link_pthreads="-threads"
18456 ol_link_threads=posix
18461 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18462 if test "$ol_link_threads" = no ; then
18463 # try -lpthreads -lmach -lexc -lc_r
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18465 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18466 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then :
18467 $as_echo_n "(cached) " >&6
18472 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18474 if test "$cross_compiling" = yes; then :
18475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18476 /* end confdefs.h. */
18478 /* pthread test headers */
18479 #include <pthread.h>
18480 #if HAVE_PTHREADS < 7
18484 #define NULL (void*)0
18487 static void *task(p)
18490 return (void *) (p == NULL);
18497 /* pthread test function */
18498 #ifndef PTHREAD_CREATE_DETACHED
18499 #define PTHREAD_CREATE_DETACHED 1
18503 int detach = PTHREAD_CREATE_DETACHED;
18505 #if HAVE_PTHREADS > 4
18506 /* Final pthreads */
18507 pthread_attr_t attr;
18509 status = pthread_attr_init(&attr);
18510 if( status ) return status;
18512 #if HAVE_PTHREADS < 7
18513 status = pthread_attr_setdetachstate(&attr, &detach);
18514 if( status < 0 ) status = errno;
18516 status = pthread_attr_setdetachstate(&attr, detach);
18518 if( status ) return status;
18519 status = pthread_create( &t, &attr, task, NULL );
18520 #if HAVE_PTHREADS < 7
18521 if( status < 0 ) status = errno;
18523 if( status ) return status;
18525 /* Draft 4 pthreads */
18526 status = pthread_create( &t, pthread_attr_default, task, NULL );
18527 if( status ) return errno;
18529 /* give thread a chance to complete */
18530 /* it should remain joinable and hence detachable */
18533 status = pthread_detach( &t );
18534 if( status ) return errno;
18537 #ifdef HAVE_LINUX_THREADS
18538 pthread_kill_other_threads_np();
18547 if ac_fn_c_try_link "$LINENO"; then :
18548 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18550 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18552 rm -f core conftest.err conftest.$ac_objext \
18553 conftest$ac_exeext conftest.$ac_ext
18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18556 /* end confdefs.h. */
18558 /* pthread test headers */
18559 #include <pthread.h>
18560 #if HAVE_PTHREADS < 7
18564 #define NULL (void*)0
18567 static void *task(p)
18570 return (void *) (p == NULL);
18574 int main(argc, argv)
18579 /* pthread test function */
18580 #ifndef PTHREAD_CREATE_DETACHED
18581 #define PTHREAD_CREATE_DETACHED 1
18585 int detach = PTHREAD_CREATE_DETACHED;
18587 #if HAVE_PTHREADS > 4
18588 /* Final pthreads */
18589 pthread_attr_t attr;
18591 status = pthread_attr_init(&attr);
18592 if( status ) return status;
18594 #if HAVE_PTHREADS < 7
18595 status = pthread_attr_setdetachstate(&attr, &detach);
18596 if( status < 0 ) status = errno;
18598 status = pthread_attr_setdetachstate(&attr, detach);
18600 if( status ) return status;
18601 status = pthread_create( &t, &attr, task, NULL );
18602 #if HAVE_PTHREADS < 7
18603 if( status < 0 ) status = errno;
18605 if( status ) return status;
18607 /* Draft 4 pthreads */
18608 status = pthread_create( &t, pthread_attr_default, task, NULL );
18609 if( status ) return errno;
18611 /* give thread a chance to complete */
18612 /* it should remain joinable and hence detachable */
18615 status = pthread_detach( &t );
18616 if( status ) return errno;
18619 #ifdef HAVE_LINUX_THREADS
18620 pthread_kill_other_threads_np();
18628 if ac_fn_c_try_run "$LINENO"; then :
18629 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18631 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18634 conftest.$ac_objext conftest.beam conftest.$ac_ext
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18643 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18645 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18646 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18647 ol_link_threads=posix
18651 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18652 if test "$ol_link_threads" = no ; then
18653 # try -lpthreads -lmach -lexc
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18655 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18656 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then :
18657 $as_echo_n "(cached) " >&6
18662 LIBS="-lpthreads -lmach -lexc $LIBS"
18664 if test "$cross_compiling" = yes; then :
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h. */
18668 /* pthread test headers */
18669 #include <pthread.h>
18670 #if HAVE_PTHREADS < 7
18674 #define NULL (void*)0
18677 static void *task(p)
18680 return (void *) (p == NULL);
18687 /* pthread test function */
18688 #ifndef PTHREAD_CREATE_DETACHED
18689 #define PTHREAD_CREATE_DETACHED 1
18693 int detach = PTHREAD_CREATE_DETACHED;
18695 #if HAVE_PTHREADS > 4
18696 /* Final pthreads */
18697 pthread_attr_t attr;
18699 status = pthread_attr_init(&attr);
18700 if( status ) return status;
18702 #if HAVE_PTHREADS < 7
18703 status = pthread_attr_setdetachstate(&attr, &detach);
18704 if( status < 0 ) status = errno;
18706 status = pthread_attr_setdetachstate(&attr, detach);
18708 if( status ) return status;
18709 status = pthread_create( &t, &attr, task, NULL );
18710 #if HAVE_PTHREADS < 7
18711 if( status < 0 ) status = errno;
18713 if( status ) return status;
18715 /* Draft 4 pthreads */
18716 status = pthread_create( &t, pthread_attr_default, task, NULL );
18717 if( status ) return errno;
18719 /* give thread a chance to complete */
18720 /* it should remain joinable and hence detachable */
18723 status = pthread_detach( &t );
18724 if( status ) return errno;
18727 #ifdef HAVE_LINUX_THREADS
18728 pthread_kill_other_threads_np();
18737 if ac_fn_c_try_link "$LINENO"; then :
18738 ol_cv_pthread_lpthreads_lmach_lexc=yes
18740 ol_cv_pthread_lpthreads_lmach_lexc=no
18742 rm -f core conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h. */
18748 /* pthread test headers */
18749 #include <pthread.h>
18750 #if HAVE_PTHREADS < 7
18754 #define NULL (void*)0
18757 static void *task(p)
18760 return (void *) (p == NULL);
18764 int main(argc, argv)
18769 /* pthread test function */
18770 #ifndef PTHREAD_CREATE_DETACHED
18771 #define PTHREAD_CREATE_DETACHED 1
18775 int detach = PTHREAD_CREATE_DETACHED;
18777 #if HAVE_PTHREADS > 4
18778 /* Final pthreads */
18779 pthread_attr_t attr;
18781 status = pthread_attr_init(&attr);
18782 if( status ) return status;
18784 #if HAVE_PTHREADS < 7
18785 status = pthread_attr_setdetachstate(&attr, &detach);
18786 if( status < 0 ) status = errno;
18788 status = pthread_attr_setdetachstate(&attr, detach);
18790 if( status ) return status;
18791 status = pthread_create( &t, &attr, task, NULL );
18792 #if HAVE_PTHREADS < 7
18793 if( status < 0 ) status = errno;
18795 if( status ) return status;
18797 /* Draft 4 pthreads */
18798 status = pthread_create( &t, pthread_attr_default, task, NULL );
18799 if( status ) return errno;
18801 /* give thread a chance to complete */
18802 /* it should remain joinable and hence detachable */
18805 status = pthread_detach( &t );
18806 if( status ) return errno;
18809 #ifdef HAVE_LINUX_THREADS
18810 pthread_kill_other_threads_np();
18818 if ac_fn_c_try_run "$LINENO"; then :
18819 ol_cv_pthread_lpthreads_lmach_lexc=yes
18821 ol_cv_pthread_lpthreads_lmach_lexc=no
18823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18824 conftest.$ac_objext conftest.beam conftest.$ac_ext
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18833 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18835 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18836 ol_link_pthreads="-lpthreads -lmach -lexc"
18837 ol_link_threads=posix
18841 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18842 if test "$ol_link_threads" = no ; then
18843 # try -lpthreads -lexc
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18845 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18846 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then :
18847 $as_echo_n "(cached) " >&6
18852 LIBS="-lpthreads -lexc $LIBS"
18854 if test "$cross_compiling" = yes; then :
18855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18856 /* end confdefs.h. */
18858 /* pthread test headers */
18859 #include <pthread.h>
18860 #if HAVE_PTHREADS < 7
18864 #define NULL (void*)0
18867 static void *task(p)
18870 return (void *) (p == NULL);
18877 /* pthread test function */
18878 #ifndef PTHREAD_CREATE_DETACHED
18879 #define PTHREAD_CREATE_DETACHED 1
18883 int detach = PTHREAD_CREATE_DETACHED;
18885 #if HAVE_PTHREADS > 4
18886 /* Final pthreads */
18887 pthread_attr_t attr;
18889 status = pthread_attr_init(&attr);
18890 if( status ) return status;
18892 #if HAVE_PTHREADS < 7
18893 status = pthread_attr_setdetachstate(&attr, &detach);
18894 if( status < 0 ) status = errno;
18896 status = pthread_attr_setdetachstate(&attr, detach);
18898 if( status ) return status;
18899 status = pthread_create( &t, &attr, task, NULL );
18900 #if HAVE_PTHREADS < 7
18901 if( status < 0 ) status = errno;
18903 if( status ) return status;
18905 /* Draft 4 pthreads */
18906 status = pthread_create( &t, pthread_attr_default, task, NULL );
18907 if( status ) return errno;
18909 /* give thread a chance to complete */
18910 /* it should remain joinable and hence detachable */
18913 status = pthread_detach( &t );
18914 if( status ) return errno;
18917 #ifdef HAVE_LINUX_THREADS
18918 pthread_kill_other_threads_np();
18927 if ac_fn_c_try_link "$LINENO"; then :
18928 ol_cv_pthread_lpthreads_lexc=yes
18930 ol_cv_pthread_lpthreads_lexc=no
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext conftest.$ac_ext
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18938 /* pthread test headers */
18939 #include <pthread.h>
18940 #if HAVE_PTHREADS < 7
18944 #define NULL (void*)0
18947 static void *task(p)
18950 return (void *) (p == NULL);
18954 int main(argc, argv)
18959 /* pthread test function */
18960 #ifndef PTHREAD_CREATE_DETACHED
18961 #define PTHREAD_CREATE_DETACHED 1
18965 int detach = PTHREAD_CREATE_DETACHED;
18967 #if HAVE_PTHREADS > 4
18968 /* Final pthreads */
18969 pthread_attr_t attr;
18971 status = pthread_attr_init(&attr);
18972 if( status ) return status;
18974 #if HAVE_PTHREADS < 7
18975 status = pthread_attr_setdetachstate(&attr, &detach);
18976 if( status < 0 ) status = errno;
18978 status = pthread_attr_setdetachstate(&attr, detach);
18980 if( status ) return status;
18981 status = pthread_create( &t, &attr, task, NULL );
18982 #if HAVE_PTHREADS < 7
18983 if( status < 0 ) status = errno;
18985 if( status ) return status;
18987 /* Draft 4 pthreads */
18988 status = pthread_create( &t, pthread_attr_default, task, NULL );
18989 if( status ) return errno;
18991 /* give thread a chance to complete */
18992 /* it should remain joinable and hence detachable */
18995 status = pthread_detach( &t );
18996 if( status ) return errno;
18999 #ifdef HAVE_LINUX_THREADS
19000 pthread_kill_other_threads_np();
19008 if ac_fn_c_try_run "$LINENO"; then :
19009 ol_cv_pthread_lpthreads_lexc=yes
19011 ol_cv_pthread_lpthreads_lexc=no
19013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19014 conftest.$ac_objext conftest.beam conftest.$ac_ext
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
19023 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
19025 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
19026 ol_link_pthreads="-lpthreads -lexc"
19027 ol_link_threads=posix
19032 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
19033 if test "$ol_link_threads" = no ; then
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
19036 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
19037 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then :
19038 $as_echo_n "(cached) " >&6
19043 LIBS="-lpthreads $LIBS"
19045 if test "$cross_compiling" = yes; then :
19046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h. */
19049 /* pthread test headers */
19050 #include <pthread.h>
19051 #if HAVE_PTHREADS < 7
19055 #define NULL (void*)0
19058 static void *task(p)
19061 return (void *) (p == NULL);
19068 /* pthread test function */
19069 #ifndef PTHREAD_CREATE_DETACHED
19070 #define PTHREAD_CREATE_DETACHED 1
19074 int detach = PTHREAD_CREATE_DETACHED;
19076 #if HAVE_PTHREADS > 4
19077 /* Final pthreads */
19078 pthread_attr_t attr;
19080 status = pthread_attr_init(&attr);
19081 if( status ) return status;
19083 #if HAVE_PTHREADS < 7
19084 status = pthread_attr_setdetachstate(&attr, &detach);
19085 if( status < 0 ) status = errno;
19087 status = pthread_attr_setdetachstate(&attr, detach);
19089 if( status ) return status;
19090 status = pthread_create( &t, &attr, task, NULL );
19091 #if HAVE_PTHREADS < 7
19092 if( status < 0 ) status = errno;
19094 if( status ) return status;
19096 /* Draft 4 pthreads */
19097 status = pthread_create( &t, pthread_attr_default, task, NULL );
19098 if( status ) return errno;
19100 /* give thread a chance to complete */
19101 /* it should remain joinable and hence detachable */
19104 status = pthread_detach( &t );
19105 if( status ) return errno;
19108 #ifdef HAVE_LINUX_THREADS
19109 pthread_kill_other_threads_np();
19118 if ac_fn_c_try_link "$LINENO"; then :
19119 ol_cv_pthread_lib_lpthreads=yes
19121 ol_cv_pthread_lib_lpthreads=no
19123 rm -f core conftest.err conftest.$ac_objext \
19124 conftest$ac_exeext conftest.$ac_ext
19126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h. */
19129 /* pthread test headers */
19130 #include <pthread.h>
19131 #if HAVE_PTHREADS < 7
19135 #define NULL (void*)0
19138 static void *task(p)
19141 return (void *) (p == NULL);
19145 int main(argc, argv)
19150 /* pthread test function */
19151 #ifndef PTHREAD_CREATE_DETACHED
19152 #define PTHREAD_CREATE_DETACHED 1
19156 int detach = PTHREAD_CREATE_DETACHED;
19158 #if HAVE_PTHREADS > 4
19159 /* Final pthreads */
19160 pthread_attr_t attr;
19162 status = pthread_attr_init(&attr);
19163 if( status ) return status;
19165 #if HAVE_PTHREADS < 7
19166 status = pthread_attr_setdetachstate(&attr, &detach);
19167 if( status < 0 ) status = errno;
19169 status = pthread_attr_setdetachstate(&attr, detach);
19171 if( status ) return status;
19172 status = pthread_create( &t, &attr, task, NULL );
19173 #if HAVE_PTHREADS < 7
19174 if( status < 0 ) status = errno;
19176 if( status ) return status;
19178 /* Draft 4 pthreads */
19179 status = pthread_create( &t, pthread_attr_default, task, NULL );
19180 if( status ) return errno;
19182 /* give thread a chance to complete */
19183 /* it should remain joinable and hence detachable */
19186 status = pthread_detach( &t );
19187 if( status ) return errno;
19190 #ifdef HAVE_LINUX_THREADS
19191 pthread_kill_other_threads_np();
19199 if ac_fn_c_try_run "$LINENO"; then :
19200 ol_cv_pthread_lib_lpthreads=yes
19202 ol_cv_pthread_lib_lpthreads=no
19204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19205 conftest.$ac_objext conftest.beam conftest.$ac_ext
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19214 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19216 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19217 ol_link_pthreads="-lpthreads"
19218 ol_link_threads=posix
19223 if test $ol_link_threads != no ; then
19224 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19226 save_CPPFLAGS="$CPPFLAGS"
19228 LIBS="$LTHREAD_LIBS $LIBS"
19230 for ac_func in sched_yield pthread_yield thr_yield
19232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19234 eval as_val=\$$as_ac_var
19235 if test "x$as_val" = x""yes; then :
19236 cat >>confdefs.h <<_ACEOF
19237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19244 if test $ac_cv_func_sched_yield = no &&
19245 test $ac_cv_func_pthread_yield = no &&
19246 test $ac_cv_func_thr_yield = no ; then
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19248 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19249 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
19250 $as_echo_n "(cached) " >&6
19252 ac_check_lib_save_LIBS=$LIBS
19254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19255 /* end confdefs.h. */
19257 /* Override any GCC internal prototype to avoid an error.
19258 Use char because int might match the return type of a GCC
19259 builtin and then its argument prototype would still apply. */
19263 char sched_yield ();
19267 return sched_yield ();
19272 if ac_fn_c_try_link "$LINENO"; then :
19273 ac_cv_lib_rt_sched_yield=yes
19275 ac_cv_lib_rt_sched_yield=no
19277 rm -f core conftest.err conftest.$ac_objext \
19278 conftest$ac_exeext conftest.$ac_ext
19279 LIBS=$ac_check_lib_save_LIBS
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19282 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19283 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
19284 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19286 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19288 ac_cv_func_sched_yield=yes
19290 ac_cv_func_sched_yield=no
19294 if test $ac_cv_func_sched_yield = no &&
19295 test $ac_cv_func_pthread_yield = no &&
19296 test "$ac_cv_func_thr_yield" = no ; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19298 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19301 for ac_func in pthread_kill
19303 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19304 if test "x$ac_cv_func_pthread_kill" = x""yes; then :
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_PTHREAD_KILL 1
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19314 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19315 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then :
19316 $as_echo_n "(cached) " >&6
19319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19320 /* end confdefs.h. */
19322 #include <pthread.h>
19323 pthread_rwlock_t rwlock;
19328 pthread_rwlock_destroy(&rwlock);
19333 if ac_fn_c_try_link "$LINENO"; then :
19334 ol_cv_func_pthread_rwlock_destroy=yes
19336 ol_cv_func_pthread_rwlock_destroy=no
19338 rm -f core conftest.err conftest.$ac_objext \
19339 conftest$ac_exeext conftest.$ac_ext
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19343 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19344 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19346 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19351 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19352 if test "${ol_cv_func_pthread_detach+set}" = set; then :
19353 $as_echo_n "(cached) " >&6
19356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19357 /* end confdefs.h. */
19359 #include <pthread.h>
19361 #define NULL (void*)0
19367 pthread_detach(NULL);
19372 if ac_fn_c_try_link "$LINENO"; then :
19373 ol_cv_func_pthread_detach=yes
19375 ol_cv_func_pthread_detach=no
19377 rm -f core conftest.err conftest.$ac_objext \
19378 conftest$ac_exeext conftest.$ac_ext
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19382 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19384 if test $ol_cv_func_pthread_detach = no ; then
19385 as_fn_error "could not locate pthread_detach()" "$LINENO" 5
19389 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19393 pthread_setconcurrency \
19394 pthread_getconcurrency \
19395 thr_setconcurrency \
19396 thr_getconcurrency \
19399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19401 eval as_val=\$$as_ac_var
19402 if test "x$as_val" = x""yes; then :
19403 cat >>confdefs.h <<_ACEOF
19404 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19412 for ac_func in pthread_kill_other_threads_np
19414 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19415 if test "x$ac_cv_func_pthread_kill_other_threads_np" = x""yes; then :
19416 cat >>confdefs.h <<_ACEOF
19417 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19424 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19425 if test "${ol_cv_sys_linux_threads+set}" = set; then :
19426 $as_echo_n "(cached) " >&6
19428 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19431 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19437 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19438 if test "${ol_cv_linux_threads+set}" = set; then :
19439 $as_echo_n "(cached) " >&6
19442 if test $ol_cv_header_linux_threads = yes &&
19443 test $ol_cv_sys_linux_threads = yes; then
19444 ol_cv_linux_threads=yes
19445 elif test $ol_cv_header_linux_threads = no &&
19446 test $ol_cv_sys_linux_threads = no; then
19447 ol_cv_linux_threads=no
19449 ol_cv_linux_threads=error
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19454 $as_echo "$ol_cv_linux_threads" >&6; }
19457 if test $ol_cv_linux_threads = error; then
19458 as_fn_error "LinuxThreads header/library mismatch" "$LINENO" 5;
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19462 $as_echo_n "checking if pthread_create() works... " >&6; }
19463 if test "${ol_cv_pthread_create_works+set}" = set; then :
19464 $as_echo_n "(cached) " >&6
19467 if test "$cross_compiling" = yes; then :
19468 ol_cv_pthread_create_works=yes
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19473 /* pthread test headers */
19474 #include <pthread.h>
19475 #if HAVE_PTHREADS < 7
19479 #define NULL (void*)0
19482 static void *task(p)
19485 return (void *) (p == NULL);
19489 int main(argc, argv)
19494 /* pthread test function */
19495 #ifndef PTHREAD_CREATE_DETACHED
19496 #define PTHREAD_CREATE_DETACHED 1
19500 int detach = PTHREAD_CREATE_DETACHED;
19502 #if HAVE_PTHREADS > 4
19503 /* Final pthreads */
19504 pthread_attr_t attr;
19506 status = pthread_attr_init(&attr);
19507 if( status ) return status;
19509 #if HAVE_PTHREADS < 7
19510 status = pthread_attr_setdetachstate(&attr, &detach);
19511 if( status < 0 ) status = errno;
19513 status = pthread_attr_setdetachstate(&attr, detach);
19515 if( status ) return status;
19516 status = pthread_create( &t, &attr, task, NULL );
19517 #if HAVE_PTHREADS < 7
19518 if( status < 0 ) status = errno;
19520 if( status ) return status;
19522 /* Draft 4 pthreads */
19523 status = pthread_create( &t, pthread_attr_default, task, NULL );
19524 if( status ) return errno;
19526 /* give thread a chance to complete */
19527 /* it should remain joinable and hence detachable */
19530 status = pthread_detach( &t );
19531 if( status ) return errno;
19534 #ifdef HAVE_LINUX_THREADS
19535 pthread_kill_other_threads_np();
19543 if ac_fn_c_try_run "$LINENO"; then :
19544 ol_cv_pthread_create_works=yes
19546 ol_cv_pthread_create_works=no
19548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19549 conftest.$ac_objext conftest.beam conftest.$ac_ext
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19554 $as_echo "$ol_cv_pthread_create_works" >&6; }
19556 if test $ol_cv_pthread_create_works = no ; then
19557 as_fn_error "pthread_create is not usable, check environment settings" "$LINENO" 5
19560 ol_replace_broken_yield=no
19562 if test $ol_replace_broken_yield = yes ; then
19564 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19568 if test $ol_with_yielding_select = auto ; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19570 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19571 if test "${ol_cv_pthread_select_yields+set}" = set; then :
19572 $as_echo_n "(cached) " >&6
19575 if test "$cross_compiling" = yes; then :
19576 ol_cv_pthread_select_yields=cross
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19581 #include <sys/types.h>
19582 #include <sys/time.h>
19583 #include <unistd.h>
19584 #include <pthread.h>
19586 #define NULL (void*) 0
19589 static int fildes[2];
19591 static void *task(p)
19603 FD_SET(fildes[0], &rfds);
19605 /* we're not interested in any fds */
19606 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19613 exit(0); /* if we exit here, the select blocked the whole process */
19616 int main(argc, argv)
19622 /* create a pipe to select */
19623 if(pipe(&fildes[0])) {
19628 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19629 (void) pthread_setconcurrency(2);
19631 #ifdef HAVE_THR_SETCONCURRENCY
19632 /* Set Solaris LWP concurrency to 2 */
19633 thr_setconcurrency(2);
19637 #if HAVE_PTHREADS < 6
19638 pthread_create(&t, pthread_attr_default, task, NULL);
19640 pthread_create(&t, NULL, task, NULL);
19643 /* make sure task runs first */
19644 #ifdef HAVE_THR_YIELD
19646 #elif defined( HAVE_SCHED_YIELD )
19648 #elif defined( HAVE_PTHREAD_YIELD )
19655 if ac_fn_c_try_run "$LINENO"; then :
19656 ol_cv_pthread_select_yields=no
19658 ol_cv_pthread_select_yields=yes
19660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19661 conftest.$ac_objext conftest.beam conftest.$ac_ext
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19666 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19668 if test $ol_cv_pthread_select_yields = cross ; then
19669 as_fn_error "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19672 if test $ol_cv_pthread_select_yields = yes ; then
19673 ol_with_yielding_select=yes
19677 CPPFLAGS="$save_CPPFLAGS"
19680 as_fn_error "could not locate usable POSIX Threads" "$LINENO" 5
19684 if test $ol_with_threads = posix ; then
19685 as_fn_error "could not locate POSIX Threads" "$LINENO" 5
19690 case $ol_with_threads in auto | yes | mach)
19692 for ac_header in mach/cthreads.h cthreads.h
19694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19695 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19696 eval as_val=\$$as_ac_Header
19697 if test "x$as_val" = x""yes; then :
19698 cat >>confdefs.h <<_ACEOF
19699 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19706 if test $ac_cv_header_mach_cthreads_h = yes ; then
19707 ol_with_threads=found
19709 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19710 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19711 ol_link_threads=yes
19715 if test $ol_link_threads = no ; then
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19717 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19718 if test "${ol_cv_cthread_all_load+set}" = set; then :
19719 $as_echo_n "(cached) " >&6
19723 LIBS="-all_load $LIBS"
19724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19725 /* end confdefs.h. */
19726 #include <mach/cthreads.h>
19731 cthread_fork((void *)0, (void *)0);
19737 if ac_fn_c_try_link "$LINENO"; then :
19738 ol_cv_cthread_all_load=yes
19740 ol_cv_cthread_all_load=no
19742 rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19748 $as_echo "$ol_cv_cthread_all_load" >&6; }
19750 if test $ol_cv_cthread_all_load = yes ; then
19751 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19752 ol_link_threads=mach
19753 ol_with_threads=found
19757 elif test $ac_cv_header_cthreads_h = yes ; then
19759 ol_with_threads=found
19762 LIBS="$LIBS -lthreads"
19763 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19764 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19765 ol_link_threads=yes
19770 if test $ol_link_threads = yes ; then
19771 LTHREAD_LIBS="-lthreads"
19772 ol_link_threads=mach
19773 ol_with_threads=found
19775 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19778 elif test $ol_with_threads = mach ; then
19779 as_fn_error "could not locate Mach CThreads" "$LINENO" 5
19782 if test $ol_link_threads = mach ; then
19784 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19786 elif test $ol_with_threads = found ; then
19787 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19792 case $ol_with_threads in auto | yes | pth)
19794 for ac_header in pth.h
19796 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19797 if test "x$ac_cv_header_pth_h" = x""yes; then :
19798 cat >>confdefs.h <<_ACEOF
19799 #define HAVE_PTH_H 1
19807 if test $ac_cv_header_pth_h = yes ; then
19808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19809 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19810 if test "${ac_cv_lib_pth_pth_version+set}" = set; then :
19811 $as_echo_n "(cached) " >&6
19813 ac_check_lib_save_LIBS=$LIBS
19815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19816 /* end confdefs.h. */
19818 /* Override any GCC internal prototype to avoid an error.
19819 Use char because int might match the return type of a GCC
19820 builtin and then its argument prototype would still apply. */
19824 char pth_version ();
19828 return pth_version ();
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 ac_cv_lib_pth_pth_version=yes
19836 ac_cv_lib_pth_pth_version=no
19838 rm -f core conftest.err conftest.$ac_objext \
19839 conftest$ac_exeext conftest.$ac_ext
19840 LIBS=$ac_check_lib_save_LIBS
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19843 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19844 if test "x$ac_cv_lib_pth_pth_version" = x""yes; then :
19851 if test $have_pth = yes ; then
19853 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19855 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19856 ol_link_threads=pth
19857 ol_with_threads=found
19859 if test $ol_with_yielding_select = auto ; then
19860 ol_with_yielding_select=yes
19867 case $ol_with_threads in auto | yes | lwp)
19869 for ac_header in thread.h synch.h
19871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19872 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19873 eval as_val=\$$as_ac_Header
19874 if test "x$as_val" = x""yes; then :
19875 cat >>confdefs.h <<_ACEOF
19876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19883 if test $ac_cv_header_thread_h = yes &&
19884 test $ac_cv_header_synch_h = yes ; then
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19886 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19887 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
19888 $as_echo_n "(cached) " >&6
19890 ac_check_lib_save_LIBS=$LIBS
19891 LIBS="-lthread $LIBS"
19892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19893 /* end confdefs.h. */
19895 /* Override any GCC internal prototype to avoid an error.
19896 Use char because int might match the return type of a GCC
19897 builtin and then its argument prototype would still apply. */
19901 char thr_create ();
19905 return thr_create ();
19910 if ac_fn_c_try_link "$LINENO"; then :
19911 ac_cv_lib_thread_thr_create=yes
19913 ac_cv_lib_thread_thr_create=no
19915 rm -f core conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19920 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19921 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
19928 if test $have_thr = yes ; then
19930 $as_echo "#define HAVE_THR 1" >>confdefs.h
19932 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19933 ol_link_threads=thr
19935 if test $ol_with_yielding_select = auto ; then
19936 ol_with_yielding_select=yes
19940 thr_setconcurrency \
19941 thr_getconcurrency \
19944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19946 eval as_val=\$$as_ac_var
19947 if test "x$as_val" = x""yes; then :
19948 cat >>confdefs.h <<_ACEOF
19949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19960 if test $ol_with_yielding_select = yes ; then
19962 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19966 if test $ol_with_threads = manual ; then
19967 ol_link_threads=yes
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19970 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19972 for ac_header in pthread.h sched.h
19974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19975 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19976 eval as_val=\$$as_ac_Header
19977 if test "x$as_val" = x""yes; then :
19978 cat >>confdefs.h <<_ACEOF
19979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19986 for ac_func in sched_yield pthread_yield
19988 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19989 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19990 eval as_val=\$$as_ac_var
19991 if test "x$as_val" = x""yes; then :
19992 cat >>confdefs.h <<_ACEOF
19993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
20001 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
20002 if test "${ol_cv_header_linux_threads+set}" = set; then :
20003 $as_echo_n "(cached) " >&6
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20007 #include <pthread.h>
20009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20010 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
20011 ol_cv_header_linux_threads=yes
20013 ol_cv_header_linux_threads=no
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
20020 $as_echo "$ol_cv_header_linux_threads" >&6; }
20021 if test $ol_cv_header_linux_threads = yes; then
20023 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
20028 for ac_header in mach/cthreads.h
20030 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
20031 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
20032 cat >>confdefs.h <<_ACEOF
20033 #define HAVE_MACH_CTHREADS_H 1
20040 for ac_header in thread.h synch.h
20042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20044 eval as_val=\$$as_ac_Header
20045 if test "x$as_val" = x""yes; then :
20046 cat >>confdefs.h <<_ACEOF
20047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20056 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
20057 $as_echo "#define REENTRANT 1" >>confdefs.h
20059 $as_echo "#define _REENTRANT 1" >>confdefs.h
20061 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
20063 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
20065 $as_echo "#define THREADSAFE 1" >>confdefs.h
20067 $as_echo "#define _THREADSAFE 1" >>confdefs.h
20069 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
20073 $as_echo_n "checking for thread specific errno... " >&6; }
20074 if test "${ol_cv_errno_thread_specific+set}" = set; then :
20075 $as_echo_n "(cached) " >&6
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079 /* end confdefs.h. */
20089 if ac_fn_c_try_link "$LINENO"; then :
20090 ol_cv_errno_thread_specific=yes
20092 ol_cv_errno_thread_specific=no
20094 rm -f core conftest.err conftest.$ac_objext \
20095 conftest$ac_exeext conftest.$ac_ext
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
20099 $as_echo "$ol_cv_errno_thread_specific" >&6; }
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
20102 $as_echo_n "checking for thread specific h_errno... " >&6; }
20103 if test "${ol_cv_h_errno_thread_specific+set}" = set; then :
20104 $as_echo_n "(cached) " >&6
20107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20108 /* end confdefs.h. */
20118 if ac_fn_c_try_link "$LINENO"; then :
20119 ol_cv_h_errno_thread_specific=yes
20121 ol_cv_h_errno_thread_specific=no
20123 rm -f core conftest.err conftest.$ac_objext \
20124 conftest$ac_exeext conftest.$ac_ext
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
20128 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
20130 if test $ol_cv_errno_thread_specific != yes ||
20131 test $ol_cv_h_errno_thread_specific != yes ; then
20132 LIBS="$LTHREAD_LIBS $LIBS"
20138 if test $ol_link_threads = no ; then
20139 if test $ol_with_threads = yes ; then
20140 as_fn_error "no suitable thread support" "$LINENO" 5
20143 if test $ol_with_threads = auto ; then
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
20145 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
20150 $as_echo "#define NO_THREADS 1" >>confdefs.h
20158 if test $ol_link_threads != no ; then
20160 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
20166 gmtime_r localtime_r \
20167 gethostbyname_r gethostbyaddr_r \
20170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20171 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20172 eval as_val=\$$as_ac_var
20173 if test "x$as_val" = x""yes; then :
20174 cat >>confdefs.h <<_ACEOF
20175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20182 if test "$ac_cv_func_ctime_r" = no ; then
20183 ol_cv_func_ctime_r_nargs=0
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20186 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20187 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then :
20188 $as_echo_n "(cached) " >&6
20190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20196 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20201 if ac_fn_c_try_compile "$LINENO"; then :
20202 ol_cv_func_ctime_r_nargs3=yes
20204 ol_cv_func_ctime_r_nargs3=no
20206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20209 /* end confdefs.h. */
20214 time_t ti; char *buffer; ctime_r(&ti,buffer);
20219 if ac_fn_c_try_compile "$LINENO"; then :
20220 ol_cv_func_ctime_r_nargs2=yes
20222 ol_cv_func_ctime_r_nargs2=no
20224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20226 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20227 test $ol_cv_func_ctime_r_nargs2 = no ; then
20229 ol_cv_func_ctime_r_nargs=3
20231 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20232 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20234 ol_cv_func_ctime_r_nargs=2
20237 ol_cv_func_ctime_r_nargs=0
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20242 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20244 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20246 cat >>confdefs.h <<_ACEOF
20247 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20254 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20256 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20257 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then :
20258 $as_echo_n "(cached) " >&6
20260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20261 /* end confdefs.h. */
20262 #include <sys/types.h>
20263 #include <sys/socket.h>
20264 #include <netinet/in.h>
20266 #define BUFSIZE (sizeof(struct hostent)+10)
20270 struct hostent hent; char buffer[BUFSIZE];
20271 int bufsize=BUFSIZE;int h_errno;
20272 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20273 buffer, bufsize, &h_errno);
20278 if ac_fn_c_try_compile "$LINENO"; then :
20279 ol_cv_func_gethostbyname_r_nargs5=yes
20281 ol_cv_func_gethostbyname_r_nargs5=no
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20286 /* end confdefs.h. */
20287 #include <sys/types.h>
20288 #include <sys/socket.h>
20289 #include <netinet/in.h>
20291 #define BUFSIZE (sizeof(struct hostent)+10)
20295 struct hostent hent;struct hostent *rhent;
20296 char buffer[BUFSIZE];
20297 int bufsize=BUFSIZE;int h_errno;
20298 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20304 if ac_fn_c_try_compile "$LINENO"; then :
20305 ol_cv_func_gethostbyname_r_nargs6=yes
20307 ol_cv_func_gethostbyname_r_nargs6=no
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20311 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20312 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20314 ol_cv_func_gethostbyname_r_nargs=5
20316 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20317 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20319 ol_cv_func_gethostbyname_r_nargs=6
20322 ol_cv_func_gethostbyname_r_nargs=0
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20327 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20328 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20330 cat >>confdefs.h <<_ACEOF
20331 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20337 ol_cv_func_gethostbyname_r_nargs=0
20340 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20342 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20343 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then :
20344 $as_echo_n "(cached) " >&6
20346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20347 /* end confdefs.h. */
20348 #include <sys/types.h>
20349 #include <sys/socket.h>
20350 #include <netinet/in.h>
20352 #define BUFSIZE (sizeof(struct hostent)+10)
20356 struct hostent hent; char buffer[BUFSIZE];
20357 struct in_addr add;
20358 size_t alen=sizeof(struct in_addr);
20359 int bufsize=BUFSIZE;int h_errno;
20360 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20361 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20366 if ac_fn_c_try_compile "$LINENO"; then :
20367 ol_cv_func_gethostbyaddr_r_nargs7=yes
20369 ol_cv_func_gethostbyaddr_r_nargs7=no
20371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20374 /* end confdefs.h. */
20375 #include <sys/types.h>
20376 #include <sys/socket.h>
20377 #include <netinet/in.h>
20379 #define BUFSIZE (sizeof(struct hostent)+10)
20383 struct hostent hent;
20384 struct hostent *rhent; char buffer[BUFSIZE];
20385 struct in_addr add;
20386 size_t alen=sizeof(struct in_addr);
20387 int bufsize=BUFSIZE;int h_errno;
20388 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20389 alen, AF_INET, &hent, buffer, bufsize,
20395 if ac_fn_c_try_compile "$LINENO"; then :
20396 ol_cv_func_gethostbyaddr_r_nargs8=yes
20398 ol_cv_func_gethostbyaddr_r_nargs8=no
20400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20402 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20403 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20405 ol_cv_func_gethostbyaddr_r_nargs=7
20407 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20408 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20410 ol_cv_func_gethostbyaddr_r_nargs=8
20413 ol_cv_func_gethostbyaddr_r_nargs=0
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20418 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20419 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20421 cat >>confdefs.h <<_ACEOF
20422 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20428 ol_cv_func_gethostbyaddr_r_nargs=0
20433 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20434 ol_cv_berkeley_db=no
20435 for ac_header in db.h
20437 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20438 if test "x$ac_cv_header_db_h" = x""yes; then :
20439 cat >>confdefs.h <<_ACEOF
20440 #define HAVE_DB_H 1
20447 if test $ac_cv_header_db_h = yes; then
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20449 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20450 if test "${ol_cv_bdb_major+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h. */
20458 #ifndef DB_VERSION_MAJOR
20459 # define DB_VERSION_MAJOR 1
20461 __db_version DB_VERSION_MAJOR
20464 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20465 ol_cv_bdb_major=${3}
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20469 $as_echo "$ol_cv_bdb_major" >&6; }
20470 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20471 as_fn_error "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20475 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20476 if test "${ol_cv_bdb_minor+set}" = set; then :
20477 $as_echo_n "(cached) " >&6
20480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h. */
20484 #ifndef DB_VERSION_MINOR
20485 # define DB_VERSION_MINOR 0
20487 __db_version DB_VERSION_MINOR
20490 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20491 ol_cv_bdb_minor=${3}
20494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20495 $as_echo "$ol_cv_bdb_minor" >&6; }
20496 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20497 as_fn_error "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20501 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20502 if test "${ol_cv_bdb_compat+set}" = set; then :
20503 $as_echo_n "(cached) " >&6
20506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20507 /* end confdefs.h. */
20511 /* this check could be improved */
20512 #ifndef DB_VERSION_MAJOR
20513 # define DB_VERSION_MAJOR 1
20515 #ifndef DB_VERSION_MINOR
20516 # define DB_VERSION_MINOR 0
20518 #ifndef DB_VERSION_PATCH
20519 # define DB_VERSION_PATCH 0
20522 #define DB_VERSION_FULL ((DB_VERSION_MAJOR<<16)|(DB_VERSION_MINOR<<8)|DB_VERSION_PATCH)
20524 /* require 4.4 or later, but less than 6.0.20 */
20525 #if DB_VERSION_FULL >= 0x040400 && DB_VERSION_FULL < 0x060014
20526 __db_version_compat
20528 #if DB_VERSION_FULL >= 0x060014
20529 #error "BerkeleyDB 6.0.20+ license is incompatible with LDAP"
20533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20534 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20535 ol_cv_bdb_compat=yes
20537 ol_cv_bdb_compat=no
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20543 $as_echo "$ol_cv_bdb_compat" >&6; }
20546 if test $ol_cv_bdb_compat != yes ; then
20547 as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20552 if test $ol_cv_bdb_major = 5 ; then
20553 if test $ol_cv_lib_db = no ; then
20554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20555 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20556 if test "${ol_cv_db_db_5_dot_m+set}" = set; then :
20557 $as_echo_n "(cached) " >&6
20560 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20562 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20567 #ifdef HAVE_DB_185_H
20568 # include <db_185.h>
20573 #ifndef DB_VERSION_MAJOR
20574 # define DB_VERSION_MAJOR 1
20578 #define NULL ((void*)0)
20585 #if DB_VERSION_MAJOR > 2
20586 db_env_create( NULL, 0 );
20587 #elif DB_VERSION_MAJOR > 1
20588 db_appexit( NULL );
20590 (void) dbopen( NULL, 0, 0, 0, NULL);
20597 if ac_fn_c_try_link "$LINENO"; then :
20598 ol_cv_db_db_5_dot_m=yes
20600 ol_cv_db_db_5_dot_m=no
20602 rm -f core conftest.err conftest.$ac_objext \
20603 conftest$ac_exeext conftest.$ac_ext
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20609 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20611 if test $ol_cv_db_db_5_dot_m = yes ; then
20612 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20616 if test $ol_cv_lib_db = no ; then
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20618 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20619 if test "${ol_cv_db_db5m+set}" = set; then :
20620 $as_echo_n "(cached) " >&6
20623 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20625 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20628 /* end confdefs.h. */
20630 #ifdef HAVE_DB_185_H
20631 # include <db_185.h>
20636 #ifndef DB_VERSION_MAJOR
20637 # define DB_VERSION_MAJOR 1
20641 #define NULL ((void*)0)
20648 #if DB_VERSION_MAJOR > 2
20649 db_env_create( NULL, 0 );
20650 #elif DB_VERSION_MAJOR > 1
20651 db_appexit( NULL );
20653 (void) dbopen( NULL, 0, 0, 0, NULL);
20660 if ac_fn_c_try_link "$LINENO"; then :
20665 rm -f core conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20672 $as_echo "$ol_cv_db_db5m" >&6; }
20674 if test $ol_cv_db_db5m = yes ; then
20675 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20679 if test $ol_cv_lib_db = no ; then
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20681 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20682 if test "${ol_cv_db_db_5m+set}" = set; then :
20683 $as_echo_n "(cached) " >&6
20686 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20688 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20691 /* end confdefs.h. */
20693 #ifdef HAVE_DB_185_H
20694 # include <db_185.h>
20699 #ifndef DB_VERSION_MAJOR
20700 # define DB_VERSION_MAJOR 1
20704 #define NULL ((void*)0)
20711 #if DB_VERSION_MAJOR > 2
20712 db_env_create( NULL, 0 );
20713 #elif DB_VERSION_MAJOR > 1
20714 db_appexit( NULL );
20716 (void) dbopen( NULL, 0, 0, 0, NULL);
20723 if ac_fn_c_try_link "$LINENO"; then :
20728 rm -f core conftest.err conftest.$ac_objext \
20729 conftest$ac_exeext conftest.$ac_ext
20734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20735 $as_echo "$ol_cv_db_db_5m" >&6; }
20737 if test $ol_cv_db_db_5m = yes ; then
20738 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20742 if test $ol_cv_lib_db = no ; then
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20744 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20745 if test "${ol_cv_db_db_5_m+set}" = set; then :
20746 $as_echo_n "(cached) " >&6
20749 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20751 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754 /* end confdefs.h. */
20756 #ifdef HAVE_DB_185_H
20757 # include <db_185.h>
20762 #ifndef DB_VERSION_MAJOR
20763 # define DB_VERSION_MAJOR 1
20767 #define NULL ((void*)0)
20774 #if DB_VERSION_MAJOR > 2
20775 db_env_create( NULL, 0 );
20776 #elif DB_VERSION_MAJOR > 1
20777 db_appexit( NULL );
20779 (void) dbopen( NULL, 0, 0, 0, NULL);
20786 if ac_fn_c_try_link "$LINENO"; then :
20787 ol_cv_db_db_5_m=yes
20791 rm -f core conftest.err conftest.$ac_objext \
20792 conftest$ac_exeext conftest.$ac_ext
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20798 $as_echo "$ol_cv_db_db_5_m" >&6; }
20800 if test $ol_cv_db_db_5_m = yes ; then
20801 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20805 if test $ol_cv_lib_db = no ; then
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20807 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20808 if test "${ol_cv_db_db_5+set}" = set; then :
20809 $as_echo_n "(cached) " >&6
20814 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20817 /* end confdefs.h. */
20819 #ifdef HAVE_DB_185_H
20820 # include <db_185.h>
20825 #ifndef DB_VERSION_MAJOR
20826 # define DB_VERSION_MAJOR 1
20830 #define NULL ((void*)0)
20837 #if DB_VERSION_MAJOR > 2
20838 db_env_create( NULL, 0 );
20839 #elif DB_VERSION_MAJOR > 1
20840 db_appexit( NULL );
20842 (void) dbopen( NULL, 0, 0, 0, NULL);
20849 if ac_fn_c_try_link "$LINENO"; then :
20854 rm -f core conftest.err conftest.$ac_objext \
20855 conftest$ac_exeext conftest.$ac_ext
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20861 $as_echo "$ol_cv_db_db_5" >&6; }
20863 if test $ol_cv_db_db_5 = yes ; then
20864 ol_cv_lib_db=-ldb-5
20868 if test $ol_cv_lib_db = no ; then
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20870 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20871 if test "${ol_cv_db_db5+set}" = set; then :
20872 $as_echo_n "(cached) " >&6
20877 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20880 /* end confdefs.h. */
20882 #ifdef HAVE_DB_185_H
20883 # include <db_185.h>
20888 #ifndef DB_VERSION_MAJOR
20889 # define DB_VERSION_MAJOR 1
20893 #define NULL ((void*)0)
20900 #if DB_VERSION_MAJOR > 2
20901 db_env_create( NULL, 0 );
20902 #elif DB_VERSION_MAJOR > 1
20903 db_appexit( NULL );
20905 (void) dbopen( NULL, 0, 0, 0, NULL);
20912 if ac_fn_c_try_link "$LINENO"; then :
20917 rm -f core conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20924 $as_echo "$ol_cv_db_db5" >&6; }
20926 if test $ol_cv_db_db5 = yes ; then
20931 elif test $ol_cv_bdb_major = 4 ; then
20932 if test $ol_cv_lib_db = no ; then
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20934 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20935 if test "${ol_cv_db_db_4_dot_m+set}" = set; then :
20936 $as_echo_n "(cached) " >&6
20939 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20944 /* end confdefs.h. */
20946 #ifdef HAVE_DB_185_H
20947 # include <db_185.h>
20952 #ifndef DB_VERSION_MAJOR
20953 # define DB_VERSION_MAJOR 1
20957 #define NULL ((void*)0)
20964 #if DB_VERSION_MAJOR > 2
20965 db_env_create( NULL, 0 );
20966 #elif DB_VERSION_MAJOR > 1
20967 db_appexit( NULL );
20969 (void) dbopen( NULL, 0, 0, 0, NULL);
20976 if ac_fn_c_try_link "$LINENO"; then :
20977 ol_cv_db_db_4_dot_m=yes
20979 ol_cv_db_db_4_dot_m=no
20981 rm -f core conftest.err conftest.$ac_objext \
20982 conftest$ac_exeext conftest.$ac_ext
20987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20988 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20990 if test $ol_cv_db_db_4_dot_m = yes ; then
20991 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20995 if test $ol_cv_lib_db = no ; then
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20997 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20998 if test "${ol_cv_db_db4m+set}" = set; then :
20999 $as_echo_n "(cached) " >&6
21002 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
21004 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h. */
21009 #ifdef HAVE_DB_185_H
21010 # include <db_185.h>
21015 #ifndef DB_VERSION_MAJOR
21016 # define DB_VERSION_MAJOR 1
21020 #define NULL ((void*)0)
21027 #if DB_VERSION_MAJOR > 2
21028 db_env_create( NULL, 0 );
21029 #elif DB_VERSION_MAJOR > 1
21030 db_appexit( NULL );
21032 (void) dbopen( NULL, 0, 0, 0, NULL);
21039 if ac_fn_c_try_link "$LINENO"; then :
21044 rm -f core conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
21051 $as_echo "$ol_cv_db_db4m" >&6; }
21053 if test $ol_cv_db_db4m = yes ; then
21054 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
21058 if test $ol_cv_lib_db = no ; then
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
21060 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
21061 if test "${ol_cv_db_db_4m+set}" = set; then :
21062 $as_echo_n "(cached) " >&6
21065 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
21067 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21070 /* end confdefs.h. */
21072 #ifdef HAVE_DB_185_H
21073 # include <db_185.h>
21078 #ifndef DB_VERSION_MAJOR
21079 # define DB_VERSION_MAJOR 1
21083 #define NULL ((void*)0)
21090 #if DB_VERSION_MAJOR > 2
21091 db_env_create( NULL, 0 );
21092 #elif DB_VERSION_MAJOR > 1
21093 db_appexit( NULL );
21095 (void) dbopen( NULL, 0, 0, 0, NULL);
21102 if ac_fn_c_try_link "$LINENO"; then :
21107 rm -f core conftest.err conftest.$ac_objext \
21108 conftest$ac_exeext conftest.$ac_ext
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
21114 $as_echo "$ol_cv_db_db_4m" >&6; }
21116 if test $ol_cv_db_db_4m = yes ; then
21117 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
21121 if test $ol_cv_lib_db = no ; then
21122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
21123 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
21124 if test "${ol_cv_db_db_4_m+set}" = set; then :
21125 $as_echo_n "(cached) " >&6
21128 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
21130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133 /* end confdefs.h. */
21135 #ifdef HAVE_DB_185_H
21136 # include <db_185.h>
21141 #ifndef DB_VERSION_MAJOR
21142 # define DB_VERSION_MAJOR 1
21146 #define NULL ((void*)0)
21153 #if DB_VERSION_MAJOR > 2
21154 db_env_create( NULL, 0 );
21155 #elif DB_VERSION_MAJOR > 1
21156 db_appexit( NULL );
21158 (void) dbopen( NULL, 0, 0, 0, NULL);
21165 if ac_fn_c_try_link "$LINENO"; then :
21166 ol_cv_db_db_4_m=yes
21170 rm -f core conftest.err conftest.$ac_objext \
21171 conftest$ac_exeext conftest.$ac_ext
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21177 $as_echo "$ol_cv_db_db_4_m" >&6; }
21179 if test $ol_cv_db_db_4_m = yes ; then
21180 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21184 if test $ol_cv_lib_db = no ; then
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21186 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21187 if test "${ol_cv_db_db_4+set}" = set; then :
21188 $as_echo_n "(cached) " >&6
21193 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h. */
21198 #ifdef HAVE_DB_185_H
21199 # include <db_185.h>
21204 #ifndef DB_VERSION_MAJOR
21205 # define DB_VERSION_MAJOR 1
21209 #define NULL ((void*)0)
21216 #if DB_VERSION_MAJOR > 2
21217 db_env_create( NULL, 0 );
21218 #elif DB_VERSION_MAJOR > 1
21219 db_appexit( NULL );
21221 (void) dbopen( NULL, 0, 0, 0, NULL);
21228 if ac_fn_c_try_link "$LINENO"; then :
21233 rm -f core conftest.err conftest.$ac_objext \
21234 conftest$ac_exeext conftest.$ac_ext
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21240 $as_echo "$ol_cv_db_db_4" >&6; }
21242 if test $ol_cv_db_db_4 = yes ; then
21243 ol_cv_lib_db=-ldb-4
21247 if test $ol_cv_lib_db = no ; then
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21249 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21250 if test "${ol_cv_db_db4+set}" = set; then :
21251 $as_echo_n "(cached) " >&6
21256 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21259 /* end confdefs.h. */
21261 #ifdef HAVE_DB_185_H
21262 # include <db_185.h>
21267 #ifndef DB_VERSION_MAJOR
21268 # define DB_VERSION_MAJOR 1
21272 #define NULL ((void*)0)
21279 #if DB_VERSION_MAJOR > 2
21280 db_env_create( NULL, 0 );
21281 #elif DB_VERSION_MAJOR > 1
21282 db_appexit( NULL );
21284 (void) dbopen( NULL, 0, 0, 0, NULL);
21291 if ac_fn_c_try_link "$LINENO"; then :
21296 rm -f core conftest.err conftest.$ac_objext \
21297 conftest$ac_exeext conftest.$ac_ext
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21303 $as_echo "$ol_cv_db_db4" >&6; }
21305 if test $ol_cv_db_db4 = yes ; then
21311 if test $ol_cv_lib_db = no ; then
21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21313 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21314 if test "${ol_cv_db_db+set}" = set; then :
21315 $as_echo_n "(cached) " >&6
21320 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h. */
21325 #ifdef HAVE_DB_185_H
21326 # include <db_185.h>
21331 #ifndef DB_VERSION_MAJOR
21332 # define DB_VERSION_MAJOR 1
21336 #define NULL ((void*)0)
21343 #if DB_VERSION_MAJOR > 2
21344 db_env_create( NULL, 0 );
21345 #elif DB_VERSION_MAJOR > 1
21346 db_appexit( NULL );
21348 (void) dbopen( NULL, 0, 0, 0, NULL);
21355 if ac_fn_c_try_link "$LINENO"; then :
21360 rm -f core conftest.err conftest.$ac_objext \
21361 conftest$ac_exeext conftest.$ac_ext
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21367 $as_echo "$ol_cv_db_db" >&6; }
21369 if test $ol_cv_db_db = yes ; then
21374 if test $ol_cv_lib_db = no ; then
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21376 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21377 if test "${ol_cv_db_none+set}" = set; then :
21378 $as_echo_n "(cached) " >&6
21383 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21386 /* end confdefs.h. */
21388 #ifdef HAVE_DB_185_H
21389 # include <db_185.h>
21394 #ifndef DB_VERSION_MAJOR
21395 # define DB_VERSION_MAJOR 1
21399 #define NULL ((void*)0)
21406 #if DB_VERSION_MAJOR > 2
21407 db_env_create( NULL, 0 );
21408 #elif DB_VERSION_MAJOR > 1
21409 db_appexit( NULL );
21411 (void) dbopen( NULL, 0, 0, 0, NULL);
21418 if ac_fn_c_try_link "$LINENO"; then :
21423 rm -f core conftest.err conftest.$ac_objext \
21424 conftest$ac_exeext conftest.$ac_ext
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21430 $as_echo "$ol_cv_db_none" >&6; }
21432 if test $ol_cv_db_none = yes ; then
21438 if test "$ol_cv_lib_db" != no ; then
21439 ol_cv_berkeley_db=yes
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21441 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21442 if test "${ol_cv_berkeley_db_version+set}" = set; then :
21443 $as_echo_n "(cached) " >&6
21447 LIBS="$LTHREAD_LIBS $LIBS"
21448 if test $ol_cv_lib_db != yes ; then
21449 LIBS="$ol_cv_lib_db $LIBS"
21452 if test "$cross_compiling" = yes; then :
21453 ol_cv_berkeley_db_version=cross
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21458 #ifdef HAVE_DB_185_H
21463 #ifndef DB_VERSION_MAJOR
21464 # define DB_VERSION_MAJOR 1
21467 #define NULL ((void *)0)
21471 #if DB_VERSION_MAJOR > 1
21473 int major, minor, patch;
21475 version = db_version( &major, &minor, &patch );
21477 if( major != DB_VERSION_MAJOR ||
21478 minor != DB_VERSION_MINOR ||
21479 patch != DB_VERSION_PATCH )
21481 printf("Berkeley DB version mismatch\n"
21482 "\theader: %s\n\tlibrary: %s\n",
21483 DB_VERSION_STRING, version);
21491 if ac_fn_c_try_run "$LINENO"; then :
21492 ol_cv_berkeley_db_version=yes
21494 ol_cv_berkeley_db_version=no
21496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21497 conftest.$ac_objext conftest.beam conftest.$ac_ext
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21505 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21507 if test $ol_cv_berkeley_db_version = no ; then
21508 as_fn_error "Berkeley DB version mismatch" "$LINENO" 5
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21512 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21513 if test "${ol_cv_berkeley_db_thread+set}" = set; then :
21514 $as_echo_n "(cached) " >&6
21518 LIBS="$LTHREAD_LIBS $LIBS"
21519 if test $ol_cv_lib_db != yes ; then
21520 LIBS="$ol_cv_lib_db $LIBS"
21523 if test "$cross_compiling" = yes; then :
21524 ol_cv_berkeley_db_thread=cross
21526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21527 /* end confdefs.h. */
21529 #ifdef HAVE_DB_185_H
21535 #define NULL ((void *)0)
21540 u_int32_t flags = DB_CREATE |
21546 #if DB_VERSION_MAJOR > 2
21547 DB_ENV *env = NULL;
21549 rc = db_env_create( &env, 0 );
21551 flags |= DB_INIT_MPOOL;
21552 #ifdef DB_MPOOL_PRIVATE
21553 flags |= DB_MPOOL_PRIVATE;
21557 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21561 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21562 rc = (env->open)( env, NULL, flags, 0 );
21564 rc = (env->open)( env, NULL, NULL, flags, 0 );
21568 rc = env->close( env, 0 );
21572 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21578 memset( &env, '\0', sizeof(env) );
21580 rc = db_appinit( NULL, NULL, &env, flags );
21583 db_appexit( &env );
21586 unlink("__db_mpool.share");
21587 unlink("__db_lock.share");
21593 if ac_fn_c_try_run "$LINENO"; then :
21594 ol_cv_berkeley_db_thread=yes
21596 ol_cv_berkeley_db_thread=no
21598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21599 conftest.$ac_objext conftest.beam conftest.$ac_ext
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21607 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21609 if test $ol_cv_berkeley_db_thread != no ; then
21611 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21619 if test $ol_cv_berkeley_db = no ; then
21620 as_fn_error "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21624 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21627 if test $ol_cv_lib_db != yes ; then
21628 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21631 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21637 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21638 BUILD_LIBS_DYNAMIC=shared
21640 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21644 BUILD_LIBS_DYNAMIC=static
21648 if test $ol_enable_wrappers != no ; then
21649 for ac_header in tcpd.h
21651 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21652 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
21653 cat >>confdefs.h <<_ACEOF
21654 #define HAVE_TCPD_H 1
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21658 $as_echo_n "checking for TCP wrappers library... " >&6; }
21660 LIBS="$LIBS -lwrap"
21661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21662 /* end confdefs.h. */
21665 int allow_severity = 0;
21666 int deny_severity = 0;
21668 struct request_info *req;
21680 if ac_fn_c_try_link "$LINENO"; then :
21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21682 $as_echo "-lwrap" >&6; }
21688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21689 /* end confdefs.h. */
21692 int allow_severity = 0;
21693 int deny_severity = 0;
21695 struct request_info *req;
21707 if ac_fn_c_try_link "$LINENO"; then :
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21709 $as_echo "-lwrap -lnsl" >&6; }
21711 LIBS="$save_LIBS -lnsl"
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21715 $as_echo "no" >&6; }
21719 rm -f core conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext conftest.$ac_ext
21722 rm -f core conftest.err conftest.$ac_objext \
21723 conftest$ac_exeext conftest.$ac_ext
21731 if test $have_wrappers = yes ; then
21733 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21736 elif test $ol_enable_wrappers = yes ; then
21737 as_fn_error "could not find TCP wrappers, select appropriate options or disable" "$LINENO" 5
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21740 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21745 if test $ol_enable_syslog != no ; then
21746 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21747 if test "x$ac_cv_func_openlog" = x""yes; then :
21751 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21752 { as_fn_set_status select appropriate options or disable
21753 as_fn_error "could not find syslog" "$LINENO" 5; }
21755 ol_enable_syslog=$ac_cv_func_openlog
21759 if test $ol_enable_sql != no ; then
21760 for ac_header in sql.h sqlext.h
21762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21763 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21764 eval as_val=\$$as_ac_Header
21765 if test "x$as_val" = x""yes; then :
21766 cat >>confdefs.h <<_ACEOF
21767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21772 as_fn_error "could not locate SQL headers" "$LINENO" 5
21780 LIBS="$LTHREAD_LIBS $LIBS"
21782 if test $ol_with_odbc = auto ; then
21783 ol_with_odbc="iodbc unixodbc odbc32"
21786 for odbc in $ol_with_odbc ; do
21787 if test $ol_link_sql = no ; then
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21791 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21792 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then :
21793 $as_echo_n "(cached) " >&6
21795 ac_check_lib_save_LIBS=$LIBS
21796 LIBS="-liodbc $LIBS"
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21800 /* Override any GCC internal prototype to avoid an error.
21801 Use char because int might match the return type of a GCC
21802 builtin and then its argument prototype would still apply. */
21806 char SQLDriverConnect ();
21810 return SQLDriverConnect ();
21815 if ac_fn_c_try_link "$LINENO"; then :
21816 ac_cv_lib_iodbc_SQLDriverConnect=yes
21818 ac_cv_lib_iodbc_SQLDriverConnect=no
21820 rm -f core conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21822 LIBS=$ac_check_lib_save_LIBS
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21825 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21826 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = x""yes; then :
21832 if test $have_iodbc = yes ; then
21833 ol_link_sql="-liodbc"
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21839 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21840 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21843 ac_check_lib_save_LIBS=$LIBS
21844 LIBS="-lodbc $LIBS"
21845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21846 /* end confdefs.h. */
21848 /* Override any GCC internal prototype to avoid an error.
21849 Use char because int might match the return type of a GCC
21850 builtin and then its argument prototype would still apply. */
21854 char SQLDriverConnect ();
21858 return SQLDriverConnect ();
21863 if ac_fn_c_try_link "$LINENO"; then :
21864 ac_cv_lib_odbc_SQLDriverConnect=yes
21866 ac_cv_lib_odbc_SQLDriverConnect=no
21868 rm -f core conftest.err conftest.$ac_objext \
21869 conftest$ac_exeext conftest.$ac_ext
21870 LIBS=$ac_check_lib_save_LIBS
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21873 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21874 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = x""yes; then :
21880 if test $have_odbc = yes ; then
21881 ol_link_sql="-lodbc"
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21887 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21888 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then :
21889 $as_echo_n "(cached) " >&6
21891 ac_check_lib_save_LIBS=$LIBS
21892 LIBS="-lodbc32 $LIBS"
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894 /* end confdefs.h. */
21896 /* Override any GCC internal prototype to avoid an error.
21897 Use char because int might match the return type of a GCC
21898 builtin and then its argument prototype would still apply. */
21902 char SQLDriverConnect ();
21906 return SQLDriverConnect ();
21911 if ac_fn_c_try_link "$LINENO"; then :
21912 ac_cv_lib_odbc32_SQLDriverConnect=yes
21914 ac_cv_lib_odbc32_SQLDriverConnect=no
21916 rm -f core conftest.err conftest.$ac_objext \
21917 conftest$ac_exeext conftest.$ac_ext
21918 LIBS=$ac_check_lib_save_LIBS
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21921 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21922 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = x""yes; then :
21929 if test $have_odbc32 = no ; then
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21931 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21933 LIBS="$LIBS -lodbc32"
21934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21935 /* end confdefs.h. */
21936 #include <windows.h>
21937 #include <sqlext.h>
21943 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21949 if ac_fn_c_try_link "$LINENO"; then :
21954 rm -f core conftest.err conftest.$ac_objext \
21955 conftest$ac_exeext conftest.$ac_ext
21957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21958 $as_echo "$have_odbc32" >&6; }
21961 if test $have_odbc32 = yes ; then
21962 ol_link_sql="-lodbc32"
21967 as_fn_error "unknown ODBC library" "$LINENO" 5
21975 if test $ol_link_sql != no ; then
21976 SLAPD_SQL_LIBS="$ol_link_sql"
21978 elif test $ol_enable_sql != auto ; then
21979 as_fn_error "could not locate suitable ODBC library" "$LINENO" 5
21984 if test $ol_enable_ndb != no ; then
21985 # Extract the first word of "mysql_config", so it can be a program name with args.
21986 set dummy mysql_config; ac_word=$2
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21988 $as_echo_n "checking for $ac_word... " >&6; }
21989 if test "${ac_cv_prog_MYSQL+set}" = set; then :
21990 $as_echo_n "(cached) " >&6
21992 if test -n "$MYSQL"; then
21993 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21996 for as_dir in $PATH
21999 test -z "$as_dir" && as_dir=.
22000 for ac_exec_ext in '' $ac_executable_extensions; do
22001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22002 ac_cv_prog_MYSQL="yes"
22003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22012 MYSQL=$ac_cv_prog_MYSQL
22013 if test -n "$MYSQL"; then
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
22015 $as_echo "$MYSQL" >&6; }
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22022 if test "$MYSQL" != yes ; then
22023 as_fn_error "could not locate mysql_config" "$LINENO" 5
22026 SQL_INC=`mysql_config --include`
22027 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
22029 save_CPPFLAGS="$CPPFLAGS"
22030 CPPFLAGS="$SLAPD_NDB_INCS"
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
22032 $as_echo_n "checking for NdbApi.hpp... " >&6; }
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22035 #include <NdbApi.hpp>
22037 if ac_fn_c_try_cpp "$LINENO"; then :
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22039 $as_echo "yes" >&6; }
22041 as_fn_error "could not locate NdbApi headers" "$LINENO" 5
22044 rm -f conftest.err conftest.$ac_ext
22045 CPPFLAGS="$save_CPPFLAGS"
22047 SQL_LIB=`mysql_config --libs_r`
22048 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
22050 save_LDFLAGS="$LDFLAGS"
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
22054 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
22055 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then :
22056 $as_echo_n "(cached) " >&6
22058 ac_check_lib_save_LIBS=$LIBS
22059 LIBS="-lndbclient -lstdc++ $LIBS"
22060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22061 /* end confdefs.h. */
22063 /* Override any GCC internal prototype to avoid an error.
22064 Use char because int might match the return type of a GCC
22065 builtin and then its argument prototype would still apply. */
22073 return ndb_init ();
22078 if ac_fn_c_try_link "$LINENO"; then :
22079 ac_cv_lib_ndbclient_ndb_init=yes
22081 ac_cv_lib_ndbclient_ndb_init=no
22083 rm -f core conftest.err conftest.$ac_objext \
22084 conftest$ac_exeext conftest.$ac_ext
22085 LIBS=$ac_check_lib_save_LIBS
22087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
22088 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
22089 if test "x$ac_cv_lib_ndbclient_ndb_init" = x""yes; then :
22093 as_fn_error "could not locate ndbclient library" "$LINENO" 5
22098 LDFLAGS="$save_LDFLAGS"
22100 if test "$ol_enable_ndb" = yes ; then
22101 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
22106 if test $ol_enable_wt != no ; then
22107 # Extract the first word of "pkg-config", so it can be a program name with args.
22108 set dummy pkg-config; ac_word=$2
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22110 $as_echo_n "checking for $ac_word... " >&6; }
22111 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
22112 $as_echo_n "(cached) " >&6
22114 if test -n "$PKGCONFIG"; then
22115 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
22117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22118 for as_dir in $PATH
22121 test -z "$as_dir" && as_dir=.
22122 for ac_exec_ext in '' $ac_executable_extensions; do
22123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22124 ac_cv_prog_PKGCONFIG="yes"
22125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22134 PKGCONFIG=$ac_cv_prog_PKGCONFIG
22135 if test -n "$PKGCONFIG"; then
22136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22137 $as_echo "$PKGCONFIG" >&6; }
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22140 $as_echo "no" >&6; }
22144 if test "$PKGCONFIG" != yes ; then
22145 as_fn_error "could not locate pkg-config" "$LINENO" 5
22147 WT_INCS=`pkg-config --cflags wiredtiger`
22148 WT_LIBS=`pkg-config --libs wiredtiger`
22150 save_CFLAGS="$CFLAGS"
22151 save_LDFLAGS="$LDFLAGS"
22153 CPPFLAGS="$WT_INCS"
22155 for ac_header in wiredtiger.h
22157 ac_fn_c_check_header_mongrel "$LINENO" "wiredtiger.h" "ac_cv_header_wiredtiger_h" "$ac_includes_default"
22158 if test "x$ac_cv_header_wiredtiger_h" = x""yes; then :
22159 cat >>confdefs.h <<_ACEOF
22160 #define HAVE_WIREDTIGER_H 1
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiredtiger_version in -lwiredtiger" >&5
22168 $as_echo_n "checking for wiredtiger_version in -lwiredtiger... " >&6; }
22169 if test "${ac_cv_lib_wiredtiger_wiredtiger_version+set}" = set; then :
22170 $as_echo_n "(cached) " >&6
22172 ac_check_lib_save_LIBS=$LIBS
22173 LIBS="-lwiredtiger $LIBS"
22174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22175 /* end confdefs.h. */
22177 /* Override any GCC internal prototype to avoid an error.
22178 Use char because int might match the return type of a GCC
22179 builtin and then its argument prototype would still apply. */
22183 char wiredtiger_version ();
22187 return wiredtiger_version ();
22192 if ac_fn_c_try_link "$LINENO"; then :
22193 ac_cv_lib_wiredtiger_wiredtiger_version=yes
22195 ac_cv_lib_wiredtiger_wiredtiger_version=no
22197 rm -f core conftest.err conftest.$ac_objext \
22198 conftest$ac_exeext conftest.$ac_ext
22199 LIBS=$ac_check_lib_save_LIBS
22201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiredtiger_wiredtiger_version" >&5
22202 $as_echo "$ac_cv_lib_wiredtiger_wiredtiger_version" >&6; }
22203 if test "x$ac_cv_lib_wiredtiger_wiredtiger_version" = x""yes; then :
22207 as_fn_error "could not locate wiredtiger library" "$LINENO" 5
22211 CFLAGS="$save_CFLAGS"
22212 CPPFLAGS="$save_CPPFLAGS"
22213 LDFLAGS="$save_LDFLAGS"
22214 SLAPD_LIBS="$SLAPD_LIBS \$(WT_LIBS)"
22219 for ac_header in unicode/utypes.h
22221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22222 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22223 eval as_val=\$$as_ac_Header
22224 if test "x$as_val" = x""yes; then :
22225 cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22233 if test $ac_cv_header_unicode_utypes_h = yes ; then
22234 OL_ICULIBS="-licuuc -licudata"
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
22237 $as_echo_n "checking for ICU libraries... " >&6; }
22238 if test "${ol_cv_lib_icu+set}" = set; then :
22239 $as_echo_n "(cached) " >&6
22243 LIBS="$OL_ICULIBS $LIBS"
22244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22245 /* end confdefs.h. */
22247 #include <unicode/utypes.h>
22253 (void) u_errorName(0);
22259 if ac_fn_c_try_link "$LINENO"; then :
22264 rm -f core conftest.err conftest.$ac_objext \
22265 conftest$ac_exeext conftest.$ac_ext
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
22270 $as_echo "$ol_cv_lib_icu" >&6; }
22272 if test $ol_cv_lib_icu != no ; then
22273 ol_icu="$OL_ICULIBS"
22275 $as_echo "#define HAVE_ICU 1" >>confdefs.h
22280 if test "$ol_icu" = no ; then
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
22282 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22289 if test $ol_with_cyrus_sasl != no ; then
22290 for ac_header in sasl/sasl.h sasl.h
22292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22293 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22294 eval as_val=\$$as_ac_Header
22295 if test "x$as_val" = x""yes; then :
22296 cat >>confdefs.h <<_ACEOF
22297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22305 if test $ac_cv_header_sasl_sasl_h = yes ||
22306 test $ac_cv_header_sasl_h = yes; then
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22308 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22309 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then :
22310 $as_echo_n "(cached) " >&6
22312 ac_check_lib_save_LIBS=$LIBS
22313 LIBS="-lsasl2 $LIBS"
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22317 /* Override any GCC internal prototype to avoid an error.
22318 Use char because int might match the return type of a GCC
22319 builtin and then its argument prototype would still apply. */
22323 char sasl_client_init ();
22327 return sasl_client_init ();
22332 if ac_fn_c_try_link "$LINENO"; then :
22333 ac_cv_lib_sasl2_sasl_client_init=yes
22335 ac_cv_lib_sasl2_sasl_client_init=no
22337 rm -f core conftest.err conftest.$ac_objext \
22338 conftest$ac_exeext conftest.$ac_ext
22339 LIBS=$ac_check_lib_save_LIBS
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22342 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22343 if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then :
22344 ol_link_sasl="-lsasl2"
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22347 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22348 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then :
22349 $as_echo_n "(cached) " >&6
22351 ac_check_lib_save_LIBS=$LIBS
22352 LIBS="-lsasl $LIBS"
22353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22354 /* end confdefs.h. */
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22362 char sasl_client_init ();
22366 return sasl_client_init ();
22371 if ac_fn_c_try_link "$LINENO"; then :
22372 ac_cv_lib_sasl_sasl_client_init=yes
22374 ac_cv_lib_sasl_sasl_client_init=no
22376 rm -f core conftest.err conftest.$ac_objext \
22377 conftest$ac_exeext conftest.$ac_ext
22378 LIBS=$ac_check_lib_save_LIBS
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22381 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22382 if test "x$ac_cv_lib_sasl_sasl_client_init" = x""yes; then :
22383 ol_link_sasl="-lsasl"
22390 if test $ol_link_sasl = no ; then
22391 if test $ol_with_cyrus_sasl != auto ; then
22392 as_fn_error "Could not locate Cyrus SASL" "$LINENO" 5
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22395 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22397 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22398 if test $ol_link_tls = no ; then
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22400 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22405 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22406 if test "${ol_cv_sasl_compat+set}" = set; then :
22407 $as_echo_n "(cached) " >&6
22410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22411 /* end confdefs.h. */
22413 #ifdef HAVE_SASL_SASL_H
22414 #include <sasl/sasl.h>
22419 /* Require 2.1.15+ */
22420 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22421 char *__sasl_compat = "2.2+ or better okay (we guess)";
22422 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22423 && SASL_VERSION_STEP >=15
22424 char *__sasl_compat = "2.1.15+ or better okay";
22428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22429 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22430 ol_cv_sasl_compat=yes
22432 ol_cv_sasl_compat=no
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22438 $as_echo "$ol_cv_sasl_compat" >&6; }
22440 if test $ol_cv_sasl_compat = no ; then
22442 as_fn_error "Cyrus SASL library located but is incompatible" "$LINENO" 5
22446 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22448 SASL_LIBS="$ol_link_sasl"
22449 if test $ol_enable_spasswd != no ; then
22450 ol_link_spasswd=yes
22453 ac_save_LIBS="$LIBS"
22454 LIBS="$LIBS $ol_link_sasl"
22455 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22456 if test "x$ac_cv_func_sasl_version" = x""yes; then :
22458 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22462 LIBS="$ac_save_LIBS"
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22469 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22470 if test $ol_link_tls = no ; then
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22472 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22476 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22478 if test -r /dev/urandom ; then
22479 dev="/dev/urandom";
22480 elif test -r /idev/urandom ; then
22481 dev="/idev/urandom";
22482 elif test -r /dev/srandom ; then
22483 dev="/dev/srandom";
22484 elif test -r /dev/random ; then
22486 elif test -r /idev/random ; then
22487 dev="/idev/random";
22490 if test $dev != no ; then
22492 cat >>confdefs.h <<_ACEOF
22493 #define URANDOM_DEVICE "$dev"
22500 if test $ol_with_fetch != no ; then
22502 LIBS="-lfetch -lcom_err $LIBS"
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22504 $as_echo_n "checking fetch(3) library... " >&6; }
22505 if test "${ol_cv_lib_fetch+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510 /* end confdefs.h. */
22512 #ifdef HAVE_SYS_PARAM_H
22513 #include <sys/param.h>
22520 struct url *u = fetchParseURL("file:///");
22525 if ac_fn_c_try_link "$LINENO"; then :
22526 ol_cv_lib_fetch=yes
22530 rm -f core conftest.err conftest.$ac_objext \
22531 conftest$ac_exeext conftest.$ac_ext
22533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22534 $as_echo "$ol_cv_lib_fetch" >&6; }
22536 if test $ol_cv_lib_fetch != no ; then
22537 ol_link_fetch="-lfetch -lcom_err"
22539 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22544 if test $ol_cv_lib_fetch != no ; then
22545 LIBS="$LIBS $ol_link_fetch"
22546 ol_link_fetch=freebsd
22548 elif test $ol_with_fetch != auto ; then
22549 as_fn_error "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22553 if test $ol_enable_crypt != no ; then
22555 LIBS="$TLS_LIBS $LIBS"
22557 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22558 if test "x$ac_cv_func_crypt" = x""yes; then :
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22564 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22565 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22568 ac_check_lib_save_LIBS=$LIBS
22569 LIBS="-lcrypt $LIBS"
22570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22571 /* end confdefs.h. */
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22588 if ac_fn_c_try_link "$LINENO"; then :
22589 ac_cv_lib_crypt_crypt=yes
22591 ac_cv_lib_crypt_crypt=no
22593 rm -f core conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
22595 LIBS=$ac_check_lib_save_LIBS
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22598 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22599 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22600 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22609 LIBS="$TLS_LIBS $LIBS"
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt_r in -lcrypt" >&5
22611 $as_echo_n "checking for crypt_r in -lcrypt... " >&6; }
22612 if test "${ac_cv_lib_crypt_crypt_r+set}" = set; then :
22613 $as_echo_n "(cached) " >&6
22615 ac_check_lib_save_LIBS=$LIBS
22616 LIBS="-lcrypt $LIBS"
22617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618 /* end confdefs.h. */
22620 /* Override any GCC internal prototype to avoid an error.
22621 Use char because int might match the return type of a GCC
22622 builtin and then its argument prototype would still apply. */
22635 if ac_fn_c_try_link "$LINENO"; then :
22636 ac_cv_lib_crypt_crypt_r=yes
22638 ac_cv_lib_crypt_crypt_r=no
22640 rm -f core conftest.err conftest.$ac_objext \
22641 conftest$ac_exeext conftest.$ac_ext
22642 LIBS=$ac_check_lib_save_LIBS
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt_r" >&5
22645 $as_echo "$ac_cv_lib_crypt_crypt_r" >&6; }
22646 if test "x$ac_cv_lib_crypt_crypt_r" = x""yes; then :
22655 if test $have_crypt = yes ; then
22657 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22659 if test $have_crypt_r = yes ; then
22661 $as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22666 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22667 if test $ol_enable_crypt = yes ; then
22668 as_fn_error "could not find crypt, select appropriate options or disable" "$LINENO" 5
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22672 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22677 if test $ol_enable_proctitle != no ; then
22678 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22679 if test "x$ac_cv_func_setproctitle" = x""yes; then :
22680 have_setproctitle=yes
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22684 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22685 if test "${ac_cv_lib_util_setproctitle+set}" = set; then :
22686 $as_echo_n "(cached) " >&6
22688 ac_check_lib_save_LIBS=$LIBS
22689 LIBS="-lutil $LIBS"
22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691 /* end confdefs.h. */
22693 /* Override any GCC internal prototype to avoid an error.
22694 Use char because int might match the return type of a GCC
22695 builtin and then its argument prototype would still apply. */
22699 char setproctitle ();
22703 return setproctitle ();
22708 if ac_fn_c_try_link "$LINENO"; then :
22709 ac_cv_lib_util_setproctitle=yes
22711 ac_cv_lib_util_setproctitle=no
22713 rm -f core conftest.err conftest.$ac_objext \
22714 conftest$ac_exeext conftest.$ac_ext
22715 LIBS=$ac_check_lib_save_LIBS
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22718 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22719 if test "x$ac_cv_lib_util_setproctitle" = x""yes; then :
22720 have_setproctitle=yes
22721 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22723 have_setproctitle=no
22724 case " $LIBOBJS " in
22725 *" setproctitle.$ac_objext "* ) ;;
22726 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22730 LIBSRCS="$LIBSRCS setproctitle.c"
22736 if test $have_setproctitle = yes ; then
22738 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22743 if test $ol_enable_slp != no ; then
22744 for ac_header in slp.h
22746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22748 eval as_val=\$$as_ac_Header
22749 if test "x$as_val" = x""yes; then :
22750 cat >>confdefs.h <<_ACEOF
22751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22759 if test $ac_cv_header_slp_h = yes ; then
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22761 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22762 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
22763 $as_echo_n "(cached) " >&6
22765 ac_check_lib_save_LIBS=$LIBS
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22770 /* Override any GCC internal prototype to avoid an error.
22771 Use char because int might match the return type of a GCC
22772 builtin and then its argument prototype would still apply. */
22785 if ac_fn_c_try_link "$LINENO"; then :
22786 ac_cv_lib_slp_SLPOpen=yes
22788 ac_cv_lib_slp_SLPOpen=no
22790 rm -f core conftest.err conftest.$ac_objext \
22791 conftest$ac_exeext conftest.$ac_ext
22792 LIBS=$ac_check_lib_save_LIBS
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22795 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22796 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
22802 if test $have_slp = yes ; then
22804 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22806 SLAPD_SLP_LIBS=-lslp
22809 elif test $ol_enable_slp = yes ; then
22810 as_fn_error "SLP not found" "$LINENO" 5
22815 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22816 if test "x$ac_cv_type_mode_t" = x""yes; then :
22820 cat >>confdefs.h <<_ACEOF
22826 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22827 if test "x$ac_cv_type_off_t" = x""yes; then :
22831 cat >>confdefs.h <<_ACEOF
22837 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22838 if test "x$ac_cv_type_pid_t" = x""yes; then :
22842 cat >>confdefs.h <<_ACEOF
22848 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22849 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22853 cat >>confdefs.h <<_ACEOF
22854 #define ssize_t signed int
22859 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22860 if test "x$ac_cv_type_caddr_t" = x""yes; then :
22864 cat >>confdefs.h <<_ACEOF
22865 #define caddr_t char *
22870 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22871 if test "x$ac_cv_type_size_t" = x""yes; then :
22875 cat >>confdefs.h <<_ACEOF
22876 #define size_t unsigned
22882 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22883 if test "x$ac_cv_type_long_long" = x""yes; then :
22885 cat >>confdefs.h <<_ACEOF
22886 #define HAVE_LONG_LONG 1
22892 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22893 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
22895 cat >>confdefs.h <<_ACEOF
22896 #define HAVE_PTRDIFF_T 1
22904 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22905 #ifdef HAVE_SYS_SOCKET_H
22906 #include <sys/socket.h>
22909 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22915 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22916 if test "${ol_cv_type_ber_socklen_t+set}" = set; then :
22917 $as_echo_n "(cached) " >&6
22920 set socklen_t int unsigned "unsigned long" long size_t
22921 test "$ac_cv_type_socklen_t" = yes || shift
22922 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22923 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22925 /* end confdefs.h. */
22926 $ac_includes_default
22927 #ifdef HAVE_SYS_SOCKET_H
22928 #include <sys/socket.h>
22930 extern int accept(int s, $addrtype *ap, $lentype *lp);
22936 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22942 if ac_fn_c_try_compile "$LINENO"; then :
22943 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22950 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22952 cat >>confdefs.h <<_ACEOF
22953 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22957 if test "$ac_cv_type_socklen_t" != yes; then
22959 cat >>confdefs.h <<_ACEOF
22960 #define socklen_t $ol_cv_type_ber_socklen_t
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22967 $as_echo_n "checking return type of signal handlers... " >&6; }
22968 if test "${ac_cv_type_signal+set}" = set; then :
22969 $as_echo_n "(cached) " >&6
22971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h. */
22973 #include <sys/types.h>
22974 #include <signal.h>
22979 return *(signal (0, 0)) (0) == 1;
22984 if ac_fn_c_try_compile "$LINENO"; then :
22985 ac_cv_type_signal=int
22987 ac_cv_type_signal=void
22989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22992 $as_echo "$ac_cv_type_signal" >&6; }
22994 cat >>confdefs.h <<_ACEOF
22995 #define RETSIGTYPE $ac_cv_type_signal
23000 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
23001 #include <signal.h>
23004 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
23008 cat >>confdefs.h <<_ACEOF
23009 #define sig_atomic_t int
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23016 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23017 if test "${ac_cv_type_uid_t+set}" = set; then :
23018 $as_echo_n "(cached) " >&6
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h. */
23022 #include <sys/types.h>
23025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23026 $EGREP "uid_t" >/dev/null 2>&1; then :
23027 ac_cv_type_uid_t=yes
23029 ac_cv_type_uid_t=no
23034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23035 $as_echo "$ac_cv_type_uid_t" >&6; }
23036 if test $ac_cv_type_uid_t = no; then
23038 $as_echo "#define uid_t int" >>confdefs.h
23041 $as_echo "#define gid_t int" >>confdefs.h
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23047 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23048 if test "${ac_cv_header_time+set}" = set; then :
23049 $as_echo_n "(cached) " >&6
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23053 #include <sys/types.h>
23054 #include <sys/time.h>
23060 if ((struct tm *) 0)
23066 if ac_fn_c_try_compile "$LINENO"; then :
23067 ac_cv_header_time=yes
23069 ac_cv_header_time=no
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23074 $as_echo "$ac_cv_header_time" >&6; }
23075 if test $ac_cv_header_time = yes; then
23077 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23082 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23083 if test "${ac_cv_struct_tm+set}" = set; then :
23084 $as_echo_n "(cached) " >&6
23086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087 /* end confdefs.h. */
23088 #include <sys/types.h>
23095 int *p = &tm.tm_sec;
23101 if ac_fn_c_try_compile "$LINENO"; then :
23102 ac_cv_struct_tm=time.h
23104 ac_cv_struct_tm=sys/time.h
23106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23109 $as_echo "$ac_cv_struct_tm" >&6; }
23110 if test $ac_cv_struct_tm = sys/time.h; then
23112 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23116 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
23117 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
23119 cat >>confdefs.h <<_ACEOF
23120 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23126 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
23129 if test "x$ac_cv_member_struct_passwd_pw_gecos" = x""yes; then :
23131 cat >>confdefs.h <<_ACEOF
23132 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
23138 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
23141 if test "x$ac_cv_member_struct_passwd_pw_passwd" = x""yes; then :
23143 cat >>confdefs.h <<_ACEOF
23144 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
23151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
23152 $as_echo_n "checking if toupper() requires islower()... " >&6; }
23153 if test "${ol_cv_c_upper_lower+set}" = set; then :
23154 $as_echo_n "(cached) " >&6
23157 if test "$cross_compiling" = yes; then :
23158 ol_cv_c_upper_lower=safe
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23166 if ('C' == toupper('C'))
23172 if ac_fn_c_try_run "$LINENO"; then :
23173 ol_cv_c_upper_lower=no
23175 ol_cv_c_upper_lower=yes
23177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23178 conftest.$ac_objext conftest.beam conftest.$ac_ext
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
23183 $as_echo "$ol_cv_c_upper_lower" >&6; }
23184 if test $ol_cv_c_upper_lower != no ; then
23186 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23191 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23192 if test "${ac_cv_c_const+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h. */
23201 /* FIXME: Include the comments suggested by Paul. */
23202 #ifndef __cplusplus
23203 /* Ultrix mips cc rejects this. */
23204 typedef int charset[2];
23206 /* SunOS 4.1.1 cc rejects this. */
23207 char const *const *pcpcc;
23209 /* NEC SVR4.0.2 mips cc rejects this. */
23210 struct point {int x, y;};
23211 static struct point const zero = {0,0};
23212 /* AIX XL C 1.02.0.0 rejects this.
23213 It does not let you subtract one const X* pointer from another in
23214 an arm of an if-expression whose if-part is not a constant
23216 const char *g = "string";
23217 pcpcc = &g + (g ? g-g : 0);
23218 /* HPUX 7.0 cc rejects these. */
23220 ppc = (char**) pcpcc;
23221 pcpcc = (char const *const *) ppc;
23222 { /* SCO 3.2v4 cc rejects this. */
23224 char const *s = 0 ? (char *) 0 : (char const *) 0;
23229 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23230 int x[] = {25, 17};
23231 const int *foo = &x[0];
23234 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23235 typedef const int *iptr;
23239 { /* AIX XL C 1.02.0.0 rejects this saying
23240 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23241 struct s { int j; const int *ap[3]; };
23242 struct s *b; b->j = 5;
23244 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23245 const int foo = 10;
23246 if (!foo) return 0;
23248 return !cs[0] && !zero.x;
23255 if ac_fn_c_try_compile "$LINENO"; then :
23260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23263 $as_echo "$ac_cv_c_const" >&6; }
23264 if test $ac_cv_c_const = no; then
23266 $as_echo "#define const /**/" >>confdefs.h
23270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
23271 $as_echo_n "checking if compiler understands volatile... " >&6; }
23272 if test "${ol_cv_c_volatile+set}" = set; then :
23273 $as_echo_n "(cached) " >&6
23275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23276 /* end confdefs.h. */
23281 volatile int a; int * volatile b = x ? &y : &z;
23282 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23288 if ac_fn_c_try_compile "$LINENO"; then :
23289 ol_cv_c_volatile=yes
23291 ol_cv_c_volatile=no
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
23296 $as_echo "$ol_cv_c_volatile" >&6; }
23297 if test $ol_cv_c_volatile = yes; then
23301 $as_echo "#define volatile /**/" >>confdefs.h
23306 if test $cross_compiling = yes ; then
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23308 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23310 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23314 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23315 if test "${ac_cv_c_bigendian+set}" = set; then :
23316 $as_echo_n "(cached) " >&6
23318 ac_cv_c_bigendian=unknown
23319 # See if we're dealing with a universal compiler.
23320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23321 /* end confdefs.h. */
23322 #ifndef __APPLE_CC__
23323 not a universal capable compiler
23328 if ac_fn_c_try_compile "$LINENO"; then :
23330 # Check for potential -arch flags. It is not universal unless
23331 # there are at least two -arch flags with different values.
23334 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23335 if test -n "$ac_prev"; then
23337 i?86 | x86_64 | ppc | ppc64)
23338 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23341 ac_cv_c_bigendian=universal
23347 elif test "x$ac_word" = "x-arch"; then
23352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23353 if test $ac_cv_c_bigendian = unknown; then
23354 # See if sys/param.h defines the BYTE_ORDER macro.
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23357 #include <sys/types.h>
23358 #include <sys/param.h>
23363 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23364 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23366 bogus endian macros
23373 if ac_fn_c_try_compile "$LINENO"; then :
23374 # It does; now see whether it defined to BIG_ENDIAN or not.
23375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23376 /* end confdefs.h. */
23377 #include <sys/types.h>
23378 #include <sys/param.h>
23383 #if BYTE_ORDER != BIG_ENDIAN
23391 if ac_fn_c_try_compile "$LINENO"; then :
23392 ac_cv_c_bigendian=yes
23394 ac_cv_c_bigendian=no
23396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23400 if test $ac_cv_c_bigendian = unknown; then
23401 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23403 /* end confdefs.h. */
23404 #include <limits.h>
23409 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23410 bogus endian macros
23417 if ac_fn_c_try_compile "$LINENO"; then :
23418 # It does; now see whether it defined to _BIG_ENDIAN or not.
23419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23420 /* end confdefs.h. */
23421 #include <limits.h>
23426 #ifndef _BIG_ENDIAN
23434 if ac_fn_c_try_compile "$LINENO"; then :
23435 ac_cv_c_bigendian=yes
23437 ac_cv_c_bigendian=no
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23443 if test $ac_cv_c_bigendian = unknown; then
23444 # Compile a test program.
23445 if test "$cross_compiling" = yes; then :
23446 # Try to guess by grepping values from an object file.
23447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23448 /* end confdefs.h. */
23449 short int ascii_mm[] =
23450 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23451 short int ascii_ii[] =
23452 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23453 int use_ascii (int i) {
23454 return ascii_mm[i] + ascii_ii[i];
23456 short int ebcdic_ii[] =
23457 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23458 short int ebcdic_mm[] =
23459 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23460 int use_ebcdic (int i) {
23461 return ebcdic_mm[i] + ebcdic_ii[i];
23468 return use_ascii (foo) == use_ebcdic (foo);
23473 if ac_fn_c_try_compile "$LINENO"; then :
23474 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23475 ac_cv_c_bigendian=yes
23477 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23478 if test "$ac_cv_c_bigendian" = unknown; then
23479 ac_cv_c_bigendian=no
23481 # finding both strings is unlikely to happen, but who knows?
23482 ac_cv_c_bigendian=unknown
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23489 /* end confdefs.h. */
23490 $ac_includes_default
23495 /* Are we little or big endian? From Harbison&Steele. */
23499 char c[sizeof (long int)];
23502 return u.c[sizeof (long int) - 1] == 1;
23508 if ac_fn_c_try_run "$LINENO"; then :
23509 ac_cv_c_bigendian=no
23511 ac_cv_c_bigendian=yes
23513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23514 conftest.$ac_objext conftest.beam conftest.$ac_ext
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23520 $as_echo "$ac_cv_c_bigendian" >&6; }
23521 case $ac_cv_c_bigendian in #(
23523 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23529 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23533 as_fn_error "unknown endianness
23534 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23539 # The cast to long int works around a bug in the HP C Compiler
23540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23542 # This bug is HP SR number 8606223364.
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23544 $as_echo_n "checking size of short... " >&6; }
23545 if test "${ac_cv_sizeof_short+set}" = set; then :
23546 $as_echo_n "(cached) " >&6
23548 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23551 if test "$ac_cv_type_short" = yes; then
23552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23554 { as_fn_set_status 77
23555 as_fn_error "cannot compute sizeof (short)
23556 See \`config.log' for more details." "$LINENO" 5; }; }
23558 ac_cv_sizeof_short=0
23563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23564 $as_echo "$ac_cv_sizeof_short" >&6; }
23568 cat >>confdefs.h <<_ACEOF
23569 #define SIZEOF_SHORT $ac_cv_sizeof_short
23573 # The cast to long int works around a bug in the HP C Compiler
23574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23576 # This bug is HP SR number 8606223364.
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23578 $as_echo_n "checking size of int... " >&6; }
23579 if test "${ac_cv_sizeof_int+set}" = set; then :
23580 $as_echo_n "(cached) " >&6
23582 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23585 if test "$ac_cv_type_int" = yes; then
23586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23588 { as_fn_set_status 77
23589 as_fn_error "cannot compute sizeof (int)
23590 See \`config.log' for more details." "$LINENO" 5; }; }
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23598 $as_echo "$ac_cv_sizeof_int" >&6; }
23602 cat >>confdefs.h <<_ACEOF
23603 #define SIZEOF_INT $ac_cv_sizeof_int
23607 # The cast to long int works around a bug in the HP C Compiler
23608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23609 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23610 # This bug is HP SR number 8606223364.
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23612 $as_echo_n "checking size of long... " >&6; }
23613 if test "${ac_cv_sizeof_long+set}" = set; then :
23614 $as_echo_n "(cached) " >&6
23616 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23619 if test "$ac_cv_type_long" = yes; then
23620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23622 { as_fn_set_status 77
23623 as_fn_error "cannot compute sizeof (long)
23624 See \`config.log' for more details." "$LINENO" 5; }; }
23626 ac_cv_sizeof_long=0
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23632 $as_echo "$ac_cv_sizeof_long" >&6; }
23636 cat >>confdefs.h <<_ACEOF
23637 #define SIZEOF_LONG $ac_cv_sizeof_long
23641 # The cast to long int works around a bug in the HP C Compiler
23642 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23643 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23644 # This bug is HP SR number 8606223364.
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23646 $as_echo_n "checking size of long long... " >&6; }
23647 if test "${ac_cv_sizeof_long_long+set}" = set; then :
23648 $as_echo_n "(cached) " >&6
23650 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23653 if test "$ac_cv_type_long_long" = yes; then
23654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23656 { as_fn_set_status 77
23657 as_fn_error "cannot compute sizeof (long long)
23658 See \`config.log' for more details." "$LINENO" 5; }; }
23660 ac_cv_sizeof_long_long=0
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23666 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23670 cat >>confdefs.h <<_ACEOF
23671 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23675 # The cast to long int works around a bug in the HP C Compiler
23676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23678 # This bug is HP SR number 8606223364.
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23680 $as_echo_n "checking size of wchar_t... " >&6; }
23681 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
23682 $as_echo_n "(cached) " >&6
23684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23687 if test "$ac_cv_type_wchar_t" = yes; then
23688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23690 { as_fn_set_status 77
23691 as_fn_error "cannot compute sizeof (wchar_t)
23692 See \`config.log' for more details." "$LINENO" 5; }; }
23694 ac_cv_sizeof_wchar_t=0
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23700 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23704 cat >>confdefs.h <<_ACEOF
23705 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23710 if test "$ac_cv_sizeof_int" -lt 4 ; then
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23712 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23715 $as_echo "#define LBER_INT_T long" >>confdefs.h
23719 $as_echo "#define LBER_INT_T int" >>confdefs.h
23724 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23727 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23730 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23733 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23734 if test $ac_cv_sizeof_long_long -gt 4 ; then
23735 ol_with_mp=longlong
23737 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23739 elif test $ol_with_mp = longlong ; then
23740 as_fn_error "long long unusable for multiple precision" "$LINENO" 5
23743 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23744 if test $ac_cv_sizeof_long -gt 4 ; then
23747 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23749 elif test $ol_with_mp = long ; then
23750 as_fn_error "long unusable for multiple precision" "$LINENO" 5
23753 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23754 for ac_header in openssl/bn.h
23756 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23757 if test "x$ac_cv_header_openssl_bn_h" = x""yes; then :
23758 cat >>confdefs.h <<_ACEOF
23759 #define HAVE_OPENSSL_BN_H 1
23766 for ac_header in openssl/crypto.h
23768 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23769 if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
23770 cat >>confdefs.h <<_ACEOF
23771 #define HAVE_OPENSSL_CRYPTO_H 1
23778 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23779 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23780 test "$ol_with_tls" = "found" ; then
23783 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23785 elif test $ol_with_mp = bignum ; then
23786 as_fn_error "bignum not available" "$LINENO" 5
23789 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23790 for ac_header in gmp.h
23792 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23793 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23794 cat >>confdefs.h <<_ACEOF
23795 #define HAVE_GMP_H 1
23802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23803 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23804 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then :
23805 $as_echo_n "(cached) " >&6
23807 ac_check_lib_save_LIBS=$LIBS
23809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23810 /* end confdefs.h. */
23812 /* Override any GCC internal prototype to avoid an error.
23813 Use char because int might match the return type of a GCC
23814 builtin and then its argument prototype would still apply. */
23818 char __gmpz_add_ui ();
23822 return __gmpz_add_ui ();
23827 if ac_fn_c_try_link "$LINENO"; then :
23828 ac_cv_lib_gmp___gmpz_add_ui=yes
23830 ac_cv_lib_gmp___gmpz_add_ui=no
23832 rm -f core conftest.err conftest.$ac_objext \
23833 conftest$ac_exeext conftest.$ac_ext
23834 LIBS=$ac_check_lib_save_LIBS
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23837 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23838 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = x""yes; then :
23839 cat >>confdefs.h <<_ACEOF
23840 #define HAVE_LIBGMP 1
23847 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23849 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23852 elif test $ol_with_mp = gmp ; then
23853 as_fn_error "gmp not available" "$LINENO" 5
23856 if test $ol_with_mp = auto ; then
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23861 $as_echo_n "checking for working memcmp... " >&6; }
23862 if test "${ac_cv_func_memcmp_working+set}" = set; then :
23863 $as_echo_n "(cached) " >&6
23865 if test "$cross_compiling" = yes; then :
23866 ac_cv_func_memcmp_working=no
23868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23869 /* end confdefs.h. */
23870 $ac_includes_default
23875 /* Some versions of memcmp are not 8-bit clean. */
23876 char c0 = '\100', c1 = '\200', c2 = '\201';
23877 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23880 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23881 or more and with at least one buffer not starting on a 4-byte boundary.
23882 William Lewis provided this test program. */
23887 for (i = 0; i < 4; i++)
23891 strcpy (a, "--------01111111");
23892 strcpy (b, "--------10000000");
23893 if (memcmp (a, b, 16) >= 0)
23903 if ac_fn_c_try_run "$LINENO"; then :
23904 ac_cv_func_memcmp_working=yes
23906 ac_cv_func_memcmp_working=no
23908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23909 conftest.$ac_objext conftest.beam conftest.$ac_ext
23913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23914 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23915 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23916 *" memcmp.$ac_objext "* ) ;;
23917 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23923 if test $ac_cv_func_memcmp_working = no ; then
23925 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23929 for ac_func in strftime
23931 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23932 if test "x$ac_cv_func_strftime" = x""yes; then :
23933 cat >>confdefs.h <<_ACEOF
23934 #define HAVE_STRFTIME 1
23938 # strftime is in -lintl on SCO UNIX.
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23940 $as_echo_n "checking for strftime in -lintl... " >&6; }
23941 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
23942 $as_echo_n "(cached) " >&6
23944 ac_check_lib_save_LIBS=$LIBS
23945 LIBS="-lintl $LIBS"
23946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23947 /* end confdefs.h. */
23949 /* Override any GCC internal prototype to avoid an error.
23950 Use char because int might match the return type of a GCC
23951 builtin and then its argument prototype would still apply. */
23959 return strftime ();
23964 if ac_fn_c_try_link "$LINENO"; then :
23965 ac_cv_lib_intl_strftime=yes
23967 ac_cv_lib_intl_strftime=no
23969 rm -f core conftest.err conftest.$ac_objext \
23970 conftest$ac_exeext conftest.$ac_ext
23971 LIBS=$ac_check_lib_save_LIBS
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23974 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23975 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
23976 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23978 LIBS="-lintl $LIBS"
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23986 $as_echo_n "checking for inet_aton()... " >&6; }
23987 if test "${ol_cv_func_inet_aton+set}" = set; then :
23988 $as_echo_n "(cached) " >&6
23990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23991 /* end confdefs.h. */
23993 #ifdef HAVE_SYS_TYPES_H
23994 # include <sys/types.h>
23996 #ifdef HAVE_SYS_SOCKET_H
23997 # include <sys/socket.h>
23998 # ifdef HAVE_SYS_SELECT_H
23999 # include <sys/select.h>
24001 # include <netinet/in.h>
24002 # ifdef HAVE_ARPA_INET_H
24003 # include <arpa/inet.h>
24011 int rc = inet_aton( "255.255.255.255", &in );
24016 if ac_fn_c_try_link "$LINENO"; then :
24017 ol_cv_func_inet_aton=yes
24019 ol_cv_func_inet_aton=no
24021 rm -f core conftest.err conftest.$ac_objext \
24022 conftest$ac_exeext conftest.$ac_ext
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
24025 $as_echo "$ol_cv_func_inet_aton" >&6; }
24026 if test $ol_cv_func_inet_aton != no; then
24028 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
24033 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
24034 if test "x$ac_cv_func__spawnlp" = x""yes; then :
24036 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
24041 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
24042 if test "x$ac_cv_func__snprintf" = x""yes; then :
24043 ac_cv_func_snprintf=yes
24045 $as_echo "#define snprintf _snprintf" >>confdefs.h
24051 for ac_func in vsnprintf _vsnprintf
24053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24055 eval as_val=\$$as_ac_var
24056 if test "x$as_val" = x""yes; then :
24057 cat >>confdefs.h <<_ACEOF
24058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24065 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
24066 ac_cv_func_vsnprintf=yes
24068 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
24072 for ac_func in vprintf
24074 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24075 if test "x$ac_cv_func_vprintf" = x""yes; then :
24076 cat >>confdefs.h <<_ACEOF
24077 #define HAVE_VPRINTF 1
24080 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24081 if test "x$ac_cv_func__doprnt" = x""yes; then :
24083 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24092 if test $ac_cv_func_vprintf = yes ; then
24093 for ac_func in snprintf vsnprintf
24095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24097 eval as_val=\$$as_ac_var
24098 if test "x$as_val" = x""yes; then :
24099 cat >>confdefs.h <<_ACEOF
24100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24168 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24169 eval as_val=\$$as_ac_var
24170 if test "x$as_val" = x""yes; then :
24171 cat >>confdefs.h <<_ACEOF
24172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24179 for ac_func in getopt getpeereid
24181 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24183 eval as_val=\$$as_ac_var
24184 if test "x$as_val" = x""yes; then :
24185 cat >>confdefs.h <<_ACEOF
24186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24190 case " $LIBOBJS " in
24191 *" $ac_func.$ac_objext "* ) ;;
24192 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24201 if test "$ac_cv_func_getopt" != yes; then
24202 LIBSRCS="$LIBSRCS getopt.c"
24205 if test "$ac_cv_func_getpeereid" != yes; then
24206 for ac_func in getpeerucred
24208 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24210 eval as_val=\$$as_ac_var
24211 if test "x$as_val" = x""yes; then :
24212 cat >>confdefs.h <<_ACEOF
24213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24219 if test "$ac_cv_func_getpeerucred" != yes ; then
24220 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
24221 #ifdef HAVE_SYS_SOCKET_H
24222 #include <sys/socket.h>
24225 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = x""yes; then :
24227 cat >>confdefs.h <<_ACEOF
24228 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
24234 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
24235 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
24236 #ifdef HAVE_SYS_SOCKET_H
24237 #include <sys/socket.h>
24240 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
24242 cat >>confdefs.h <<_ACEOF
24243 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
24250 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
24251 if test "x$ac_cv_member_struct_stat_st_fstype" = x""yes; then :
24253 cat >>confdefs.h <<_ACEOF
24254 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
24259 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
24260 if test "x$ac_cv_member_struct_stat_st_vfstype" = x""yes; then :
24262 cat >>confdefs.h <<_ACEOF
24263 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
24269 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
24270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24271 /* end confdefs.h. */
24272 struct stat st; char *ptr=st.st_fstype;
24274 if ac_fn_c_try_compile "$LINENO"; then :
24276 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
24280 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
24283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286 LIBSRCS="$LIBSRCS getpeereid.c"
24289 if test "$ac_cv_func_snprintf" != yes ||
24290 test "$ac_cv_func_vsnprintf" != yes; then
24291 if test "$ac_cv_func_snprintf" != yes; then
24293 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
24296 if test "$ac_cv_func_vsnprintf" != yes; then
24298 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24304 if test "$ol_enable_slapi" != no ; then
24305 for ac_header in ltdl.h
24307 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24308 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
24309 cat >>confdefs.h <<_ACEOF
24310 #define HAVE_LTDL_H 1
24318 if test $ac_cv_header_ltdl_h != yes ; then
24319 as_fn_error "could not locate <ltdl.h>" "$LINENO" 5
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24322 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24323 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
24324 $as_echo_n "(cached) " >&6
24326 ac_check_lib_save_LIBS=$LIBS
24327 LIBS="-lltdl $LIBS"
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329 /* end confdefs.h. */
24331 /* Override any GCC internal prototype to avoid an error.
24332 Use char because int might match the return type of a GCC
24333 builtin and then its argument prototype would still apply. */
24341 return lt_dlinit ();
24346 if ac_fn_c_try_link "$LINENO"; then :
24347 ac_cv_lib_ltdl_lt_dlinit=yes
24349 ac_cv_lib_ltdl_lt_dlinit=no
24351 rm -f core conftest.err conftest.$ac_objext \
24352 conftest$ac_exeext conftest.$ac_ext
24353 LIBS=$ac_check_lib_save_LIBS
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24356 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24357 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
24360 LIBSLAPI=slapi/libslapi.la
24362 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24366 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
24371 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24375 if test "$ol_enable_debug" != no ; then
24376 if test "$ol_enable_debug" = traditional; then
24378 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24382 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24385 if test "$ol_enable_syslog" = yes ; then
24387 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24390 if test "$ol_enable_proctitle" != no ; then
24392 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24395 if test "$ol_enable_referrals" != no ; then
24397 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24400 if test "$ol_enable_local" != no; then
24402 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24405 if test "$ol_link_ipv6" != no; then
24407 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24410 if test "$ol_enable_cleartext" != no ; then
24412 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24415 if test "$ol_enable_crypt" != no ; then
24417 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24420 if test "$ol_link_spasswd" != no ; then
24422 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24425 if test "$ol_enable_rlookups" != no ; then
24427 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24430 if test "$ol_enable_aci" != no ; then
24431 if test $ol_enable_dynacl = no ; then
24432 ol_enable_dynacl=yes
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24434 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24436 if test "$ol_enable_aci" = mod ; then
24437 MFLAG=SLAPD_MOD_DYNAMIC
24438 as_fn_error "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24440 MFLAG=SLAPD_MOD_STATIC
24442 WITH_ACI_ENABLED=$ol_enable_aci
24444 cat >>confdefs.h <<_ACEOF
24445 #define SLAPD_ACI_ENABLED $MFLAG
24449 WITH_ACI_ENABLED=no
24451 if test "$ol_enable_dynacl" != no ; then
24453 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24457 if test "$ol_link_modules" != no ; then
24459 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24462 SLAPD_MODULES_LDFLAGS="-dlopen self"
24466 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24469 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24472 if test "$ol_enable_monitor" != no ; then
24474 BUILD_MONITOR=$ol_enable_monitor
24475 if test "$ol_enable_monitor" = mod ; then
24476 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24477 MFLAG=SLAPD_MOD_DYNAMIC
24479 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24480 MFLAG=SLAPD_MOD_STATIC
24483 cat >>confdefs.h <<_ACEOF
24484 #define SLAPD_MONITOR $MFLAG
24489 if test "$ol_enable_bdb" != no ; then
24491 BUILD_BDB=$ol_enable_bdb
24492 if test "$ol_enable_bdb" = mod ; then
24493 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24494 MFLAG=SLAPD_MOD_DYNAMIC
24496 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24497 MFLAG=SLAPD_MOD_STATIC
24500 cat >>confdefs.h <<_ACEOF
24501 #define SLAPD_BDB $MFLAG
24506 if test "$ol_enable_dnssrv" != no ; then
24508 BUILD_DNSSRV=$ol_enable_dnssrv
24509 if test "$ol_enable_dnssrv" = mod ; then
24510 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24511 MFLAG=SLAPD_MOD_DYNAMIC
24513 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24514 MFLAG=SLAPD_MOD_STATIC
24517 cat >>confdefs.h <<_ACEOF
24518 #define SLAPD_DNSSRV $MFLAG
24523 if test "$ol_enable_hdb" != no ; then
24525 BUILD_HDB=$ol_enable_hdb
24526 if test "$ol_enable_hdb" = mod ; then
24527 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24528 MFLAG=SLAPD_MOD_DYNAMIC
24530 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24531 MFLAG=SLAPD_MOD_STATIC
24534 cat >>confdefs.h <<_ACEOF
24535 #define SLAPD_HDB $MFLAG
24540 if test "$ol_enable_ldap" != no ; then
24542 BUILD_LDAP=$ol_enable_ldap
24543 if test "$ol_enable_ldap" = mod ; then
24544 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24545 MFLAG=SLAPD_MOD_DYNAMIC
24547 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24548 MFLAG=SLAPD_MOD_STATIC
24551 cat >>confdefs.h <<_ACEOF
24552 #define SLAPD_LDAP $MFLAG
24557 if test "$ol_enable_mdb" != no ; then
24559 BUILD_MDB=$ol_enable_mdb
24560 if test "$ol_enable_mdb" = mod ; then
24561 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24562 MFLAG=SLAPD_MOD_DYNAMIC
24564 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24565 MFLAG=SLAPD_MOD_STATIC
24568 cat >>confdefs.h <<_ACEOF
24569 #define SLAPD_MDB $MFLAG
24574 if test "$ol_enable_meta" != no ; then
24576 BUILD_META=$ol_enable_meta
24578 if test "$ol_enable_meta" = mod ; then
24579 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24580 MFLAG=SLAPD_MOD_DYNAMIC
24582 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24583 MFLAG=SLAPD_MOD_STATIC
24586 cat >>confdefs.h <<_ACEOF
24587 #define SLAPD_META $MFLAG
24592 if test "$ol_enable_asyncmeta" != no ; then
24594 BUILD_ASYNCMETA=$ol_enable_asyncmeta
24596 if test "$ol_enable_asyncmeta" = mod ; then
24597 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-asyncmeta"
24598 MFLAG=SLAPD_MOD_DYNAMIC
24600 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-asyncmeta"
24601 MFLAG=SLAPD_MOD_STATIC
24604 cat >>confdefs.h <<_ACEOF
24605 #define SLAPD_ASYNCMETA $MFLAG
24610 if test "$ol_enable_ndb" != no ; then
24612 BUILD_NDB=$ol_enable_ndb
24613 if test "$ol_enable_ndb" = mod ; then
24614 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24615 MFLAG=SLAPD_MOD_DYNAMIC
24617 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24618 MFLAG=SLAPD_MOD_STATIC
24621 cat >>confdefs.h <<_ACEOF
24622 #define SLAPD_NDB $MFLAG
24627 if test "$ol_enable_null" != no ; then
24629 BUILD_NULL=$ol_enable_null
24630 if test "$ol_enable_null" = mod ; then
24631 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24632 MFLAG=SLAPD_MOD_DYNAMIC
24634 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24635 MFLAG=SLAPD_MOD_STATIC
24638 cat >>confdefs.h <<_ACEOF
24639 #define SLAPD_NULL $MFLAG
24644 if test "$ol_enable_passwd" != no ; then
24646 BUILD_PASSWD=$ol_enable_passwd
24647 if test "$ol_enable_passwd" = mod ; then
24648 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24649 MFLAG=SLAPD_MOD_DYNAMIC
24651 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24652 MFLAG=SLAPD_MOD_STATIC
24655 cat >>confdefs.h <<_ACEOF
24656 #define SLAPD_PASSWD $MFLAG
24661 if test "$ol_link_perl" != no ; then
24663 BUILD_PERL=$ol_enable_perl
24664 if test "$ol_enable_perl" = mod ; then
24665 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24666 MFLAG=SLAPD_MOD_DYNAMIC
24668 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24669 MFLAG=SLAPD_MOD_STATIC
24672 cat >>confdefs.h <<_ACEOF
24673 #define SLAPD_PERL $MFLAG
24678 if test "$ol_enable_relay" != no ; then
24680 BUILD_RELAY=$ol_enable_relay
24681 if test "$ol_enable_relay" = mod ; then
24682 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24683 MFLAG=SLAPD_MOD_DYNAMIC
24685 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24686 MFLAG=SLAPD_MOD_STATIC
24689 cat >>confdefs.h <<_ACEOF
24690 #define SLAPD_RELAY $MFLAG
24695 if test "$ol_enable_shell" != no ; then
24696 if test "$ol_link_threads" != no ; then
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24698 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24701 BUILD_SHELL=$ol_enable_shell
24702 if test "$ol_enable_shell" = mod ; then
24703 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24704 MFLAG=SLAPD_MOD_DYNAMIC
24706 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24707 MFLAG=SLAPD_MOD_STATIC
24710 cat >>confdefs.h <<_ACEOF
24711 #define SLAPD_SHELL $MFLAG
24716 if test "$ol_enable_sock" != no ; then
24718 BUILD_SOCK=$ol_enable_sock
24719 if test "$ol_enable_sock" = mod ; then
24720 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24721 MFLAG=SLAPD_MOD_DYNAMIC
24723 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24724 MFLAG=SLAPD_MOD_STATIC
24727 cat >>confdefs.h <<_ACEOF
24728 #define SLAPD_SOCK $MFLAG
24733 if test "$ol_link_sql" != no ; then
24735 BUILD_SQL=$ol_enable_sql
24736 if test "$ol_enable_sql" = mod; then
24737 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24738 MFLAG=SLAPD_MOD_DYNAMIC
24740 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24741 MFLAG=SLAPD_MOD_STATIC
24744 cat >>confdefs.h <<_ACEOF
24745 #define SLAPD_SQL $MFLAG
24750 if test "$ol_link_wt" != no ; then
24752 BUILD_WT=$ol_enable_wt
24753 if test "$ol_enable_wt" = mod; then
24754 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-wt"
24755 MFLAG=SLAPD_MOD_DYNAMIC
24757 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-wt"
24758 MFLAG=SLAPD_MOD_STATIC
24761 cat >>confdefs.h <<_ACEOF
24762 #define SLAPD_WT $MFLAG
24767 if test "$ol_enable_accesslog" != no ; then
24768 BUILD_ACCESSLOG=$ol_enable_accesslog
24769 if test "$ol_enable_accesslog" = mod ; then
24770 MFLAG=SLAPD_MOD_DYNAMIC
24771 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24773 MFLAG=SLAPD_MOD_STATIC
24774 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24777 cat >>confdefs.h <<_ACEOF
24778 #define SLAPD_OVER_ACCESSLOG $MFLAG
24783 if test "$ol_enable_auditlog" != no ; then
24784 BUILD_AUDITLOG=$ol_enable_auditlog
24785 if test "$ol_enable_auditlog" = mod ; then
24786 MFLAG=SLAPD_MOD_DYNAMIC
24787 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24789 MFLAG=SLAPD_MOD_STATIC
24790 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24793 cat >>confdefs.h <<_ACEOF
24794 #define SLAPD_OVER_AUDITLOG $MFLAG
24799 if test "$ol_enable_autoca" != no ; then
24800 BUILD_AUTOCA=$ol_enable_autoca
24801 if test "$ol_enable_autoca" = mod ; then
24802 MFLAG=SLAPD_MOD_DYNAMIC
24803 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS autoca.la"
24805 MFLAG=SLAPD_MOD_STATIC
24806 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS autoca.o"
24809 cat >>confdefs.h <<_ACEOF
24810 #define SLAPD_OVER_AUTOCA $MFLAG
24815 if test "$ol_enable_collect" != no ; then
24816 BUILD_COLLECT=$ol_enable_collect
24817 if test "$ol_enable_collect" = mod ; then
24818 MFLAG=SLAPD_MOD_DYNAMIC
24819 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24821 MFLAG=SLAPD_MOD_STATIC
24822 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24825 cat >>confdefs.h <<_ACEOF
24826 #define SLAPD_OVER_COLLECT $MFLAG
24831 if test "$ol_enable_constraint" != no ; then
24832 BUILD_CONSTRAINT=$ol_enable_constraint
24833 if test "$ol_enable_constraint" = mod ; then
24834 MFLAG=SLAPD_MOD_DYNAMIC
24835 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24837 MFLAG=SLAPD_MOD_STATIC
24838 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24841 cat >>confdefs.h <<_ACEOF
24842 #define SLAPD_OVER_CONSTRAINT $MFLAG
24847 if test "$ol_enable_dds" != no ; then
24848 BUILD_DDS=$ol_enable_dds
24849 if test "$ol_enable_dds" = mod ; then
24850 MFLAG=SLAPD_MOD_DYNAMIC
24851 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24853 MFLAG=SLAPD_MOD_STATIC
24854 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24857 cat >>confdefs.h <<_ACEOF
24858 #define SLAPD_OVER_DDS $MFLAG
24863 if test "$ol_enable_deref" != no ; then
24864 BUILD_DEREF=$ol_enable_deref
24865 if test "$ol_enable_deref" = mod ; then
24866 MFLAG=SLAPD_MOD_DYNAMIC
24867 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24869 MFLAG=SLAPD_MOD_STATIC
24870 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24873 cat >>confdefs.h <<_ACEOF
24874 #define SLAPD_OVER_DEREF $MFLAG
24879 if test "$ol_enable_dyngroup" != no ; then
24880 BUILD_DYNGROUP=$ol_enable_dyngroup
24881 if test "$ol_enable_dyngroup" = mod ; then
24882 MFLAG=SLAPD_MOD_DYNAMIC
24883 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24885 MFLAG=SLAPD_MOD_STATIC
24886 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24889 cat >>confdefs.h <<_ACEOF
24890 #define SLAPD_OVER_DYNGROUP $MFLAG
24895 if test "$ol_enable_dynlist" != no ; then
24896 BUILD_DYNLIST=$ol_enable_dynlist
24897 if test "$ol_enable_dynlist" = mod ; then
24898 MFLAG=SLAPD_MOD_DYNAMIC
24899 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24901 MFLAG=SLAPD_MOD_STATIC
24902 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24905 cat >>confdefs.h <<_ACEOF
24906 #define SLAPD_OVER_DYNLIST $MFLAG
24911 if test "$ol_enable_memberof" != no ; then
24912 BUILD_MEMBEROF=$ol_enable_memberof
24913 if test "$ol_enable_memberof" = mod ; then
24914 MFLAG=SLAPD_MOD_DYNAMIC
24915 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24917 MFLAG=SLAPD_MOD_STATIC
24918 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24921 cat >>confdefs.h <<_ACEOF
24922 #define SLAPD_OVER_MEMBEROF $MFLAG
24927 if test "$ol_enable_ppolicy" != no ; then
24928 BUILD_PPOLICY=$ol_enable_ppolicy
24929 if test "$ol_enable_ppolicy" = mod ; then
24930 MFLAG=SLAPD_MOD_DYNAMIC
24931 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24933 MFLAG=SLAPD_MOD_STATIC
24934 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24937 cat >>confdefs.h <<_ACEOF
24938 #define SLAPD_OVER_PPOLICY $MFLAG
24943 if test "$ol_enable_proxycache" != no ; then
24944 BUILD_PROXYCACHE=$ol_enable_proxycache
24945 if test "$ol_enable_proxycache" = mod ; then
24946 MFLAG=SLAPD_MOD_DYNAMIC
24947 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24949 MFLAG=SLAPD_MOD_STATIC
24950 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24953 cat >>confdefs.h <<_ACEOF
24954 #define SLAPD_OVER_PROXYCACHE $MFLAG
24959 if test "$ol_enable_refint" != no ; then
24960 BUILD_REFINT=$ol_enable_refint
24961 if test "$ol_enable_refint" = mod ; then
24962 MFLAG=SLAPD_MOD_DYNAMIC
24963 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24965 MFLAG=SLAPD_MOD_STATIC
24966 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24969 cat >>confdefs.h <<_ACEOF
24970 #define SLAPD_OVER_REFINT $MFLAG
24975 if test "$ol_enable_retcode" != no ; then
24976 BUILD_RETCODE=$ol_enable_retcode
24977 if test "$ol_enable_retcode" = mod ; then
24978 MFLAG=SLAPD_MOD_DYNAMIC
24979 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24981 MFLAG=SLAPD_MOD_STATIC
24982 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24985 cat >>confdefs.h <<_ACEOF
24986 #define SLAPD_OVER_RETCODE $MFLAG
24991 if test "$ol_enable_rwm" != no ; then
24993 BUILD_RWM=$ol_enable_rwm
24994 if test "$ol_enable_rwm" = mod ; then
24995 MFLAG=SLAPD_MOD_DYNAMIC
24996 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24998 MFLAG=SLAPD_MOD_STATIC
24999 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
25002 cat >>confdefs.h <<_ACEOF
25003 #define SLAPD_OVER_RWM $MFLAG
25008 if test "$ol_enable_seqmod" != no ; then
25009 BUILD_SEQMOD=$ol_enable_seqmod
25010 if test "$ol_enable_seqmod" = mod ; then
25011 MFLAG=SLAPD_MOD_DYNAMIC
25012 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
25014 MFLAG=SLAPD_MOD_STATIC
25015 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
25018 cat >>confdefs.h <<_ACEOF
25019 #define SLAPD_OVER_SEQMOD $MFLAG
25024 if test "$ol_enable_sssvlv" != no ; then
25025 BUILD_SSSVLV=$ol_enable_sssvlv
25026 if test "$ol_enable_sssvlv" = mod ; then
25027 MFLAG=SLAPD_MOD_DYNAMIC
25028 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
25030 MFLAG=SLAPD_MOD_STATIC
25031 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
25034 cat >>confdefs.h <<_ACEOF
25035 #define SLAPD_OVER_SSSVLV $MFLAG
25040 if test "$ol_enable_syncprov" != no ; then
25041 BUILD_SYNCPROV=$ol_enable_syncprov
25042 if test "$ol_enable_syncprov" = mod ; then
25043 MFLAG=SLAPD_MOD_DYNAMIC
25044 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25046 MFLAG=SLAPD_MOD_STATIC
25047 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
25050 cat >>confdefs.h <<_ACEOF
25051 #define SLAPD_OVER_SYNCPROV $MFLAG
25056 if test "$ol_enable_translucent" != no ; then
25057 BUILD_TRANSLUCENT=$ol_enable_translucent
25058 if test "$ol_enable_translucent" = mod ; then
25059 MFLAG=SLAPD_MOD_DYNAMIC
25060 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25062 MFLAG=SLAPD_MOD_STATIC
25063 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
25066 cat >>confdefs.h <<_ACEOF
25067 #define SLAPD_OVER_TRANSLUCENT $MFLAG
25072 if test "$ol_enable_unique" != no ; then
25073 BUILD_UNIQUE=$ol_enable_unique
25074 if test "$ol_enable_unique" = mod ; then
25075 MFLAG=SLAPD_MOD_DYNAMIC
25076 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25078 MFLAG=SLAPD_MOD_STATIC
25079 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
25082 cat >>confdefs.h <<_ACEOF
25083 #define SLAPD_OVER_UNIQUE $MFLAG
25088 if test "$ol_enable_valsort" != no ; then
25089 BUILD_VALSORT=$ol_enable_valsort
25090 if test "$ol_enable_valsort" = mod ; then
25091 MFLAG=SLAPD_MOD_DYNAMIC
25092 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
25094 MFLAG=SLAPD_MOD_STATIC
25095 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
25098 cat >>confdefs.h <<_ACEOF
25099 #define SLAPD_OVER_VALSORT $MFLAG
25104 if test "$ol_enable_rewrite" != no ; then
25106 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
25111 if test "$ol_enable_slapi" != no ; then
25113 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
25116 SLAPD_SLAPI_DEPEND=libslapi.a
25121 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
25123 SLAPD_MODULES_LDFLAGS=
25224 # Check whether --with-xxinstall was given.
25225 if test "${with_xxinstall+set}" = set; then :
25226 withval=$with_xxinstall;
25231 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-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/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-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/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/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/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"
25234 ac_config_commands="$ac_config_commands default"
25238 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25239 # Let make expand exec_prefix.
25240 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25242 DEFS=-DHAVE_CONFIG_H
25246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25247 # 1. Remove the extension, and $U if already installed.
25248 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25249 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25250 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25251 # will be set to the directory where LIBOBJS objects are built.
25252 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25253 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25255 LIBOBJS=$ac_libobjs
25257 LTLIBOBJS=$ac_ltlibobjs
25260 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25261 as_fn_error "conditional \"AMDEP\" was never defined.
25262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25264 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25265 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25268 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25269 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25274 : ${CONFIG_STATUS=./config.status}
25276 ac_clean_files_save=$ac_clean_files
25277 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25279 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25281 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25283 # Generated by $as_me.
25284 # Run this file to recreate the current configuration.
25285 # Compiler output produced by configure, useful for debugging
25286 # configure, is in config.log if it exists.
25289 ac_cs_recheck=false
25292 SHELL=\${CONFIG_SHELL-$SHELL}
25295 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25296 ## -------------------- ##
25297 ## M4sh Initialization. ##
25298 ## -------------------- ##
25300 # Be more Bourne compatible
25301 DUALCASE=1; export DUALCASE # for MKS sh
25302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25305 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25306 # is contrary to our usage. Disable this feature.
25307 alias -g '${1+"$@"}'='"$@"'
25308 setopt NO_GLOB_SUBST
25310 case `(set -o) 2>/dev/null` in #(
25322 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25323 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25325 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25326 # Prefer a ksh shell builtin over an external printf program on Solaris,
25327 # but without wasting forks for bash or zsh.
25328 if test -z "$BASH_VERSION$ZSH_VERSION" \
25329 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25330 as_echo='print -r --'
25331 as_echo_n='print -rn --'
25332 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25333 as_echo='printf %s\n'
25334 as_echo_n='printf %s'
25336 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25337 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25338 as_echo_n='/usr/ucb/echo -n'
25340 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25341 as_echo_n_body='eval
25345 expr "X$arg" : "X\\(.*\\)$as_nl";
25346 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25348 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25350 export as_echo_n_body
25351 as_echo_n='sh -c $as_echo_n_body as_echo'
25353 export as_echo_body
25354 as_echo='sh -c $as_echo_body as_echo'
25357 # The user is always right.
25358 if test "${PATH_SEPARATOR+set}" != set; then
25360 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25361 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25368 # We need space, tab and new line, in precisely that order. Quoting is
25369 # there to prevent editors from complaining about space-tab.
25370 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25371 # splitting by setting IFS to empty value.)
25374 # Find who we are. Look in the path if we contain no directory separator.
25376 *[\\/]* ) as_myself=$0 ;;
25377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25378 for as_dir in $PATH
25381 test -z "$as_dir" && as_dir=.
25382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25388 # We did not find ourselves, most probably we were run as `sh COMMAND'
25389 # in which case we are not to be found in the path.
25390 if test "x$as_myself" = x; then
25393 if test ! -f "$as_myself"; then
25394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25398 # Unset variables that we do not need and which cause bugs (e.g. in
25399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25400 # suppresses any "Segmentation fault" message there. '((' could
25401 # trigger a bug in pdksh 5.2.14.
25402 for as_var in BASH_ENV ENV MAIL MAILPATH
25403 do eval test x\${$as_var+set} = xset \
25404 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25417 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25420 # as_fn_error ERROR [LINENO LOG_FD]
25421 # ---------------------------------
25422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25424 # script with status $?, using 1 if that was 0.
25427 as_status=$?; test $as_status -eq 0 && as_status=1
25429 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25432 $as_echo "$as_me: error: $1" >&2
25433 as_fn_exit $as_status
25437 # as_fn_set_status STATUS
25438 # -----------------------
25439 # Set $? to STATUS, without forking.
25440 as_fn_set_status ()
25443 } # as_fn_set_status
25445 # as_fn_exit STATUS
25446 # -----------------
25447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25451 as_fn_set_status $1
25457 # Portably unset VAR.
25460 { eval $1=; unset $1;}
25462 as_unset=as_fn_unset
25463 # as_fn_append VAR VALUE
25464 # ----------------------
25465 # Append the text in VALUE to the end of the definition contained in VAR. Take
25466 # advantage of any shell optimizations that allow amortized linear growth over
25467 # repeated appends, instead of the typical quadratic growth present in naive
25469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25470 eval 'as_fn_append ()
25481 # as_fn_arith ARG...
25482 # ------------------
25483 # Perform arithmetic evaluation on the ARGs, and store the result in the
25484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25485 # must be portable across $(()) and expr.
25486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25487 eval 'as_fn_arith ()
25494 as_val=`expr "$@" || test $? -eq 1`
25499 if expr a : '\(a\)' >/dev/null 2>&1 &&
25500 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25506 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25507 as_basename=basename
25512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25518 as_me=`$as_basename -- "$0" ||
25519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25520 X"$0" : 'X\(//\)$' \| \
25521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25523 sed '/^.*\/\([^/][^/]*\)\/*$/{
25537 # Avoid depending upon Character Ranges.
25538 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25539 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25540 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25541 as_cr_digits='0123456789'
25542 as_cr_alnum=$as_cr_Letters$as_cr_digits
25544 ECHO_C= ECHO_N= ECHO_T=
25545 case `echo -n x` in #(((((
25547 case `echo 'xy\c'` in
25548 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25550 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25557 rm -f conf$$ conf$$.exe conf$$.file
25558 if test -d conf$$.dir; then
25559 rm -f conf$$.dir/conf$$.file
25562 mkdir conf$$.dir 2>/dev/null
25564 if (echo >conf$$.file) 2>/dev/null; then
25565 if ln -s conf$$.file conf$$ 2>/dev/null; then
25567 # ... but there are two gotchas:
25568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25570 # In both cases, we have to default to `cp -p'.
25571 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25573 elif ln conf$$.file conf$$ 2>/dev/null; then
25581 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25582 rmdir conf$$.dir 2>/dev/null
25587 # Create "$as_dir" as a directory, including parents if necessary.
25592 -*) as_dir=./$as_dir;;
25594 test -d "$as_dir" || eval $as_mkdir_p || {
25598 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25599 *) as_qdir=$as_dir;;
25601 as_dirs="'$as_qdir' $as_dirs"
25602 as_dir=`$as_dirname -- "$as_dir" ||
25603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25604 X"$as_dir" : 'X\(//\)[^/]' \| \
25605 X"$as_dir" : 'X\(//\)$' \| \
25606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25607 $as_echo X"$as_dir" |
25608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25612 /^X\(\/\/\)[^/].*/{
25625 test -d "$as_dir" && break
25627 test -z "$as_dirs" || eval "mkdir $as_dirs"
25628 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25632 if mkdir -p . 2>/dev/null; then
25633 as_mkdir_p='mkdir -p "$as_dir"'
25635 test -d ./-p && rmdir ./-p
25639 if test -x / >/dev/null 2>&1; then
25640 as_test_x='test -x'
25642 if ls -dL / >/dev/null 2>&1; then
25649 if test -d "$1"; then
25655 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25656 ???[sx]*):;;*)false;;esac;fi
25660 as_executable_p=$as_test_x
25662 # Sed expression to map a string onto a valid CPP name.
25663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25665 # Sed expression to map a string onto a valid variable name.
25666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25670 ## ----------------------------------- ##
25671 ## Main body of $CONFIG_STATUS script. ##
25672 ## ----------------------------------- ##
25674 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25677 # Save the log message, to keep $0 and so on meaningful, and to
25678 # report actual input values of CONFIG_FILES etc. instead of their
25679 # values after options handling.
25681 This file was extended by $as_me, which was
25682 generated by GNU Autoconf 2.65. Invocation command line was
25684 CONFIG_FILES = $CONFIG_FILES
25685 CONFIG_HEADERS = $CONFIG_HEADERS
25686 CONFIG_LINKS = $CONFIG_LINKS
25687 CONFIG_COMMANDS = $CONFIG_COMMANDS
25690 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25695 case $ac_config_files in *"
25696 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25699 case $ac_config_headers in *"
25700 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25705 # Files that config.status was made for.
25706 config_files="$ac_config_files"
25707 config_headers="$ac_config_headers"
25708 config_commands="$ac_config_commands"
25712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25714 \`$as_me' instantiates files and other configuration actions
25715 from templates according to the current configuration. Unless the files
25716 and actions are specified as TAGs, all are instantiated by default.
25718 Usage: $0 [OPTION]... [TAG]...
25720 -h, --help print this help, then exit
25721 -V, --version print version number and configuration settings, then exit
25722 --config print configuration, then exit
25723 -q, --quiet, --silent
25724 do not print progress messages
25725 -d, --debug don't remove temporary files
25726 --recheck update $as_me by reconfiguring in the same conditions
25727 --file=FILE[:TEMPLATE]
25728 instantiate the configuration file FILE
25729 --header=FILE[:TEMPLATE]
25730 instantiate the configuration header FILE
25732 Configuration files:
25735 Configuration headers:
25738 Configuration commands:
25741 Report bugs to <<http://www.openldap.org/its/>>."
25744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25745 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25748 configured by $0, generated by GNU Autoconf 2.65,
25749 with options \\"\$ac_cs_config\\"
25751 Copyright (C) 2009 Free Software Foundation, Inc.
25752 This config.status script is free software; the Free Software Foundation
25753 gives unlimited permission to copy, distribute and modify it."
25759 test -n "\$AWK" || AWK=awk
25762 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25763 # The default lists apply if the user does not specify any file.
25769 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25770 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25781 # Handling of the options.
25782 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25784 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25785 $as_echo "$ac_cs_version"; exit ;;
25786 --config | --confi | --conf | --con | --co | --c )
25787 $as_echo "$ac_cs_config"; exit ;;
25788 --debug | --debu | --deb | --de | --d | -d )
25790 --file | --fil | --fi | --f )
25793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25795 as_fn_append CONFIG_FILES " '$ac_optarg'"
25796 ac_need_defaults=false;;
25797 --header | --heade | --head | --hea )
25800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25802 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25803 ac_need_defaults=false;;
25805 # Conflict between --help and --header
25806 as_fn_error "ambiguous option: \`$1'
25807 Try \`$0 --help' for more information.";;
25808 --help | --hel | -h )
25809 $as_echo "$ac_cs_usage"; exit ;;
25810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25814 # This is an error.
25815 -*) as_fn_error "unrecognized option: \`$1'
25816 Try \`$0 --help' for more information." ;;
25818 *) as_fn_append ac_config_targets " $1"
25819 ac_need_defaults=false ;;
25825 ac_configure_extra_args=
25827 if $ac_cs_silent; then
25829 ac_configure_extra_args="$ac_configure_extra_args --silent"
25833 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25834 if \$ac_cs_recheck; then
25835 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25837 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25838 CONFIG_SHELL='$SHELL'
25839 export CONFIG_SHELL
25844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25849 ## Running $as_me. ##
25855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25859 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25861 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25862 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25867 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25869 # Handling of arguments.
25870 for ac_config_target in $ac_config_targets
25872 case $ac_config_target in
25873 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25874 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25875 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25876 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25877 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25878 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25879 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25880 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25881 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25882 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25883 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25884 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25885 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25886 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25887 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25888 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25889 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25890 "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" ;;
25891 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25892 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25893 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25894 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25895 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25896 "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" ;;
25897 "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" ;;
25898 "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" ;;
25899 "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" ;;
25900 "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" ;;
25901 "servers/slapd/back-mdb/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-mdb/Makefile:build/top.mk:servers/slapd/back-mdb/Makefile.in:build/mod.mk" ;;
25902 "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" ;;
25903 "servers/slapd/back-asyncmeta/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-asyncmeta/Makefile:build/top.mk:servers/slapd/back-asyncmeta/Makefile.in:build/mod.mk" ;;
25904 "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" ;;
25905 "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" ;;
25906 "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" ;;
25907 "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" ;;
25908 "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" ;;
25909 "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" ;;
25910 "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" ;;
25911 "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" ;;
25912 "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" ;;
25913 "servers/slapd/back-wt/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/back-wt/Makefile:build/top.mk:servers/slapd/back-wt/Makefile.in:build/mod.mk" ;;
25914 "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" ;;
25915 "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" ;;
25916 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25917 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25918 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25919 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25920 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25922 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25927 # If the user did not use the arguments to specify the items to instantiate,
25928 # then the envvar interface is used. Set only those that are not.
25929 # We use the long form for the default assignment because of an extremely
25930 # bizarre bug on SunOS 4.1.3.
25931 if $ac_need_defaults; then
25932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25937 # Have a temporary directory for convenience. Make it in the build tree
25938 # simply because there is no reason against having it here, and in addition,
25939 # creating and moving files from /tmp can sometimes cause problems.
25940 # Hook for its removal unless debugging.
25941 # Note that there is a small window in which the directory will not be cleaned:
25942 # after its creation but before its name has been assigned to `$tmp'.
25946 trap 'exit_status=$?
25947 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25949 trap 'as_fn_exit 1' 1 2 13 15
25951 # Create a (secure) tmp directory for tmp files.
25954 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25955 test -n "$tmp" && test -d "$tmp"
25958 tmp=./conf$$-$RANDOM
25959 (umask 077 && mkdir "$tmp")
25960 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25962 # Set up the scripts for CONFIG_FILES section.
25963 # No need to generate them if there are no CONFIG_FILES.
25964 # This happens for instance with `./config.status config.h'.
25965 if test -n "$CONFIG_FILES"; then
25968 ac_cr=`echo X | tr X '\015'`
25969 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25970 # But we know of no other shell where ac_cr would be empty at this
25971 # point, so we can use a bashism as a fallback.
25972 if test "x$ac_cr" = x; then
25973 eval ac_cr=\$\'\\r\'
25975 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25976 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25979 ac_cs_awk_cr=$ac_cr
25982 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25987 echo "cat >conf$$subs.awk <<_ACEOF" &&
25988 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25990 } >conf$$subs.sh ||
25991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25992 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25994 for ac_last_try in false false false false false :; do
25995 . ./conf$$subs.sh ||
25996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25998 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25999 if test $ac_delim_n = $ac_delim_num; then
26001 elif $ac_last_try; then
26002 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26007 rm -f conf$$subs.sh
26009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26010 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26014 s/^/S["/; s/!.*/"]=/
26024 s/\(.\{148\}\)..*/\1/
26026 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26031 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26038 s/\(.\{148\}\)..*/\1/
26040 s/["\\]/\\&/g; s/^/"/; s/$/"/
26044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26049 ' <conf$$subs.awk | sed '
26054 ' >>$CONFIG_STATUS || ac_write_fail=1
26055 rm -f conf$$subs.awk
26056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26058 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26059 for (key in S) S_is_set[key] = 1
26065 nfields = split(line, field, "@")
26067 len = length(field[1])
26068 for (i = 2; i < nfields; i++) {
26070 keylen = length(key)
26071 if (S_is_set[key]) {
26073 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26074 len += length(value) + length(field[++i])
26085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26086 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26090 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26091 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26094 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26095 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26096 # trailing colons and then remove the whole line if VPATH becomes empty
26097 # (actually we leave an empty line to preserve line numbers).
26098 if test "x$srcdir" = x.; then
26099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26100 s/:*\$(srcdir):*/:/
26101 s/:*\${srcdir}:*/:/
26103 s/^\([^=]*=[ ]*\):*/\1/
26109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26110 fi # test -n "$CONFIG_FILES"
26112 # Set up the scripts for CONFIG_HEADERS section.
26113 # No need to generate them if there are no CONFIG_HEADERS.
26114 # This happens for instance with `./config.status Makefile'.
26115 if test -n "$CONFIG_HEADERS"; then
26116 cat >"$tmp/defines.awk" <<\_ACAWK ||
26120 # Transform confdefs.h into an awk script `defines.awk', embedded as
26121 # here-document in config.status, that substitutes the proper values into
26122 # config.h.in to produce config.h.
26124 # Create a delimiter string that does not exist in confdefs.h, to ease
26125 # handling of long lines.
26127 for ac_last_try in false false :; do
26128 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26129 if test -z "$ac_t"; then
26131 elif $ac_last_try; then
26132 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26138 # For the awk script, D is an array of macro values keyed by name,
26139 # likewise P contains macro parameters if any. Preserve backslash
26140 # newline sequences.
26142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26144 s/.\{148\}/&'"$ac_delim"'/g
26147 s/^[ ]*#[ ]*define[ ][ ]*/ /
26154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26161 D["\1"]=" \3\\\\\\n"\\/p
26163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26168 s/.\{148\}/&'"$ac_delim"'/g
26173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26178 ' <confdefs.h | sed '
26179 s/'"$ac_delim"'/"\\\
26180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26183 for (key in D) D_is_set[key] = 1
26186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26188 split(line, arg, " ")
26189 if (arg[1] == "#") {
26193 defundef = substr(arg[1], 2)
26196 split(mac1, mac2, "(") #)
26198 prefix = substr(line, 1, index(line, defundef) - 1)
26199 if (D_is_set[macro]) {
26200 # Preserve the white space surrounding the "#".
26201 print prefix "define", macro P[macro] D[macro]
26204 # Replace #undef with comments. This is necessary, for example,
26205 # in the case of _POSIX_SOURCE, which is predefined and required
26206 # on some systems where configure will not decide to define it.
26207 if (defundef == "undef") {
26208 print "/*", prefix defundef, macro, "*/"
26216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26217 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26218 fi # test -n "$CONFIG_HEADERS"
26221 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26226 :[FHLC]) ac_mode=$ac_tag; continue;;
26228 case $ac_mode$ac_tag in
26230 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26231 :[FH]-) ac_tag=-:-;;
26232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26249 -) ac_f="$tmp/stdin";;
26250 *) # Look for the file first in the build tree, then in the source tree
26251 # (if the path is not absolute). The absolute path cannot be DOS-style,
26252 # because $ac_f cannot contain `:'.
26256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26258 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26261 as_fn_append ac_file_inputs " '$ac_f'"
26264 # Let's still pretend it is `configure' which instantiates (i.e., don't
26265 # use $as_me), people would be surprised to read:
26266 # /* config.h. Generated by config.status. */
26267 configure_input='Generated from '`
26268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26270 if test x"$ac_file" != x-; then
26271 configure_input="$ac_file. $configure_input"
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26273 $as_echo "$as_me: creating $ac_file" >&6;}
26275 # Neutralize special characters interpreted by sed in replacement strings.
26276 case $configure_input in #(
26277 *\&* | *\|* | *\\* )
26278 ac_sed_conf_input=`$as_echo "$configure_input" |
26279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26280 *) ac_sed_conf_input=$configure_input;;
26284 *:-:* | *:-) cat >"$tmp/stdin" \
26285 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26290 ac_dir=`$as_dirname -- "$ac_file" ||
26291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26292 X"$ac_file" : 'X\(//\)[^/]' \| \
26293 X"$ac_file" : 'X\(//\)$' \| \
26294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26295 $as_echo X"$ac_file" |
26296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26300 /^X\(\/\/\)[^/].*/{
26313 as_dir="$ac_dir"; as_fn_mkdir_p
26317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26320 # A ".." for each directory in $ac_dir_suffix.
26321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26322 case $ac_top_builddir_sub in
26323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26327 ac_abs_top_builddir=$ac_pwd
26328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26329 # for backward compatibility:
26330 ac_top_builddir=$ac_top_build_prefix
26333 .) # We are building in place.
26335 ac_top_srcdir=$ac_top_builddir_sub
26336 ac_abs_top_srcdir=$ac_pwd ;;
26337 [\\/]* | ?:[\\/]* ) # Absolute name.
26338 ac_srcdir=$srcdir$ac_dir_suffix;
26339 ac_top_srcdir=$srcdir
26340 ac_abs_top_srcdir=$srcdir ;;
26341 *) # Relative name.
26342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26343 ac_top_srcdir=$ac_top_build_prefix$srcdir
26344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26362 # If the template does not know about datarootdir, expand it.
26363 # FIXME: This hack should be removed a few years after 2.60.
26364 ac_datarootdir_hack=; ac_datarootdir_seen=
26375 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26376 *datarootdir*) ac_datarootdir_seen=yes;;
26377 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26379 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26382 ac_datarootdir_hack='
26383 s&@datadir@&$datadir&g
26384 s&@docdir@&$docdir&g
26385 s&@infodir@&$infodir&g
26386 s&@localedir@&$localedir&g
26387 s&@mandir@&$mandir&g
26388 s&\\\${datarootdir}&$datarootdir&g' ;;
26392 # Neutralize VPATH when `$srcdir' = `.'.
26393 # Shell code in configure.ac might set extrasub.
26394 # FIXME: do we really want to maintain this feature?
26395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26396 ac_sed_extra="$ac_vpsub
26399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26402 s|@configure_input@|$ac_sed_conf_input|;t t
26403 s&@top_builddir@&$ac_top_builddir_sub&;t t
26404 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26405 s&@srcdir@&$ac_srcdir&;t t
26406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26407 s&@top_srcdir@&$ac_top_srcdir&;t t
26408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26409 s&@builddir@&$ac_builddir&;t t
26410 s&@abs_builddir@&$ac_abs_builddir&;t t
26411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26412 s&@INSTALL@&$ac_INSTALL&;t t
26413 $ac_datarootdir_hack
26415 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26416 || as_fn_error "could not create $ac_file" "$LINENO" 5
26418 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26419 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26420 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26422 which seems to be undefined. Please make sure it is defined." >&5
26423 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26424 which seems to be undefined. Please make sure it is defined." >&2;}
26428 -) cat "$tmp/out" && rm -f "$tmp/out";;
26429 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26431 || as_fn_error "could not create $ac_file" "$LINENO" 5
26437 if test x"$ac_file" != x-; then
26439 $as_echo "/* $configure_input */" \
26440 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26441 } >"$tmp/config.h" \
26442 || as_fn_error "could not create $ac_file" "$LINENO" 5
26443 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26445 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26448 mv "$tmp/config.h" "$ac_file" \
26449 || as_fn_error "could not create $ac_file" "$LINENO" 5
26452 $as_echo "/* $configure_input */" \
26453 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26454 || as_fn_error "could not create -" "$LINENO" 5
26456 # Compute "$ac_file"'s index in $config_headers.
26458 for _am_header in $config_headers :; do
26459 case $_am_header in
26460 "$ac_file" | "$ac_file":* )
26463 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26466 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26468 X"$ac_file" : 'X\(//\)[^/]' \| \
26469 X"$ac_file" : 'X\(//\)$' \| \
26470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26471 $as_echo X"$ac_file" |
26472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26476 /^X\(\/\/\)[^/].*/{
26488 s/.*/./; q'`/stamp-h$_am_stamp_count
26491 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26492 $as_echo "$as_me: executing $ac_file commands" >&6;}
26497 case $ac_file$ac_mode in
26498 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26499 # Strip MF so we end up with the name of the file.
26500 mf=`echo "$mf" | sed -e 's/:.*$//'`
26501 # Check whether this is an Automake generated Makefile or not.
26502 # We used to match only the files named `Makefile.in', but
26503 # some people rename them; so instead we look at the file content.
26504 # Grep'ing the first line is not enough: some people post-process
26505 # each Makefile.in and add a new line on top of each file to say so.
26506 # So let's grep whole file.
26507 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26508 dirpart=`$as_dirname -- "$mf" ||
26509 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26510 X"$mf" : 'X\(//\)[^/]' \| \
26511 X"$mf" : 'X\(//\)$' \| \
26512 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26518 /^X\(\/\/\)[^/].*/{
26534 # Extract the definition of DEPDIR, am__include, and am__quote
26535 # from the Makefile without running `make'.
26536 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26537 test -z "$DEPDIR" && continue
26538 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26539 test -z "am__include" && continue
26540 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26541 # When using ansi2knr, U may be empty or an underscore; expand it
26542 U=`sed -n 's/^U = //p' < "$mf"`
26543 # Find all dependency output files, they are included files with
26544 # $(DEPDIR) in their names. We invoke sed twice because it is the
26545 # simplest approach to changing $(DEPDIR) to its actual value in the
26547 for file in `sed -n "
26548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26550 # Make sure the directory exists.
26551 test -f "$dirpart/$file" && continue
26552 fdir=`$as_dirname -- "$file" ||
26553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26554 X"$file" : 'X\(//\)[^/]' \| \
26555 X"$file" : 'X\(//\)$' \| \
26556 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26557 $as_echo X"$file" |
26558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26562 /^X\(\/\/\)[^/].*/{
26575 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26576 # echo "creating $dirpart/$file"
26577 echo '# dummy' > "$dirpart/$file"
26584 BACKENDSC="servers/slapd/backends.c"
26585 echo "Making $BACKENDSC"
26587 cat > $BACKENDSC << ENDX
26588 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26590 * Copyright 1998-2018 The OpenLDAP Foundation.
26591 * All rights reserved.
26593 * Redistribution and use in source and binary forms, with or without
26594 * modification, are permitted only as authorized by the OpenLDAP
26597 * A copy of this license is available in the file LICENSE in the
26598 * top-level directory of the distribution or, alternatively, at
26599 * <http://www.OpenLDAP.org/license.html>.
26601 /* This file is automatically generated by configure; please do not edit. */
26603 #include "portable.h"
26607 if test "${STATIC_BACKENDS}"; then
26608 for b in config ${STATIC_BACKENDS}; do
26609 bb=`echo "${b}" | sed -e 's/back-//'`
26610 cat >> $BACKENDSC << ENDX
26611 extern BI_init ${bb}_back_initialize;
26615 cat >> $BACKENDSC << ENDX
26617 BackendInfo slap_binfo[] = {
26620 for b in config ${STATIC_BACKENDS}; do
26621 bb=`echo "${b}" | sed -e 's/back-//'`
26622 echo " Add ${bb} ..."
26623 cat >> $BACKENDSC << ENDX
26624 { "${bb}", ${bb}_back_initialize },
26628 cat >> $BACKENDSC << ENDX
26632 /* end of generated file */
26635 OVERLAYSC="servers/slapd/overlays/statover.c"
26636 echo "Making $OVERLAYSC"
26638 cat > $OVERLAYSC << ENDX
26639 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26641 * Copyright 1998-2018 The OpenLDAP Foundation.
26642 * All rights reserved.
26644 * Redistribution and use in source and binary forms, with or without
26645 * modification, are permitted only as authorized by the OpenLDAP
26648 * A copy of this license is available in the file LICENSE in the
26649 * top-level directory of the distribution or, alternatively, at
26650 * <http://www.OpenLDAP.org/license.html>.
26652 /* This file is automatically generated by configure; please do not edit. */
26654 #include "portable.h"
26658 if test "${STATIC_OVERLAYS}"; then
26659 for o in ${STATIC_OVERLAYS}; do
26660 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26661 cat >> $OVERLAYSC << ENDX
26662 extern OV_init ${oo}_initialize;
26667 cat >> $OVERLAYSC << ENDX
26669 OverlayInit slap_oinfo[] = {
26672 if test "${STATIC_OVERLAYS}"; then
26673 for o in ${STATIC_OVERLAYS}; do
26674 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26675 echo " Add ${oo} ..."
26676 cat >> $OVERLAYSC << ENDX
26677 { "${oo}", ${oo}_initialize },
26682 cat >> $OVERLAYSC << ENDX
26686 /* end of generated file */
26689 if test "${ol_cv_mkdep}" = no; then
26690 echo '(Do not "make depend"; we do not know how to build dependencies)'
26692 echo 'Please run "make depend" to build dependencies'
26702 ac_clean_files=$ac_clean_files_save
26704 test $ac_write_fail = 0 ||
26705 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26708 # configure is writing to config.log, and then calls config.status.
26709 # config.status does its own redirection, appending to config.log.
26710 # Unfortunately, on DOS this fails, as config.log is still kept open
26711 # by configure, so config.status won't be able to write to it; its
26712 # output is simply discarded. So we exec the FD to /dev/null,
26713 # effectively closing config.log, so it can be properly (re)opened and
26714 # appended to by config.status. When coming back to configure, we
26715 # need to make the FD available again.
26716 if test "$no_create" != yes; then
26718 ac_config_status_args=
26719 test "$silent" = yes &&
26720 ac_config_status_args="$ac_config_status_args --quiet"
26722 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26724 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26725 # would make configure fail if this is the last instruction.
26726 $ac_cs_success || as_fn_exit $?
26728 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26730 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}