2 # From configure.in Id: 97a7d8d69c5231a056a85cedd1c591b0c2e46daa .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65.
6 # Copyright 1998-2016 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
771 SLAPD_DYNAMIC_OVERLAYS
772 SLAPD_STATIC_OVERLAYS
773 SLAPD_DYNAMIC_BACKENDS
774 SLAPD_STATIC_BACKENDS
776 SLAPD_MODULES_LDFLAGS
777 SLAPD_MODULES_CPPFLAGS
872 OPENLDAP_RELEASE_DATE
882 INSTALL_STRIP_PROGRAM
935 program_transform_name
948 enable_option_checking
963 enable_xxslapdoptions
977 enable_xxslapbackends
996 enable_xxslapoverlays
1022 enable_dependency_tracking
1029 ac_precious_vars='build_alias
1040 # Initialize some variables set by options.
1042 ac_init_version=false
1043 ac_unrecognized_opts=
1044 ac_unrecognized_sep=
1045 # The variables have the same names as the options, with
1046 # dashes changed to underlines.
1047 cache_file=/dev/null
1054 program_transform_name=s,x,x,
1062 # Installation directory options.
1063 # These are left unexpanded so users can "make install exec_prefix=/foo"
1064 # and all the variables that are supposed to be based on exec_prefix
1065 # by default will actually change.
1066 # Use braces instead of parens because sh, perl, etc. also accept them.
1067 # (The list follows the same order as the GNU Coding Standards.)
1068 bindir='${exec_prefix}/bin'
1069 sbindir='${exec_prefix}/sbin'
1070 libexecdir='${exec_prefix}/libexec'
1071 datarootdir='${prefix}/share'
1072 datadir='${datarootdir}'
1073 sysconfdir='${prefix}/etc'
1074 sharedstatedir='${prefix}/com'
1075 localstatedir='${prefix}/var'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE}'
1079 infodir='${datarootdir}/info'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1092 # If the previous option needs an argument, assign it.
1093 if test -n "$ac_prev"; then
1094 eval $ac_prev=\$ac_option
1100 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1104 # Accept the important Cygnus configure options, so we can diagnose typos.
1106 case $ac_dashdash$ac_option in
1110 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1113 bindir=$ac_optarg ;;
1115 -build | --build | --buil | --bui | --bu)
1116 ac_prev=build_alias ;;
1117 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1118 build_alias=$ac_optarg ;;
1120 -cache-file | --cache-file | --cache-fil | --cache-fi \
1121 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1122 ac_prev=cache_file ;;
1123 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1124 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1125 cache_file=$ac_optarg ;;
1127 --config-cache | -C)
1128 cache_file=config.cache ;;
1130 -datadir | --datadir | --datadi | --datad)
1132 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1133 datadir=$ac_optarg ;;
1135 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1136 | --dataroo | --dataro | --datar)
1137 ac_prev=datarootdir ;;
1138 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1139 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1140 datarootdir=$ac_optarg ;;
1142 -disable-* | --disable-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error "invalid feature name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "enable_$ac_useropt"
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1156 eval enable_$ac_useropt=no ;;
1158 -docdir | --docdir | --docdi | --doc | --do)
1160 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1161 docdir=$ac_optarg ;;
1163 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1166 dvidir=$ac_optarg ;;
1168 -enable-* | --enable-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid feature name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1177 "enable_$ac_useropt"
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1182 eval enable_$ac_useropt=\$ac_optarg ;;
1184 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1185 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1186 | --exec | --exe | --ex)
1187 ac_prev=exec_prefix ;;
1188 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1189 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1190 | --exec=* | --exe=* | --ex=*)
1191 exec_prefix=$ac_optarg ;;
1193 -gas | --gas | --ga | --g)
1194 # Obsolete; use --with-gas.
1197 -help | --help | --hel | --he | -h)
1198 ac_init_help=long ;;
1199 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1200 ac_init_help=recursive ;;
1201 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1202 ac_init_help=short ;;
1204 -host | --host | --hos | --ho)
1205 ac_prev=host_alias ;;
1206 -host=* | --host=* | --hos=* | --ho=*)
1207 host_alias=$ac_optarg ;;
1209 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213 htmldir=$ac_optarg ;;
1215 -includedir | --includedir | --includedi | --included | --include \
1216 | --includ | --inclu | --incl | --inc)
1217 ac_prev=includedir ;;
1218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1219 | --includ=* | --inclu=* | --incl=* | --inc=*)
1220 includedir=$ac_optarg ;;
1222 -infodir | --infodir | --infodi | --infod | --info | --inf)
1224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1225 infodir=$ac_optarg ;;
1227 -libdir | --libdir | --libdi | --libd)
1229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1230 libdir=$ac_optarg ;;
1232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1233 | --libexe | --libex | --libe)
1234 ac_prev=libexecdir ;;
1235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1236 | --libexe=* | --libex=* | --libe=*)
1237 libexecdir=$ac_optarg ;;
1239 -localedir | --localedir | --localedi | --localed | --locale)
1240 ac_prev=localedir ;;
1241 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1242 localedir=$ac_optarg ;;
1244 -localstatedir | --localstatedir | --localstatedi | --localstated \
1245 | --localstate | --localstat | --localsta | --localst | --locals)
1246 ac_prev=localstatedir ;;
1247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1248 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1249 localstatedir=$ac_optarg ;;
1251 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1254 mandir=$ac_optarg ;;
1256 -nfp | --nfp | --nf)
1257 # Obsolete; use --without-fp.
1260 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1261 | --no-cr | --no-c | -n)
1264 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1265 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1268 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1269 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1270 | --oldin | --oldi | --old | --ol | --o)
1271 ac_prev=oldincludedir ;;
1272 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1273 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1274 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1275 oldincludedir=$ac_optarg ;;
1277 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1280 prefix=$ac_optarg ;;
1282 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1283 | --program-pre | --program-pr | --program-p)
1284 ac_prev=program_prefix ;;
1285 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1286 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1287 program_prefix=$ac_optarg ;;
1289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1290 | --program-suf | --program-su | --program-s)
1291 ac_prev=program_suffix ;;
1292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1294 program_suffix=$ac_optarg ;;
1296 -program-transform-name | --program-transform-name \
1297 | --program-transform-nam | --program-transform-na \
1298 | --program-transform-n | --program-transform- \
1299 | --program-transform | --program-transfor \
1300 | --program-transfo | --program-transf \
1301 | --program-trans | --program-tran \
1302 | --progr-tra | --program-tr | --program-t)
1303 ac_prev=program_transform_name ;;
1304 -program-transform-name=* | --program-transform-name=* \
1305 | --program-transform-nam=* | --program-transform-na=* \
1306 | --program-transform-n=* | --program-transform-=* \
1307 | --program-transform=* | --program-transfor=* \
1308 | --program-transfo=* | --program-transf=* \
1309 | --program-trans=* | --program-tran=* \
1310 | --progr-tra=* | --program-tr=* | --program-t=*)
1311 program_transform_name=$ac_optarg ;;
1313 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1316 pdfdir=$ac_optarg ;;
1318 -psdir | --psdir | --psdi | --psd | --ps)
1320 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324 | -silent | --silent | --silen | --sile | --sil)
1327 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331 sbindir=$ac_optarg ;;
1333 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1334 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1335 | --sharedst | --shareds | --shared | --share | --shar \
1337 ac_prev=sharedstatedir ;;
1338 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1339 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1340 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342 sharedstatedir=$ac_optarg ;;
1344 -site | --site | --sit)
1346 -site=* | --site=* | --sit=*)
1349 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1352 srcdir=$ac_optarg ;;
1354 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1355 | --syscon | --sysco | --sysc | --sys | --sy)
1356 ac_prev=sysconfdir ;;
1357 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1358 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1359 sysconfdir=$ac_optarg ;;
1361 -target | --target | --targe | --targ | --tar | --ta | --t)
1362 ac_prev=target_alias ;;
1363 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1364 target_alias=$ac_optarg ;;
1366 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1369 -version | --version | --versio | --versi | --vers | -V)
1370 ac_init_version=: ;;
1373 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error "invalid package name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1386 eval with_$ac_useropt=\$ac_optarg ;;
1388 -without-* | --without-*)
1389 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1390 # Reject names that are not valid shell variable names.
1391 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1392 as_fn_error "invalid package name: $ac_useropt"
1393 ac_useropt_orig=$ac_useropt
1394 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1395 case $ac_user_opts in
1399 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1400 ac_unrecognized_sep=', ';;
1402 eval with_$ac_useropt=no ;;
1405 # Obsolete; use --with-x.
1408 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1409 | --x-incl | --x-inc | --x-in | --x-i)
1410 ac_prev=x_includes ;;
1411 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1412 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1413 x_includes=$ac_optarg ;;
1415 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1416 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1417 ac_prev=x_libraries ;;
1418 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1419 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1420 x_libraries=$ac_optarg ;;
1422 -*) as_fn_error "unrecognized option: \`$ac_option'
1423 Try \`$0 --help' for more information."
1427 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1428 # Reject names that are not valid shell variable names.
1429 case $ac_envvar in #(
1430 '' | [0-9]* | *[!_$as_cr_alnum]* )
1431 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1433 eval $ac_envvar=\$ac_optarg
1434 export $ac_envvar ;;
1437 # FIXME: should be removed in autoconf 3.0.
1438 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1439 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1440 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1441 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1447 if test -n "$ac_prev"; then
1448 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1449 as_fn_error "missing argument to $ac_option"
1452 if test -n "$ac_unrecognized_opts"; then
1453 case $enable_option_checking in
1455 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1456 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1460 # Check all directory arguments for consistency.
1461 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1462 datadir sysconfdir sharedstatedir localstatedir includedir \
1463 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1464 libdir localedir mandir
1466 eval ac_val=\$$ac_var
1467 # Remove trailing slashes.
1470 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1471 eval $ac_var=\$ac_val;;
1473 # Be sure to have absolute directory names.
1475 [\\/$]* | ?:[\\/]* ) continue;;
1476 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1481 # There might be people who depend on the old broken behavior: `$host'
1482 # used to hold the argument of --host etc.
1483 # FIXME: To remove some day.
1486 target=$target_alias
1488 # FIXME: To remove some day.
1489 if test "x$host_alias" != x; then
1490 if test "x$build_alias" = x; then
1491 cross_compiling=maybe
1492 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1493 If a cross compiler is detected then cross compile mode will be used." >&2
1494 elif test "x$build_alias" != "x$host_alias"; then
1500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502 test "$silent" = yes && exec 6>/dev/null
1505 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1506 ac_ls_di=`ls -di .` &&
1507 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1508 as_fn_error "working directory cannot be determined"
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510 as_fn_error "pwd does not report name of working directory"
1513 # Find the source files, if location was not specified.
1514 if test -z "$srcdir"; then
1515 ac_srcdir_defaulted=yes
1516 # Try the directory containing this script, then the parent directory.
1517 ac_confdir=`$as_dirname -- "$as_myself" ||
1518 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1519 X"$as_myself" : 'X\(//\)[^/]' \| \
1520 X"$as_myself" : 'X\(//\)$' \| \
1521 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1522 $as_echo X"$as_myself" |
1523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1541 if test ! -r "$srcdir/$ac_unique_file"; then
1545 ac_srcdir_defaulted=no
1547 if test ! -r "$srcdir/$ac_unique_file"; then
1548 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1549 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1551 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1555 # When building in place, set srcdir=.
1556 if test "$ac_abs_confdir" = "$ac_pwd"; then
1559 # Remove unnecessary trailing slashes from srcdir.
1560 # Double slashes in file names in object file debugging info
1561 # mess up M-x gdb in Emacs.
1563 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565 for ac_var in $ac_precious_vars; do
1566 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1567 eval ac_env_${ac_var}_value=\$${ac_var}
1568 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1573 # Report the --help message.
1575 if test "$ac_init_help" = "long"; then
1576 # Omit some internal or obsolete options to make the list less imposing.
1577 # This message is too long to be a string in the A/UX 3.1 sh.
1579 \`configure' configures this package to adapt to many kinds of systems.
1581 Usage: $0 [OPTION]... [VAR=VALUE]...
1583 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1584 VAR=VALUE. See below for descriptions of some of the useful variables.
1586 Defaults for the options are specified in brackets.
1589 -h, --help display this help and exit
1590 --help=short display options specific to this package
1591 --help=recursive display the short help of all the included packages
1592 -V, --version display version information and exit
1593 -q, --quiet, --silent do not print \`checking...' messages
1594 --cache-file=FILE cache test results in FILE [disabled]
1595 -C, --config-cache alias for \`--cache-file=config.cache'
1596 -n, --no-create do not create output files
1597 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1599 Installation directories:
1600 --prefix=PREFIX install architecture-independent files in PREFIX
1601 [$ac_default_prefix]
1602 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1605 By default, \`make install' will install all the files in
1606 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1607 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1608 for instance \`--prefix=\$HOME'.
1610 For better control, use the options below.
1612 Fine tuning of the installation directories:
1613 --bindir=DIR user executables [EPREFIX/bin]
1614 --sbindir=DIR system admin executables [EPREFIX/sbin]
1615 --libexecdir=DIR program executables [EPREFIX/libexec]
1616 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1617 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1618 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1619 --libdir=DIR object code libraries [EPREFIX/lib]
1620 --includedir=DIR C header files [PREFIX/include]
1621 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1622 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1623 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1624 --infodir=DIR info documentation [DATAROOTDIR/info]
1625 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1626 --mandir=DIR man documentation [DATAROOTDIR/man]
1627 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1628 --htmldir=DIR html documentation [DOCDIR]
1629 --dvidir=DIR dvi documentation [DOCDIR]
1630 --pdfdir=DIR pdf documentation [DOCDIR]
1631 --psdir=DIR ps documentation [DOCDIR]
1637 --program-prefix=PREFIX prepend PREFIX to installed program names
1638 --program-suffix=SUFFIX append SUFFIX to installed program names
1639 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1642 --build=BUILD configure for building on BUILD [guessed]
1643 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1644 --target=TARGET configure for building compilers for TARGET [HOST]
1648 if test -n "$ac_init_help"; then
1653 --disable-option-checking ignore unrecognized --enable/--with options
1654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1656 --enable-debug enable debugging no|yes|traditional [yes]
1657 --enable-dynamic enable linking built binaries with dynamic libs [no]
1658 --enable-syslog enable syslog support [auto]
1659 --enable-proctitle enable proctitle support [yes]
1660 --enable-ipv6 enable IPv6 support [auto]
1661 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1663 SLAPD (Standalone LDAP Daemon) Options:
1664 --enable-slapd enable building slapd [yes]
1665 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1666 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1667 --enable-cleartext enable cleartext passwords [yes]
1668 --enable-crypt enable crypt(3) passwords [no]
1669 --enable-lmpasswd enable LAN Manager passwords [no]
1670 --enable-spasswd enable (Cyrus) SASL password verification [no]
1671 --enable-modules enable dynamic module support [no]
1672 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1673 --enable-rlookups enable reverse lookups of client hostnames [no]
1674 --enable-slapi enable SLAPI support (experimental) [no]
1675 --enable-slp enable SLPv2 support [no]
1676 --enable-wrappers enable tcp wrapper support [no]
1678 SLAPD Backend Options:
1679 --enable-backends enable all available backends no|yes|mod
1680 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1681 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1682 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]
1683 --enable-ldap enable ldap backend no|yes|mod [no]
1684 --enable-mdb enable mdb database backend no|yes|mod [yes]
1685 --enable-meta enable metadirectory backend no|yes|mod [no]
1686 --enable-asyncmeta enable asynchronous metadirectory backend no|yes|mod [no]
1687 --enable-monitor enable monitor backend no|yes|mod [yes]
1688 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1689 --enable-null enable null backend no|yes|mod [no]
1690 --enable-passwd enable passwd backend no|yes|mod [no]
1691 --enable-perl enable perl backend no|yes|mod [no]
1692 --enable-relay enable relay backend no|yes|mod [yes]
1693 --enable-shell enable shell backend no|yes|mod [no]
1694 --enable-sock enable sock backend no|yes|mod [no]
1695 --enable-sql enable sql backend no|yes|mod [no]
1696 --enable-wt enable WiredTiger backend no|yes|mod [no]
1698 SLAPD Overlay Options:
1699 --enable-overlays enable all available overlays no|yes|mod
1700 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1701 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1702 --enable-collect Collect overlay no|yes|mod [no]
1703 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1704 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1705 --enable-deref Dereference overlay no|yes|mod [no]
1706 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1707 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1708 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1709 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1710 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1711 --enable-refint Referential Integrity overlay no|yes|mod [no]
1712 --enable-retcode Return Code testing overlay no|yes|mod [no]
1713 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1714 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1715 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1716 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1717 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1718 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1719 --enable-valsort Value Sorting overlay no|yes|mod [no]
1721 Library Generation & Linking Options
1722 --enable-static[=PKGS] build static libraries [default=yes]
1723 --enable-shared[=PKGS] build shared libraries [default=yes]
1724 --enable-fast-install[=PKGS]
1725 optimize for fast installation [default=yes]
1726 --disable-dependency-tracking speeds up one-time build
1727 --enable-dependency-tracking do not reject slow dependency extractors
1728 --disable-libtool-lock avoid locking (might break parallel builds)
1731 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1732 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1733 --with-subdir=DIR change default subdirectory used for installs
1734 --with-cyrus-sasl with Cyrus SASL support [auto]
1735 --with-fetch with fetch(3) URL support [auto]
1736 --with-threads with threads [auto]
1737 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1738 --with-yielding-select with implicitly yielding select [auto]
1739 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1740 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1741 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1742 --with-pic try to use only PIC/non-PIC objects [default=use
1744 --with-tags[=TAGS] include additional configurations [automatic]
1746 See INSTALL file for further details.
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1758 Use these variables to override the choices made by `configure' or to help
1759 it to find libraries and programs with nonstandard names/locations.
1761 Report bugs to the package provider.
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1791 .) # We are building in place.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1815 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 cd "$ac_pwd" || { ac_status=$?; break; }
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1825 generated by GNU Autoconf 2.65
1827 Copyright (C) 2009 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1831 Copyright 1998-2016 The OpenLDAP Foundation. All rights reserved.
1832 Restrictions apply, see COPYRIGHT and LICENSE files.
1837 ## ------------------------ ##
1838 ## Autoconf initialization. ##
1839 ## ------------------------ ##
1841 # ac_fn_c_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_compile
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 $as_test_x conftest$ac_exeext
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_link
1925 # ac_fn_c_try_cpp LINENO
1926 # ----------------------
1927 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } >/dev/null && {
1947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1948 test ! -s conftest.err
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958 as_fn_set_status $ac_retval
1962 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1963 # -------------------------------------------------------
1964 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1965 # the include files in INCLUDES and setting the cache variable VAR
1967 ac_fn_c_check_header_mongrel ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1980 # Is the header compilable?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1982 $as_echo_n "checking $2 usability... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_header_compiler=yes
1991 ac_header_compiler=no
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1995 $as_echo "$ac_header_compiler" >&6; }
1997 # Is the header present?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1999 $as_echo_n "checking $2 presence... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 if ac_fn_c_try_cpp "$LINENO"; then :
2005 ac_header_preproc=yes
2007 ac_header_preproc=no
2009 rm -f conftest.err conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2011 $as_echo "$ac_header_preproc" >&6; }
2013 # So? What about this header?
2014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2017 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2023 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2025 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2027 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2029 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ## --------------------------------------------- ##
2034 ## Report this to <http://www.openldap.org/its/> ##
2035 ## --------------------------------------------- ##
2037 ) | sed "s/^/$as_me: WARNING: /" >&2
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2045 eval "$3=\$ac_header_compiler"
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053 } # ac_fn_c_check_header_mongrel
2055 # ac_fn_c_try_run LINENO
2056 # ----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2058 # that executables *can* be run.
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_link"
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>&5
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2073 { { case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_try") 2>&5
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; }; }; then :
2085 $as_echo "$as_me: program exited with status $ac_status" >&5
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 ac_retval=$ac_status
2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 as_fn_set_status $ac_retval
2097 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2098 # -------------------------------------------------------
2099 # Tests whether HEADER exists and can be compiled using the include files in
2100 # INCLUDES, setting the cache variable VAR accordingly.
2101 ac_fn_c_check_header_compile ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2107 $as_echo_n "(cached) " >&6
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2114 if ac_fn_c_try_compile "$LINENO"; then :
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2126 } # ac_fn_c_check_header_compile
2128 # ac_fn_c_check_func LINENO FUNC VAR
2129 # ----------------------------------
2130 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2131 ac_fn_c_check_func ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135 $as_echo_n "checking for $2... " >&6; }
2136 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2137 $as_echo_n "(cached) " >&6
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2143 #define $2 innocuous_$2
2145 /* System header to define __stub macros and hopefully few prototypes,
2146 which can conflict with char $2 (); below.
2147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2148 <limits.h> exists even on freestanding compilers. */
2151 # include <limits.h>
2153 # include <assert.h>
2158 /* Override any GCC internal prototype to avoid an error.
2159 Use char because int might match the return type of a GCC
2160 builtin and then its argument prototype would still apply. */
2165 /* The GNU C library defines this for functions which it implements
2166 to always fail with ENOSYS. Some functions are actually named
2167 something starting with __ and the normal name is an alias. */
2168 #if defined __stub_$2 || defined __stub___$2
2180 if ac_fn_c_try_link "$LINENO"; then :
2185 rm -f core conftest.err conftest.$ac_objext \
2186 conftest$ac_exeext conftest.$ac_ext
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2190 $as_echo "$ac_res" >&6; }
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193 } # ac_fn_c_check_func
2195 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2196 # -------------------------------------------
2197 # Tests whether TYPE exists after having included INCLUDES, setting cache
2198 # variable VAR accordingly.
2199 ac_fn_c_check_type ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h. */
2233 if ac_fn_c_try_compile "$LINENO"; then :
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2247 } # ac_fn_c_check_type
2249 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2250 # ----------------------------------------------------
2251 # Tries to find if the field MEMBER exists in type AGGR, after including
2252 # INCLUDES, setting cache variable VAR accordingly.
2253 ac_fn_c_check_member ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2257 $as_echo_n "checking for $2.$3... " >&6; }
2258 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 $as_echo_n "(cached) " >&6
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2284 if (sizeof ac_aggr.$3)
2290 if ac_fn_c_try_compile "$LINENO"; then :
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2304 } # ac_fn_c_check_member
2306 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2307 # --------------------------------------------
2308 # Tries to find the compile-time value of EXPR in a program that includes
2309 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2311 ac_fn_c_compute_int ()
2313 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314 if test "$cross_compiling" = yes; then
2315 # Depending upon the size, compute the lo and hi bounds.
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h. */
2322 static int test_array [1 - 2 * !(($2) >= 0)];
2329 if ac_fn_c_try_compile "$LINENO"; then :
2332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h. */
2338 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 ac_hi=$ac_mid; break
2348 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2349 if test $ac_lo -le $ac_mid; then
2353 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h. */
2364 static int test_array [1 - 2 * !(($2) < 0)];
2371 if ac_fn_c_try_compile "$LINENO"; then :
2374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h. */
2380 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388 ac_lo=$ac_mid; break
2390 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2391 if test $ac_mid -le $ac_hi; then
2395 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 # Binary search between lo and hi bounds.
2406 while test "x$ac_lo" != "x$ac_hi"; do
2407 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2414 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2421 if ac_fn_c_try_compile "$LINENO"; then :
2424 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2436 static long int longval () { return $2; }
2437 static unsigned long int ulongval () { return $2; }
2444 FILE *f = fopen ("conftest.val", "w");
2449 long int i = longval ();
2452 fprintf (f, "%ld", i);
2456 unsigned long int i = ulongval ();
2459 fprintf (f, "%lu", i);
2461 /* Do not output a trailing newline, as this causes \r\n confusion
2462 on some platforms. */
2463 return ferror (f) || fclose (f) != 0;
2469 if ac_fn_c_try_run "$LINENO"; then :
2470 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2475 conftest.$ac_objext conftest.beam conftest.$ac_ext
2479 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2480 as_fn_set_status $ac_retval
2482 } # ac_fn_c_compute_int
2483 cat >config.log <<_ACEOF
2484 This file contains any messages produced by compilers while
2485 running configure, to aid debugging if configure makes a mistake.
2487 It was created by $as_me, which was
2488 generated by GNU Autoconf 2.65. Invocation command line was
2500 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2501 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2502 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2503 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2504 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2506 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2507 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2509 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2510 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2511 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2512 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2513 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2514 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2515 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 test -z "$as_dir" && as_dir=.
2524 $as_echo "PATH: $as_dir"
2540 # Keep a trace of the command line.
2541 # Strip out --no-create and --no-recursion so they do not pile up.
2542 # Strip out --silent because we don't want to record it for future runs.
2543 # Also quote any args containing shell meta-characters.
2544 # Make two passes to allow for proper duplicate-argument suppression.
2548 ac_must_keep_next=false
2554 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2555 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2556 | -silent | --silent | --silen | --sile | --sil)
2559 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2562 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2564 as_fn_append ac_configure_args1 " '$ac_arg'"
2565 if test $ac_must_keep_next = true; then
2566 ac_must_keep_next=false # Got value, back to normal.
2569 *=* | --config-cache | -C | -disable-* | --disable-* \
2570 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2571 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2572 | -with-* | --with-* | -without-* | --without-* | --x)
2573 case "$ac_configure_args0 " in
2574 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2577 -* ) ac_must_keep_next=true ;;
2580 as_fn_append ac_configure_args " '$ac_arg'"
2585 { ac_configure_args0=; unset ac_configure_args0;}
2586 { ac_configure_args1=; unset ac_configure_args1;}
2588 # When interrupted or exit'd, cleanup temporary files, and complete
2589 # config.log. We remove comments because anyway the quotes in there
2590 # would cause problems or look ugly.
2591 # WARNING: Use '\'' to represent an apostrophe within the trap.
2592 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2593 trap 'exit_status=$?
2594 # Save into config.log some information that might help in debugging.
2599 ## ---------------- ##
2600 ## Cache variables. ##
2601 ## ---------------- ##
2604 # The following way of writing the cache mishandles newlines in values,
2606 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2607 eval ac_val=\$$ac_var
2611 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2615 _ | IFS | as_nl) ;; #(
2616 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2617 *) { eval $ac_var=; unset $ac_var;} ;;
2622 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2623 *${as_nl}ac_space=\ *)
2625 "s/'\''/'\''\\\\'\'''\''/g;
2626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2637 ## ----------------- ##
2638 ## Output variables. ##
2639 ## ----------------- ##
2642 for ac_var in $ac_subst_vars
2644 eval ac_val=\$$ac_var
2646 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2648 $as_echo "$ac_var='\''$ac_val'\''"
2652 if test -n "$ac_subst_files"; then
2654 ## ------------------- ##
2655 ## File substitutions. ##
2656 ## ------------------- ##
2659 for ac_var in $ac_subst_files
2661 eval ac_val=\$$ac_var
2663 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2665 $as_echo "$ac_var='\''$ac_val'\''"
2670 if test -s confdefs.h; then
2680 test "$ac_signal" != 0 &&
2681 $as_echo "$as_me: caught signal $ac_signal"
2682 $as_echo "$as_me: exit $exit_status"
2684 rm -f core *.core core.conftest.* &&
2685 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2688 for ac_signal in 1 2 13 15; do
2689 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2693 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2694 rm -f -r conftest* confdefs.h
2696 $as_echo "/* confdefs.h */" > confdefs.h
2698 # Predefined preprocessor variables.
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_NAME "$PACKAGE_NAME"
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_STRING "$PACKAGE_STRING"
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_URL "$PACKAGE_URL"
2725 # Let the site file select an alternate cache file if it wants to.
2726 # Prefer an explicitly selected file to automatically selected ones.
2729 if test -n "$CONFIG_SITE"; then
2730 ac_site_file1=$CONFIG_SITE
2731 elif test "x$prefix" != xNONE; then
2732 ac_site_file1=$prefix/share/config.site
2733 ac_site_file2=$prefix/etc/config.site
2735 ac_site_file1=$ac_default_prefix/share/config.site
2736 ac_site_file2=$ac_default_prefix/etc/config.site
2738 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2740 test "x$ac_site_file" = xNONE && continue
2741 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2743 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2744 sed 's/^/| /' "$ac_site_file" >&5
2750 # Check that the precious variables saved in the cache have kept the same
2752 ac_cache_corrupted=false
2753 for ac_var in $ac_precious_vars; do
2754 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2755 eval ac_new_set=\$ac_env_${ac_var}_set
2756 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2757 eval ac_new_val=\$ac_env_${ac_var}_value
2758 case $ac_old_set,$ac_new_set in
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2761 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2762 ac_cache_corrupted=: ;;
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2765 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2766 ac_cache_corrupted=: ;;
2769 if test "x$ac_old_val" != "x$ac_new_val"; then
2770 # differences in whitespace do not lead to failure.
2771 ac_old_val_w=`echo x $ac_old_val`
2772 ac_new_val_w=`echo x $ac_new_val`
2773 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2775 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2776 ac_cache_corrupted=:
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2779 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2780 eval $ac_var=\$ac_old_val
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2783 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2785 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2788 # Pass precious variables to config.status.
2789 if test "$ac_new_set" = set; then
2791 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2792 *) ac_arg=$ac_var=$ac_new_val ;;
2794 case " $ac_configure_args " in
2795 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2796 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2800 if $ac_cache_corrupted; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2802 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2804 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2805 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2807 ## -------------------- ##
2808 ## Main body of script. ##
2809 ## -------------------- ##
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2845 for ac_dir in build "$srcdir"/build; do
2846 for ac_t in install-sh install.sh shtool; do
2847 if test -f "$ac_dir/$ac_t"; then
2849 ac_install_sh="$ac_aux_dir/$ac_t -c"
2854 if test -z "$ac_aux_dir"; then
2855 as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2858 # These three variables are undocumented and unsupported,
2859 # and are intended to be withdrawn in a future Autoconf release.
2860 # They can cause serious problems if a builder's source tree is in a directory
2861 # whose full name contains unusual characters.
2862 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2863 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2864 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2867 eval `$ac_aux_dir/version.sh`
2868 if test -z "$OL_STRING"; then
2869 as_fn_error "could not determine version" "$LINENO" 5
2872 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2873 ac_cv_shtool="$ac_aux_dir/shtool"
2875 as_fn_error "no shtool found in $ac_aux_dir" "$LINENO" 5
2878 SHTOOL="$ac_cv_shtool"
2882 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2883 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2887 if test -d $ac_aux_dir/../.git; then
2888 OPENLDAP_REPO="(from Git clone) "
2889 elif test -d $ac_aux_dir/CVS; then
2890 OPENLDAP_REPO="(from CVS checkout) "
2893 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2895 # Make sure we can run config.sub.
2896 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2897 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2900 $as_echo_n "checking build system type... " >&6; }
2901 if test "${ac_cv_build+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2904 ac_build_alias=$build_alias
2905 test "x$ac_build_alias" = x &&
2906 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2907 test "x$ac_build_alias" = x &&
2908 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2910 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2914 $as_echo "$ac_cv_build" >&6; }
2915 case $ac_cv_build in
2917 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2920 ac_save_IFS=$IFS; IFS='-'
2926 # Remember, the first character of IFS is used to create $*,
2927 # except with old shells:
2930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2934 $as_echo_n "checking host system type... " >&6; }
2935 if test "${ac_cv_host+set}" = set; then :
2936 $as_echo_n "(cached) " >&6
2938 if test "x$host_alias" = x; then
2939 ac_cv_host=$ac_cv_build
2941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2942 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2947 $as_echo "$ac_cv_host" >&6; }
2950 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2953 ac_save_IFS=$IFS; IFS='-'
2959 # Remember, the first character of IFS is used to create $*,
2960 # except with old shells:
2963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2967 $as_echo_n "checking target system type... " >&6; }
2968 if test "${ac_cv_target+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2971 if test "x$target_alias" = x; then
2972 ac_cv_target=$ac_cv_host
2974 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2975 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2980 $as_echo "$ac_cv_target" >&6; }
2981 case $ac_cv_target in
2983 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2985 target=$ac_cv_target
2986 ac_save_IFS=$IFS; IFS='-'
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2996 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2999 # The aliases save the names the user supplied, while $host etc.
3000 # will get canonicalized.
3001 test -n "$target_alias" &&
3002 test "$program_prefix$program_suffix$program_transform_name" = \
3004 program_prefix=${target_alias}-
3006 am__api_version="1.9"
3007 # Find a good install program. We prefer a C program (faster),
3008 # so one script is as good as another. But avoid the broken or
3009 # incompatible versions:
3010 # SysV /etc/install, /usr/sbin/install
3011 # SunOS /usr/etc/install
3012 # IRIX /sbin/install
3014 # AmigaOS /C/install, which installs bootblocks on floppy discs
3015 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3016 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3017 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3018 # OS/2's system install, which has a completely different semantic
3019 # ./install, which can be erroneously created by make from ./install.sh.
3020 # Reject install programs that cannot install multiple files.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3022 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3023 if test -z "$INSTALL"; then
3024 if test "${ac_cv_path_install+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 test -z "$as_dir" && as_dir=.
3032 # Account for people who put trailing slashes in PATH elements.
3033 case $as_dir/ in #((
3034 ./ | .// | /[cC]/* | \
3035 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3036 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3039 # OSF1 and SCO ODT 3.0 have their own names for install.
3040 # Don't use installbsd from OSF since it installs stuff as root
3042 for ac_prog in ginstall scoinst install; do
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3045 if test $ac_prog = install &&
3046 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3047 # AIX install. It has an incompatible calling convention.
3049 elif test $ac_prog = install &&
3050 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3051 # program-specific install script used by HP pwplus--don't use.
3054 rm -rf conftest.one conftest.two conftest.dir
3055 echo one > conftest.one
3056 echo two > conftest.two
3058 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3059 test -s conftest.one && test -s conftest.two &&
3060 test -s conftest.dir/conftest.one &&
3061 test -s conftest.dir/conftest.two
3063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3076 rm -rf conftest.one conftest.two conftest.dir
3079 if test "${ac_cv_path_install+set}" = set; then
3080 INSTALL=$ac_cv_path_install
3082 # As a last resort, use the slow shell script. Don't cache a
3083 # value for INSTALL within a source directory, because that will
3084 # break other packages using the cache if that directory is
3085 # removed, or if the value is a relative name.
3086 INSTALL=$ac_install_sh
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3090 $as_echo "$INSTALL" >&6; }
3092 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3093 # It thinks the first close brace ends the variable substitution.
3094 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3096 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3098 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3101 $as_echo_n "checking whether build environment is sane... " >&6; }
3104 echo timestamp > conftest.file
3105 # Do `set' in a subshell so we don't clobber the current shell's
3106 # arguments. Must try -L first in case configure is actually a
3107 # symlink; some systems play weird games with the mod time of symlinks
3108 # (eg FreeBSD returns the mod time of the symlink's containing
3111 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3112 if test "$*" = "X"; then
3114 set X `ls -t $srcdir/configure conftest.file`
3117 if test "$*" != "X $srcdir/configure conftest.file" \
3118 && test "$*" != "X conftest.file $srcdir/configure"; then
3120 # If neither matched, then we have a broken ls. This can happen
3121 # if, for instance, CONFIG_SHELL is bash and it inherits a
3122 # broken ls alias from the environment. This has actually
3123 # happened. Such a system could not be considered "sane".
3124 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3125 alias in your environment" "$LINENO" 5
3128 test "$2" = conftest.file
3134 as_fn_error "newly created file is older than distributed files!
3135 Check your system clock" "$LINENO" 5
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139 test "$program_prefix" != NONE &&
3140 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3141 # Use a double $ so make ignores it.
3142 test "$program_suffix" != NONE &&
3143 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3144 # Double any \ or $.
3145 # By default was `s,x,x', remove it if useless.
3146 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3147 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3149 # expand $ac_aux_dir to an absolute path
3150 am_aux_dir=`cd $ac_aux_dir && pwd`
3152 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3153 # Use eval to expand $SHELL
3154 if eval "$MISSING --run true"; then
3155 am_missing_run="$MISSING --run "
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3159 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3162 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3163 # We used to keeping the `.' as first argument, in order to
3164 # allow $(mkdir_p) to be used without argument. As in
3165 # $(mkdir_p) $(somedir)
3166 # where $(somedir) is conditionally defined. However this is wrong
3168 # 1. if the package is installed by a user who cannot write `.'
3169 # make install will fail,
3170 # 2. the above comment should most certainly read
3171 # $(mkdir_p) $(DESTDIR)$(somedir)
3172 # so it does not work when $(somedir) is undefined and
3173 # $(DESTDIR) is not.
3174 # To support the latter case, we have to write
3175 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3176 # so the `.' trick is pointless.
3177 mkdir_p='mkdir -p --'
3179 # On NextStep and OpenStep, the `mkdir' command does not
3180 # recognize any option. It will interpret all options as
3181 # directories to create, and then abort because `.' already
3183 for d in ./-p ./--version;
3185 test -d $d && rmdir $d
3187 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3188 if test -f "$ac_aux_dir/mkinstalldirs"; then
3189 mkdir_p='$(mkinstalldirs)'
3191 mkdir_p='$(install_sh) -d'
3195 for ac_prog in gawk mawk nawk awk
3197 # Extract the first word of "$ac_prog", so it can be a program name with args.
3198 set dummy $ac_prog; ac_word=$2
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200 $as_echo_n "checking for $ac_word... " >&6; }
3201 if test "${ac_cv_prog_AWK+set}" = set; then :
3202 $as_echo_n "(cached) " >&6
3204 if test -n "$AWK"; then
3205 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir=.
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_AWK="$ac_prog"
3215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 if test -n "$AWK"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3227 $as_echo "$AWK" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3234 test -n "$AWK" && break
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3238 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3240 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3241 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3242 $as_echo_n "(cached) " >&6
3244 cat >conftest.make <<\_ACEOF
3247 @echo '@@@%%%=$(MAKE)=@@@%%%'
3249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3250 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3252 eval ac_cv_prog_make_${ac_make}_set=yes;;
3254 eval ac_cv_prog_make_${ac_make}_set=no;;
3258 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3260 $as_echo "yes" >&6; }
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3264 $as_echo "no" >&6; }
3265 SET_MAKE="MAKE=${MAKE-make}"
3268 rm -rf .tst 2>/dev/null
3269 mkdir .tst 2>/dev/null
3270 if test -d .tst; then
3275 rmdir .tst 2>/dev/null
3277 # test to see if srcdir already configured
3278 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3279 test -f $srcdir/config.status; then
3280 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3283 # test whether we have cygpath
3284 if test -z "$CYGPATH_W"; then
3285 if (cygpath --version) >/dev/null 2>/dev/null; then
3286 CYGPATH_W='cygpath -w'
3293 # Define the identity of the package.
3298 # Some tools Automake needs.
3300 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3303 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3306 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3309 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3312 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3314 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3316 # Installed binaries are usually stripped using `strip' when the user
3317 # run `make install-strip'. However `strip' might not be the right
3318 # tool to use in cross-compilation environments, therefore Automake
3319 # will honor the `STRIP' environment variable to overrule this program.
3320 if test "$cross_compiling" != no; then
3321 if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3323 set dummy ${ac_tool_prefix}strip; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if test "${ac_cv_prog_STRIP+set}" = set; then :
3327 $as_echo_n "(cached) " >&6
3329 if test -n "$STRIP"; then
3330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3339 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 STRIP=$ac_cv_prog_STRIP
3350 if test -n "$STRIP"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3352 $as_echo "$STRIP" >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3360 if test -z "$ac_cv_prog_STRIP"; then
3362 # Extract the first word of "strip", so it can be a program name with args.
3363 set dummy strip; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3369 if test -n "$ac_ct_STRIP"; then
3370 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_ac_ct_STRIP="strip"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3390 if test -n "$ac_ct_STRIP"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3392 $as_echo "$ac_ct_STRIP" >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3398 if test "x$ac_ct_STRIP" = x; then
3401 case $cross_compiling:$ac_tool_warned in
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3410 STRIP="$ac_cv_prog_STRIP"
3414 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3416 # We need awk for the "check" target. The system "awk" is bad on
3418 # Always define AMTAR for backward compatibility.
3420 AMTAR=${AMTAR-"${am_missing_run}tar"}
3422 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428 cat >>confdefs.h <<_ACEOF
3429 #define OPENLDAP_PACKAGE "$PACKAGE"
3433 cat >>confdefs.h <<_ACEOF
3434 #define OPENLDAP_VERSION "$VERSION"
3439 cat >>confdefs.h <<_ACEOF
3440 #define LDAP_VENDOR_VERSION $OL_API_INC
3444 cat >>confdefs.h <<_ACEOF
3445 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3449 cat >>confdefs.h <<_ACEOF
3450 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3454 cat >>confdefs.h <<_ACEOF
3455 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3459 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3461 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3463 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3469 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3471 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3473 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3477 $as_echo_n "checking configure arguments... " >&6; }
3482 ldap_subdir="/openldap"
3485 # Check whether --with-subdir was given.
3486 if test "${with_subdir+set}" = set; then :
3487 withval=$with_subdir; case "$withval" in
3493 ldap_subdir="$withval"
3496 ldap_subdir="/$withval"
3503 # OpenLDAP --enable-debug
3505 # Check whether --enable-debug was given.
3506 if test "${enable_debug+set}" = set; then :
3507 enableval=$enable_debug;
3509 for ol_val in no yes traditional ; do
3510 if test "$enableval" = "$ol_val" ; then
3514 if test "$ol_arg" = "invalid" ; then
3515 as_fn_error "bad value $enableval for --enable-debug" "$LINENO" 5
3517 ol_enable_debug="$ol_arg"
3523 # end --enable-debug
3524 # OpenLDAP --enable-dynamic
3526 # Check whether --enable-dynamic was given.
3527 if test "${enable_dynamic+set}" = set; then :
3528 enableval=$enable_dynamic;
3530 for ol_val in auto yes no ; do
3531 if test "$enableval" = "$ol_val" ; then
3535 if test "$ol_arg" = "invalid" ; then
3536 as_fn_error "bad value $enableval for --enable-dynamic" "$LINENO" 5
3538 ol_enable_dynamic="$ol_arg"
3541 ol_enable_dynamic=no
3544 # end --enable-dynamic
3545 # OpenLDAP --enable-syslog
3547 # Check whether --enable-syslog was given.
3548 if test "${enable_syslog+set}" = set; then :
3549 enableval=$enable_syslog;
3551 for ol_val in auto yes no ; do
3552 if test "$enableval" = "$ol_val" ; then
3556 if test "$ol_arg" = "invalid" ; then
3557 as_fn_error "bad value $enableval for --enable-syslog" "$LINENO" 5
3559 ol_enable_syslog="$ol_arg"
3562 ol_enable_syslog=auto
3565 # end --enable-syslog
3566 # OpenLDAP --enable-proctitle
3568 # Check whether --enable-proctitle was given.
3569 if test "${enable_proctitle+set}" = set; then :
3570 enableval=$enable_proctitle;
3572 for ol_val in auto yes no ; do
3573 if test "$enableval" = "$ol_val" ; then
3577 if test "$ol_arg" = "invalid" ; then
3578 as_fn_error "bad value $enableval for --enable-proctitle" "$LINENO" 5
3580 ol_enable_proctitle="$ol_arg"
3583 ol_enable_proctitle=yes
3586 # end --enable-proctitle
3587 ol_enable_referrals=${ol_enable_referrals-no}
3588 # OpenLDAP --enable-ipv6
3590 # Check whether --enable-ipv6 was given.
3591 if test "${enable_ipv6+set}" = set; then :
3592 enableval=$enable_ipv6;
3594 for ol_val in auto yes no ; do
3595 if test "$enableval" = "$ol_val" ; then
3599 if test "$ol_arg" = "invalid" ; then
3600 as_fn_error "bad value $enableval for --enable-ipv6" "$LINENO" 5
3602 ol_enable_ipv6="$ol_arg"
3609 # OpenLDAP --enable-local
3611 # Check whether --enable-local was given.
3612 if test "${enable_local+set}" = set; then :
3613 enableval=$enable_local;
3615 for ol_val in auto yes no ; do
3616 if test "$enableval" = "$ol_val" ; then
3620 if test "$ol_arg" = "invalid" ; then
3621 as_fn_error "bad value $enableval for --enable-local" "$LINENO" 5
3623 ol_enable_local="$ol_arg"
3626 ol_enable_local=auto
3629 # end --enable-local
3631 # OpenLDAP --with-cyrus_sasl
3633 # Check whether --with-cyrus_sasl was given.
3634 if test "${with_cyrus_sasl+set}" = set; then :
3635 withval=$with_cyrus_sasl;
3637 for ol_val in auto yes no ; do
3638 if test "$withval" = "$ol_val" ; then
3642 if test "$ol_arg" = "invalid" ; then
3643 as_fn_error "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3645 ol_with_cyrus_sasl="$ol_arg"
3648 ol_with_cyrus_sasl="auto"
3650 # end --with-cyrus_sasl
3652 # OpenLDAP --with-fetch
3654 # Check whether --with-fetch was given.
3655 if test "${with_fetch+set}" = set; then :
3656 withval=$with_fetch;
3658 for ol_val in auto yes no ; do
3659 if test "$withval" = "$ol_val" ; then
3663 if test "$ol_arg" = "invalid" ; then
3664 as_fn_error "bad value $withval for --with-fetch" "$LINENO" 5
3666 ol_with_fetch="$ol_arg"
3669 ol_with_fetch="auto"
3673 # OpenLDAP --with-threads
3675 # Check whether --with-threads was given.
3676 if test "${with_threads+set}" = set; then :
3677 withval=$with_threads;
3679 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3680 if test "$withval" = "$ol_val" ; then
3684 if test "$ol_arg" = "invalid" ; then
3685 as_fn_error "bad value $withval for --with-threads" "$LINENO" 5
3687 ol_with_threads="$ol_arg"
3690 ol_with_threads="auto"
3692 # end --with-threads
3694 # OpenLDAP --with-tls
3696 # Check whether --with-tls was given.
3697 if test "${with_tls+set}" = set; then :
3700 for ol_val in auto openssl gnutls moznss yes no ; do
3701 if test "$withval" = "$ol_val" ; then
3705 if test "$ol_arg" = "invalid" ; then
3706 as_fn_error "bad value $withval for --with-tls" "$LINENO" 5
3708 ol_with_tls="$ol_arg"
3715 # OpenLDAP --with-yielding_select
3717 # Check whether --with-yielding_select was given.
3718 if test "${with_yielding_select+set}" = set; then :
3719 withval=$with_yielding_select;
3721 for ol_val in auto yes no manual ; do
3722 if test "$withval" = "$ol_val" ; then
3726 if test "$ol_arg" = "invalid" ; then
3727 as_fn_error "bad value $withval for --with-yielding_select" "$LINENO" 5
3729 ol_with_yielding_select="$ol_arg"
3732 ol_with_yielding_select="auto"
3734 # end --with-yielding_select
3736 # OpenLDAP --with-mp
3738 # Check whether --with-mp was given.
3739 if test "${with_mp+set}" = set; then :
3742 for ol_val in auto longlong long bignum gmp yes no ; do
3743 if test "$withval" = "$ol_val" ; then
3747 if test "$ol_arg" = "invalid" ; then
3748 as_fn_error "bad value $withval for --with-mp" "$LINENO" 5
3750 ol_with_mp="$ol_arg"
3757 # OpenLDAP --with-odbc
3759 # Check whether --with-odbc was given.
3760 if test "${with_odbc+set}" = set; then :
3763 for ol_val in auto iodbc unixodbc odbc32 ; do
3764 if test "$withval" = "$ol_val" ; then
3768 if test "$ol_arg" = "invalid" ; then
3769 as_fn_error "bad value $withval for --with-odbc" "$LINENO" 5
3771 ol_with_odbc="$ol_arg"
3780 # Check whether --enable-xxslapdoptions was given.
3781 if test "${enable_xxslapdoptions+set}" = set; then :
3782 enableval=$enable_xxslapdoptions;
3785 # OpenLDAP --enable-slapd
3787 # Check whether --enable-slapd was given.
3788 if test "${enable_slapd+set}" = set; then :
3789 enableval=$enable_slapd;
3791 for ol_val in auto yes no ; do
3792 if test "$enableval" = "$ol_val" ; then
3796 if test "$ol_arg" = "invalid" ; then
3797 as_fn_error "bad value $enableval for --enable-slapd" "$LINENO" 5
3799 ol_enable_slapd="$ol_arg"
3805 # end --enable-slapd
3806 # OpenLDAP --enable-dynacl
3808 # Check whether --enable-dynacl was given.
3809 if test "${enable_dynacl+set}" = set; then :
3810 enableval=$enable_dynacl;
3812 for ol_val in auto yes no ; do
3813 if test "$enableval" = "$ol_val" ; then
3817 if test "$ol_arg" = "invalid" ; then
3818 as_fn_error "bad value $enableval for --enable-dynacl" "$LINENO" 5
3820 ol_enable_dynacl="$ol_arg"
3826 # end --enable-dynacl
3827 # OpenLDAP --enable-aci
3829 # Check whether --enable-aci was given.
3830 if test "${enable_aci+set}" = set; then :
3831 enableval=$enable_aci;
3833 for ol_val in no yes mod ; do
3834 if test "$enableval" = "$ol_val" ; then
3838 if test "$ol_arg" = "invalid" ; then
3839 as_fn_error "bad value $enableval for --enable-aci" "$LINENO" 5
3841 ol_enable_aci="$ol_arg"
3848 # OpenLDAP --enable-cleartext
3850 # Check whether --enable-cleartext was given.
3851 if test "${enable_cleartext+set}" = set; then :
3852 enableval=$enable_cleartext;
3854 for ol_val in auto yes no ; do
3855 if test "$enableval" = "$ol_val" ; then
3859 if test "$ol_arg" = "invalid" ; then
3860 as_fn_error "bad value $enableval for --enable-cleartext" "$LINENO" 5
3862 ol_enable_cleartext="$ol_arg"
3865 ol_enable_cleartext=yes
3868 # end --enable-cleartext
3869 # OpenLDAP --enable-crypt
3871 # Check whether --enable-crypt was given.
3872 if test "${enable_crypt+set}" = set; then :
3873 enableval=$enable_crypt;
3875 for ol_val in auto yes no ; do
3876 if test "$enableval" = "$ol_val" ; then
3880 if test "$ol_arg" = "invalid" ; then
3881 as_fn_error "bad value $enableval for --enable-crypt" "$LINENO" 5
3883 ol_enable_crypt="$ol_arg"
3889 # end --enable-crypt
3890 # OpenLDAP --enable-lmpasswd
3892 # Check whether --enable-lmpasswd was given.
3893 if test "${enable_lmpasswd+set}" = set; then :
3894 enableval=$enable_lmpasswd;
3896 for ol_val in auto yes no ; do
3897 if test "$enableval" = "$ol_val" ; then
3901 if test "$ol_arg" = "invalid" ; then
3902 as_fn_error "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3904 ol_enable_lmpasswd="$ol_arg"
3907 ol_enable_lmpasswd=no
3910 # end --enable-lmpasswd
3911 # OpenLDAP --enable-spasswd
3913 # Check whether --enable-spasswd was given.
3914 if test "${enable_spasswd+set}" = set; then :
3915 enableval=$enable_spasswd;
3917 for ol_val in auto yes no ; do
3918 if test "$enableval" = "$ol_val" ; then
3922 if test "$ol_arg" = "invalid" ; then
3923 as_fn_error "bad value $enableval for --enable-spasswd" "$LINENO" 5
3925 ol_enable_spasswd="$ol_arg"
3928 ol_enable_spasswd=no
3931 # end --enable-spasswd
3932 # OpenLDAP --enable-modules
3934 # Check whether --enable-modules was given.
3935 if test "${enable_modules+set}" = set; then :
3936 enableval=$enable_modules;
3938 for ol_val in auto yes no ; do
3939 if test "$enableval" = "$ol_val" ; then
3943 if test "$ol_arg" = "invalid" ; then
3944 as_fn_error "bad value $enableval for --enable-modules" "$LINENO" 5
3946 ol_enable_modules="$ol_arg"
3949 ol_enable_modules=no
3952 # end --enable-modules
3953 # OpenLDAP --enable-rewrite
3955 # Check whether --enable-rewrite was given.
3956 if test "${enable_rewrite+set}" = set; then :
3957 enableval=$enable_rewrite;
3959 for ol_val in auto yes no ; do
3960 if test "$enableval" = "$ol_val" ; then
3964 if test "$ol_arg" = "invalid" ; then
3965 as_fn_error "bad value $enableval for --enable-rewrite" "$LINENO" 5
3967 ol_enable_rewrite="$ol_arg"
3970 ol_enable_rewrite=auto
3973 # end --enable-rewrite
3974 # OpenLDAP --enable-rlookups
3976 # Check whether --enable-rlookups was given.
3977 if test "${enable_rlookups+set}" = set; then :
3978 enableval=$enable_rlookups;
3980 for ol_val in auto yes no ; do
3981 if test "$enableval" = "$ol_val" ; then
3985 if test "$ol_arg" = "invalid" ; then
3986 as_fn_error "bad value $enableval for --enable-rlookups" "$LINENO" 5
3988 ol_enable_rlookups="$ol_arg"
3991 ol_enable_rlookups=no
3994 # end --enable-rlookups
3995 # OpenLDAP --enable-slapi
3997 # Check whether --enable-slapi was given.
3998 if test "${enable_slapi+set}" = set; then :
3999 enableval=$enable_slapi;
4001 for ol_val in auto yes no ; do
4002 if test "$enableval" = "$ol_val" ; then
4006 if test "$ol_arg" = "invalid" ; then
4007 as_fn_error "bad value $enableval for --enable-slapi" "$LINENO" 5
4009 ol_enable_slapi="$ol_arg"
4015 # end --enable-slapi
4016 # OpenLDAP --enable-slp
4018 # Check whether --enable-slp was given.
4019 if test "${enable_slp+set}" = set; then :
4020 enableval=$enable_slp;
4022 for ol_val in auto yes no ; do
4023 if test "$enableval" = "$ol_val" ; then
4027 if test "$ol_arg" = "invalid" ; then
4028 as_fn_error "bad value $enableval for --enable-slp" "$LINENO" 5
4030 ol_enable_slp="$ol_arg"
4037 # OpenLDAP --enable-wrappers
4039 # Check whether --enable-wrappers was given.
4040 if test "${enable_wrappers+set}" = set; then :
4041 enableval=$enable_wrappers;
4043 for ol_val in auto yes no ; do
4044 if test "$enableval" = "$ol_val" ; then
4048 if test "$ol_arg" = "invalid" ; then
4049 as_fn_error "bad value $enableval for --enable-wrappers" "$LINENO" 5
4051 ol_enable_wrappers="$ol_arg"
4054 ol_enable_wrappers=no
4057 # end --enable-wrappers
4077 # Check whether --enable-xxslapbackends was given.
4078 if test "${enable_xxslapbackends+set}" = set; then :
4079 enableval=$enable_xxslapbackends;
4083 # OpenLDAP --enable-backends
4085 # Check whether --enable-backends was given.
4086 if test "${enable_backends+set}" = set; then :
4087 enableval=$enable_backends;
4089 for ol_val in no yes mod ; do
4090 if test "$enableval" = "$ol_val" ; then
4094 if test "$ol_arg" = "invalid" ; then
4095 as_fn_error "bad value $enableval for --enable-backends" "$LINENO" 5
4097 ol_enable_backends="$ol_arg"
4101 # end --enable-backends
4102 # OpenLDAP --enable-bdb
4104 # Check whether --enable-bdb was given.
4105 if test "${enable_bdb+set}" = set; then :
4106 enableval=$enable_bdb;
4108 for ol_val in no yes mod ; do
4109 if test "$enableval" = "$ol_val" ; then
4113 if test "$ol_arg" = "invalid" ; then
4114 as_fn_error "bad value $enableval for --enable-bdb" "$LINENO" 5
4116 ol_enable_bdb="$ol_arg"
4119 ol_enable_bdb=${ol_enable_backends:-no}
4123 # OpenLDAP --enable-dnssrv
4125 # Check whether --enable-dnssrv was given.
4126 if test "${enable_dnssrv+set}" = set; then :
4127 enableval=$enable_dnssrv;
4129 for ol_val in no yes mod ; do
4130 if test "$enableval" = "$ol_val" ; then
4134 if test "$ol_arg" = "invalid" ; then
4135 as_fn_error "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4137 ol_enable_dnssrv="$ol_arg"
4140 ol_enable_dnssrv=${ol_enable_backends:-no}
4143 # end --enable-dnssrv
4144 # OpenLDAP --enable-hdb
4146 # Check whether --enable-hdb was given.
4147 if test "${enable_hdb+set}" = set; then :
4148 enableval=$enable_hdb;
4150 for ol_val in no yes mod ; do
4151 if test "$enableval" = "$ol_val" ; then
4155 if test "$ol_arg" = "invalid" ; then
4156 as_fn_error "bad value $enableval for --enable-hdb" "$LINENO" 5
4158 ol_enable_hdb="$ol_arg"
4161 ol_enable_hdb=${ol_enable_backends:-no}
4165 # OpenLDAP --enable-ldap
4167 # Check whether --enable-ldap was given.
4168 if test "${enable_ldap+set}" = set; then :
4169 enableval=$enable_ldap;
4171 for ol_val in no yes mod ; do
4172 if test "$enableval" = "$ol_val" ; then
4176 if test "$ol_arg" = "invalid" ; then
4177 as_fn_error "bad value $enableval for --enable-ldap" "$LINENO" 5
4179 ol_enable_ldap="$ol_arg"
4182 ol_enable_ldap=${ol_enable_backends:-no}
4186 # OpenLDAP --enable-mdb
4188 # Check whether --enable-mdb was given.
4189 if test "${enable_mdb+set}" = set; then :
4190 enableval=$enable_mdb;
4192 for ol_val in no yes mod ; do
4193 if test "$enableval" = "$ol_val" ; then
4197 if test "$ol_arg" = "invalid" ; then
4198 as_fn_error "bad value $enableval for --enable-mdb" "$LINENO" 5
4200 ol_enable_mdb="$ol_arg"
4203 ol_enable_mdb=${ol_enable_backends:-yes}
4207 # OpenLDAP --enable-meta
4209 # Check whether --enable-meta was given.
4210 if test "${enable_meta+set}" = set; then :
4211 enableval=$enable_meta;
4213 for ol_val in no yes mod ; do
4214 if test "$enableval" = "$ol_val" ; then
4218 if test "$ol_arg" = "invalid" ; then
4219 as_fn_error "bad value $enableval for --enable-meta" "$LINENO" 5
4221 ol_enable_meta="$ol_arg"
4224 ol_enable_meta=${ol_enable_backends:-no}
4228 # OpenLDAP --enable-asyncmeta
4230 # Check whether --enable-asyncmeta was given.
4231 if test "${enable_asyncmeta+set}" = set; then :
4232 enableval=$enable_asyncmeta;
4234 for ol_val in no yes mod ; do
4235 if test "$enableval" = "$ol_val" ; then
4239 if test "$ol_arg" = "invalid" ; then
4240 as_fn_error "bad value $enableval for --enable-asyncmeta" "$LINENO" 5
4242 ol_enable_asyncmeta="$ol_arg"
4245 ol_enable_asyncmeta=${ol_enable_backends:-no}
4248 # end --enable-asyncmeta
4249 # OpenLDAP --enable-monitor
4251 # Check whether --enable-monitor was given.
4252 if test "${enable_monitor+set}" = set; then :
4253 enableval=$enable_monitor;
4255 for ol_val in no yes mod ; do
4256 if test "$enableval" = "$ol_val" ; then
4260 if test "$ol_arg" = "invalid" ; then
4261 as_fn_error "bad value $enableval for --enable-monitor" "$LINENO" 5
4263 ol_enable_monitor="$ol_arg"
4266 ol_enable_monitor=${ol_enable_backends:-yes}
4269 # end --enable-monitor
4270 # OpenLDAP --enable-ndb
4272 # Check whether --enable-ndb was given.
4273 if test "${enable_ndb+set}" = set; then :
4274 enableval=$enable_ndb;
4276 for ol_val in no yes mod ; do
4277 if test "$enableval" = "$ol_val" ; then
4281 if test "$ol_arg" = "invalid" ; then
4282 as_fn_error "bad value $enableval for --enable-ndb" "$LINENO" 5
4284 ol_enable_ndb="$ol_arg"
4287 ol_enable_ndb=${ol_enable_backends:-no}
4291 # OpenLDAP --enable-null
4293 # Check whether --enable-null was given.
4294 if test "${enable_null+set}" = set; then :
4295 enableval=$enable_null;
4297 for ol_val in no yes mod ; do
4298 if test "$enableval" = "$ol_val" ; then
4302 if test "$ol_arg" = "invalid" ; then
4303 as_fn_error "bad value $enableval for --enable-null" "$LINENO" 5
4305 ol_enable_null="$ol_arg"
4308 ol_enable_null=${ol_enable_backends:-no}
4312 # OpenLDAP --enable-passwd
4314 # Check whether --enable-passwd was given.
4315 if test "${enable_passwd+set}" = set; then :
4316 enableval=$enable_passwd;
4318 for ol_val in no yes mod ; do
4319 if test "$enableval" = "$ol_val" ; then
4323 if test "$ol_arg" = "invalid" ; then
4324 as_fn_error "bad value $enableval for --enable-passwd" "$LINENO" 5
4326 ol_enable_passwd="$ol_arg"
4329 ol_enable_passwd=${ol_enable_backends:-no}
4332 # end --enable-passwd
4333 # OpenLDAP --enable-perl
4335 # Check whether --enable-perl was given.
4336 if test "${enable_perl+set}" = set; then :
4337 enableval=$enable_perl;
4339 for ol_val in no yes mod ; do
4340 if test "$enableval" = "$ol_val" ; then
4344 if test "$ol_arg" = "invalid" ; then
4345 as_fn_error "bad value $enableval for --enable-perl" "$LINENO" 5
4347 ol_enable_perl="$ol_arg"
4350 ol_enable_perl=${ol_enable_backends:-no}
4354 # OpenLDAP --enable-relay
4356 # Check whether --enable-relay was given.
4357 if test "${enable_relay+set}" = set; then :
4358 enableval=$enable_relay;
4360 for ol_val in no yes mod ; do
4361 if test "$enableval" = "$ol_val" ; then
4365 if test "$ol_arg" = "invalid" ; then
4366 as_fn_error "bad value $enableval for --enable-relay" "$LINENO" 5
4368 ol_enable_relay="$ol_arg"
4371 ol_enable_relay=${ol_enable_backends:-yes}
4374 # end --enable-relay
4375 # OpenLDAP --enable-shell
4377 # Check whether --enable-shell was given.
4378 if test "${enable_shell+set}" = set; then :
4379 enableval=$enable_shell;
4381 for ol_val in no yes mod ; do
4382 if test "$enableval" = "$ol_val" ; then
4386 if test "$ol_arg" = "invalid" ; then
4387 as_fn_error "bad value $enableval for --enable-shell" "$LINENO" 5
4389 ol_enable_shell="$ol_arg"
4392 ol_enable_shell=${ol_enable_backends:-no}
4395 # end --enable-shell
4396 # OpenLDAP --enable-sock
4398 # Check whether --enable-sock was given.
4399 if test "${enable_sock+set}" = set; then :
4400 enableval=$enable_sock;
4402 for ol_val in no yes mod ; do
4403 if test "$enableval" = "$ol_val" ; then
4407 if test "$ol_arg" = "invalid" ; then
4408 as_fn_error "bad value $enableval for --enable-sock" "$LINENO" 5
4410 ol_enable_sock="$ol_arg"
4413 ol_enable_sock=${ol_enable_backends:-no}
4417 # OpenLDAP --enable-sql
4419 # Check whether --enable-sql was given.
4420 if test "${enable_sql+set}" = set; then :
4421 enableval=$enable_sql;
4423 for ol_val in no yes mod ; do
4424 if test "$enableval" = "$ol_val" ; then
4428 if test "$ol_arg" = "invalid" ; then
4429 as_fn_error "bad value $enableval for --enable-sql" "$LINENO" 5
4431 ol_enable_sql="$ol_arg"
4434 ol_enable_sql=${ol_enable_backends:-no}
4438 # OpenLDAP --enable-wt
4440 # Check whether --enable-wt was given.
4441 if test "${enable_wt+set}" = set; then :
4442 enableval=$enable_wt;
4444 for ol_val in no yes mod ; do
4445 if test "$enableval" = "$ol_val" ; then
4449 if test "$ol_arg" = "invalid" ; then
4450 as_fn_error "bad value $enableval for --enable-wt" "$LINENO" 5
4452 ol_enable_wt="$ol_arg"
4455 ol_enable_wt=${ol_enable_backends:-no}
4460 Overlays="accesslog \
4481 # Check whether --enable-xxslapoverlays was given.
4482 if test "${enable_xxslapoverlays+set}" = set; then :
4483 enableval=$enable_xxslapoverlays;
4487 # OpenLDAP --enable-overlays
4489 # Check whether --enable-overlays was given.
4490 if test "${enable_overlays+set}" = set; then :
4491 enableval=$enable_overlays;
4493 for ol_val in no yes mod ; do
4494 if test "$enableval" = "$ol_val" ; then
4498 if test "$ol_arg" = "invalid" ; then
4499 as_fn_error "bad value $enableval for --enable-overlays" "$LINENO" 5
4501 ol_enable_overlays="$ol_arg"
4505 # end --enable-overlays
4506 # OpenLDAP --enable-accesslog
4508 # Check whether --enable-accesslog was given.
4509 if test "${enable_accesslog+set}" = set; then :
4510 enableval=$enable_accesslog;
4512 for ol_val in no yes mod ; do
4513 if test "$enableval" = "$ol_val" ; then
4517 if test "$ol_arg" = "invalid" ; then
4518 as_fn_error "bad value $enableval for --enable-accesslog" "$LINENO" 5
4520 ol_enable_accesslog="$ol_arg"
4523 ol_enable_accesslog=${ol_enable_overlays:-no}
4526 # end --enable-accesslog
4528 # OpenLDAP --enable-auditlog
4530 # Check whether --enable-auditlog was given.
4531 if test "${enable_auditlog+set}" = set; then :
4532 enableval=$enable_auditlog;
4534 for ol_val in no yes mod ; do
4535 if test "$enableval" = "$ol_val" ; then
4539 if test "$ol_arg" = "invalid" ; then
4540 as_fn_error "bad value $enableval for --enable-auditlog" "$LINENO" 5
4542 ol_enable_auditlog="$ol_arg"
4545 ol_enable_auditlog=${ol_enable_overlays:-no}
4548 # end --enable-auditlog
4550 # OpenLDAP --enable-collect
4552 # Check whether --enable-collect was given.
4553 if test "${enable_collect+set}" = set; then :
4554 enableval=$enable_collect;
4556 for ol_val in no yes mod ; do
4557 if test "$enableval" = "$ol_val" ; then
4561 if test "$ol_arg" = "invalid" ; then
4562 as_fn_error "bad value $enableval for --enable-collect" "$LINENO" 5
4564 ol_enable_collect="$ol_arg"
4567 ol_enable_collect=${ol_enable_overlays:-no}
4570 # end --enable-collect
4572 # OpenLDAP --enable-constraint
4574 # Check whether --enable-constraint was given.
4575 if test "${enable_constraint+set}" = set; then :
4576 enableval=$enable_constraint;
4578 for ol_val in no yes mod ; do
4579 if test "$enableval" = "$ol_val" ; then
4583 if test "$ol_arg" = "invalid" ; then
4584 as_fn_error "bad value $enableval for --enable-constraint" "$LINENO" 5
4586 ol_enable_constraint="$ol_arg"
4589 ol_enable_constraint=${ol_enable_overlays:-no}
4592 # end --enable-constraint
4594 # OpenLDAP --enable-dds
4596 # Check whether --enable-dds was given.
4597 if test "${enable_dds+set}" = set; then :
4598 enableval=$enable_dds;
4600 for ol_val in no yes mod ; do
4601 if test "$enableval" = "$ol_val" ; then
4605 if test "$ol_arg" = "invalid" ; then
4606 as_fn_error "bad value $enableval for --enable-dds" "$LINENO" 5
4608 ol_enable_dds="$ol_arg"
4611 ol_enable_dds=${ol_enable_overlays:-no}
4616 # OpenLDAP --enable-deref
4618 # Check whether --enable-deref was given.
4619 if test "${enable_deref+set}" = set; then :
4620 enableval=$enable_deref;
4622 for ol_val in no yes mod ; do
4623 if test "$enableval" = "$ol_val" ; then
4627 if test "$ol_arg" = "invalid" ; then
4628 as_fn_error "bad value $enableval for --enable-deref" "$LINENO" 5
4630 ol_enable_deref="$ol_arg"
4633 ol_enable_deref=${ol_enable_overlays:-no}
4636 # end --enable-deref
4638 # OpenLDAP --enable-dyngroup
4640 # Check whether --enable-dyngroup was given.
4641 if test "${enable_dyngroup+set}" = set; then :
4642 enableval=$enable_dyngroup;
4644 for ol_val in no yes mod ; do
4645 if test "$enableval" = "$ol_val" ; then
4649 if test "$ol_arg" = "invalid" ; then
4650 as_fn_error "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4652 ol_enable_dyngroup="$ol_arg"
4655 ol_enable_dyngroup=${ol_enable_overlays:-no}
4658 # end --enable-dyngroup
4660 # OpenLDAP --enable-dynlist
4662 # Check whether --enable-dynlist was given.
4663 if test "${enable_dynlist+set}" = set; then :
4664 enableval=$enable_dynlist;
4666 for ol_val in no yes mod ; do
4667 if test "$enableval" = "$ol_val" ; then
4671 if test "$ol_arg" = "invalid" ; then
4672 as_fn_error "bad value $enableval for --enable-dynlist" "$LINENO" 5
4674 ol_enable_dynlist="$ol_arg"
4677 ol_enable_dynlist=${ol_enable_overlays:-no}
4680 # end --enable-dynlist
4682 # OpenLDAP --enable-memberof
4684 # Check whether --enable-memberof was given.
4685 if test "${enable_memberof+set}" = set; then :
4686 enableval=$enable_memberof;
4688 for ol_val in no yes mod ; do
4689 if test "$enableval" = "$ol_val" ; then
4693 if test "$ol_arg" = "invalid" ; then
4694 as_fn_error "bad value $enableval for --enable-memberof" "$LINENO" 5
4696 ol_enable_memberof="$ol_arg"
4699 ol_enable_memberof=${ol_enable_overlays:-no}
4702 # end --enable-memberof
4704 # OpenLDAP --enable-ppolicy
4706 # Check whether --enable-ppolicy was given.
4707 if test "${enable_ppolicy+set}" = set; then :
4708 enableval=$enable_ppolicy;
4710 for ol_val in no yes mod ; do
4711 if test "$enableval" = "$ol_val" ; then
4715 if test "$ol_arg" = "invalid" ; then
4716 as_fn_error "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4718 ol_enable_ppolicy="$ol_arg"
4721 ol_enable_ppolicy=${ol_enable_overlays:-no}
4724 # end --enable-ppolicy
4726 # OpenLDAP --enable-proxycache
4728 # Check whether --enable-proxycache was given.
4729 if test "${enable_proxycache+set}" = set; then :
4730 enableval=$enable_proxycache;
4732 for ol_val in no yes mod ; do
4733 if test "$enableval" = "$ol_val" ; then
4737 if test "$ol_arg" = "invalid" ; then
4738 as_fn_error "bad value $enableval for --enable-proxycache" "$LINENO" 5
4740 ol_enable_proxycache="$ol_arg"
4743 ol_enable_proxycache=${ol_enable_overlays:-no}
4746 # end --enable-proxycache
4748 # OpenLDAP --enable-refint
4750 # Check whether --enable-refint was given.
4751 if test "${enable_refint+set}" = set; then :
4752 enableval=$enable_refint;
4754 for ol_val in no yes mod ; do
4755 if test "$enableval" = "$ol_val" ; then
4759 if test "$ol_arg" = "invalid" ; then
4760 as_fn_error "bad value $enableval for --enable-refint" "$LINENO" 5
4762 ol_enable_refint="$ol_arg"
4765 ol_enable_refint=${ol_enable_overlays:-no}
4768 # end --enable-refint
4770 # OpenLDAP --enable-retcode
4772 # Check whether --enable-retcode was given.
4773 if test "${enable_retcode+set}" = set; then :
4774 enableval=$enable_retcode;
4776 for ol_val in no yes mod ; do
4777 if test "$enableval" = "$ol_val" ; then
4781 if test "$ol_arg" = "invalid" ; then
4782 as_fn_error "bad value $enableval for --enable-retcode" "$LINENO" 5
4784 ol_enable_retcode="$ol_arg"
4787 ol_enable_retcode=${ol_enable_overlays:-no}
4790 # end --enable-retcode
4792 # OpenLDAP --enable-rwm
4794 # Check whether --enable-rwm was given.
4795 if test "${enable_rwm+set}" = set; then :
4796 enableval=$enable_rwm;
4798 for ol_val in no yes mod ; do
4799 if test "$enableval" = "$ol_val" ; then
4803 if test "$ol_arg" = "invalid" ; then
4804 as_fn_error "bad value $enableval for --enable-rwm" "$LINENO" 5
4806 ol_enable_rwm="$ol_arg"
4809 ol_enable_rwm=${ol_enable_overlays:-no}
4814 # OpenLDAP --enable-seqmod
4816 # Check whether --enable-seqmod was given.
4817 if test "${enable_seqmod+set}" = set; then :
4818 enableval=$enable_seqmod;
4820 for ol_val in no yes mod ; do
4821 if test "$enableval" = "$ol_val" ; then
4825 if test "$ol_arg" = "invalid" ; then
4826 as_fn_error "bad value $enableval for --enable-seqmod" "$LINENO" 5
4828 ol_enable_seqmod="$ol_arg"
4831 ol_enable_seqmod=${ol_enable_overlays:-no}
4834 # end --enable-seqmod
4836 # OpenLDAP --enable-sssvlv
4838 # Check whether --enable-sssvlv was given.
4839 if test "${enable_sssvlv+set}" = set; then :
4840 enableval=$enable_sssvlv;
4842 for ol_val in no yes mod ; do
4843 if test "$enableval" = "$ol_val" ; then
4847 if test "$ol_arg" = "invalid" ; then
4848 as_fn_error "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4850 ol_enable_sssvlv="$ol_arg"
4853 ol_enable_sssvlv=${ol_enable_overlays:-no}
4856 # end --enable-sssvlv
4858 # OpenLDAP --enable-syncprov
4860 # Check whether --enable-syncprov was given.
4861 if test "${enable_syncprov+set}" = set; then :
4862 enableval=$enable_syncprov;
4864 for ol_val in no yes mod ; do
4865 if test "$enableval" = "$ol_val" ; then
4869 if test "$ol_arg" = "invalid" ; then
4870 as_fn_error "bad value $enableval for --enable-syncprov" "$LINENO" 5
4872 ol_enable_syncprov="$ol_arg"
4875 ol_enable_syncprov=${ol_enable_overlays:-yes}
4878 # end --enable-syncprov
4880 # OpenLDAP --enable-translucent
4882 # Check whether --enable-translucent was given.
4883 if test "${enable_translucent+set}" = set; then :
4884 enableval=$enable_translucent;
4886 for ol_val in no yes mod ; do
4887 if test "$enableval" = "$ol_val" ; then
4891 if test "$ol_arg" = "invalid" ; then
4892 as_fn_error "bad value $enableval for --enable-translucent" "$LINENO" 5
4894 ol_enable_translucent="$ol_arg"
4897 ol_enable_translucent=${ol_enable_overlays:-no}
4900 # end --enable-translucent
4902 # OpenLDAP --enable-unique
4904 # Check whether --enable-unique was given.
4905 if test "${enable_unique+set}" = set; then :
4906 enableval=$enable_unique;
4908 for ol_val in no yes mod ; do
4909 if test "$enableval" = "$ol_val" ; then
4913 if test "$ol_arg" = "invalid" ; then
4914 as_fn_error "bad value $enableval for --enable-unique" "$LINENO" 5
4916 ol_enable_unique="$ol_arg"
4919 ol_enable_unique=${ol_enable_overlays:-no}
4922 # end --enable-unique
4924 # OpenLDAP --enable-valsort
4926 # Check whether --enable-valsort was given.
4927 if test "${enable_valsort+set}" = set; then :
4928 enableval=$enable_valsort;
4930 for ol_val in no yes mod ; do
4931 if test "$enableval" = "$ol_val" ; then
4935 if test "$ol_arg" = "invalid" ; then
4936 as_fn_error "bad value $enableval for --enable-valsort" "$LINENO" 5
4938 ol_enable_valsort="$ol_arg"
4941 ol_enable_valsort=${ol_enable_overlays:-no}
4944 # end --enable-valsort
4947 # Check whether --enable-xxliboptions was given.
4948 if test "${enable_xxliboptions+set}" = set; then :
4949 enableval=$enable_xxliboptions;
4952 # Check whether --enable-static was given.
4953 if test "${enable_static+set}" = set; then :
4954 enableval=$enable_static; p=${PACKAGE-default}
4956 yes) enable_static=yes ;;
4957 no) enable_static=no ;;
4960 # Look at the argument we got. We use all the common list separators.
4961 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4962 for pkg in $enableval; do
4964 if test "X$pkg" = "X$p"; then
4976 # Check whether --enable-shared was given.
4977 if test "${enable_shared+set}" = set; then :
4978 enableval=$enable_shared; p=${PACKAGE-default}
4980 yes) enable_shared=yes ;;
4981 no) enable_shared=no ;;
4984 # Look at the argument we got. We use all the common list separators.
4985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4986 for pkg in $enableval; do
4988 if test "X$pkg" = "X$p"; then
5003 if test $ol_enable_slapd = no ; then
5004 if test $ol_enable_slapi = yes ; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
5006 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
5008 case "$ol_enable_backends" in yes | mod)
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
5010 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
5012 for i in $Backends; do
5013 eval "ol_tmp=\$ol_enable_$i"
5014 if test $ol_tmp != no ; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5016 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5017 eval "ol_enable_$i=no"
5020 if test $ol_enable_modules = yes ; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
5022 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
5024 if test $ol_enable_wrappers = yes ; then
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
5026 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
5028 if test $ol_enable_rlookups = yes ; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
5030 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
5032 if test $ol_enable_dynacl = yes ; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
5034 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
5036 if test $ol_enable_aci != no ; then
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
5038 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
5040 if test $ol_enable_rewrite = yes ; then
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
5042 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
5044 case "$ol_enable_overlays" in yes | mod)
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
5046 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
5048 for i in $Overlays; do
5049 eval "ol_tmp=\$ol_enable_$i"
5050 if test $ol_tmp != no ; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5052 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5053 eval "ol_enable_$i=no"
5057 # force settings to no
5062 ol_enable_modules=no
5063 ol_enable_rlookups=no
5066 ol_enable_wrappers=no
5068 ol_enable_rewrite=no
5070 elif test $ol_enable_modules != yes &&
5071 test $ol_enable_bdb = no &&
5072 test $ol_enable_dnssrv = no &&
5073 test $ol_enable_hdb = no &&
5074 test $ol_enable_ldap = no &&
5075 test $ol_enable_mdb = no &&
5076 test $ol_enable_meta = no &&
5077 test $ol_enable_asyncmeta = no &&
5078 test $ol_enable_monitor = no &&
5079 test $ol_enable_ndb = no &&
5080 test $ol_enable_null = no &&
5081 test $ol_enable_passwd = no &&
5082 test $ol_enable_perl = no &&
5083 test $ol_enable_relay = no &&
5084 test $ol_enable_shell = no &&
5085 test $ol_enable_sock = no &&
5086 test $ol_enable_sql = no &&
5087 test $ol_enable_wt = no ; then
5089 if test $ol_enable_slapd = yes ; then
5090 as_fn_error "slapd requires a backend" "$LINENO" 5
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5093 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5098 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5099 as_fn_error "--enable-meta requires --enable-ldap" "$LINENO" 5
5102 if test $ol_enable_asyncmeta/$ol_enable_ldap = yes/no ; then
5103 as_fn_error "--enable-asyncmeta requires --enable-ldap" "$LINENO" 5
5106 if test $ol_enable_lmpasswd = yes ; then
5107 if test $ol_with_tls = no ; then
5108 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
5112 if test $ol_enable_spasswd = yes ; then
5113 if test $ol_with_cyrus_sasl = no ; then
5114 as_fn_error "options require --with-cyrus-sasl" "$LINENO" 5
5116 ol_with_cyrus_sasl=yes
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5120 $as_echo "done" >&6; }
5174 BUILD_TRANSLUCENT=no
5178 SLAPD_STATIC_OVERLAYS=
5179 SLAPD_DYNAMIC_OVERLAYS=
5181 SLAPD_MODULES_LDFLAGS=
5182 SLAPD_MODULES_CPPFLAGS=
5184 SLAPD_STATIC_BACKENDS=back-ldif
5185 SLAPD_DYNAMIC_BACKENDS=
5210 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5217 *-*-aix*) if test -z "$CC" ; then
5218 case "$ol_with_threads" in
5219 auto | yes | posix) ol_aix_threads=yes ;;
5225 if test $ol_aix_threads = yes ; then
5226 if test -z "${CC}" ; then
5227 for ac_prog in cc_r xlc_r cc
5229 # Extract the first word of "$ac_prog", so it can be a program name with args.
5230 set dummy $ac_prog; ac_word=$2
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5232 $as_echo_n "checking for $ac_word... " >&6; }
5233 if test "${ac_cv_prog_CC+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5236 if test -n "$CC"; then
5237 ac_cv_prog_CC="$CC" # Let the user override the test.
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir=.
5244 for ac_exec_ext in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_CC="$ac_prog"
5247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 if test -n "$CC"; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5259 $as_echo "$CC" >&6; }
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5266 test -n "$CC" && break
5270 if test "$CC" = cc ; then
5271 if test $ol_with_threads != auto ; then
5272 as_fn_error "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5275 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5281 case ${CC} in cc_r | xlc_r)
5282 ol_with_threads=posix
5283 ol_cv_pthread_create=yes
5288 if test -z "${CC}"; then
5289 for ac_prog in cc gcc
5291 # Extract the first word of "$ac_prog", so it can be a program name with args.
5292 set dummy $ac_prog; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_CC+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5298 if test -n "$CC"; then
5299 ac_cv_prog_CC="$CC" # Let the user override the test.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_CC="$ac_prog"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 if test -n "$CC"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5321 $as_echo "$CC" >&6; }
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5328 test -n "$CC" && break
5330 test -n "$CC" || CC="missing"
5333 if test "${CC}" = "missing" ; then
5334 as_fn_error "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5338 if test -z "${AR}"; then
5339 for ac_prog in ar gar
5341 # Extract the first word of "$ac_prog", so it can be a program name with args.
5342 set dummy $ac_prog; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if test "${ac_cv_prog_AR+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5348 if test -n "$AR"; then
5349 ac_cv_prog_AR="$AR" # Let the user override the test.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_prog_AR="$ac_prog"
5359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 if test -n "$AR"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5371 $as_echo "$AR" >&6; }
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5378 test -n "$AR" && break
5380 test -n "$AR" || AR="missing"
5383 if test "${AR}" = "missing" ; then
5384 as_fn_error "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5392 # Check whether --enable-fast-install was given.
5393 if test "${enable_fast_install+set}" = set; then :
5394 enableval=$enable_fast_install; p=${PACKAGE-default}
5396 yes) enable_fast_install=yes ;;
5397 no) enable_fast_install=no ;;
5399 enable_fast_install=no
5400 # Look at the argument we got. We use all the common list separators.
5401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5402 for pkg in $enableval; do
5404 if test "X$pkg" = "X$p"; then
5405 enable_fast_install=yes
5412 enable_fast_install=yes
5416 DEPDIR="${am__leading_dot}deps"
5418 ac_config_commands="$ac_config_commands depfiles"
5421 am_make=${MAKE-make}
5422 cat > confinc << 'END'
5427 # If we don't find an include directive, just comment out the code.
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5429 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5433 # First try GNU make style include.
5434 echo "include confinc" > confmf
5435 # We grep out `Entering directory' and `Leaving directory'
5436 # messages which can occur if `w' ends up in MAKEFLAGS.
5437 # In particular we don't look at `^make:' because GNU make might
5438 # be invoked under some other name (usually "gmake"), in which
5439 # case it prints its new name instead of `make'.
5440 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5445 # Now try BSD make style include.
5446 if test "$am__include" = "#"; then
5447 echo '.include "confinc"' > confmf
5448 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5449 am__include=.include
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5457 $as_echo "$_am_result" >&6; }
5458 rm -f confinc confmf
5460 # Check whether --enable-dependency-tracking was given.
5461 if test "${enable_dependency_tracking+set}" = set; then :
5462 enableval=$enable_dependency_tracking;
5465 if test "x$enable_dependency_tracking" != xno; then
5466 am_depcomp="$ac_aux_dir/depcomp"
5471 if test "x$enable_dependency_tracking" != xno; then
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486 if test -n "$ac_tool_prefix"; then
5487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5488 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_CC+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 if test -n "$CC"; then
5495 ac_cv_prog_CC="$CC" # Let the user override the test.
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 if test -n "$CC"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5517 $as_echo "$CC" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5525 if test -z "$ac_cv_prog_CC"; then
5527 # Extract the first word of "gcc", so it can be a program name with args.
5528 set dummy gcc; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 if test -n "$ac_ct_CC"; then
5535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5544 ac_cv_prog_ac_ct_CC="gcc"
5545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5555 if test -n "$ac_ct_CC"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5557 $as_echo "$ac_ct_CC" >&6; }
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5563 if test "x$ac_ct_CC" = x; then
5566 case $cross_compiling:$ac_tool_warned in
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5570 ac_tool_warned=yes ;;
5578 if test -z "$CC"; then
5579 if test -n "$ac_tool_prefix"; then
5580 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5581 set dummy ${ac_tool_prefix}cc; ac_word=$2
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5583 $as_echo_n "checking for $ac_word... " >&6; }
5584 if test "${ac_cv_prog_CC+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5587 if test -n "$CC"; then
5588 ac_cv_prog_CC="$CC" # Let the user override the test.
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5597 ac_cv_prog_CC="${ac_tool_prefix}cc"
5598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 if test -n "$CC"; then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5610 $as_echo "$CC" >&6; }
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5613 $as_echo "no" >&6; }
5619 if test -z "$CC"; then
5620 # Extract the first word of "cc", so it can be a program name with args.
5621 set dummy cc; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if test "${ac_cv_prog_CC+set}" = set; then :
5625 $as_echo_n "(cached) " >&6
5627 if test -n "$CC"; then
5628 ac_cv_prog_CC="$CC" # Let the user override the test.
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 test -z "$as_dir" && as_dir=.
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5639 ac_prog_rejected=yes
5643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 if test $ac_prog_rejected = yes; then
5651 # We found a bogon in the path, so make sure we never use it.
5652 set dummy $ac_cv_prog_CC
5654 if test $# != 0; then
5655 # We chose a different compiler from the bogus one.
5656 # However, it has the same basename, so the bogon will be chosen
5657 # first if we set CC to just the basename; use the full file name.
5659 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5665 if test -n "$CC"; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5667 $as_echo "$CC" >&6; }
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5670 $as_echo "no" >&6; }
5675 if test -z "$CC"; then
5676 if test -n "$ac_tool_prefix"; then
5677 for ac_prog in cl.exe
5679 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5680 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if test "${ac_cv_prog_CC+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$CC"; then
5687 ac_cv_prog_CC="$CC" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707 if test -n "$CC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5709 $as_echo "$CC" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5716 test -n "$CC" && break
5719 if test -z "$CC"; then
5721 for ac_prog in cl.exe
5723 # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -n "$ac_ct_CC"; then
5731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_ac_ct_CC="$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5751 if test -n "$ac_ct_CC"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5753 $as_echo "$ac_ct_CC" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5760 test -n "$ac_ct_CC" && break
5763 if test "x$ac_ct_CC" = x; then
5766 case $cross_compiling:$ac_tool_warned in
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5779 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5781 as_fn_error "no acceptable C compiler found in \$PATH
5782 See \`config.log' for more details." "$LINENO" 5; }
5784 # Provide some information about the compiler.
5785 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5788 for ac_option in --version -v -V -qversion; do
5789 { { ac_try="$ac_compiler $ac_option >&5"
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5795 $as_echo "$ac_try_echo"; } >&5
5796 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5798 if test -s conftest.err; then
5800 ... rest of stderr output deleted ...
5801 10q' conftest.err >conftest.er1
5802 cat conftest.er1 >&5
5804 rm -f conftest.er1 conftest.err
5805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5806 test $ac_status = 0; }
5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810 /* end confdefs.h. */
5820 ac_clean_files_save=$ac_clean_files
5821 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5822 # Try to create an executable without -o first, disregard a.out.
5823 # It will help us diagnose broken compilers, and finding out an intuition
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5826 $as_echo_n "checking whether the C compiler works... " >&6; }
5827 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5829 # The possible output files:
5830 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5833 for ac_file in $ac_files
5836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5837 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5842 if { { ac_try="$ac_link_default"
5844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5845 *) ac_try_echo=$ac_try;;
5847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5848 $as_echo "$ac_try_echo"; } >&5
5849 (eval "$ac_link_default") 2>&5
5851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5852 test $ac_status = 0; }; then :
5853 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5855 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5856 # so that the user can short-circuit this test for compilers unknown to
5858 for ac_file in $ac_files ''
5860 test -f "$ac_file" || continue
5862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5865 # We found the default executable, but exeext='' is most
5869 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5873 # We set ac_cv_exeext here because the later test for it is not
5874 # safe: cross compilers may not add the suffix if given an `-o'
5875 # argument, so we may need to know it at that point already.
5876 # Even if this section looks crufty: it has the advantage of
5883 test "$ac_cv_exeext" = no && ac_cv_exeext=
5888 if test -z "$ac_file"; then :
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5890 $as_echo "no" >&6; }
5891 $as_echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5896 { as_fn_set_status 77
5897 as_fn_error "C compiler cannot create executables
5898 See \`config.log' for more details." "$LINENO" 5; }; }
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5901 $as_echo "yes" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5904 $as_echo_n "checking for C compiler default output file name... " >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5906 $as_echo "$ac_file" >&6; }
5907 ac_exeext=$ac_cv_exeext
5909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5910 ac_clean_files=$ac_clean_files_save
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5912 $as_echo_n "checking for suffix of executables... " >&6; }
5913 if { { ac_try="$ac_link"
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5919 $as_echo "$ac_try_echo"; } >&5
5920 (eval "$ac_link") 2>&5
5922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5923 test $ac_status = 0; }; then :
5924 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5925 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5926 # work properly (i.e., refer to `conftest.exe'), while it won't with
5928 for ac_file in conftest.exe conftest conftest.*; do
5929 test -f "$ac_file" || continue
5931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5940 as_fn_error "cannot compute suffix of executables: cannot compile and link
5941 See \`config.log' for more details." "$LINENO" 5; }
5943 rm -f conftest conftest$ac_cv_exeext
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5945 $as_echo "$ac_cv_exeext" >&6; }
5947 rm -f conftest.$ac_ext
5948 EXEEXT=$ac_cv_exeext
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5956 FILE *f = fopen ("conftest.out", "w");
5957 return ferror (f) || fclose (f) != 0;
5963 ac_clean_files="$ac_clean_files conftest.out"
5964 # Check that the compiler produces executables we can run. If not, either
5965 # the compiler is broken, or we cross compile.
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5967 $as_echo_n "checking whether we are cross compiling... " >&6; }
5968 if test "$cross_compiling" != yes; then
5969 { { ac_try="$ac_link"
5971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972 *) ac_try_echo=$ac_try;;
5974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5975 $as_echo "$ac_try_echo"; } >&5
5976 (eval "$ac_link") 2>&5
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5979 test $ac_status = 0; }
5980 if { ac_try='./conftest$ac_cv_exeext'
5981 { { case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5985 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5986 $as_echo "$ac_try_echo"; } >&5
5987 (eval "$ac_try") 2>&5
5989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5990 test $ac_status = 0; }; }; then
5993 if test "$cross_compiling" = maybe; then
5996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5997 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5998 as_fn_error "cannot run C compiled programs.
5999 If you meant to cross compile, use \`--host'.
6000 See \`config.log' for more details." "$LINENO" 5; }
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
6005 $as_echo "$cross_compiling" >&6; }
6007 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
6008 ac_clean_files=$ac_clean_files_save
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
6010 $as_echo_n "checking for suffix of object files... " >&6; }
6011 if test "${ac_cv_objext+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6025 rm -f conftest.o conftest.obj
6026 if { { ac_try="$ac_compile"
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6032 $as_echo "$ac_try_echo"; } >&5
6033 (eval "$ac_compile") 2>&5
6035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036 test $ac_status = 0; }; then :
6037 for ac_file in conftest.o conftest.obj conftest.*; do
6038 test -f "$ac_file" || continue;
6040 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
6041 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6046 $as_echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6051 as_fn_error "cannot compute suffix of object files: cannot compile
6052 See \`config.log' for more details." "$LINENO" 5; }
6054 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6057 $as_echo "$ac_cv_objext" >&6; }
6058 OBJEXT=$ac_cv_objext
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6061 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6062 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6079 if ac_fn_c_try_compile "$LINENO"; then :
6084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6089 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6090 if test $ac_compiler_gnu = yes; then
6095 ac_test_CFLAGS=${CFLAGS+set}
6096 ac_save_CFLAGS=$CFLAGS
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6098 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6099 if test "${ac_cv_prog_cc_g+set}" = set; then :
6100 $as_echo_n "(cached) " >&6
6102 ac_save_c_werror_flag=$ac_c_werror_flag
6103 ac_c_werror_flag=yes
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6117 if ac_fn_c_try_compile "$LINENO"; then :
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6132 if ac_fn_c_try_compile "$LINENO"; then :
6135 ac_c_werror_flag=$ac_save_c_werror_flag
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6148 if ac_fn_c_try_compile "$LINENO"; then :
6151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 ac_c_werror_flag=$ac_save_c_werror_flag
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6159 $as_echo "$ac_cv_prog_cc_g" >&6; }
6160 if test "$ac_test_CFLAGS" = set; then
6161 CFLAGS=$ac_save_CFLAGS
6162 elif test $ac_cv_prog_cc_g = yes; then
6163 if test "$GCC" = yes; then
6169 if test "$GCC" = yes; then
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 ac_cv_prog_cc_c89=no
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6186 #include <sys/types.h>
6187 #include <sys/stat.h>
6188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6189 struct buf { int x; };
6190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6191 static char *e (p, i)
6197 static char *f (char * (*g) (char **, int), char **p, ...)
6202 s = g (p, va_arg (v,int));
6207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6208 function prototypes and stuff, but not '\xHH' hex character constants.
6209 These don't provoke an error unfortunately, instead are silently treated
6210 as 'x'. The following induces an error, until -std is added to get
6211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6212 array size at least. It's necessary to write '\x00'==0 to get something
6213 that's true only with -std. */
6214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6217 inside strings and character constants. */
6219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6221 int test (int i, double x);
6222 struct s1 {int (*f) (int a);};
6223 struct s2 {int (*f) (double a);};
6224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6238 CC="$ac_save_CC $ac_arg"
6239 if ac_fn_c_try_compile "$LINENO"; then :
6240 ac_cv_prog_cc_c89=$ac_arg
6242 rm -f core conftest.err conftest.$ac_objext
6243 test "x$ac_cv_prog_cc_c89" != "xno" && break
6245 rm -f conftest.$ac_ext
6250 case "x$ac_cv_prog_cc_c89" in
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6253 $as_echo "none needed" >&6; } ;;
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6256 $as_echo "unsupported" >&6; } ;;
6258 CC="$CC $ac_cv_prog_cc_c89"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6262 if test "x$ac_cv_prog_cc_c89" != xno; then :
6267 ac_cpp='$CPP $CPPFLAGS'
6268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272 depcc="$CC" am_compiler_list=
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6275 $as_echo_n "checking dependency style of $depcc... " >&6; }
6276 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6279 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6280 # We make a subdir and do the tests there. Otherwise we can end up
6281 # making bogus files that we don't know about and never remove. For
6282 # instance it was reported that on HP-UX the gcc test will end up
6283 # making a dummy file named `D' -- because `-MD' means `put the output
6286 # Copy depcomp to subdir because otherwise we won't find it if we're
6287 # using a relative directory.
6288 cp "$am_depcomp" conftest.dir
6290 # We will build objects and dependencies in a subdirectory because
6291 # it helps to detect inapplicable dependency modes. For instance
6292 # both Tru64's cc and ICC support -MD to output dependencies as a
6293 # side effect of compilation, but ICC will put the dependencies in
6294 # the current directory while Tru64 will put them in the object
6298 am_cv_CC_dependencies_compiler_type=none
6299 if test "$am_compiler_list" = ""; then
6300 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6302 for depmode in $am_compiler_list; do
6303 # Setup a source with many dependencies, because some compilers
6304 # like to wrap large dependency lists on column 80 (with \), and
6305 # we should not choose a depcomp mode which is confused by this.
6307 # We need to recreate these files for each test, as the compiler may
6308 # overwrite some of them when testing with obscure command lines.
6309 # This happens at least with the AIX C compiler.
6311 for i in 1 2 3 4 5 6; do
6312 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6313 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6314 # Solaris 8's {/usr,}/bin/sh.
6315 touch sub/conftst$i.h
6317 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6321 # after this tag, mechanisms are not by side-effect, so they'll
6322 # only be used when explicitly requested
6323 if test "x$enable_dependency_tracking" = xyes; then
6331 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6332 # mode. It turns out that the SunPro C++ compiler does not properly
6333 # handle `-M -o', and we need to detect this.
6334 if depmode=$depmode \
6335 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6336 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6337 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6338 >/dev/null 2>conftest.err &&
6339 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6340 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6341 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6342 # icc doesn't choke on unknown options, it will just issue warnings
6343 # or remarks (even with -Werror). So we grep stderr for any message
6344 # that says an option was ignored or not supported.
6345 # When given -MP, icc 7.0 and 7.1 complain thusly:
6346 # icc: Command line warning: ignoring option '-M'; no argument required
6347 # The diagnosis changed in icc 8.0:
6348 # icc: Command line remark: option '-MP' not supported
6349 if (grep 'ignoring option' conftest.err ||
6350 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6351 am_cv_CC_dependencies_compiler_type=$depmode
6360 am_cv_CC_dependencies_compiler_type=none
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6365 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6366 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6371 test "x$enable_dependency_tracking" != xno \
6372 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6374 am__fastdepCC_FALSE='#'
6376 am__fastdepCC_TRUE='#'
6377 am__fastdepCC_FALSE=
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6382 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6383 if test "${lt_cv_path_SED+set}" = set; then :
6384 $as_echo_n "(cached) " >&6
6386 # Loop through the user's path and test for sed and gsed.
6387 # Then use that list of sed's as ones to test for truncation.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for lt_ac_prog in sed gsed; do
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6396 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6403 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6404 # along with /bin/sed that truncates output.
6405 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6406 test ! -f $lt_ac_sed && continue
6407 cat /dev/null > conftest.in
6409 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6410 # Check for GNU sed and select it if it is found.
6411 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6412 lt_cv_path_SED=$lt_ac_sed
6416 cat conftest.in conftest.in >conftest.tmp
6417 mv conftest.tmp conftest.in
6418 cp conftest.in conftest.nl
6420 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6421 cmp -s conftest.out conftest.nl || break
6422 # 10000 chars as input seems more than enough
6423 test $lt_ac_count -gt 10 && break
6424 lt_ac_count=`expr $lt_ac_count + 1`
6425 if test $lt_ac_count -gt $lt_ac_max; then
6426 lt_ac_max=$lt_ac_count
6427 lt_cv_path_SED=$lt_ac_sed
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6436 $as_echo "$SED" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6439 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6440 if test "${ac_cv_path_GREP+set}" = set; then :
6441 $as_echo_n "(cached) " >&6
6443 if test -z "$GREP"; then
6444 ac_path_GREP_found=false
6445 # Loop through the user's path and test for each of PROGNAME-LIST
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6450 test -z "$as_dir" && as_dir=.
6451 for ac_prog in grep ggrep; do
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6454 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6455 # Check for GNU ac_path_GREP and select it if it is found.
6456 # Check for GNU $ac_path_GREP
6457 case `"$ac_path_GREP" --version 2>&1` in
6459 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6462 $as_echo_n 0123456789 >"conftest.in"
6465 cat "conftest.in" "conftest.in" >"conftest.tmp"
6466 mv "conftest.tmp" "conftest.in"
6467 cp "conftest.in" "conftest.nl"
6468 $as_echo 'GREP' >> "conftest.nl"
6469 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6471 as_fn_arith $ac_count + 1 && ac_count=$as_val
6472 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6473 # Best one so far, save it but keep looking for a better one
6474 ac_cv_path_GREP="$ac_path_GREP"
6475 ac_path_GREP_max=$ac_count
6477 # 10*(2^10) chars as input seems more than enough
6478 test $ac_count -gt 10 && break
6480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6483 $ac_path_GREP_found && break 3
6488 if test -z "$ac_cv_path_GREP"; then
6489 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6492 ac_cv_path_GREP=$GREP
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6497 $as_echo "$ac_cv_path_GREP" >&6; }
6498 GREP="$ac_cv_path_GREP"
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6502 $as_echo_n "checking for egrep... " >&6; }
6503 if test "${ac_cv_path_EGREP+set}" = set; then :
6504 $as_echo_n "(cached) " >&6
6506 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6507 then ac_cv_path_EGREP="$GREP -E"
6509 if test -z "$EGREP"; then
6510 ac_path_EGREP_found=false
6511 # Loop through the user's path and test for each of PROGNAME-LIST
6512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6516 test -z "$as_dir" && as_dir=.
6517 for ac_prog in egrep; do
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6520 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6521 # Check for GNU ac_path_EGREP and select it if it is found.
6522 # Check for GNU $ac_path_EGREP
6523 case `"$ac_path_EGREP" --version 2>&1` in
6525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6528 $as_echo_n 0123456789 >"conftest.in"
6531 cat "conftest.in" "conftest.in" >"conftest.tmp"
6532 mv "conftest.tmp" "conftest.in"
6533 cp "conftest.in" "conftest.nl"
6534 $as_echo 'EGREP' >> "conftest.nl"
6535 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6537 as_fn_arith $ac_count + 1 && ac_count=$as_val
6538 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6539 # Best one so far, save it but keep looking for a better one
6540 ac_cv_path_EGREP="$ac_path_EGREP"
6541 ac_path_EGREP_max=$ac_count
6543 # 10*(2^10) chars as input seems more than enough
6544 test $ac_count -gt 10 && break
6546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6549 $ac_path_EGREP_found && break 3
6554 if test -z "$ac_cv_path_EGREP"; then
6555 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6558 ac_cv_path_EGREP=$EGREP
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6564 $as_echo "$ac_cv_path_EGREP" >&6; }
6565 EGREP="$ac_cv_path_EGREP"
6569 # Check whether --with-gnu-ld was given.
6570 if test "${with_gnu_ld+set}" = set; then :
6571 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6577 if test "$GCC" = yes; then
6578 # Check if gcc -print-prog-name=ld gives a path.
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6580 $as_echo_n "checking for ld used by $CC... " >&6; }
6583 # gcc leaves a trailing carriage return which upsets mingw
6584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6589 # Accept absolute paths.
6591 re_direlt='/[^/][^/]*/\.\./'
6592 # Canonicalize the pathname of ld
6593 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6594 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6595 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6597 test -z "$LD" && LD="$ac_prog"
6600 # If it fails, then pretend we aren't using GCC.
6604 # If it is relative, then search for the first ld in PATH.
6608 elif test "$with_gnu_ld" = yes; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6610 $as_echo_n "checking for GNU ld... " >&6; }
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6613 $as_echo_n "checking for non-GNU ld... " >&6; }
6615 if test "${lt_cv_path_LD+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6618 if test -z "$LD"; then
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 for ac_dir in $PATH; do
6622 test -z "$ac_dir" && ac_dir=.
6623 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6624 lt_cv_path_LD="$ac_dir/$ac_prog"
6625 # Check to see if the program is GNU ld. I'd rather use --version,
6626 # but apparently some variants of GNU ld only accept -v.
6627 # Break only if it was the GNU/non-GNU ld that we prefer.
6628 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6629 *GNU* | *'with BFD'*)
6630 test "$with_gnu_ld" != no && break
6633 test "$with_gnu_ld" != yes && break
6640 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6645 if test -n "$LD"; then
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6647 $as_echo "$LD" >&6; }
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6650 $as_echo "no" >&6; }
6652 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6655 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6656 $as_echo_n "(cached) " >&6
6658 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6659 case `$LD -v 2>&1 </dev/null` in
6660 *GNU* | *'with BFD'*)
6661 lt_cv_prog_gnu_ld=yes
6664 lt_cv_prog_gnu_ld=no
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6669 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6670 with_gnu_ld=$lt_cv_prog_gnu_ld
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6674 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6675 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6678 lt_cv_ld_reload_flag='-r'
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6681 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6682 reload_flag=$lt_cv_ld_reload_flag
6683 case $reload_flag in
6685 *) reload_flag=" $reload_flag" ;;
6687 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6690 if test "$GCC" = yes; then
6691 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6693 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6699 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6700 if test "${lt_cv_path_NM+set}" = set; then :
6701 $as_echo_n "(cached) " >&6
6703 if test -n "$NM"; then
6704 # Let the user override the test.
6707 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6708 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6710 test -z "$ac_dir" && ac_dir=.
6711 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6712 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6713 # Check to see if the nm accepts a BSD-compat flag.
6714 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6715 # nm: unknown option "B" ignored
6716 # Tru64's nm complains that /dev/null is an invalid object file
6717 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6718 */dev/null* | *'Invalid file or object type'*)
6719 lt_cv_path_NM="$tmp_nm -B"
6723 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6725 lt_cv_path_NM="$tmp_nm -p"
6729 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6730 continue # so that we can try to find one that supports BSD flags
6737 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6741 $as_echo "$lt_cv_path_NM" >&6; }
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6745 $as_echo_n "checking whether ln -s works... " >&6; }
6747 if test "$LN_S" = "ln -s"; then
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6749 $as_echo "yes" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6752 $as_echo "no, using $LN_S" >&6; }
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6756 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6757 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6758 $as_echo_n "(cached) " >&6
6760 lt_cv_file_magic_cmd='$MAGIC_CMD'
6761 lt_cv_file_magic_test_file=
6762 lt_cv_deplibs_check_method='unknown'
6763 # Need to set the preceding variable on all platforms that support
6764 # interlibrary dependencies.
6765 # 'none' -- dependencies not supported.
6766 # `unknown' -- same as none, but documents that we really don't know.
6767 # 'pass_all' -- all dependencies passed with no checks.
6768 # 'test_compile' -- check by making test program.
6769 # 'file_magic [[regex]]' -- check by looking for files in library path
6770 # which responds to the $file_magic_cmd with a given extended regex.
6771 # If you have `file' or equivalent on your system and you're not sure
6772 # whether `pass_all' will *always* work, you probably want this one.
6776 lt_cv_deplibs_check_method=pass_all
6780 lt_cv_deplibs_check_method=pass_all
6784 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6785 lt_cv_file_magic_cmd='/usr/bin/file -L'
6786 lt_cv_file_magic_test_file=/shlib/libc.so
6790 # func_win32_libid is a shell function defined in ltmain.sh
6791 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6792 lt_cv_file_magic_cmd='func_win32_libid'
6796 # Base MSYS/MinGW do not provide the 'file' command needed by
6797 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6798 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6799 lt_cv_file_magic_cmd='$OBJDUMP -f'
6802 darwin* | rhapsody*)
6803 lt_cv_deplibs_check_method=pass_all
6806 freebsd* | kfreebsd*-gnu | dragonfly*)
6807 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6810 # Not sure whether the presence of OpenBSD here was a mistake.
6811 # Let's accept both of them until this is cleared up.
6812 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6813 lt_cv_file_magic_cmd=/usr/bin/file
6814 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6818 lt_cv_deplibs_check_method=pass_all
6823 lt_cv_deplibs_check_method=pass_all
6826 hpux10.20* | hpux11*)
6827 lt_cv_file_magic_cmd=/usr/bin/file
6830 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6831 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6834 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]'
6835 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6838 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6839 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6844 irix5* | irix6* | nonstopux*)
6846 *-32|*"-32 ") libmagic=32-bit;;
6847 *-n32|*"-n32 ") libmagic=N32;;
6848 *-64|*"-64 ") libmagic=64-bit;;
6849 *) libmagic=never-match;;
6851 lt_cv_deplibs_check_method=pass_all
6854 # This must be Linux ELF.
6856 lt_cv_deplibs_check_method=pass_all
6860 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6869 lt_cv_file_magic_cmd=/usr/bin/file
6870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6874 lt_cv_deplibs_check_method=unknown
6878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6885 osf3* | osf4* | osf5*)
6886 lt_cv_deplibs_check_method=pass_all
6890 lt_cv_deplibs_check_method=pass_all
6894 lt_cv_deplibs_check_method=pass_all
6897 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6898 case $host_vendor in
6900 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]'
6901 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6904 lt_cv_deplibs_check_method=pass_all
6907 lt_cv_file_magic_cmd='/bin/file'
6908 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6911 lt_cv_file_magic_cmd='/bin/file'
6912 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6913 lt_cv_file_magic_test_file=/lib/libc.so
6916 lt_cv_deplibs_check_method=pass_all
6921 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6922 lt_cv_deplibs_check_method=pass_all
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6928 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6929 file_magic_cmd=$lt_cv_file_magic_cmd
6930 deplibs_check_method=$lt_cv_deplibs_check_method
6931 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6936 # If no C compiler was specified, use CC.
6939 # Allow CC to be a program name with arguments.
6943 # Check whether --enable-libtool-lock was given.
6944 if test "${enable_libtool_lock+set}" = set; then :
6945 enableval=$enable_libtool_lock;
6948 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6950 # Some flags need to be propagated to the compiler or linker for good
6954 # Find out which ABI we are using.
6955 echo 'int i;' > conftest.$ac_ext
6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6957 (eval $ac_compile) 2>&5
6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6960 test $ac_status = 0; }; then
6961 case `/usr/bin/file conftest.$ac_objext` in
6973 # Find out which ABI we are using.
6974 echo '#line 6974 "configure"' > conftest.$ac_ext
6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6976 (eval $ac_compile) 2>&5
6978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6979 test $ac_status = 0; }; then
6980 if test "$lt_cv_prog_gnu_ld" = yes; then
6981 case `/usr/bin/file conftest.$ac_objext` in
6983 LD="${LD-ld} -melf32bsmip"
6986 LD="${LD-ld} -melf32bmipn32"
6989 LD="${LD-ld} -melf64bmip"
6993 case `/usr/bin/file conftest.$ac_objext` in
7009 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7010 # Find out which ABI we are using.
7011 echo 'int i;' > conftest.$ac_ext
7012 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7013 (eval $ac_compile) 2>&5
7015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7016 test $ac_status = 0; }; then
7017 case `/usr/bin/file conftest.o` in
7021 LD="${LD-ld} -m elf_i386"
7023 ppc64-*linux*|powerpc64-*linux*)
7024 LD="${LD-ld} -m elf32ppclinux"
7027 LD="${LD-ld} -m elf_s390"
7030 LD="${LD-ld} -m elf32_sparc"
7037 LD="${LD-ld} -m elf_x86_64"
7039 ppc*-*linux*|powerpc*-*linux*)
7040 LD="${LD-ld} -m elf64ppc"
7043 LD="${LD-ld} -m elf64_s390"
7046 LD="${LD-ld} -m elf64_sparc"
7056 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7057 SAVE_CFLAGS="$CFLAGS"
7058 CFLAGS="$CFLAGS -belf"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7060 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7061 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7062 $as_echo_n "(cached) " >&6
7065 ac_cpp='$CPP $CPPFLAGS'
7066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7071 /* end confdefs.h. */
7081 if ac_fn_c_try_link "$LINENO"; then :
7082 lt_cv_cc_needs_belf=yes
7084 lt_cv_cc_needs_belf=no
7086 rm -f core conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7089 ac_cpp='$CPP $CPPFLAGS'
7090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7096 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7097 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7098 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7099 CFLAGS="$SAVE_CFLAGS"
7102 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7103 if test -n "$ac_tool_prefix"; then
7104 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7111 if test -n "$DLLTOOL"; then
7112 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 test -z "$as_dir" && as_dir=.
7119 for ac_exec_ext in '' $ac_executable_extensions; do
7120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 DLLTOOL=$ac_cv_prog_DLLTOOL
7132 if test -n "$DLLTOOL"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7134 $as_echo "$DLLTOOL" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7142 if test -z "$ac_cv_prog_DLLTOOL"; then
7143 ac_ct_DLLTOOL=$DLLTOOL
7144 # Extract the first word of "dlltool", so it can be a program name with args.
7145 set dummy dlltool; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7151 if test -n "$ac_ct_DLLTOOL"; then
7152 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7172 if test -n "$ac_ct_DLLTOOL"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7174 $as_echo "$ac_ct_DLLTOOL" >&6; }
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7180 if test "x$ac_ct_DLLTOOL" = x; then
7183 case $cross_compiling:$ac_tool_warned in
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7189 DLLTOOL=$ac_ct_DLLTOOL
7192 DLLTOOL="$ac_cv_prog_DLLTOOL"
7195 if test -n "$ac_tool_prefix"; then
7196 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}as; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if test "${ac_cv_prog_AS+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7203 if test -n "$AS"; then
7204 ac_cv_prog_AS="$AS" # Let the user override the test.
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 test -z "$as_dir" && as_dir=.
7211 for ac_exec_ext in '' $ac_executable_extensions; do
7212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7213 ac_cv_prog_AS="${ac_tool_prefix}as"
7214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 if test -n "$AS"; then
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7226 $as_echo "$AS" >&6; }
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7234 if test -z "$ac_cv_prog_AS"; then
7236 # Extract the first word of "as", so it can be a program name with args.
7237 set dummy as; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7243 if test -n "$ac_ct_AS"; then
7244 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_ac_ct_AS="as"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7264 if test -n "$ac_ct_AS"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7266 $as_echo "$ac_ct_AS" >&6; }
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7272 if test "x$ac_ct_AS" = x; then
7275 case $cross_compiling:$ac_tool_warned in
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279 ac_tool_warned=yes ;;
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -n "$OBJDUMP"; then
7296 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7305 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315 OBJDUMP=$ac_cv_prog_OBJDUMP
7316 if test -n "$OBJDUMP"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7318 $as_echo "$OBJDUMP" >&6; }
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7326 if test -z "$ac_cv_prog_OBJDUMP"; then
7327 ac_ct_OBJDUMP=$OBJDUMP
7328 # Extract the first word of "objdump", so it can be a program name with args.
7329 set dummy objdump; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7335 if test -n "$ac_ct_OBJDUMP"; then
7336 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7356 if test -n "$ac_ct_OBJDUMP"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7358 $as_echo "$ac_ct_OBJDUMP" >&6; }
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7364 if test "x$ac_ct_OBJDUMP" = x; then
7367 case $cross_compiling:$ac_tool_warned in
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7373 OBJDUMP=$ac_ct_OBJDUMP
7376 OBJDUMP="$ac_cv_prog_OBJDUMP"
7383 need_locks="$enable_libtool_lock"
7387 ac_cpp='$CPP $CPPFLAGS'
7388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7392 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7393 # On Suns, sometimes $CPP names a directory.
7394 if test -n "$CPP" && test -d "$CPP"; then
7397 if test -z "$CPP"; then
7398 if test "${ac_cv_prog_CPP+set}" = set; then :
7399 $as_echo_n "(cached) " >&6
7401 # Double quotes because CPP needs to be expanded
7402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7405 for ac_c_preproc_warn_flag in '' yes
7407 # Use a header file that comes with gcc, so configuring glibc
7408 # with a fresh cross-compiler works.
7409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7410 # <limits.h> exists even on freestanding compilers.
7411 # On the NeXT, cc -E runs the code through the compiler's parser,
7412 # not just through cpp. "Syntax error" is here to catch this case.
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7416 # include <limits.h>
7418 # include <assert.h>
7422 if ac_fn_c_try_cpp "$LINENO"; then :
7425 # Broken: fails on valid input.
7428 rm -f conftest.err conftest.$ac_ext
7430 # OK, works on sane cases. Now check whether nonexistent headers
7431 # can be detected and how.
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433 /* end confdefs.h. */
7434 #include <ac_nonexistent.h>
7436 if ac_fn_c_try_cpp "$LINENO"; then :
7437 # Broken: success on invalid input.
7440 # Passes both tests.
7444 rm -f conftest.err conftest.$ac_ext
7447 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7448 rm -f conftest.err conftest.$ac_ext
7449 if $ac_preproc_ok; then :
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7462 $as_echo "$CPP" >&6; }
7464 for ac_c_preproc_warn_flag in '' yes
7466 # Use a header file that comes with gcc, so configuring glibc
7467 # with a fresh cross-compiler works.
7468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7469 # <limits.h> exists even on freestanding compilers.
7470 # On the NeXT, cc -E runs the code through the compiler's parser,
7471 # not just through cpp. "Syntax error" is here to catch this case.
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7475 # include <limits.h>
7477 # include <assert.h>
7481 if ac_fn_c_try_cpp "$LINENO"; then :
7484 # Broken: fails on valid input.
7487 rm -f conftest.err conftest.$ac_ext
7489 # OK, works on sane cases. Now check whether nonexistent headers
7490 # can be detected and how.
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h. */
7493 #include <ac_nonexistent.h>
7495 if ac_fn_c_try_cpp "$LINENO"; then :
7496 # Broken: success on invalid input.
7499 # Passes both tests.
7503 rm -f conftest.err conftest.$ac_ext
7506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7507 rm -f conftest.err conftest.$ac_ext
7508 if $ac_preproc_ok; then :
7511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7513 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7514 See \`config.log' for more details." "$LINENO" 5; }
7518 ac_cpp='$CPP $CPPFLAGS'
7519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7525 $as_echo_n "checking for ANSI C header files... " >&6; }
7526 if test "${ac_cv_header_stdc+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 ac_cv_header_stdc=yes
7547 ac_cv_header_stdc=no
7549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7551 if test $ac_cv_header_stdc = yes; then
7552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7559 $EGREP "memchr" >/dev/null 2>&1; then :
7562 ac_cv_header_stdc=no
7568 if test $ac_cv_header_stdc = yes; then
7569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7576 $EGREP "free" >/dev/null 2>&1; then :
7579 ac_cv_header_stdc=no
7585 if test $ac_cv_header_stdc = yes; then
7586 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7587 if test "$cross_compiling" = yes; then :
7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7591 /* end confdefs.h. */
7594 #if ((' ' & 0x0FF) == 0x020)
7595 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7596 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7598 # define ISLOWER(c) \
7599 (('a' <= (c) && (c) <= 'i') \
7600 || ('j' <= (c) && (c) <= 'r') \
7601 || ('s' <= (c) && (c) <= 'z'))
7602 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7605 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7610 for (i = 0; i < 256; i++)
7611 if (XOR (islower (i), ISLOWER (i))
7612 || toupper (i) != TOUPPER (i))
7617 if ac_fn_c_try_run "$LINENO"; then :
7620 ac_cv_header_stdc=no
7622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7623 conftest.$ac_objext conftest.beam conftest.$ac_ext
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7629 $as_echo "$ac_cv_header_stdc" >&6; }
7630 if test $ac_cv_header_stdc = yes; then
7632 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7636 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7637 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7638 inttypes.h stdint.h unistd.h
7640 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7641 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7643 eval as_val=\$$as_ac_Header
7644 if test "x$as_val" = x""yes; then :
7645 cat >>confdefs.h <<_ACEOF
7646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7654 for ac_header in dlfcn.h
7656 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7657 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7658 cat >>confdefs.h <<_ACEOF
7659 #define HAVE_DLFCN_H 1
7667 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7669 # find the maximum length of command line arguments
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7671 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7672 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7680 # On DJGPP, this test can blow up pretty badly due to problems in libc
7681 # (any single argument exceeding 2000 bytes causes a buffer overrun
7682 # during glob expansion). Even if it were fixed, the result of this
7683 # check would be larger than it should be.
7684 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7688 # Under GNU Hurd, this test is not required because there is
7689 # no limit to the length of command line arguments.
7690 # Libtool will interpret -1 as no limit whatsoever
7691 lt_cv_sys_max_cmd_len=-1;
7695 # On Win9x/ME, this test blows up -- it succeeds, but takes
7696 # about 5 minutes as the teststring grows exponentially.
7697 # Worse, since 9x/ME are not pre-emptively multitasking,
7698 # you end up with a "frozen" computer, even though with patience
7699 # the test eventually succeeds (with a max line length of 256k).
7700 # Instead, let's just punt: use the minimum linelength reported by
7701 # all of the supported platforms: 8192 (on NT/2K/XP).
7702 lt_cv_sys_max_cmd_len=8192;
7706 # On AmigaOS with pdksh, this test takes hours, literally.
7707 # So we just punt and use a minimum line length of 8192.
7708 lt_cv_sys_max_cmd_len=8192;
7711 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7712 # This has been around since 386BSD, at least. Likely further.
7713 if test -x /sbin/sysctl; then
7714 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7715 elif test -x /usr/sbin/sysctl; then
7716 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7718 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7720 # And add a safety zone
7721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7725 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7726 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7727 # nice to cause kernel panics so lets avoid the loop below.
7728 # First set a reasonable default.
7729 lt_cv_sys_max_cmd_len=16384
7731 if test -x /sbin/sysconfig; then
7732 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7733 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7738 # If test is not a shell built-in, we'll probably end up computing a
7739 # maximum length that is only half of the actual maximum length, but
7741 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7742 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7743 = "XX$teststring") >/dev/null 2>&1 &&
7744 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7745 lt_cv_sys_max_cmd_len=$new_result &&
7746 test $i != 17 # 1/2 MB should be enough
7749 teststring=$teststring$teststring
7752 # Add a significant safety factor because C++ compilers can tack on massive
7753 # amounts of additional arguments before passing them to the linker.
7754 # It appears as though 1/2 is a usable value.
7755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7761 if test -n $lt_cv_sys_max_cmd_len ; then
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7763 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7766 $as_echo "none" >&6; }
7772 # Check for command to grab the raw symbol name followed by C symbol from nm.
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7774 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7775 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7779 # These are sane defaults that work on at least a few old systems.
7780 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7782 # Character class describing NM global symbol codes.
7783 symcode='[BCDEGRST]'
7785 # Regexp to match symbols that can be accessed directly from C.
7786 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7788 # Transform an extracted symbol line into a proper C declaration
7789 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7791 # Transform an extracted symbol line into symbol name and symbol address
7792 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'"
7794 # Define system-specific variables.
7799 cygwin* | mingw* | pw32*)
7800 symcode='[ABCDGISTW]'
7802 hpux*) # Its linker distinguishes data from code symbols
7803 if test "$host_cpu" = ia64; then
7804 symcode='[ABCDEGRST]'
7806 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7807 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'"
7810 if test "$host_cpu" = ia64; then
7811 symcode='[ABCDGIRSTW]'
7812 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7813 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'"
7817 symcode='[BCDEGRST]'
7820 symcode='[BCDEGQRST]'
7830 # Handle CRLF in mingw tool chain
7834 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7838 # If we're using GNU nm, then use its standard symbol codes.
7839 case `$NM -V 2>&1` in
7840 *GNU* | *'with BFD'*)
7841 symcode='[ABCDGIRSTW]' ;;
7844 # Try without a prefix undercore, then with it.
7845 for ac_symprfx in "" "_"; do
7847 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7848 symxfrm="\\1 $ac_symprfx\\2 \\2"
7850 # Write the raw and C identifiers.
7851 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7853 # Check to see that the pipe works correctly.
7857 cat > conftest.$ac_ext <<EOF
7862 void nm_test_func(){}
7866 int main(){nm_test_var='a';nm_test_func();return(0);}
7869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7870 (eval $ac_compile) 2>&5
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; }; then
7874 # Now try to grab the symbols.
7876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7877 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7880 test $ac_status = 0; } && test -s "$nlist"; then
7881 # Try sorting and uniquifying the output.
7882 if sort "$nlist" | uniq > "$nlist"T; then
7883 mv -f "$nlist"T "$nlist"
7888 # Make sure that we snagged all the symbols we need.
7889 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7890 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7891 cat <<EOF > conftest.$ac_ext
7897 # Now generate the symbol file.
7898 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7900 cat <<EOF >> conftest.$ac_ext
7901 #if defined (__STDC__) && __STDC__
7902 # define lt_ptr_t void *
7904 # define lt_ptr_t char *
7908 /* The mapping between symbol names and symbols. */
7913 lt_preloaded_symbols[] =
7916 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7917 cat <<\EOF >> conftest.$ac_ext
7925 # Now try linking the two files.
7926 mv conftest.$ac_objext conftstm.$ac_objext
7927 lt_save_LIBS="$LIBS"
7928 lt_save_CFLAGS="$CFLAGS"
7929 LIBS="conftstm.$ac_objext"
7930 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7932 (eval $ac_link) 2>&5
7934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7935 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7938 LIBS="$lt_save_LIBS"
7939 CFLAGS="$lt_save_CFLAGS"
7941 echo "cannot find nm_test_func in $nlist" >&5
7944 echo "cannot find nm_test_var in $nlist" >&5
7947 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7950 echo "$progname: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 rm -f conftest* conftst*
7955 # Do not use the global_symbol_pipe unless it works.
7956 if test "$pipe_works" = yes; then
7959 lt_cv_sys_global_symbol_pipe=
7965 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7966 lt_cv_sys_global_symbol_to_cdecl=
7968 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7970 $as_echo "failed" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7973 $as_echo "ok" >&6; }
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7977 $as_echo_n "checking for objdir... " >&6; }
7978 if test "${lt_cv_objdir+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7981 rm -f .libs 2>/dev/null
7982 mkdir .libs 2>/dev/null
7983 if test -d .libs; then
7986 # MS-DOS does not allow filenames that begin with a dot.
7989 rmdir .libs 2>/dev/null
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7992 $as_echo "$lt_cv_objdir" >&6; }
7993 objdir=$lt_cv_objdir
8001 # AIX sometimes has problems with the GCC collect2 program. For some
8002 # reason, if we set the COLLECT_NAMES environment variable, the problems
8003 # vanish in a puff of smoke.
8004 if test "X${COLLECT_NAMES+set}" != Xset; then
8006 export COLLECT_NAMES
8011 # Sed substitution that helps us do robust quoting. It backslashifies
8012 # metacharacters that are still active within double-quoted strings.
8013 Xsed='sed -e 1s/^X//'
8014 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8016 # Same as above, but do not quote variable references.
8017 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8019 # Sed substitution to delay expansion of an escaped shell variable in a
8020 # double_quote_subst'ed string.
8021 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8023 # Sed substitution to avoid accidental globbing in evaled expressions
8024 no_glob_subst='s/\*/\\\*/g'
8030 default_ofile=libtool
8031 can_build_shared=yes
8033 # All known linkers require a `.a' archive for static linking (except MSVC,
8034 # which needs '.lib').
8036 ltmain="$ac_aux_dir/ltmain.sh"
8037 ofile="$default_ofile"
8038 with_gnu_ld="$lt_cv_prog_gnu_ld"
8040 if test -n "$ac_tool_prefix"; then
8041 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8042 set dummy ${ac_tool_prefix}ar; ac_word=$2
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8044 $as_echo_n "checking for $ac_word... " >&6; }
8045 if test "${ac_cv_prog_AR+set}" = set; then :
8046 $as_echo_n "(cached) " >&6
8048 if test -n "$AR"; then
8049 ac_cv_prog_AR="$AR" # Let the user override the test.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_prog_AR="${ac_tool_prefix}ar"
8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 if test -n "$AR"; then
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8071 $as_echo "$AR" >&6; }
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8074 $as_echo "no" >&6; }
8079 if test -z "$ac_cv_prog_AR"; then
8081 # Extract the first word of "ar", so it can be a program name with args.
8082 set dummy ar; ac_word=$2
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8084 $as_echo_n "checking for $ac_word... " >&6; }
8085 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8086 $as_echo_n "(cached) " >&6
8088 if test -n "$ac_ct_AR"; then
8089 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_prog_ac_ct_AR="ar"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8109 if test -n "$ac_ct_AR"; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8111 $as_echo "$ac_ct_AR" >&6; }
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114 $as_echo "no" >&6; }
8117 if test "x$ac_ct_AR" = x; then
8120 case $cross_compiling:$ac_tool_warned in
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8124 ac_tool_warned=yes ;;
8132 if test -n "$ac_tool_prefix"; then
8133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8134 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8140 if test -n "$RANLIB"; then
8141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147 test -z "$as_dir" && as_dir=.
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8160 RANLIB=$ac_cv_prog_RANLIB
8161 if test -n "$RANLIB"; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8163 $as_echo "$RANLIB" >&6; }
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166 $as_echo "no" >&6; }
8171 if test -z "$ac_cv_prog_RANLIB"; then
8172 ac_ct_RANLIB=$RANLIB
8173 # Extract the first word of "ranlib", so it can be a program name with args.
8174 set dummy ranlib; ac_word=$2
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176 $as_echo_n "checking for $ac_word... " >&6; }
8177 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8180 if test -n "$ac_ct_RANLIB"; then
8181 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_prog_ac_ct_RANLIB="ranlib"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8201 if test -n "$ac_ct_RANLIB"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8203 $as_echo "$ac_ct_RANLIB" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8209 if test "x$ac_ct_RANLIB" = x; then
8212 case $cross_compiling:$ac_tool_warned in
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8215 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8216 ac_tool_warned=yes ;;
8218 RANLIB=$ac_ct_RANLIB
8221 RANLIB="$ac_cv_prog_RANLIB"
8224 if test -n "$ac_tool_prefix"; then
8225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8226 set dummy ${ac_tool_prefix}strip; ac_word=$2
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228 $as_echo_n "checking for $ac_word... " >&6; }
8229 if test "${ac_cv_prog_STRIP+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
8232 if test -n "$STRIP"; then
8233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir=.
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 STRIP=$ac_cv_prog_STRIP
8253 if test -n "$STRIP"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8255 $as_echo "$STRIP" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8263 if test -z "$ac_cv_prog_STRIP"; then
8265 # Extract the first word of "strip", so it can be a program name with args.
8266 set dummy strip; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8270 $as_echo_n "(cached) " >&6
8272 if test -n "$ac_ct_STRIP"; then
8273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir=.
8280 for ac_exec_ext in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_prog_ac_ct_STRIP="strip"
8283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8293 if test -n "$ac_ct_STRIP"; then
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8295 $as_echo "$ac_ct_STRIP" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8298 $as_echo "no" >&6; }
8301 if test "x$ac_ct_STRIP" = x; then
8304 case $cross_compiling:$ac_tool_warned in
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8308 ac_tool_warned=yes ;;
8313 STRIP="$ac_cv_prog_STRIP"
8318 old_CFLAGS="$CFLAGS"
8320 # Set sane defaults for various variables
8321 test -z "$AR" && AR=ar
8322 test -z "$AR_FLAGS" && AR_FLAGS=cru
8323 test -z "$AS" && AS=as
8324 test -z "$CC" && CC=cc
8325 test -z "$LTCC" && LTCC=$CC
8326 test -z "$DLLTOOL" && DLLTOOL=dlltool
8327 test -z "$LD" && LD=ld
8328 test -z "$LN_S" && LN_S="ln -s"
8329 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8330 test -z "$NM" && NM=nm
8331 test -z "$SED" && SED=sed
8332 test -z "$OBJDUMP" && OBJDUMP=objdump
8333 test -z "$RANLIB" && RANLIB=:
8334 test -z "$STRIP" && STRIP=:
8335 test -z "$ac_objext" && ac_objext=o
8337 # Determine commands to create old-style static archives.
8338 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8339 old_postinstall_cmds='chmod 644 $oldlib'
8340 old_postuninstall_cmds=
8342 if test -n "$RANLIB"; then
8345 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8348 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8351 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8354 for cc_temp in $compiler""; do
8356 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8357 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8362 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8365 # Only perform the check for file, if the check method requires it
8366 case $deplibs_check_method in
8368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8370 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8371 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8379 lt_save_MAGIC_CMD="$MAGIC_CMD"
8380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8382 for ac_dir in $ac_dummy; do
8384 test -z "$ac_dir" && ac_dir=.
8385 if test -f $ac_dir/${ac_tool_prefix}file; then
8386 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8387 if test -n "$file_magic_test_file"; then
8388 case $deplibs_check_method in
8390 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8393 $EGREP "$file_magic_regex" > /dev/null; then
8398 *** Warning: the command libtool uses to detect shared libraries,
8399 *** $file_magic_cmd, produces output that libtool cannot recognize.
8400 *** The result is that libtool may fail to recognize shared libraries
8401 *** as such. This will affect the creation of libtool libraries that
8402 *** depend on shared libraries, but programs linked with such libtool
8403 *** libraries will work regardless of this problem. Nevertheless, you
8404 *** may want to report the problem to your system manager and/or to
8405 *** bug-libtool@gnu.org
8415 MAGIC_CMD="$lt_save_MAGIC_CMD"
8420 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8421 if test -n "$MAGIC_CMD"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8423 $as_echo "$MAGIC_CMD" >&6; }
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8429 if test -z "$lt_cv_path_MAGIC_CMD"; then
8430 if test -n "$ac_tool_prefix"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8432 $as_echo_n "checking for file... " >&6; }
8433 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8434 $as_echo_n "(cached) " >&6
8438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8441 lt_save_MAGIC_CMD="$MAGIC_CMD"
8442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8444 for ac_dir in $ac_dummy; do
8446 test -z "$ac_dir" && ac_dir=.
8447 if test -f $ac_dir/file; then
8448 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8449 if test -n "$file_magic_test_file"; then
8450 case $deplibs_check_method in
8452 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8455 $EGREP "$file_magic_regex" > /dev/null; then
8460 *** Warning: the command libtool uses to detect shared libraries,
8461 *** $file_magic_cmd, produces output that libtool cannot recognize.
8462 *** The result is that libtool may fail to recognize shared libraries
8463 *** as such. This will affect the creation of libtool libraries that
8464 *** depend on shared libraries, but programs linked with such libtool
8465 *** libraries will work regardless of this problem. Nevertheless, you
8466 *** may want to report the problem to your system manager and/or to
8467 *** bug-libtool@gnu.org
8477 MAGIC_CMD="$lt_save_MAGIC_CMD"
8482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8483 if test -n "$MAGIC_CMD"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8485 $as_echo "$MAGIC_CMD" >&6; }
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488 $as_echo "no" >&6; }
8501 enable_win32_dll=yes
8503 # Check whether --enable-libtool-lock was given.
8504 if test "${enable_libtool_lock+set}" = set; then :
8505 enableval=$enable_libtool_lock;
8508 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8511 # Check whether --with-pic was given.
8512 if test "${with_pic+set}" = set; then :
8513 withval=$with_pic; pic_mode="$withval"
8518 test -z "$pic_mode" && pic_mode=default
8520 # Use C for the default configuration in the libtool script
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530 # Source file extension for C test sources.
8533 # Object file extension for compiled C test sources.
8537 # Code to be used in simple compile tests
8538 lt_simple_compile_test_code="int some_variable = 0;\n"
8540 # Code to be used in simple link tests
8541 lt_simple_link_test_code='int main(){return(0);}\n'
8544 # If no C compiler was specified, use CC.
8547 # Allow CC to be a program name with arguments.
8551 # save warnings/boilerplate of simple test code
8552 ac_outfile=conftest.$ac_objext
8553 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8554 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8555 _lt_compiler_boilerplate=`cat conftest.err`
8558 ac_outfile=conftest.$ac_objext
8559 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8560 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8561 _lt_linker_boilerplate=`cat conftest.err`
8566 # Check for any special shared library compilation flags.
8569 if test "$GCC" = no; then
8572 lt_prog_cc_shlib='-belf'
8576 if test -n "$lt_prog_cc_shlib"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8578 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8579 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8582 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8583 lt_cv_prog_cc_can_build_shared=no
8589 # Check to make sure the static flag actually works.
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8592 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8593 if test "${lt_prog_compiler_static_works+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8596 lt_prog_compiler_static_works=no
8597 save_LDFLAGS="$LDFLAGS"
8598 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8599 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8601 # The linker can only warn and ignore the option if not recognized
8602 # So say no if there are warnings
8603 if test -s conftest.err; then
8604 # Append any errors to the config.log.
8605 cat conftest.err 1>&5
8606 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8607 $SED '/^$/d' conftest.err >conftest.er2
8608 if diff conftest.exp conftest.er2 >/dev/null; then
8609 lt_prog_compiler_static_works=yes
8612 lt_prog_compiler_static_works=yes
8616 LDFLAGS="$save_LDFLAGS"
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8620 $as_echo "$lt_prog_compiler_static_works" >&6; }
8622 if test x"$lt_prog_compiler_static_works" = xyes; then
8625 lt_prog_compiler_static=
8631 lt_prog_compiler_no_builtin_flag=
8633 if test "$GCC" = yes; then
8634 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8638 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8639 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8642 lt_cv_prog_compiler_rtti_exceptions=no
8643 ac_outfile=conftest.$ac_objext
8644 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8645 lt_compiler_flag="-fno-rtti -fno-exceptions"
8646 # Insert the option either (1) after the last *FLAGS variable, or
8647 # (2) before a word containing "conftest.", or (3) at the end.
8648 # Note that $ac_compile itself does not contain backslashes and begins
8649 # with a dollar sign (not a hyphen), so the echo should work correctly.
8650 # The option is referenced via a variable to avoid confusing sed.
8651 lt_compile=`echo "$ac_compile" | $SED \
8652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8654 -e 's:$: $lt_compiler_flag:'`
8655 (eval echo "\"\$as_me:8655: $lt_compile\"" >&5)
8656 (eval "$lt_compile" 2>conftest.err)
8658 cat conftest.err >&5
8659 echo "$as_me:8659: \$? = $ac_status" >&5
8660 if (exit $ac_status) && test -s "$ac_outfile"; then
8661 # The compiler can only warn and ignore the option if not recognized
8662 # So say no if there are warnings other than the usual output.
8663 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8664 $SED '/^$/d' conftest.err >conftest.er2
8665 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8666 lt_cv_prog_compiler_rtti_exceptions=yes
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8673 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8675 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8676 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8683 lt_prog_compiler_wl=
8684 lt_prog_compiler_pic=
8685 lt_prog_compiler_static=
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8688 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8690 if test "$GCC" = yes; then
8691 lt_prog_compiler_wl='-Wl,'
8692 lt_prog_compiler_static='-static'
8696 # All AIX code is PIC.
8697 if test "$host_cpu" = ia64; then
8698 # AIX 5 now supports IA64 processor
8699 lt_prog_compiler_static='-Bstatic'
8704 # FIXME: we need at least 68020 code to build shared libraries, but
8705 # adding the `-m68020' flag to GCC prevents building anything better,
8707 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8710 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8711 # PIC is the default for these OSes.
8714 mingw* | pw32* | os2*)
8715 # This hack is so that the source file can tell whether it is being
8716 # built for inclusion in a dll (and should export symbols for example).
8717 lt_prog_compiler_pic='-DDLL_EXPORT'
8720 darwin* | rhapsody*)
8721 # PIC is the default on this platform
8722 # Common symbols not allowed in MH_DYLIB files
8723 lt_prog_compiler_pic='-fno-common'
8727 # Just because we use GCC doesn't mean we suddenly get shared libraries
8728 # on systems that don't support them.
8729 lt_prog_compiler_can_build_shared=no
8734 if test -d /usr/nec; then
8735 lt_prog_compiler_pic=-Kconform_pic
8740 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8747 lt_prog_compiler_pic='-fPIC'
8753 lt_prog_compiler_pic='-fPIC'
8757 # PORTME Check for flag to pass linker flags through the system compiler.
8760 lt_prog_compiler_wl='-Wl,'
8761 if test "$host_cpu" = ia64; then
8762 # AIX 5 now supports IA64 processor
8763 lt_prog_compiler_static='-Bstatic'
8765 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8769 # PIC is the default on this platform
8770 # Common symbols not allowed in MH_DYLIB files
8771 case $cc_basename in
8773 lt_prog_compiler_pic='-qnocommon'
8774 lt_prog_compiler_wl='-Wl,'
8779 mingw* | pw32* | os2*)
8780 # This hack is so that the source file can tell whether it is being
8781 # built for inclusion in a dll (and should export symbols for example).
8782 lt_prog_compiler_pic='-DDLL_EXPORT'
8785 hpux9* | hpux10* | hpux11*)
8786 lt_prog_compiler_wl='-Wl,'
8787 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8794 lt_prog_compiler_pic='+Z'
8797 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8798 lt_prog_compiler_static='${wl}-a ${wl}archive'
8801 irix5* | irix6* | nonstopux*)
8802 lt_prog_compiler_wl='-Wl,'
8803 # PIC (with -KPIC) is the default.
8804 lt_prog_compiler_static='-non_shared'
8808 lt_prog_compiler_pic='-KPIC'
8809 lt_prog_compiler_static='-Bstatic'
8813 case $cc_basename in
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-static'
8819 pgcc* | pgf77* | pgf90* | pgf95*)
8820 # Portland Group compilers (*not* the Pentium gcc compiler,
8821 # which looks to be a dead project)
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fpic'
8824 lt_prog_compiler_static='-Bstatic'
8827 lt_prog_compiler_wl='-Wl,'
8828 # All Alpha code is PIC.
8829 lt_prog_compiler_static='-non_shared'
8834 osf3* | osf4* | osf5*)
8835 lt_prog_compiler_wl='-Wl,'
8836 # All OSF/1 code is PIC.
8837 lt_prog_compiler_static='-non_shared'
8841 lt_prog_compiler_pic='-Kpic'
8842 lt_prog_compiler_static='-dn'
8846 lt_prog_compiler_pic='-KPIC'
8847 lt_prog_compiler_static='-Bstatic'
8848 case $cc_basename in
8850 lt_prog_compiler_wl='-Qoption ld ';;
8852 lt_prog_compiler_wl='-Wl,';;
8857 lt_prog_compiler_wl='-Qoption ld '
8858 lt_prog_compiler_pic='-PIC'
8859 lt_prog_compiler_static='-Bstatic'
8862 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_pic='-KPIC'
8865 lt_prog_compiler_static='-Bstatic'
8869 if test -d /usr/nec ;then
8870 lt_prog_compiler_pic='-Kconform_pic'
8871 lt_prog_compiler_static='-Bstatic'
8876 lt_prog_compiler_wl='-Wl,'
8877 lt_prog_compiler_can_build_shared=no
8881 lt_prog_compiler_pic='-pic'
8882 lt_prog_compiler_static='-Bstatic'
8886 lt_prog_compiler_can_build_shared=no
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8892 $as_echo "$lt_prog_compiler_pic" >&6; }
8895 # Check to make sure the PIC flag actually works.
8897 if test -n "$lt_prog_compiler_pic"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8900 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8901 if test "${lt_prog_compiler_pic_works+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8904 lt_prog_compiler_pic_works=no
8905 ac_outfile=conftest.$ac_objext
8906 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8907 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8908 # Insert the option either (1) after the last *FLAGS variable, or
8909 # (2) before a word containing "conftest.", or (3) at the end.
8910 # Note that $ac_compile itself does not contain backslashes and begins
8911 # with a dollar sign (not a hyphen), so the echo should work correctly.
8912 # The option is referenced via a variable to avoid confusing sed.
8913 lt_compile=`echo "$ac_compile" | $SED \
8914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8916 -e 's:$: $lt_compiler_flag:'`
8917 (eval echo "\"\$as_me:8917: $lt_compile\"" >&5)
8918 (eval "$lt_compile" 2>conftest.err)
8920 cat conftest.err >&5
8921 echo "$as_me:8921: \$? = $ac_status" >&5
8922 if (exit $ac_status) && test -s "$ac_outfile"; then
8923 # The compiler can only warn and ignore the option if not recognized
8924 # So say no if there are warnings other than the usual output.
8925 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8926 $SED '/^$/d' conftest.err >conftest.er2
8927 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8928 lt_prog_compiler_pic_works=yes
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8935 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8937 if test x"$lt_prog_compiler_pic_works" = xyes; then
8938 case $lt_prog_compiler_pic in
8940 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8943 lt_prog_compiler_pic=
8944 lt_prog_compiler_can_build_shared=no
8949 # For platforms which do not support PIC, -DPIC is meaningless:
8951 lt_prog_compiler_pic=
8954 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8959 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8960 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8961 $as_echo_n "(cached) " >&6
8963 lt_cv_prog_compiler_c_o=no
8964 $rm -r conftest 2>/dev/null
8968 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8970 lt_compiler_flag="-o out/conftest2.$ac_objext"
8971 # Insert the option either (1) after the last *FLAGS variable, or
8972 # (2) before a word containing "conftest.", or (3) at the end.
8973 # Note that $ac_compile itself does not contain backslashes and begins
8974 # with a dollar sign (not a hyphen), so the echo should work correctly.
8975 lt_compile=`echo "$ac_compile" | $SED \
8976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8978 -e 's:$: $lt_compiler_flag:'`
8979 (eval echo "\"\$as_me:8979: $lt_compile\"" >&5)
8980 (eval "$lt_compile" 2>out/conftest.err)
8982 cat out/conftest.err >&5
8983 echo "$as_me:8983: \$? = $ac_status" >&5
8984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8986 # The compiler can only warn and ignore the option if not recognized
8987 # So say no if there are warnings
8988 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8989 $SED '/^$/d' out/conftest.err >out/conftest.er2
8990 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8991 lt_cv_prog_compiler_c_o=yes
8996 # SGI C++ compiler will create directory out/ii_files/ for
8997 # template instantiation
8998 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8999 $rm out/* && rmdir out
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9006 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9009 hard_links="nottested"
9010 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9011 # do not overwrite the value of need_locks provided by the user
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9013 $as_echo_n "checking if we can lock with hard links... " >&6; }
9016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9018 ln conftest.a conftest.b 2>&5 || hard_links=no
9019 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9021 $as_echo "$hard_links" >&6; }
9022 if test "$hard_links" = no; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9024 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9032 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9035 allow_undefined_flag=
9036 enable_shared_with_static_runtimes=no
9038 archive_expsym_cmds=
9039 old_archive_From_new_cmds=
9040 old_archive_from_expsyms_cmds=
9041 export_dynamic_flag_spec=
9042 whole_archive_flag_spec=
9043 thread_safe_flag_spec=
9044 hardcode_libdir_flag_spec=
9045 hardcode_libdir_flag_spec_ld=
9046 hardcode_libdir_separator=
9049 hardcode_shlibpath_var=unsupported
9050 link_all_deplibs=unknown
9051 hardcode_automatic=no
9054 always_export_symbols=no
9055 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9056 # include_expsyms should be a list of space-separated symbols to be *always*
9057 # included in the symbol list
9059 # exclude_expsyms can be an extended regexp of symbols to exclude
9060 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9061 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9062 # as well as any symbol that contains `d'.
9063 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9064 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9065 # platforms (ab)use it in PIC code, but their linkers get confused if
9066 # the symbol is explicitly referenced. Since portable code cannot
9067 # rely on this symbol name, it's probably fine to never include it in
9068 # preloaded symbol tables.
9069 extract_expsyms_cmds=
9070 # Just being paranoid about ensuring that cc_basename is set.
9071 for cc_temp in $compiler""; do
9073 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9074 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9079 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9082 cygwin* | mingw* | pw32*)
9083 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9084 # When not using gcc, we currently assume that we are using
9085 # Microsoft Visual C++.
9086 if test "$GCC" != yes; then
9096 if test "$with_gnu_ld" = yes; then
9097 # If archive_cmds runs LD, not CC, wlarc should be empty
9100 # Set some defaults for GNU ld with shared library support. These
9101 # are reset later if shared libraries are not supported. Putting them
9102 # here allows them to be overridden if necessary.
9103 runpath_var=LD_RUN_PATH
9104 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9105 export_dynamic_flag_spec='${wl}--export-dynamic'
9106 # ancient GNU ld didn't support --whole-archive et. al.
9107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9110 whole_archive_flag_spec=
9112 supports_anon_versioning=no
9113 case `$LD -v 2>/dev/null` in
9114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9117 *\ 2.11.*) ;; # other 2.11 versions
9118 *) supports_anon_versioning=yes ;;
9121 # See if GNU ld supports shared libraries.
9123 aix3* | aix4* | aix5*)
9124 # On AIX/PPC, the GNU linker is very broken
9125 if test "$host_cpu" != ia64; then
9129 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9130 *** to be unable to reliably create shared libraries on AIX.
9131 *** Therefore, libtool is disabling shared libraries support. If you
9132 *** really care for shared libraries, you may want to modify your PATH
9133 *** so that a non-GNU linker is found, and then restart.
9140 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)'
9141 hardcode_libdir_flag_spec='-L$libdir'
9142 hardcode_minus_L=yes
9144 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9145 # that the semantics of dynamic libraries on AmigaOS, at least up
9146 # to version 4, is to share data among multiple programs linked
9147 # with the same dynamic library. Since this doesn't match the
9148 # behavior of shared libraries on other platforms, we can't use
9154 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9155 allow_undefined_flag=unsupported
9156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157 # support --undefined. This deserves some investigation. FIXME
9158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9164 cygwin* | mingw* | pw32*)
9165 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166 # as there is no search path for DLLs.
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 allow_undefined_flag=unsupported
9169 always_export_symbols=no
9170 enable_shared_with_static_runtimes=yes
9171 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9173 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9175 # If the export-symbols file already is a .def file (1st line
9176 # is EXPORTS), use it as is; otherwise, prepend...
9177 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9178 cp $export_symbols $output_objdir/$soname.def;
9180 echo EXPORTS > $output_objdir/$soname.def;
9181 cat $export_symbols >> $output_objdir/$soname.def;
9183 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9192 case $cc_basename,$host_cpu in
9193 pgcc*) # Portland Group C compiler
9194 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'
9195 tmp_addflag=' $pic_flag'
9197 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9198 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'
9199 tmp_addflag=' $pic_flag -Mnomain' ;;
9200 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9201 tmp_addflag=' -i_dynamic' ;;
9202 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9203 tmp_addflag=' -i_dynamic -nofor_main' ;;
9204 ifc* | ifort*) # Intel Fortran compiler
9205 tmp_addflag=' -nofor_main' ;;
9207 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9209 if test $supports_anon_versioning = yes; then
9210 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9212 $echo "local: *; };" >> $output_objdir/$libname.ver~
9213 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9221 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9222 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9231 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9235 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9236 *** create shared libraries on Solaris systems. Therefore, libtool
9237 *** is disabling shared libraries support. We urge you to upgrade GNU
9238 *** binutils to release 2.9.1 or newer. Another option is to modify
9239 *** your PATH or compiler configuration so that the native linker is
9240 *** used, and then restart.
9243 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9244 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9252 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9255 hardcode_shlibpath_var=no
9259 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268 if test "$ld_shlibs" = no; then
9270 hardcode_libdir_flag_spec=
9271 export_dynamic_flag_spec=
9272 whole_archive_flag_spec=
9275 # PORTME fill in a description of your system's linker (not GNU ld)
9278 allow_undefined_flag=unsupported
9279 always_export_symbols=yes
9280 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'
9281 # Note: this linker hardcodes the directories in LIBPATH if there
9282 # are no directories specified by -L.
9283 hardcode_minus_L=yes
9284 if test "$GCC" = yes && test -z "$link_static_flag"; then
9285 # Neither direct hardcoding nor static linking is supported with a
9287 hardcode_direct=unsupported
9292 if test "$host_cpu" = ia64; then
9293 # On IA64, the linker does run time linking by default, so we don't
9294 # have to do anything special.
9295 aix_use_runtimelinking=no
9296 exp_sym_flag='-Bexport'
9299 # If we're using GNU nm, then we don't want the "-C" option.
9300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9301 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9302 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'
9304 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'
9306 aix_use_runtimelinking=no
9308 # Test if we are trying to use run time linking or normal
9309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9310 # need to do runtime linking.
9311 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9312 for ld_flag in $LDFLAGS; do
9313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9314 aix_use_runtimelinking=yes
9320 exp_sym_flag='-bexport'
9321 no_entry_flag='-bnoentry'
9324 # When large executables or shared objects are built, AIX ld can
9325 # have problems creating the table of contents. If linking a library
9326 # or program results in "error TOC overflow" add -mminimal-toc to
9327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9332 hardcode_libdir_separator=':'
9333 link_all_deplibs=yes
9335 if test "$GCC" = yes; then
9336 case $host_os in aix4.[012]|aix4.[012].*)
9337 # We only want to do this on AIX 4.2 and lower, the check
9338 # below for broken collect2 doesn't work under 4.3+
9339 collect2name=`${CC} -print-prog-name=collect2`
9340 if test -f "$collect2name" && \
9341 strings "$collect2name" | grep resolve_lib_name >/dev/null
9343 # We have reworked collect2
9346 # We have old collect2
9347 hardcode_direct=unsupported
9348 # It fails to find uninstalled libraries when the uninstalled
9349 # path is not listed in the libpath. Setting hardcode_minus_L
9350 # to unsupported forces relinking
9351 hardcode_minus_L=yes
9352 hardcode_libdir_flag_spec='-L$libdir'
9353 hardcode_libdir_separator=
9356 shared_flag='-shared'
9357 if test "$aix_use_runtimelinking" = yes; then
9358 shared_flag="$shared_flag "'${wl}-G'
9362 if test "$host_cpu" = ia64; then
9363 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9364 # chokes on -Wl,-G. The following line is correct:
9367 if test "$aix_use_runtimelinking" = yes; then
9368 shared_flag='${wl}-G'
9370 shared_flag='${wl}-bM:SRE'
9375 # It seems that -bexpall does not export symbols beginning with
9376 # underscore (_), so it is better to generate a list of symbols to export.
9377 always_export_symbols=yes
9378 if test "$aix_use_runtimelinking" = yes; then
9379 # Warning - without using the other runtime loading flags (-brtl),
9380 # -berok will link without error, but may produce a broken library.
9381 allow_undefined_flag='-berok'
9382 # Determine the default libpath from the value encoded in an empty executable.
9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9384 /* end confdefs.h. */
9394 if ac_fn_c_try_link "$LINENO"; then :
9396 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9398 # Check for a 64-bit object if we didn't find anything.
9399 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; }
9402 rm -f core conftest.err conftest.$ac_objext \
9403 conftest$ac_exeext conftest.$ac_ext
9404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9406 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9407 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"
9409 if test "$host_cpu" = ia64; then
9410 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9411 allow_undefined_flag="-z nodefs"
9412 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"
9414 # Determine the default libpath from the value encoded in an empty executable.
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9426 if ac_fn_c_try_link "$LINENO"; then :
9428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9430 # Check for a 64-bit object if we didn't find anything.
9431 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; }
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9439 # Warning - without using the other run time loading flags,
9440 # -berok will link without error, but may produce a broken library.
9441 no_undefined_flag=' ${wl}-bernotok'
9442 allow_undefined_flag=' ${wl}-berok'
9443 # -bexpall does not export symbols beginning with underscore (_)
9444 always_export_symbols=yes
9445 # Exported symbols can be pulled into shared objects from archives
9446 whole_archive_flag_spec=' '
9447 archive_cmds_need_lc=yes
9448 # This is similar to how AIX traditionally builds its shared libraries.
9449 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'
9455 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)'
9456 hardcode_libdir_flag_spec='-L$libdir'
9457 hardcode_minus_L=yes
9458 # see comment about different semantics on the GNU ld section
9463 export_dynamic_flag_spec=-rdynamic
9466 cygwin* | mingw* | pw32*)
9467 # When not using gcc, we currently assume that we are using
9468 # Microsoft Visual C++.
9469 # hardcode_libdir_flag_spec is actually meaningless, as there is
9470 # no search path for DLLs.
9471 hardcode_libdir_flag_spec=' '
9472 allow_undefined_flag=unsupported
9473 # Tell ltmain to make .lib files, not .a files.
9475 # Tell ltmain to make .dll files, not .so files.
9477 # FIXME: Setting linknames here is a bad hack.
9478 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9479 # The linker will automatically build a .lib file if we build a DLL.
9480 old_archive_From_new_cmds='true'
9481 # FIXME: Should let the user specify the lib program.
9482 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9483 fix_srcfile_path='`cygpath -w "$srcfile"`'
9484 enable_shared_with_static_runtimes=yes
9487 darwin* | rhapsody*)
9489 rhapsody* | darwin1.[012])
9490 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9493 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9494 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9496 case ${MACOSX_DEPLOYMENT_TARGET} in
9498 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9501 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9507 archive_cmds_need_lc=no
9509 hardcode_automatic=yes
9510 hardcode_shlibpath_var=unsupported
9511 whole_archive_flag_spec=''
9512 link_all_deplibs=yes
9513 if test "$GCC" = yes ; then
9514 output_verbose_link_cmd='echo'
9515 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9516 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9518 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}'
9519 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}'
9521 case $cc_basename in
9523 output_verbose_link_cmd='echo'
9524 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9525 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9526 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9527 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}'
9528 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}'
9538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9539 hardcode_libdir_flag_spec='-L$libdir'
9540 hardcode_shlibpath_var=no
9547 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9548 # support. Future versions do this automatically, but an explicit c++rt0.o
9549 # does not break anything, and helps significantly (at the cost of a little
9552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9553 hardcode_libdir_flag_spec='-R$libdir'
9555 hardcode_shlibpath_var=no
9558 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9562 hardcode_minus_L=yes
9563 hardcode_shlibpath_var=no
9566 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9567 freebsd* | kfreebsd*-gnu | dragonfly*)
9568 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9569 hardcode_libdir_flag_spec='-R$libdir'
9571 hardcode_shlibpath_var=no
9575 if test "$GCC" = yes; then
9576 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'
9578 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'
9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_separator=:
9584 # hardcode_minus_L: Not really in the search PATH,
9585 # but as the default location of the library.
9586 hardcode_minus_L=yes
9587 export_dynamic_flag_spec='${wl}-E'
9591 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9594 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9597 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9603 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9606 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9610 if test "$with_gnu_ld" = no; then
9613 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9614 hardcode_libdir_flag_spec_ld='+b $libdir'
9615 hardcode_libdir_separator=:
9617 hardcode_shlibpath_var=no
9620 hardcode_libdir_flag_spec='-L$libdir'
9622 hardcode_shlibpath_var=no
9624 # hardcode_minus_L: Not really in the search PATH,
9625 # but as the default location of the library.
9626 hardcode_minus_L=yes
9629 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9630 hardcode_libdir_separator=:
9632 export_dynamic_flag_spec='${wl}-E'
9634 # hardcode_minus_L: Not really in the search PATH,
9635 # but as the default location of the library.
9636 hardcode_minus_L=yes
9642 irix5* | irix6* | nonstopux*)
9643 if test "$GCC" = yes; then
9644 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'
9646 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'
9647 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650 hardcode_libdir_separator=:
9651 link_all_deplibs=yes
9655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9658 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9660 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_shlibpath_var=no
9666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9669 hardcode_libdir_separator=:
9670 hardcode_shlibpath_var=no
9675 hardcode_shlibpath_var=no
9676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9677 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9678 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9679 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9680 export_dynamic_flag_spec='${wl}-E'
9683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9684 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_libdir_flag_spec='-R$libdir'
9688 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9689 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9696 hardcode_libdir_flag_spec='-L$libdir'
9697 hardcode_minus_L=yes
9698 allow_undefined_flag=unsupported
9699 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'
9700 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9704 if test "$GCC" = yes; then
9705 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9706 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'
9708 allow_undefined_flag=' -expect_unresolved \*'
9709 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'
9711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712 hardcode_libdir_separator=:
9715 osf4* | osf5*) # as osf3* with the addition of -msym flag
9716 if test "$GCC" = yes; then
9717 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9718 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'
9719 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9721 allow_undefined_flag=' -expect_unresolved \*'
9722 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'
9723 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9724 $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'
9726 # Both c and cxx compiler support -rpath directly
9727 hardcode_libdir_flag_spec='-rpath $libdir'
9729 hardcode_libdir_separator=:
9733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_shlibpath_var=no
9735 export_dynamic_flag_spec='${wl}-Bexport'
9736 runpath_var=LD_RUN_PATH
9737 hardcode_runpath_var=yes
9741 no_undefined_flag=' -z text'
9742 if test "$GCC" = yes; then
9744 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9745 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9753 hardcode_libdir_flag_spec='-R$libdir'
9754 hardcode_shlibpath_var=no
9756 solaris2.[0-5] | solaris2.[0-5].*) ;;
9758 # The compiler driver will combine linker options so we
9759 # cannot just pass the convience library names through
9760 # without $wl, iff we do not link with $LD.
9761 # Luckily, gcc supports the same syntax we need for Sun Studio.
9762 # Supported since Solaris 2.6 (maybe 2.5.1?)
9765 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9767 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' ;;
9770 link_all_deplibs=yes
9774 if test "x$host_vendor" = xsequent; then
9775 # Use $CC to link under sequent, because it throws in some extra .o
9776 # files that make .init and .fini sections work.
9777 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9779 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9781 hardcode_libdir_flag_spec='-L$libdir'
9783 hardcode_minus_L=yes
9784 hardcode_shlibpath_var=no
9788 case $host_vendor in
9790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791 hardcode_direct=yes # is this really true???
9794 ## LD is ld it makes a PLAMLIB
9795 ## CC just makes a GrossModule.
9796 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9797 reload_cmds='$CC -r -o $output$reload_objs'
9801 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9802 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9805 runpath_var='LD_RUN_PATH'
9806 hardcode_shlibpath_var=no
9810 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9811 hardcode_shlibpath_var=no
9812 export_dynamic_flag_spec='-Bexport'
9816 if test -d /usr/nec; then
9817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9818 hardcode_shlibpath_var=no
9819 runpath_var=LD_RUN_PATH
9820 hardcode_runpath_var=yes
9826 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9829 hardcode_shlibpath_var=no
9830 hardcode_runpath_var=yes
9831 runpath_var=LD_RUN_PATH
9834 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9835 no_undefined_flag='${wl}-z ${wl}text'
9836 if test "$GCC" = yes; then
9837 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9839 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9841 runpath_var='LD_RUN_PATH'
9842 hardcode_shlibpath_var=no
9846 no_undefined_flag=' -z text'
9847 # $CC -shared without GNU ld will not create a library from C++
9848 # object files and a static libstdc++, better avoid it by now
9849 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9850 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9851 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9852 hardcode_libdir_flag_spec=
9853 hardcode_shlibpath_var=no
9854 runpath_var='LD_RUN_PATH'
9858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859 hardcode_libdir_flag_spec='-L$libdir'
9860 hardcode_shlibpath_var=no
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9870 $as_echo "$ld_shlibs" >&6; }
9871 test "$ld_shlibs" = no && can_build_shared=no
9873 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9874 if test "$GCC" = yes; then
9875 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9879 # Do we need to explicitly link libc?
9881 case "x$archive_cmds_need_lc" in
9883 # Assume -lc should be added
9884 archive_cmds_need_lc=yes
9886 if test "$enable_shared" = yes && test "$GCC" = yes; then
9887 case $archive_cmds in
9889 # FIXME: we may have to deal with multi-command sequences.
9892 # Test whether the compiler implicitly links with -lc since on some
9893 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9894 # to ld, don't add -lc before -lgcc.
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9896 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9898 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9900 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9901 (eval $ac_compile) 2>&5
9903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9904 test $ac_status = 0; } 2>conftest.err; then
9907 libobjs=conftest.$ac_objext
9909 wl=$lt_prog_compiler_wl
9915 lt_save_allow_undefined_flag=$allow_undefined_flag
9916 allow_undefined_flag=
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9918 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; }
9923 archive_cmds_need_lc=no
9925 archive_cmds_need_lc=yes
9927 allow_undefined_flag=$lt_save_allow_undefined_flag
9929 cat conftest.err 1>&5
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9933 $as_echo "$archive_cmds_need_lc" >&6; }
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9943 libname_spec='lib$name'
9951 shlibpath_overrides_runpath=unknown
9953 dynamic_linker="$host_os ld.so"
9954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9955 if test "$GCC" = yes; then
9956 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9957 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9958 # if the path contains ";" then we assume it to be the separator
9959 # otherwise default to the standard path separator (i.e. ":") - it is
9960 # assumed that no part of a normal pathname contains ";" but that should
9961 # okay in the real world where ";" in dirpaths is itself problematic.
9962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9969 need_lib_prefix=unknown
9970 hardcode_into_libs=no
9972 # when you set need_version to no, make sure it does not cause -set_version
9973 # flags to be left without arguments
9974 need_version=unknown
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9980 shlibpath_var=LIBPATH
9982 # AIX 3 has no versioning support, so we append a major version to the name.
9983 soname_spec='${libname}${release}${shared_ext}$major'
9990 hardcode_into_libs=yes
9991 if test "$host_cpu" = ia64; then
9992 # AIX 5 supports IA64
9993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9994 shlibpath_var=LD_LIBRARY_PATH
9996 # With GCC up to 2.95.x, collect2 would create an import file
9997 # for dependence libraries. The import file would start with
9998 # the line `#! .'. This would cause the generated library to
9999 # depend on `.', always an invalid library. This was fixed in
10000 # development snapshots of GCC prior to 3.0.
10002 aix4 | aix4.[01] | aix4.[01].*)
10003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10008 can_build_shared=no
10012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10013 # soname into executable. Probably we can add versioning support to
10014 # collect2, so additional links can be useful in future.
10015 if test "$aix_use_runtimelinking" = yes; then
10016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10017 # instead of lib<name>.a to let people know that these are not
10018 # typical AIX shared libraries.
10019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021 # We preserve .a as extension for shared libraries through AIX4.2
10022 # and later when we are not doing run time linking.
10023 library_names_spec='${libname}${release}.a $libname.a'
10024 soname_spec='${libname}${release}${shared_ext}$major'
10026 shlibpath_var=LIBPATH
10031 library_names_spec='$libname.ixlibrary $libname.a'
10032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10033 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'
10037 library_names_spec='${libname}${shared_ext}'
10038 dynamic_linker="$host_os ld.so"
10039 shlibpath_var=LIBRARY_PATH
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10048 shlibpath_var=LD_LIBRARY_PATH
10049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10051 # the default ld.so.conf also contains /usr/contrib/lib and
10052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10053 # libtool to hard-code these into programs
10056 cygwin* | mingw* | pw32*)
10057 version_type=windows
10062 case $GCC,$host_os in
10063 yes,cygwin* | yes,mingw* | yes,pw32*)
10064 library_names_spec='$libname.dll.a'
10065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10066 postinstall_cmds='base_file=`basename \${file}`~
10067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10068 dldir=$destdir/`dirname \$dlpath`~
10069 test -d \$dldir || mkdir -p \$dldir~
10070 $install_prog $dir/$dlname \$dldir/$dlname~
10071 chmod a+x \$dldir/$dlname'
10072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10073 dlpath=$dir/\$dldll~
10075 shlibpath_overrides_runpath=yes
10079 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10080 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10081 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10084 # MinGW DLLs use traditional 'lib' prefix
10085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10087 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10088 # It is most probably a Windows format PATH printed by
10089 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10090 # path with ; separators, and with drive letters. We can handle the
10091 # drive letters (cygwin fileutils understands them), so leave them,
10092 # especially as we might pass files found there to a mingw objdump,
10093 # which wouldn't understand a cygwinified path. Ahh.
10094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10100 # pw32 DLLs use 'pw' prefix rather than 'lib'
10101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10110 dynamic_linker='Win32 ld.exe'
10111 # FIXME: first we should search . and the directory the executable is in
10115 darwin* | rhapsody*)
10116 dynamic_linker="$host_os dyld"
10117 version_type=darwin
10120 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10121 soname_spec='${libname}${release}${major}$shared_ext'
10122 shlibpath_overrides_runpath=yes
10123 shlibpath_var=DYLD_LIBRARY_PATH
10124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10125 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10126 if test "$GCC" = yes; then
10127 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"`
10129 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10139 soname_spec='${libname}${release}${shared_ext}$major'
10140 shlibpath_var=LD_LIBRARY_PATH
10151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10152 soname_spec='${libname}${release}${shared_ext}$major'
10153 shlibpath_var=LD_LIBRARY_PATH
10154 shlibpath_overrides_runpath=no
10155 hardcode_into_libs=yes
10156 dynamic_linker='GNU ld.so'
10159 freebsd* | dragonfly*)
10160 # DragonFly does not have aout. When/if they implement a new
10161 # versioning mechanism, adjust this.
10162 if test -x /usr/bin/objformat; then
10163 objformat=`/usr/bin/objformat`
10166 freebsd[123]*) objformat=aout ;;
10167 *) objformat=elf ;;
10170 version_type=freebsd-$objformat
10171 case $version_type in
10173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10182 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=yes
10187 freebsd3.[01]* | freebsdelf3.[01]*)
10188 shlibpath_overrides_runpath=yes
10189 hardcode_into_libs=yes
10192 shlibpath_overrides_runpath=no
10193 hardcode_into_libs=yes
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 hardcode_into_libs=yes
10208 hpux9* | hpux10* | hpux11*)
10209 # Give a soname corresponding to the major version so that dld.sl refuses to
10210 # link against other versions.
10217 hardcode_into_libs=yes
10218 dynamic_linker="$host_os dld.so"
10219 shlibpath_var=LD_LIBRARY_PATH
10220 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222 soname_spec='${libname}${release}${shared_ext}$major'
10223 if test "X$HPUX_IA64_MODE" = X32; then
10224 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10226 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10228 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10232 hardcode_into_libs=yes
10233 dynamic_linker="$host_os dld.sl"
10234 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237 soname_spec='${libname}${release}${shared_ext}$major'
10238 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10239 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10243 dynamic_linker="$host_os dld.sl"
10244 shlibpath_var=SHLIB_PATH
10245 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247 soname_spec='${libname}${release}${shared_ext}$major'
10250 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10251 postinstall_cmds='chmod 555 $lib'
10254 irix5* | irix6* | nonstopux*)
10256 nonstopux*) version_type=nonstopux ;;
10258 if test "$lt_cv_prog_gnu_ld" = yes; then
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10269 irix5* | nonstopux*)
10270 libsuff= shlibsuff=
10273 case $LD in # libtool.m4 will add one of these switches to LD
10274 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10275 libsuff= shlibsuff= libmagic=32-bit;;
10276 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10277 libsuff=32 shlibsuff=N32 libmagic=N32;;
10278 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10279 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10280 *) libsuff= shlibsuff= libmagic=never-match;;
10284 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10285 shlibpath_overrides_runpath=no
10286 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10287 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10288 hardcode_into_libs=yes
10291 # No shared lib support for Linux oldld, aout, or coff.
10292 linux*oldld* | linux*aout* | linux*coff*)
10296 # This must be Linux ELF.
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 soname_spec='${libname}${release}${shared_ext}$major'
10303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10304 shlibpath_var=LD_LIBRARY_PATH
10305 shlibpath_overrides_runpath=no
10306 # This implies no fast_install, which is unacceptable.
10307 # Some rework will be needed to allow for fast_install
10308 # before this can be enabled.
10309 hardcode_into_libs=yes
10311 # Append ld.so.conf contents to the search path
10312 if test -f /etc/ld.so.conf; then
10313 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' ' '`
10314 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10317 # We used to test for /lib/ld.so.1 and disable shared libraries on
10318 # powerpc, because MkLinux only supported shared libraries with the
10319 # GNU dynamic linker. Since this was broken with cross compilers,
10320 # most powerpc-linux boxes support dynamic linking these days and
10321 # people can always --disable-shared, the test was removed, and we
10322 # assume the GNU/Linux dynamic linker is in use.
10323 dynamic_linker='GNU/Linux ld.so'
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 shlibpath_var=LD_LIBRARY_PATH
10333 shlibpath_overrides_runpath=no
10334 hardcode_into_libs=yes
10335 dynamic_linker='GNU ld.so'
10342 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10345 dynamic_linker='NetBSD (a.out) ld.so'
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10348 soname_spec='${libname}${release}${shared_ext}$major'
10349 dynamic_linker='NetBSD ld.elf_so'
10351 shlibpath_var=LD_LIBRARY_PATH
10352 shlibpath_overrides_runpath=yes
10353 hardcode_into_libs=yes
10358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368 soname_spec='${libname}${release}${shared_ext}$major'
10369 shlibpath_var=LD_LIBRARY_PATH
10370 shlibpath_overrides_runpath=yes
10376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10379 *) need_version=no ;;
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10383 shlibpath_var=LD_LIBRARY_PATH
10384 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10386 openbsd2.[89] | openbsd2.[89].*)
10387 shlibpath_overrides_runpath=no
10390 shlibpath_overrides_runpath=yes
10394 shlibpath_overrides_runpath=yes
10399 libname_spec='$name'
10402 library_names_spec='$libname${shared_ext} $libname.a'
10403 dynamic_linker='OS/2 ld.exe'
10404 shlibpath_var=LIBPATH
10407 osf3* | osf4* | osf5*)
10411 soname_spec='${libname}${release}${shared_ext}$major'
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10413 shlibpath_var=LD_LIBRARY_PATH
10414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 shlibpath_var=LD_LIBRARY_PATH
10429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430 soname_spec='${libname}${release}${shared_ext}$major'
10431 shlibpath_var=LD_LIBRARY_PATH
10432 shlibpath_overrides_runpath=yes
10433 hardcode_into_libs=yes
10434 # ldd complains unless libraries are executable
10435 postinstall_cmds='chmod +x $lib'
10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10441 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10442 shlibpath_var=LD_LIBRARY_PATH
10443 shlibpath_overrides_runpath=yes
10444 if test "$with_gnu_ld" = yes; then
10450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 soname_spec='${libname}${release}${shared_ext}$major'
10454 shlibpath_var=LD_LIBRARY_PATH
10455 case $host_vendor in
10457 shlibpath_overrides_runpath=no
10459 export_dynamic_flag_spec='${wl}-Blargedynsym'
10460 runpath_var=LD_RUN_PATH
10468 shlibpath_overrides_runpath=no
10469 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10475 if test -d /usr/nec ;then
10477 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10478 soname_spec='$libname${shared_ext}.$major'
10479 shlibpath_var=LD_LIBRARY_PATH
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 shlibpath_var=LD_LIBRARY_PATH
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10495 $as_echo "$dynamic_linker" >&6; }
10496 test "$dynamic_linker" = no && can_build_shared=no
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10501 if test -n "$hardcode_libdir_flag_spec" || \
10502 test -n "$runpath_var" || \
10503 test "X$hardcode_automatic" = "Xyes" ; then
10505 # We can hardcode non-existant directories.
10506 if test "$hardcode_direct" != no &&
10507 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10508 # have to relink, otherwise we might link with an installed library
10509 # when we should be linking with a yet-to-be-installed one
10510 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10511 test "$hardcode_minus_L" != no; then
10512 # Linking always hardcodes the temporary library directory.
10513 hardcode_action=relink
10515 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10516 hardcode_action=immediate
10519 # We cannot hardcode anything, or else we can only hardcode existing
10521 hardcode_action=unsupported
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10524 $as_echo "$hardcode_action" >&6; }
10526 if test "$hardcode_action" = relink; then
10527 # Fast installation is not supported
10528 enable_fast_install=no
10529 elif test "$shlibpath_overrides_runpath" = yes ||
10530 test "$enable_shared" = no; then
10531 # Fast installation is not necessary
10532 enable_fast_install=needless
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10538 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10539 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10540 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10541 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10543 $as_echo "yes" >&6; }
10545 # FIXME - insert some real tests, host_os isn't really good enough
10548 if test -n "$STRIP" ; then
10549 striplib="$STRIP -x"
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10551 $as_echo "yes" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10564 if test "x$enable_dlopen" != xyes; then
10565 enable_dlopen=unknown
10566 enable_dlopen_self=unknown
10567 enable_dlopen_self_static=unknown
10574 lt_cv_dlopen="load_add_on"
10576 lt_cv_dlopen_self=yes
10580 lt_cv_dlopen="LoadLibrary"
10585 lt_cv_dlopen="dlopen"
10590 # if libdl is installed we need to link against it
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10592 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10593 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10594 $as_echo_n "(cached) " >&6
10596 ac_check_lib_save_LIBS=$LIBS
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10601 /* Override any GCC internal prototype to avoid an error.
10602 Use char because int might match the return type of a GCC
10603 builtin and then its argument prototype would still apply. */
10616 if ac_fn_c_try_link "$LINENO"; then :
10617 ac_cv_lib_dl_dlopen=yes
10619 ac_cv_lib_dl_dlopen=no
10621 rm -f core conftest.err conftest.$ac_objext \
10622 conftest$ac_exeext conftest.$ac_ext
10623 LIBS=$ac_check_lib_save_LIBS
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10626 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10627 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10631 lt_cv_dlopen="dyld"
10633 lt_cv_dlopen_self=yes
10640 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10641 if test "x$ac_cv_func_shl_load" = x""yes; then :
10642 lt_cv_dlopen="shl_load"
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10645 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10646 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10649 ac_check_lib_save_LIBS=$LIBS
10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h. */
10654 /* Override any GCC internal prototype to avoid an error.
10655 Use char because int might match the return type of a GCC
10656 builtin and then its argument prototype would still apply. */
10664 return shl_load ();
10669 if ac_fn_c_try_link "$LINENO"; then :
10670 ac_cv_lib_dld_shl_load=yes
10672 ac_cv_lib_dld_shl_load=no
10674 rm -f core conftest.err conftest.$ac_objext \
10675 conftest$ac_exeext conftest.$ac_ext
10676 LIBS=$ac_check_lib_save_LIBS
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10679 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10680 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10681 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10683 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10684 if test "x$ac_cv_func_dlopen" = x""yes; then :
10685 lt_cv_dlopen="dlopen"
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10688 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10689 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10690 $as_echo_n "(cached) " >&6
10692 ac_check_lib_save_LIBS=$LIBS
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10712 if ac_fn_c_try_link "$LINENO"; then :
10713 ac_cv_lib_dl_dlopen=yes
10715 ac_cv_lib_dl_dlopen=no
10717 rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS=$ac_check_lib_save_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10722 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10723 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10724 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10727 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10728 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10729 $as_echo_n "(cached) " >&6
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lsvld $LIBS"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10751 if ac_fn_c_try_link "$LINENO"; then :
10752 ac_cv_lib_svld_dlopen=yes
10754 ac_cv_lib_svld_dlopen=no
10756 rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10761 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10762 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10763 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10766 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10767 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 ac_check_lib_save_LIBS=$LIBS
10772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10773 /* end confdefs.h. */
10775 /* Override any GCC internal prototype to avoid an error.
10776 Use char because int might match the return type of a GCC
10777 builtin and then its argument prototype would still apply. */
10785 return dld_link ();
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 ac_cv_lib_dld_dld_link=yes
10793 ac_cv_lib_dld_dld_link=no
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 LIBS=$ac_check_lib_save_LIBS
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10800 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10801 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10802 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10823 if test "x$lt_cv_dlopen" != xno; then
10829 case $lt_cv_dlopen in
10831 save_CPPFLAGS="$CPPFLAGS"
10832 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10834 save_LDFLAGS="$LDFLAGS"
10835 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10838 LIBS="$lt_cv_dlopen_libs $LIBS"
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10841 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10842 if test "${lt_cv_dlopen_self+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
10845 if test "$cross_compiling" = yes; then :
10846 lt_cv_dlopen_self=cross
10848 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10849 lt_status=$lt_dlunknown
10850 cat > conftest.$ac_ext <<EOF
10851 #line 10851 "configure"
10852 #include "confdefs.h"
10861 # define LT_DLGLOBAL RTLD_GLOBAL
10864 # define LT_DLGLOBAL DL_GLOBAL
10866 # define LT_DLGLOBAL 0
10870 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10871 find out it does not work in some platform. */
10872 #ifndef LT_DLLAZY_OR_NOW
10874 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10877 # define LT_DLLAZY_OR_NOW DL_LAZY
10880 # define LT_DLLAZY_OR_NOW RTLD_NOW
10883 # define LT_DLLAZY_OR_NOW DL_NOW
10885 # define LT_DLLAZY_OR_NOW 0
10893 extern "C" void exit (int);
10896 void fnord() { int i=42;}
10899 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10900 int status = $lt_dlunknown;
10904 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10905 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10906 /* dlclose (self); */
10912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10913 (eval $ac_link) 2>&5
10915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10916 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10917 (./conftest; exit; ) >&5 2>/dev/null
10919 case x$lt_status in
10920 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10921 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10922 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10925 # compilation failed
10926 lt_cv_dlopen_self=no
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10934 $as_echo "$lt_cv_dlopen_self" >&6; }
10936 if test "x$lt_cv_dlopen_self" = xyes; then
10937 LDFLAGS="$LDFLAGS $link_static_flag"
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10939 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10940 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10941 $as_echo_n "(cached) " >&6
10943 if test "$cross_compiling" = yes; then :
10944 lt_cv_dlopen_self_static=cross
10946 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10947 lt_status=$lt_dlunknown
10948 cat > conftest.$ac_ext <<EOF
10949 #line 10949 "configure"
10950 #include "confdefs.h"
10959 # define LT_DLGLOBAL RTLD_GLOBAL
10962 # define LT_DLGLOBAL DL_GLOBAL
10964 # define LT_DLGLOBAL 0
10968 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10969 find out it does not work in some platform. */
10970 #ifndef LT_DLLAZY_OR_NOW
10972 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10975 # define LT_DLLAZY_OR_NOW DL_LAZY
10978 # define LT_DLLAZY_OR_NOW RTLD_NOW
10981 # define LT_DLLAZY_OR_NOW DL_NOW
10983 # define LT_DLLAZY_OR_NOW 0
10991 extern "C" void exit (int);
10994 void fnord() { int i=42;}
10997 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10998 int status = $lt_dlunknown;
11002 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11003 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11004 /* dlclose (self); */
11010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11011 (eval $ac_link) 2>&5
11013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11014 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11015 (./conftest; exit; ) >&5 2>/dev/null
11017 case x$lt_status in
11018 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11019 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11020 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11023 # compilation failed
11024 lt_cv_dlopen_self_static=no
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11032 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11035 CPPFLAGS="$save_CPPFLAGS"
11036 LDFLAGS="$save_LDFLAGS"
11041 case $lt_cv_dlopen_self in
11042 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11043 *) enable_dlopen_self=unknown ;;
11046 case $lt_cv_dlopen_self_static in
11047 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11048 *) enable_dlopen_self_static=unknown ;;
11053 # Report which librarie types wil actually be built
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11055 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11057 $as_echo "$can_build_shared" >&6; }
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11060 $as_echo_n "checking whether to build shared libraries... " >&6; }
11061 test "$can_build_shared" = "no" && enable_shared=no
11063 # On AIX, shared libraries and static libraries use the same namespace, and
11064 # are all built from PIC.
11067 test "$enable_shared" = yes && enable_static=no
11068 if test -n "$RANLIB"; then
11069 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11070 postinstall_cmds='$RANLIB $lib'
11075 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11076 test "$enable_shared" = yes && enable_static=no
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11081 $as_echo "$enable_shared" >&6; }
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11084 $as_echo_n "checking whether to build static libraries... " >&6; }
11085 # Make sure either enable_shared or enable_static is yes.
11086 test "$enable_shared" = yes || enable_static=yes
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11088 $as_echo "$enable_static" >&6; }
11090 # The else clause should only fire when bootstrapping the
11091 # libtool distribution, otherwise you forgot to ship ltmain.sh
11092 # with your package, and you will get complaints that there are
11093 # no rules to generate ltmain.sh.
11094 if test -f "$ltmain"; then
11095 # See if we are running on zsh, and set the options which allow our commands through
11096 # without removal of \ escapes.
11097 if test -n "${ZSH_VERSION+set}" ; then
11098 setopt NO_GLOB_SUBST
11100 # Now quote all the things that may contain metacharacters while being
11101 # careful not to overquote the AC_SUBSTed values. We take copies of the
11102 # variables and quote the copies for generation of the libtool script.
11103 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11105 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11106 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11107 deplibs_check_method reload_flag reload_cmds need_locks \
11108 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11109 lt_cv_sys_global_symbol_to_c_name_address \
11110 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11111 old_postinstall_cmds old_postuninstall_cmds \
11115 lt_prog_compiler_wl \
11116 lt_prog_compiler_pic \
11117 lt_prog_compiler_static \
11118 lt_prog_compiler_no_builtin_flag \
11119 export_dynamic_flag_spec \
11120 thread_safe_flag_spec \
11121 whole_archive_flag_spec \
11122 enable_shared_with_static_runtimes \
11124 old_archive_from_new_cmds \
11129 compiler_lib_search_path \
11131 archive_expsym_cmds \
11133 postuninstall_cmds \
11134 old_archive_from_expsyms_cmds \
11135 allow_undefined_flag \
11136 no_undefined_flag \
11137 export_symbols_cmds \
11138 hardcode_libdir_flag_spec \
11139 hardcode_libdir_flag_spec_ld \
11140 hardcode_libdir_separator \
11141 hardcode_automatic \
11143 module_expsym_cmds \
11144 lt_cv_prog_compiler_c_o \
11146 include_expsyms; do
11149 old_archive_cmds | \
11150 old_archive_from_new_cmds | \
11152 archive_expsym_cmds | \
11154 module_expsym_cmds | \
11155 old_archive_from_expsyms_cmds | \
11156 export_symbols_cmds | \
11157 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11158 postinstall_cmds | postuninstall_cmds | \
11159 old_postinstall_cmds | old_postuninstall_cmds | \
11160 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11161 # Double-quote double-evaled strings.
11162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11165 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11171 *'\$0 --fallback-echo"')
11172 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11176 cfgfile="${ofile}T"
11177 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11180 $as_echo "$as_me: creating $ofile" >&6;}
11182 cat <<__EOF__ >> "$cfgfile"
11185 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11186 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11187 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11189 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11190 # Free Software Foundation, Inc.
11192 # This file is part of GNU Libtool:
11193 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11195 # This program is free software; you can redistribute it and/or modify
11196 # it under the terms of the GNU General Public License as published by
11197 # the Free Software Foundation; either version 2 of the License, or
11198 # (at your option) any later version.
11200 # This program is distributed in the hope that it will be useful, but
11201 # WITHOUT ANY WARRANTY; without even the implied warranty of
11202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11203 # General Public License for more details.
11205 # You should have received a copy of the GNU General Public License
11206 # along with this program; if not, write to the Free Software
11207 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11209 # As a special exception to the GNU General Public License, if you
11210 # distribute this file as part of a program that contains a
11211 # configuration script generated by Autoconf, you may include it under
11212 # the same distribution terms that you use for the rest of that program.
11214 # A sed program that does not truncate output.
11217 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11218 Xsed="$SED -e 1s/^X//"
11220 # The HP-UX ksh and POSIX shell print the target directory to stdout
11221 # if CDPATH is set.
11222 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11224 # The names of the tagged configurations supported by this script.
11227 # ### BEGIN LIBTOOL CONFIG
11229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11231 # Shell to use when invoking shell scripts.
11234 # Whether or not to build shared libraries.
11235 build_libtool_libs=$enable_shared
11237 # Whether or not to build static libraries.
11238 build_old_libs=$enable_static
11240 # Whether or not to add -lc for building shared libraries.
11241 build_libtool_need_lc=$archive_cmds_need_lc
11243 # Whether or not to disallow shared libs when runtime libs are static
11244 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11246 # Whether or not to optimize for fast installation.
11247 fast_install=$enable_fast_install
11250 host_alias=$host_alias
11254 # The build system.
11255 build_alias=$build_alias
11259 # An echo program that does not interpret backslashes.
11264 AR_FLAGS=$lt_AR_FLAGS
11269 # A language-specific compiler.
11272 # Is the compiler the GNU C compiler?
11278 # The linker used to build libraries.
11281 # Whether we need hard or soft links.
11284 # A BSD-compatible nm program.
11287 # A symbol stripping program
11290 # Used to examine libraries when file_magic_cmd begins "file"
11291 MAGIC_CMD=$MAGIC_CMD
11293 # Used on cygwin: DLL creation program.
11296 # Used on cygwin: object dumper.
11299 # Used on cygwin: assembler.
11302 # The name of the directory that contains temporary libtool files.
11305 # How to create reloadable object files.
11306 reload_flag=$lt_reload_flag
11307 reload_cmds=$lt_reload_cmds
11309 # How to pass a linker flag through the compiler.
11310 wl=$lt_lt_prog_compiler_wl
11312 # Object file suffix (normally "o").
11313 objext="$ac_objext"
11315 # Old archive suffix (normally "a").
11318 # Shared library suffix (normally ".so").
11319 shrext_cmds='$shrext_cmds'
11321 # Executable file suffix (normally "").
11324 # Additional compiler flags for building library objects.
11325 pic_flag=$lt_lt_prog_compiler_pic
11328 # What is the maximum length of a command?
11329 max_cmd_len=$lt_cv_sys_max_cmd_len
11331 # Does compiler simultaneously support -c and -o options?
11332 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11334 # Must we lock files when doing compilation?
11335 need_locks=$lt_need_locks
11337 # Do we need the lib prefix for modules?
11338 need_lib_prefix=$need_lib_prefix
11340 # Do we need a version for libraries?
11341 need_version=$need_version
11343 # Whether dlopen is supported.
11344 dlopen_support=$enable_dlopen
11346 # Whether dlopen of programs is supported.
11347 dlopen_self=$enable_dlopen_self
11349 # Whether dlopen of statically linked programs is supported.
11350 dlopen_self_static=$enable_dlopen_self_static
11352 # Compiler flag to prevent dynamic linking.
11353 link_static_flag=$lt_lt_prog_compiler_static
11355 # Compiler flag to turn off builtin functions.
11356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11358 # Compiler flag to allow reflexive dlopens.
11359 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11361 # Compiler flag to generate shared objects directly from archives.
11362 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11364 # Compiler flag to generate thread-safe objects.
11365 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11367 # Library versioning type.
11368 version_type=$version_type
11370 # Format of library name prefix.
11371 libname_spec=$lt_libname_spec
11373 # List of archive names. First name is the real one, the rest are links.
11374 # The last name is the one that the linker finds with -lNAME.
11375 library_names_spec=$lt_library_names_spec
11377 # The coded name of the library, if different from the real name.
11378 soname_spec=$lt_soname_spec
11380 # Commands used to build and install an old-style archive.
11382 old_archive_cmds=$lt_old_archive_cmds
11383 old_postinstall_cmds=$lt_old_postinstall_cmds
11384 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11386 # Create an old-style archive from a shared archive.
11387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11389 # Create a temporary old-style archive to link instead of a shared archive.
11390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11392 # Commands used to build and install a shared archive.
11393 archive_cmds=$lt_archive_cmds
11394 archive_expsym_cmds=$lt_archive_expsym_cmds
11395 postinstall_cmds=$lt_postinstall_cmds
11396 postuninstall_cmds=$lt_postuninstall_cmds
11398 # Commands used to build a loadable module (assumed same as above if empty)
11399 module_cmds=$lt_module_cmds
11400 module_expsym_cmds=$lt_module_expsym_cmds
11402 # Commands to strip libraries.
11403 old_striplib=$lt_old_striplib
11404 striplib=$lt_striplib
11406 # Dependencies to place before the objects being linked to create a
11408 predep_objects=$lt_predep_objects
11410 # Dependencies to place after the objects being linked to create a
11412 postdep_objects=$lt_postdep_objects
11414 # Dependencies to place before the objects being linked to create a
11416 predeps=$lt_predeps
11418 # Dependencies to place after the objects being linked to create a
11420 postdeps=$lt_postdeps
11422 # The library search path used internally by the compiler when linking
11423 # a shared library.
11424 compiler_lib_search_path=$lt_compiler_lib_search_path
11426 # Method to check whether dependent libraries are shared objects.
11427 deplibs_check_method=$lt_deplibs_check_method
11429 # Command to use when deplibs_check_method == file_magic.
11430 file_magic_cmd=$lt_file_magic_cmd
11432 # Flag that allows shared libraries with undefined symbols to be built.
11433 allow_undefined_flag=$lt_allow_undefined_flag
11435 # Flag that forces no undefined symbols.
11436 no_undefined_flag=$lt_no_undefined_flag
11438 # Commands used to finish a libtool library installation in a directory.
11439 finish_cmds=$lt_finish_cmds
11441 # Same as above, but a single script fragment to be evaled but not shown.
11442 finish_eval=$lt_finish_eval
11444 # Take the output of nm and produce a listing of raw symbols and C names.
11445 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11447 # Transform the output of nm in a proper C declaration
11448 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11450 # Transform the output of nm in a C name address pair
11451 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11453 # This is the shared library runtime path variable.
11454 runpath_var=$runpath_var
11456 # This is the shared library path variable.
11457 shlibpath_var=$shlibpath_var
11459 # Is shlibpath searched before the hard-coded library search path?
11460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11462 # How to hardcode a shared library path into an executable.
11463 hardcode_action=$hardcode_action
11465 # Whether we should hardcode library paths into libraries.
11466 hardcode_into_libs=$hardcode_into_libs
11468 # Flag to hardcode \$libdir into a binary during linking.
11469 # This must work even if \$libdir does not exist.
11470 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11472 # If ld is used when linking, flag to hardcode \$libdir into
11473 # a binary during linking. This must work even if \$libdir does
11475 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11477 # Whether we need a single -rpath flag with a separated argument.
11478 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11480 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11481 # resulting binary.
11482 hardcode_direct=$hardcode_direct
11484 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11485 # resulting binary.
11486 hardcode_minus_L=$hardcode_minus_L
11488 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11489 # the resulting binary.
11490 hardcode_shlibpath_var=$hardcode_shlibpath_var
11492 # Set to yes if building a shared library automatically hardcodes DIR into the library
11493 # and all subsequent libraries and executables linked against it.
11494 hardcode_automatic=$hardcode_automatic
11496 # Variables whose values should be saved in libtool wrapper scripts and
11497 # restored at relink time.
11498 variables_saved_for_relink="$variables_saved_for_relink"
11500 # Whether libtool must link a program against all its dependency libraries.
11501 link_all_deplibs=$link_all_deplibs
11503 # Compile-time system search path for libraries
11504 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11506 # Run-time system search path for libraries
11507 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11509 # Fix the shell variable \$srcfile for the compiler.
11510 fix_srcfile_path="$fix_srcfile_path"
11512 # Set to yes if exported symbols are required.
11513 always_export_symbols=$always_export_symbols
11515 # The commands to list exported symbols.
11516 export_symbols_cmds=$lt_export_symbols_cmds
11518 # The commands to extract the exported symbol list from a shared archive.
11519 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11521 # Symbols that should not be listed in the preloaded symbols.
11522 exclude_expsyms=$lt_exclude_expsyms
11524 # Symbols that must always be exported.
11525 include_expsyms=$lt_include_expsyms
11527 # ### END LIBTOOL CONFIG
11534 cat <<\EOF >> "$cfgfile"
11536 # AIX sometimes has problems with the GCC collect2 program. For some
11537 # reason, if we set the COLLECT_NAMES environment variable, the problems
11538 # vanish in a puff of smoke.
11539 if test "X${COLLECT_NAMES+set}" != Xset; then
11541 export COLLECT_NAMES
11547 # We use sed instead of cat because bash on DJGPP gets confused if
11548 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11549 # text mode, it properly converts lines to CR/LF. This bash problem
11550 # is reportedly fixed, but why not run on old versions too?
11551 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11553 mv -f "$cfgfile" "$ofile" || \
11554 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11558 # If there is no Makefile yet, we rely on a make rule to execute
11559 # `config.status --recheck' to rerun these tests and create the
11560 # libtool script then.
11561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11562 if test -f "$ltmain_in"; then
11563 test -f Makefile && make "$ltmain"
11569 ac_cpp='$CPP $CPPFLAGS'
11570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11577 # Check whether --with-tags was given.
11578 if test "${with_tags+set}" = set; then :
11579 withval=$with_tags; tagnames="$withval"
11583 if test -f "$ltmain" && test -n "$tagnames"; then
11584 if test ! -f "${ofile}"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11586 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11589 if test -z "$LTCC"; then
11590 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11591 if test -z "$LTCC"; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11593 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11596 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11600 # Extract list of available tagged configurations in $ofile.
11601 # Note that this assumes the entire list is on one line.
11602 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11604 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11605 for tagname in $tagnames; do
11607 # Check whether tagname contains only valid characters
11608 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11610 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11614 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11616 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11619 # Update the list of available tags.
11620 if test -n "$tagname"; then
11621 echo appending configuration tag \"$tagname\" to $ofile
11625 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11626 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11627 (test "X$CXX" != "Xg++"))) ; then
11635 if test -n "$F77" && test "X$F77" != "Xno"; then
11643 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11653 # Source file extension for RC test sources.
11656 # Object file extension for compiled RC test sources.
11660 # Code to be used in simple compile tests
11661 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11663 # Code to be used in simple link tests
11664 lt_simple_link_test_code="$lt_simple_compile_test_code"
11666 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11668 # If no C compiler was specified, use CC.
11671 # Allow CC to be a program name with arguments.
11675 # save warnings/boilerplate of simple test code
11676 ac_outfile=conftest.$ac_objext
11677 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11678 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11679 _lt_compiler_boilerplate=`cat conftest.err`
11682 ac_outfile=conftest.$ac_objext
11683 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11684 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11685 _lt_linker_boilerplate=`cat conftest.err`
11689 # Allow CC to be a program name with arguments.
11694 for cc_temp in $compiler""; do
11696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11702 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11704 lt_cv_prog_compiler_c_o_RC=yes
11706 # The else clause should only fire when bootstrapping the
11707 # libtool distribution, otherwise you forgot to ship ltmain.sh
11708 # with your package, and you will get complaints that there are
11709 # no rules to generate ltmain.sh.
11710 if test -f "$ltmain"; then
11711 # See if we are running on zsh, and set the options which allow our commands through
11712 # without removal of \ escapes.
11713 if test -n "${ZSH_VERSION+set}" ; then
11714 setopt NO_GLOB_SUBST
11716 # Now quote all the things that may contain metacharacters while being
11717 # careful not to overquote the AC_SUBSTed values. We take copies of the
11718 # variables and quote the copies for generation of the libtool script.
11719 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11721 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11722 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11723 deplibs_check_method reload_flag reload_cmds need_locks \
11724 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11725 lt_cv_sys_global_symbol_to_c_name_address \
11726 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11727 old_postinstall_cmds old_postuninstall_cmds \
11731 lt_prog_compiler_wl_RC \
11732 lt_prog_compiler_pic_RC \
11733 lt_prog_compiler_static_RC \
11734 lt_prog_compiler_no_builtin_flag_RC \
11735 export_dynamic_flag_spec_RC \
11736 thread_safe_flag_spec_RC \
11737 whole_archive_flag_spec_RC \
11738 enable_shared_with_static_runtimes_RC \
11739 old_archive_cmds_RC \
11740 old_archive_from_new_cmds_RC \
11741 predep_objects_RC \
11742 postdep_objects_RC \
11745 compiler_lib_search_path_RC \
11747 archive_expsym_cmds_RC \
11748 postinstall_cmds_RC \
11749 postuninstall_cmds_RC \
11750 old_archive_from_expsyms_cmds_RC \
11751 allow_undefined_flag_RC \
11752 no_undefined_flag_RC \
11753 export_symbols_cmds_RC \
11754 hardcode_libdir_flag_spec_RC \
11755 hardcode_libdir_flag_spec_ld_RC \
11756 hardcode_libdir_separator_RC \
11757 hardcode_automatic_RC \
11759 module_expsym_cmds_RC \
11760 lt_cv_prog_compiler_c_o_RC \
11761 exclude_expsyms_RC \
11762 include_expsyms_RC; do
11765 old_archive_cmds_RC | \
11766 old_archive_from_new_cmds_RC | \
11767 archive_cmds_RC | \
11768 archive_expsym_cmds_RC | \
11770 module_expsym_cmds_RC | \
11771 old_archive_from_expsyms_cmds_RC | \
11772 export_symbols_cmds_RC | \
11773 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11774 postinstall_cmds | postuninstall_cmds | \
11775 old_postinstall_cmds | old_postuninstall_cmds | \
11776 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11777 # Double-quote double-evaled strings.
11778 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11781 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11787 *'\$0 --fallback-echo"')
11788 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11794 cat <<__EOF__ >> "$cfgfile"
11795 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11799 # Shell to use when invoking shell scripts.
11802 # Whether or not to build shared libraries.
11803 build_libtool_libs=$enable_shared
11805 # Whether or not to build static libraries.
11806 build_old_libs=$enable_static
11808 # Whether or not to add -lc for building shared libraries.
11809 build_libtool_need_lc=$archive_cmds_need_lc_RC
11811 # Whether or not to disallow shared libs when runtime libs are static
11812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11814 # Whether or not to optimize for fast installation.
11815 fast_install=$enable_fast_install
11818 host_alias=$host_alias
11822 # The build system.
11823 build_alias=$build_alias
11827 # An echo program that does not interpret backslashes.
11832 AR_FLAGS=$lt_AR_FLAGS
11837 # A language-specific compiler.
11840 # Is the compiler the GNU C compiler?
11846 # The linker used to build libraries.
11849 # Whether we need hard or soft links.
11852 # A BSD-compatible nm program.
11855 # A symbol stripping program
11858 # Used to examine libraries when file_magic_cmd begins "file"
11859 MAGIC_CMD=$MAGIC_CMD
11861 # Used on cygwin: DLL creation program.
11864 # Used on cygwin: object dumper.
11867 # Used on cygwin: assembler.
11870 # The name of the directory that contains temporary libtool files.
11873 # How to create reloadable object files.
11874 reload_flag=$lt_reload_flag
11875 reload_cmds=$lt_reload_cmds
11877 # How to pass a linker flag through the compiler.
11878 wl=$lt_lt_prog_compiler_wl_RC
11880 # Object file suffix (normally "o").
11881 objext="$ac_objext"
11883 # Old archive suffix (normally "a").
11886 # Shared library suffix (normally ".so").
11887 shrext_cmds='$shrext_cmds'
11889 # Executable file suffix (normally "").
11892 # Additional compiler flags for building library objects.
11893 pic_flag=$lt_lt_prog_compiler_pic_RC
11896 # What is the maximum length of a command?
11897 max_cmd_len=$lt_cv_sys_max_cmd_len
11899 # Does compiler simultaneously support -c and -o options?
11900 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11902 # Must we lock files when doing compilation?
11903 need_locks=$lt_need_locks
11905 # Do we need the lib prefix for modules?
11906 need_lib_prefix=$need_lib_prefix
11908 # Do we need a version for libraries?
11909 need_version=$need_version
11911 # Whether dlopen is supported.
11912 dlopen_support=$enable_dlopen
11914 # Whether dlopen of programs is supported.
11915 dlopen_self=$enable_dlopen_self
11917 # Whether dlopen of statically linked programs is supported.
11918 dlopen_self_static=$enable_dlopen_self_static
11920 # Compiler flag to prevent dynamic linking.
11921 link_static_flag=$lt_lt_prog_compiler_static_RC
11923 # Compiler flag to turn off builtin functions.
11924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11926 # Compiler flag to allow reflexive dlopens.
11927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11929 # Compiler flag to generate shared objects directly from archives.
11930 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11932 # Compiler flag to generate thread-safe objects.
11933 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11935 # Library versioning type.
11936 version_type=$version_type
11938 # Format of library name prefix.
11939 libname_spec=$lt_libname_spec
11941 # List of archive names. First name is the real one, the rest are links.
11942 # The last name is the one that the linker finds with -lNAME.
11943 library_names_spec=$lt_library_names_spec
11945 # The coded name of the library, if different from the real name.
11946 soname_spec=$lt_soname_spec
11948 # Commands used to build and install an old-style archive.
11950 old_archive_cmds=$lt_old_archive_cmds_RC
11951 old_postinstall_cmds=$lt_old_postinstall_cmds
11952 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11954 # Create an old-style archive from a shared archive.
11955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11957 # Create a temporary old-style archive to link instead of a shared archive.
11958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11960 # Commands used to build and install a shared archive.
11961 archive_cmds=$lt_archive_cmds_RC
11962 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11963 postinstall_cmds=$lt_postinstall_cmds
11964 postuninstall_cmds=$lt_postuninstall_cmds
11966 # Commands used to build a loadable module (assumed same as above if empty)
11967 module_cmds=$lt_module_cmds_RC
11968 module_expsym_cmds=$lt_module_expsym_cmds_RC
11970 # Commands to strip libraries.
11971 old_striplib=$lt_old_striplib
11972 striplib=$lt_striplib
11974 # Dependencies to place before the objects being linked to create a
11976 predep_objects=$lt_predep_objects_RC
11978 # Dependencies to place after the objects being linked to create a
11980 postdep_objects=$lt_postdep_objects_RC
11982 # Dependencies to place before the objects being linked to create a
11984 predeps=$lt_predeps_RC
11986 # Dependencies to place after the objects being linked to create a
11988 postdeps=$lt_postdeps_RC
11990 # The library search path used internally by the compiler when linking
11991 # a shared library.
11992 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11994 # Method to check whether dependent libraries are shared objects.
11995 deplibs_check_method=$lt_deplibs_check_method
11997 # Command to use when deplibs_check_method == file_magic.
11998 file_magic_cmd=$lt_file_magic_cmd
12000 # Flag that allows shared libraries with undefined symbols to be built.
12001 allow_undefined_flag=$lt_allow_undefined_flag_RC
12003 # Flag that forces no undefined symbols.
12004 no_undefined_flag=$lt_no_undefined_flag_RC
12006 # Commands used to finish a libtool library installation in a directory.
12007 finish_cmds=$lt_finish_cmds
12009 # Same as above, but a single script fragment to be evaled but not shown.
12010 finish_eval=$lt_finish_eval
12012 # Take the output of nm and produce a listing of raw symbols and C names.
12013 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12015 # Transform the output of nm in a proper C declaration
12016 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12018 # Transform the output of nm in a C name address pair
12019 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12021 # This is the shared library runtime path variable.
12022 runpath_var=$runpath_var
12024 # This is the shared library path variable.
12025 shlibpath_var=$shlibpath_var
12027 # Is shlibpath searched before the hard-coded library search path?
12028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12030 # How to hardcode a shared library path into an executable.
12031 hardcode_action=$hardcode_action_RC
12033 # Whether we should hardcode library paths into libraries.
12034 hardcode_into_libs=$hardcode_into_libs
12036 # Flag to hardcode \$libdir into a binary during linking.
12037 # This must work even if \$libdir does not exist.
12038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12040 # If ld is used when linking, flag to hardcode \$libdir into
12041 # a binary during linking. This must work even if \$libdir does
12043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12045 # Whether we need a single -rpath flag with a separated argument.
12046 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12048 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12049 # resulting binary.
12050 hardcode_direct=$hardcode_direct_RC
12052 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12053 # resulting binary.
12054 hardcode_minus_L=$hardcode_minus_L_RC
12056 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12057 # the resulting binary.
12058 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12060 # Set to yes if building a shared library automatically hardcodes DIR into the library
12061 # and all subsequent libraries and executables linked against it.
12062 hardcode_automatic=$hardcode_automatic_RC
12064 # Variables whose values should be saved in libtool wrapper scripts and
12065 # restored at relink time.
12066 variables_saved_for_relink="$variables_saved_for_relink"
12068 # Whether libtool must link a program against all its dependency libraries.
12069 link_all_deplibs=$link_all_deplibs_RC
12071 # Compile-time system search path for libraries
12072 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12074 # Run-time system search path for libraries
12075 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12077 # Fix the shell variable \$srcfile for the compiler.
12078 fix_srcfile_path="$fix_srcfile_path_RC"
12080 # Set to yes if exported symbols are required.
12081 always_export_symbols=$always_export_symbols_RC
12083 # The commands to list exported symbols.
12084 export_symbols_cmds=$lt_export_symbols_cmds_RC
12086 # The commands to extract the exported symbol list from a shared archive.
12087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12089 # Symbols that should not be listed in the preloaded symbols.
12090 exclude_expsyms=$lt_exclude_expsyms_RC
12092 # Symbols that must always be exported.
12093 include_expsyms=$lt_include_expsyms_RC
12095 # ### END LIBTOOL TAG CONFIG: $tagname
12101 # If there is no Makefile yet, we rely on a make rule to execute
12102 # `config.status --recheck' to rerun these tests and create the
12103 # libtool script then.
12104 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12105 if test -f "$ltmain_in"; then
12106 test -f Makefile && make "$ltmain"
12112 ac_cpp='$CPP $CPPFLAGS'
12113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12122 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12126 # Append the new tag name to the list of available tags.
12127 if test -n "$tagname" ; then
12128 available_tags="$available_tags $tagname"
12134 # Now substitute the updated list of available tags.
12135 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12136 mv "${ofile}T" "$ofile"
12140 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12146 # This can be used to rebuild libtool when needed
12147 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12149 # Always use our own libtool.
12150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12152 # Prevent multiple expansion
12164 if test $ol_enable_perl != no ; then
12165 # Extract the first word of "perl", so it can be a program name with args.
12166 set dummy perl; ac_word=$2
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12168 $as_echo_n "checking for $ac_word... " >&6; }
12169 if test "${ac_cv_path_PERLBIN+set}" = set; then :
12170 $as_echo_n "(cached) " >&6
12174 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178 for as_dir in $PATH
12181 test -z "$as_dir" && as_dir=.
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12184 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12192 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12196 PERLBIN=$ac_cv_path_PERLBIN
12197 if test -n "$PERLBIN"; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12199 $as_echo "$PERLBIN" >&6; }
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202 $as_echo "no" >&6; }
12207 if test "no$PERLBIN" = "no" ; then
12208 if test $ol_enable_perl = yes ; then
12209 as_fn_error "could not locate perl" "$LINENO" 5
12213 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12214 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12216 if test x"$ol_enable_perl" = "xyes" ; then
12217 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12219 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12226 ac_cpp='$CPP $CPPFLAGS'
12227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12231 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12232 # On Suns, sometimes $CPP names a directory.
12233 if test -n "$CPP" && test -d "$CPP"; then
12236 if test -z "$CPP"; then
12237 if test "${ac_cv_prog_CPP+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
12240 # Double quotes because CPP needs to be expanded
12241 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12243 ac_preproc_ok=false
12244 for ac_c_preproc_warn_flag in '' yes
12246 # Use a header file that comes with gcc, so configuring glibc
12247 # with a fresh cross-compiler works.
12248 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249 # <limits.h> exists even on freestanding compilers.
12250 # On the NeXT, cc -E runs the code through the compiler's parser,
12251 # not just through cpp. "Syntax error" is here to catch this case.
12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12253 /* end confdefs.h. */
12255 # include <limits.h>
12257 # include <assert.h>
12261 if ac_fn_c_try_cpp "$LINENO"; then :
12264 # Broken: fails on valid input.
12267 rm -f conftest.err conftest.$ac_ext
12269 # OK, works on sane cases. Now check whether nonexistent headers
12270 # can be detected and how.
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273 #include <ac_nonexistent.h>
12275 if ac_fn_c_try_cpp "$LINENO"; then :
12276 # Broken: success on invalid input.
12279 # Passes both tests.
12283 rm -f conftest.err conftest.$ac_ext
12286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12287 rm -f conftest.err conftest.$ac_ext
12288 if $ac_preproc_ok; then :
12293 ac_cv_prog_CPP=$CPP
12296 CPP=$ac_cv_prog_CPP
12298 ac_cv_prog_CPP=$CPP
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12301 $as_echo "$CPP" >&6; }
12302 ac_preproc_ok=false
12303 for ac_c_preproc_warn_flag in '' yes
12305 # Use a header file that comes with gcc, so configuring glibc
12306 # with a fresh cross-compiler works.
12307 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12308 # <limits.h> exists even on freestanding compilers.
12309 # On the NeXT, cc -E runs the code through the compiler's parser,
12310 # not just through cpp. "Syntax error" is here to catch this case.
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12314 # include <limits.h>
12316 # include <assert.h>
12320 if ac_fn_c_try_cpp "$LINENO"; then :
12323 # Broken: fails on valid input.
12326 rm -f conftest.err conftest.$ac_ext
12328 # OK, works on sane cases. Now check whether nonexistent headers
12329 # can be detected and how.
12330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h. */
12332 #include <ac_nonexistent.h>
12334 if ac_fn_c_try_cpp "$LINENO"; then :
12335 # Broken: success on invalid input.
12338 # Passes both tests.
12342 rm -f conftest.err conftest.$ac_ext
12345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12346 rm -f conftest.err conftest.$ac_ext
12347 if $ac_preproc_ok; then :
12350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12352 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12353 See \`config.log' for more details." "$LINENO" 5; }
12357 ac_cpp='$CPP $CPPFLAGS'
12358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12363 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12364 if test "${ol_cv_msvc+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
12367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12368 /* end confdefs.h. */
12371 #include <__FOO__/generate_error.h>
12375 if ac_fn_c_try_cpp "$LINENO"; then :
12380 rm -f conftest.err conftest.$ac_ext
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12383 $as_echo "$ol_cv_msvc" >&6; }
12386 *mingw32* ) ac_cv_mingw32=yes ;;
12387 *cygwin* ) ac_cv_cygwin=yes ;;
12388 *interix* ) ac_cv_interix=yes ;;
12394 cat >>confdefs.h <<_ACEOF
12395 #define EXEEXT "${EXEEXT}"
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12400 $as_echo_n "checking for be_app in -lbe... " >&6; }
12401 if test "${ac_cv_lib_be_be_app+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
12404 ac_check_lib_save_LIBS=$LIBS
12405 LIBS="-lbe -lroot -lnet $LIBS"
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12424 if ac_fn_c_try_link "$LINENO"; then :
12425 ac_cv_lib_be_be_app=yes
12427 ac_cv_lib_be_be_app=no
12429 rm -f core conftest.err conftest.$ac_objext \
12430 conftest$ac_exeext conftest.$ac_ext
12431 LIBS=$ac_check_lib_save_LIBS
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12434 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12435 if test "x$ac_cv_lib_be_be_app" = x""yes; then :
12436 LIBS="$LIBS -lbe -lroot -lnet"
12443 ac_cpp='$CPP $CPPFLAGS'
12444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12447 if test -n "$ac_tool_prefix"; then
12448 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12449 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451 $as_echo_n "checking for $ac_word... " >&6; }
12452 if test "${ac_cv_prog_CC+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12455 if test -n "$CC"; then
12456 ac_cv_prog_CC="$CC" # Let the user override the test.
12458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459 for as_dir in $PATH
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 if test -n "$CC"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12478 $as_echo "$CC" >&6; }
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481 $as_echo "no" >&6; }
12486 if test -z "$ac_cv_prog_CC"; then
12488 # Extract the first word of "gcc", so it can be a program name with args.
12489 set dummy gcc; ac_word=$2
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12491 $as_echo_n "checking for $ac_word... " >&6; }
12492 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12493 $as_echo_n "(cached) " >&6
12495 if test -n "$ac_ct_CC"; then
12496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12499 for as_dir in $PATH
12502 test -z "$as_dir" && as_dir=.
12503 for ac_exec_ext in '' $ac_executable_extensions; do
12504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12505 ac_cv_prog_ac_ct_CC="gcc"
12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12515 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12516 if test -n "$ac_ct_CC"; then
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12518 $as_echo "$ac_ct_CC" >&6; }
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12521 $as_echo "no" >&6; }
12524 if test "x$ac_ct_CC" = x; then
12527 case $cross_compiling:$ac_tool_warned in
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12531 ac_tool_warned=yes ;;
12536 CC="$ac_cv_prog_CC"
12539 if test -z "$CC"; then
12540 if test -n "$ac_tool_prefix"; then
12541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12542 set dummy ${ac_tool_prefix}cc; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544 $as_echo_n "checking for $ac_word... " >&6; }
12545 if test "${ac_cv_prog_CC+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
12548 if test -n "$CC"; then
12549 ac_cv_prog_CC="$CC" # Let the user override the test.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12558 ac_cv_prog_CC="${ac_tool_prefix}cc"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 if test -n "$CC"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12571 $as_echo "$CC" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574 $as_echo "no" >&6; }
12580 if test -z "$CC"; then
12581 # Extract the first word of "cc", so it can be a program name with args.
12582 set dummy cc; ac_word=$2
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584 $as_echo_n "checking for $ac_word... " >&6; }
12585 if test "${ac_cv_prog_CC+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
12588 if test -n "$CC"; then
12589 ac_cv_prog_CC="$CC" # Let the user override the test.
12591 ac_prog_rejected=no
12592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12593 for as_dir in $PATH
12596 test -z "$as_dir" && as_dir=.
12597 for ac_exec_ext in '' $ac_executable_extensions; do
12598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12599 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12600 ac_prog_rejected=yes
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12611 if test $ac_prog_rejected = yes; then
12612 # We found a bogon in the path, so make sure we never use it.
12613 set dummy $ac_cv_prog_CC
12615 if test $# != 0; then
12616 # We chose a different compiler from the bogus one.
12617 # However, it has the same basename, so the bogon will be chosen
12618 # first if we set CC to just the basename; use the full file name.
12620 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12626 if test -n "$CC"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12628 $as_echo "$CC" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12636 if test -z "$CC"; then
12637 if test -n "$ac_tool_prefix"; then
12638 for ac_prog in cl.exe
12640 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12641 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643 $as_echo_n "checking for $ac_word... " >&6; }
12644 if test "${ac_cv_prog_CC+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12647 if test -n "$CC"; then
12648 ac_cv_prog_CC="$CC" # Let the user override the test.
12650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651 for as_dir in $PATH
12654 test -z "$as_dir" && as_dir=.
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12657 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12668 if test -n "$CC"; then
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12670 $as_echo "$CC" >&6; }
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673 $as_echo "no" >&6; }
12677 test -n "$CC" && break
12680 if test -z "$CC"; then
12682 for ac_prog in cl.exe
12684 # Extract the first word of "$ac_prog", so it can be a program name with args.
12685 set dummy $ac_prog; ac_word=$2
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12687 $as_echo_n "checking for $ac_word... " >&6; }
12688 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12689 $as_echo_n "(cached) " >&6
12691 if test -n "$ac_ct_CC"; then
12692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12695 for as_dir in $PATH
12698 test -z "$as_dir" && as_dir=.
12699 for ac_exec_ext in '' $ac_executable_extensions; do
12700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12701 ac_cv_prog_ac_ct_CC="$ac_prog"
12702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12712 if test -n "$ac_ct_CC"; then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12714 $as_echo "$ac_ct_CC" >&6; }
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12721 test -n "$ac_ct_CC" && break
12724 if test "x$ac_ct_CC" = x; then
12727 case $cross_compiling:$ac_tool_warned in
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12731 ac_tool_warned=yes ;;
12740 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12742 as_fn_error "no acceptable C compiler found in \$PATH
12743 See \`config.log' for more details." "$LINENO" 5; }
12745 # Provide some information about the compiler.
12746 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12749 for ac_option in --version -v -V -qversion; do
12750 { { ac_try="$ac_compiler $ac_option >&5"
12751 case "(($ac_try" in
12752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12753 *) ac_try_echo=$ac_try;;
12755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12756 $as_echo "$ac_try_echo"; } >&5
12757 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12759 if test -s conftest.err; then
12761 ... rest of stderr output deleted ...
12762 10q' conftest.err >conftest.er1
12763 cat conftest.er1 >&5
12765 rm -f conftest.er1 conftest.err
12766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12767 test $ac_status = 0; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12771 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12772 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12773 $as_echo_n "(cached) " >&6
12775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12789 if ac_fn_c_try_compile "$LINENO"; then :
12790 ac_compiler_gnu=yes
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12795 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12799 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12800 if test $ac_compiler_gnu = yes; then
12805 ac_test_CFLAGS=${CFLAGS+set}
12806 ac_save_CFLAGS=$CFLAGS
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12808 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12809 if test "${ac_cv_prog_cc_g+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
12812 ac_save_c_werror_flag=$ac_c_werror_flag
12813 ac_c_werror_flag=yes
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12827 if ac_fn_c_try_compile "$LINENO"; then :
12828 ac_cv_prog_cc_g=yes
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12842 if ac_fn_c_try_compile "$LINENO"; then :
12845 ac_c_werror_flag=$ac_save_c_werror_flag
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12858 if ac_fn_c_try_compile "$LINENO"; then :
12859 ac_cv_prog_cc_g=yes
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12866 ac_c_werror_flag=$ac_save_c_werror_flag
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12869 $as_echo "$ac_cv_prog_cc_g" >&6; }
12870 if test "$ac_test_CFLAGS" = set; then
12871 CFLAGS=$ac_save_CFLAGS
12872 elif test $ac_cv_prog_cc_g = yes; then
12873 if test "$GCC" = yes; then
12879 if test "$GCC" = yes; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12886 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12887 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12888 $as_echo_n "(cached) " >&6
12890 ac_cv_prog_cc_c89=no
12892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12894 #include <stdarg.h>
12896 #include <sys/types.h>
12897 #include <sys/stat.h>
12898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12899 struct buf { int x; };
12900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12901 static char *e (p, i)
12907 static char *f (char * (*g) (char **, int), char **p, ...)
12912 s = g (p, va_arg (v,int));
12917 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12918 function prototypes and stuff, but not '\xHH' hex character constants.
12919 These don't provoke an error unfortunately, instead are silently treated
12920 as 'x'. The following induces an error, until -std is added to get
12921 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12922 array size at least. It's necessary to write '\x00'==0 to get something
12923 that's true only with -std. */
12924 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12926 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12927 inside strings and character constants. */
12929 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12931 int test (int i, double x);
12932 struct s1 {int (*f) (int a);};
12933 struct s2 {int (*f) (double a);};
12934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12940 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12945 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12946 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12948 CC="$ac_save_CC $ac_arg"
12949 if ac_fn_c_try_compile "$LINENO"; then :
12950 ac_cv_prog_cc_c89=$ac_arg
12952 rm -f core conftest.err conftest.$ac_objext
12953 test "x$ac_cv_prog_cc_c89" != "xno" && break
12955 rm -f conftest.$ac_ext
12960 case "x$ac_cv_prog_cc_c89" in
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12963 $as_echo "none needed" >&6; } ;;
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12966 $as_echo "unsupported" >&6; } ;;
12968 CC="$CC $ac_cv_prog_cc_c89"
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12970 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12972 if test "x$ac_cv_prog_cc_c89" != xno; then :
12977 ac_cpp='$CPP $CPPFLAGS'
12978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12982 depcc="$CC" am_compiler_list=
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12985 $as_echo_n "checking dependency style of $depcc... " >&6; }
12986 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12987 $as_echo_n "(cached) " >&6
12989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12990 # We make a subdir and do the tests there. Otherwise we can end up
12991 # making bogus files that we don't know about and never remove. For
12992 # instance it was reported that on HP-UX the gcc test will end up
12993 # making a dummy file named `D' -- because `-MD' means `put the output
12996 # Copy depcomp to subdir because otherwise we won't find it if we're
12997 # using a relative directory.
12998 cp "$am_depcomp" conftest.dir
13000 # We will build objects and dependencies in a subdirectory because
13001 # it helps to detect inapplicable dependency modes. For instance
13002 # both Tru64's cc and ICC support -MD to output dependencies as a
13003 # side effect of compilation, but ICC will put the dependencies in
13004 # the current directory while Tru64 will put them in the object
13008 am_cv_CC_dependencies_compiler_type=none
13009 if test "$am_compiler_list" = ""; then
13010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13012 for depmode in $am_compiler_list; do
13013 # Setup a source with many dependencies, because some compilers
13014 # like to wrap large dependency lists on column 80 (with \), and
13015 # we should not choose a depcomp mode which is confused by this.
13017 # We need to recreate these files for each test, as the compiler may
13018 # overwrite some of them when testing with obscure command lines.
13019 # This happens at least with the AIX C compiler.
13021 for i in 1 2 3 4 5 6; do
13022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13024 # Solaris 8's {/usr,}/bin/sh.
13025 touch sub/conftst$i.h
13027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13031 # after this tag, mechanisms are not by side-effect, so they'll
13032 # only be used when explicitly requested
13033 if test "x$enable_dependency_tracking" = xyes; then
13041 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13042 # mode. It turns out that the SunPro C++ compiler does not properly
13043 # handle `-M -o', and we need to detect this.
13044 if depmode=$depmode \
13045 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13047 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13048 >/dev/null 2>conftest.err &&
13049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13050 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13052 # icc doesn't choke on unknown options, it will just issue warnings
13053 # or remarks (even with -Werror). So we grep stderr for any message
13054 # that says an option was ignored or not supported.
13055 # When given -MP, icc 7.0 and 7.1 complain thusly:
13056 # icc: Command line warning: ignoring option '-M'; no argument required
13057 # The diagnosis changed in icc 8.0:
13058 # icc: Command line remark: option '-MP' not supported
13059 if (grep 'ignoring option' conftest.err ||
13060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13061 am_cv_CC_dependencies_compiler_type=$depmode
13068 rm -rf conftest.dir
13070 am_cv_CC_dependencies_compiler_type=none
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13075 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13076 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13081 test "x$enable_dependency_tracking" != xno \
13082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13083 am__fastdepCC_TRUE=
13084 am__fastdepCC_FALSE='#'
13086 am__fastdepCC_TRUE='#'
13087 am__fastdepCC_FALSE=
13091 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13092 as_fn_error "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13095 # test for make depend flag
13098 if test -z "${MKDEP}"; then
13099 OL_MKDEP="${CC-cc}"
13100 if test -z "${MKDEP_FLAGS}"; then
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13102 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13103 if test "${ol_cv_mkdep+set}" = set; then :
13104 $as_echo_n "(cached) " >&6
13108 for flag in "-M" "-xM"; do
13109 cat > conftest.c <<EOF
13112 if { ac_try='$OL_MKDEP $flag conftest.c'
13113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13114 (eval $ac_try) 2>&5
13116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13117 test $ac_status = 0; }; } \
13118 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13120 if test ! -f conftest."${ac_object}" ; then
13122 OL_MKDEP_FLAGS="$flag"
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13131 $as_echo "$ol_cv_mkdep" >&6; }
13132 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13135 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13139 OL_MKDEP="${MKDEP}"
13140 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13145 if test "${ol_cv_mkdep}" = no ; then
13146 # this will soon become an error
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13148 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13152 $as_echo_n "checking for afopen in -ls... " >&6; }
13153 if test "${ac_cv_lib_s_afopen+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
13156 ac_check_lib_save_LIBS=$LIBS
13158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13159 /* end confdefs.h. */
13161 /* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13176 if ac_fn_c_try_link "$LINENO"; then :
13177 ac_cv_lib_s_afopen=yes
13179 ac_cv_lib_s_afopen=no
13181 rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
13183 LIBS=$ac_check_lib_save_LIBS
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13186 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13187 if test "x$ac_cv_lib_s_afopen" = x""yes; then :
13191 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13199 ac_cv_func_getopt=no
13201 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13207 WITH_MODULES_ENABLED=no
13208 if test $ol_enable_modules != no ; then
13209 for ac_header in ltdl.h
13211 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13212 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13213 cat >>confdefs.h <<_ACEOF
13214 #define HAVE_LTDL_H 1
13222 if test $ac_cv_header_ltdl_h = no ; then
13223 as_fn_error "could not locate libtool ltdl.h" "$LINENO" 5
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13227 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13228 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
13229 $as_echo_n "(cached) " >&6
13231 ac_check_lib_save_LIBS=$LIBS
13232 LIBS="-lltdl $LIBS"
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13236 /* Override any GCC internal prototype to avoid an error.
13237 Use char because int might match the return type of a GCC
13238 builtin and then its argument prototype would still apply. */
13246 return lt_dlinit ();
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_lib_ltdl_lt_dlinit=yes
13254 ac_cv_lib_ltdl_lt_dlinit=no
13256 rm -f core conftest.err conftest.$ac_objext \
13257 conftest$ac_exeext conftest.$ac_ext
13258 LIBS=$ac_check_lib_save_LIBS
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13261 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13262 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
13264 MODULES_LIBS=-lltdl
13266 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13272 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13273 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
13275 ol_link_modules=yes
13276 WITH_MODULES_ENABLED=yes
13279 for i in $Backends; do
13280 eval "ol_tmp=\$ol_enable_$i"
13281 if test $ol_tmp = mod ; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13283 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13284 eval "ol_enable_$i=yes"
13287 for i in $Overlays; do
13288 eval "ol_tmp=\$ol_enable_$i"
13289 if test $ol_tmp = mod ; then
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13291 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13292 eval "ol_enable_$i=yes"
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13299 $as_echo_n "checking for EBCDIC... " >&6; }
13300 if test "${ol_cv_cpp_ebcdic+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13308 #include <__ASCII__/generate_error.h>
13312 if ac_fn_c_try_cpp "$LINENO"; then :
13313 ol_cv_cpp_ebcdic=yes
13315 ol_cv_cpp_ebcdic=no
13317 rm -f conftest.err conftest.$ac_ext
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13320 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13321 if test $ol_cv_cpp_ebcdic = yes ; then
13323 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13328 $as_echo_n "checking for ANSI C header files... " >&6; }
13329 if test "${ol_cv_header_stdc+set}" = set; then :
13330 $as_echo_n "(cached) " >&6
13332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13333 /* end confdefs.h. */
13334 #include <stdlib.h>
13335 #include <stdarg.h>
13336 #include <string.h>
13339 if ac_fn_c_try_cpp "$LINENO"; then :
13340 ol_cv_header_stdc=yes
13342 ol_cv_header_stdc=no
13344 rm -f conftest.err conftest.$ac_ext
13346 if test $ol_cv_header_stdc = yes; then
13347 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13349 /* end confdefs.h. */
13350 #include <string.h>
13353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13354 $EGREP "memchr" >/dev/null 2>&1; then :
13357 ol_cv_header_stdc=no
13363 if test $ol_cv_header_stdc = yes; then
13364 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 #include <stdlib.h>
13370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13371 $EGREP "free" >/dev/null 2>&1; then :
13374 ol_cv_header_stdc=no
13380 if test $ol_cv_header_stdc = yes; then
13381 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13382 if test "$cross_compiling" = yes; then :
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13388 #ifndef HAVE_EBCDIC
13389 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13390 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13392 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13393 || ('j' <= (c) && (c) <= 'r') \
13394 || ('s' <= (c) && (c) <= 'z'))
13395 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13398 int main () { int i; for (i = 0; i < 256; i++)
13399 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13403 if ac_fn_c_try_run "$LINENO"; then :
13406 ol_cv_header_stdc=no
13408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13409 conftest.$ac_objext conftest.beam conftest.$ac_ext
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13415 $as_echo "$ol_cv_header_stdc" >&6; }
13416 if test $ol_cv_header_stdc = yes; then
13417 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13420 ac_cv_header_stdc=disable
13423 if test $ol_cv_header_stdc != yes; then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13425 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13428 ac_header_dirent=no
13429 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13430 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13432 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13434 $as_echo_n "(cached) " >&6
13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13437 /* end confdefs.h. */
13438 #include <sys/types.h>
13450 if ac_fn_c_try_compile "$LINENO"; then :
13451 eval "$as_ac_Header=yes"
13453 eval "$as_ac_Header=no"
13455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 eval ac_res=\$$as_ac_Header
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13459 $as_echo "$ac_res" >&6; }
13460 eval as_val=\$$as_ac_Header
13461 if test "x$as_val" = x""yes; then :
13462 cat >>confdefs.h <<_ACEOF
13463 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13466 ac_header_dirent=$ac_hdr; break
13470 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13471 if test $ac_header_dirent = dirent.h; then
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13473 $as_echo_n "checking for library containing opendir... " >&6; }
13474 if test "${ac_cv_search_opendir+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
13477 ac_func_search_save_LIBS=$LIBS
13478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13479 /* end confdefs.h. */
13481 /* Override any GCC internal prototype to avoid an error.
13482 Use char because int might match the return type of a GCC
13483 builtin and then its argument prototype would still apply. */
13496 for ac_lib in '' dir; do
13497 if test -z "$ac_lib"; then
13498 ac_res="none required"
13501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13503 if ac_fn_c_try_link "$LINENO"; then :
13504 ac_cv_search_opendir=$ac_res
13506 rm -f core conftest.err conftest.$ac_objext \
13508 if test "${ac_cv_search_opendir+set}" = set; then :
13512 if test "${ac_cv_search_opendir+set}" = set; then :
13515 ac_cv_search_opendir=no
13517 rm conftest.$ac_ext
13518 LIBS=$ac_func_search_save_LIBS
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13521 $as_echo "$ac_cv_search_opendir" >&6; }
13522 ac_res=$ac_cv_search_opendir
13523 if test "$ac_res" != no; then :
13524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13530 $as_echo_n "checking for library containing opendir... " >&6; }
13531 if test "${ac_cv_search_opendir+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13534 ac_func_search_save_LIBS=$LIBS
13535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13536 /* end confdefs.h. */
13538 /* Override any GCC internal prototype to avoid an error.
13539 Use char because int might match the return type of a GCC
13540 builtin and then its argument prototype would still apply. */
13553 for ac_lib in '' x; do
13554 if test -z "$ac_lib"; then
13555 ac_res="none required"
13558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13560 if ac_fn_c_try_link "$LINENO"; then :
13561 ac_cv_search_opendir=$ac_res
13563 rm -f core conftest.err conftest.$ac_objext \
13565 if test "${ac_cv_search_opendir+set}" = set; then :
13569 if test "${ac_cv_search_opendir+set}" = set; then :
13572 ac_cv_search_opendir=no
13574 rm conftest.$ac_ext
13575 LIBS=$ac_func_search_save_LIBS
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13578 $as_echo "$ac_cv_search_opendir" >&6; }
13579 ac_res=$ac_cv_search_opendir
13580 if test "$ac_res" != no; then :
13581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13588 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13589 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13590 $as_echo_n "(cached) " >&6
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594 #include <sys/types.h>
13595 #include <sys/wait.h>
13596 #ifndef WEXITSTATUS
13597 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13600 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13608 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13613 if ac_fn_c_try_compile "$LINENO"; then :
13614 ac_cv_header_sys_wait_h=yes
13616 ac_cv_header_sys_wait_h=no
13618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13621 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13622 if test $ac_cv_header_sys_wait_h = yes; then
13624 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13629 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13630 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13631 $as_echo_n "(cached) " >&6
13633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634 /* end confdefs.h. */
13635 #include <sys/types.h>
13636 #include <termios.h>
13642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13643 $EGREP "yes" >/dev/null 2>&1; then :
13644 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13646 ac_cv_sys_tiocgwinsz_in_termios_h=no
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13652 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13654 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13656 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13657 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13658 $as_echo_n "(cached) " >&6
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <sys/types.h>
13663 #include <sys/ioctl.h>
13669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "yes" >/dev/null 2>&1; then :
13671 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13673 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13679 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13681 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13683 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13740 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13741 eval as_val=\$$as_ac_Header
13742 if test "x$as_val" = x""yes; then :
13743 cat >>confdefs.h <<_ACEOF
13744 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13752 if test "$ac_cv_mingw32" = yes \
13753 -o "$ac_cv_interix" = yes \
13754 -o "$ol_cv_msvc" = yes
13756 for ac_header in winsock.h winsock2.h
13758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13759 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13760 eval as_val=\$$as_ac_Header
13761 if test "x$as_val" = x""yes; then :
13762 cat >>confdefs.h <<_ACEOF
13763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13772 for ac_header in resolv.h
13774 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13775 #include <netinet/in.h>
13778 if test "x$ac_cv_header_resolv_h" = x""yes; then :
13779 cat >>confdefs.h <<_ACEOF
13780 #define HAVE_RESOLV_H 1
13788 for ac_header in netinet/tcp.h
13790 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13791 #include <netinet/in.h>
13794 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
13795 cat >>confdefs.h <<_ACEOF
13796 #define HAVE_NETINET_TCP_H 1
13804 for ac_header in sys/ucred.h
13806 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13807 #ifdef HAVE_SYS_PARAM_H
13808 #include <sys/param.h>
13812 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
13813 cat >>confdefs.h <<_ACEOF
13814 #define HAVE_SYS_UCRED_H 1
13823 for ac_func in sigaction sigset
13825 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13827 eval as_val=\$$as_ac_var
13828 if test "x$as_val" = x""yes; then :
13829 cat >>confdefs.h <<_ACEOF
13830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13837 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13839 $as_echo_n "checking for sigset in -lV3... " >&6; }
13840 if test "${ac_cv_lib_V3_sigset+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13843 ac_check_lib_save_LIBS=$LIBS
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13848 /* Override any GCC internal prototype to avoid an error.
13849 Use char because int might match the return type of a GCC
13850 builtin and then its argument prototype would still apply. */
13863 if ac_fn_c_try_link "$LINENO"; then :
13864 ac_cv_lib_V3_sigset=yes
13866 ac_cv_lib_V3_sigset=no
13868 rm -f core conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
13870 LIBS=$ac_check_lib_save_LIBS
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13873 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13874 if test "x$ac_cv_lib_V3_sigset" = x""yes; then :
13875 cat >>confdefs.h <<_ACEOF
13876 #define HAVE_LIBV3 1
13885 if test $ol_cv_msvc = yes ; then
13889 if test "$ac_cv_header_winsock_h" = yes; then
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13891 $as_echo_n "checking for winsock... " >&6; }
13892 if test "${ol_cv_winsock+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13897 for curlib in none ws2_32 wsock32; do
13898 if test $curlib != none ; then
13899 LIBS="$save_LIBS -l$curlib"
13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13902 /* end confdefs.h. */
13903 #include <winsock.h>
13910 select(0,NULL,NULL,NULL,NULL);
13912 gethostname(NULL,0);
13918 if ac_fn_c_try_link "$LINENO"; then :
13919 ol_cv_winsock=$curlib
13923 rm -f core conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13926 test "$ol_cv_winsock" != no && break
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13932 $as_echo "$ol_cv_winsock" >&6; }
13934 if test $ol_cv_winsock != no ; then
13936 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13938 ac_cv_func_socket=yes
13939 ac_cv_func_select=yes
13940 ac_cv_func_closesocket=yes
13941 ac_cv_func_gethostname=yes
13943 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13944 LIBS="$LIBS -l$ol_cv_winsock"
13947 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13949 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13956 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13957 if test "x$ac_cv_func_socket" = x""yes; then :
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13962 $as_echo_n "checking for main in -lsocket... " >&6; }
13963 if test "${ac_cv_lib_socket_main+set}" = set; then :
13964 $as_echo_n "(cached) " >&6
13966 ac_check_lib_save_LIBS=$LIBS
13967 LIBS="-lsocket $LIBS"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h. */
13980 if ac_fn_c_try_link "$LINENO"; then :
13981 ac_cv_lib_socket_main=yes
13983 ac_cv_lib_socket_main=no
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 LIBS=$ac_check_lib_save_LIBS
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13990 $as_echo "$ac_cv_lib_socket_main" >&6; }
13991 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13992 cat >>confdefs.h <<_ACEOF
13993 #define HAVE_LIBSOCKET 1
13996 LIBS="-lsocket $LIBS"
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
14001 $as_echo_n "checking for socket in -lnet... " >&6; }
14002 if test "${ac_cv_lib_net_socket+set}" = set; then :
14003 $as_echo_n "(cached) " >&6
14005 ac_check_lib_save_LIBS=$LIBS
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14010 /* Override any GCC internal prototype to avoid an error.
14011 Use char because int might match the return type of a GCC
14012 builtin and then its argument prototype would still apply. */
14025 if ac_fn_c_try_link "$LINENO"; then :
14026 ac_cv_lib_net_socket=yes
14028 ac_cv_lib_net_socket=no
14030 rm -f core conftest.err conftest.$ac_objext \
14031 conftest$ac_exeext conftest.$ac_ext
14032 LIBS=$ac_check_lib_save_LIBS
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
14035 $as_echo "$ac_cv_lib_net_socket" >&6; }
14036 if test "x$ac_cv_lib_net_socket" = x""yes; then :
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_LIBNET 1
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
14046 $as_echo_n "checking for main in -lnsl_s... " >&6; }
14047 if test "${ac_cv_lib_nsl_s_main+set}" = set; then :
14048 $as_echo_n "(cached) " >&6
14050 ac_check_lib_save_LIBS=$LIBS
14051 LIBS="-lnsl_s $LIBS"
14052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14053 /* end confdefs.h. */
14064 if ac_fn_c_try_link "$LINENO"; then :
14065 ac_cv_lib_nsl_s_main=yes
14067 ac_cv_lib_nsl_s_main=no
14069 rm -f core conftest.err conftest.$ac_objext \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14074 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14075 if test "x$ac_cv_lib_nsl_s_main" = x""yes; then :
14076 cat >>confdefs.h <<_ACEOF
14077 #define HAVE_LIBNSL_S 1
14080 LIBS="-lnsl_s $LIBS"
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14085 $as_echo_n "checking for main in -lnsl... " >&6; }
14086 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14087 $as_echo_n "(cached) " >&6
14089 ac_check_lib_save_LIBS=$LIBS
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14103 if ac_fn_c_try_link "$LINENO"; then :
14104 ac_cv_lib_nsl_main=yes
14106 ac_cv_lib_nsl_main=no
14108 rm -f core conftest.err conftest.$ac_objext \
14109 conftest$ac_exeext conftest.$ac_ext
14110 LIBS=$ac_check_lib_save_LIBS
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14113 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14114 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14115 cat >>confdefs.h <<_ACEOF
14116 #define HAVE_LIBNSL 1
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14124 $as_echo_n "checking for socket in -linet... " >&6; }
14125 if test "${ac_cv_lib_inet_socket+set}" = set; then :
14126 $as_echo_n "(cached) " >&6
14128 ac_check_lib_save_LIBS=$LIBS
14129 LIBS="-linet $LIBS"
14130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14131 /* end confdefs.h. */
14133 /* Override any GCC internal prototype to avoid an error.
14134 Use char because int might match the return type of a GCC
14135 builtin and then its argument prototype would still apply. */
14148 if ac_fn_c_try_link "$LINENO"; then :
14149 ac_cv_lib_inet_socket=yes
14151 ac_cv_lib_inet_socket=no
14153 rm -f core conftest.err conftest.$ac_objext \
14154 conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14158 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14159 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE_LIBINET 1
14164 LIBS="-linet $LIBS"
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14169 $as_echo_n "checking for main in -lgen... " >&6; }
14170 if test "${ac_cv_lib_gen_main+set}" = set; then :
14171 $as_echo_n "(cached) " >&6
14173 ac_check_lib_save_LIBS=$LIBS
14175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h. */
14187 if ac_fn_c_try_link "$LINENO"; then :
14188 ac_cv_lib_gen_main=yes
14190 ac_cv_lib_gen_main=no
14192 rm -f core conftest.err conftest.$ac_objext \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14197 $as_echo "$ac_cv_lib_gen_main" >&6; }
14198 if test "x$ac_cv_lib_gen_main" = x""yes; then :
14199 cat >>confdefs.h <<_ACEOF
14200 #define HAVE_LIBGEN 1
14211 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14212 if test "x$ac_cv_func_select" = x""yes; then :
14215 as_fn_error "select() required." "$LINENO" 5
14219 if test "${ac_cv_header_winsock_h}" != yes; then
14220 for ac_header in sys/select.h sys/socket.h
14222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14223 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14224 eval as_val=\$$as_ac_Header
14225 if test "x$as_val" = x""yes; then :
14226 cat >>confdefs.h <<_ACEOF
14227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14235 $as_echo_n "checking types of arguments for select... " >&6; }
14236 if test "${ac_cv_func_select_args+set}" = set; then :
14237 $as_echo_n "(cached) " >&6
14239 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14240 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14241 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 $ac_includes_default
14245 #ifdef HAVE_SYS_SELECT_H
14246 # include <sys/select.h>
14248 #ifdef HAVE_SYS_SOCKET_H
14249 # include <sys/socket.h>
14255 extern int select ($ac_arg1,
14256 $ac_arg234, $ac_arg234, $ac_arg234,
14262 if ac_fn_c_try_compile "$LINENO"; then :
14263 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14269 # Provide a safe default value.
14270 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14274 $as_echo "$ac_cv_func_select_args" >&6; }
14275 ac_save_IFS=$IFS; IFS=','
14276 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14280 cat >>confdefs.h <<_ACEOF
14281 #define SELECT_TYPE_ARG1 $1
14285 cat >>confdefs.h <<_ACEOF
14286 #define SELECT_TYPE_ARG234 ($2)
14290 cat >>confdefs.h <<_ACEOF
14291 #define SELECT_TYPE_ARG5 ($3)
14299 for ac_func in poll
14301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14303 eval as_val=\$$as_ac_var
14304 if test "x$as_val" = x""yes; then :
14305 cat >>confdefs.h <<_ACEOF
14306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14312 if test $ac_cv_func_poll = yes; then
14313 for ac_header in poll.h sys/poll.h
14315 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14316 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14317 eval as_val=\$$as_ac_Header
14318 if test "x$as_val" = x""yes; then :
14319 cat >>confdefs.h <<_ACEOF
14320 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14329 for ac_header in sys/epoll.h
14331 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14332 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14333 eval as_val=\$$as_ac_Header
14334 if test "x$as_val" = x""yes; then :
14335 cat >>confdefs.h <<_ACEOF
14336 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14345 $as_echo_n "checking for epoll system call... " >&6; }
14346 if test "$cross_compiling" = yes; then :
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h. */
14352 int main(int argc, char **argv)
14354 int epfd = epoll_create(256);
14355 exit (epfd == -1 ? 1 : 0);
14358 if ac_fn_c_try_run "$LINENO"; then :
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14360 $as_echo "yes" >&6; }
14362 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14369 conftest.$ac_objext conftest.beam conftest.$ac_ext
14374 for ac_header in sys/devpoll.h
14376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14377 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14378 eval as_val=\$$as_ac_Header
14379 if test "x$as_val" = x""yes; then :
14380 cat >>confdefs.h <<_ACEOF
14381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14388 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14389 -a "${ac_cv_header_poll_h}" = yes ; \
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14392 $as_echo_n "checking for /dev/poll... " >&6; }
14393 if test "$cross_compiling" = yes; then :
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14395 $as_echo "no" >&6; }
14397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14399 int main(int argc, char **argv)
14401 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14402 exit (devpollfd == -1 ? 1 : 0);
14405 if ac_fn_c_try_run "$LINENO"; then :
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14407 $as_echo "yes" >&6; }
14409 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14416 conftest.$ac_objext conftest.beam conftest.$ac_ext
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14422 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14423 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14424 $as_echo_n "(cached) " >&6
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14431 #include <sys/types.h>
14434 #include <stdlib.h>
14439 char *c = (char *) *sys_errlist
14444 if ac_fn_c_try_compile "$LINENO"; then :
14445 ol_cv_dcl_sys_errlist=yes
14446 ol_cv_have_sys_errlist=yes
14448 ol_cv_dcl_sys_errlist=no
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14453 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14455 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14456 if test $ol_cv_dcl_sys_errlist = no ; then
14458 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14462 $as_echo_n "checking existence of sys_errlist... " >&6; }
14463 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14464 $as_echo_n "(cached) " >&6
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14473 char *c = (char *) *sys_errlist
14478 if ac_fn_c_try_link "$LINENO"; then :
14479 ol_cv_have_sys_errlist=yes
14481 ol_cv_have_sys_errlist=no
14483 rm -f core conftest.err conftest.$ac_objext \
14484 conftest$ac_exeext conftest.$ac_ext
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14487 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14489 if test $ol_cv_have_sys_errlist = yes ; then
14491 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14494 for ac_func in strerror strerror_r
14496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14497 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14498 eval as_val=\$$as_ac_var
14499 if test "x$as_val" = x""yes; then :
14500 cat >>confdefs.h <<_ACEOF
14501 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14507 ol_cv_func_strerror_r=no
14508 if test "${ac_cv_func_strerror_r}" = yes ; then
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14510 $as_echo_n "checking non-posix strerror_r... " >&6; }
14511 if test "${ol_cv_nonposix_strerror_r+set}" = set; then :
14512 $as_echo_n "(cached) " >&6
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 #include <string.h>
14519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14520 $EGREP "strerror_r" >/dev/null 2>&1; then :
14521 ol_decl_strerror_r=yes
14523 ol_decl_strerror_r=no
14527 if test $ol_decl_strerror_r = yes ; then
14528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h. */
14530 #include <string.h>
14534 /* from autoconf 2.59 */
14536 char x = *strerror_r (0, buf, sizeof buf);
14537 char *p = strerror_r (0, buf, sizeof buf);
14543 if ac_fn_c_try_compile "$LINENO"; then :
14544 ol_cv_nonposix_strerror_r=yes
14546 ol_cv_nonposix_strerror_r=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 if test "$cross_compiling" = yes; then :
14551 ol_cv_nonposix_strerror=no
14553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* end confdefs.h. */
14559 strerror_r( 1, buf, sizeof buf );
14560 exit( buf[0] == 0 );
14564 if ac_fn_c_try_run "$LINENO"; then :
14565 ol_cv_nonposix_strerror_r=yes
14567 ol_cv_nonposix_strerror=no
14569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14570 conftest.$ac_objext conftest.beam conftest.$ac_ext
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14577 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14578 if test $ol_cv_nonposix_strerror_r = yes ; then
14580 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14584 elif test "${ac_cv_func_strerror}" = no ; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14586 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14587 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14588 $as_echo_n "(cached) " >&6
14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14595 #include <sys/types.h>
14598 #include <stdlib.h>
14603 char *c = (char *) *sys_errlist
14608 if ac_fn_c_try_compile "$LINENO"; then :
14609 ol_cv_dcl_sys_errlist=yes
14610 ol_cv_have_sys_errlist=yes
14612 ol_cv_dcl_sys_errlist=no
14614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14617 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14619 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14620 if test $ol_cv_dcl_sys_errlist = no ; then
14622 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14626 $as_echo_n "checking existence of sys_errlist... " >&6; }
14627 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14632 /* end confdefs.h. */
14637 char *c = (char *) *sys_errlist
14642 if ac_fn_c_try_link "$LINENO"; then :
14643 ol_cv_have_sys_errlist=yes
14645 ol_cv_have_sys_errlist=no
14647 rm -f core conftest.err conftest.$ac_objext \
14648 conftest$ac_exeext conftest.$ac_ext
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14651 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14653 if test $ol_cv_have_sys_errlist = yes ; then
14655 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14662 for ac_header in regex.h
14664 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14665 #ifdef HAVE_SYS_TYPES_H
14666 #include <sys/types.h>
14670 if test "x$ac_cv_header_regex_h" = x""yes; then :
14671 cat >>confdefs.h <<_ACEOF
14672 #define HAVE_REGEX_H 1
14680 if test "$ac_cv_header_regex_h" != yes ; then
14681 as_fn_error "POSIX regex.h required." "$LINENO" 5
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14684 $as_echo_n "checking for library containing regfree... " >&6; }
14685 if test "${ac_cv_search_regfree+set}" = set; then :
14686 $as_echo_n "(cached) " >&6
14688 ac_func_search_save_LIBS=$LIBS
14689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14692 /* Override any GCC internal prototype to avoid an error.
14693 Use char because int might match the return type of a GCC
14694 builtin and then its argument prototype would still apply. */
14707 for ac_lib in '' regex gnuregex; do
14708 if test -z "$ac_lib"; then
14709 ac_res="none required"
14712 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14714 if ac_fn_c_try_link "$LINENO"; then :
14715 ac_cv_search_regfree=$ac_res
14717 rm -f core conftest.err conftest.$ac_objext \
14719 if test "${ac_cv_search_regfree+set}" = set; then :
14723 if test "${ac_cv_search_regfree+set}" = set; then :
14726 ac_cv_search_regfree=no
14728 rm conftest.$ac_ext
14729 LIBS=$ac_func_search_save_LIBS
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14732 $as_echo "$ac_cv_search_regfree" >&6; }
14733 ac_res=$ac_cv_search_regfree
14734 if test "$ac_res" != no; then :
14735 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14738 as_fn_error "POSIX regex required." "$LINENO" 5
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14744 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14745 if test "${ol_cv_c_posix_regex+set}" = set; then :
14746 $as_echo_n "(cached) " >&6
14749 if test "$cross_compiling" = yes; then :
14750 ol_cv_c_posix_regex=cross
14752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753 /* end confdefs.h. */
14755 #include <sys/types.h>
14757 static char *pattern, *string;
14765 if(regcomp(&re, pattern, 0)) {
14769 string = "ALL MATCH";
14771 rc = regexec(&re, string, 0, (void*)0, 0);
14778 if ac_fn_c_try_run "$LINENO"; then :
14779 ol_cv_c_posix_regex=yes
14781 ol_cv_c_posix_regex=no
14783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14784 conftest.$ac_objext conftest.beam conftest.$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14789 $as_echo "$ol_cv_c_posix_regex" >&6; }
14791 if test "$ol_cv_c_posix_regex" = no ; then
14792 as_fn_error "broken POSIX regex!" "$LINENO" 5
14797 for ac_header in sys/uuid.h
14799 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14800 if test "x$ac_cv_header_sys_uuid_h" = x""yes; then :
14801 cat >>confdefs.h <<_ACEOF
14802 #define HAVE_SYS_UUID_H 1
14809 if test $ac_cv_header_sys_uuid_h = yes ; then
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14812 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14813 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14814 $as_echo_n "(cached) " >&6
14816 ac_func_search_save_LIBS=$LIBS
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14820 /* Override any GCC internal prototype to avoid an error.
14821 Use char because int might match the return type of a GCC
14822 builtin and then its argument prototype would still apply. */
14826 char uuid_to_str ();
14830 return uuid_to_str ();
14835 for ac_lib in '' uuid; do
14836 if test -z "$ac_lib"; then
14837 ac_res="none required"
14840 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14842 if ac_fn_c_try_link "$LINENO"; then :
14843 ac_cv_search_uuid_to_str=$ac_res
14845 rm -f core conftest.err conftest.$ac_objext \
14847 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14851 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14854 ac_cv_search_uuid_to_str=no
14856 rm conftest.$ac_ext
14857 LIBS=$ac_func_search_save_LIBS
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14860 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14861 ac_res=$ac_cv_search_uuid_to_str
14862 if test "$ac_res" != no; then :
14863 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14870 $as_echo_n "checking for library containing uuid_create... " >&6; }
14871 if test "${ac_cv_search_uuid_create+set}" = set; then :
14872 $as_echo_n "(cached) " >&6
14874 ac_func_search_save_LIBS=$LIBS
14875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14876 /* end confdefs.h. */
14878 /* Override any GCC internal prototype to avoid an error.
14879 Use char because int might match the return type of a GCC
14880 builtin and then its argument prototype would still apply. */
14884 char uuid_create ();
14888 return uuid_create ();
14893 for ac_lib in '' uuid; do
14894 if test -z "$ac_lib"; then
14895 ac_res="none required"
14898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14900 if ac_fn_c_try_link "$LINENO"; then :
14901 ac_cv_search_uuid_create=$ac_res
14903 rm -f core conftest.err conftest.$ac_objext \
14905 if test "${ac_cv_search_uuid_create+set}" = set; then :
14909 if test "${ac_cv_search_uuid_create+set}" = set; then :
14912 ac_cv_search_uuid_create=no
14914 rm conftest.$ac_ext
14915 LIBS=$ac_func_search_save_LIBS
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14918 $as_echo "$ac_cv_search_uuid_create" >&6; }
14919 ac_res=$ac_cv_search_uuid_create
14920 if test "$ac_res" != no; then :
14921 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14929 if test $have_uuid = yes ; then
14931 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14934 test "$ac_cv_search_uuid_to_str" = "none required" || \
14935 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14939 if test $have_uuid = no ; then
14940 for ac_header in uuid/uuid.h
14942 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14943 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
14944 cat >>confdefs.h <<_ACEOF
14945 #define HAVE_UUID_UUID_H 1
14952 if test $ac_cv_header_uuid_uuid_h = yes ; then
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14955 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14956 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14957 $as_echo_n "(cached) " >&6
14959 ac_func_search_save_LIBS=$LIBS
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14963 /* Override any GCC internal prototype to avoid an error.
14964 Use char because int might match the return type of a GCC
14965 builtin and then its argument prototype would still apply. */
14969 char uuid_generate ();
14973 return uuid_generate ();
14978 for ac_lib in '' uuid; do
14979 if test -z "$ac_lib"; then
14980 ac_res="none required"
14983 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14985 if ac_fn_c_try_link "$LINENO"; then :
14986 ac_cv_search_uuid_generate=$ac_res
14988 rm -f core conftest.err conftest.$ac_objext \
14990 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14994 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14997 ac_cv_search_uuid_generate=no
14999 rm conftest.$ac_ext
15000 LIBS=$ac_func_search_save_LIBS
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
15003 $as_echo "$ac_cv_search_uuid_generate" >&6; }
15004 ac_res=$ac_cv_search_uuid_generate
15005 if test "$ac_res" != no; then :
15006 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
15013 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
15014 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15015 $as_echo_n "(cached) " >&6
15017 ac_func_search_save_LIBS=$LIBS
15018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h. */
15021 /* Override any GCC internal prototype to avoid an error.
15022 Use char because int might match the return type of a GCC
15023 builtin and then its argument prototype would still apply. */
15027 char uuid_unparse_lower ();
15031 return uuid_unparse_lower ();
15036 for ac_lib in '' uuid; do
15037 if test -z "$ac_lib"; then
15038 ac_res="none required"
15041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15043 if ac_fn_c_try_link "$LINENO"; then :
15044 ac_cv_search_uuid_unparse_lower=$ac_res
15046 rm -f core conftest.err conftest.$ac_objext \
15048 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15052 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
15055 ac_cv_search_uuid_unparse_lower=no
15057 rm conftest.$ac_ext
15058 LIBS=$ac_func_search_save_LIBS
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15061 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15062 ac_res=$ac_cv_search_uuid_unparse_lower
15063 if test "$ac_res" != no; then :
15064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15072 if test $have_uuid = yes ; then
15074 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15077 test "$ac_cv_search_uuid_generate" = "none required" || \
15078 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15083 if test $have_uuid = no ; then
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15085 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15087 LIBS="$LIBS -lrpcrt4"
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15091 int __stdcall UuidCreate(void *);
15092 int __stdcall UuidToStringA(void *,void **);
15099 UuidToStringA(0,0);
15105 if ac_fn_c_try_link "$LINENO"; then :
15110 rm -f core conftest.err conftest.$ac_objext \
15111 conftest$ac_exeext conftest.$ac_ext
15112 if test $need_rpcrt = yes; then
15113 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15117 $as_echo "$need_rpcrt" >&6; }
15120 ol_cv_lib_resolver=no
15121 if test $ol_cv_lib_resolver = no ; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15123 $as_echo_n "checking for resolver link (default)... " >&6; }
15124 if test "${ol_cv_resolver_none+set}" = set; then :
15125 $as_echo_n "(cached) " >&6
15130 LIBS="$ol_RESOLVER_LIB $LIBS"
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15135 #ifdef HAVE_SYS_TYPES_H
15136 # include <sys/types.h>
15138 #include <netinet/in.h>
15139 #ifdef HAVE_ARPA_NAMESER_H
15140 # include <arpa/nameser.h>
15142 #ifdef HAVE_RESOLV_H
15143 # include <resolv.h>
15151 char *request = NULL;
15152 unsigned char reply[64*1024];
15153 unsigned char host[64*1024];
15157 /* Bind 8/9 interface */
15158 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15160 /* Bind 4 interface */
15164 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15168 /* Bind 8/9 interface */
15170 #elif defined(HFIXEDSZ)
15171 /* Bind 4 interface w/ HFIXEDSZ */
15174 /* Bind 4 interface w/o HFIXEDSZ */
15175 p += sizeof(HEADER);
15177 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15183 if ac_fn_c_try_link "$LINENO"; then :
15184 ol_cv_resolver_none=yes
15186 ol_cv_resolver_none=no
15188 rm -f core conftest.err conftest.$ac_objext \
15189 conftest$ac_exeext conftest.$ac_ext
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15195 $as_echo "$ol_cv_resolver_none" >&6; }
15197 if test $ol_cv_resolver_none = yes ; then
15198 ol_cv_lib_resolver=yes
15202 if test $ol_cv_lib_resolver = no ; then
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15204 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15205 if test "${ol_cv_resolver_resolv+set}" = set; then :
15206 $as_echo_n "(cached) " >&6
15209 ol_RESOLVER_LIB=-lresolv
15211 LIBS="$ol_RESOLVER_LIB $LIBS"
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15216 #ifdef HAVE_SYS_TYPES_H
15217 # include <sys/types.h>
15219 #include <netinet/in.h>
15220 #ifdef HAVE_ARPA_NAMESER_H
15221 # include <arpa/nameser.h>
15223 #ifdef HAVE_RESOLV_H
15224 # include <resolv.h>
15232 char *request = NULL;
15233 unsigned char reply[64*1024];
15234 unsigned char host[64*1024];
15238 /* Bind 8/9 interface */
15239 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15241 /* Bind 4 interface */
15245 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15249 /* Bind 8/9 interface */
15251 #elif defined(HFIXEDSZ)
15252 /* Bind 4 interface w/ HFIXEDSZ */
15255 /* Bind 4 interface w/o HFIXEDSZ */
15256 p += sizeof(HEADER);
15258 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15264 if ac_fn_c_try_link "$LINENO"; then :
15265 ol_cv_resolver_resolv=yes
15267 ol_cv_resolver_resolv=no
15269 rm -f core conftest.err conftest.$ac_objext \
15270 conftest$ac_exeext conftest.$ac_ext
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15276 $as_echo "$ol_cv_resolver_resolv" >&6; }
15278 if test $ol_cv_resolver_resolv = yes ; then
15279 ol_cv_lib_resolver=-lresolv
15283 if test $ol_cv_lib_resolver = no ; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15285 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15286 if test "${ol_cv_resolver_bind+set}" = set; then :
15287 $as_echo_n "(cached) " >&6
15290 ol_RESOLVER_LIB=-lbind
15292 LIBS="$ol_RESOLVER_LIB $LIBS"
15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15297 #ifdef HAVE_SYS_TYPES_H
15298 # include <sys/types.h>
15300 #include <netinet/in.h>
15301 #ifdef HAVE_ARPA_NAMESER_H
15302 # include <arpa/nameser.h>
15304 #ifdef HAVE_RESOLV_H
15305 # include <resolv.h>
15313 char *request = NULL;
15314 unsigned char reply[64*1024];
15315 unsigned char host[64*1024];
15319 /* Bind 8/9 interface */
15320 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15322 /* Bind 4 interface */
15326 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15330 /* Bind 8/9 interface */
15332 #elif defined(HFIXEDSZ)
15333 /* Bind 4 interface w/ HFIXEDSZ */
15336 /* Bind 4 interface w/o HFIXEDSZ */
15337 p += sizeof(HEADER);
15339 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15345 if ac_fn_c_try_link "$LINENO"; then :
15346 ol_cv_resolver_bind=yes
15348 ol_cv_resolver_bind=no
15350 rm -f core conftest.err conftest.$ac_objext \
15351 conftest$ac_exeext conftest.$ac_ext
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15357 $as_echo "$ol_cv_resolver_bind" >&6; }
15359 if test $ol_cv_resolver_bind = yes ; then
15360 ol_cv_lib_resolver=-lbind
15367 if test "$ol_cv_lib_resolver" != no ; then
15369 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15372 if test "$ol_enable_dnssrv" != no ; then
15376 if test "$ol_cv_lib_resolver" != yes ; then
15377 LIBS="$ol_cv_lib_resolver $LIBS"
15381 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15382 if test "$ol_link_dnssrv" = no ; then
15383 as_fn_error "DNSSRV requires res_query()" "$LINENO" 5
15386 ol_enable_dnssrv=no
15389 for ac_func in hstrerror
15391 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15392 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15393 eval as_val=\$$as_ac_var
15394 if test "x$as_val" = x""yes; then :
15395 cat >>confdefs.h <<_ACEOF
15396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15403 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15406 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15407 eval as_val=\$$as_ac_var
15408 if test "x$as_val" = x""yes; then :
15409 cat >>confdefs.h <<_ACEOF
15410 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15418 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15419 if test $ol_enable_ipv6 = yes ; then
15420 as_fn_error "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15422 elif test $ol_enable_ipv6 != no ; then
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15424 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15425 if test "${ol_cv_inet6_addrstrlen+set}" = set; then :
15426 $as_echo_n "(cached) " >&6
15429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15430 /* end confdefs.h. */
15432 # include <netinet/in.h>
15433 # ifdef INET6_ADDRSTRLEN
15434 __has_inet6_addrstrlen__;
15438 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15439 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15440 ol_cv_inet6_addrstrlen=yes
15442 ol_cv_inet6_addrstrlen=no
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15448 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15452 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15453 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then :
15454 $as_echo_n "(cached) " >&6
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15460 #include <sys/types.h>
15461 #include <sys/socket.h>
15467 struct sockaddr_storage ss;
15473 if ac_fn_c_try_compile "$LINENO"; then :
15474 ol_cv_struct_sockaddr_storage=yes
15476 ol_cv_struct_sockaddr_storage=no
15478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15481 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15483 if test $ol_cv_inet6_addrstrlen = yes &&
15484 test $ol_cv_struct_sockaddr_storage = yes ; then
15486 elif test $ol_enable_ipv6 = yes &&
15487 test $ol_cv_inet6_addrstrlen = no ; then
15488 as_fn_error "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15489 elif test $ol_enable_ipv6 = yes &&
15490 test $ol_cv_struct_sockaddr_storage = no ; then
15491 as_fn_error "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15495 if test $ol_enable_local != no ; then
15496 for ac_header in sys/un.h
15498 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15499 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15500 eval as_val=\$$as_ac_Header
15501 if test "x$as_val" = x""yes; then :
15502 cat >>confdefs.h <<_ACEOF
15503 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 if test $ol_enable_local = auto ; then
15512 ol_enable_local=$ac_cv_header_sys_un_h
15513 elif test $ac_cv_header_sys_un_h = no ; then
15514 as_fn_error "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15519 if test $ol_with_tls = yes ; then
15524 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15525 for ac_header in openssl/ssl.h
15527 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15528 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
15529 cat >>confdefs.h <<_ACEOF
15530 #define HAVE_OPENSSL_SSL_H 1
15538 if test $ac_cv_header_openssl_ssl_h = yes ; then
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_msg_callback in -lssl" >&5
15540 $as_echo_n "checking for SSL_CTX_set_msg_callback in -lssl... " >&6; }
15541 if test "${ac_cv_lib_ssl_SSL_CTX_set_msg_callback+set}" = set; then :
15542 $as_echo_n "(cached) " >&6
15544 ac_check_lib_save_LIBS=$LIBS
15545 LIBS="-lssl -lcrypto $LIBS"
15546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15547 /* end confdefs.h. */
15549 /* Override any GCC internal prototype to avoid an error.
15550 Use char because int might match the return type of a GCC
15551 builtin and then its argument prototype would still apply. */
15555 char SSL_CTX_set_msg_callback ();
15559 return SSL_CTX_set_msg_callback ();
15564 if ac_fn_c_try_link "$LINENO"; then :
15565 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=yes
15567 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=no
15569 rm -f core conftest.err conftest.$ac_objext \
15570 conftest$ac_exeext conftest.$ac_ext
15571 LIBS=$ac_check_lib_save_LIBS
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&5
15574 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&6; }
15575 if test "x$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" = x""yes; then :
15583 if test $have_openssl = no ; then
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15585 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15586 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then :
15587 $as_echo_n "(cached) " >&6
15589 ac_check_lib_save_LIBS=$LIBS
15590 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15594 /* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
15600 char ssl3_accept ();
15604 return ssl3_accept ();
15609 if ac_fn_c_try_link "$LINENO"; then :
15610 ac_cv_lib_ssl_ssl3_accept=yes
15612 ac_cv_lib_ssl_ssl3_accept=no
15614 rm -f core conftest.err conftest.$ac_objext \
15615 conftest$ac_exeext conftest.$ac_ext
15616 LIBS=$ac_check_lib_save_LIBS
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15619 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15620 if test "x$ac_cv_lib_ssl_ssl3_accept" = x""yes; then :
15629 if test $have_openssl = yes ; then
15630 ol_with_tls=openssl
15634 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15637 if test $need_rsaref = yes; then
15639 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15642 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15644 TLS_LIBS="-lssl -lcrypto"
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15648 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15649 if test "${ol_cv_ssl_crl_compat+set}" = set; then :
15650 $as_echo_n "(cached) " >&6
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15656 #ifdef HAVE_OPENSSL_SSL_H
15657 #include <openssl/ssl.h>
15660 /* Require 0.9.7d+ */
15661 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15662 char *__ssl_compat = "0.9.7d";
15666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15667 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15668 ol_cv_ssl_crl_compat=yes
15670 ol_cv_ssl_crl_compat=no
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15676 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15678 if test $ol_cv_ssl_crl_compat = yes ; then
15680 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15687 if test $ol_link_tls = no ; then
15688 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15689 for ac_header in gnutls/gnutls.h
15691 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15692 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
15693 cat >>confdefs.h <<_ACEOF
15694 #define HAVE_GNUTLS_GNUTLS_H 1
15702 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15704 /* end confdefs.h. */
15705 #include <gnutls/gnutls.h>
15706 #if GNUTLS_VERSION_NUMBER < 0x020c00
15707 #error "GnuTLS 2.12.0 or newer required"
15710 if ac_fn_c_try_cpp "$LINENO"; then :
15713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15715 as_fn_error "GnuTLS is too old
15716 See \`config.log' for more details." "$LINENO" 5; }
15718 rm -f conftest.err conftest.$ac_ext
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15721 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15722 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then :
15723 $as_echo_n "(cached) " >&6
15725 ac_check_lib_save_LIBS=$LIBS
15726 LIBS="-lgnutls $LIBS"
15727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15728 /* end confdefs.h. */
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15736 char gnutls_init ();
15740 return gnutls_init ();
15745 if ac_fn_c_try_link "$LINENO"; then :
15746 ac_cv_lib_gnutls_gnutls_init=yes
15748 ac_cv_lib_gnutls_gnutls_init=no
15750 rm -f core conftest.err conftest.$ac_objext \
15751 conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15755 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15756 if test "x$ac_cv_lib_gnutls_gnutls_init" = x""yes; then :
15763 if test $have_gnutls = yes ; then
15767 TLS_LIBS="-lgnutls"
15770 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15777 if test $ol_link_tls = no ; then
15778 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15780 for ac_header in nssutil.h
15782 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15783 if test "x$ac_cv_header_nssutil_h" = x""yes; then :
15784 cat >>confdefs.h <<_ACEOF
15785 #define HAVE_NSSUTIL_H 1
15792 if test "$ac_cv_header_nssutil_h" = yes ; then
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15794 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15795 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
15796 $as_echo_n "(cached) " >&6
15798 ac_check_lib_save_LIBS=$LIBS
15799 LIBS="-lnss3 $LIBS"
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15803 /* Override any GCC internal prototype to avoid an error.
15804 Use char because int might match the return type of a GCC
15805 builtin and then its argument prototype would still apply. */
15809 char NSS_Initialize ();
15813 return NSS_Initialize ();
15818 if ac_fn_c_try_link "$LINENO"; then :
15819 ac_cv_lib_nss3_NSS_Initialize=yes
15821 ac_cv_lib_nss3_NSS_Initialize=no
15823 rm -f core conftest.err conftest.$ac_objext \
15824 conftest$ac_exeext conftest.$ac_ext
15825 LIBS=$ac_check_lib_save_LIBS
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15828 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15829 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
15837 if test "$have_moznss" = yes ; then
15841 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15843 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15845 if test $ol_with_tls = moznss ; then
15846 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
15853 if test $ol_link_tls = yes ; then
15855 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15858 elif test $ol_with_tls = auto ; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15860 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15862 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15863 elif test $ol_with_tls != no ; then
15864 as_fn_error "Could not locate TLS/SSL package" "$LINENO" 5
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15867 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15870 if test $ol_enable_lmpasswd != no; then
15871 if test $ol_link_tls != yes ; then
15872 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
15876 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15882 case $ol_with_threads in auto | yes | nt)
15885 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15886 if test "x$ac_cv_func__beginthread" = x""yes; then :
15891 if test $ac_cv_func__beginthread = yes ; then
15893 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15895 ol_cv_nt_threads=yes
15899 if test "$ol_cv_nt_threads" = yes ; then
15901 ol_with_threads=found
15902 ol_with_yielding_select=yes
15905 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15908 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15912 if test $ol_with_threads = nt ; then
15913 as_fn_error "could not locate NT Threads" "$LINENO" 5
15918 case $ol_with_threads in auto | yes | posix)
15920 for ac_header in pthread.h
15922 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15923 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15924 cat >>confdefs.h <<_ACEOF
15925 #define HAVE_PTHREAD_H 1
15933 if test $ac_cv_header_pthread_h = yes ; then
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15935 $as_echo_n "checking POSIX thread version... " >&6; }
15936 if test "${ol_cv_pthread_version+set}" = set; then :
15937 $as_echo_n "(cached) " >&6
15940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15941 /* end confdefs.h. */
15943 # include <pthread.h>
15949 int i = PTHREAD_CREATE_JOINABLE;
15955 if ac_fn_c_try_compile "$LINENO"; then :
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15959 #include <pthread.h>
15962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15963 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15964 ol_cv_pthread_version=10
15966 ol_cv_pthread_version=8
15972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15973 /* end confdefs.h. */
15975 # include <pthread.h>
15976 # ifdef PTHREAD_CREATE_UNDETACHED
15981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15982 $EGREP "draft7" >/dev/null 2>&1; then :
15983 ol_cv_pthread_version=7
15986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15987 /* end confdefs.h. */
15988 #include <pthread.h>
15991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15992 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15993 ol_cv_pthread_version=6
15996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997 /* end confdefs.h. */
15999 # include <pthread.h>
16000 #ifdef PTHREAD_MUTEX_INITIALIZER
16005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16006 $EGREP "draft5" >/dev/null 2>&1; then :
16007 ol_cv_pthread_version=5
16009 ol_cv_pthread_version=4
16020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
16024 $as_echo "$ol_cv_pthread_version" >&6; }
16027 if test $ol_cv_pthread_version != 0 ; then
16029 cat >>confdefs.h <<_ACEOF
16030 #define HAVE_PTHREADS $ol_cv_pthread_version
16034 as_fn_error "unknown pthread version" "$LINENO" 5
16037 # consider threads found
16038 ol_with_threads=found
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
16042 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
16043 if test "${ol_cv_header_linux_threads+set}" = set; then :
16044 $as_echo_n "(cached) " >&6
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16048 #include <pthread.h>
16050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16051 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
16052 ol_cv_header_linux_threads=yes
16054 ol_cv_header_linux_threads=no
16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
16061 $as_echo "$ol_cv_header_linux_threads" >&6; }
16062 if test $ol_cv_header_linux_threads = yes; then
16064 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
16070 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
16071 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then :
16072 $as_echo_n "(cached) " >&6
16074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16075 /* end confdefs.h. */
16076 #include <pthread.h>
16077 #ifdef _POSIX_THREAD_IS_GNU_PTH
16082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16083 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16084 ol_cv_header_gnu_pth_pthread_h=yes
16086 ol_cv_header_gnu_pth_pthread_h=no
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16093 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16096 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16097 for ac_header in sched.h
16099 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16100 if test "x$ac_cv_header_sched_h" = x""yes; then :
16101 cat >>confdefs.h <<_ACEOF
16102 #define HAVE_SCHED_H 1
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16113 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16114 if test "${ol_cv_pthread_create+set}" = set; then :
16115 $as_echo_n "(cached) " >&6
16118 if test "$cross_compiling" = yes; then :
16119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120 /* end confdefs.h. */
16122 /* pthread test headers */
16123 #include <pthread.h>
16124 #if HAVE_PTHREADS < 7
16128 #define NULL (void*)0
16131 static void *task(p)
16134 return (void *) (p == NULL);
16141 /* pthread test function */
16142 #ifndef PTHREAD_CREATE_DETACHED
16143 #define PTHREAD_CREATE_DETACHED 1
16147 int detach = PTHREAD_CREATE_DETACHED;
16149 #if HAVE_PTHREADS > 4
16150 /* Final pthreads */
16151 pthread_attr_t attr;
16153 status = pthread_attr_init(&attr);
16154 if( status ) return status;
16156 #if HAVE_PTHREADS < 7
16157 status = pthread_attr_setdetachstate(&attr, &detach);
16158 if( status < 0 ) status = errno;
16160 status = pthread_attr_setdetachstate(&attr, detach);
16162 if( status ) return status;
16163 status = pthread_create( &t, &attr, task, NULL );
16164 #if HAVE_PTHREADS < 7
16165 if( status < 0 ) status = errno;
16167 if( status ) return status;
16169 /* Draft 4 pthreads */
16170 status = pthread_create( &t, pthread_attr_default, task, NULL );
16171 if( status ) return errno;
16173 /* give thread a chance to complete */
16174 /* it should remain joinable and hence detachable */
16177 status = pthread_detach( &t );
16178 if( status ) return errno;
16181 #ifdef HAVE_LINUX_THREADS
16182 pthread_kill_other_threads_np();
16191 if ac_fn_c_try_link "$LINENO"; then :
16192 ol_cv_pthread_create=yes
16194 ol_cv_pthread_create=no
16196 rm -f core conftest.err conftest.$ac_objext \
16197 conftest$ac_exeext conftest.$ac_ext
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16202 /* pthread test headers */
16203 #include <pthread.h>
16204 #if HAVE_PTHREADS < 7
16208 #define NULL (void*)0
16211 static void *task(p)
16214 return (void *) (p == NULL);
16218 int main(argc, argv)
16223 /* pthread test function */
16224 #ifndef PTHREAD_CREATE_DETACHED
16225 #define PTHREAD_CREATE_DETACHED 1
16229 int detach = PTHREAD_CREATE_DETACHED;
16231 #if HAVE_PTHREADS > 4
16232 /* Final pthreads */
16233 pthread_attr_t attr;
16235 status = pthread_attr_init(&attr);
16236 if( status ) return status;
16238 #if HAVE_PTHREADS < 7
16239 status = pthread_attr_setdetachstate(&attr, &detach);
16240 if( status < 0 ) status = errno;
16242 status = pthread_attr_setdetachstate(&attr, detach);
16244 if( status ) return status;
16245 status = pthread_create( &t, &attr, task, NULL );
16246 #if HAVE_PTHREADS < 7
16247 if( status < 0 ) status = errno;
16249 if( status ) return status;
16251 /* Draft 4 pthreads */
16252 status = pthread_create( &t, pthread_attr_default, task, NULL );
16253 if( status ) return errno;
16255 /* give thread a chance to complete */
16256 /* it should remain joinable and hence detachable */
16259 status = pthread_detach( &t );
16260 if( status ) return errno;
16263 #ifdef HAVE_LINUX_THREADS
16264 pthread_kill_other_threads_np();
16272 if ac_fn_c_try_run "$LINENO"; then :
16273 ol_cv_pthread_create=yes
16275 ol_cv_pthread_create=no
16277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16278 conftest.$ac_objext conftest.beam conftest.$ac_ext
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16283 $as_echo "$ol_cv_pthread_create" >&6; }
16285 if test $ol_cv_pthread_create != no ; then
16286 ol_link_threads=posix
16287 ol_link_pthreads=""
16290 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16291 if test "$ol_link_threads" = no ; then
16293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16294 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16295 if test "${ol_cv_pthread_kthread+set}" = set; then :
16296 $as_echo_n "(cached) " >&6
16301 LIBS="-kthread $LIBS"
16303 if test "$cross_compiling" = yes; then :
16304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16305 /* end confdefs.h. */
16307 /* pthread test headers */
16308 #include <pthread.h>
16309 #if HAVE_PTHREADS < 7
16313 #define NULL (void*)0
16316 static void *task(p)
16319 return (void *) (p == NULL);
16326 /* pthread test function */
16327 #ifndef PTHREAD_CREATE_DETACHED
16328 #define PTHREAD_CREATE_DETACHED 1
16332 int detach = PTHREAD_CREATE_DETACHED;
16334 #if HAVE_PTHREADS > 4
16335 /* Final pthreads */
16336 pthread_attr_t attr;
16338 status = pthread_attr_init(&attr);
16339 if( status ) return status;
16341 #if HAVE_PTHREADS < 7
16342 status = pthread_attr_setdetachstate(&attr, &detach);
16343 if( status < 0 ) status = errno;
16345 status = pthread_attr_setdetachstate(&attr, detach);
16347 if( status ) return status;
16348 status = pthread_create( &t, &attr, task, NULL );
16349 #if HAVE_PTHREADS < 7
16350 if( status < 0 ) status = errno;
16352 if( status ) return status;
16354 /* Draft 4 pthreads */
16355 status = pthread_create( &t, pthread_attr_default, task, NULL );
16356 if( status ) return errno;
16358 /* give thread a chance to complete */
16359 /* it should remain joinable and hence detachable */
16362 status = pthread_detach( &t );
16363 if( status ) return errno;
16366 #ifdef HAVE_LINUX_THREADS
16367 pthread_kill_other_threads_np();
16376 if ac_fn_c_try_link "$LINENO"; then :
16377 ol_cv_pthread_kthread=yes
16379 ol_cv_pthread_kthread=no
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385 /* end confdefs.h. */
16387 /* pthread test headers */
16388 #include <pthread.h>
16389 #if HAVE_PTHREADS < 7
16393 #define NULL (void*)0
16396 static void *task(p)
16399 return (void *) (p == NULL);
16403 int main(argc, argv)
16408 /* pthread test function */
16409 #ifndef PTHREAD_CREATE_DETACHED
16410 #define PTHREAD_CREATE_DETACHED 1
16414 int detach = PTHREAD_CREATE_DETACHED;
16416 #if HAVE_PTHREADS > 4
16417 /* Final pthreads */
16418 pthread_attr_t attr;
16420 status = pthread_attr_init(&attr);
16421 if( status ) return status;
16423 #if HAVE_PTHREADS < 7
16424 status = pthread_attr_setdetachstate(&attr, &detach);
16425 if( status < 0 ) status = errno;
16427 status = pthread_attr_setdetachstate(&attr, detach);
16429 if( status ) return status;
16430 status = pthread_create( &t, &attr, task, NULL );
16431 #if HAVE_PTHREADS < 7
16432 if( status < 0 ) status = errno;
16434 if( status ) return status;
16436 /* Draft 4 pthreads */
16437 status = pthread_create( &t, pthread_attr_default, task, NULL );
16438 if( status ) return errno;
16440 /* give thread a chance to complete */
16441 /* it should remain joinable and hence detachable */
16444 status = pthread_detach( &t );
16445 if( status ) return errno;
16448 #ifdef HAVE_LINUX_THREADS
16449 pthread_kill_other_threads_np();
16457 if ac_fn_c_try_run "$LINENO"; then :
16458 ol_cv_pthread_kthread=yes
16460 ol_cv_pthread_kthread=no
16462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16463 conftest.$ac_objext conftest.beam conftest.$ac_ext
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16472 $as_echo "$ol_cv_pthread_kthread" >&6; }
16474 if test $ol_cv_pthread_kthread = yes ; then
16475 ol_link_pthreads="-kthread"
16476 ol_link_threads=posix
16480 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16481 if test "$ol_link_threads" = no ; then
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16484 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16485 if test "${ol_cv_pthread_pthread+set}" = set; then :
16486 $as_echo_n "(cached) " >&6
16491 LIBS="-pthread $LIBS"
16493 if test "$cross_compiling" = yes; then :
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16497 /* pthread test headers */
16498 #include <pthread.h>
16499 #if HAVE_PTHREADS < 7
16503 #define NULL (void*)0
16506 static void *task(p)
16509 return (void *) (p == NULL);
16516 /* pthread test function */
16517 #ifndef PTHREAD_CREATE_DETACHED
16518 #define PTHREAD_CREATE_DETACHED 1
16522 int detach = PTHREAD_CREATE_DETACHED;
16524 #if HAVE_PTHREADS > 4
16525 /* Final pthreads */
16526 pthread_attr_t attr;
16528 status = pthread_attr_init(&attr);
16529 if( status ) return status;
16531 #if HAVE_PTHREADS < 7
16532 status = pthread_attr_setdetachstate(&attr, &detach);
16533 if( status < 0 ) status = errno;
16535 status = pthread_attr_setdetachstate(&attr, detach);
16537 if( status ) return status;
16538 status = pthread_create( &t, &attr, task, NULL );
16539 #if HAVE_PTHREADS < 7
16540 if( status < 0 ) status = errno;
16542 if( status ) return status;
16544 /* Draft 4 pthreads */
16545 status = pthread_create( &t, pthread_attr_default, task, NULL );
16546 if( status ) return errno;
16548 /* give thread a chance to complete */
16549 /* it should remain joinable and hence detachable */
16552 status = pthread_detach( &t );
16553 if( status ) return errno;
16556 #ifdef HAVE_LINUX_THREADS
16557 pthread_kill_other_threads_np();
16566 if ac_fn_c_try_link "$LINENO"; then :
16567 ol_cv_pthread_pthread=yes
16569 ol_cv_pthread_pthread=no
16571 rm -f core conftest.err conftest.$ac_objext \
16572 conftest$ac_exeext conftest.$ac_ext
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16577 /* pthread test headers */
16578 #include <pthread.h>
16579 #if HAVE_PTHREADS < 7
16583 #define NULL (void*)0
16586 static void *task(p)
16589 return (void *) (p == NULL);
16593 int main(argc, argv)
16598 /* pthread test function */
16599 #ifndef PTHREAD_CREATE_DETACHED
16600 #define PTHREAD_CREATE_DETACHED 1
16604 int detach = PTHREAD_CREATE_DETACHED;
16606 #if HAVE_PTHREADS > 4
16607 /* Final pthreads */
16608 pthread_attr_t attr;
16610 status = pthread_attr_init(&attr);
16611 if( status ) return status;
16613 #if HAVE_PTHREADS < 7
16614 status = pthread_attr_setdetachstate(&attr, &detach);
16615 if( status < 0 ) status = errno;
16617 status = pthread_attr_setdetachstate(&attr, detach);
16619 if( status ) return status;
16620 status = pthread_create( &t, &attr, task, NULL );
16621 #if HAVE_PTHREADS < 7
16622 if( status < 0 ) status = errno;
16624 if( status ) return status;
16626 /* Draft 4 pthreads */
16627 status = pthread_create( &t, pthread_attr_default, task, NULL );
16628 if( status ) return errno;
16630 /* give thread a chance to complete */
16631 /* it should remain joinable and hence detachable */
16634 status = pthread_detach( &t );
16635 if( status ) return errno;
16638 #ifdef HAVE_LINUX_THREADS
16639 pthread_kill_other_threads_np();
16647 if ac_fn_c_try_run "$LINENO"; then :
16648 ol_cv_pthread_pthread=yes
16650 ol_cv_pthread_pthread=no
16652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16653 conftest.$ac_objext conftest.beam conftest.$ac_ext
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16662 $as_echo "$ol_cv_pthread_pthread" >&6; }
16664 if test $ol_cv_pthread_pthread = yes ; then
16665 ol_link_pthreads="-pthread"
16666 ol_link_threads=posix
16670 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16671 if test "$ol_link_threads" = no ; then
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16674 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16675 if test "${ol_cv_pthread_pthreads+set}" = set; then :
16676 $as_echo_n "(cached) " >&6
16681 LIBS="-pthreads $LIBS"
16683 if test "$cross_compiling" = yes; then :
16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16685 /* end confdefs.h. */
16687 /* pthread test headers */
16688 #include <pthread.h>
16689 #if HAVE_PTHREADS < 7
16693 #define NULL (void*)0
16696 static void *task(p)
16699 return (void *) (p == NULL);
16706 /* pthread test function */
16707 #ifndef PTHREAD_CREATE_DETACHED
16708 #define PTHREAD_CREATE_DETACHED 1
16712 int detach = PTHREAD_CREATE_DETACHED;
16714 #if HAVE_PTHREADS > 4
16715 /* Final pthreads */
16716 pthread_attr_t attr;
16718 status = pthread_attr_init(&attr);
16719 if( status ) return status;
16721 #if HAVE_PTHREADS < 7
16722 status = pthread_attr_setdetachstate(&attr, &detach);
16723 if( status < 0 ) status = errno;
16725 status = pthread_attr_setdetachstate(&attr, detach);
16727 if( status ) return status;
16728 status = pthread_create( &t, &attr, task, NULL );
16729 #if HAVE_PTHREADS < 7
16730 if( status < 0 ) status = errno;
16732 if( status ) return status;
16734 /* Draft 4 pthreads */
16735 status = pthread_create( &t, pthread_attr_default, task, NULL );
16736 if( status ) return errno;
16738 /* give thread a chance to complete */
16739 /* it should remain joinable and hence detachable */
16742 status = pthread_detach( &t );
16743 if( status ) return errno;
16746 #ifdef HAVE_LINUX_THREADS
16747 pthread_kill_other_threads_np();
16756 if ac_fn_c_try_link "$LINENO"; then :
16757 ol_cv_pthread_pthreads=yes
16759 ol_cv_pthread_pthreads=no
16761 rm -f core conftest.err conftest.$ac_objext \
16762 conftest$ac_exeext conftest.$ac_ext
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16767 /* pthread test headers */
16768 #include <pthread.h>
16769 #if HAVE_PTHREADS < 7
16773 #define NULL (void*)0
16776 static void *task(p)
16779 return (void *) (p == NULL);
16783 int main(argc, argv)
16788 /* pthread test function */
16789 #ifndef PTHREAD_CREATE_DETACHED
16790 #define PTHREAD_CREATE_DETACHED 1
16794 int detach = PTHREAD_CREATE_DETACHED;
16796 #if HAVE_PTHREADS > 4
16797 /* Final pthreads */
16798 pthread_attr_t attr;
16800 status = pthread_attr_init(&attr);
16801 if( status ) return status;
16803 #if HAVE_PTHREADS < 7
16804 status = pthread_attr_setdetachstate(&attr, &detach);
16805 if( status < 0 ) status = errno;
16807 status = pthread_attr_setdetachstate(&attr, detach);
16809 if( status ) return status;
16810 status = pthread_create( &t, &attr, task, NULL );
16811 #if HAVE_PTHREADS < 7
16812 if( status < 0 ) status = errno;
16814 if( status ) return status;
16816 /* Draft 4 pthreads */
16817 status = pthread_create( &t, pthread_attr_default, task, NULL );
16818 if( status ) return errno;
16820 /* give thread a chance to complete */
16821 /* it should remain joinable and hence detachable */
16824 status = pthread_detach( &t );
16825 if( status ) return errno;
16828 #ifdef HAVE_LINUX_THREADS
16829 pthread_kill_other_threads_np();
16837 if ac_fn_c_try_run "$LINENO"; then :
16838 ol_cv_pthread_pthreads=yes
16840 ol_cv_pthread_pthreads=no
16842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16843 conftest.$ac_objext conftest.beam conftest.$ac_ext
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16852 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16854 if test $ol_cv_pthread_pthreads = yes ; then
16855 ol_link_pthreads="-pthreads"
16856 ol_link_threads=posix
16860 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16861 if test "$ol_link_threads" = no ; then
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16864 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16865 if test "${ol_cv_pthread_mthreads+set}" = set; then :
16866 $as_echo_n "(cached) " >&6
16871 LIBS="-mthreads $LIBS"
16873 if test "$cross_compiling" = yes; then :
16874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16875 /* end confdefs.h. */
16877 /* pthread test headers */
16878 #include <pthread.h>
16879 #if HAVE_PTHREADS < 7
16883 #define NULL (void*)0
16886 static void *task(p)
16889 return (void *) (p == NULL);
16896 /* pthread test function */
16897 #ifndef PTHREAD_CREATE_DETACHED
16898 #define PTHREAD_CREATE_DETACHED 1
16902 int detach = PTHREAD_CREATE_DETACHED;
16904 #if HAVE_PTHREADS > 4
16905 /* Final pthreads */
16906 pthread_attr_t attr;
16908 status = pthread_attr_init(&attr);
16909 if( status ) return status;
16911 #if HAVE_PTHREADS < 7
16912 status = pthread_attr_setdetachstate(&attr, &detach);
16913 if( status < 0 ) status = errno;
16915 status = pthread_attr_setdetachstate(&attr, detach);
16917 if( status ) return status;
16918 status = pthread_create( &t, &attr, task, NULL );
16919 #if HAVE_PTHREADS < 7
16920 if( status < 0 ) status = errno;
16922 if( status ) return status;
16924 /* Draft 4 pthreads */
16925 status = pthread_create( &t, pthread_attr_default, task, NULL );
16926 if( status ) return errno;
16928 /* give thread a chance to complete */
16929 /* it should remain joinable and hence detachable */
16932 status = pthread_detach( &t );
16933 if( status ) return errno;
16936 #ifdef HAVE_LINUX_THREADS
16937 pthread_kill_other_threads_np();
16946 if ac_fn_c_try_link "$LINENO"; then :
16947 ol_cv_pthread_mthreads=yes
16949 ol_cv_pthread_mthreads=no
16951 rm -f core conftest.err conftest.$ac_objext \
16952 conftest$ac_exeext conftest.$ac_ext
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16957 /* pthread test headers */
16958 #include <pthread.h>
16959 #if HAVE_PTHREADS < 7
16963 #define NULL (void*)0
16966 static void *task(p)
16969 return (void *) (p == NULL);
16973 int main(argc, argv)
16978 /* pthread test function */
16979 #ifndef PTHREAD_CREATE_DETACHED
16980 #define PTHREAD_CREATE_DETACHED 1
16984 int detach = PTHREAD_CREATE_DETACHED;
16986 #if HAVE_PTHREADS > 4
16987 /* Final pthreads */
16988 pthread_attr_t attr;
16990 status = pthread_attr_init(&attr);
16991 if( status ) return status;
16993 #if HAVE_PTHREADS < 7
16994 status = pthread_attr_setdetachstate(&attr, &detach);
16995 if( status < 0 ) status = errno;
16997 status = pthread_attr_setdetachstate(&attr, detach);
16999 if( status ) return status;
17000 status = pthread_create( &t, &attr, task, NULL );
17001 #if HAVE_PTHREADS < 7
17002 if( status < 0 ) status = errno;
17004 if( status ) return status;
17006 /* Draft 4 pthreads */
17007 status = pthread_create( &t, pthread_attr_default, task, NULL );
17008 if( status ) return errno;
17010 /* give thread a chance to complete */
17011 /* it should remain joinable and hence detachable */
17014 status = pthread_detach( &t );
17015 if( status ) return errno;
17018 #ifdef HAVE_LINUX_THREADS
17019 pthread_kill_other_threads_np();
17027 if ac_fn_c_try_run "$LINENO"; then :
17028 ol_cv_pthread_mthreads=yes
17030 ol_cv_pthread_mthreads=no
17032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17033 conftest.$ac_objext conftest.beam conftest.$ac_ext
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
17042 $as_echo "$ol_cv_pthread_mthreads" >&6; }
17044 if test $ol_cv_pthread_mthreads = yes ; then
17045 ol_link_pthreads="-mthreads"
17046 ol_link_threads=posix
17050 # Pthread try link: -thread (ol_cv_pthread_thread)
17051 if test "$ol_link_threads" = no ; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
17054 $as_echo_n "checking for pthread link with -thread... " >&6; }
17055 if test "${ol_cv_pthread_thread+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17061 LIBS="-thread $LIBS"
17063 if test "$cross_compiling" = yes; then :
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17067 /* pthread test headers */
17068 #include <pthread.h>
17069 #if HAVE_PTHREADS < 7
17073 #define NULL (void*)0
17076 static void *task(p)
17079 return (void *) (p == NULL);
17086 /* pthread test function */
17087 #ifndef PTHREAD_CREATE_DETACHED
17088 #define PTHREAD_CREATE_DETACHED 1
17092 int detach = PTHREAD_CREATE_DETACHED;
17094 #if HAVE_PTHREADS > 4
17095 /* Final pthreads */
17096 pthread_attr_t attr;
17098 status = pthread_attr_init(&attr);
17099 if( status ) return status;
17101 #if HAVE_PTHREADS < 7
17102 status = pthread_attr_setdetachstate(&attr, &detach);
17103 if( status < 0 ) status = errno;
17105 status = pthread_attr_setdetachstate(&attr, detach);
17107 if( status ) return status;
17108 status = pthread_create( &t, &attr, task, NULL );
17109 #if HAVE_PTHREADS < 7
17110 if( status < 0 ) status = errno;
17112 if( status ) return status;
17114 /* Draft 4 pthreads */
17115 status = pthread_create( &t, pthread_attr_default, task, NULL );
17116 if( status ) return errno;
17118 /* give thread a chance to complete */
17119 /* it should remain joinable and hence detachable */
17122 status = pthread_detach( &t );
17123 if( status ) return errno;
17126 #ifdef HAVE_LINUX_THREADS
17127 pthread_kill_other_threads_np();
17136 if ac_fn_c_try_link "$LINENO"; then :
17137 ol_cv_pthread_thread=yes
17139 ol_cv_pthread_thread=no
17141 rm -f core conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17147 /* pthread test headers */
17148 #include <pthread.h>
17149 #if HAVE_PTHREADS < 7
17153 #define NULL (void*)0
17156 static void *task(p)
17159 return (void *) (p == NULL);
17163 int main(argc, argv)
17168 /* pthread test function */
17169 #ifndef PTHREAD_CREATE_DETACHED
17170 #define PTHREAD_CREATE_DETACHED 1
17174 int detach = PTHREAD_CREATE_DETACHED;
17176 #if HAVE_PTHREADS > 4
17177 /* Final pthreads */
17178 pthread_attr_t attr;
17180 status = pthread_attr_init(&attr);
17181 if( status ) return status;
17183 #if HAVE_PTHREADS < 7
17184 status = pthread_attr_setdetachstate(&attr, &detach);
17185 if( status < 0 ) status = errno;
17187 status = pthread_attr_setdetachstate(&attr, detach);
17189 if( status ) return status;
17190 status = pthread_create( &t, &attr, task, NULL );
17191 #if HAVE_PTHREADS < 7
17192 if( status < 0 ) status = errno;
17194 if( status ) return status;
17196 /* Draft 4 pthreads */
17197 status = pthread_create( &t, pthread_attr_default, task, NULL );
17198 if( status ) return errno;
17200 /* give thread a chance to complete */
17201 /* it should remain joinable and hence detachable */
17204 status = pthread_detach( &t );
17205 if( status ) return errno;
17208 #ifdef HAVE_LINUX_THREADS
17209 pthread_kill_other_threads_np();
17217 if ac_fn_c_try_run "$LINENO"; then :
17218 ol_cv_pthread_thread=yes
17220 ol_cv_pthread_thread=no
17222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17223 conftest.$ac_objext conftest.beam conftest.$ac_ext
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17232 $as_echo "$ol_cv_pthread_thread" >&6; }
17234 if test $ol_cv_pthread_thread = yes ; then
17235 ol_link_pthreads="-thread"
17236 ol_link_threads=posix
17241 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17242 if test "$ol_link_threads" = no ; then
17243 # try -lpthread -lmach -lexc -lc_r
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17245 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17246 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then :
17247 $as_echo_n "(cached) " >&6
17252 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17254 if test "$cross_compiling" = yes; then :
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17258 /* pthread test headers */
17259 #include <pthread.h>
17260 #if HAVE_PTHREADS < 7
17264 #define NULL (void*)0
17267 static void *task(p)
17270 return (void *) (p == NULL);
17277 /* pthread test function */
17278 #ifndef PTHREAD_CREATE_DETACHED
17279 #define PTHREAD_CREATE_DETACHED 1
17283 int detach = PTHREAD_CREATE_DETACHED;
17285 #if HAVE_PTHREADS > 4
17286 /* Final pthreads */
17287 pthread_attr_t attr;
17289 status = pthread_attr_init(&attr);
17290 if( status ) return status;
17292 #if HAVE_PTHREADS < 7
17293 status = pthread_attr_setdetachstate(&attr, &detach);
17294 if( status < 0 ) status = errno;
17296 status = pthread_attr_setdetachstate(&attr, detach);
17298 if( status ) return status;
17299 status = pthread_create( &t, &attr, task, NULL );
17300 #if HAVE_PTHREADS < 7
17301 if( status < 0 ) status = errno;
17303 if( status ) return status;
17305 /* Draft 4 pthreads */
17306 status = pthread_create( &t, pthread_attr_default, task, NULL );
17307 if( status ) return errno;
17309 /* give thread a chance to complete */
17310 /* it should remain joinable and hence detachable */
17313 status = pthread_detach( &t );
17314 if( status ) return errno;
17317 #ifdef HAVE_LINUX_THREADS
17318 pthread_kill_other_threads_np();
17327 if ac_fn_c_try_link "$LINENO"; then :
17328 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17330 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17332 rm -f core conftest.err conftest.$ac_objext \
17333 conftest$ac_exeext conftest.$ac_ext
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17338 /* pthread test headers */
17339 #include <pthread.h>
17340 #if HAVE_PTHREADS < 7
17344 #define NULL (void*)0
17347 static void *task(p)
17350 return (void *) (p == NULL);
17354 int main(argc, argv)
17359 /* pthread test function */
17360 #ifndef PTHREAD_CREATE_DETACHED
17361 #define PTHREAD_CREATE_DETACHED 1
17365 int detach = PTHREAD_CREATE_DETACHED;
17367 #if HAVE_PTHREADS > 4
17368 /* Final pthreads */
17369 pthread_attr_t attr;
17371 status = pthread_attr_init(&attr);
17372 if( status ) return status;
17374 #if HAVE_PTHREADS < 7
17375 status = pthread_attr_setdetachstate(&attr, &detach);
17376 if( status < 0 ) status = errno;
17378 status = pthread_attr_setdetachstate(&attr, detach);
17380 if( status ) return status;
17381 status = pthread_create( &t, &attr, task, NULL );
17382 #if HAVE_PTHREADS < 7
17383 if( status < 0 ) status = errno;
17385 if( status ) return status;
17387 /* Draft 4 pthreads */
17388 status = pthread_create( &t, pthread_attr_default, task, NULL );
17389 if( status ) return errno;
17391 /* give thread a chance to complete */
17392 /* it should remain joinable and hence detachable */
17395 status = pthread_detach( &t );
17396 if( status ) return errno;
17399 #ifdef HAVE_LINUX_THREADS
17400 pthread_kill_other_threads_np();
17408 if ac_fn_c_try_run "$LINENO"; then :
17409 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17411 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17414 conftest.$ac_objext conftest.beam conftest.$ac_ext
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17423 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17425 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17426 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17427 ol_link_threads=posix
17431 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17432 if test "$ol_link_threads" = no ; then
17433 # try -lpthread -lmach -lexc
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17435 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17436 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then :
17437 $as_echo_n "(cached) " >&6
17442 LIBS="-lpthread -lmach -lexc $LIBS"
17444 if test "$cross_compiling" = yes; then :
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17448 /* pthread test headers */
17449 #include <pthread.h>
17450 #if HAVE_PTHREADS < 7
17454 #define NULL (void*)0
17457 static void *task(p)
17460 return (void *) (p == NULL);
17467 /* pthread test function */
17468 #ifndef PTHREAD_CREATE_DETACHED
17469 #define PTHREAD_CREATE_DETACHED 1
17473 int detach = PTHREAD_CREATE_DETACHED;
17475 #if HAVE_PTHREADS > 4
17476 /* Final pthreads */
17477 pthread_attr_t attr;
17479 status = pthread_attr_init(&attr);
17480 if( status ) return status;
17482 #if HAVE_PTHREADS < 7
17483 status = pthread_attr_setdetachstate(&attr, &detach);
17484 if( status < 0 ) status = errno;
17486 status = pthread_attr_setdetachstate(&attr, detach);
17488 if( status ) return status;
17489 status = pthread_create( &t, &attr, task, NULL );
17490 #if HAVE_PTHREADS < 7
17491 if( status < 0 ) status = errno;
17493 if( status ) return status;
17495 /* Draft 4 pthreads */
17496 status = pthread_create( &t, pthread_attr_default, task, NULL );
17497 if( status ) return errno;
17499 /* give thread a chance to complete */
17500 /* it should remain joinable and hence detachable */
17503 status = pthread_detach( &t );
17504 if( status ) return errno;
17507 #ifdef HAVE_LINUX_THREADS
17508 pthread_kill_other_threads_np();
17517 if ac_fn_c_try_link "$LINENO"; then :
17518 ol_cv_pthread_lpthread_lmach_lexc=yes
17520 ol_cv_pthread_lpthread_lmach_lexc=no
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17526 /* end confdefs.h. */
17528 /* pthread test headers */
17529 #include <pthread.h>
17530 #if HAVE_PTHREADS < 7
17534 #define NULL (void*)0
17537 static void *task(p)
17540 return (void *) (p == NULL);
17544 int main(argc, argv)
17549 /* pthread test function */
17550 #ifndef PTHREAD_CREATE_DETACHED
17551 #define PTHREAD_CREATE_DETACHED 1
17555 int detach = PTHREAD_CREATE_DETACHED;
17557 #if HAVE_PTHREADS > 4
17558 /* Final pthreads */
17559 pthread_attr_t attr;
17561 status = pthread_attr_init(&attr);
17562 if( status ) return status;
17564 #if HAVE_PTHREADS < 7
17565 status = pthread_attr_setdetachstate(&attr, &detach);
17566 if( status < 0 ) status = errno;
17568 status = pthread_attr_setdetachstate(&attr, detach);
17570 if( status ) return status;
17571 status = pthread_create( &t, &attr, task, NULL );
17572 #if HAVE_PTHREADS < 7
17573 if( status < 0 ) status = errno;
17575 if( status ) return status;
17577 /* Draft 4 pthreads */
17578 status = pthread_create( &t, pthread_attr_default, task, NULL );
17579 if( status ) return errno;
17581 /* give thread a chance to complete */
17582 /* it should remain joinable and hence detachable */
17585 status = pthread_detach( &t );
17586 if( status ) return errno;
17589 #ifdef HAVE_LINUX_THREADS
17590 pthread_kill_other_threads_np();
17598 if ac_fn_c_try_run "$LINENO"; then :
17599 ol_cv_pthread_lpthread_lmach_lexc=yes
17601 ol_cv_pthread_lpthread_lmach_lexc=no
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17613 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17615 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17616 ol_link_pthreads="-lpthread -lmach -lexc"
17617 ol_link_threads=posix
17622 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17623 if test "$ol_link_threads" = no ; then
17624 # try -lpthread -Wl,-woff,85
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17626 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17627 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then :
17628 $as_echo_n "(cached) " >&6
17633 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17635 if test "$cross_compiling" = yes; then :
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17639 /* pthread test headers */
17640 #include <pthread.h>
17641 #if HAVE_PTHREADS < 7
17645 #define NULL (void*)0
17648 static void *task(p)
17651 return (void *) (p == NULL);
17658 /* pthread test function */
17659 #ifndef PTHREAD_CREATE_DETACHED
17660 #define PTHREAD_CREATE_DETACHED 1
17664 int detach = PTHREAD_CREATE_DETACHED;
17666 #if HAVE_PTHREADS > 4
17667 /* Final pthreads */
17668 pthread_attr_t attr;
17670 status = pthread_attr_init(&attr);
17671 if( status ) return status;
17673 #if HAVE_PTHREADS < 7
17674 status = pthread_attr_setdetachstate(&attr, &detach);
17675 if( status < 0 ) status = errno;
17677 status = pthread_attr_setdetachstate(&attr, detach);
17679 if( status ) return status;
17680 status = pthread_create( &t, &attr, task, NULL );
17681 #if HAVE_PTHREADS < 7
17682 if( status < 0 ) status = errno;
17684 if( status ) return status;
17686 /* Draft 4 pthreads */
17687 status = pthread_create( &t, pthread_attr_default, task, NULL );
17688 if( status ) return errno;
17690 /* give thread a chance to complete */
17691 /* it should remain joinable and hence detachable */
17694 status = pthread_detach( &t );
17695 if( status ) return errno;
17698 #ifdef HAVE_LINUX_THREADS
17699 pthread_kill_other_threads_np();
17708 if ac_fn_c_try_link "$LINENO"; then :
17709 ol_cv_pthread_lib_lpthread_woff=yes
17711 ol_cv_pthread_lib_lpthread_woff=no
17713 rm -f core conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17719 /* pthread test headers */
17720 #include <pthread.h>
17721 #if HAVE_PTHREADS < 7
17725 #define NULL (void*)0
17728 static void *task(p)
17731 return (void *) (p == NULL);
17735 int main(argc, argv)
17740 /* pthread test function */
17741 #ifndef PTHREAD_CREATE_DETACHED
17742 #define PTHREAD_CREATE_DETACHED 1
17746 int detach = PTHREAD_CREATE_DETACHED;
17748 #if HAVE_PTHREADS > 4
17749 /* Final pthreads */
17750 pthread_attr_t attr;
17752 status = pthread_attr_init(&attr);
17753 if( status ) return status;
17755 #if HAVE_PTHREADS < 7
17756 status = pthread_attr_setdetachstate(&attr, &detach);
17757 if( status < 0 ) status = errno;
17759 status = pthread_attr_setdetachstate(&attr, detach);
17761 if( status ) return status;
17762 status = pthread_create( &t, &attr, task, NULL );
17763 #if HAVE_PTHREADS < 7
17764 if( status < 0 ) status = errno;
17766 if( status ) return status;
17768 /* Draft 4 pthreads */
17769 status = pthread_create( &t, pthread_attr_default, task, NULL );
17770 if( status ) return errno;
17772 /* give thread a chance to complete */
17773 /* it should remain joinable and hence detachable */
17776 status = pthread_detach( &t );
17777 if( status ) return errno;
17780 #ifdef HAVE_LINUX_THREADS
17781 pthread_kill_other_threads_np();
17789 if ac_fn_c_try_run "$LINENO"; then :
17790 ol_cv_pthread_lib_lpthread_woff=yes
17792 ol_cv_pthread_lib_lpthread_woff=no
17794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17795 conftest.$ac_objext conftest.beam conftest.$ac_ext
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17804 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17806 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17807 ol_link_pthreads="-lpthread -Wl,-woff,85"
17808 ol_link_threads=posix
17813 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17814 if test "$ol_link_threads" = no ; then
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17817 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17818 if test "${ol_cv_pthread_lpthread+set}" = set; then :
17819 $as_echo_n "(cached) " >&6
17824 LIBS="-lpthread $LIBS"
17826 if test "$cross_compiling" = yes; then :
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17830 /* pthread test headers */
17831 #include <pthread.h>
17832 #if HAVE_PTHREADS < 7
17836 #define NULL (void*)0
17839 static void *task(p)
17842 return (void *) (p == NULL);
17849 /* pthread test function */
17850 #ifndef PTHREAD_CREATE_DETACHED
17851 #define PTHREAD_CREATE_DETACHED 1
17855 int detach = PTHREAD_CREATE_DETACHED;
17857 #if HAVE_PTHREADS > 4
17858 /* Final pthreads */
17859 pthread_attr_t attr;
17861 status = pthread_attr_init(&attr);
17862 if( status ) return status;
17864 #if HAVE_PTHREADS < 7
17865 status = pthread_attr_setdetachstate(&attr, &detach);
17866 if( status < 0 ) status = errno;
17868 status = pthread_attr_setdetachstate(&attr, detach);
17870 if( status ) return status;
17871 status = pthread_create( &t, &attr, task, NULL );
17872 #if HAVE_PTHREADS < 7
17873 if( status < 0 ) status = errno;
17875 if( status ) return status;
17877 /* Draft 4 pthreads */
17878 status = pthread_create( &t, pthread_attr_default, task, NULL );
17879 if( status ) return errno;
17881 /* give thread a chance to complete */
17882 /* it should remain joinable and hence detachable */
17885 status = pthread_detach( &t );
17886 if( status ) return errno;
17889 #ifdef HAVE_LINUX_THREADS
17890 pthread_kill_other_threads_np();
17899 if ac_fn_c_try_link "$LINENO"; then :
17900 ol_cv_pthread_lpthread=yes
17902 ol_cv_pthread_lpthread=no
17904 rm -f core conftest.err conftest.$ac_objext \
17905 conftest$ac_exeext conftest.$ac_ext
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17910 /* pthread test headers */
17911 #include <pthread.h>
17912 #if HAVE_PTHREADS < 7
17916 #define NULL (void*)0
17919 static void *task(p)
17922 return (void *) (p == NULL);
17926 int main(argc, argv)
17931 /* pthread test function */
17932 #ifndef PTHREAD_CREATE_DETACHED
17933 #define PTHREAD_CREATE_DETACHED 1
17937 int detach = PTHREAD_CREATE_DETACHED;
17939 #if HAVE_PTHREADS > 4
17940 /* Final pthreads */
17941 pthread_attr_t attr;
17943 status = pthread_attr_init(&attr);
17944 if( status ) return status;
17946 #if HAVE_PTHREADS < 7
17947 status = pthread_attr_setdetachstate(&attr, &detach);
17948 if( status < 0 ) status = errno;
17950 status = pthread_attr_setdetachstate(&attr, detach);
17952 if( status ) return status;
17953 status = pthread_create( &t, &attr, task, NULL );
17954 #if HAVE_PTHREADS < 7
17955 if( status < 0 ) status = errno;
17957 if( status ) return status;
17959 /* Draft 4 pthreads */
17960 status = pthread_create( &t, pthread_attr_default, task, NULL );
17961 if( status ) return errno;
17963 /* give thread a chance to complete */
17964 /* it should remain joinable and hence detachable */
17967 status = pthread_detach( &t );
17968 if( status ) return errno;
17971 #ifdef HAVE_LINUX_THREADS
17972 pthread_kill_other_threads_np();
17980 if ac_fn_c_try_run "$LINENO"; then :
17981 ol_cv_pthread_lpthread=yes
17983 ol_cv_pthread_lpthread=no
17985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17986 conftest.$ac_objext conftest.beam conftest.$ac_ext
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17995 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17997 if test $ol_cv_pthread_lpthread = yes ; then
17998 ol_link_pthreads="-lpthread"
17999 ol_link_threads=posix
18003 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
18004 if test "$ol_link_threads" = no ; then
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
18007 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
18008 if test "${ol_cv_pthread_lc_r+set}" = set; then :
18009 $as_echo_n "(cached) " >&6
18016 if test "$cross_compiling" = yes; then :
18017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18018 /* end confdefs.h. */
18020 /* pthread test headers */
18021 #include <pthread.h>
18022 #if HAVE_PTHREADS < 7
18026 #define NULL (void*)0
18029 static void *task(p)
18032 return (void *) (p == NULL);
18039 /* pthread test function */
18040 #ifndef PTHREAD_CREATE_DETACHED
18041 #define PTHREAD_CREATE_DETACHED 1
18045 int detach = PTHREAD_CREATE_DETACHED;
18047 #if HAVE_PTHREADS > 4
18048 /* Final pthreads */
18049 pthread_attr_t attr;
18051 status = pthread_attr_init(&attr);
18052 if( status ) return status;
18054 #if HAVE_PTHREADS < 7
18055 status = pthread_attr_setdetachstate(&attr, &detach);
18056 if( status < 0 ) status = errno;
18058 status = pthread_attr_setdetachstate(&attr, detach);
18060 if( status ) return status;
18061 status = pthread_create( &t, &attr, task, NULL );
18062 #if HAVE_PTHREADS < 7
18063 if( status < 0 ) status = errno;
18065 if( status ) return status;
18067 /* Draft 4 pthreads */
18068 status = pthread_create( &t, pthread_attr_default, task, NULL );
18069 if( status ) return errno;
18071 /* give thread a chance to complete */
18072 /* it should remain joinable and hence detachable */
18075 status = pthread_detach( &t );
18076 if( status ) return errno;
18079 #ifdef HAVE_LINUX_THREADS
18080 pthread_kill_other_threads_np();
18089 if ac_fn_c_try_link "$LINENO"; then :
18090 ol_cv_pthread_lc_r=yes
18092 ol_cv_pthread_lc_r=no
18094 rm -f core conftest.err conftest.$ac_objext \
18095 conftest$ac_exeext conftest.$ac_ext
18097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098 /* end confdefs.h. */
18100 /* pthread test headers */
18101 #include <pthread.h>
18102 #if HAVE_PTHREADS < 7
18106 #define NULL (void*)0
18109 static void *task(p)
18112 return (void *) (p == NULL);
18116 int main(argc, argv)
18121 /* pthread test function */
18122 #ifndef PTHREAD_CREATE_DETACHED
18123 #define PTHREAD_CREATE_DETACHED 1
18127 int detach = PTHREAD_CREATE_DETACHED;
18129 #if HAVE_PTHREADS > 4
18130 /* Final pthreads */
18131 pthread_attr_t attr;
18133 status = pthread_attr_init(&attr);
18134 if( status ) return status;
18136 #if HAVE_PTHREADS < 7
18137 status = pthread_attr_setdetachstate(&attr, &detach);
18138 if( status < 0 ) status = errno;
18140 status = pthread_attr_setdetachstate(&attr, detach);
18142 if( status ) return status;
18143 status = pthread_create( &t, &attr, task, NULL );
18144 #if HAVE_PTHREADS < 7
18145 if( status < 0 ) status = errno;
18147 if( status ) return status;
18149 /* Draft 4 pthreads */
18150 status = pthread_create( &t, pthread_attr_default, task, NULL );
18151 if( status ) return errno;
18153 /* give thread a chance to complete */
18154 /* it should remain joinable and hence detachable */
18157 status = pthread_detach( &t );
18158 if( status ) return errno;
18161 #ifdef HAVE_LINUX_THREADS
18162 pthread_kill_other_threads_np();
18170 if ac_fn_c_try_run "$LINENO"; then :
18171 ol_cv_pthread_lc_r=yes
18173 ol_cv_pthread_lc_r=no
18175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18176 conftest.$ac_objext conftest.beam conftest.$ac_ext
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18185 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18187 if test $ol_cv_pthread_lc_r = yes ; then
18188 ol_link_pthreads="-lc_r"
18189 ol_link_threads=posix
18194 # Pthread try link: -threads (ol_cv_pthread_threads)
18195 if test "$ol_link_threads" = no ; then
18197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18198 $as_echo_n "checking for pthread link with -threads... " >&6; }
18199 if test "${ol_cv_pthread_threads+set}" = set; then :
18200 $as_echo_n "(cached) " >&6
18205 LIBS="-threads $LIBS"
18207 if test "$cross_compiling" = yes; then :
18208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h. */
18211 /* pthread test headers */
18212 #include <pthread.h>
18213 #if HAVE_PTHREADS < 7
18217 #define NULL (void*)0
18220 static void *task(p)
18223 return (void *) (p == NULL);
18230 /* pthread test function */
18231 #ifndef PTHREAD_CREATE_DETACHED
18232 #define PTHREAD_CREATE_DETACHED 1
18236 int detach = PTHREAD_CREATE_DETACHED;
18238 #if HAVE_PTHREADS > 4
18239 /* Final pthreads */
18240 pthread_attr_t attr;
18242 status = pthread_attr_init(&attr);
18243 if( status ) return status;
18245 #if HAVE_PTHREADS < 7
18246 status = pthread_attr_setdetachstate(&attr, &detach);
18247 if( status < 0 ) status = errno;
18249 status = pthread_attr_setdetachstate(&attr, detach);
18251 if( status ) return status;
18252 status = pthread_create( &t, &attr, task, NULL );
18253 #if HAVE_PTHREADS < 7
18254 if( status < 0 ) status = errno;
18256 if( status ) return status;
18258 /* Draft 4 pthreads */
18259 status = pthread_create( &t, pthread_attr_default, task, NULL );
18260 if( status ) return errno;
18262 /* give thread a chance to complete */
18263 /* it should remain joinable and hence detachable */
18266 status = pthread_detach( &t );
18267 if( status ) return errno;
18270 #ifdef HAVE_LINUX_THREADS
18271 pthread_kill_other_threads_np();
18280 if ac_fn_c_try_link "$LINENO"; then :
18281 ol_cv_pthread_threads=yes
18283 ol_cv_pthread_threads=no
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18291 /* pthread test headers */
18292 #include <pthread.h>
18293 #if HAVE_PTHREADS < 7
18297 #define NULL (void*)0
18300 static void *task(p)
18303 return (void *) (p == NULL);
18307 int main(argc, argv)
18312 /* pthread test function */
18313 #ifndef PTHREAD_CREATE_DETACHED
18314 #define PTHREAD_CREATE_DETACHED 1
18318 int detach = PTHREAD_CREATE_DETACHED;
18320 #if HAVE_PTHREADS > 4
18321 /* Final pthreads */
18322 pthread_attr_t attr;
18324 status = pthread_attr_init(&attr);
18325 if( status ) return status;
18327 #if HAVE_PTHREADS < 7
18328 status = pthread_attr_setdetachstate(&attr, &detach);
18329 if( status < 0 ) status = errno;
18331 status = pthread_attr_setdetachstate(&attr, detach);
18333 if( status ) return status;
18334 status = pthread_create( &t, &attr, task, NULL );
18335 #if HAVE_PTHREADS < 7
18336 if( status < 0 ) status = errno;
18338 if( status ) return status;
18340 /* Draft 4 pthreads */
18341 status = pthread_create( &t, pthread_attr_default, task, NULL );
18342 if( status ) return errno;
18344 /* give thread a chance to complete */
18345 /* it should remain joinable and hence detachable */
18348 status = pthread_detach( &t );
18349 if( status ) return errno;
18352 #ifdef HAVE_LINUX_THREADS
18353 pthread_kill_other_threads_np();
18361 if ac_fn_c_try_run "$LINENO"; then :
18362 ol_cv_pthread_threads=yes
18364 ol_cv_pthread_threads=no
18366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18367 conftest.$ac_objext conftest.beam conftest.$ac_ext
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18376 $as_echo "$ol_cv_pthread_threads" >&6; }
18378 if test $ol_cv_pthread_threads = yes ; then
18379 ol_link_pthreads="-threads"
18380 ol_link_threads=posix
18385 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18386 if test "$ol_link_threads" = no ; then
18387 # try -lpthreads -lmach -lexc -lc_r
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18389 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18390 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then :
18391 $as_echo_n "(cached) " >&6
18396 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18398 if test "$cross_compiling" = yes; then :
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18402 /* pthread test headers */
18403 #include <pthread.h>
18404 #if HAVE_PTHREADS < 7
18408 #define NULL (void*)0
18411 static void *task(p)
18414 return (void *) (p == NULL);
18421 /* pthread test function */
18422 #ifndef PTHREAD_CREATE_DETACHED
18423 #define PTHREAD_CREATE_DETACHED 1
18427 int detach = PTHREAD_CREATE_DETACHED;
18429 #if HAVE_PTHREADS > 4
18430 /* Final pthreads */
18431 pthread_attr_t attr;
18433 status = pthread_attr_init(&attr);
18434 if( status ) return status;
18436 #if HAVE_PTHREADS < 7
18437 status = pthread_attr_setdetachstate(&attr, &detach);
18438 if( status < 0 ) status = errno;
18440 status = pthread_attr_setdetachstate(&attr, detach);
18442 if( status ) return status;
18443 status = pthread_create( &t, &attr, task, NULL );
18444 #if HAVE_PTHREADS < 7
18445 if( status < 0 ) status = errno;
18447 if( status ) return status;
18449 /* Draft 4 pthreads */
18450 status = pthread_create( &t, pthread_attr_default, task, NULL );
18451 if( status ) return errno;
18453 /* give thread a chance to complete */
18454 /* it should remain joinable and hence detachable */
18457 status = pthread_detach( &t );
18458 if( status ) return errno;
18461 #ifdef HAVE_LINUX_THREADS
18462 pthread_kill_other_threads_np();
18471 if ac_fn_c_try_link "$LINENO"; then :
18472 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18474 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18476 rm -f core conftest.err conftest.$ac_objext \
18477 conftest$ac_exeext conftest.$ac_ext
18479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18480 /* end confdefs.h. */
18482 /* pthread test headers */
18483 #include <pthread.h>
18484 #if HAVE_PTHREADS < 7
18488 #define NULL (void*)0
18491 static void *task(p)
18494 return (void *) (p == NULL);
18498 int main(argc, argv)
18503 /* pthread test function */
18504 #ifndef PTHREAD_CREATE_DETACHED
18505 #define PTHREAD_CREATE_DETACHED 1
18509 int detach = PTHREAD_CREATE_DETACHED;
18511 #if HAVE_PTHREADS > 4
18512 /* Final pthreads */
18513 pthread_attr_t attr;
18515 status = pthread_attr_init(&attr);
18516 if( status ) return status;
18518 #if HAVE_PTHREADS < 7
18519 status = pthread_attr_setdetachstate(&attr, &detach);
18520 if( status < 0 ) status = errno;
18522 status = pthread_attr_setdetachstate(&attr, detach);
18524 if( status ) return status;
18525 status = pthread_create( &t, &attr, task, NULL );
18526 #if HAVE_PTHREADS < 7
18527 if( status < 0 ) status = errno;
18529 if( status ) return status;
18531 /* Draft 4 pthreads */
18532 status = pthread_create( &t, pthread_attr_default, task, NULL );
18533 if( status ) return errno;
18535 /* give thread a chance to complete */
18536 /* it should remain joinable and hence detachable */
18539 status = pthread_detach( &t );
18540 if( status ) return errno;
18543 #ifdef HAVE_LINUX_THREADS
18544 pthread_kill_other_threads_np();
18552 if ac_fn_c_try_run "$LINENO"; then :
18553 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18555 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18558 conftest.$ac_objext conftest.beam conftest.$ac_ext
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18567 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18569 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18570 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18571 ol_link_threads=posix
18575 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18576 if test "$ol_link_threads" = no ; then
18577 # try -lpthreads -lmach -lexc
18578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18579 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18580 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then :
18581 $as_echo_n "(cached) " >&6
18586 LIBS="-lpthreads -lmach -lexc $LIBS"
18588 if test "$cross_compiling" = yes; then :
18589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18590 /* end confdefs.h. */
18592 /* pthread test headers */
18593 #include <pthread.h>
18594 #if HAVE_PTHREADS < 7
18598 #define NULL (void*)0
18601 static void *task(p)
18604 return (void *) (p == NULL);
18611 /* pthread test function */
18612 #ifndef PTHREAD_CREATE_DETACHED
18613 #define PTHREAD_CREATE_DETACHED 1
18617 int detach = PTHREAD_CREATE_DETACHED;
18619 #if HAVE_PTHREADS > 4
18620 /* Final pthreads */
18621 pthread_attr_t attr;
18623 status = pthread_attr_init(&attr);
18624 if( status ) return status;
18626 #if HAVE_PTHREADS < 7
18627 status = pthread_attr_setdetachstate(&attr, &detach);
18628 if( status < 0 ) status = errno;
18630 status = pthread_attr_setdetachstate(&attr, detach);
18632 if( status ) return status;
18633 status = pthread_create( &t, &attr, task, NULL );
18634 #if HAVE_PTHREADS < 7
18635 if( status < 0 ) status = errno;
18637 if( status ) return status;
18639 /* Draft 4 pthreads */
18640 status = pthread_create( &t, pthread_attr_default, task, NULL );
18641 if( status ) return errno;
18643 /* give thread a chance to complete */
18644 /* it should remain joinable and hence detachable */
18647 status = pthread_detach( &t );
18648 if( status ) return errno;
18651 #ifdef HAVE_LINUX_THREADS
18652 pthread_kill_other_threads_np();
18661 if ac_fn_c_try_link "$LINENO"; then :
18662 ol_cv_pthread_lpthreads_lmach_lexc=yes
18664 ol_cv_pthread_lpthreads_lmach_lexc=no
18666 rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18670 /* end confdefs.h. */
18672 /* pthread test headers */
18673 #include <pthread.h>
18674 #if HAVE_PTHREADS < 7
18678 #define NULL (void*)0
18681 static void *task(p)
18684 return (void *) (p == NULL);
18688 int main(argc, argv)
18693 /* pthread test function */
18694 #ifndef PTHREAD_CREATE_DETACHED
18695 #define PTHREAD_CREATE_DETACHED 1
18699 int detach = PTHREAD_CREATE_DETACHED;
18701 #if HAVE_PTHREADS > 4
18702 /* Final pthreads */
18703 pthread_attr_t attr;
18705 status = pthread_attr_init(&attr);
18706 if( status ) return status;
18708 #if HAVE_PTHREADS < 7
18709 status = pthread_attr_setdetachstate(&attr, &detach);
18710 if( status < 0 ) status = errno;
18712 status = pthread_attr_setdetachstate(&attr, detach);
18714 if( status ) return status;
18715 status = pthread_create( &t, &attr, task, NULL );
18716 #if HAVE_PTHREADS < 7
18717 if( status < 0 ) status = errno;
18719 if( status ) return status;
18721 /* Draft 4 pthreads */
18722 status = pthread_create( &t, pthread_attr_default, task, NULL );
18723 if( status ) return errno;
18725 /* give thread a chance to complete */
18726 /* it should remain joinable and hence detachable */
18729 status = pthread_detach( &t );
18730 if( status ) return errno;
18733 #ifdef HAVE_LINUX_THREADS
18734 pthread_kill_other_threads_np();
18742 if ac_fn_c_try_run "$LINENO"; then :
18743 ol_cv_pthread_lpthreads_lmach_lexc=yes
18745 ol_cv_pthread_lpthreads_lmach_lexc=no
18747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18748 conftest.$ac_objext conftest.beam conftest.$ac_ext
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18757 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18759 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18760 ol_link_pthreads="-lpthreads -lmach -lexc"
18761 ol_link_threads=posix
18765 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18766 if test "$ol_link_threads" = no ; then
18767 # try -lpthreads -lexc
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18769 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18770 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then :
18771 $as_echo_n "(cached) " >&6
18776 LIBS="-lpthreads -lexc $LIBS"
18778 if test "$cross_compiling" = yes; then :
18779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18780 /* end confdefs.h. */
18782 /* pthread test headers */
18783 #include <pthread.h>
18784 #if HAVE_PTHREADS < 7
18788 #define NULL (void*)0
18791 static void *task(p)
18794 return (void *) (p == NULL);
18801 /* pthread test function */
18802 #ifndef PTHREAD_CREATE_DETACHED
18803 #define PTHREAD_CREATE_DETACHED 1
18807 int detach = PTHREAD_CREATE_DETACHED;
18809 #if HAVE_PTHREADS > 4
18810 /* Final pthreads */
18811 pthread_attr_t attr;
18813 status = pthread_attr_init(&attr);
18814 if( status ) return status;
18816 #if HAVE_PTHREADS < 7
18817 status = pthread_attr_setdetachstate(&attr, &detach);
18818 if( status < 0 ) status = errno;
18820 status = pthread_attr_setdetachstate(&attr, detach);
18822 if( status ) return status;
18823 status = pthread_create( &t, &attr, task, NULL );
18824 #if HAVE_PTHREADS < 7
18825 if( status < 0 ) status = errno;
18827 if( status ) return status;
18829 /* Draft 4 pthreads */
18830 status = pthread_create( &t, pthread_attr_default, task, NULL );
18831 if( status ) return errno;
18833 /* give thread a chance to complete */
18834 /* it should remain joinable and hence detachable */
18837 status = pthread_detach( &t );
18838 if( status ) return errno;
18841 #ifdef HAVE_LINUX_THREADS
18842 pthread_kill_other_threads_np();
18851 if ac_fn_c_try_link "$LINENO"; then :
18852 ol_cv_pthread_lpthreads_lexc=yes
18854 ol_cv_pthread_lpthreads_lexc=no
18856 rm -f core conftest.err conftest.$ac_objext \
18857 conftest$ac_exeext conftest.$ac_ext
18859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18860 /* end confdefs.h. */
18862 /* pthread test headers */
18863 #include <pthread.h>
18864 #if HAVE_PTHREADS < 7
18868 #define NULL (void*)0
18871 static void *task(p)
18874 return (void *) (p == NULL);
18878 int main(argc, argv)
18883 /* pthread test function */
18884 #ifndef PTHREAD_CREATE_DETACHED
18885 #define PTHREAD_CREATE_DETACHED 1
18889 int detach = PTHREAD_CREATE_DETACHED;
18891 #if HAVE_PTHREADS > 4
18892 /* Final pthreads */
18893 pthread_attr_t attr;
18895 status = pthread_attr_init(&attr);
18896 if( status ) return status;
18898 #if HAVE_PTHREADS < 7
18899 status = pthread_attr_setdetachstate(&attr, &detach);
18900 if( status < 0 ) status = errno;
18902 status = pthread_attr_setdetachstate(&attr, detach);
18904 if( status ) return status;
18905 status = pthread_create( &t, &attr, task, NULL );
18906 #if HAVE_PTHREADS < 7
18907 if( status < 0 ) status = errno;
18909 if( status ) return status;
18911 /* Draft 4 pthreads */
18912 status = pthread_create( &t, pthread_attr_default, task, NULL );
18913 if( status ) return errno;
18915 /* give thread a chance to complete */
18916 /* it should remain joinable and hence detachable */
18919 status = pthread_detach( &t );
18920 if( status ) return errno;
18923 #ifdef HAVE_LINUX_THREADS
18924 pthread_kill_other_threads_np();
18932 if ac_fn_c_try_run "$LINENO"; then :
18933 ol_cv_pthread_lpthreads_lexc=yes
18935 ol_cv_pthread_lpthreads_lexc=no
18937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18938 conftest.$ac_objext conftest.beam conftest.$ac_ext
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18947 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18949 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18950 ol_link_pthreads="-lpthreads -lexc"
18951 ol_link_threads=posix
18956 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18957 if test "$ol_link_threads" = no ; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18960 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18961 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then :
18962 $as_echo_n "(cached) " >&6
18967 LIBS="-lpthreads $LIBS"
18969 if test "$cross_compiling" = yes; then :
18970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18971 /* end confdefs.h. */
18973 /* pthread test headers */
18974 #include <pthread.h>
18975 #if HAVE_PTHREADS < 7
18979 #define NULL (void*)0
18982 static void *task(p)
18985 return (void *) (p == NULL);
18992 /* pthread test function */
18993 #ifndef PTHREAD_CREATE_DETACHED
18994 #define PTHREAD_CREATE_DETACHED 1
18998 int detach = PTHREAD_CREATE_DETACHED;
19000 #if HAVE_PTHREADS > 4
19001 /* Final pthreads */
19002 pthread_attr_t attr;
19004 status = pthread_attr_init(&attr);
19005 if( status ) return status;
19007 #if HAVE_PTHREADS < 7
19008 status = pthread_attr_setdetachstate(&attr, &detach);
19009 if( status < 0 ) status = errno;
19011 status = pthread_attr_setdetachstate(&attr, detach);
19013 if( status ) return status;
19014 status = pthread_create( &t, &attr, task, NULL );
19015 #if HAVE_PTHREADS < 7
19016 if( status < 0 ) status = errno;
19018 if( status ) return status;
19020 /* Draft 4 pthreads */
19021 status = pthread_create( &t, pthread_attr_default, task, NULL );
19022 if( status ) return errno;
19024 /* give thread a chance to complete */
19025 /* it should remain joinable and hence detachable */
19028 status = pthread_detach( &t );
19029 if( status ) return errno;
19032 #ifdef HAVE_LINUX_THREADS
19033 pthread_kill_other_threads_np();
19042 if ac_fn_c_try_link "$LINENO"; then :
19043 ol_cv_pthread_lib_lpthreads=yes
19045 ol_cv_pthread_lib_lpthreads=no
19047 rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19053 /* pthread test headers */
19054 #include <pthread.h>
19055 #if HAVE_PTHREADS < 7
19059 #define NULL (void*)0
19062 static void *task(p)
19065 return (void *) (p == NULL);
19069 int main(argc, argv)
19074 /* pthread test function */
19075 #ifndef PTHREAD_CREATE_DETACHED
19076 #define PTHREAD_CREATE_DETACHED 1
19080 int detach = PTHREAD_CREATE_DETACHED;
19082 #if HAVE_PTHREADS > 4
19083 /* Final pthreads */
19084 pthread_attr_t attr;
19086 status = pthread_attr_init(&attr);
19087 if( status ) return status;
19089 #if HAVE_PTHREADS < 7
19090 status = pthread_attr_setdetachstate(&attr, &detach);
19091 if( status < 0 ) status = errno;
19093 status = pthread_attr_setdetachstate(&attr, detach);
19095 if( status ) return status;
19096 status = pthread_create( &t, &attr, task, NULL );
19097 #if HAVE_PTHREADS < 7
19098 if( status < 0 ) status = errno;
19100 if( status ) return status;
19102 /* Draft 4 pthreads */
19103 status = pthread_create( &t, pthread_attr_default, task, NULL );
19104 if( status ) return errno;
19106 /* give thread a chance to complete */
19107 /* it should remain joinable and hence detachable */
19110 status = pthread_detach( &t );
19111 if( status ) return errno;
19114 #ifdef HAVE_LINUX_THREADS
19115 pthread_kill_other_threads_np();
19123 if ac_fn_c_try_run "$LINENO"; then :
19124 ol_cv_pthread_lib_lpthreads=yes
19126 ol_cv_pthread_lib_lpthreads=no
19128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19129 conftest.$ac_objext conftest.beam conftest.$ac_ext
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19138 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19140 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19141 ol_link_pthreads="-lpthreads"
19142 ol_link_threads=posix
19147 if test $ol_link_threads != no ; then
19148 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19150 save_CPPFLAGS="$CPPFLAGS"
19152 LIBS="$LTHREAD_LIBS $LIBS"
19154 for ac_func in sched_yield pthread_yield thr_yield
19156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19158 eval as_val=\$$as_ac_var
19159 if test "x$as_val" = x""yes; then :
19160 cat >>confdefs.h <<_ACEOF
19161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19168 if test $ac_cv_func_sched_yield = no &&
19169 test $ac_cv_func_pthread_yield = no &&
19170 test $ac_cv_func_thr_yield = no ; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19172 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19173 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
19174 $as_echo_n "(cached) " >&6
19176 ac_check_lib_save_LIBS=$LIBS
19178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19179 /* end confdefs.h. */
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19187 char sched_yield ();
19191 return sched_yield ();
19196 if ac_fn_c_try_link "$LINENO"; then :
19197 ac_cv_lib_rt_sched_yield=yes
19199 ac_cv_lib_rt_sched_yield=no
19201 rm -f core conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext conftest.$ac_ext
19203 LIBS=$ac_check_lib_save_LIBS
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19206 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19207 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
19208 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19210 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19212 ac_cv_func_sched_yield=yes
19214 ac_cv_func_sched_yield=no
19218 if test $ac_cv_func_sched_yield = no &&
19219 test $ac_cv_func_pthread_yield = no &&
19220 test "$ac_cv_func_thr_yield" = no ; then
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19222 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19225 for ac_func in pthread_kill
19227 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19228 if test "x$ac_cv_func_pthread_kill" = x""yes; then :
19229 cat >>confdefs.h <<_ACEOF
19230 #define HAVE_PTHREAD_KILL 1
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19238 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19239 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then :
19240 $as_echo_n "(cached) " >&6
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19246 #include <pthread.h>
19247 pthread_rwlock_t rwlock;
19252 pthread_rwlock_destroy(&rwlock);
19257 if ac_fn_c_try_link "$LINENO"; then :
19258 ol_cv_func_pthread_rwlock_destroy=yes
19260 ol_cv_func_pthread_rwlock_destroy=no
19262 rm -f core conftest.err conftest.$ac_objext \
19263 conftest$ac_exeext conftest.$ac_ext
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19267 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19268 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19270 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19275 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19276 if test "${ol_cv_func_pthread_detach+set}" = set; then :
19277 $as_echo_n "(cached) " >&6
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19283 #include <pthread.h>
19285 #define NULL (void*)0
19291 pthread_detach(NULL);
19296 if ac_fn_c_try_link "$LINENO"; then :
19297 ol_cv_func_pthread_detach=yes
19299 ol_cv_func_pthread_detach=no
19301 rm -f core conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext conftest.$ac_ext
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19306 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19308 if test $ol_cv_func_pthread_detach = no ; then
19309 as_fn_error "could not locate pthread_detach()" "$LINENO" 5
19313 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19317 pthread_setconcurrency \
19318 pthread_getconcurrency \
19319 thr_setconcurrency \
19320 thr_getconcurrency \
19323 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19324 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19325 eval as_val=\$$as_ac_var
19326 if test "x$as_val" = x""yes; then :
19327 cat >>confdefs.h <<_ACEOF
19328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19336 for ac_func in pthread_kill_other_threads_np
19338 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19339 if test "x$ac_cv_func_pthread_kill_other_threads_np" = x""yes; then :
19340 cat >>confdefs.h <<_ACEOF
19341 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19348 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19349 if test "${ol_cv_sys_linux_threads+set}" = set; then :
19350 $as_echo_n "(cached) " >&6
19352 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19355 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19361 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19362 if test "${ol_cv_linux_threads+set}" = set; then :
19363 $as_echo_n "(cached) " >&6
19366 if test $ol_cv_header_linux_threads = yes &&
19367 test $ol_cv_sys_linux_threads = yes; then
19368 ol_cv_linux_threads=yes
19369 elif test $ol_cv_header_linux_threads = no &&
19370 test $ol_cv_sys_linux_threads = no; then
19371 ol_cv_linux_threads=no
19373 ol_cv_linux_threads=error
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19378 $as_echo "$ol_cv_linux_threads" >&6; }
19381 if test $ol_cv_linux_threads = error; then
19382 as_fn_error "LinuxThreads header/library mismatch" "$LINENO" 5;
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19386 $as_echo_n "checking if pthread_create() works... " >&6; }
19387 if test "${ol_cv_pthread_create_works+set}" = set; then :
19388 $as_echo_n "(cached) " >&6
19391 if test "$cross_compiling" = yes; then :
19392 ol_cv_pthread_create_works=yes
19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h. */
19397 /* pthread test headers */
19398 #include <pthread.h>
19399 #if HAVE_PTHREADS < 7
19403 #define NULL (void*)0
19406 static void *task(p)
19409 return (void *) (p == NULL);
19413 int main(argc, argv)
19418 /* pthread test function */
19419 #ifndef PTHREAD_CREATE_DETACHED
19420 #define PTHREAD_CREATE_DETACHED 1
19424 int detach = PTHREAD_CREATE_DETACHED;
19426 #if HAVE_PTHREADS > 4
19427 /* Final pthreads */
19428 pthread_attr_t attr;
19430 status = pthread_attr_init(&attr);
19431 if( status ) return status;
19433 #if HAVE_PTHREADS < 7
19434 status = pthread_attr_setdetachstate(&attr, &detach);
19435 if( status < 0 ) status = errno;
19437 status = pthread_attr_setdetachstate(&attr, detach);
19439 if( status ) return status;
19440 status = pthread_create( &t, &attr, task, NULL );
19441 #if HAVE_PTHREADS < 7
19442 if( status < 0 ) status = errno;
19444 if( status ) return status;
19446 /* Draft 4 pthreads */
19447 status = pthread_create( &t, pthread_attr_default, task, NULL );
19448 if( status ) return errno;
19450 /* give thread a chance to complete */
19451 /* it should remain joinable and hence detachable */
19454 status = pthread_detach( &t );
19455 if( status ) return errno;
19458 #ifdef HAVE_LINUX_THREADS
19459 pthread_kill_other_threads_np();
19467 if ac_fn_c_try_run "$LINENO"; then :
19468 ol_cv_pthread_create_works=yes
19470 ol_cv_pthread_create_works=no
19472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19473 conftest.$ac_objext conftest.beam conftest.$ac_ext
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19478 $as_echo "$ol_cv_pthread_create_works" >&6; }
19480 if test $ol_cv_pthread_create_works = no ; then
19481 as_fn_error "pthread_create is not usable, check environment settings" "$LINENO" 5
19484 ol_replace_broken_yield=no
19486 if test $ol_replace_broken_yield = yes ; then
19488 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19492 if test $ol_with_yielding_select = auto ; then
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19494 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19495 if test "${ol_cv_pthread_select_yields+set}" = set; then :
19496 $as_echo_n "(cached) " >&6
19499 if test "$cross_compiling" = yes; then :
19500 ol_cv_pthread_select_yields=cross
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 #include <sys/types.h>
19506 #include <sys/time.h>
19507 #include <unistd.h>
19508 #include <pthread.h>
19510 #define NULL (void*) 0
19513 static int fildes[2];
19515 static void *task(p)
19527 FD_SET(fildes[0], &rfds);
19529 /* we're not interested in any fds */
19530 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19537 exit(0); /* if we exit here, the select blocked the whole process */
19540 int main(argc, argv)
19546 /* create a pipe to select */
19547 if(pipe(&fildes[0])) {
19552 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19553 (void) pthread_setconcurrency(2);
19555 #ifdef HAVE_THR_SETCONCURRENCY
19556 /* Set Solaris LWP concurrency to 2 */
19557 thr_setconcurrency(2);
19561 #if HAVE_PTHREADS < 6
19562 pthread_create(&t, pthread_attr_default, task, NULL);
19564 pthread_create(&t, NULL, task, NULL);
19567 /* make sure task runs first */
19568 #ifdef HAVE_THR_YIELD
19570 #elif defined( HAVE_SCHED_YIELD )
19572 #elif defined( HAVE_PTHREAD_YIELD )
19579 if ac_fn_c_try_run "$LINENO"; then :
19580 ol_cv_pthread_select_yields=no
19582 ol_cv_pthread_select_yields=yes
19584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19585 conftest.$ac_objext conftest.beam conftest.$ac_ext
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19590 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19592 if test $ol_cv_pthread_select_yields = cross ; then
19593 as_fn_error "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19596 if test $ol_cv_pthread_select_yields = yes ; then
19597 ol_with_yielding_select=yes
19601 CPPFLAGS="$save_CPPFLAGS"
19604 as_fn_error "could not locate usable POSIX Threads" "$LINENO" 5
19608 if test $ol_with_threads = posix ; then
19609 as_fn_error "could not locate POSIX Threads" "$LINENO" 5
19614 case $ol_with_threads in auto | yes | mach)
19616 for ac_header in mach/cthreads.h cthreads.h
19618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19619 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19620 eval as_val=\$$as_ac_Header
19621 if test "x$as_val" = x""yes; then :
19622 cat >>confdefs.h <<_ACEOF
19623 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19630 if test $ac_cv_header_mach_cthreads_h = yes ; then
19631 ol_with_threads=found
19633 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19634 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19635 ol_link_threads=yes
19639 if test $ol_link_threads = no ; then
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19641 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19642 if test "${ol_cv_cthread_all_load+set}" = set; then :
19643 $as_echo_n "(cached) " >&6
19647 LIBS="-all_load $LIBS"
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19650 #include <mach/cthreads.h>
19655 cthread_fork((void *)0, (void *)0);
19661 if ac_fn_c_try_link "$LINENO"; then :
19662 ol_cv_cthread_all_load=yes
19664 ol_cv_cthread_all_load=no
19666 rm -f core conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19672 $as_echo "$ol_cv_cthread_all_load" >&6; }
19674 if test $ol_cv_cthread_all_load = yes ; then
19675 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19676 ol_link_threads=mach
19677 ol_with_threads=found
19681 elif test $ac_cv_header_cthreads_h = yes ; then
19683 ol_with_threads=found
19686 LIBS="$LIBS -lthreads"
19687 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19688 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19689 ol_link_threads=yes
19694 if test $ol_link_threads = yes ; then
19695 LTHREAD_LIBS="-lthreads"
19696 ol_link_threads=mach
19697 ol_with_threads=found
19699 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19702 elif test $ol_with_threads = mach ; then
19703 as_fn_error "could not locate Mach CThreads" "$LINENO" 5
19706 if test $ol_link_threads = mach ; then
19708 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19710 elif test $ol_with_threads = found ; then
19711 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19716 case $ol_with_threads in auto | yes | pth)
19718 for ac_header in pth.h
19720 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19721 if test "x$ac_cv_header_pth_h" = x""yes; then :
19722 cat >>confdefs.h <<_ACEOF
19723 #define HAVE_PTH_H 1
19731 if test $ac_cv_header_pth_h = yes ; then
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19733 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19734 if test "${ac_cv_lib_pth_pth_version+set}" = set; then :
19735 $as_echo_n "(cached) " >&6
19737 ac_check_lib_save_LIBS=$LIBS
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19742 /* Override any GCC internal prototype to avoid an error.
19743 Use char because int might match the return type of a GCC
19744 builtin and then its argument prototype would still apply. */
19748 char pth_version ();
19752 return pth_version ();
19757 if ac_fn_c_try_link "$LINENO"; then :
19758 ac_cv_lib_pth_pth_version=yes
19760 ac_cv_lib_pth_pth_version=no
19762 rm -f core conftest.err conftest.$ac_objext \
19763 conftest$ac_exeext conftest.$ac_ext
19764 LIBS=$ac_check_lib_save_LIBS
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19767 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19768 if test "x$ac_cv_lib_pth_pth_version" = x""yes; then :
19775 if test $have_pth = yes ; then
19777 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19779 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19780 ol_link_threads=pth
19781 ol_with_threads=found
19783 if test $ol_with_yielding_select = auto ; then
19784 ol_with_yielding_select=yes
19791 case $ol_with_threads in auto | yes | lwp)
19793 for ac_header in thread.h synch.h
19795 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19796 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19797 eval as_val=\$$as_ac_Header
19798 if test "x$as_val" = x""yes; then :
19799 cat >>confdefs.h <<_ACEOF
19800 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19807 if test $ac_cv_header_thread_h = yes &&
19808 test $ac_cv_header_synch_h = yes ; then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19810 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19811 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
19812 $as_echo_n "(cached) " >&6
19814 ac_check_lib_save_LIBS=$LIBS
19815 LIBS="-lthread $LIBS"
19816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19817 /* end confdefs.h. */
19819 /* Override any GCC internal prototype to avoid an error.
19820 Use char because int might match the return type of a GCC
19821 builtin and then its argument prototype would still apply. */
19825 char thr_create ();
19829 return thr_create ();
19834 if ac_fn_c_try_link "$LINENO"; then :
19835 ac_cv_lib_thread_thr_create=yes
19837 ac_cv_lib_thread_thr_create=no
19839 rm -f core conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841 LIBS=$ac_check_lib_save_LIBS
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19844 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19845 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
19852 if test $have_thr = yes ; then
19854 $as_echo "#define HAVE_THR 1" >>confdefs.h
19856 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19857 ol_link_threads=thr
19859 if test $ol_with_yielding_select = auto ; then
19860 ol_with_yielding_select=yes
19864 thr_setconcurrency \
19865 thr_getconcurrency \
19868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19870 eval as_val=\$$as_ac_var
19871 if test "x$as_val" = x""yes; then :
19872 cat >>confdefs.h <<_ACEOF
19873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19884 if test $ol_with_yielding_select = yes ; then
19886 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19890 if test $ol_with_threads = manual ; then
19891 ol_link_threads=yes
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19894 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19896 for ac_header in pthread.h sched.h
19898 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19900 eval as_val=\$$as_ac_Header
19901 if test "x$as_val" = x""yes; then :
19902 cat >>confdefs.h <<_ACEOF
19903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19910 for ac_func in sched_yield pthread_yield
19912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19914 eval as_val=\$$as_ac_var
19915 if test "x$as_val" = x""yes; then :
19916 cat >>confdefs.h <<_ACEOF
19917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19925 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19926 if test "${ol_cv_header_linux_threads+set}" = set; then :
19927 $as_echo_n "(cached) " >&6
19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h. */
19931 #include <pthread.h>
19933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19934 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19935 ol_cv_header_linux_threads=yes
19937 ol_cv_header_linux_threads=no
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19944 $as_echo "$ol_cv_header_linux_threads" >&6; }
19945 if test $ol_cv_header_linux_threads = yes; then
19947 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19952 for ac_header in mach/cthreads.h
19954 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19955 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_MACH_CTHREADS_H 1
19964 for ac_header in thread.h synch.h
19966 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19967 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19968 eval as_val=\$$as_ac_Header
19969 if test "x$as_val" = x""yes; then :
19970 cat >>confdefs.h <<_ACEOF
19971 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19980 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19981 $as_echo "#define REENTRANT 1" >>confdefs.h
19983 $as_echo "#define _REENTRANT 1" >>confdefs.h
19985 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19987 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19989 $as_echo "#define THREADSAFE 1" >>confdefs.h
19991 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19993 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19997 $as_echo_n "checking for thread specific errno... " >&6; }
19998 if test "${ol_cv_errno_thread_specific+set}" = set; then :
19999 $as_echo_n "(cached) " >&6
20002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003 /* end confdefs.h. */
20013 if ac_fn_c_try_link "$LINENO"; then :
20014 ol_cv_errno_thread_specific=yes
20016 ol_cv_errno_thread_specific=no
20018 rm -f core conftest.err conftest.$ac_objext \
20019 conftest$ac_exeext conftest.$ac_ext
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
20023 $as_echo "$ol_cv_errno_thread_specific" >&6; }
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
20026 $as_echo_n "checking for thread specific h_errno... " >&6; }
20027 if test "${ol_cv_h_errno_thread_specific+set}" = set; then :
20028 $as_echo_n "(cached) " >&6
20031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20032 /* end confdefs.h. */
20042 if ac_fn_c_try_link "$LINENO"; then :
20043 ol_cv_h_errno_thread_specific=yes
20045 ol_cv_h_errno_thread_specific=no
20047 rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
20052 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
20054 if test $ol_cv_errno_thread_specific != yes ||
20055 test $ol_cv_h_errno_thread_specific != yes ; then
20056 LIBS="$LTHREAD_LIBS $LIBS"
20062 if test $ol_link_threads = no ; then
20063 if test $ol_with_threads = yes ; then
20064 as_fn_error "no suitable thread support" "$LINENO" 5
20067 if test $ol_with_threads = auto ; then
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
20069 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
20074 $as_echo "#define NO_THREADS 1" >>confdefs.h
20082 if test $ol_link_threads != no ; then
20084 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
20090 gmtime_r localtime_r \
20091 gethostbyname_r gethostbyaddr_r \
20094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20096 eval as_val=\$$as_ac_var
20097 if test "x$as_val" = x""yes; then :
20098 cat >>confdefs.h <<_ACEOF
20099 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20106 if test "$ac_cv_func_ctime_r" = no ; then
20107 ol_cv_func_ctime_r_nargs=0
20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20110 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20111 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then :
20112 $as_echo_n "(cached) " >&6
20114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20115 /* end confdefs.h. */
20120 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20125 if ac_fn_c_try_compile "$LINENO"; then :
20126 ol_cv_func_ctime_r_nargs3=yes
20128 ol_cv_func_ctime_r_nargs3=no
20130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133 /* end confdefs.h. */
20138 time_t ti; char *buffer; ctime_r(&ti,buffer);
20143 if ac_fn_c_try_compile "$LINENO"; then :
20144 ol_cv_func_ctime_r_nargs2=yes
20146 ol_cv_func_ctime_r_nargs2=no
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20151 test $ol_cv_func_ctime_r_nargs2 = no ; then
20153 ol_cv_func_ctime_r_nargs=3
20155 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20156 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20158 ol_cv_func_ctime_r_nargs=2
20161 ol_cv_func_ctime_r_nargs=0
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20166 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20168 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20170 cat >>confdefs.h <<_ACEOF
20171 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20178 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20180 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20181 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then :
20182 $as_echo_n "(cached) " >&6
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20186 #include <sys/types.h>
20187 #include <sys/socket.h>
20188 #include <netinet/in.h>
20190 #define BUFSIZE (sizeof(struct hostent)+10)
20194 struct hostent hent; char buffer[BUFSIZE];
20195 int bufsize=BUFSIZE;int h_errno;
20196 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20197 buffer, bufsize, &h_errno);
20202 if ac_fn_c_try_compile "$LINENO"; then :
20203 ol_cv_func_gethostbyname_r_nargs5=yes
20205 ol_cv_func_gethostbyname_r_nargs5=no
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20211 #include <sys/types.h>
20212 #include <sys/socket.h>
20213 #include <netinet/in.h>
20215 #define BUFSIZE (sizeof(struct hostent)+10)
20219 struct hostent hent;struct hostent *rhent;
20220 char buffer[BUFSIZE];
20221 int bufsize=BUFSIZE;int h_errno;
20222 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20228 if ac_fn_c_try_compile "$LINENO"; then :
20229 ol_cv_func_gethostbyname_r_nargs6=yes
20231 ol_cv_func_gethostbyname_r_nargs6=no
20233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20236 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20238 ol_cv_func_gethostbyname_r_nargs=5
20240 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20241 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20243 ol_cv_func_gethostbyname_r_nargs=6
20246 ol_cv_func_gethostbyname_r_nargs=0
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20251 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20252 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20254 cat >>confdefs.h <<_ACEOF
20255 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20261 ol_cv_func_gethostbyname_r_nargs=0
20264 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20266 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20267 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then :
20268 $as_echo_n "(cached) " >&6
20270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20271 /* end confdefs.h. */
20272 #include <sys/types.h>
20273 #include <sys/socket.h>
20274 #include <netinet/in.h>
20276 #define BUFSIZE (sizeof(struct hostent)+10)
20280 struct hostent hent; char buffer[BUFSIZE];
20281 struct in_addr add;
20282 size_t alen=sizeof(struct in_addr);
20283 int bufsize=BUFSIZE;int h_errno;
20284 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20285 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20290 if ac_fn_c_try_compile "$LINENO"; then :
20291 ol_cv_func_gethostbyaddr_r_nargs7=yes
20293 ol_cv_func_gethostbyaddr_r_nargs7=no
20295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20298 /* end confdefs.h. */
20299 #include <sys/types.h>
20300 #include <sys/socket.h>
20301 #include <netinet/in.h>
20303 #define BUFSIZE (sizeof(struct hostent)+10)
20307 struct hostent hent;
20308 struct hostent *rhent; char buffer[BUFSIZE];
20309 struct in_addr add;
20310 size_t alen=sizeof(struct in_addr);
20311 int bufsize=BUFSIZE;int h_errno;
20312 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20313 alen, AF_INET, &hent, buffer, bufsize,
20319 if ac_fn_c_try_compile "$LINENO"; then :
20320 ol_cv_func_gethostbyaddr_r_nargs8=yes
20322 ol_cv_func_gethostbyaddr_r_nargs8=no
20324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20326 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20327 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20329 ol_cv_func_gethostbyaddr_r_nargs=7
20331 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20332 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20334 ol_cv_func_gethostbyaddr_r_nargs=8
20337 ol_cv_func_gethostbyaddr_r_nargs=0
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20342 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20343 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20345 cat >>confdefs.h <<_ACEOF
20346 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20352 ol_cv_func_gethostbyaddr_r_nargs=0
20357 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20358 ol_cv_berkeley_db=no
20359 for ac_header in db.h
20361 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20362 if test "x$ac_cv_header_db_h" = x""yes; then :
20363 cat >>confdefs.h <<_ACEOF
20364 #define HAVE_DB_H 1
20371 if test $ac_cv_header_db_h = yes; then
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20373 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20374 if test "${ol_cv_bdb_major+set}" = set; then :
20375 $as_echo_n "(cached) " >&6
20378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20379 /* end confdefs.h. */
20382 #ifndef DB_VERSION_MAJOR
20383 # define DB_VERSION_MAJOR 1
20385 __db_version DB_VERSION_MAJOR
20388 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20389 ol_cv_bdb_major=${3}
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20393 $as_echo "$ol_cv_bdb_major" >&6; }
20394 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20395 as_fn_error "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20399 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20400 if test "${ol_cv_bdb_minor+set}" = set; then :
20401 $as_echo_n "(cached) " >&6
20404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20405 /* end confdefs.h. */
20408 #ifndef DB_VERSION_MINOR
20409 # define DB_VERSION_MINOR 0
20411 __db_version DB_VERSION_MINOR
20414 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20415 ol_cv_bdb_minor=${3}
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20419 $as_echo "$ol_cv_bdb_minor" >&6; }
20420 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20421 as_fn_error "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20425 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20426 if test "${ol_cv_bdb_compat+set}" = set; then :
20427 $as_echo_n "(cached) " >&6
20430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20431 /* end confdefs.h. */
20435 /* this check could be improved */
20436 #ifndef DB_VERSION_MAJOR
20437 # define DB_VERSION_MAJOR 1
20439 #ifndef DB_VERSION_MINOR
20440 # define DB_VERSION_MINOR 0
20442 #ifndef DB_VERSION_PATCH
20443 # define DB_VERSION_PATCH 0
20446 #define DB_VERSION_FULL ((DB_VERSION_MAJOR<<16)|(DB_VERSION_MINOR<<8)|DB_VERSION_PATCH)
20448 /* require 4.4 or later, but less than 6.0.20 */
20449 #if DB_VERSION_FULL >= 0x040400 && DB_VERSION_FULL < 0x060014
20450 __db_version_compat
20452 #if DB_VERSION_FULL >= 0x060014
20453 #error "BerkeleyDB 6.0.20+ license is incompatible with LDAP"
20457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20458 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20459 ol_cv_bdb_compat=yes
20461 ol_cv_bdb_compat=no
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20467 $as_echo "$ol_cv_bdb_compat" >&6; }
20470 if test $ol_cv_bdb_compat != yes ; then
20471 as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20476 if test $ol_cv_bdb_major = 5 ; then
20477 if test $ol_cv_lib_db = no ; then
20478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20479 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20480 if test "${ol_cv_db_db_5_dot_m+set}" = set; then :
20481 $as_echo_n "(cached) " >&6
20484 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20486 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20491 #ifdef HAVE_DB_185_H
20492 # include <db_185.h>
20497 #ifndef DB_VERSION_MAJOR
20498 # define DB_VERSION_MAJOR 1
20502 #define NULL ((void*)0)
20509 #if DB_VERSION_MAJOR > 2
20510 db_env_create( NULL, 0 );
20511 #elif DB_VERSION_MAJOR > 1
20512 db_appexit( NULL );
20514 (void) dbopen( NULL, 0, 0, 0, NULL);
20521 if ac_fn_c_try_link "$LINENO"; then :
20522 ol_cv_db_db_5_dot_m=yes
20524 ol_cv_db_db_5_dot_m=no
20526 rm -f core conftest.err conftest.$ac_objext \
20527 conftest$ac_exeext conftest.$ac_ext
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20533 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20535 if test $ol_cv_db_db_5_dot_m = yes ; then
20536 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20540 if test $ol_cv_lib_db = no ; then
20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20542 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20543 if test "${ol_cv_db_db5m+set}" = set; then :
20544 $as_echo_n "(cached) " >&6
20547 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20549 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552 /* end confdefs.h. */
20554 #ifdef HAVE_DB_185_H
20555 # include <db_185.h>
20560 #ifndef DB_VERSION_MAJOR
20561 # define DB_VERSION_MAJOR 1
20565 #define NULL ((void*)0)
20572 #if DB_VERSION_MAJOR > 2
20573 db_env_create( NULL, 0 );
20574 #elif DB_VERSION_MAJOR > 1
20575 db_appexit( NULL );
20577 (void) dbopen( NULL, 0, 0, 0, NULL);
20584 if ac_fn_c_try_link "$LINENO"; then :
20589 rm -f core conftest.err conftest.$ac_objext \
20590 conftest$ac_exeext conftest.$ac_ext
20595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20596 $as_echo "$ol_cv_db_db5m" >&6; }
20598 if test $ol_cv_db_db5m = yes ; then
20599 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20603 if test $ol_cv_lib_db = no ; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20605 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20606 if test "${ol_cv_db_db_5m+set}" = set; then :
20607 $as_echo_n "(cached) " >&6
20610 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20612 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615 /* end confdefs.h. */
20617 #ifdef HAVE_DB_185_H
20618 # include <db_185.h>
20623 #ifndef DB_VERSION_MAJOR
20624 # define DB_VERSION_MAJOR 1
20628 #define NULL ((void*)0)
20635 #if DB_VERSION_MAJOR > 2
20636 db_env_create( NULL, 0 );
20637 #elif DB_VERSION_MAJOR > 1
20638 db_appexit( NULL );
20640 (void) dbopen( NULL, 0, 0, 0, NULL);
20647 if ac_fn_c_try_link "$LINENO"; then :
20652 rm -f core conftest.err conftest.$ac_objext \
20653 conftest$ac_exeext conftest.$ac_ext
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20659 $as_echo "$ol_cv_db_db_5m" >&6; }
20661 if test $ol_cv_db_db_5m = yes ; then
20662 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20666 if test $ol_cv_lib_db = no ; then
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20668 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20669 if test "${ol_cv_db_db_5_m+set}" = set; then :
20670 $as_echo_n "(cached) " >&6
20673 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20675 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20678 /* end confdefs.h. */
20680 #ifdef HAVE_DB_185_H
20681 # include <db_185.h>
20686 #ifndef DB_VERSION_MAJOR
20687 # define DB_VERSION_MAJOR 1
20691 #define NULL ((void*)0)
20698 #if DB_VERSION_MAJOR > 2
20699 db_env_create( NULL, 0 );
20700 #elif DB_VERSION_MAJOR > 1
20701 db_appexit( NULL );
20703 (void) dbopen( NULL, 0, 0, 0, NULL);
20710 if ac_fn_c_try_link "$LINENO"; then :
20711 ol_cv_db_db_5_m=yes
20715 rm -f core conftest.err conftest.$ac_objext \
20716 conftest$ac_exeext conftest.$ac_ext
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20722 $as_echo "$ol_cv_db_db_5_m" >&6; }
20724 if test $ol_cv_db_db_5_m = yes ; then
20725 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20729 if test $ol_cv_lib_db = no ; then
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20731 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20732 if test "${ol_cv_db_db_5+set}" = set; then :
20733 $as_echo_n "(cached) " >&6
20738 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741 /* end confdefs.h. */
20743 #ifdef HAVE_DB_185_H
20744 # include <db_185.h>
20749 #ifndef DB_VERSION_MAJOR
20750 # define DB_VERSION_MAJOR 1
20754 #define NULL ((void*)0)
20761 #if DB_VERSION_MAJOR > 2
20762 db_env_create( NULL, 0 );
20763 #elif DB_VERSION_MAJOR > 1
20764 db_appexit( NULL );
20766 (void) dbopen( NULL, 0, 0, 0, NULL);
20773 if ac_fn_c_try_link "$LINENO"; then :
20778 rm -f core conftest.err conftest.$ac_objext \
20779 conftest$ac_exeext conftest.$ac_ext
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20785 $as_echo "$ol_cv_db_db_5" >&6; }
20787 if test $ol_cv_db_db_5 = yes ; then
20788 ol_cv_lib_db=-ldb-5
20792 if test $ol_cv_lib_db = no ; then
20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20794 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20795 if test "${ol_cv_db_db5+set}" = set; then :
20796 $as_echo_n "(cached) " >&6
20801 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20804 /* end confdefs.h. */
20806 #ifdef HAVE_DB_185_H
20807 # include <db_185.h>
20812 #ifndef DB_VERSION_MAJOR
20813 # define DB_VERSION_MAJOR 1
20817 #define NULL ((void*)0)
20824 #if DB_VERSION_MAJOR > 2
20825 db_env_create( NULL, 0 );
20826 #elif DB_VERSION_MAJOR > 1
20827 db_appexit( NULL );
20829 (void) dbopen( NULL, 0, 0, 0, NULL);
20836 if ac_fn_c_try_link "$LINENO"; then :
20841 rm -f core conftest.err conftest.$ac_objext \
20842 conftest$ac_exeext conftest.$ac_ext
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20848 $as_echo "$ol_cv_db_db5" >&6; }
20850 if test $ol_cv_db_db5 = yes ; then
20855 elif test $ol_cv_bdb_major = 4 ; then
20856 if test $ol_cv_lib_db = no ; then
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20858 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20859 if test "${ol_cv_db_db_4_dot_m+set}" = set; then :
20860 $as_echo_n "(cached) " >&6
20863 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20865 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20870 #ifdef HAVE_DB_185_H
20871 # include <db_185.h>
20876 #ifndef DB_VERSION_MAJOR
20877 # define DB_VERSION_MAJOR 1
20881 #define NULL ((void*)0)
20888 #if DB_VERSION_MAJOR > 2
20889 db_env_create( NULL, 0 );
20890 #elif DB_VERSION_MAJOR > 1
20891 db_appexit( NULL );
20893 (void) dbopen( NULL, 0, 0, 0, NULL);
20900 if ac_fn_c_try_link "$LINENO"; then :
20901 ol_cv_db_db_4_dot_m=yes
20903 ol_cv_db_db_4_dot_m=no
20905 rm -f core conftest.err conftest.$ac_objext \
20906 conftest$ac_exeext conftest.$ac_ext
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20912 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20914 if test $ol_cv_db_db_4_dot_m = yes ; then
20915 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20919 if test $ol_cv_lib_db = no ; then
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20921 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20922 if test "${ol_cv_db_db4m+set}" = set; then :
20923 $as_echo_n "(cached) " >&6
20926 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20928 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931 /* end confdefs.h. */
20933 #ifdef HAVE_DB_185_H
20934 # include <db_185.h>
20939 #ifndef DB_VERSION_MAJOR
20940 # define DB_VERSION_MAJOR 1
20944 #define NULL ((void*)0)
20951 #if DB_VERSION_MAJOR > 2
20952 db_env_create( NULL, 0 );
20953 #elif DB_VERSION_MAJOR > 1
20954 db_appexit( NULL );
20956 (void) dbopen( NULL, 0, 0, 0, NULL);
20963 if ac_fn_c_try_link "$LINENO"; then :
20968 rm -f core conftest.err conftest.$ac_objext \
20969 conftest$ac_exeext conftest.$ac_ext
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20975 $as_echo "$ol_cv_db_db4m" >&6; }
20977 if test $ol_cv_db_db4m = yes ; then
20978 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20982 if test $ol_cv_lib_db = no ; then
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20984 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20985 if test "${ol_cv_db_db_4m+set}" = set; then :
20986 $as_echo_n "(cached) " >&6
20989 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20991 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h. */
20996 #ifdef HAVE_DB_185_H
20997 # include <db_185.h>
21002 #ifndef DB_VERSION_MAJOR
21003 # define DB_VERSION_MAJOR 1
21007 #define NULL ((void*)0)
21014 #if DB_VERSION_MAJOR > 2
21015 db_env_create( NULL, 0 );
21016 #elif DB_VERSION_MAJOR > 1
21017 db_appexit( NULL );
21019 (void) dbopen( NULL, 0, 0, 0, NULL);
21026 if ac_fn_c_try_link "$LINENO"; then :
21031 rm -f core conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
21038 $as_echo "$ol_cv_db_db_4m" >&6; }
21040 if test $ol_cv_db_db_4m = yes ; then
21041 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
21045 if test $ol_cv_lib_db = no ; then
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
21047 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
21048 if test "${ol_cv_db_db_4_m+set}" = set; then :
21049 $as_echo_n "(cached) " >&6
21052 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
21054 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21057 /* end confdefs.h. */
21059 #ifdef HAVE_DB_185_H
21060 # include <db_185.h>
21065 #ifndef DB_VERSION_MAJOR
21066 # define DB_VERSION_MAJOR 1
21070 #define NULL ((void*)0)
21077 #if DB_VERSION_MAJOR > 2
21078 db_env_create( NULL, 0 );
21079 #elif DB_VERSION_MAJOR > 1
21080 db_appexit( NULL );
21082 (void) dbopen( NULL, 0, 0, 0, NULL);
21089 if ac_fn_c_try_link "$LINENO"; then :
21090 ol_cv_db_db_4_m=yes
21094 rm -f core conftest.err conftest.$ac_objext \
21095 conftest$ac_exeext conftest.$ac_ext
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21101 $as_echo "$ol_cv_db_db_4_m" >&6; }
21103 if test $ol_cv_db_db_4_m = yes ; then
21104 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21108 if test $ol_cv_lib_db = no ; then
21109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21110 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21111 if test "${ol_cv_db_db_4+set}" = set; then :
21112 $as_echo_n "(cached) " >&6
21117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21120 /* end confdefs.h. */
21122 #ifdef HAVE_DB_185_H
21123 # include <db_185.h>
21128 #ifndef DB_VERSION_MAJOR
21129 # define DB_VERSION_MAJOR 1
21133 #define NULL ((void*)0)
21140 #if DB_VERSION_MAJOR > 2
21141 db_env_create( NULL, 0 );
21142 #elif DB_VERSION_MAJOR > 1
21143 db_appexit( NULL );
21145 (void) dbopen( NULL, 0, 0, 0, NULL);
21152 if ac_fn_c_try_link "$LINENO"; then :
21157 rm -f core conftest.err conftest.$ac_objext \
21158 conftest$ac_exeext conftest.$ac_ext
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21164 $as_echo "$ol_cv_db_db_4" >&6; }
21166 if test $ol_cv_db_db_4 = yes ; then
21167 ol_cv_lib_db=-ldb-4
21171 if test $ol_cv_lib_db = no ; then
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21173 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21174 if test "${ol_cv_db_db4+set}" = set; then :
21175 $as_echo_n "(cached) " >&6
21180 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h. */
21185 #ifdef HAVE_DB_185_H
21186 # include <db_185.h>
21191 #ifndef DB_VERSION_MAJOR
21192 # define DB_VERSION_MAJOR 1
21196 #define NULL ((void*)0)
21203 #if DB_VERSION_MAJOR > 2
21204 db_env_create( NULL, 0 );
21205 #elif DB_VERSION_MAJOR > 1
21206 db_appexit( NULL );
21208 (void) dbopen( NULL, 0, 0, 0, NULL);
21215 if ac_fn_c_try_link "$LINENO"; then :
21220 rm -f core conftest.err conftest.$ac_objext \
21221 conftest$ac_exeext conftest.$ac_ext
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21227 $as_echo "$ol_cv_db_db4" >&6; }
21229 if test $ol_cv_db_db4 = yes ; then
21235 if test $ol_cv_lib_db = no ; then
21236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21237 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21238 if test "${ol_cv_db_db+set}" = set; then :
21239 $as_echo_n "(cached) " >&6
21244 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h. */
21249 #ifdef HAVE_DB_185_H
21250 # include <db_185.h>
21255 #ifndef DB_VERSION_MAJOR
21256 # define DB_VERSION_MAJOR 1
21260 #define NULL ((void*)0)
21267 #if DB_VERSION_MAJOR > 2
21268 db_env_create( NULL, 0 );
21269 #elif DB_VERSION_MAJOR > 1
21270 db_appexit( NULL );
21272 (void) dbopen( NULL, 0, 0, 0, NULL);
21279 if ac_fn_c_try_link "$LINENO"; then :
21284 rm -f core conftest.err conftest.$ac_objext \
21285 conftest$ac_exeext conftest.$ac_ext
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21291 $as_echo "$ol_cv_db_db" >&6; }
21293 if test $ol_cv_db_db = yes ; then
21298 if test $ol_cv_lib_db = no ; then
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21300 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21301 if test "${ol_cv_db_none+set}" = set; then :
21302 $as_echo_n "(cached) " >&6
21307 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21310 /* end confdefs.h. */
21312 #ifdef HAVE_DB_185_H
21313 # include <db_185.h>
21318 #ifndef DB_VERSION_MAJOR
21319 # define DB_VERSION_MAJOR 1
21323 #define NULL ((void*)0)
21330 #if DB_VERSION_MAJOR > 2
21331 db_env_create( NULL, 0 );
21332 #elif DB_VERSION_MAJOR > 1
21333 db_appexit( NULL );
21335 (void) dbopen( NULL, 0, 0, 0, NULL);
21342 if ac_fn_c_try_link "$LINENO"; then :
21347 rm -f core conftest.err conftest.$ac_objext \
21348 conftest$ac_exeext conftest.$ac_ext
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21354 $as_echo "$ol_cv_db_none" >&6; }
21356 if test $ol_cv_db_none = yes ; then
21362 if test "$ol_cv_lib_db" != no ; then
21363 ol_cv_berkeley_db=yes
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21365 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21366 if test "${ol_cv_berkeley_db_version+set}" = set; then :
21367 $as_echo_n "(cached) " >&6
21371 LIBS="$LTHREAD_LIBS $LIBS"
21372 if test $ol_cv_lib_db != yes ; then
21373 LIBS="$ol_cv_lib_db $LIBS"
21376 if test "$cross_compiling" = yes; then :
21377 ol_cv_berkeley_db_version=cross
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21382 #ifdef HAVE_DB_185_H
21387 #ifndef DB_VERSION_MAJOR
21388 # define DB_VERSION_MAJOR 1
21391 #define NULL ((void *)0)
21395 #if DB_VERSION_MAJOR > 1
21397 int major, minor, patch;
21399 version = db_version( &major, &minor, &patch );
21401 if( major != DB_VERSION_MAJOR ||
21402 minor != DB_VERSION_MINOR ||
21403 patch != DB_VERSION_PATCH )
21405 printf("Berkeley DB version mismatch\n"
21406 "\theader: %s\n\tlibrary: %s\n",
21407 DB_VERSION_STRING, version);
21415 if ac_fn_c_try_run "$LINENO"; then :
21416 ol_cv_berkeley_db_version=yes
21418 ol_cv_berkeley_db_version=no
21420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21421 conftest.$ac_objext conftest.beam conftest.$ac_ext
21428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21429 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21431 if test $ol_cv_berkeley_db_version = no ; then
21432 as_fn_error "Berkeley DB version mismatch" "$LINENO" 5
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21436 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21437 if test "${ol_cv_berkeley_db_thread+set}" = set; then :
21438 $as_echo_n "(cached) " >&6
21442 LIBS="$LTHREAD_LIBS $LIBS"
21443 if test $ol_cv_lib_db != yes ; then
21444 LIBS="$ol_cv_lib_db $LIBS"
21447 if test "$cross_compiling" = yes; then :
21448 ol_cv_berkeley_db_thread=cross
21450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21451 /* end confdefs.h. */
21453 #ifdef HAVE_DB_185_H
21459 #define NULL ((void *)0)
21464 u_int32_t flags = DB_CREATE |
21470 #if DB_VERSION_MAJOR > 2
21471 DB_ENV *env = NULL;
21473 rc = db_env_create( &env, 0 );
21475 flags |= DB_INIT_MPOOL;
21476 #ifdef DB_MPOOL_PRIVATE
21477 flags |= DB_MPOOL_PRIVATE;
21481 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21485 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21486 rc = (env->open)( env, NULL, flags, 0 );
21488 rc = (env->open)( env, NULL, NULL, flags, 0 );
21492 rc = env->close( env, 0 );
21496 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21502 memset( &env, '\0', sizeof(env) );
21504 rc = db_appinit( NULL, NULL, &env, flags );
21507 db_appexit( &env );
21510 unlink("__db_mpool.share");
21511 unlink("__db_lock.share");
21517 if ac_fn_c_try_run "$LINENO"; then :
21518 ol_cv_berkeley_db_thread=yes
21520 ol_cv_berkeley_db_thread=no
21522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21523 conftest.$ac_objext conftest.beam conftest.$ac_ext
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21531 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21533 if test $ol_cv_berkeley_db_thread != no ; then
21535 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21543 if test $ol_cv_berkeley_db = no ; then
21544 as_fn_error "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21548 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21551 if test $ol_cv_lib_db != yes ; then
21552 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21555 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21561 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21562 BUILD_LIBS_DYNAMIC=shared
21564 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21568 BUILD_LIBS_DYNAMIC=static
21572 if test $ol_enable_wrappers != no ; then
21573 for ac_header in tcpd.h
21575 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21576 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
21577 cat >>confdefs.h <<_ACEOF
21578 #define HAVE_TCPD_H 1
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21582 $as_echo_n "checking for TCP wrappers library... " >&6; }
21584 LIBS="$LIBS -lwrap"
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21589 int allow_severity = 0;
21590 int deny_severity = 0;
21592 struct request_info *req;
21604 if ac_fn_c_try_link "$LINENO"; then :
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21606 $as_echo "-lwrap" >&6; }
21612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21613 /* end confdefs.h. */
21616 int allow_severity = 0;
21617 int deny_severity = 0;
21619 struct request_info *req;
21631 if ac_fn_c_try_link "$LINENO"; then :
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21633 $as_echo "-lwrap -lnsl" >&6; }
21635 LIBS="$save_LIBS -lnsl"
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21639 $as_echo "no" >&6; }
21643 rm -f core conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21646 rm -f core conftest.err conftest.$ac_objext \
21647 conftest$ac_exeext conftest.$ac_ext
21655 if test $have_wrappers = yes ; then
21657 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21660 elif test $ol_enable_wrappers = yes ; then
21661 as_fn_error "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21664 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21669 if test $ol_enable_syslog != no ; then
21670 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21671 if test "x$ac_cv_func_openlog" = x""yes; then :
21675 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21676 { as_fn_set_status select appropriate options or disable
21677 as_fn_error "could not find syslog" "$LINENO" 5; }
21679 ol_enable_syslog=$ac_cv_func_openlog
21683 if test $ol_enable_sql != no ; then
21684 for ac_header in sql.h sqlext.h
21686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21687 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21688 eval as_val=\$$as_ac_Header
21689 if test "x$as_val" = x""yes; then :
21690 cat >>confdefs.h <<_ACEOF
21691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21696 as_fn_error "could not locate SQL headers" "$LINENO" 5
21704 LIBS="$LTHREAD_LIBS $LIBS"
21706 if test $ol_with_odbc = auto ; then
21707 ol_with_odbc="iodbc unixodbc odbc32"
21710 for odbc in $ol_with_odbc ; do
21711 if test $ol_link_sql = no ; then
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21715 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21716 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then :
21717 $as_echo_n "(cached) " >&6
21719 ac_check_lib_save_LIBS=$LIBS
21720 LIBS="-liodbc $LIBS"
21721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h. */
21724 /* Override any GCC internal prototype to avoid an error.
21725 Use char because int might match the return type of a GCC
21726 builtin and then its argument prototype would still apply. */
21730 char SQLDriverConnect ();
21734 return SQLDriverConnect ();
21739 if ac_fn_c_try_link "$LINENO"; then :
21740 ac_cv_lib_iodbc_SQLDriverConnect=yes
21742 ac_cv_lib_iodbc_SQLDriverConnect=no
21744 rm -f core conftest.err conftest.$ac_objext \
21745 conftest$ac_exeext conftest.$ac_ext
21746 LIBS=$ac_check_lib_save_LIBS
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21749 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21750 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = x""yes; then :
21756 if test $have_iodbc = yes ; then
21757 ol_link_sql="-liodbc"
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21763 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21764 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then :
21765 $as_echo_n "(cached) " >&6
21767 ac_check_lib_save_LIBS=$LIBS
21768 LIBS="-lodbc $LIBS"
21769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21770 /* end confdefs.h. */
21772 /* Override any GCC internal prototype to avoid an error.
21773 Use char because int might match the return type of a GCC
21774 builtin and then its argument prototype would still apply. */
21778 char SQLDriverConnect ();
21782 return SQLDriverConnect ();
21787 if ac_fn_c_try_link "$LINENO"; then :
21788 ac_cv_lib_odbc_SQLDriverConnect=yes
21790 ac_cv_lib_odbc_SQLDriverConnect=no
21792 rm -f core conftest.err conftest.$ac_objext \
21793 conftest$ac_exeext conftest.$ac_ext
21794 LIBS=$ac_check_lib_save_LIBS
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21797 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21798 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = x""yes; then :
21804 if test $have_odbc = yes ; then
21805 ol_link_sql="-lodbc"
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21811 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21812 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then :
21813 $as_echo_n "(cached) " >&6
21815 ac_check_lib_save_LIBS=$LIBS
21816 LIBS="-lodbc32 $LIBS"
21817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21818 /* end confdefs.h. */
21820 /* Override any GCC internal prototype to avoid an error.
21821 Use char because int might match the return type of a GCC
21822 builtin and then its argument prototype would still apply. */
21826 char SQLDriverConnect ();
21830 return SQLDriverConnect ();
21835 if ac_fn_c_try_link "$LINENO"; then :
21836 ac_cv_lib_odbc32_SQLDriverConnect=yes
21838 ac_cv_lib_odbc32_SQLDriverConnect=no
21840 rm -f core conftest.err conftest.$ac_objext \
21841 conftest$ac_exeext conftest.$ac_ext
21842 LIBS=$ac_check_lib_save_LIBS
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21845 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21846 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = x""yes; then :
21853 if test $have_odbc32 = no ; then
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21855 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21857 LIBS="$LIBS -lodbc32"
21858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21859 /* end confdefs.h. */
21860 #include <windows.h>
21861 #include <sqlext.h>
21867 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21873 if ac_fn_c_try_link "$LINENO"; then :
21878 rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21882 $as_echo "$have_odbc32" >&6; }
21885 if test $have_odbc32 = yes ; then
21886 ol_link_sql="-lodbc32"
21891 as_fn_error "unknown ODBC library" "$LINENO" 5
21899 if test $ol_link_sql != no ; then
21900 SLAPD_SQL_LIBS="$ol_link_sql"
21902 elif test $ol_enable_sql != auto ; then
21903 as_fn_error "could not locate suitable ODBC library" "$LINENO" 5
21908 if test $ol_enable_ndb != no ; then
21909 # Extract the first word of "mysql_config", so it can be a program name with args.
21910 set dummy mysql_config; ac_word=$2
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21912 $as_echo_n "checking for $ac_word... " >&6; }
21913 if test "${ac_cv_prog_MYSQL+set}" = set; then :
21914 $as_echo_n "(cached) " >&6
21916 if test -n "$MYSQL"; then
21917 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21920 for as_dir in $PATH
21923 test -z "$as_dir" && as_dir=.
21924 for ac_exec_ext in '' $ac_executable_extensions; do
21925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21926 ac_cv_prog_MYSQL="yes"
21927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21936 MYSQL=$ac_cv_prog_MYSQL
21937 if test -n "$MYSQL"; then
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21939 $as_echo "$MYSQL" >&6; }
21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21942 $as_echo "no" >&6; }
21946 if test "$MYSQL" != yes ; then
21947 as_fn_error "could not locate mysql_config" "$LINENO" 5
21950 SQL_INC=`mysql_config --include`
21951 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21953 save_CPPFLAGS="$CPPFLAGS"
21954 CPPFLAGS="$SLAPD_NDB_INCS"
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21956 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21958 /* end confdefs.h. */
21959 #include <NdbApi.hpp>
21961 if ac_fn_c_try_cpp "$LINENO"; then :
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21963 $as_echo "yes" >&6; }
21965 as_fn_error "could not locate NdbApi headers" "$LINENO" 5
21968 rm -f conftest.err conftest.$ac_ext
21969 CPPFLAGS="$save_CPPFLAGS"
21971 SQL_LIB=`mysql_config --libs_r`
21972 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21974 save_LDFLAGS="$LDFLAGS"
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21978 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21979 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then :
21980 $as_echo_n "(cached) " >&6
21982 ac_check_lib_save_LIBS=$LIBS
21983 LIBS="-lndbclient -lstdc++ $LIBS"
21984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h. */
21987 /* Override any GCC internal prototype to avoid an error.
21988 Use char because int might match the return type of a GCC
21989 builtin and then its argument prototype would still apply. */
21997 return ndb_init ();
22002 if ac_fn_c_try_link "$LINENO"; then :
22003 ac_cv_lib_ndbclient_ndb_init=yes
22005 ac_cv_lib_ndbclient_ndb_init=no
22007 rm -f core conftest.err conftest.$ac_objext \
22008 conftest$ac_exeext conftest.$ac_ext
22009 LIBS=$ac_check_lib_save_LIBS
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
22012 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
22013 if test "x$ac_cv_lib_ndbclient_ndb_init" = x""yes; then :
22017 as_fn_error "could not locate ndbclient library" "$LINENO" 5
22022 LDFLAGS="$save_LDFLAGS"
22024 if test "$ol_enable_ndb" = yes ; then
22025 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
22030 if test $ol_enable_wt != no ; then
22031 # Extract the first word of "pkg-config", so it can be a program name with args.
22032 set dummy pkg-config; ac_word=$2
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22034 $as_echo_n "checking for $ac_word... " >&6; }
22035 if test "${ac_cv_prog_PKGCONFIG+set}" = set; then :
22036 $as_echo_n "(cached) " >&6
22038 if test -n "$PKGCONFIG"; then
22039 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test.
22041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22042 for as_dir in $PATH
22045 test -z "$as_dir" && as_dir=.
22046 for ac_exec_ext in '' $ac_executable_extensions; do
22047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22048 ac_cv_prog_PKGCONFIG="yes"
22049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22058 PKGCONFIG=$ac_cv_prog_PKGCONFIG
22059 if test -n "$PKGCONFIG"; then
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22061 $as_echo "$PKGCONFIG" >&6; }
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22064 $as_echo "no" >&6; }
22068 if test "$PKGCONFIG" != yes ; then
22069 as_fn_error "could not locate pkg-config" "$LINENO" 5
22071 WT_INCS=`pkg-config --cflags wiredtiger`
22072 WT_LIBS=`pkg-config --libs wiredtiger`
22074 save_CFLAGS="$CFLAGS"
22075 save_LDFLAGS="$LDFLAGS"
22077 CPPFLAGS="$WT_INCS"
22079 for ac_header in wiredtiger.h
22081 ac_fn_c_check_header_mongrel "$LINENO" "wiredtiger.h" "ac_cv_header_wiredtiger_h" "$ac_includes_default"
22082 if test "x$ac_cv_header_wiredtiger_h" = x""yes; then :
22083 cat >>confdefs.h <<_ACEOF
22084 #define HAVE_WIREDTIGER_H 1
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wiredtiger_version in -lwiredtiger" >&5
22092 $as_echo_n "checking for wiredtiger_version in -lwiredtiger... " >&6; }
22093 if test "${ac_cv_lib_wiredtiger_wiredtiger_version+set}" = set; then :
22094 $as_echo_n "(cached) " >&6
22096 ac_check_lib_save_LIBS=$LIBS
22097 LIBS="-lwiredtiger $LIBS"
22098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h. */
22101 /* Override any GCC internal prototype to avoid an error.
22102 Use char because int might match the return type of a GCC
22103 builtin and then its argument prototype would still apply. */
22107 char wiredtiger_version ();
22111 return wiredtiger_version ();
22116 if ac_fn_c_try_link "$LINENO"; then :
22117 ac_cv_lib_wiredtiger_wiredtiger_version=yes
22119 ac_cv_lib_wiredtiger_wiredtiger_version=no
22121 rm -f core conftest.err conftest.$ac_objext \
22122 conftest$ac_exeext conftest.$ac_ext
22123 LIBS=$ac_check_lib_save_LIBS
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wiredtiger_wiredtiger_version" >&5
22126 $as_echo "$ac_cv_lib_wiredtiger_wiredtiger_version" >&6; }
22127 if test "x$ac_cv_lib_wiredtiger_wiredtiger_version" = x""yes; then :
22131 as_fn_error "could not locate wiredtiger library" "$LINENO" 5
22135 CFLAGS="$save_CFLAGS"
22136 CPPFLAGS="$save_CPPFLAGS"
22137 LDFLAGS="$save_LDFLAGS"
22138 SLAPD_LIBS="$SLAPD_LIBS \$(WT_LIBS)"
22143 for ac_header in unicode/utypes.h
22145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22146 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22147 eval as_val=\$$as_ac_Header
22148 if test "x$as_val" = x""yes; then :
22149 cat >>confdefs.h <<_ACEOF
22150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22157 if test $ac_cv_header_unicode_utypes_h = yes ; then
22158 OL_ICULIBS="-licuuc -licudata"
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
22161 $as_echo_n "checking for ICU libraries... " >&6; }
22162 if test "${ol_cv_lib_icu+set}" = set; then :
22163 $as_echo_n "(cached) " >&6
22167 LIBS="$OL_ICULIBS $LIBS"
22168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22169 /* end confdefs.h. */
22171 #include <unicode/utypes.h>
22177 (void) u_errorName(0);
22183 if ac_fn_c_try_link "$LINENO"; then :
22188 rm -f core conftest.err conftest.$ac_objext \
22189 conftest$ac_exeext conftest.$ac_ext
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
22194 $as_echo "$ol_cv_lib_icu" >&6; }
22196 if test $ol_cv_lib_icu != no ; then
22197 ol_icu="$OL_ICULIBS"
22199 $as_echo "#define HAVE_ICU 1" >>confdefs.h
22204 if test "$ol_icu" = no ; then
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
22206 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22213 if test $ol_with_cyrus_sasl != no ; then
22214 for ac_header in sasl/sasl.h sasl.h
22216 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22217 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22218 eval as_val=\$$as_ac_Header
22219 if test "x$as_val" = x""yes; then :
22220 cat >>confdefs.h <<_ACEOF
22221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22229 if test $ac_cv_header_sasl_sasl_h = yes ||
22230 test $ac_cv_header_sasl_h = yes; then
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22232 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22233 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then :
22234 $as_echo_n "(cached) " >&6
22236 ac_check_lib_save_LIBS=$LIBS
22237 LIBS="-lsasl2 $LIBS"
22238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239 /* end confdefs.h. */
22241 /* Override any GCC internal prototype to avoid an error.
22242 Use char because int might match the return type of a GCC
22243 builtin and then its argument prototype would still apply. */
22247 char sasl_client_init ();
22251 return sasl_client_init ();
22256 if ac_fn_c_try_link "$LINENO"; then :
22257 ac_cv_lib_sasl2_sasl_client_init=yes
22259 ac_cv_lib_sasl2_sasl_client_init=no
22261 rm -f core conftest.err conftest.$ac_objext \
22262 conftest$ac_exeext conftest.$ac_ext
22263 LIBS=$ac_check_lib_save_LIBS
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22266 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22267 if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then :
22268 ol_link_sasl="-lsasl2"
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22271 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22272 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22275 ac_check_lib_save_LIBS=$LIBS
22276 LIBS="-lsasl $LIBS"
22277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22278 /* end confdefs.h. */
22280 /* Override any GCC internal prototype to avoid an error.
22281 Use char because int might match the return type of a GCC
22282 builtin and then its argument prototype would still apply. */
22286 char sasl_client_init ();
22290 return sasl_client_init ();
22295 if ac_fn_c_try_link "$LINENO"; then :
22296 ac_cv_lib_sasl_sasl_client_init=yes
22298 ac_cv_lib_sasl_sasl_client_init=no
22300 rm -f core conftest.err conftest.$ac_objext \
22301 conftest$ac_exeext conftest.$ac_ext
22302 LIBS=$ac_check_lib_save_LIBS
22304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22305 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22306 if test "x$ac_cv_lib_sasl_sasl_client_init" = x""yes; then :
22307 ol_link_sasl="-lsasl"
22314 if test $ol_link_sasl = no ; then
22315 if test $ol_with_cyrus_sasl != auto ; then
22316 as_fn_error "Could not locate Cyrus SASL" "$LINENO" 5
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22319 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22321 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22322 if test $ol_link_tls = no ; then
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22324 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22329 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22330 if test "${ol_cv_sasl_compat+set}" = set; then :
22331 $as_echo_n "(cached) " >&6
22334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22335 /* end confdefs.h. */
22337 #ifdef HAVE_SASL_SASL_H
22338 #include <sasl/sasl.h>
22343 /* Require 2.1.15+ */
22344 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22345 char *__sasl_compat = "2.2+ or better okay (we guess)";
22346 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22347 && SASL_VERSION_STEP >=15
22348 char *__sasl_compat = "2.1.15+ or better okay";
22352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22353 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22354 ol_cv_sasl_compat=yes
22356 ol_cv_sasl_compat=no
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22362 $as_echo "$ol_cv_sasl_compat" >&6; }
22364 if test $ol_cv_sasl_compat = no ; then
22366 as_fn_error "Cyrus SASL library located but is incompatible" "$LINENO" 5
22370 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22372 SASL_LIBS="$ol_link_sasl"
22373 if test $ol_enable_spasswd != no ; then
22374 ol_link_spasswd=yes
22377 ac_save_LIBS="$LIBS"
22378 LIBS="$LIBS $ol_link_sasl"
22379 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22380 if test "x$ac_cv_func_sasl_version" = x""yes; then :
22382 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22386 LIBS="$ac_save_LIBS"
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22393 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22394 if test $ol_link_tls = no ; then
22395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22396 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22400 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22402 if test -r /dev/urandom ; then
22403 dev="/dev/urandom";
22404 elif test -r /idev/urandom ; then
22405 dev="/idev/urandom";
22406 elif test -r /dev/srandom ; then
22407 dev="/dev/srandom";
22408 elif test -r /dev/random ; then
22410 elif test -r /idev/random ; then
22411 dev="/idev/random";
22414 if test $dev != no ; then
22416 cat >>confdefs.h <<_ACEOF
22417 #define URANDOM_DEVICE "$dev"
22424 if test $ol_with_fetch != no ; then
22426 LIBS="-lfetch -lcom_err $LIBS"
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22428 $as_echo_n "checking fetch(3) library... " >&6; }
22429 if test "${ol_cv_lib_fetch+set}" = set; then :
22430 $as_echo_n "(cached) " >&6
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22436 #ifdef HAVE_SYS_PARAM_H
22437 #include <sys/param.h>
22444 struct url *u = fetchParseURL("file:///");
22449 if ac_fn_c_try_link "$LINENO"; then :
22450 ol_cv_lib_fetch=yes
22454 rm -f core conftest.err conftest.$ac_objext \
22455 conftest$ac_exeext conftest.$ac_ext
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22458 $as_echo "$ol_cv_lib_fetch" >&6; }
22460 if test $ol_cv_lib_fetch != no ; then
22461 ol_link_fetch="-lfetch -lcom_err"
22463 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22468 if test $ol_cv_lib_fetch != no ; then
22469 LIBS="$LIBS $ol_link_fetch"
22470 ol_link_fetch=freebsd
22472 elif test $ol_with_fetch != auto ; then
22473 as_fn_error "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22477 if test $ol_enable_crypt != no ; then
22479 LIBS="$TLS_LIBS $LIBS"
22481 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22482 if test "x$ac_cv_func_crypt" = x""yes; then :
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22488 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22489 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22490 $as_echo_n "(cached) " >&6
22492 ac_check_lib_save_LIBS=$LIBS
22493 LIBS="-lcrypt $LIBS"
22494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22495 /* end confdefs.h. */
22497 /* Override any GCC internal prototype to avoid an error.
22498 Use char because int might match the return type of a GCC
22499 builtin and then its argument prototype would still apply. */
22512 if ac_fn_c_try_link "$LINENO"; then :
22513 ac_cv_lib_crypt_crypt=yes
22515 ac_cv_lib_crypt_crypt=no
22517 rm -f core conftest.err conftest.$ac_objext \
22518 conftest$ac_exeext conftest.$ac_ext
22519 LIBS=$ac_check_lib_save_LIBS
22521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22522 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22523 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22524 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22535 if test $have_crypt = yes ; then
22537 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22541 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22542 if test $ol_enable_crypt = yes ; then
22543 as_fn_error "could not find crypt, select appropriate options or disable" "$LINENO" 5
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22547 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22552 if test $ol_enable_proctitle != no ; then
22553 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22554 if test "x$ac_cv_func_setproctitle" = x""yes; then :
22555 have_setproctitle=yes
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22559 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22560 if test "${ac_cv_lib_util_setproctitle+set}" = set; then :
22561 $as_echo_n "(cached) " >&6
22563 ac_check_lib_save_LIBS=$LIBS
22564 LIBS="-lutil $LIBS"
22565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22566 /* end confdefs.h. */
22568 /* Override any GCC internal prototype to avoid an error.
22569 Use char because int might match the return type of a GCC
22570 builtin and then its argument prototype would still apply. */
22574 char setproctitle ();
22578 return setproctitle ();
22583 if ac_fn_c_try_link "$LINENO"; then :
22584 ac_cv_lib_util_setproctitle=yes
22586 ac_cv_lib_util_setproctitle=no
22588 rm -f core conftest.err conftest.$ac_objext \
22589 conftest$ac_exeext conftest.$ac_ext
22590 LIBS=$ac_check_lib_save_LIBS
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22593 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22594 if test "x$ac_cv_lib_util_setproctitle" = x""yes; then :
22595 have_setproctitle=yes
22596 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22598 have_setproctitle=no
22599 case " $LIBOBJS " in
22600 *" setproctitle.$ac_objext "* ) ;;
22601 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22605 LIBSRCS="$LIBSRCS setproctitle.c"
22611 if test $have_setproctitle = yes ; then
22613 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22618 if test $ol_enable_slp != no ; then
22619 for ac_header in slp.h
22621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22622 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22623 eval as_val=\$$as_ac_Header
22624 if test "x$as_val" = x""yes; then :
22625 cat >>confdefs.h <<_ACEOF
22626 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22634 if test $ac_cv_header_slp_h = yes ; then
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22636 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22637 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
22638 $as_echo_n "(cached) " >&6
22640 ac_check_lib_save_LIBS=$LIBS
22642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22643 /* end confdefs.h. */
22645 /* Override any GCC internal prototype to avoid an error.
22646 Use char because int might match the return type of a GCC
22647 builtin and then its argument prototype would still apply. */
22660 if ac_fn_c_try_link "$LINENO"; then :
22661 ac_cv_lib_slp_SLPOpen=yes
22663 ac_cv_lib_slp_SLPOpen=no
22665 rm -f core conftest.err conftest.$ac_objext \
22666 conftest$ac_exeext conftest.$ac_ext
22667 LIBS=$ac_check_lib_save_LIBS
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22670 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22671 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
22677 if test $have_slp = yes ; then
22679 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22681 SLAPD_SLP_LIBS=-lslp
22684 elif test $ol_enable_slp = yes ; then
22685 as_fn_error "SLP not found" "$LINENO" 5
22690 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22691 if test "x$ac_cv_type_mode_t" = x""yes; then :
22695 cat >>confdefs.h <<_ACEOF
22701 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22702 if test "x$ac_cv_type_off_t" = x""yes; then :
22706 cat >>confdefs.h <<_ACEOF
22712 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22713 if test "x$ac_cv_type_pid_t" = x""yes; then :
22717 cat >>confdefs.h <<_ACEOF
22723 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22724 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22728 cat >>confdefs.h <<_ACEOF
22729 #define ssize_t signed int
22734 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22735 if test "x$ac_cv_type_caddr_t" = x""yes; then :
22739 cat >>confdefs.h <<_ACEOF
22740 #define caddr_t char *
22745 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22746 if test "x$ac_cv_type_size_t" = x""yes; then :
22750 cat >>confdefs.h <<_ACEOF
22751 #define size_t unsigned
22757 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22758 if test "x$ac_cv_type_long_long" = x""yes; then :
22760 cat >>confdefs.h <<_ACEOF
22761 #define HAVE_LONG_LONG 1
22767 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22768 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
22770 cat >>confdefs.h <<_ACEOF
22771 #define HAVE_PTRDIFF_T 1
22779 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22780 #ifdef HAVE_SYS_SOCKET_H
22781 #include <sys/socket.h>
22784 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22790 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22791 if test "${ol_cv_type_ber_socklen_t+set}" = set; then :
22792 $as_echo_n "(cached) " >&6
22795 set socklen_t int unsigned "unsigned long" long size_t
22796 test "$ac_cv_type_socklen_t" = yes || shift
22797 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22798 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800 /* end confdefs.h. */
22801 $ac_includes_default
22802 #ifdef HAVE_SYS_SOCKET_H
22803 #include <sys/socket.h>
22805 extern int accept(int s, $addrtype *ap, $lentype *lp);
22811 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22817 if ac_fn_c_try_compile "$LINENO"; then :
22818 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22825 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22827 cat >>confdefs.h <<_ACEOF
22828 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22832 if test "$ac_cv_type_socklen_t" != yes; then
22834 cat >>confdefs.h <<_ACEOF
22835 #define socklen_t $ol_cv_type_ber_socklen_t
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22842 $as_echo_n "checking return type of signal handlers... " >&6; }
22843 if test "${ac_cv_type_signal+set}" = set; then :
22844 $as_echo_n "(cached) " >&6
22846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847 /* end confdefs.h. */
22848 #include <sys/types.h>
22849 #include <signal.h>
22854 return *(signal (0, 0)) (0) == 1;
22859 if ac_fn_c_try_compile "$LINENO"; then :
22860 ac_cv_type_signal=int
22862 ac_cv_type_signal=void
22864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22867 $as_echo "$ac_cv_type_signal" >&6; }
22869 cat >>confdefs.h <<_ACEOF
22870 #define RETSIGTYPE $ac_cv_type_signal
22875 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22876 #include <signal.h>
22879 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
22883 cat >>confdefs.h <<_ACEOF
22884 #define sig_atomic_t int
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22891 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22892 if test "${ac_cv_type_uid_t+set}" = set; then :
22893 $as_echo_n "(cached) " >&6
22895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22896 /* end confdefs.h. */
22897 #include <sys/types.h>
22900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22901 $EGREP "uid_t" >/dev/null 2>&1; then :
22902 ac_cv_type_uid_t=yes
22904 ac_cv_type_uid_t=no
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22910 $as_echo "$ac_cv_type_uid_t" >&6; }
22911 if test $ac_cv_type_uid_t = no; then
22913 $as_echo "#define uid_t int" >>confdefs.h
22916 $as_echo "#define gid_t int" >>confdefs.h
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22922 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22923 if test "${ac_cv_header_time+set}" = set; then :
22924 $as_echo_n "(cached) " >&6
22926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h. */
22928 #include <sys/types.h>
22929 #include <sys/time.h>
22935 if ((struct tm *) 0)
22941 if ac_fn_c_try_compile "$LINENO"; then :
22942 ac_cv_header_time=yes
22944 ac_cv_header_time=no
22946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22949 $as_echo "$ac_cv_header_time" >&6; }
22950 if test $ac_cv_header_time = yes; then
22952 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22957 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22958 if test "${ac_cv_struct_tm+set}" = set; then :
22959 $as_echo_n "(cached) " >&6
22961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962 /* end confdefs.h. */
22963 #include <sys/types.h>
22970 int *p = &tm.tm_sec;
22976 if ac_fn_c_try_compile "$LINENO"; then :
22977 ac_cv_struct_tm=time.h
22979 ac_cv_struct_tm=sys/time.h
22981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22984 $as_echo "$ac_cv_struct_tm" >&6; }
22985 if test $ac_cv_struct_tm = sys/time.h; then
22987 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22991 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22992 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
22994 cat >>confdefs.h <<_ACEOF
22995 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
23001 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
23004 if test "x$ac_cv_member_struct_passwd_pw_gecos" = x""yes; then :
23006 cat >>confdefs.h <<_ACEOF
23007 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
23013 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
23016 if test "x$ac_cv_member_struct_passwd_pw_passwd" = x""yes; then :
23018 cat >>confdefs.h <<_ACEOF
23019 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
23027 $as_echo_n "checking if toupper() requires islower()... " >&6; }
23028 if test "${ol_cv_c_upper_lower+set}" = set; then :
23029 $as_echo_n "(cached) " >&6
23032 if test "$cross_compiling" = yes; then :
23033 ol_cv_c_upper_lower=safe
23035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23036 /* end confdefs.h. */
23041 if ('C' == toupper('C'))
23047 if ac_fn_c_try_run "$LINENO"; then :
23048 ol_cv_c_upper_lower=no
23050 ol_cv_c_upper_lower=yes
23052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23053 conftest.$ac_objext conftest.beam conftest.$ac_ext
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
23058 $as_echo "$ol_cv_c_upper_lower" >&6; }
23059 if test $ol_cv_c_upper_lower != no ; then
23061 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23066 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23067 if test "${ac_cv_c_const+set}" = set; then :
23068 $as_echo_n "(cached) " >&6
23070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23071 /* end confdefs.h. */
23076 /* FIXME: Include the comments suggested by Paul. */
23077 #ifndef __cplusplus
23078 /* Ultrix mips cc rejects this. */
23079 typedef int charset[2];
23081 /* SunOS 4.1.1 cc rejects this. */
23082 char const *const *pcpcc;
23084 /* NEC SVR4.0.2 mips cc rejects this. */
23085 struct point {int x, y;};
23086 static struct point const zero = {0,0};
23087 /* AIX XL C 1.02.0.0 rejects this.
23088 It does not let you subtract one const X* pointer from another in
23089 an arm of an if-expression whose if-part is not a constant
23091 const char *g = "string";
23092 pcpcc = &g + (g ? g-g : 0);
23093 /* HPUX 7.0 cc rejects these. */
23095 ppc = (char**) pcpcc;
23096 pcpcc = (char const *const *) ppc;
23097 { /* SCO 3.2v4 cc rejects this. */
23099 char const *s = 0 ? (char *) 0 : (char const *) 0;
23104 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23105 int x[] = {25, 17};
23106 const int *foo = &x[0];
23109 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23110 typedef const int *iptr;
23114 { /* AIX XL C 1.02.0.0 rejects this saying
23115 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23116 struct s { int j; const int *ap[3]; };
23117 struct s *b; b->j = 5;
23119 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23120 const int foo = 10;
23121 if (!foo) return 0;
23123 return !cs[0] && !zero.x;
23130 if ac_fn_c_try_compile "$LINENO"; then :
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23138 $as_echo "$ac_cv_c_const" >&6; }
23139 if test $ac_cv_c_const = no; then
23141 $as_echo "#define const /**/" >>confdefs.h
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
23146 $as_echo_n "checking if compiler understands volatile... " >&6; }
23147 if test "${ol_cv_c_volatile+set}" = set; then :
23148 $as_echo_n "(cached) " >&6
23150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23151 /* end confdefs.h. */
23156 volatile int a; int * volatile b = x ? &y : &z;
23157 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23163 if ac_fn_c_try_compile "$LINENO"; then :
23164 ol_cv_c_volatile=yes
23166 ol_cv_c_volatile=no
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
23171 $as_echo "$ol_cv_c_volatile" >&6; }
23172 if test $ol_cv_c_volatile = yes; then
23176 $as_echo "#define volatile /**/" >>confdefs.h
23181 if test $cross_compiling = yes ; then
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23183 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23185 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23189 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23190 if test "${ac_cv_c_bigendian+set}" = set; then :
23191 $as_echo_n "(cached) " >&6
23193 ac_cv_c_bigendian=unknown
23194 # See if we're dealing with a universal compiler.
23195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23196 /* end confdefs.h. */
23197 #ifndef __APPLE_CC__
23198 not a universal capable compiler
23203 if ac_fn_c_try_compile "$LINENO"; then :
23205 # Check for potential -arch flags. It is not universal unless
23206 # there are at least two -arch flags with different values.
23209 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23210 if test -n "$ac_prev"; then
23212 i?86 | x86_64 | ppc | ppc64)
23213 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23216 ac_cv_c_bigendian=universal
23222 elif test "x$ac_word" = "x-arch"; then
23227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 if test $ac_cv_c_bigendian = unknown; then
23229 # See if sys/param.h defines the BYTE_ORDER macro.
23230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23231 /* end confdefs.h. */
23232 #include <sys/types.h>
23233 #include <sys/param.h>
23238 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23239 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23241 bogus endian macros
23248 if ac_fn_c_try_compile "$LINENO"; then :
23249 # It does; now see whether it defined to BIG_ENDIAN or not.
23250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23251 /* end confdefs.h. */
23252 #include <sys/types.h>
23253 #include <sys/param.h>
23258 #if BYTE_ORDER != BIG_ENDIAN
23266 if ac_fn_c_try_compile "$LINENO"; then :
23267 ac_cv_c_bigendian=yes
23269 ac_cv_c_bigendian=no
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23275 if test $ac_cv_c_bigendian = unknown; then
23276 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23278 /* end confdefs.h. */
23279 #include <limits.h>
23284 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23285 bogus endian macros
23292 if ac_fn_c_try_compile "$LINENO"; then :
23293 # It does; now see whether it defined to _BIG_ENDIAN or not.
23294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23295 /* end confdefs.h. */
23296 #include <limits.h>
23301 #ifndef _BIG_ENDIAN
23309 if ac_fn_c_try_compile "$LINENO"; then :
23310 ac_cv_c_bigendian=yes
23312 ac_cv_c_bigendian=no
23314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23318 if test $ac_cv_c_bigendian = unknown; then
23319 # Compile a test program.
23320 if test "$cross_compiling" = yes; then :
23321 # Try to guess by grepping values from an object file.
23322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23323 /* end confdefs.h. */
23324 short int ascii_mm[] =
23325 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23326 short int ascii_ii[] =
23327 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23328 int use_ascii (int i) {
23329 return ascii_mm[i] + ascii_ii[i];
23331 short int ebcdic_ii[] =
23332 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23333 short int ebcdic_mm[] =
23334 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23335 int use_ebcdic (int i) {
23336 return ebcdic_mm[i] + ebcdic_ii[i];
23343 return use_ascii (foo) == use_ebcdic (foo);
23348 if ac_fn_c_try_compile "$LINENO"; then :
23349 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23350 ac_cv_c_bigendian=yes
23352 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23353 if test "$ac_cv_c_bigendian" = unknown; then
23354 ac_cv_c_bigendian=no
23356 # finding both strings is unlikely to happen, but who knows?
23357 ac_cv_c_bigendian=unknown
23361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23364 /* end confdefs.h. */
23365 $ac_includes_default
23370 /* Are we little or big endian? From Harbison&Steele. */
23374 char c[sizeof (long int)];
23377 return u.c[sizeof (long int) - 1] == 1;
23383 if ac_fn_c_try_run "$LINENO"; then :
23384 ac_cv_c_bigendian=no
23386 ac_cv_c_bigendian=yes
23388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23389 conftest.$ac_objext conftest.beam conftest.$ac_ext
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23395 $as_echo "$ac_cv_c_bigendian" >&6; }
23396 case $ac_cv_c_bigendian in #(
23398 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23404 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23408 as_fn_error "unknown endianness
23409 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23414 # The cast to long int works around a bug in the HP C Compiler
23415 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23416 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23417 # This bug is HP SR number 8606223364.
23418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23419 $as_echo_n "checking size of short... " >&6; }
23420 if test "${ac_cv_sizeof_short+set}" = set; then :
23421 $as_echo_n "(cached) " >&6
23423 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23426 if test "$ac_cv_type_short" = yes; then
23427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23429 { as_fn_set_status 77
23430 as_fn_error "cannot compute sizeof (short)
23431 See \`config.log' for more details." "$LINENO" 5; }; }
23433 ac_cv_sizeof_short=0
23438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23439 $as_echo "$ac_cv_sizeof_short" >&6; }
23443 cat >>confdefs.h <<_ACEOF
23444 #define SIZEOF_SHORT $ac_cv_sizeof_short
23448 # The cast to long int works around a bug in the HP C Compiler
23449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23451 # This bug is HP SR number 8606223364.
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23453 $as_echo_n "checking size of int... " >&6; }
23454 if test "${ac_cv_sizeof_int+set}" = set; then :
23455 $as_echo_n "(cached) " >&6
23457 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23460 if test "$ac_cv_type_int" = yes; then
23461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23463 { as_fn_set_status 77
23464 as_fn_error "cannot compute sizeof (int)
23465 See \`config.log' for more details." "$LINENO" 5; }; }
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23473 $as_echo "$ac_cv_sizeof_int" >&6; }
23477 cat >>confdefs.h <<_ACEOF
23478 #define SIZEOF_INT $ac_cv_sizeof_int
23482 # The cast to long int works around a bug in the HP C Compiler
23483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23485 # This bug is HP SR number 8606223364.
23486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23487 $as_echo_n "checking size of long... " >&6; }
23488 if test "${ac_cv_sizeof_long+set}" = set; then :
23489 $as_echo_n "(cached) " >&6
23491 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23494 if test "$ac_cv_type_long" = yes; then
23495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23497 { as_fn_set_status 77
23498 as_fn_error "cannot compute sizeof (long)
23499 See \`config.log' for more details." "$LINENO" 5; }; }
23501 ac_cv_sizeof_long=0
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23507 $as_echo "$ac_cv_sizeof_long" >&6; }
23511 cat >>confdefs.h <<_ACEOF
23512 #define SIZEOF_LONG $ac_cv_sizeof_long
23516 # The cast to long int works around a bug in the HP C Compiler
23517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23519 # This bug is HP SR number 8606223364.
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23521 $as_echo_n "checking size of long long... " >&6; }
23522 if test "${ac_cv_sizeof_long_long+set}" = set; then :
23523 $as_echo_n "(cached) " >&6
23525 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23528 if test "$ac_cv_type_long_long" = yes; then
23529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23531 { as_fn_set_status 77
23532 as_fn_error "cannot compute sizeof (long long)
23533 See \`config.log' for more details." "$LINENO" 5; }; }
23535 ac_cv_sizeof_long_long=0
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23541 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23545 cat >>confdefs.h <<_ACEOF
23546 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23550 # The cast to long int works around a bug in the HP C Compiler
23551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23553 # This bug is HP SR number 8606223364.
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23555 $as_echo_n "checking size of wchar_t... " >&6; }
23556 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
23557 $as_echo_n "(cached) " >&6
23559 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23562 if test "$ac_cv_type_wchar_t" = yes; then
23563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23565 { as_fn_set_status 77
23566 as_fn_error "cannot compute sizeof (wchar_t)
23567 See \`config.log' for more details." "$LINENO" 5; }; }
23569 ac_cv_sizeof_wchar_t=0
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23575 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23579 cat >>confdefs.h <<_ACEOF
23580 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23585 if test "$ac_cv_sizeof_int" -lt 4 ; then
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23587 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23590 $as_echo "#define LBER_INT_T long" >>confdefs.h
23594 $as_echo "#define LBER_INT_T int" >>confdefs.h
23599 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23602 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23605 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23608 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23609 if test $ac_cv_sizeof_long_long -gt 4 ; then
23610 ol_with_mp=longlong
23612 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23614 elif test $ol_with_mp = longlong ; then
23615 as_fn_error "long long unusable for multiple precision" "$LINENO" 5
23618 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23619 if test $ac_cv_sizeof_long -gt 4 ; then
23622 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23624 elif test $ol_with_mp = long ; then
23625 as_fn_error "long unusable for multiple precision" "$LINENO" 5
23628 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23629 for ac_header in openssl/bn.h
23631 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23632 if test "x$ac_cv_header_openssl_bn_h" = x""yes; then :
23633 cat >>confdefs.h <<_ACEOF
23634 #define HAVE_OPENSSL_BN_H 1
23641 for ac_header in openssl/crypto.h
23643 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23644 if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
23645 cat >>confdefs.h <<_ACEOF
23646 #define HAVE_OPENSSL_CRYPTO_H 1
23653 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23654 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23655 test "$ol_with_tls" = "found" ; then
23658 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23660 elif test $ol_with_mp = bignum ; then
23661 as_fn_error "bignum not available" "$LINENO" 5
23664 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23665 for ac_header in gmp.h
23667 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23668 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23669 cat >>confdefs.h <<_ACEOF
23670 #define HAVE_GMP_H 1
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23678 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23679 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then :
23680 $as_echo_n "(cached) " >&6
23682 ac_check_lib_save_LIBS=$LIBS
23684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23685 /* end confdefs.h. */
23687 /* Override any GCC internal prototype to avoid an error.
23688 Use char because int might match the return type of a GCC
23689 builtin and then its argument prototype would still apply. */
23693 char __gmpz_add_ui ();
23697 return __gmpz_add_ui ();
23702 if ac_fn_c_try_link "$LINENO"; then :
23703 ac_cv_lib_gmp___gmpz_add_ui=yes
23705 ac_cv_lib_gmp___gmpz_add_ui=no
23707 rm -f core conftest.err conftest.$ac_objext \
23708 conftest$ac_exeext conftest.$ac_ext
23709 LIBS=$ac_check_lib_save_LIBS
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23712 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23713 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = x""yes; then :
23714 cat >>confdefs.h <<_ACEOF
23715 #define HAVE_LIBGMP 1
23722 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23724 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23727 elif test $ol_with_mp = gmp ; then
23728 as_fn_error "gmp not available" "$LINENO" 5
23731 if test $ol_with_mp = auto ; then
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23736 $as_echo_n "checking for working memcmp... " >&6; }
23737 if test "${ac_cv_func_memcmp_working+set}" = set; then :
23738 $as_echo_n "(cached) " >&6
23740 if test "$cross_compiling" = yes; then :
23741 ac_cv_func_memcmp_working=no
23743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23744 /* end confdefs.h. */
23745 $ac_includes_default
23750 /* Some versions of memcmp are not 8-bit clean. */
23751 char c0 = '\100', c1 = '\200', c2 = '\201';
23752 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23755 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23756 or more and with at least one buffer not starting on a 4-byte boundary.
23757 William Lewis provided this test program. */
23762 for (i = 0; i < 4; i++)
23766 strcpy (a, "--------01111111");
23767 strcpy (b, "--------10000000");
23768 if (memcmp (a, b, 16) >= 0)
23778 if ac_fn_c_try_run "$LINENO"; then :
23779 ac_cv_func_memcmp_working=yes
23781 ac_cv_func_memcmp_working=no
23783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23784 conftest.$ac_objext conftest.beam conftest.$ac_ext
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23789 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23790 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23791 *" memcmp.$ac_objext "* ) ;;
23792 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23798 if test $ac_cv_func_memcmp_working = no ; then
23800 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23804 for ac_func in strftime
23806 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23807 if test "x$ac_cv_func_strftime" = x""yes; then :
23808 cat >>confdefs.h <<_ACEOF
23809 #define HAVE_STRFTIME 1
23813 # strftime is in -lintl on SCO UNIX.
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23815 $as_echo_n "checking for strftime in -lintl... " >&6; }
23816 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
23817 $as_echo_n "(cached) " >&6
23819 ac_check_lib_save_LIBS=$LIBS
23820 LIBS="-lintl $LIBS"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h. */
23824 /* Override any GCC internal prototype to avoid an error.
23825 Use char because int might match the return type of a GCC
23826 builtin and then its argument prototype would still apply. */
23834 return strftime ();
23839 if ac_fn_c_try_link "$LINENO"; then :
23840 ac_cv_lib_intl_strftime=yes
23842 ac_cv_lib_intl_strftime=no
23844 rm -f core conftest.err conftest.$ac_objext \
23845 conftest$ac_exeext conftest.$ac_ext
23846 LIBS=$ac_check_lib_save_LIBS
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23849 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23850 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
23851 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23853 LIBS="-lintl $LIBS"
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23861 $as_echo_n "checking for inet_aton()... " >&6; }
23862 if test "${ol_cv_func_inet_aton+set}" = set; then :
23863 $as_echo_n "(cached) " >&6
23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23866 /* end confdefs.h. */
23868 #ifdef HAVE_SYS_TYPES_H
23869 # include <sys/types.h>
23871 #ifdef HAVE_SYS_SOCKET_H
23872 # include <sys/socket.h>
23873 # ifdef HAVE_SYS_SELECT_H
23874 # include <sys/select.h>
23876 # include <netinet/in.h>
23877 # ifdef HAVE_ARPA_INET_H
23878 # include <arpa/inet.h>
23886 int rc = inet_aton( "255.255.255.255", &in );
23891 if ac_fn_c_try_link "$LINENO"; then :
23892 ol_cv_func_inet_aton=yes
23894 ol_cv_func_inet_aton=no
23896 rm -f core conftest.err conftest.$ac_objext \
23897 conftest$ac_exeext conftest.$ac_ext
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23900 $as_echo "$ol_cv_func_inet_aton" >&6; }
23901 if test $ol_cv_func_inet_aton != no; then
23903 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23908 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23909 if test "x$ac_cv_func__spawnlp" = x""yes; then :
23911 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23916 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23917 if test "x$ac_cv_func__snprintf" = x""yes; then :
23918 ac_cv_func_snprintf=yes
23920 $as_echo "#define snprintf _snprintf" >>confdefs.h
23926 for ac_func in vsnprintf _vsnprintf
23928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23930 eval as_val=\$$as_ac_var
23931 if test "x$as_val" = x""yes; then :
23932 cat >>confdefs.h <<_ACEOF
23933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23940 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23941 ac_cv_func_vsnprintf=yes
23943 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23947 for ac_func in vprintf
23949 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23950 if test "x$ac_cv_func_vprintf" = x""yes; then :
23951 cat >>confdefs.h <<_ACEOF
23952 #define HAVE_VPRINTF 1
23955 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23956 if test "x$ac_cv_func__doprnt" = x""yes; then :
23958 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23967 if test $ac_cv_func_vprintf = yes ; then
23968 for ac_func in snprintf vsnprintf
23970 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23971 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23972 eval as_val=\$$as_ac_var
23973 if test "x$as_val" = x""yes; then :
23974 cat >>confdefs.h <<_ACEOF
23975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24044 eval as_val=\$$as_ac_var
24045 if test "x$as_val" = x""yes; then :
24046 cat >>confdefs.h <<_ACEOF
24047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24054 for ac_func in getopt getpeereid
24056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24058 eval as_val=\$$as_ac_var
24059 if test "x$as_val" = x""yes; then :
24060 cat >>confdefs.h <<_ACEOF
24061 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24065 case " $LIBOBJS " in
24066 *" $ac_func.$ac_objext "* ) ;;
24067 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
24076 if test "$ac_cv_func_getopt" != yes; then
24077 LIBSRCS="$LIBSRCS getopt.c"
24080 if test "$ac_cv_func_getpeereid" != yes; then
24081 for ac_func in getpeerucred
24083 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24085 eval as_val=\$$as_ac_var
24086 if test "x$as_val" = x""yes; then :
24087 cat >>confdefs.h <<_ACEOF
24088 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24094 if test "$ac_cv_func_getpeerucred" != yes ; then
24095 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
24096 #ifdef HAVE_SYS_SOCKET_H
24097 #include <sys/socket.h>
24100 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = x""yes; then :
24102 cat >>confdefs.h <<_ACEOF
24103 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
24109 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
24110 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
24111 #ifdef HAVE_SYS_SOCKET_H
24112 #include <sys/socket.h>
24115 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
24117 cat >>confdefs.h <<_ACEOF
24118 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
24125 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
24126 if test "x$ac_cv_member_struct_stat_st_fstype" = x""yes; then :
24128 cat >>confdefs.h <<_ACEOF
24129 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
24134 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
24135 if test "x$ac_cv_member_struct_stat_st_vfstype" = x""yes; then :
24137 cat >>confdefs.h <<_ACEOF
24138 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
24144 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
24145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24146 /* end confdefs.h. */
24147 struct stat st; char *ptr=st.st_fstype;
24149 if ac_fn_c_try_compile "$LINENO"; then :
24151 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
24155 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
24158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24161 LIBSRCS="$LIBSRCS getpeereid.c"
24164 if test "$ac_cv_func_snprintf" != yes ||
24165 test "$ac_cv_func_vsnprintf" != yes; then
24166 if test "$ac_cv_func_snprintf" != yes; then
24168 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
24171 if test "$ac_cv_func_vsnprintf" != yes; then
24173 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24179 if test "$ol_enable_slapi" != no ; then
24180 for ac_header in ltdl.h
24182 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24183 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
24184 cat >>confdefs.h <<_ACEOF
24185 #define HAVE_LTDL_H 1
24193 if test $ac_cv_header_ltdl_h != yes ; then
24194 as_fn_error "could not locate <ltdl.h>" "$LINENO" 5
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24197 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24198 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
24199 $as_echo_n "(cached) " >&6
24201 ac_check_lib_save_LIBS=$LIBS
24202 LIBS="-lltdl $LIBS"
24203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24204 /* end confdefs.h. */
24206 /* Override any GCC internal prototype to avoid an error.
24207 Use char because int might match the return type of a GCC
24208 builtin and then its argument prototype would still apply. */
24216 return lt_dlinit ();
24221 if ac_fn_c_try_link "$LINENO"; then :
24222 ac_cv_lib_ltdl_lt_dlinit=yes
24224 ac_cv_lib_ltdl_lt_dlinit=no
24226 rm -f core conftest.err conftest.$ac_objext \
24227 conftest$ac_exeext conftest.$ac_ext
24228 LIBS=$ac_check_lib_save_LIBS
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24231 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24232 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
24235 LIBSLAPI=slapi/libslapi.la
24237 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24241 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
24246 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24250 if test "$ol_enable_debug" != no ; then
24251 if test "$ol_enable_debug" = traditional; then
24253 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24257 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24260 if test "$ol_enable_syslog" = yes ; then
24262 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24265 if test "$ol_enable_proctitle" != no ; then
24267 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24270 if test "$ol_enable_referrals" != no ; then
24272 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24275 if test "$ol_enable_local" != no; then
24277 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24280 if test "$ol_link_ipv6" != no; then
24282 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24285 if test "$ol_enable_cleartext" != no ; then
24287 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24290 if test "$ol_enable_crypt" != no ; then
24292 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24295 if test "$ol_link_spasswd" != no ; then
24297 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24300 if test "$ol_enable_rlookups" != no ; then
24302 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24305 if test "$ol_enable_aci" != no ; then
24306 if test $ol_enable_dynacl = no ; then
24307 ol_enable_dynacl=yes
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24309 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24311 if test "$ol_enable_aci" = mod ; then
24312 MFLAG=SLAPD_MOD_DYNAMIC
24313 as_fn_error "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24315 MFLAG=SLAPD_MOD_STATIC
24317 WITH_ACI_ENABLED=$ol_enable_aci
24319 cat >>confdefs.h <<_ACEOF
24320 #define SLAPD_ACI_ENABLED $MFLAG
24324 WITH_ACI_ENABLED=no
24326 if test "$ol_enable_dynacl" != no ; then
24328 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24332 if test "$ol_link_modules" != no ; then
24334 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24337 SLAPD_MODULES_LDFLAGS="-dlopen self"
24341 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24344 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24347 if test "$ol_enable_monitor" != no ; then
24349 BUILD_MONITOR=$ol_enable_monitor
24350 if test "$ol_enable_monitor" = mod ; then
24351 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24352 MFLAG=SLAPD_MOD_DYNAMIC
24354 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24355 MFLAG=SLAPD_MOD_STATIC
24358 cat >>confdefs.h <<_ACEOF
24359 #define SLAPD_MONITOR $MFLAG
24364 if test "$ol_enable_bdb" != no ; then
24366 BUILD_BDB=$ol_enable_bdb
24367 if test "$ol_enable_bdb" = mod ; then
24368 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24369 MFLAG=SLAPD_MOD_DYNAMIC
24371 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24372 MFLAG=SLAPD_MOD_STATIC
24375 cat >>confdefs.h <<_ACEOF
24376 #define SLAPD_BDB $MFLAG
24381 if test "$ol_enable_dnssrv" != no ; then
24383 BUILD_DNSSRV=$ol_enable_dnssrv
24384 if test "$ol_enable_dnssrv" = mod ; then
24385 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24386 MFLAG=SLAPD_MOD_DYNAMIC
24388 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24389 MFLAG=SLAPD_MOD_STATIC
24392 cat >>confdefs.h <<_ACEOF
24393 #define SLAPD_DNSSRV $MFLAG
24398 if test "$ol_enable_hdb" != no ; then
24400 BUILD_HDB=$ol_enable_hdb
24401 if test "$ol_enable_hdb" = mod ; then
24402 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24403 MFLAG=SLAPD_MOD_DYNAMIC
24405 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24406 MFLAG=SLAPD_MOD_STATIC
24409 cat >>confdefs.h <<_ACEOF
24410 #define SLAPD_HDB $MFLAG
24415 if test "$ol_enable_ldap" != no ; then
24417 BUILD_LDAP=$ol_enable_ldap
24418 if test "$ol_enable_ldap" = mod ; then
24419 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24420 MFLAG=SLAPD_MOD_DYNAMIC
24422 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24423 MFLAG=SLAPD_MOD_STATIC
24426 cat >>confdefs.h <<_ACEOF
24427 #define SLAPD_LDAP $MFLAG
24432 if test "$ol_enable_mdb" != no ; then
24434 BUILD_MDB=$ol_enable_mdb
24435 if test "$ol_enable_mdb" = mod ; then
24436 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24437 MFLAG=SLAPD_MOD_DYNAMIC
24439 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24440 MFLAG=SLAPD_MOD_STATIC
24443 cat >>confdefs.h <<_ACEOF
24444 #define SLAPD_MDB $MFLAG
24449 if test "$ol_enable_meta" != no ; then
24451 BUILD_META=$ol_enable_meta
24453 if test "$ol_enable_meta" = mod ; then
24454 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24455 MFLAG=SLAPD_MOD_DYNAMIC
24457 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24458 MFLAG=SLAPD_MOD_STATIC
24461 cat >>confdefs.h <<_ACEOF
24462 #define SLAPD_META $MFLAG
24467 if test "$ol_enable_asyncmeta" != no ; then
24469 BUILD_ASYNCMETA=$ol_enable_asyncmeta
24471 if test "$ol_enable_asyncmeta" = mod ; then
24472 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-asyncmeta"
24473 MFLAG=SLAPD_MOD_DYNAMIC
24475 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-asyncmeta"
24476 MFLAG=SLAPD_MOD_STATIC
24479 cat >>confdefs.h <<_ACEOF
24480 #define SLAPD_ASYNCMETA $MFLAG
24485 if test "$ol_enable_ndb" != no ; then
24487 BUILD_NDB=$ol_enable_ndb
24488 if test "$ol_enable_ndb" = mod ; then
24489 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24490 MFLAG=SLAPD_MOD_DYNAMIC
24492 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24493 MFLAG=SLAPD_MOD_STATIC
24496 cat >>confdefs.h <<_ACEOF
24497 #define SLAPD_NDB $MFLAG
24502 if test "$ol_enable_null" != no ; then
24504 BUILD_NULL=$ol_enable_null
24505 if test "$ol_enable_null" = mod ; then
24506 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24507 MFLAG=SLAPD_MOD_DYNAMIC
24509 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24510 MFLAG=SLAPD_MOD_STATIC
24513 cat >>confdefs.h <<_ACEOF
24514 #define SLAPD_NULL $MFLAG
24519 if test "$ol_enable_passwd" != no ; then
24521 BUILD_PASSWD=$ol_enable_passwd
24522 if test "$ol_enable_passwd" = mod ; then
24523 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24524 MFLAG=SLAPD_MOD_DYNAMIC
24526 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24527 MFLAG=SLAPD_MOD_STATIC
24530 cat >>confdefs.h <<_ACEOF
24531 #define SLAPD_PASSWD $MFLAG
24536 if test "$ol_link_perl" != no ; then
24538 BUILD_PERL=$ol_enable_perl
24539 if test "$ol_enable_perl" = mod ; then
24540 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24541 MFLAG=SLAPD_MOD_DYNAMIC
24543 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24544 MFLAG=SLAPD_MOD_STATIC
24547 cat >>confdefs.h <<_ACEOF
24548 #define SLAPD_PERL $MFLAG
24553 if test "$ol_enable_relay" != no ; then
24555 BUILD_RELAY=$ol_enable_relay
24556 if test "$ol_enable_relay" = mod ; then
24557 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24558 MFLAG=SLAPD_MOD_DYNAMIC
24560 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24561 MFLAG=SLAPD_MOD_STATIC
24564 cat >>confdefs.h <<_ACEOF
24565 #define SLAPD_RELAY $MFLAG
24570 if test "$ol_enable_shell" != no ; then
24571 if test "$ol_link_threads" != no ; then
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24573 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24576 BUILD_SHELL=$ol_enable_shell
24577 if test "$ol_enable_shell" = mod ; then
24578 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24579 MFLAG=SLAPD_MOD_DYNAMIC
24581 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24582 MFLAG=SLAPD_MOD_STATIC
24585 cat >>confdefs.h <<_ACEOF
24586 #define SLAPD_SHELL $MFLAG
24591 if test "$ol_enable_sock" != no ; then
24593 BUILD_SOCK=$ol_enable_sock
24594 if test "$ol_enable_sock" = mod ; then
24595 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24596 MFLAG=SLAPD_MOD_DYNAMIC
24598 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24599 MFLAG=SLAPD_MOD_STATIC
24602 cat >>confdefs.h <<_ACEOF
24603 #define SLAPD_SOCK $MFLAG
24608 if test "$ol_link_sql" != no ; then
24610 BUILD_SQL=$ol_enable_sql
24611 if test "$ol_enable_sql" = mod; then
24612 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24613 MFLAG=SLAPD_MOD_DYNAMIC
24615 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24616 MFLAG=SLAPD_MOD_STATIC
24619 cat >>confdefs.h <<_ACEOF
24620 #define SLAPD_SQL $MFLAG
24625 if test "$ol_link_wt" != no ; then
24627 BUILD_WT=$ol_enable_wt
24628 if test "$ol_enable_wt" = mod; then
24629 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-wt"
24630 MFLAG=SLAPD_MOD_DYNAMIC
24632 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-wt"
24633 MFLAG=SLAPD_MOD_STATIC
24636 cat >>confdefs.h <<_ACEOF
24637 #define SLAPD_WT $MFLAG
24642 if test "$ol_enable_accesslog" != no ; then
24643 BUILD_ACCESSLOG=$ol_enable_accesslog
24644 if test "$ol_enable_accesslog" = mod ; then
24645 MFLAG=SLAPD_MOD_DYNAMIC
24646 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24648 MFLAG=SLAPD_MOD_STATIC
24649 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24652 cat >>confdefs.h <<_ACEOF
24653 #define SLAPD_OVER_ACCESSLOG $MFLAG
24658 if test "$ol_enable_auditlog" != no ; then
24659 BUILD_AUDITLOG=$ol_enable_auditlog
24660 if test "$ol_enable_auditlog" = mod ; then
24661 MFLAG=SLAPD_MOD_DYNAMIC
24662 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24664 MFLAG=SLAPD_MOD_STATIC
24665 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24668 cat >>confdefs.h <<_ACEOF
24669 #define SLAPD_OVER_AUDITLOG $MFLAG
24674 if test "$ol_enable_collect" != no ; then
24675 BUILD_COLLECT=$ol_enable_collect
24676 if test "$ol_enable_collect" = mod ; then
24677 MFLAG=SLAPD_MOD_DYNAMIC
24678 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24680 MFLAG=SLAPD_MOD_STATIC
24681 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24684 cat >>confdefs.h <<_ACEOF
24685 #define SLAPD_OVER_COLLECT $MFLAG
24690 if test "$ol_enable_constraint" != no ; then
24691 BUILD_CONSTRAINT=$ol_enable_constraint
24692 if test "$ol_enable_constraint" = mod ; then
24693 MFLAG=SLAPD_MOD_DYNAMIC
24694 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24696 MFLAG=SLAPD_MOD_STATIC
24697 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24700 cat >>confdefs.h <<_ACEOF
24701 #define SLAPD_OVER_CONSTRAINT $MFLAG
24706 if test "$ol_enable_dds" != no ; then
24707 BUILD_DDS=$ol_enable_dds
24708 if test "$ol_enable_dds" = mod ; then
24709 MFLAG=SLAPD_MOD_DYNAMIC
24710 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24712 MFLAG=SLAPD_MOD_STATIC
24713 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24716 cat >>confdefs.h <<_ACEOF
24717 #define SLAPD_OVER_DDS $MFLAG
24722 if test "$ol_enable_deref" != no ; then
24723 BUILD_DEREF=$ol_enable_deref
24724 if test "$ol_enable_deref" = mod ; then
24725 MFLAG=SLAPD_MOD_DYNAMIC
24726 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24728 MFLAG=SLAPD_MOD_STATIC
24729 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24732 cat >>confdefs.h <<_ACEOF
24733 #define SLAPD_OVER_DEREF $MFLAG
24738 if test "$ol_enable_dyngroup" != no ; then
24739 BUILD_DYNGROUP=$ol_enable_dyngroup
24740 if test "$ol_enable_dyngroup" = mod ; then
24741 MFLAG=SLAPD_MOD_DYNAMIC
24742 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24744 MFLAG=SLAPD_MOD_STATIC
24745 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24748 cat >>confdefs.h <<_ACEOF
24749 #define SLAPD_OVER_DYNGROUP $MFLAG
24754 if test "$ol_enable_dynlist" != no ; then
24755 BUILD_DYNLIST=$ol_enable_dynlist
24756 if test "$ol_enable_dynlist" = mod ; then
24757 MFLAG=SLAPD_MOD_DYNAMIC
24758 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24760 MFLAG=SLAPD_MOD_STATIC
24761 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24764 cat >>confdefs.h <<_ACEOF
24765 #define SLAPD_OVER_DYNLIST $MFLAG
24770 if test "$ol_enable_memberof" != no ; then
24771 BUILD_MEMBEROF=$ol_enable_memberof
24772 if test "$ol_enable_memberof" = mod ; then
24773 MFLAG=SLAPD_MOD_DYNAMIC
24774 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24776 MFLAG=SLAPD_MOD_STATIC
24777 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24780 cat >>confdefs.h <<_ACEOF
24781 #define SLAPD_OVER_MEMBEROF $MFLAG
24786 if test "$ol_enable_ppolicy" != no ; then
24787 BUILD_PPOLICY=$ol_enable_ppolicy
24788 if test "$ol_enable_ppolicy" = mod ; then
24789 MFLAG=SLAPD_MOD_DYNAMIC
24790 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24792 MFLAG=SLAPD_MOD_STATIC
24793 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24796 cat >>confdefs.h <<_ACEOF
24797 #define SLAPD_OVER_PPOLICY $MFLAG
24802 if test "$ol_enable_proxycache" != no ; then
24803 BUILD_PROXYCACHE=$ol_enable_proxycache
24804 if test "$ol_enable_proxycache" = mod ; then
24805 MFLAG=SLAPD_MOD_DYNAMIC
24806 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24808 MFLAG=SLAPD_MOD_STATIC
24809 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24812 cat >>confdefs.h <<_ACEOF
24813 #define SLAPD_OVER_PROXYCACHE $MFLAG
24818 if test "$ol_enable_refint" != no ; then
24819 BUILD_REFINT=$ol_enable_refint
24820 if test "$ol_enable_refint" = mod ; then
24821 MFLAG=SLAPD_MOD_DYNAMIC
24822 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24824 MFLAG=SLAPD_MOD_STATIC
24825 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24828 cat >>confdefs.h <<_ACEOF
24829 #define SLAPD_OVER_REFINT $MFLAG
24834 if test "$ol_enable_retcode" != no ; then
24835 BUILD_RETCODE=$ol_enable_retcode
24836 if test "$ol_enable_retcode" = mod ; then
24837 MFLAG=SLAPD_MOD_DYNAMIC
24838 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24840 MFLAG=SLAPD_MOD_STATIC
24841 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24844 cat >>confdefs.h <<_ACEOF
24845 #define SLAPD_OVER_RETCODE $MFLAG
24850 if test "$ol_enable_rwm" != no ; then
24852 BUILD_RWM=$ol_enable_rwm
24853 if test "$ol_enable_rwm" = mod ; then
24854 MFLAG=SLAPD_MOD_DYNAMIC
24855 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24857 MFLAG=SLAPD_MOD_STATIC
24858 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24861 cat >>confdefs.h <<_ACEOF
24862 #define SLAPD_OVER_RWM $MFLAG
24867 if test "$ol_enable_seqmod" != no ; then
24868 BUILD_SEQMOD=$ol_enable_seqmod
24869 if test "$ol_enable_seqmod" = mod ; then
24870 MFLAG=SLAPD_MOD_DYNAMIC
24871 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24873 MFLAG=SLAPD_MOD_STATIC
24874 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24877 cat >>confdefs.h <<_ACEOF
24878 #define SLAPD_OVER_SEQMOD $MFLAG
24883 if test "$ol_enable_sssvlv" != no ; then
24884 BUILD_SSSVLV=$ol_enable_sssvlv
24885 if test "$ol_enable_sssvlv" = mod ; then
24886 MFLAG=SLAPD_MOD_DYNAMIC
24887 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24889 MFLAG=SLAPD_MOD_STATIC
24890 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24893 cat >>confdefs.h <<_ACEOF
24894 #define SLAPD_OVER_SSSVLV $MFLAG
24899 if test "$ol_enable_syncprov" != no ; then
24900 BUILD_SYNCPROV=$ol_enable_syncprov
24901 if test "$ol_enable_syncprov" = mod ; then
24902 MFLAG=SLAPD_MOD_DYNAMIC
24903 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24905 MFLAG=SLAPD_MOD_STATIC
24906 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24909 cat >>confdefs.h <<_ACEOF
24910 #define SLAPD_OVER_SYNCPROV $MFLAG
24915 if test "$ol_enable_translucent" != no ; then
24916 BUILD_TRANSLUCENT=$ol_enable_translucent
24917 if test "$ol_enable_translucent" = mod ; then
24918 MFLAG=SLAPD_MOD_DYNAMIC
24919 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24921 MFLAG=SLAPD_MOD_STATIC
24922 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24925 cat >>confdefs.h <<_ACEOF
24926 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24931 if test "$ol_enable_unique" != no ; then
24932 BUILD_UNIQUE=$ol_enable_unique
24933 if test "$ol_enable_unique" = mod ; then
24934 MFLAG=SLAPD_MOD_DYNAMIC
24935 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24937 MFLAG=SLAPD_MOD_STATIC
24938 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24941 cat >>confdefs.h <<_ACEOF
24942 #define SLAPD_OVER_UNIQUE $MFLAG
24947 if test "$ol_enable_valsort" != no ; then
24948 BUILD_VALSORT=$ol_enable_valsort
24949 if test "$ol_enable_valsort" = mod ; then
24950 MFLAG=SLAPD_MOD_DYNAMIC
24951 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24953 MFLAG=SLAPD_MOD_STATIC
24954 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24957 cat >>confdefs.h <<_ACEOF
24958 #define SLAPD_OVER_VALSORT $MFLAG
24963 if test "$ol_enable_rewrite" != no ; then
24965 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24970 if test "$ol_enable_slapi" != no ; then
24972 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24975 SLAPD_SLAPI_DEPEND=libslapi.a
24980 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24982 SLAPD_MODULES_LDFLAGS=
25082 # Check whether --with-xxinstall was given.
25083 if test "${with_xxinstall+set}" = set; then :
25084 withval=$with_xxinstall;
25089 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"
25092 ac_config_commands="$ac_config_commands default"
25096 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25097 # Let make expand exec_prefix.
25098 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25100 DEFS=-DHAVE_CONFIG_H
25104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25105 # 1. Remove the extension, and $U if already installed.
25106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25109 # will be set to the directory where LIBOBJS objects are built.
25110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25113 LIBOBJS=$ac_libobjs
25115 LTLIBOBJS=$ac_ltlibobjs
25118 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25119 as_fn_error "conditional \"AMDEP\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25122 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25123 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25126 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25127 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25132 : ${CONFIG_STATUS=./config.status}
25134 ac_clean_files_save=$ac_clean_files
25135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25141 # Generated by $as_me.
25142 # Run this file to recreate the current configuration.
25143 # Compiler output produced by configure, useful for debugging
25144 # configure, is in config.log if it exists.
25147 ac_cs_recheck=false
25150 SHELL=\${CONFIG_SHELL-$SHELL}
25153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25154 ## -------------------- ##
25155 ## M4sh Initialization. ##
25156 ## -------------------- ##
25158 # Be more Bourne compatible
25159 DUALCASE=1; export DUALCASE # for MKS sh
25160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25164 # is contrary to our usage. Disable this feature.
25165 alias -g '${1+"$@"}'='"$@"'
25166 setopt NO_GLOB_SUBST
25168 case `(set -o) 2>/dev/null` in #(
25180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25184 # Prefer a ksh shell builtin over an external printf program on Solaris,
25185 # but without wasting forks for bash or zsh.
25186 if test -z "$BASH_VERSION$ZSH_VERSION" \
25187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25188 as_echo='print -r --'
25189 as_echo_n='print -rn --'
25190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25191 as_echo='printf %s\n'
25192 as_echo_n='printf %s'
25194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25196 as_echo_n='/usr/ucb/echo -n'
25198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25199 as_echo_n_body='eval
25203 expr "X$arg" : "X\\(.*\\)$as_nl";
25204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25208 export as_echo_n_body
25209 as_echo_n='sh -c $as_echo_n_body as_echo'
25211 export as_echo_body
25212 as_echo='sh -c $as_echo_body as_echo'
25215 # The user is always right.
25216 if test "${PATH_SEPARATOR+set}" != set; then
25218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25226 # We need space, tab and new line, in precisely that order. Quoting is
25227 # there to prevent editors from complaining about space-tab.
25228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25229 # splitting by setting IFS to empty value.)
25232 # Find who we are. Look in the path if we contain no directory separator.
25234 *[\\/]* ) as_myself=$0 ;;
25235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25236 for as_dir in $PATH
25239 test -z "$as_dir" && as_dir=.
25240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25246 # We did not find ourselves, most probably we were run as `sh COMMAND'
25247 # in which case we are not to be found in the path.
25248 if test "x$as_myself" = x; then
25251 if test ! -f "$as_myself"; then
25252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25256 # Unset variables that we do not need and which cause bugs (e.g. in
25257 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25258 # suppresses any "Segmentation fault" message there. '((' could
25259 # trigger a bug in pdksh 5.2.14.
25260 for as_var in BASH_ENV ENV MAIL MAILPATH
25261 do eval test x\${$as_var+set} = xset \
25262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25275 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25278 # as_fn_error ERROR [LINENO LOG_FD]
25279 # ---------------------------------
25280 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25281 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25282 # script with status $?, using 1 if that was 0.
25285 as_status=$?; test $as_status -eq 0 && as_status=1
25287 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25290 $as_echo "$as_me: error: $1" >&2
25291 as_fn_exit $as_status
25295 # as_fn_set_status STATUS
25296 # -----------------------
25297 # Set $? to STATUS, without forking.
25298 as_fn_set_status ()
25301 } # as_fn_set_status
25303 # as_fn_exit STATUS
25304 # -----------------
25305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25309 as_fn_set_status $1
25315 # Portably unset VAR.
25318 { eval $1=; unset $1;}
25320 as_unset=as_fn_unset
25321 # as_fn_append VAR VALUE
25322 # ----------------------
25323 # Append the text in VALUE to the end of the definition contained in VAR. Take
25324 # advantage of any shell optimizations that allow amortized linear growth over
25325 # repeated appends, instead of the typical quadratic growth present in naive
25327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25328 eval 'as_fn_append ()
25339 # as_fn_arith ARG...
25340 # ------------------
25341 # Perform arithmetic evaluation on the ARGs, and store the result in the
25342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25343 # must be portable across $(()) and expr.
25344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25345 eval 'as_fn_arith ()
25352 as_val=`expr "$@" || test $? -eq 1`
25357 if expr a : '\(a\)' >/dev/null 2>&1 &&
25358 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25364 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25365 as_basename=basename
25370 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25376 as_me=`$as_basename -- "$0" ||
25377 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25378 X"$0" : 'X\(//\)$' \| \
25379 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25381 sed '/^.*\/\([^/][^/]*\)\/*$/{
25395 # Avoid depending upon Character Ranges.
25396 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25397 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25398 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25399 as_cr_digits='0123456789'
25400 as_cr_alnum=$as_cr_Letters$as_cr_digits
25402 ECHO_C= ECHO_N= ECHO_T=
25403 case `echo -n x` in #(((((
25405 case `echo 'xy\c'` in
25406 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25415 rm -f conf$$ conf$$.exe conf$$.file
25416 if test -d conf$$.dir; then
25417 rm -f conf$$.dir/conf$$.file
25420 mkdir conf$$.dir 2>/dev/null
25422 if (echo >conf$$.file) 2>/dev/null; then
25423 if ln -s conf$$.file conf$$ 2>/dev/null; then
25425 # ... but there are two gotchas:
25426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25428 # In both cases, we have to default to `cp -p'.
25429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25431 elif ln conf$$.file conf$$ 2>/dev/null; then
25439 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25440 rmdir conf$$.dir 2>/dev/null
25445 # Create "$as_dir" as a directory, including parents if necessary.
25450 -*) as_dir=./$as_dir;;
25452 test -d "$as_dir" || eval $as_mkdir_p || {
25456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25457 *) as_qdir=$as_dir;;
25459 as_dirs="'$as_qdir' $as_dirs"
25460 as_dir=`$as_dirname -- "$as_dir" ||
25461 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25462 X"$as_dir" : 'X\(//\)[^/]' \| \
25463 X"$as_dir" : 'X\(//\)$' \| \
25464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25465 $as_echo X"$as_dir" |
25466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25470 /^X\(\/\/\)[^/].*/{
25483 test -d "$as_dir" && break
25485 test -z "$as_dirs" || eval "mkdir $as_dirs"
25486 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25490 if mkdir -p . 2>/dev/null; then
25491 as_mkdir_p='mkdir -p "$as_dir"'
25493 test -d ./-p && rmdir ./-p
25497 if test -x / >/dev/null 2>&1; then
25498 as_test_x='test -x'
25500 if ls -dL / >/dev/null 2>&1; then
25507 if test -d "$1"; then
25513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25514 ???[sx]*):;;*)false;;esac;fi
25518 as_executable_p=$as_test_x
25520 # Sed expression to map a string onto a valid CPP name.
25521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25523 # Sed expression to map a string onto a valid variable name.
25524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25528 ## ----------------------------------- ##
25529 ## Main body of $CONFIG_STATUS script. ##
25530 ## ----------------------------------- ##
25532 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25535 # Save the log message, to keep $0 and so on meaningful, and to
25536 # report actual input values of CONFIG_FILES etc. instead of their
25537 # values after options handling.
25539 This file was extended by $as_me, which was
25540 generated by GNU Autoconf 2.65. Invocation command line was
25542 CONFIG_FILES = $CONFIG_FILES
25543 CONFIG_HEADERS = $CONFIG_HEADERS
25544 CONFIG_LINKS = $CONFIG_LINKS
25545 CONFIG_COMMANDS = $CONFIG_COMMANDS
25548 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25553 case $ac_config_files in *"
25554 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25557 case $ac_config_headers in *"
25558 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25563 # Files that config.status was made for.
25564 config_files="$ac_config_files"
25565 config_headers="$ac_config_headers"
25566 config_commands="$ac_config_commands"
25570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25572 \`$as_me' instantiates files and other configuration actions
25573 from templates according to the current configuration. Unless the files
25574 and actions are specified as TAGs, all are instantiated by default.
25576 Usage: $0 [OPTION]... [TAG]...
25578 -h, --help print this help, then exit
25579 -V, --version print version number and configuration settings, then exit
25580 --config print configuration, then exit
25581 -q, --quiet, --silent
25582 do not print progress messages
25583 -d, --debug don't remove temporary files
25584 --recheck update $as_me by reconfiguring in the same conditions
25585 --file=FILE[:TEMPLATE]
25586 instantiate the configuration file FILE
25587 --header=FILE[:TEMPLATE]
25588 instantiate the configuration header FILE
25590 Configuration files:
25593 Configuration headers:
25596 Configuration commands:
25599 Report bugs to <<http://www.openldap.org/its/>>."
25602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25603 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25606 configured by $0, generated by GNU Autoconf 2.65,
25607 with options \\"\$ac_cs_config\\"
25609 Copyright (C) 2009 Free Software Foundation, Inc.
25610 This config.status script is free software; the Free Software Foundation
25611 gives unlimited permission to copy, distribute and modify it."
25617 test -n "\$AWK" || AWK=awk
25620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25621 # The default lists apply if the user does not specify any file.
25627 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25628 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25639 # Handling of the options.
25640 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25642 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25643 $as_echo "$ac_cs_version"; exit ;;
25644 --config | --confi | --conf | --con | --co | --c )
25645 $as_echo "$ac_cs_config"; exit ;;
25646 --debug | --debu | --deb | --de | --d | -d )
25648 --file | --fil | --fi | --f )
25651 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25653 as_fn_append CONFIG_FILES " '$ac_optarg'"
25654 ac_need_defaults=false;;
25655 --header | --heade | --head | --hea )
25658 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25660 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25661 ac_need_defaults=false;;
25663 # Conflict between --help and --header
25664 as_fn_error "ambiguous option: \`$1'
25665 Try \`$0 --help' for more information.";;
25666 --help | --hel | -h )
25667 $as_echo "$ac_cs_usage"; exit ;;
25668 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25669 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25672 # This is an error.
25673 -*) as_fn_error "unrecognized option: \`$1'
25674 Try \`$0 --help' for more information." ;;
25676 *) as_fn_append ac_config_targets " $1"
25677 ac_need_defaults=false ;;
25683 ac_configure_extra_args=
25685 if $ac_cs_silent; then
25687 ac_configure_extra_args="$ac_configure_extra_args --silent"
25691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25692 if \$ac_cs_recheck; then
25693 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25695 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25696 CONFIG_SHELL='$SHELL'
25697 export CONFIG_SHELL
25702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25706 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25707 ## Running $as_me. ##
25713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25717 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25719 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25720 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25727 # Handling of arguments.
25728 for ac_config_target in $ac_config_targets
25730 case $ac_config_target in
25731 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25732 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25733 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25734 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25735 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25736 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25737 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25738 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25739 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25740 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25741 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25742 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25743 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25744 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25745 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25746 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25747 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25748 "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" ;;
25749 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25750 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25751 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25752 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25753 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25754 "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" ;;
25755 "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" ;;
25756 "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" ;;
25757 "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" ;;
25758 "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" ;;
25759 "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" ;;
25760 "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" ;;
25761 "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" ;;
25762 "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" ;;
25763 "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" ;;
25764 "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" ;;
25765 "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" ;;
25766 "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" ;;
25767 "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" ;;
25768 "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" ;;
25769 "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" ;;
25770 "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" ;;
25771 "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" ;;
25772 "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" ;;
25773 "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" ;;
25774 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25775 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25776 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25777 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25778 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25780 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25785 # If the user did not use the arguments to specify the items to instantiate,
25786 # then the envvar interface is used. Set only those that are not.
25787 # We use the long form for the default assignment because of an extremely
25788 # bizarre bug on SunOS 4.1.3.
25789 if $ac_need_defaults; then
25790 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25791 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25792 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25795 # Have a temporary directory for convenience. Make it in the build tree
25796 # simply because there is no reason against having it here, and in addition,
25797 # creating and moving files from /tmp can sometimes cause problems.
25798 # Hook for its removal unless debugging.
25799 # Note that there is a small window in which the directory will not be cleaned:
25800 # after its creation but before its name has been assigned to `$tmp'.
25804 trap 'exit_status=$?
25805 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25807 trap 'as_fn_exit 1' 1 2 13 15
25809 # Create a (secure) tmp directory for tmp files.
25812 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25813 test -n "$tmp" && test -d "$tmp"
25816 tmp=./conf$$-$RANDOM
25817 (umask 077 && mkdir "$tmp")
25818 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25820 # Set up the scripts for CONFIG_FILES section.
25821 # No need to generate them if there are no CONFIG_FILES.
25822 # This happens for instance with `./config.status config.h'.
25823 if test -n "$CONFIG_FILES"; then
25826 ac_cr=`echo X | tr X '\015'`
25827 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25828 # But we know of no other shell where ac_cr would be empty at this
25829 # point, so we can use a bashism as a fallback.
25830 if test "x$ac_cr" = x; then
25831 eval ac_cr=\$\'\\r\'
25833 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25834 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25837 ac_cs_awk_cr=$ac_cr
25840 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25845 echo "cat >conf$$subs.awk <<_ACEOF" &&
25846 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25848 } >conf$$subs.sh ||
25849 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25850 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25852 for ac_last_try in false false false false false :; do
25853 . ./conf$$subs.sh ||
25854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25856 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25857 if test $ac_delim_n = $ac_delim_num; then
25859 elif $ac_last_try; then
25860 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25865 rm -f conf$$subs.sh
25867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25868 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25872 s/^/S["/; s/!.*/"]=/
25882 s/\(.\{148\}\)..*/\1/
25884 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25896 s/\(.\{148\}\)..*/\1/
25898 s/["\\]/\\&/g; s/^/"/; s/$/"/
25902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25907 ' <conf$$subs.awk | sed '
25912 ' >>$CONFIG_STATUS || ac_write_fail=1
25913 rm -f conf$$subs.awk
25914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25916 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25917 for (key in S) S_is_set[key] = 1
25923 nfields = split(line, field, "@")
25925 len = length(field[1])
25926 for (i = 2; i < nfields; i++) {
25928 keylen = length(key)
25929 if (S_is_set[key]) {
25931 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25932 len += length(value) + length(field[++i])
25943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25944 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25945 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25948 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25949 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25952 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25953 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25954 # trailing colons and then remove the whole line if VPATH becomes empty
25955 # (actually we leave an empty line to preserve line numbers).
25956 if test "x$srcdir" = x.; then
25957 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25958 s/:*\$(srcdir):*/:/
25959 s/:*\${srcdir}:*/:/
25961 s/^\([^=]*=[ ]*\):*/\1/
25967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25968 fi # test -n "$CONFIG_FILES"
25970 # Set up the scripts for CONFIG_HEADERS section.
25971 # No need to generate them if there are no CONFIG_HEADERS.
25972 # This happens for instance with `./config.status Makefile'.
25973 if test -n "$CONFIG_HEADERS"; then
25974 cat >"$tmp/defines.awk" <<\_ACAWK ||
25978 # Transform confdefs.h into an awk script `defines.awk', embedded as
25979 # here-document in config.status, that substitutes the proper values into
25980 # config.h.in to produce config.h.
25982 # Create a delimiter string that does not exist in confdefs.h, to ease
25983 # handling of long lines.
25985 for ac_last_try in false false :; do
25986 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25987 if test -z "$ac_t"; then
25989 elif $ac_last_try; then
25990 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25992 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25996 # For the awk script, D is an array of macro values keyed by name,
25997 # likewise P contains macro parameters if any. Preserve backslash
25998 # newline sequences.
26000 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26002 s/.\{148\}/&'"$ac_delim"'/g
26005 s/^[ ]*#[ ]*define[ ][ ]*/ /
26012 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26014 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26018 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26019 D["\1"]=" \3\\\\\\n"\\/p
26021 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26026 s/.\{148\}/&'"$ac_delim"'/g
26031 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26034 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26036 ' <confdefs.h | sed '
26037 s/'"$ac_delim"'/"\\\
26038 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26041 for (key in D) D_is_set[key] = 1
26044 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26046 split(line, arg, " ")
26047 if (arg[1] == "#") {
26051 defundef = substr(arg[1], 2)
26054 split(mac1, mac2, "(") #)
26056 prefix = substr(line, 1, index(line, defundef) - 1)
26057 if (D_is_set[macro]) {
26058 # Preserve the white space surrounding the "#".
26059 print prefix "define", macro P[macro] D[macro]
26062 # Replace #undef with comments. This is necessary, for example,
26063 # in the case of _POSIX_SOURCE, which is predefined and required
26064 # on some systems where configure will not decide to define it.
26065 if (defundef == "undef") {
26066 print "/*", prefix defundef, macro, "*/"
26074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26075 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26076 fi # test -n "$CONFIG_HEADERS"
26079 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26084 :[FHLC]) ac_mode=$ac_tag; continue;;
26086 case $ac_mode$ac_tag in
26088 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26089 :[FH]-) ac_tag=-:-;;
26090 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26107 -) ac_f="$tmp/stdin";;
26108 *) # Look for the file first in the build tree, then in the source tree
26109 # (if the path is not absolute). The absolute path cannot be DOS-style,
26110 # because $ac_f cannot contain `:'.
26114 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26116 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26118 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26119 as_fn_append ac_file_inputs " '$ac_f'"
26122 # Let's still pretend it is `configure' which instantiates (i.e., don't
26123 # use $as_me), people would be surprised to read:
26124 # /* config.h. Generated by config.status. */
26125 configure_input='Generated from '`
26126 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26128 if test x"$ac_file" != x-; then
26129 configure_input="$ac_file. $configure_input"
26130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26131 $as_echo "$as_me: creating $ac_file" >&6;}
26133 # Neutralize special characters interpreted by sed in replacement strings.
26134 case $configure_input in #(
26135 *\&* | *\|* | *\\* )
26136 ac_sed_conf_input=`$as_echo "$configure_input" |
26137 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26138 *) ac_sed_conf_input=$configure_input;;
26142 *:-:* | *:-) cat >"$tmp/stdin" \
26143 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26148 ac_dir=`$as_dirname -- "$ac_file" ||
26149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26150 X"$ac_file" : 'X\(//\)[^/]' \| \
26151 X"$ac_file" : 'X\(//\)$' \| \
26152 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26153 $as_echo X"$ac_file" |
26154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26158 /^X\(\/\/\)[^/].*/{
26171 as_dir="$ac_dir"; as_fn_mkdir_p
26175 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26177 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26178 # A ".." for each directory in $ac_dir_suffix.
26179 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26180 case $ac_top_builddir_sub in
26181 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26182 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26185 ac_abs_top_builddir=$ac_pwd
26186 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26187 # for backward compatibility:
26188 ac_top_builddir=$ac_top_build_prefix
26191 .) # We are building in place.
26193 ac_top_srcdir=$ac_top_builddir_sub
26194 ac_abs_top_srcdir=$ac_pwd ;;
26195 [\\/]* | ?:[\\/]* ) # Absolute name.
26196 ac_srcdir=$srcdir$ac_dir_suffix;
26197 ac_top_srcdir=$srcdir
26198 ac_abs_top_srcdir=$srcdir ;;
26199 *) # Relative name.
26200 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26201 ac_top_srcdir=$ac_top_build_prefix$srcdir
26202 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26204 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26215 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26220 # If the template does not know about datarootdir, expand it.
26221 # FIXME: This hack should be removed a few years after 2.60.
26222 ac_datarootdir_hack=; ac_datarootdir_seen=
26233 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26234 *datarootdir*) ac_datarootdir_seen=yes;;
26235 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26237 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26240 ac_datarootdir_hack='
26241 s&@datadir@&$datadir&g
26242 s&@docdir@&$docdir&g
26243 s&@infodir@&$infodir&g
26244 s&@localedir@&$localedir&g
26245 s&@mandir@&$mandir&g
26246 s&\\\${datarootdir}&$datarootdir&g' ;;
26250 # Neutralize VPATH when `$srcdir' = `.'.
26251 # Shell code in configure.ac might set extrasub.
26252 # FIXME: do we really want to maintain this feature?
26253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26254 ac_sed_extra="$ac_vpsub
26257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26260 s|@configure_input@|$ac_sed_conf_input|;t t
26261 s&@top_builddir@&$ac_top_builddir_sub&;t t
26262 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26263 s&@srcdir@&$ac_srcdir&;t t
26264 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26265 s&@top_srcdir@&$ac_top_srcdir&;t t
26266 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26267 s&@builddir@&$ac_builddir&;t t
26268 s&@abs_builddir@&$ac_abs_builddir&;t t
26269 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26270 s&@INSTALL@&$ac_INSTALL&;t t
26271 $ac_datarootdir_hack
26273 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26274 || as_fn_error "could not create $ac_file" "$LINENO" 5
26276 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26277 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26278 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26280 which seems to be undefined. Please make sure it is defined." >&5
26281 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26282 which seems to be undefined. Please make sure it is defined." >&2;}
26286 -) cat "$tmp/out" && rm -f "$tmp/out";;
26287 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26289 || as_fn_error "could not create $ac_file" "$LINENO" 5
26295 if test x"$ac_file" != x-; then
26297 $as_echo "/* $configure_input */" \
26298 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26299 } >"$tmp/config.h" \
26300 || as_fn_error "could not create $ac_file" "$LINENO" 5
26301 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26303 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26306 mv "$tmp/config.h" "$ac_file" \
26307 || as_fn_error "could not create $ac_file" "$LINENO" 5
26310 $as_echo "/* $configure_input */" \
26311 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26312 || as_fn_error "could not create -" "$LINENO" 5
26314 # Compute "$ac_file"'s index in $config_headers.
26316 for _am_header in $config_headers :; do
26317 case $_am_header in
26318 "$ac_file" | "$ac_file":* )
26321 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26324 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26325 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26326 X"$ac_file" : 'X\(//\)[^/]' \| \
26327 X"$ac_file" : 'X\(//\)$' \| \
26328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26329 $as_echo X"$ac_file" |
26330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26334 /^X\(\/\/\)[^/].*/{
26346 s/.*/./; q'`/stamp-h$_am_stamp_count
26349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26350 $as_echo "$as_me: executing $ac_file commands" >&6;}
26355 case $ac_file$ac_mode in
26356 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26357 # Strip MF so we end up with the name of the file.
26358 mf=`echo "$mf" | sed -e 's/:.*$//'`
26359 # Check whether this is an Automake generated Makefile or not.
26360 # We used to match only the files named `Makefile.in', but
26361 # some people rename them; so instead we look at the file content.
26362 # Grep'ing the first line is not enough: some people post-process
26363 # each Makefile.in and add a new line on top of each file to say so.
26364 # So let's grep whole file.
26365 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26366 dirpart=`$as_dirname -- "$mf" ||
26367 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26368 X"$mf" : 'X\(//\)[^/]' \| \
26369 X"$mf" : 'X\(//\)$' \| \
26370 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26376 /^X\(\/\/\)[^/].*/{
26392 # Extract the definition of DEPDIR, am__include, and am__quote
26393 # from the Makefile without running `make'.
26394 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26395 test -z "$DEPDIR" && continue
26396 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26397 test -z "am__include" && continue
26398 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26399 # When using ansi2knr, U may be empty or an underscore; expand it
26400 U=`sed -n 's/^U = //p' < "$mf"`
26401 # Find all dependency output files, they are included files with
26402 # $(DEPDIR) in their names. We invoke sed twice because it is the
26403 # simplest approach to changing $(DEPDIR) to its actual value in the
26405 for file in `sed -n "
26406 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26407 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26408 # Make sure the directory exists.
26409 test -f "$dirpart/$file" && continue
26410 fdir=`$as_dirname -- "$file" ||
26411 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26412 X"$file" : 'X\(//\)[^/]' \| \
26413 X"$file" : 'X\(//\)$' \| \
26414 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26415 $as_echo X"$file" |
26416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26420 /^X\(\/\/\)[^/].*/{
26433 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26434 # echo "creating $dirpart/$file"
26435 echo '# dummy' > "$dirpart/$file"
26442 BACKENDSC="servers/slapd/backends.c"
26443 echo "Making $BACKENDSC"
26445 cat > $BACKENDSC << ENDX
26446 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26448 * Copyright 1998-2016 The OpenLDAP Foundation.
26449 * All rights reserved.
26451 * Redistribution and use in source and binary forms, with or without
26452 * modification, are permitted only as authorized by the OpenLDAP
26455 * A copy of this license is available in the file LICENSE in the
26456 * top-level directory of the distribution or, alternatively, at
26457 * <http://www.OpenLDAP.org/license.html>.
26459 /* This file is automatically generated by configure; please do not edit. */
26461 #include "portable.h"
26465 if test "${STATIC_BACKENDS}"; then
26466 for b in config ${STATIC_BACKENDS}; do
26467 bb=`echo "${b}" | sed -e 's/back-//'`
26468 cat >> $BACKENDSC << ENDX
26469 extern BI_init ${bb}_back_initialize;
26473 cat >> $BACKENDSC << ENDX
26475 BackendInfo slap_binfo[] = {
26478 for b in config ${STATIC_BACKENDS}; do
26479 bb=`echo "${b}" | sed -e 's/back-//'`
26480 echo " Add ${bb} ..."
26481 cat >> $BACKENDSC << ENDX
26482 { "${bb}", ${bb}_back_initialize },
26486 cat >> $BACKENDSC << ENDX
26490 /* end of generated file */
26493 OVERLAYSC="servers/slapd/overlays/statover.c"
26494 echo "Making $OVERLAYSC"
26496 cat > $OVERLAYSC << ENDX
26497 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26499 * Copyright 1998-2016 The OpenLDAP Foundation.
26500 * All rights reserved.
26502 * Redistribution and use in source and binary forms, with or without
26503 * modification, are permitted only as authorized by the OpenLDAP
26506 * A copy of this license is available in the file LICENSE in the
26507 * top-level directory of the distribution or, alternatively, at
26508 * <http://www.OpenLDAP.org/license.html>.
26510 /* This file is automatically generated by configure; please do not edit. */
26512 #include "portable.h"
26516 if test "${STATIC_OVERLAYS}"; then
26517 for o in ${STATIC_OVERLAYS}; do
26518 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26519 cat >> $OVERLAYSC << ENDX
26520 extern OV_init ${oo}_initialize;
26525 cat >> $OVERLAYSC << ENDX
26527 OverlayInit slap_oinfo[] = {
26530 if test "${STATIC_OVERLAYS}"; then
26531 for o in ${STATIC_OVERLAYS}; do
26532 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26533 echo " Add ${oo} ..."
26534 cat >> $OVERLAYSC << ENDX
26535 { "${oo}", ${oo}_initialize },
26540 cat >> $OVERLAYSC << ENDX
26544 /* end of generated file */
26547 if test "${ol_cv_mkdep}" = no; then
26548 echo '(Do not "make depend"; we do not know how to build dependencies)'
26550 echo 'Please run "make depend" to build dependencies'
26560 ac_clean_files=$ac_clean_files_save
26562 test $ac_write_fail = 0 ||
26563 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26566 # configure is writing to config.log, and then calls config.status.
26567 # config.status does its own redirection, appending to config.log.
26568 # Unfortunately, on DOS this fails, as config.log is still kept open
26569 # by configure, so config.status won't be able to write to it; its
26570 # output is simply discarded. So we exec the FD to /dev/null,
26571 # effectively closing config.log, so it can be properly (re)opened and
26572 # appended to by config.status. When coming back to configure, we
26573 # need to make the FD available again.
26574 if test "$no_create" != yes; then
26576 ac_config_status_args=
26577 test "$silent" = yes &&
26578 ac_config_status_args="$ac_config_status_args --quiet"
26580 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26582 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26583 # would make configure fail if this is the last instruction.
26584 $ac_cs_success || as_fn_exit $?
26586 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26588 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}