2 # From configure.in Id: 1d890c0e9e803aa5e0cf51a1d63ad69fb1670555 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65.
6 # Copyright 1998-2017 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
769 SLAPD_DYNAMIC_OVERLAYS
770 SLAPD_STATIC_OVERLAYS
771 SLAPD_DYNAMIC_BACKENDS
772 SLAPD_STATIC_BACKENDS
774 SLAPD_MODULES_LDFLAGS
775 SLAPD_MODULES_CPPFLAGS
867 OPENLDAP_RELEASE_DATE
877 INSTALL_STRIP_PROGRAM
930 program_transform_name
943 enable_option_checking
958 enable_xxslapdoptions
972 enable_xxslapbackends
989 enable_xxslapoverlays
1015 enable_dependency_tracking
1022 ac_precious_vars='build_alias
1033 # Initialize some variables set by options.
1035 ac_init_version=false
1036 ac_unrecognized_opts=
1037 ac_unrecognized_sep=
1038 # The variables have the same names as the options, with
1039 # dashes changed to underlines.
1040 cache_file=/dev/null
1047 program_transform_name=s,x,x,
1055 # Installation directory options.
1056 # These are left unexpanded so users can "make install exec_prefix=/foo"
1057 # and all the variables that are supposed to be based on exec_prefix
1058 # by default will actually change.
1059 # Use braces instead of parens because sh, perl, etc. also accept them.
1060 # (The list follows the same order as the GNU Coding Standards.)
1061 bindir='${exec_prefix}/bin'
1062 sbindir='${exec_prefix}/sbin'
1063 libexecdir='${exec_prefix}/libexec'
1064 datarootdir='${prefix}/share'
1065 datadir='${datarootdir}'
1066 sysconfdir='${prefix}/etc'
1067 sharedstatedir='${prefix}/com'
1068 localstatedir='${prefix}/var'
1069 includedir='${prefix}/include'
1070 oldincludedir='/usr/include'
1071 docdir='${datarootdir}/doc/${PACKAGE}'
1072 infodir='${datarootdir}/info'
1077 libdir='${exec_prefix}/lib'
1078 localedir='${datarootdir}/locale'
1079 mandir='${datarootdir}/man'
1085 # If the previous option needs an argument, assign it.
1086 if test -n "$ac_prev"; then
1087 eval $ac_prev=\$ac_option
1093 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1097 # Accept the important Cygnus configure options, so we can diagnose typos.
1099 case $ac_dashdash$ac_option in
1103 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1105 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1106 bindir=$ac_optarg ;;
1108 -build | --build | --buil | --bui | --bu)
1109 ac_prev=build_alias ;;
1110 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1111 build_alias=$ac_optarg ;;
1113 -cache-file | --cache-file | --cache-fil | --cache-fi \
1114 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1115 ac_prev=cache_file ;;
1116 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1117 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1118 cache_file=$ac_optarg ;;
1120 --config-cache | -C)
1121 cache_file=config.cache ;;
1123 -datadir | --datadir | --datadi | --datad)
1125 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1126 datadir=$ac_optarg ;;
1128 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1129 | --dataroo | --dataro | --datar)
1130 ac_prev=datarootdir ;;
1131 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1132 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1133 datarootdir=$ac_optarg ;;
1135 -disable-* | --disable-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid feature name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "enable_$ac_useropt"
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval enable_$ac_useropt=no ;;
1151 -docdir | --docdir | --docdi | --doc | --do)
1153 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1154 docdir=$ac_optarg ;;
1156 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1158 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1159 dvidir=$ac_optarg ;;
1161 -enable-* | --enable-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error "invalid feature name: $ac_useropt"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1170 "enable_$ac_useropt"
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1175 eval enable_$ac_useropt=\$ac_optarg ;;
1177 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1178 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1179 | --exec | --exe | --ex)
1180 ac_prev=exec_prefix ;;
1181 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1182 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1183 | --exec=* | --exe=* | --ex=*)
1184 exec_prefix=$ac_optarg ;;
1186 -gas | --gas | --ga | --g)
1187 # Obsolete; use --with-gas.
1190 -help | --help | --hel | --he | -h)
1191 ac_init_help=long ;;
1192 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1193 ac_init_help=recursive ;;
1194 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1195 ac_init_help=short ;;
1197 -host | --host | --hos | --ho)
1198 ac_prev=host_alias ;;
1199 -host=* | --host=* | --hos=* | --ho=*)
1200 host_alias=$ac_optarg ;;
1202 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1204 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1206 htmldir=$ac_optarg ;;
1208 -includedir | --includedir | --includedi | --included | --include \
1209 | --includ | --inclu | --incl | --inc)
1210 ac_prev=includedir ;;
1211 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1212 | --includ=* | --inclu=* | --incl=* | --inc=*)
1213 includedir=$ac_optarg ;;
1215 -infodir | --infodir | --infodi | --infod | --info | --inf)
1217 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1218 infodir=$ac_optarg ;;
1220 -libdir | --libdir | --libdi | --libd)
1222 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1223 libdir=$ac_optarg ;;
1225 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1226 | --libexe | --libex | --libe)
1227 ac_prev=libexecdir ;;
1228 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1229 | --libexe=* | --libex=* | --libe=*)
1230 libexecdir=$ac_optarg ;;
1232 -localedir | --localedir | --localedi | --localed | --locale)
1233 ac_prev=localedir ;;
1234 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1235 localedir=$ac_optarg ;;
1237 -localstatedir | --localstatedir | --localstatedi | --localstated \
1238 | --localstate | --localstat | --localsta | --localst | --locals)
1239 ac_prev=localstatedir ;;
1240 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1241 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1242 localstatedir=$ac_optarg ;;
1244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1247 mandir=$ac_optarg ;;
1249 -nfp | --nfp | --nf)
1250 # Obsolete; use --without-fp.
1253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1254 | --no-cr | --no-c | -n)
1257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1263 | --oldin | --oldi | --old | --ol | --o)
1264 ac_prev=oldincludedir ;;
1265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1268 oldincludedir=$ac_optarg ;;
1270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1273 prefix=$ac_optarg ;;
1275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1276 | --program-pre | --program-pr | --program-p)
1277 ac_prev=program_prefix ;;
1278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1280 program_prefix=$ac_optarg ;;
1282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1283 | --program-suf | --program-su | --program-s)
1284 ac_prev=program_suffix ;;
1285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1287 program_suffix=$ac_optarg ;;
1289 -program-transform-name | --program-transform-name \
1290 | --program-transform-nam | --program-transform-na \
1291 | --program-transform-n | --program-transform- \
1292 | --program-transform | --program-transfor \
1293 | --program-transfo | --program-transf \
1294 | --program-trans | --program-tran \
1295 | --progr-tra | --program-tr | --program-t)
1296 ac_prev=program_transform_name ;;
1297 -program-transform-name=* | --program-transform-name=* \
1298 | --program-transform-nam=* | --program-transform-na=* \
1299 | --program-transform-n=* | --program-transform-=* \
1300 | --program-transform=* | --program-transfor=* \
1301 | --program-transfo=* | --program-transf=* \
1302 | --program-trans=* | --program-tran=* \
1303 | --progr-tra=* | --program-tr=* | --program-t=*)
1304 program_transform_name=$ac_optarg ;;
1306 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1308 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1309 pdfdir=$ac_optarg ;;
1311 -psdir | --psdir | --psdi | --psd | --ps)
1313 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317 | -silent | --silent | --silen | --sile | --sil)
1320 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1322 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1324 sbindir=$ac_optarg ;;
1326 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1327 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1328 | --sharedst | --shareds | --shared | --share | --shar \
1330 ac_prev=sharedstatedir ;;
1331 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1332 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1333 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1335 sharedstatedir=$ac_optarg ;;
1337 -site | --site | --sit)
1339 -site=* | --site=* | --sit=*)
1342 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1344 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1345 srcdir=$ac_optarg ;;
1347 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1348 | --syscon | --sysco | --sysc | --sys | --sy)
1349 ac_prev=sysconfdir ;;
1350 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1351 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1352 sysconfdir=$ac_optarg ;;
1354 -target | --target | --targe | --targ | --tar | --ta | --t)
1355 ac_prev=target_alias ;;
1356 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1357 target_alias=$ac_optarg ;;
1359 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1362 -version | --version | --versio | --versi | --vers | -V)
1363 ac_init_version=: ;;
1366 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1367 # Reject names that are not valid shell variable names.
1368 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369 as_fn_error "invalid package name: $ac_useropt"
1370 ac_useropt_orig=$ac_useropt
1371 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372 case $ac_user_opts in
1376 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1377 ac_unrecognized_sep=', ';;
1379 eval with_$ac_useropt=\$ac_optarg ;;
1381 -without-* | --without-*)
1382 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385 as_fn_error "invalid package name: $ac_useropt"
1386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1395 eval with_$ac_useropt=no ;;
1398 # Obsolete; use --with-x.
1401 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1402 | --x-incl | --x-inc | --x-in | --x-i)
1403 ac_prev=x_includes ;;
1404 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1405 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1406 x_includes=$ac_optarg ;;
1408 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1409 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1410 ac_prev=x_libraries ;;
1411 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1412 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1413 x_libraries=$ac_optarg ;;
1415 -*) as_fn_error "unrecognized option: \`$ac_option'
1416 Try \`$0 --help' for more information."
1420 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1421 # Reject names that are not valid shell variable names.
1422 case $ac_envvar in #(
1423 '' | [0-9]* | *[!_$as_cr_alnum]* )
1424 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1426 eval $ac_envvar=\$ac_optarg
1427 export $ac_envvar ;;
1430 # FIXME: should be removed in autoconf 3.0.
1431 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1432 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1433 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1434 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1440 if test -n "$ac_prev"; then
1441 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1442 as_fn_error "missing argument to $ac_option"
1445 if test -n "$ac_unrecognized_opts"; then
1446 case $enable_option_checking in
1448 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1449 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1453 # Check all directory arguments for consistency.
1454 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1455 datadir sysconfdir sharedstatedir localstatedir includedir \
1456 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1457 libdir localedir mandir
1459 eval ac_val=\$$ac_var
1460 # Remove trailing slashes.
1463 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1464 eval $ac_var=\$ac_val;;
1466 # Be sure to have absolute directory names.
1468 [\\/$]* | ?:[\\/]* ) continue;;
1469 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1471 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1474 # There might be people who depend on the old broken behavior: `$host'
1475 # used to hold the argument of --host etc.
1476 # FIXME: To remove some day.
1479 target=$target_alias
1481 # FIXME: To remove some day.
1482 if test "x$host_alias" != x; then
1483 if test "x$build_alias" = x; then
1484 cross_compiling=maybe
1485 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1486 If a cross compiler is detected then cross compile mode will be used." >&2
1487 elif test "x$build_alias" != "x$host_alias"; then
1493 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1495 test "$silent" = yes && exec 6>/dev/null
1498 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1499 ac_ls_di=`ls -di .` &&
1500 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1501 as_fn_error "working directory cannot be determined"
1502 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1503 as_fn_error "pwd does not report name of working directory"
1506 # Find the source files, if location was not specified.
1507 if test -z "$srcdir"; then
1508 ac_srcdir_defaulted=yes
1509 # Try the directory containing this script, then the parent directory.
1510 ac_confdir=`$as_dirname -- "$as_myself" ||
1511 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1512 X"$as_myself" : 'X\(//\)[^/]' \| \
1513 X"$as_myself" : 'X\(//\)$' \| \
1514 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1515 $as_echo X"$as_myself" |
1516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1534 if test ! -r "$srcdir/$ac_unique_file"; then
1538 ac_srcdir_defaulted=no
1540 if test ! -r "$srcdir/$ac_unique_file"; then
1541 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1542 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1544 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1546 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1548 # When building in place, set srcdir=.
1549 if test "$ac_abs_confdir" = "$ac_pwd"; then
1552 # Remove unnecessary trailing slashes from srcdir.
1553 # Double slashes in file names in object file debugging info
1554 # mess up M-x gdb in Emacs.
1556 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1558 for ac_var in $ac_precious_vars; do
1559 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1560 eval ac_env_${ac_var}_value=\$${ac_var}
1561 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1562 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1566 # Report the --help message.
1568 if test "$ac_init_help" = "long"; then
1569 # Omit some internal or obsolete options to make the list less imposing.
1570 # This message is too long to be a string in the A/UX 3.1 sh.
1572 \`configure' configures this package to adapt to many kinds of systems.
1574 Usage: $0 [OPTION]... [VAR=VALUE]...
1576 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1577 VAR=VALUE. See below for descriptions of some of the useful variables.
1579 Defaults for the options are specified in brackets.
1582 -h, --help display this help and exit
1583 --help=short display options specific to this package
1584 --help=recursive display the short help of all the included packages
1585 -V, --version display version information and exit
1586 -q, --quiet, --silent do not print \`checking...' messages
1587 --cache-file=FILE cache test results in FILE [disabled]
1588 -C, --config-cache alias for \`--cache-file=config.cache'
1589 -n, --no-create do not create output files
1590 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1592 Installation directories:
1593 --prefix=PREFIX install architecture-independent files in PREFIX
1594 [$ac_default_prefix]
1595 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1598 By default, \`make install' will install all the files in
1599 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1600 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1601 for instance \`--prefix=\$HOME'.
1603 For better control, use the options below.
1605 Fine tuning of the installation directories:
1606 --bindir=DIR user executables [EPREFIX/bin]
1607 --sbindir=DIR system admin executables [EPREFIX/sbin]
1608 --libexecdir=DIR program executables [EPREFIX/libexec]
1609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1612 --libdir=DIR object code libraries [EPREFIX/lib]
1613 --includedir=DIR C header files [PREFIX/include]
1614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1615 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1616 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1617 --infodir=DIR info documentation [DATAROOTDIR/info]
1618 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1619 --mandir=DIR man documentation [DATAROOTDIR/man]
1620 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1621 --htmldir=DIR html documentation [DOCDIR]
1622 --dvidir=DIR dvi documentation [DOCDIR]
1623 --pdfdir=DIR pdf documentation [DOCDIR]
1624 --psdir=DIR ps documentation [DOCDIR]
1630 --program-prefix=PREFIX prepend PREFIX to installed program names
1631 --program-suffix=SUFFIX append SUFFIX to installed program names
1632 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1635 --build=BUILD configure for building on BUILD [guessed]
1636 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1637 --target=TARGET configure for building compilers for TARGET [HOST]
1641 if test -n "$ac_init_help"; then
1646 --disable-option-checking ignore unrecognized --enable/--with options
1647 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1648 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1649 --enable-debug enable debugging no|yes|traditional [yes]
1650 --enable-dynamic enable linking built binaries with dynamic libs [no]
1651 --enable-syslog enable syslog support [auto]
1652 --enable-proctitle enable proctitle support [yes]
1653 --enable-ipv6 enable IPv6 support [auto]
1654 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1656 SLAPD (Standalone LDAP Daemon) Options:
1657 --enable-slapd enable building slapd [yes]
1658 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1659 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1660 --enable-cleartext enable cleartext passwords [yes]
1661 --enable-crypt enable crypt(3) passwords [no]
1662 --enable-lmpasswd enable LAN Manager passwords [no]
1663 --enable-spasswd enable (Cyrus) SASL password verification [no]
1664 --enable-modules enable dynamic module support [no]
1665 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1666 --enable-rlookups enable reverse lookups of client hostnames [no]
1667 --enable-slapi enable SLAPI support (experimental) [no]
1668 --enable-slp enable SLPv2 support [no]
1669 --enable-wrappers enable tcp wrapper support [no]
1671 SLAPD Backend Options:
1672 --enable-backends enable all available backends no|yes|mod
1673 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]
1674 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1675 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]
1676 --enable-ldap enable ldap backend no|yes|mod [no]
1677 --enable-mdb enable mdb database backend no|yes|mod [yes]
1678 --enable-meta enable metadirectory backend no|yes|mod [no]
1679 --enable-monitor enable monitor backend no|yes|mod [yes]
1680 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1681 --enable-null enable null backend no|yes|mod [no]
1682 --enable-passwd enable passwd backend no|yes|mod [no]
1683 --enable-perl enable perl backend no|yes|mod [no]
1684 --enable-relay enable relay backend no|yes|mod [yes]
1685 --enable-shell enable shell backend no|yes|mod [no]
1686 --enable-sock enable sock backend no|yes|mod [no]
1687 --enable-sql enable sql backend no|yes|mod [no]
1689 SLAPD Overlay Options:
1690 --enable-overlays enable all available overlays no|yes|mod
1691 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1692 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1693 --enable-collect Collect overlay no|yes|mod [no]
1694 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1695 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1696 --enable-deref Dereference overlay no|yes|mod [no]
1697 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1698 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1699 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1700 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1701 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1702 --enable-refint Referential Integrity overlay no|yes|mod [no]
1703 --enable-retcode Return Code testing overlay no|yes|mod [no]
1704 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1705 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1706 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1707 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1708 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1709 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1710 --enable-valsort Value Sorting overlay no|yes|mod [no]
1712 Library Generation & Linking Options
1713 --enable-static[=PKGS] build static libraries [default=yes]
1714 --enable-shared[=PKGS] build shared libraries [default=yes]
1715 --enable-fast-install[=PKGS]
1716 optimize for fast installation [default=yes]
1717 --disable-dependency-tracking speeds up one-time build
1718 --enable-dependency-tracking do not reject slow dependency extractors
1719 --disable-libtool-lock avoid locking (might break parallel builds)
1722 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1723 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1724 --with-subdir=DIR change default subdirectory used for installs
1725 --with-cyrus-sasl with Cyrus SASL support [auto]
1726 --with-fetch with fetch(3) URL support [auto]
1727 --with-threads with threads [auto]
1728 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1729 --with-yielding-select with implicitly yielding select [auto]
1730 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1731 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1732 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1733 --with-pic try to use only PIC/non-PIC objects [default=use
1735 --with-tags[=TAGS] include additional configurations [automatic]
1737 See INSTALL file for further details.
1739 Some influential environment variables:
1740 CC C compiler command
1741 CFLAGS C compiler flags
1742 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1743 nonstandard directory <lib dir>
1744 LIBS libraries to pass to the linker, e.g. -l<library>
1745 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1746 you have headers in a nonstandard directory <include dir>
1749 Use these variables to override the choices made by `configure' or to help
1750 it to find libraries and programs with nonstandard names/locations.
1752 Report bugs to the package provider.
1757 if test "$ac_init_help" = "recursive"; then
1758 # If there are subdirs, report their specific --help.
1759 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1760 test -d "$ac_dir" ||
1761 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1769 # A ".." for each directory in $ac_dir_suffix.
1770 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1771 case $ac_top_builddir_sub in
1772 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1773 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1776 ac_abs_top_builddir=$ac_pwd
1777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1778 # for backward compatibility:
1779 ac_top_builddir=$ac_top_build_prefix
1782 .) # We are building in place.
1784 ac_top_srcdir=$ac_top_builddir_sub
1785 ac_abs_top_srcdir=$ac_pwd ;;
1786 [\\/]* | ?:[\\/]* ) # Absolute name.
1787 ac_srcdir=$srcdir$ac_dir_suffix;
1788 ac_top_srcdir=$srcdir
1789 ac_abs_top_srcdir=$srcdir ;;
1791 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1792 ac_top_srcdir=$ac_top_build_prefix$srcdir
1793 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797 cd "$ac_dir" || { ac_status=$?; continue; }
1798 # Check for guested configure.
1799 if test -f "$ac_srcdir/configure.gnu"; then
1801 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1802 elif test -f "$ac_srcdir/configure"; then
1804 $SHELL "$ac_srcdir/configure" --help=recursive
1806 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1808 cd "$ac_pwd" || { ac_status=$?; break; }
1812 test -n "$ac_init_help" && exit $ac_status
1813 if $ac_init_version; then
1816 generated by GNU Autoconf 2.65
1818 Copyright (C) 2009 Free Software Foundation, Inc.
1819 This configure script is free software; the Free Software Foundation
1820 gives unlimited permission to copy, distribute and modify it.
1822 Copyright 1998-2017 The OpenLDAP Foundation. All rights reserved.
1823 Restrictions apply, see COPYRIGHT and LICENSE files.
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_compile
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 $as_test_x conftest$ac_exeext
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_link
1916 # ac_fn_c_try_cpp LINENO
1917 # ----------------------
1918 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } >/dev/null && {
1938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1939 test ! -s conftest.err
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 as_fn_set_status $ac_retval
1953 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954 # -------------------------------------------------------
1955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956 # the include files in INCLUDES and setting the cache variable VAR
1958 ac_fn_c_check_header_mongrel ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1971 # Is the header compilable?
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973 $as_echo_n "checking $2 usability... " >&6; }
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1979 if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1982 ac_header_compiler=no
1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986 $as_echo "$ac_header_compiler" >&6; }
1988 # Is the header present?
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990 $as_echo_n "checking $2 presence... " >&6; }
1991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992 /* end confdefs.h. */
1995 if ac_fn_c_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1998 ac_header_preproc=no
2000 rm -f conftest.err conftest.$ac_ext
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002 $as_echo "$ac_header_preproc" >&6; }
2004 # So? What about this header?
2005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024 ## --------------------------------------------- ##
2025 ## Report this to <http://www.openldap.org/its/> ##
2026 ## --------------------------------------------- ##
2028 ) | sed "s/^/$as_me: WARNING: /" >&2
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2036 eval "$3=\$ac_header_compiler"
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2042 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2044 } # ac_fn_c_check_header_mongrel
2046 # ac_fn_c_try_run LINENO
2047 # ----------------------
2048 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2049 # that executables *can* be run.
2052 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2053 if { { ac_try="$ac_link"
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_link") 2>&5
2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2063 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2064 { { case "(($ac_try" in
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_try") 2>&5
2072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2073 test $ac_status = 0; }; }; then :
2076 $as_echo "$as_me: program exited with status $ac_status" >&5
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2080 ac_retval=$ac_status
2082 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2084 as_fn_set_status $ac_retval
2088 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2089 # -------------------------------------------------------
2090 # Tests whether HEADER exists and can be compiled using the include files in
2091 # INCLUDES, setting the cache variable VAR accordingly.
2092 ac_fn_c_check_header_compile ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2096 $as_echo_n "checking for $2... " >&6; }
2097 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2098 $as_echo_n "(cached) " >&6
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2105 if ac_fn_c_try_compile "$LINENO"; then :
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117 } # ac_fn_c_check_header_compile
2119 # ac_fn_c_check_func LINENO FUNC VAR
2120 # ----------------------------------
2121 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2122 ac_fn_c_check_func ()
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2128 $as_echo_n "(cached) " >&6
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2132 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2134 #define $2 innocuous_$2
2136 /* System header to define __stub macros and hopefully few prototypes,
2137 which can conflict with char $2 (); below.
2138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2139 <limits.h> exists even on freestanding compilers. */
2142 # include <limits.h>
2144 # include <assert.h>
2149 /* Override any GCC internal prototype to avoid an error.
2150 Use char because int might match the return type of a GCC
2151 builtin and then its argument prototype would still apply. */
2156 /* The GNU C library defines this for functions which it implements
2157 to always fail with ENOSYS. Some functions are actually named
2158 something starting with __ and the normal name is an alias. */
2159 #if defined __stub_$2 || defined __stub___$2
2171 if ac_fn_c_try_link "$LINENO"; then :
2176 rm -f core conftest.err conftest.$ac_objext \
2177 conftest$ac_exeext conftest.$ac_ext
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181 $as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2184 } # ac_fn_c_check_func
2186 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2187 # -------------------------------------------
2188 # Tests whether TYPE exists after having included INCLUDES, setting cache
2189 # variable VAR accordingly.
2190 ac_fn_c_check_type ()
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194 $as_echo_n "checking for $2... " >&6; }
2195 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2196 $as_echo_n "(cached) " >&6
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2211 if ac_fn_c_try_compile "$LINENO"; then :
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2224 if ac_fn_c_try_compile "$LINENO"; then :
2229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2238 } # ac_fn_c_check_type
2240 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2241 # ----------------------------------------------------
2242 # Tries to find if the field MEMBER exists in type AGGR, after including
2243 # INCLUDES, setting cache variable VAR accordingly.
2244 ac_fn_c_check_member ()
2246 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2248 $as_echo_n "checking for $2.$3... " >&6; }
2249 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2250 $as_echo_n "(cached) " >&6
2252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2253 /* end confdefs.h. */
2265 if ac_fn_c_try_compile "$LINENO"; then :
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2275 if (sizeof ac_aggr.$3)
2281 if ac_fn_c_try_compile "$LINENO"; then :
2286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2295 } # ac_fn_c_check_member
2297 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2298 # --------------------------------------------
2299 # Tries to find the compile-time value of EXPR in a program that includes
2300 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2302 ac_fn_c_compute_int ()
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if test "$cross_compiling" = yes; then
2306 # Depending upon the size, compute the lo and hi bounds.
2307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308 /* end confdefs.h. */
2313 static int test_array [1 - 2 * !(($2) >= 0)];
2320 if ac_fn_c_try_compile "$LINENO"; then :
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2329 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337 ac_hi=$ac_mid; break
2339 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2340 if test $ac_lo -le $ac_mid; then
2344 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2355 static int test_array [1 - 2 * !(($2) < 0)];
2362 if ac_fn_c_try_compile "$LINENO"; then :
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2371 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379 ac_lo=$ac_mid; break
2381 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2382 if test $ac_mid -le $ac_hi; then
2386 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 # Binary search between lo and hi bounds.
2397 while test "x$ac_lo" != "x$ac_hi"; do
2398 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2400 /* end confdefs.h. */
2405 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2412 if ac_fn_c_try_compile "$LINENO"; then :
2415 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2427 static long int longval () { return $2; }
2428 static unsigned long int ulongval () { return $2; }
2435 FILE *f = fopen ("conftest.val", "w");
2440 long int i = longval ();
2443 fprintf (f, "%ld", i);
2447 unsigned long int i = ulongval ();
2450 fprintf (f, "%lu", i);
2452 /* Do not output a trailing newline, as this causes \r\n confusion
2453 on some platforms. */
2454 return ferror (f) || fclose (f) != 0;
2460 if ac_fn_c_try_run "$LINENO"; then :
2461 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2466 conftest.$ac_objext conftest.beam conftest.$ac_ext
2470 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2471 as_fn_set_status $ac_retval
2473 } # ac_fn_c_compute_int
2474 cat >config.log <<_ACEOF
2475 This file contains any messages produced by compilers while
2476 running configure, to aid debugging if configure makes a mistake.
2478 It was created by $as_me, which was
2479 generated by GNU Autoconf 2.65. Invocation command line was
2491 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2492 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2493 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2494 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2495 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2497 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2498 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2500 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2501 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2502 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2503 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2504 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2505 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2506 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 $as_echo "PATH: $as_dir"
2531 # Keep a trace of the command line.
2532 # Strip out --no-create and --no-recursion so they do not pile up.
2533 # Strip out --silent because we don't want to record it for future runs.
2534 # Also quote any args containing shell meta-characters.
2535 # Make two passes to allow for proper duplicate-argument suppression.
2539 ac_must_keep_next=false
2545 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2546 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2547 | -silent | --silent | --silen | --sile | --sil)
2550 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2553 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2555 as_fn_append ac_configure_args1 " '$ac_arg'"
2556 if test $ac_must_keep_next = true; then
2557 ac_must_keep_next=false # Got value, back to normal.
2560 *=* | --config-cache | -C | -disable-* | --disable-* \
2561 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2562 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2563 | -with-* | --with-* | -without-* | --without-* | --x)
2564 case "$ac_configure_args0 " in
2565 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2568 -* ) ac_must_keep_next=true ;;
2571 as_fn_append ac_configure_args " '$ac_arg'"
2576 { ac_configure_args0=; unset ac_configure_args0;}
2577 { ac_configure_args1=; unset ac_configure_args1;}
2579 # When interrupted or exit'd, cleanup temporary files, and complete
2580 # config.log. We remove comments because anyway the quotes in there
2581 # would cause problems or look ugly.
2582 # WARNING: Use '\'' to represent an apostrophe within the trap.
2583 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2584 trap 'exit_status=$?
2585 # Save into config.log some information that might help in debugging.
2590 ## ---------------- ##
2591 ## Cache variables. ##
2592 ## ---------------- ##
2595 # The following way of writing the cache mishandles newlines in values,
2597 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2598 eval ac_val=\$$ac_var
2602 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2606 _ | IFS | as_nl) ;; #(
2607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2608 *) { eval $ac_var=; unset $ac_var;} ;;
2613 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2614 *${as_nl}ac_space=\ *)
2616 "s/'\''/'\''\\\\'\'''\''/g;
2617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2628 ## ----------------- ##
2629 ## Output variables. ##
2630 ## ----------------- ##
2633 for ac_var in $ac_subst_vars
2635 eval ac_val=\$$ac_var
2637 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2639 $as_echo "$ac_var='\''$ac_val'\''"
2643 if test -n "$ac_subst_files"; then
2645 ## ------------------- ##
2646 ## File substitutions. ##
2647 ## ------------------- ##
2650 for ac_var in $ac_subst_files
2652 eval ac_val=\$$ac_var
2654 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2656 $as_echo "$ac_var='\''$ac_val'\''"
2661 if test -s confdefs.h; then
2671 test "$ac_signal" != 0 &&
2672 $as_echo "$as_me: caught signal $ac_signal"
2673 $as_echo "$as_me: exit $exit_status"
2675 rm -f core *.core core.conftest.* &&
2676 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2679 for ac_signal in 1 2 13 15; do
2680 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2684 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2685 rm -f -r conftest* confdefs.h
2687 $as_echo "/* confdefs.h */" > confdefs.h
2689 # Predefined preprocessor variables.
2691 cat >>confdefs.h <<_ACEOF
2692 #define PACKAGE_NAME "$PACKAGE_NAME"
2695 cat >>confdefs.h <<_ACEOF
2696 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2703 cat >>confdefs.h <<_ACEOF
2704 #define PACKAGE_STRING "$PACKAGE_STRING"
2707 cat >>confdefs.h <<_ACEOF
2708 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2711 cat >>confdefs.h <<_ACEOF
2712 #define PACKAGE_URL "$PACKAGE_URL"
2716 # Let the site file select an alternate cache file if it wants to.
2717 # Prefer an explicitly selected file to automatically selected ones.
2720 if test -n "$CONFIG_SITE"; then
2721 ac_site_file1=$CONFIG_SITE
2722 elif test "x$prefix" != xNONE; then
2723 ac_site_file1=$prefix/share/config.site
2724 ac_site_file2=$prefix/etc/config.site
2726 ac_site_file1=$ac_default_prefix/share/config.site
2727 ac_site_file2=$ac_default_prefix/etc/config.site
2729 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2731 test "x$ac_site_file" = xNONE && continue
2732 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2734 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2735 sed 's/^/| /' "$ac_site_file" >&5
2741 # Check that the precious variables saved in the cache have kept the same
2743 ac_cache_corrupted=false
2744 for ac_var in $ac_precious_vars; do
2745 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2746 eval ac_new_set=\$ac_env_${ac_var}_set
2747 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2748 eval ac_new_val=\$ac_env_${ac_var}_value
2749 case $ac_old_set,$ac_new_set in
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2752 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2753 ac_cache_corrupted=: ;;
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2756 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2757 ac_cache_corrupted=: ;;
2760 if test "x$ac_old_val" != "x$ac_new_val"; then
2761 # differences in whitespace do not lead to failure.
2762 ac_old_val_w=`echo x $ac_old_val`
2763 ac_new_val_w=`echo x $ac_new_val`
2764 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2766 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2767 ac_cache_corrupted=:
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2770 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2771 eval $ac_var=\$ac_old_val
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2774 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2776 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2779 # Pass precious variables to config.status.
2780 if test "$ac_new_set" = set; then
2782 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2783 *) ac_arg=$ac_var=$ac_new_val ;;
2785 case " $ac_configure_args " in
2786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2787 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2791 if $ac_cache_corrupted; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2795 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2796 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2798 ## -------------------- ##
2799 ## Main body of script. ##
2800 ## -------------------- ##
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 for ac_dir in build "$srcdir"/build; do
2837 for ac_t in install-sh install.sh shtool; do
2838 if test -f "$ac_dir/$ac_t"; then
2840 ac_install_sh="$ac_aux_dir/$ac_t -c"
2845 if test -z "$ac_aux_dir"; then
2846 as_fn_error "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2849 # These three variables are undocumented and unsupported,
2850 # and are intended to be withdrawn in a future Autoconf release.
2851 # They can cause serious problems if a builder's source tree is in a directory
2852 # whose full name contains unusual characters.
2853 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2854 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2855 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2858 eval `$ac_aux_dir/version.sh`
2859 if test -z "$OL_STRING"; then
2860 as_fn_error "could not determine version" "$LINENO" 5
2863 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2864 ac_cv_shtool="$ac_aux_dir/shtool"
2866 as_fn_error "no shtool found in $ac_aux_dir" "$LINENO" 5
2869 SHTOOL="$ac_cv_shtool"
2873 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2874 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2878 if test -d $ac_aux_dir/../.git; then
2879 OPENLDAP_REPO="(from Git clone) "
2880 elif test -d $ac_aux_dir/CVS; then
2881 OPENLDAP_REPO="(from CVS checkout) "
2884 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2886 # Make sure we can run config.sub.
2887 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2888 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2891 $as_echo_n "checking build system type... " >&6; }
2892 if test "${ac_cv_build+set}" = set; then :
2893 $as_echo_n "(cached) " >&6
2895 ac_build_alias=$build_alias
2896 test "x$ac_build_alias" = x &&
2897 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2898 test "x$ac_build_alias" = x &&
2899 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2900 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2901 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2905 $as_echo "$ac_cv_build" >&6; }
2906 case $ac_cv_build in
2908 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2911 ac_save_IFS=$IFS; IFS='-'
2917 # Remember, the first character of IFS is used to create $*,
2918 # except with old shells:
2921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2925 $as_echo_n "checking host system type... " >&6; }
2926 if test "${ac_cv_host+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2929 if test "x$host_alias" = x; then
2930 ac_cv_host=$ac_cv_build
2932 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2933 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2938 $as_echo "$ac_cv_host" >&6; }
2941 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2944 ac_save_IFS=$IFS; IFS='-'
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2954 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2958 $as_echo_n "checking target system type... " >&6; }
2959 if test "${ac_cv_target+set}" = set; then :
2960 $as_echo_n "(cached) " >&6
2962 if test "x$target_alias" = x; then
2963 ac_cv_target=$ac_cv_host
2965 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2966 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2971 $as_echo "$ac_cv_target" >&6; }
2972 case $ac_cv_target in
2974 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2976 target=$ac_cv_target
2977 ac_save_IFS=$IFS; IFS='-'
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2987 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2990 # The aliases save the names the user supplied, while $host etc.
2991 # will get canonicalized.
2992 test -n "$target_alias" &&
2993 test "$program_prefix$program_suffix$program_transform_name" = \
2995 program_prefix=${target_alias}-
2997 am__api_version="1.9"
2998 # Find a good install program. We prefer a C program (faster),
2999 # so one script is as good as another. But avoid the broken or
3000 # incompatible versions:
3001 # SysV /etc/install, /usr/sbin/install
3002 # SunOS /usr/etc/install
3003 # IRIX /sbin/install
3005 # AmigaOS /C/install, which installs bootblocks on floppy discs
3006 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3007 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3008 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3009 # OS/2's system install, which has a completely different semantic
3010 # ./install, which can be erroneously created by make from ./install.sh.
3011 # Reject install programs that cannot install multiple files.
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3013 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3014 if test -z "$INSTALL"; then
3015 if test "${ac_cv_path_install+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir=.
3023 # Account for people who put trailing slashes in PATH elements.
3024 case $as_dir/ in #((
3025 ./ | .// | /[cC]/* | \
3026 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3027 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3030 # OSF1 and SCO ODT 3.0 have their own names for install.
3031 # Don't use installbsd from OSF since it installs stuff as root
3033 for ac_prog in ginstall scoinst install; do
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3036 if test $ac_prog = install &&
3037 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3038 # AIX install. It has an incompatible calling convention.
3040 elif test $ac_prog = install &&
3041 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3042 # program-specific install script used by HP pwplus--don't use.
3045 rm -rf conftest.one conftest.two conftest.dir
3046 echo one > conftest.one
3047 echo two > conftest.two
3049 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3050 test -s conftest.one && test -s conftest.two &&
3051 test -s conftest.dir/conftest.one &&
3052 test -s conftest.dir/conftest.two
3054 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3067 rm -rf conftest.one conftest.two conftest.dir
3070 if test "${ac_cv_path_install+set}" = set; then
3071 INSTALL=$ac_cv_path_install
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for INSTALL within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 INSTALL=$ac_install_sh
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3081 $as_echo "$INSTALL" >&6; }
3083 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3084 # It thinks the first close brace ends the variable substitution.
3085 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3087 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3089 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3092 $as_echo_n "checking whether build environment is sane... " >&6; }
3095 echo timestamp > conftest.file
3096 # Do `set' in a subshell so we don't clobber the current shell's
3097 # arguments. Must try -L first in case configure is actually a
3098 # symlink; some systems play weird games with the mod time of symlinks
3099 # (eg FreeBSD returns the mod time of the symlink's containing
3102 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3103 if test "$*" = "X"; then
3105 set X `ls -t $srcdir/configure conftest.file`
3108 if test "$*" != "X $srcdir/configure conftest.file" \
3109 && test "$*" != "X conftest.file $srcdir/configure"; then
3111 # If neither matched, then we have a broken ls. This can happen
3112 # if, for instance, CONFIG_SHELL is bash and it inherits a
3113 # broken ls alias from the environment. This has actually
3114 # happened. Such a system could not be considered "sane".
3115 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3116 alias in your environment" "$LINENO" 5
3119 test "$2" = conftest.file
3125 as_fn_error "newly created file is older than distributed files!
3126 Check your system clock" "$LINENO" 5
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130 test "$program_prefix" != NONE &&
3131 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3132 # Use a double $ so make ignores it.
3133 test "$program_suffix" != NONE &&
3134 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3135 # Double any \ or $.
3136 # By default was `s,x,x', remove it if useless.
3137 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3138 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3140 # expand $ac_aux_dir to an absolute path
3141 am_aux_dir=`cd $ac_aux_dir && pwd`
3143 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3144 # Use eval to expand $SHELL
3145 if eval "$MISSING --run true"; then
3146 am_missing_run="$MISSING --run "
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3150 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3153 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3154 # We used to keeping the `.' as first argument, in order to
3155 # allow $(mkdir_p) to be used without argument. As in
3156 # $(mkdir_p) $(somedir)
3157 # where $(somedir) is conditionally defined. However this is wrong
3159 # 1. if the package is installed by a user who cannot write `.'
3160 # make install will fail,
3161 # 2. the above comment should most certainly read
3162 # $(mkdir_p) $(DESTDIR)$(somedir)
3163 # so it does not work when $(somedir) is undefined and
3164 # $(DESTDIR) is not.
3165 # To support the latter case, we have to write
3166 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3167 # so the `.' trick is pointless.
3168 mkdir_p='mkdir -p --'
3170 # On NextStep and OpenStep, the `mkdir' command does not
3171 # recognize any option. It will interpret all options as
3172 # directories to create, and then abort because `.' already
3174 for d in ./-p ./--version;
3176 test -d $d && rmdir $d
3178 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3179 if test -f "$ac_aux_dir/mkinstalldirs"; then
3180 mkdir_p='$(mkinstalldirs)'
3182 mkdir_p='$(install_sh) -d'
3186 for ac_prog in gawk mawk nawk awk
3188 # Extract the first word of "$ac_prog", so it can be a program name with args.
3189 set dummy $ac_prog; ac_word=$2
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3191 $as_echo_n "checking for $ac_word... " >&6; }
3192 if test "${ac_cv_prog_AWK+set}" = set; then :
3193 $as_echo_n "(cached) " >&6
3195 if test -n "$AWK"; then
3196 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_AWK="$ac_prog"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 if test -n "$AWK"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3218 $as_echo "$AWK" >&6; }
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3225 test -n "$AWK" && break
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3229 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3231 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3232 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3233 $as_echo_n "(cached) " >&6
3235 cat >conftest.make <<\_ACEOF
3238 @echo '@@@%%%=$(MAKE)=@@@%%%'
3240 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3241 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3243 eval ac_cv_prog_make_${ac_make}_set=yes;;
3245 eval ac_cv_prog_make_${ac_make}_set=no;;
3249 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251 $as_echo "yes" >&6; }
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255 $as_echo "no" >&6; }
3256 SET_MAKE="MAKE=${MAKE-make}"
3259 rm -rf .tst 2>/dev/null
3260 mkdir .tst 2>/dev/null
3261 if test -d .tst; then
3266 rmdir .tst 2>/dev/null
3268 # test to see if srcdir already configured
3269 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3270 test -f $srcdir/config.status; then
3271 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3274 # test whether we have cygpath
3275 if test -z "$CYGPATH_W"; then
3276 if (cygpath --version) >/dev/null 2>/dev/null; then
3277 CYGPATH_W='cygpath -w'
3284 # Define the identity of the package.
3289 # Some tools Automake needs.
3291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3305 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3307 # Installed binaries are usually stripped using `strip' when the user
3308 # run `make install-strip'. However `strip' might not be the right
3309 # tool to use in cross-compilation environments, therefore Automake
3310 # will honor the `STRIP' environment variable to overrule this program.
3311 if test "$cross_compiling" != no; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}strip; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if test "${ac_cv_prog_STRIP+set}" = set; then :
3318 $as_echo_n "(cached) " >&6
3320 if test -n "$STRIP"; then
3321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 STRIP=$ac_cv_prog_STRIP
3341 if test -n "$STRIP"; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3343 $as_echo "$STRIP" >&6; }
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3351 if test -z "$ac_cv_prog_STRIP"; then
3353 # Extract the first word of "strip", so it can be a program name with args.
3354 set dummy strip; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3358 $as_echo_n "(cached) " >&6
3360 if test -n "$ac_ct_STRIP"; then
3361 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3370 ac_cv_prog_ac_ct_STRIP="strip"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3381 if test -n "$ac_ct_STRIP"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3383 $as_echo "$ac_ct_STRIP" >&6; }
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3389 if test "x$ac_ct_STRIP" = x; then
3392 case $cross_compiling:$ac_tool_warned in
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3396 ac_tool_warned=yes ;;
3401 STRIP="$ac_cv_prog_STRIP"
3405 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3407 # We need awk for the "check" target. The system "awk" is bad on
3409 # Always define AMTAR for backward compatibility.
3411 AMTAR=${AMTAR-"${am_missing_run}tar"}
3413 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3419 cat >>confdefs.h <<_ACEOF
3420 #define OPENLDAP_PACKAGE "$PACKAGE"
3424 cat >>confdefs.h <<_ACEOF
3425 #define OPENLDAP_VERSION "$VERSION"
3430 cat >>confdefs.h <<_ACEOF
3431 #define LDAP_VENDOR_VERSION $OL_API_INC
3435 cat >>confdefs.h <<_ACEOF
3436 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3440 cat >>confdefs.h <<_ACEOF
3441 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3445 cat >>confdefs.h <<_ACEOF
3446 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3450 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3452 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3454 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3460 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3462 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3464 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3468 $as_echo_n "checking configure arguments... " >&6; }
3473 ldap_subdir="/openldap"
3476 # Check whether --with-subdir was given.
3477 if test "${with_subdir+set}" = set; then :
3478 withval=$with_subdir; case "$withval" in
3484 ldap_subdir="$withval"
3487 ldap_subdir="/$withval"
3494 # OpenLDAP --enable-debug
3496 # Check whether --enable-debug was given.
3497 if test "${enable_debug+set}" = set; then :
3498 enableval=$enable_debug;
3500 for ol_val in no yes traditional ; do
3501 if test "$enableval" = "$ol_val" ; then
3505 if test "$ol_arg" = "invalid" ; then
3506 as_fn_error "bad value $enableval for --enable-debug" "$LINENO" 5
3508 ol_enable_debug="$ol_arg"
3514 # end --enable-debug
3515 # OpenLDAP --enable-dynamic
3517 # Check whether --enable-dynamic was given.
3518 if test "${enable_dynamic+set}" = set; then :
3519 enableval=$enable_dynamic;
3521 for ol_val in auto yes no ; do
3522 if test "$enableval" = "$ol_val" ; then
3526 if test "$ol_arg" = "invalid" ; then
3527 as_fn_error "bad value $enableval for --enable-dynamic" "$LINENO" 5
3529 ol_enable_dynamic="$ol_arg"
3532 ol_enable_dynamic=no
3535 # end --enable-dynamic
3536 # OpenLDAP --enable-syslog
3538 # Check whether --enable-syslog was given.
3539 if test "${enable_syslog+set}" = set; then :
3540 enableval=$enable_syslog;
3542 for ol_val in auto yes no ; do
3543 if test "$enableval" = "$ol_val" ; then
3547 if test "$ol_arg" = "invalid" ; then
3548 as_fn_error "bad value $enableval for --enable-syslog" "$LINENO" 5
3550 ol_enable_syslog="$ol_arg"
3553 ol_enable_syslog=auto
3556 # end --enable-syslog
3557 # OpenLDAP --enable-proctitle
3559 # Check whether --enable-proctitle was given.
3560 if test "${enable_proctitle+set}" = set; then :
3561 enableval=$enable_proctitle;
3563 for ol_val in auto yes no ; do
3564 if test "$enableval" = "$ol_val" ; then
3568 if test "$ol_arg" = "invalid" ; then
3569 as_fn_error "bad value $enableval for --enable-proctitle" "$LINENO" 5
3571 ol_enable_proctitle="$ol_arg"
3574 ol_enable_proctitle=yes
3577 # end --enable-proctitle
3578 ol_enable_referrals=${ol_enable_referrals-no}
3579 # OpenLDAP --enable-ipv6
3581 # Check whether --enable-ipv6 was given.
3582 if test "${enable_ipv6+set}" = set; then :
3583 enableval=$enable_ipv6;
3585 for ol_val in auto yes no ; do
3586 if test "$enableval" = "$ol_val" ; then
3590 if test "$ol_arg" = "invalid" ; then
3591 as_fn_error "bad value $enableval for --enable-ipv6" "$LINENO" 5
3593 ol_enable_ipv6="$ol_arg"
3600 # OpenLDAP --enable-local
3602 # Check whether --enable-local was given.
3603 if test "${enable_local+set}" = set; then :
3604 enableval=$enable_local;
3606 for ol_val in auto yes no ; do
3607 if test "$enableval" = "$ol_val" ; then
3611 if test "$ol_arg" = "invalid" ; then
3612 as_fn_error "bad value $enableval for --enable-local" "$LINENO" 5
3614 ol_enable_local="$ol_arg"
3617 ol_enable_local=auto
3620 # end --enable-local
3622 # OpenLDAP --with-cyrus_sasl
3624 # Check whether --with-cyrus_sasl was given.
3625 if test "${with_cyrus_sasl+set}" = set; then :
3626 withval=$with_cyrus_sasl;
3628 for ol_val in auto yes no ; do
3629 if test "$withval" = "$ol_val" ; then
3633 if test "$ol_arg" = "invalid" ; then
3634 as_fn_error "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3636 ol_with_cyrus_sasl="$ol_arg"
3639 ol_with_cyrus_sasl="auto"
3641 # end --with-cyrus_sasl
3643 # OpenLDAP --with-fetch
3645 # Check whether --with-fetch was given.
3646 if test "${with_fetch+set}" = set; then :
3647 withval=$with_fetch;
3649 for ol_val in auto yes no ; do
3650 if test "$withval" = "$ol_val" ; then
3654 if test "$ol_arg" = "invalid" ; then
3655 as_fn_error "bad value $withval for --with-fetch" "$LINENO" 5
3657 ol_with_fetch="$ol_arg"
3660 ol_with_fetch="auto"
3664 # OpenLDAP --with-threads
3666 # Check whether --with-threads was given.
3667 if test "${with_threads+set}" = set; then :
3668 withval=$with_threads;
3670 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3671 if test "$withval" = "$ol_val" ; then
3675 if test "$ol_arg" = "invalid" ; then
3676 as_fn_error "bad value $withval for --with-threads" "$LINENO" 5
3678 ol_with_threads="$ol_arg"
3681 ol_with_threads="auto"
3683 # end --with-threads
3685 # OpenLDAP --with-tls
3687 # Check whether --with-tls was given.
3688 if test "${with_tls+set}" = set; then :
3691 for ol_val in auto openssl gnutls moznss yes no ; do
3692 if test "$withval" = "$ol_val" ; then
3696 if test "$ol_arg" = "invalid" ; then
3697 as_fn_error "bad value $withval for --with-tls" "$LINENO" 5
3699 ol_with_tls="$ol_arg"
3706 # OpenLDAP --with-yielding_select
3708 # Check whether --with-yielding_select was given.
3709 if test "${with_yielding_select+set}" = set; then :
3710 withval=$with_yielding_select;
3712 for ol_val in auto yes no manual ; do
3713 if test "$withval" = "$ol_val" ; then
3717 if test "$ol_arg" = "invalid" ; then
3718 as_fn_error "bad value $withval for --with-yielding_select" "$LINENO" 5
3720 ol_with_yielding_select="$ol_arg"
3723 ol_with_yielding_select="auto"
3725 # end --with-yielding_select
3727 # OpenLDAP --with-mp
3729 # Check whether --with-mp was given.
3730 if test "${with_mp+set}" = set; then :
3733 for ol_val in auto longlong long bignum gmp yes no ; do
3734 if test "$withval" = "$ol_val" ; then
3738 if test "$ol_arg" = "invalid" ; then
3739 as_fn_error "bad value $withval for --with-mp" "$LINENO" 5
3741 ol_with_mp="$ol_arg"
3748 # OpenLDAP --with-odbc
3750 # Check whether --with-odbc was given.
3751 if test "${with_odbc+set}" = set; then :
3754 for ol_val in auto iodbc unixodbc odbc32 ; do
3755 if test "$withval" = "$ol_val" ; then
3759 if test "$ol_arg" = "invalid" ; then
3760 as_fn_error "bad value $withval for --with-odbc" "$LINENO" 5
3762 ol_with_odbc="$ol_arg"
3771 # Check whether --enable-xxslapdoptions was given.
3772 if test "${enable_xxslapdoptions+set}" = set; then :
3773 enableval=$enable_xxslapdoptions;
3776 # OpenLDAP --enable-slapd
3778 # Check whether --enable-slapd was given.
3779 if test "${enable_slapd+set}" = set; then :
3780 enableval=$enable_slapd;
3782 for ol_val in auto yes no ; do
3783 if test "$enableval" = "$ol_val" ; then
3787 if test "$ol_arg" = "invalid" ; then
3788 as_fn_error "bad value $enableval for --enable-slapd" "$LINENO" 5
3790 ol_enable_slapd="$ol_arg"
3796 # end --enable-slapd
3797 # OpenLDAP --enable-dynacl
3799 # Check whether --enable-dynacl was given.
3800 if test "${enable_dynacl+set}" = set; then :
3801 enableval=$enable_dynacl;
3803 for ol_val in auto yes no ; do
3804 if test "$enableval" = "$ol_val" ; then
3808 if test "$ol_arg" = "invalid" ; then
3809 as_fn_error "bad value $enableval for --enable-dynacl" "$LINENO" 5
3811 ol_enable_dynacl="$ol_arg"
3817 # end --enable-dynacl
3818 # OpenLDAP --enable-aci
3820 # Check whether --enable-aci was given.
3821 if test "${enable_aci+set}" = set; then :
3822 enableval=$enable_aci;
3824 for ol_val in no yes mod ; do
3825 if test "$enableval" = "$ol_val" ; then
3829 if test "$ol_arg" = "invalid" ; then
3830 as_fn_error "bad value $enableval for --enable-aci" "$LINENO" 5
3832 ol_enable_aci="$ol_arg"
3839 # OpenLDAP --enable-cleartext
3841 # Check whether --enable-cleartext was given.
3842 if test "${enable_cleartext+set}" = set; then :
3843 enableval=$enable_cleartext;
3845 for ol_val in auto yes no ; do
3846 if test "$enableval" = "$ol_val" ; then
3850 if test "$ol_arg" = "invalid" ; then
3851 as_fn_error "bad value $enableval for --enable-cleartext" "$LINENO" 5
3853 ol_enable_cleartext="$ol_arg"
3856 ol_enable_cleartext=yes
3859 # end --enable-cleartext
3860 # OpenLDAP --enable-crypt
3862 # Check whether --enable-crypt was given.
3863 if test "${enable_crypt+set}" = set; then :
3864 enableval=$enable_crypt;
3866 for ol_val in auto yes no ; do
3867 if test "$enableval" = "$ol_val" ; then
3871 if test "$ol_arg" = "invalid" ; then
3872 as_fn_error "bad value $enableval for --enable-crypt" "$LINENO" 5
3874 ol_enable_crypt="$ol_arg"
3880 # end --enable-crypt
3881 # OpenLDAP --enable-lmpasswd
3883 # Check whether --enable-lmpasswd was given.
3884 if test "${enable_lmpasswd+set}" = set; then :
3885 enableval=$enable_lmpasswd;
3887 for ol_val in auto yes no ; do
3888 if test "$enableval" = "$ol_val" ; then
3892 if test "$ol_arg" = "invalid" ; then
3893 as_fn_error "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3895 ol_enable_lmpasswd="$ol_arg"
3898 ol_enable_lmpasswd=no
3901 # end --enable-lmpasswd
3902 # OpenLDAP --enable-spasswd
3904 # Check whether --enable-spasswd was given.
3905 if test "${enable_spasswd+set}" = set; then :
3906 enableval=$enable_spasswd;
3908 for ol_val in auto yes no ; do
3909 if test "$enableval" = "$ol_val" ; then
3913 if test "$ol_arg" = "invalid" ; then
3914 as_fn_error "bad value $enableval for --enable-spasswd" "$LINENO" 5
3916 ol_enable_spasswd="$ol_arg"
3919 ol_enable_spasswd=no
3922 # end --enable-spasswd
3923 # OpenLDAP --enable-modules
3925 # Check whether --enable-modules was given.
3926 if test "${enable_modules+set}" = set; then :
3927 enableval=$enable_modules;
3929 for ol_val in auto yes no ; do
3930 if test "$enableval" = "$ol_val" ; then
3934 if test "$ol_arg" = "invalid" ; then
3935 as_fn_error "bad value $enableval for --enable-modules" "$LINENO" 5
3937 ol_enable_modules="$ol_arg"
3940 ol_enable_modules=no
3943 # end --enable-modules
3944 # OpenLDAP --enable-rewrite
3946 # Check whether --enable-rewrite was given.
3947 if test "${enable_rewrite+set}" = set; then :
3948 enableval=$enable_rewrite;
3950 for ol_val in auto yes no ; do
3951 if test "$enableval" = "$ol_val" ; then
3955 if test "$ol_arg" = "invalid" ; then
3956 as_fn_error "bad value $enableval for --enable-rewrite" "$LINENO" 5
3958 ol_enable_rewrite="$ol_arg"
3961 ol_enable_rewrite=auto
3964 # end --enable-rewrite
3965 # OpenLDAP --enable-rlookups
3967 # Check whether --enable-rlookups was given.
3968 if test "${enable_rlookups+set}" = set; then :
3969 enableval=$enable_rlookups;
3971 for ol_val in auto yes no ; do
3972 if test "$enableval" = "$ol_val" ; then
3976 if test "$ol_arg" = "invalid" ; then
3977 as_fn_error "bad value $enableval for --enable-rlookups" "$LINENO" 5
3979 ol_enable_rlookups="$ol_arg"
3982 ol_enable_rlookups=no
3985 # end --enable-rlookups
3986 # OpenLDAP --enable-slapi
3988 # Check whether --enable-slapi was given.
3989 if test "${enable_slapi+set}" = set; then :
3990 enableval=$enable_slapi;
3992 for ol_val in auto yes no ; do
3993 if test "$enableval" = "$ol_val" ; then
3997 if test "$ol_arg" = "invalid" ; then
3998 as_fn_error "bad value $enableval for --enable-slapi" "$LINENO" 5
4000 ol_enable_slapi="$ol_arg"
4006 # end --enable-slapi
4007 # OpenLDAP --enable-slp
4009 # Check whether --enable-slp was given.
4010 if test "${enable_slp+set}" = set; then :
4011 enableval=$enable_slp;
4013 for ol_val in auto yes no ; do
4014 if test "$enableval" = "$ol_val" ; then
4018 if test "$ol_arg" = "invalid" ; then
4019 as_fn_error "bad value $enableval for --enable-slp" "$LINENO" 5
4021 ol_enable_slp="$ol_arg"
4028 # OpenLDAP --enable-wrappers
4030 # Check whether --enable-wrappers was given.
4031 if test "${enable_wrappers+set}" = set; then :
4032 enableval=$enable_wrappers;
4034 for ol_val in auto yes no ; do
4035 if test "$enableval" = "$ol_val" ; then
4039 if test "$ol_arg" = "invalid" ; then
4040 as_fn_error "bad value $enableval for --enable-wrappers" "$LINENO" 5
4042 ol_enable_wrappers="$ol_arg"
4045 ol_enable_wrappers=no
4048 # end --enable-wrappers
4066 # Check whether --enable-xxslapbackends was given.
4067 if test "${enable_xxslapbackends+set}" = set; then :
4068 enableval=$enable_xxslapbackends;
4072 # OpenLDAP --enable-backends
4074 # Check whether --enable-backends was given.
4075 if test "${enable_backends+set}" = set; then :
4076 enableval=$enable_backends;
4078 for ol_val in no yes mod ; do
4079 if test "$enableval" = "$ol_val" ; then
4083 if test "$ol_arg" = "invalid" ; then
4084 as_fn_error "bad value $enableval for --enable-backends" "$LINENO" 5
4086 ol_enable_backends="$ol_arg"
4090 # end --enable-backends
4091 # OpenLDAP --enable-bdb
4093 # Check whether --enable-bdb was given.
4094 if test "${enable_bdb+set}" = set; then :
4095 enableval=$enable_bdb;
4097 for ol_val in no yes mod ; do
4098 if test "$enableval" = "$ol_val" ; then
4102 if test "$ol_arg" = "invalid" ; then
4103 as_fn_error "bad value $enableval for --enable-bdb" "$LINENO" 5
4105 ol_enable_bdb="$ol_arg"
4108 ol_enable_bdb=${ol_enable_backends:-yes}
4112 # OpenLDAP --enable-dnssrv
4114 # Check whether --enable-dnssrv was given.
4115 if test "${enable_dnssrv+set}" = set; then :
4116 enableval=$enable_dnssrv;
4118 for ol_val in no yes mod ; do
4119 if test "$enableval" = "$ol_val" ; then
4123 if test "$ol_arg" = "invalid" ; then
4124 as_fn_error "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4126 ol_enable_dnssrv="$ol_arg"
4129 ol_enable_dnssrv=${ol_enable_backends:-no}
4132 # end --enable-dnssrv
4133 # OpenLDAP --enable-hdb
4135 # Check whether --enable-hdb was given.
4136 if test "${enable_hdb+set}" = set; then :
4137 enableval=$enable_hdb;
4139 for ol_val in no yes mod ; do
4140 if test "$enableval" = "$ol_val" ; then
4144 if test "$ol_arg" = "invalid" ; then
4145 as_fn_error "bad value $enableval for --enable-hdb" "$LINENO" 5
4147 ol_enable_hdb="$ol_arg"
4150 ol_enable_hdb=${ol_enable_backends:-yes}
4154 # OpenLDAP --enable-ldap
4156 # Check whether --enable-ldap was given.
4157 if test "${enable_ldap+set}" = set; then :
4158 enableval=$enable_ldap;
4160 for ol_val in no yes mod ; do
4161 if test "$enableval" = "$ol_val" ; then
4165 if test "$ol_arg" = "invalid" ; then
4166 as_fn_error "bad value $enableval for --enable-ldap" "$LINENO" 5
4168 ol_enable_ldap="$ol_arg"
4171 ol_enable_ldap=${ol_enable_backends:-no}
4175 # OpenLDAP --enable-mdb
4177 # Check whether --enable-mdb was given.
4178 if test "${enable_mdb+set}" = set; then :
4179 enableval=$enable_mdb;
4181 for ol_val in no yes mod ; do
4182 if test "$enableval" = "$ol_val" ; then
4186 if test "$ol_arg" = "invalid" ; then
4187 as_fn_error "bad value $enableval for --enable-mdb" "$LINENO" 5
4189 ol_enable_mdb="$ol_arg"
4192 ol_enable_mdb=${ol_enable_backends:-yes}
4196 # OpenLDAP --enable-meta
4198 # Check whether --enable-meta was given.
4199 if test "${enable_meta+set}" = set; then :
4200 enableval=$enable_meta;
4202 for ol_val in no yes mod ; do
4203 if test "$enableval" = "$ol_val" ; then
4207 if test "$ol_arg" = "invalid" ; then
4208 as_fn_error "bad value $enableval for --enable-meta" "$LINENO" 5
4210 ol_enable_meta="$ol_arg"
4213 ol_enable_meta=${ol_enable_backends:-no}
4217 # OpenLDAP --enable-monitor
4219 # Check whether --enable-monitor was given.
4220 if test "${enable_monitor+set}" = set; then :
4221 enableval=$enable_monitor;
4223 for ol_val in no yes mod ; do
4224 if test "$enableval" = "$ol_val" ; then
4228 if test "$ol_arg" = "invalid" ; then
4229 as_fn_error "bad value $enableval for --enable-monitor" "$LINENO" 5
4231 ol_enable_monitor="$ol_arg"
4234 ol_enable_monitor=${ol_enable_backends:-yes}
4237 # end --enable-monitor
4238 # OpenLDAP --enable-ndb
4240 # Check whether --enable-ndb was given.
4241 if test "${enable_ndb+set}" = set; then :
4242 enableval=$enable_ndb;
4244 for ol_val in no yes mod ; do
4245 if test "$enableval" = "$ol_val" ; then
4249 if test "$ol_arg" = "invalid" ; then
4250 as_fn_error "bad value $enableval for --enable-ndb" "$LINENO" 5
4252 ol_enable_ndb="$ol_arg"
4255 ol_enable_ndb=${ol_enable_backends:-no}
4259 # OpenLDAP --enable-null
4261 # Check whether --enable-null was given.
4262 if test "${enable_null+set}" = set; then :
4263 enableval=$enable_null;
4265 for ol_val in no yes mod ; do
4266 if test "$enableval" = "$ol_val" ; then
4270 if test "$ol_arg" = "invalid" ; then
4271 as_fn_error "bad value $enableval for --enable-null" "$LINENO" 5
4273 ol_enable_null="$ol_arg"
4276 ol_enable_null=${ol_enable_backends:-no}
4280 # OpenLDAP --enable-passwd
4282 # Check whether --enable-passwd was given.
4283 if test "${enable_passwd+set}" = set; then :
4284 enableval=$enable_passwd;
4286 for ol_val in no yes mod ; do
4287 if test "$enableval" = "$ol_val" ; then
4291 if test "$ol_arg" = "invalid" ; then
4292 as_fn_error "bad value $enableval for --enable-passwd" "$LINENO" 5
4294 ol_enable_passwd="$ol_arg"
4297 ol_enable_passwd=${ol_enable_backends:-no}
4300 # end --enable-passwd
4301 # OpenLDAP --enable-perl
4303 # Check whether --enable-perl was given.
4304 if test "${enable_perl+set}" = set; then :
4305 enableval=$enable_perl;
4307 for ol_val in no yes mod ; do
4308 if test "$enableval" = "$ol_val" ; then
4312 if test "$ol_arg" = "invalid" ; then
4313 as_fn_error "bad value $enableval for --enable-perl" "$LINENO" 5
4315 ol_enable_perl="$ol_arg"
4318 ol_enable_perl=${ol_enable_backends:-no}
4322 # OpenLDAP --enable-relay
4324 # Check whether --enable-relay was given.
4325 if test "${enable_relay+set}" = set; then :
4326 enableval=$enable_relay;
4328 for ol_val in no yes mod ; do
4329 if test "$enableval" = "$ol_val" ; then
4333 if test "$ol_arg" = "invalid" ; then
4334 as_fn_error "bad value $enableval for --enable-relay" "$LINENO" 5
4336 ol_enable_relay="$ol_arg"
4339 ol_enable_relay=${ol_enable_backends:-yes}
4342 # end --enable-relay
4343 # OpenLDAP --enable-shell
4345 # Check whether --enable-shell was given.
4346 if test "${enable_shell+set}" = set; then :
4347 enableval=$enable_shell;
4349 for ol_val in no yes mod ; do
4350 if test "$enableval" = "$ol_val" ; then
4354 if test "$ol_arg" = "invalid" ; then
4355 as_fn_error "bad value $enableval for --enable-shell" "$LINENO" 5
4357 ol_enable_shell="$ol_arg"
4360 ol_enable_shell=${ol_enable_backends:-no}
4363 # end --enable-shell
4364 # OpenLDAP --enable-sock
4366 # Check whether --enable-sock was given.
4367 if test "${enable_sock+set}" = set; then :
4368 enableval=$enable_sock;
4370 for ol_val in no yes mod ; do
4371 if test "$enableval" = "$ol_val" ; then
4375 if test "$ol_arg" = "invalid" ; then
4376 as_fn_error "bad value $enableval for --enable-sock" "$LINENO" 5
4378 ol_enable_sock="$ol_arg"
4381 ol_enable_sock=${ol_enable_backends:-no}
4385 # OpenLDAP --enable-sql
4387 # Check whether --enable-sql was given.
4388 if test "${enable_sql+set}" = set; then :
4389 enableval=$enable_sql;
4391 for ol_val in no yes mod ; do
4392 if test "$enableval" = "$ol_val" ; then
4396 if test "$ol_arg" = "invalid" ; then
4397 as_fn_error "bad value $enableval for --enable-sql" "$LINENO" 5
4399 ol_enable_sql="$ol_arg"
4402 ol_enable_sql=${ol_enable_backends:-no}
4407 Overlays="accesslog \
4428 # Check whether --enable-xxslapoverlays was given.
4429 if test "${enable_xxslapoverlays+set}" = set; then :
4430 enableval=$enable_xxslapoverlays;
4434 # OpenLDAP --enable-overlays
4436 # Check whether --enable-overlays was given.
4437 if test "${enable_overlays+set}" = set; then :
4438 enableval=$enable_overlays;
4440 for ol_val in no yes mod ; do
4441 if test "$enableval" = "$ol_val" ; then
4445 if test "$ol_arg" = "invalid" ; then
4446 as_fn_error "bad value $enableval for --enable-overlays" "$LINENO" 5
4448 ol_enable_overlays="$ol_arg"
4452 # end --enable-overlays
4453 # OpenLDAP --enable-accesslog
4455 # Check whether --enable-accesslog was given.
4456 if test "${enable_accesslog+set}" = set; then :
4457 enableval=$enable_accesslog;
4459 for ol_val in no yes mod ; do
4460 if test "$enableval" = "$ol_val" ; then
4464 if test "$ol_arg" = "invalid" ; then
4465 as_fn_error "bad value $enableval for --enable-accesslog" "$LINENO" 5
4467 ol_enable_accesslog="$ol_arg"
4470 ol_enable_accesslog=${ol_enable_overlays:-no}
4473 # end --enable-accesslog
4475 # OpenLDAP --enable-auditlog
4477 # Check whether --enable-auditlog was given.
4478 if test "${enable_auditlog+set}" = set; then :
4479 enableval=$enable_auditlog;
4481 for ol_val in no yes mod ; do
4482 if test "$enableval" = "$ol_val" ; then
4486 if test "$ol_arg" = "invalid" ; then
4487 as_fn_error "bad value $enableval for --enable-auditlog" "$LINENO" 5
4489 ol_enable_auditlog="$ol_arg"
4492 ol_enable_auditlog=${ol_enable_overlays:-no}
4495 # end --enable-auditlog
4497 # OpenLDAP --enable-collect
4499 # Check whether --enable-collect was given.
4500 if test "${enable_collect+set}" = set; then :
4501 enableval=$enable_collect;
4503 for ol_val in no yes mod ; do
4504 if test "$enableval" = "$ol_val" ; then
4508 if test "$ol_arg" = "invalid" ; then
4509 as_fn_error "bad value $enableval for --enable-collect" "$LINENO" 5
4511 ol_enable_collect="$ol_arg"
4514 ol_enable_collect=${ol_enable_overlays:-no}
4517 # end --enable-collect
4519 # OpenLDAP --enable-constraint
4521 # Check whether --enable-constraint was given.
4522 if test "${enable_constraint+set}" = set; then :
4523 enableval=$enable_constraint;
4525 for ol_val in no yes mod ; do
4526 if test "$enableval" = "$ol_val" ; then
4530 if test "$ol_arg" = "invalid" ; then
4531 as_fn_error "bad value $enableval for --enable-constraint" "$LINENO" 5
4533 ol_enable_constraint="$ol_arg"
4536 ol_enable_constraint=${ol_enable_overlays:-no}
4539 # end --enable-constraint
4541 # OpenLDAP --enable-dds
4543 # Check whether --enable-dds was given.
4544 if test "${enable_dds+set}" = set; then :
4545 enableval=$enable_dds;
4547 for ol_val in no yes mod ; do
4548 if test "$enableval" = "$ol_val" ; then
4552 if test "$ol_arg" = "invalid" ; then
4553 as_fn_error "bad value $enableval for --enable-dds" "$LINENO" 5
4555 ol_enable_dds="$ol_arg"
4558 ol_enable_dds=${ol_enable_overlays:-no}
4563 # OpenLDAP --enable-deref
4565 # Check whether --enable-deref was given.
4566 if test "${enable_deref+set}" = set; then :
4567 enableval=$enable_deref;
4569 for ol_val in no yes mod ; do
4570 if test "$enableval" = "$ol_val" ; then
4574 if test "$ol_arg" = "invalid" ; then
4575 as_fn_error "bad value $enableval for --enable-deref" "$LINENO" 5
4577 ol_enable_deref="$ol_arg"
4580 ol_enable_deref=${ol_enable_overlays:-no}
4583 # end --enable-deref
4585 # OpenLDAP --enable-dyngroup
4587 # Check whether --enable-dyngroup was given.
4588 if test "${enable_dyngroup+set}" = set; then :
4589 enableval=$enable_dyngroup;
4591 for ol_val in no yes mod ; do
4592 if test "$enableval" = "$ol_val" ; then
4596 if test "$ol_arg" = "invalid" ; then
4597 as_fn_error "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4599 ol_enable_dyngroup="$ol_arg"
4602 ol_enable_dyngroup=${ol_enable_overlays:-no}
4605 # end --enable-dyngroup
4607 # OpenLDAP --enable-dynlist
4609 # Check whether --enable-dynlist was given.
4610 if test "${enable_dynlist+set}" = set; then :
4611 enableval=$enable_dynlist;
4613 for ol_val in no yes mod ; do
4614 if test "$enableval" = "$ol_val" ; then
4618 if test "$ol_arg" = "invalid" ; then
4619 as_fn_error "bad value $enableval for --enable-dynlist" "$LINENO" 5
4621 ol_enable_dynlist="$ol_arg"
4624 ol_enable_dynlist=${ol_enable_overlays:-no}
4627 # end --enable-dynlist
4629 # OpenLDAP --enable-memberof
4631 # Check whether --enable-memberof was given.
4632 if test "${enable_memberof+set}" = set; then :
4633 enableval=$enable_memberof;
4635 for ol_val in no yes mod ; do
4636 if test "$enableval" = "$ol_val" ; then
4640 if test "$ol_arg" = "invalid" ; then
4641 as_fn_error "bad value $enableval for --enable-memberof" "$LINENO" 5
4643 ol_enable_memberof="$ol_arg"
4646 ol_enable_memberof=${ol_enable_overlays:-no}
4649 # end --enable-memberof
4651 # OpenLDAP --enable-ppolicy
4653 # Check whether --enable-ppolicy was given.
4654 if test "${enable_ppolicy+set}" = set; then :
4655 enableval=$enable_ppolicy;
4657 for ol_val in no yes mod ; do
4658 if test "$enableval" = "$ol_val" ; then
4662 if test "$ol_arg" = "invalid" ; then
4663 as_fn_error "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4665 ol_enable_ppolicy="$ol_arg"
4668 ol_enable_ppolicy=${ol_enable_overlays:-no}
4671 # end --enable-ppolicy
4673 # OpenLDAP --enable-proxycache
4675 # Check whether --enable-proxycache was given.
4676 if test "${enable_proxycache+set}" = set; then :
4677 enableval=$enable_proxycache;
4679 for ol_val in no yes mod ; do
4680 if test "$enableval" = "$ol_val" ; then
4684 if test "$ol_arg" = "invalid" ; then
4685 as_fn_error "bad value $enableval for --enable-proxycache" "$LINENO" 5
4687 ol_enable_proxycache="$ol_arg"
4690 ol_enable_proxycache=${ol_enable_overlays:-no}
4693 # end --enable-proxycache
4695 # OpenLDAP --enable-refint
4697 # Check whether --enable-refint was given.
4698 if test "${enable_refint+set}" = set; then :
4699 enableval=$enable_refint;
4701 for ol_val in no yes mod ; do
4702 if test "$enableval" = "$ol_val" ; then
4706 if test "$ol_arg" = "invalid" ; then
4707 as_fn_error "bad value $enableval for --enable-refint" "$LINENO" 5
4709 ol_enable_refint="$ol_arg"
4712 ol_enable_refint=${ol_enable_overlays:-no}
4715 # end --enable-refint
4717 # OpenLDAP --enable-retcode
4719 # Check whether --enable-retcode was given.
4720 if test "${enable_retcode+set}" = set; then :
4721 enableval=$enable_retcode;
4723 for ol_val in no yes mod ; do
4724 if test "$enableval" = "$ol_val" ; then
4728 if test "$ol_arg" = "invalid" ; then
4729 as_fn_error "bad value $enableval for --enable-retcode" "$LINENO" 5
4731 ol_enable_retcode="$ol_arg"
4734 ol_enable_retcode=${ol_enable_overlays:-no}
4737 # end --enable-retcode
4739 # OpenLDAP --enable-rwm
4741 # Check whether --enable-rwm was given.
4742 if test "${enable_rwm+set}" = set; then :
4743 enableval=$enable_rwm;
4745 for ol_val in no yes mod ; do
4746 if test "$enableval" = "$ol_val" ; then
4750 if test "$ol_arg" = "invalid" ; then
4751 as_fn_error "bad value $enableval for --enable-rwm" "$LINENO" 5
4753 ol_enable_rwm="$ol_arg"
4756 ol_enable_rwm=${ol_enable_overlays:-no}
4761 # OpenLDAP --enable-seqmod
4763 # Check whether --enable-seqmod was given.
4764 if test "${enable_seqmod+set}" = set; then :
4765 enableval=$enable_seqmod;
4767 for ol_val in no yes mod ; do
4768 if test "$enableval" = "$ol_val" ; then
4772 if test "$ol_arg" = "invalid" ; then
4773 as_fn_error "bad value $enableval for --enable-seqmod" "$LINENO" 5
4775 ol_enable_seqmod="$ol_arg"
4778 ol_enable_seqmod=${ol_enable_overlays:-no}
4781 # end --enable-seqmod
4783 # OpenLDAP --enable-sssvlv
4785 # Check whether --enable-sssvlv was given.
4786 if test "${enable_sssvlv+set}" = set; then :
4787 enableval=$enable_sssvlv;
4789 for ol_val in no yes mod ; do
4790 if test "$enableval" = "$ol_val" ; then
4794 if test "$ol_arg" = "invalid" ; then
4795 as_fn_error "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4797 ol_enable_sssvlv="$ol_arg"
4800 ol_enable_sssvlv=${ol_enable_overlays:-no}
4803 # end --enable-sssvlv
4805 # OpenLDAP --enable-syncprov
4807 # Check whether --enable-syncprov was given.
4808 if test "${enable_syncprov+set}" = set; then :
4809 enableval=$enable_syncprov;
4811 for ol_val in no yes mod ; do
4812 if test "$enableval" = "$ol_val" ; then
4816 if test "$ol_arg" = "invalid" ; then
4817 as_fn_error "bad value $enableval for --enable-syncprov" "$LINENO" 5
4819 ol_enable_syncprov="$ol_arg"
4822 ol_enable_syncprov=${ol_enable_overlays:-yes}
4825 # end --enable-syncprov
4827 # OpenLDAP --enable-translucent
4829 # Check whether --enable-translucent was given.
4830 if test "${enable_translucent+set}" = set; then :
4831 enableval=$enable_translucent;
4833 for ol_val in no yes mod ; do
4834 if test "$enableval" = "$ol_val" ; then
4838 if test "$ol_arg" = "invalid" ; then
4839 as_fn_error "bad value $enableval for --enable-translucent" "$LINENO" 5
4841 ol_enable_translucent="$ol_arg"
4844 ol_enable_translucent=${ol_enable_overlays:-no}
4847 # end --enable-translucent
4849 # OpenLDAP --enable-unique
4851 # Check whether --enable-unique was given.
4852 if test "${enable_unique+set}" = set; then :
4853 enableval=$enable_unique;
4855 for ol_val in no yes mod ; do
4856 if test "$enableval" = "$ol_val" ; then
4860 if test "$ol_arg" = "invalid" ; then
4861 as_fn_error "bad value $enableval for --enable-unique" "$LINENO" 5
4863 ol_enable_unique="$ol_arg"
4866 ol_enable_unique=${ol_enable_overlays:-no}
4869 # end --enable-unique
4871 # OpenLDAP --enable-valsort
4873 # Check whether --enable-valsort was given.
4874 if test "${enable_valsort+set}" = set; then :
4875 enableval=$enable_valsort;
4877 for ol_val in no yes mod ; do
4878 if test "$enableval" = "$ol_val" ; then
4882 if test "$ol_arg" = "invalid" ; then
4883 as_fn_error "bad value $enableval for --enable-valsort" "$LINENO" 5
4885 ol_enable_valsort="$ol_arg"
4888 ol_enable_valsort=${ol_enable_overlays:-no}
4891 # end --enable-valsort
4894 # Check whether --enable-xxliboptions was given.
4895 if test "${enable_xxliboptions+set}" = set; then :
4896 enableval=$enable_xxliboptions;
4899 # Check whether --enable-static was given.
4900 if test "${enable_static+set}" = set; then :
4901 enableval=$enable_static; p=${PACKAGE-default}
4903 yes) enable_static=yes ;;
4904 no) enable_static=no ;;
4907 # Look at the argument we got. We use all the common list separators.
4908 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4909 for pkg in $enableval; do
4911 if test "X$pkg" = "X$p"; then
4923 # Check whether --enable-shared was given.
4924 if test "${enable_shared+set}" = set; then :
4925 enableval=$enable_shared; p=${PACKAGE-default}
4927 yes) enable_shared=yes ;;
4928 no) enable_shared=no ;;
4931 # Look at the argument we got. We use all the common list separators.
4932 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4933 for pkg in $enableval; do
4935 if test "X$pkg" = "X$p"; then
4950 if test $ol_enable_slapd = no ; then
4951 if test $ol_enable_slapi = yes ; then
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4953 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4955 case "$ol_enable_backends" in yes | mod)
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4957 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4959 for i in $Backends; do
4960 eval "ol_tmp=\$ol_enable_$i"
4961 if test $ol_tmp != no ; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4963 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4964 eval "ol_enable_$i=no"
4967 if test $ol_enable_modules = yes ; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4969 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4971 if test $ol_enable_wrappers = yes ; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4973 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4975 if test $ol_enable_rlookups = yes ; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4977 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4979 if test $ol_enable_dynacl = yes ; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4981 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4983 if test $ol_enable_aci != no ; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4985 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4987 if test $ol_enable_rewrite = yes ; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4989 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4991 case "$ol_enable_overlays" in yes | mod)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4993 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4995 for i in $Overlays; do
4996 eval "ol_tmp=\$ol_enable_$i"
4997 if test $ol_tmp != no ; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4999 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5000 eval "ol_enable_$i=no"
5004 # force settings to no
5009 ol_enable_modules=no
5010 ol_enable_rlookups=no
5013 ol_enable_wrappers=no
5015 ol_enable_rewrite=no
5017 elif test $ol_enable_modules != yes &&
5018 test $ol_enable_bdb = no &&
5019 test $ol_enable_dnssrv = no &&
5020 test $ol_enable_hdb = no &&
5021 test $ol_enable_ldap = no &&
5022 test $ol_enable_mdb = no &&
5023 test $ol_enable_meta = no &&
5024 test $ol_enable_monitor = no &&
5025 test $ol_enable_ndb = no &&
5026 test $ol_enable_null = no &&
5027 test $ol_enable_passwd = no &&
5028 test $ol_enable_perl = no &&
5029 test $ol_enable_relay = no &&
5030 test $ol_enable_shell = no &&
5031 test $ol_enable_sock = no &&
5032 test $ol_enable_sql = no ; then
5034 if test $ol_enable_slapd = yes ; then
5035 as_fn_error "slapd requires a backend" "$LINENO" 5
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5038 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5043 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5044 as_fn_error "--enable-meta requires --enable-ldap" "$LINENO" 5
5047 if test $ol_enable_lmpasswd = yes ; then
5048 if test $ol_with_tls = no ; then
5049 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
5053 if test $ol_enable_spasswd = yes ; then
5054 if test $ol_with_cyrus_sasl = no ; then
5055 as_fn_error "options require --with-cyrus-sasl" "$LINENO" 5
5057 ol_with_cyrus_sasl=yes
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5061 $as_echo "done" >&6; }
5113 BUILD_TRANSLUCENT=no
5117 SLAPD_STATIC_OVERLAYS=
5118 SLAPD_DYNAMIC_OVERLAYS=
5120 SLAPD_MODULES_LDFLAGS=
5121 SLAPD_MODULES_CPPFLAGS=
5123 SLAPD_STATIC_BACKENDS=back-ldif
5124 SLAPD_DYNAMIC_BACKENDS=
5149 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5156 *-*-aix*) if test -z "$CC" ; then
5157 case "$ol_with_threads" in
5158 auto | yes | posix) ol_aix_threads=yes ;;
5164 if test $ol_aix_threads = yes ; then
5165 if test -z "${CC}" ; then
5166 for ac_prog in cc_r xlc_r cc
5168 # Extract the first word of "$ac_prog", so it can be a program name with args.
5169 set dummy $ac_prog; ac_word=$2
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171 $as_echo_n "checking for $ac_word... " >&6; }
5172 if test "${ac_cv_prog_CC+set}" = set; then :
5173 $as_echo_n "(cached) " >&6
5175 if test -n "$CC"; then
5176 ac_cv_prog_CC="$CC" # Let the user override the test.
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir=.
5183 for ac_exec_ext in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_prog_CC="$ac_prog"
5186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 if test -n "$CC"; then
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5198 $as_echo "$CC" >&6; }
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5205 test -n "$CC" && break
5209 if test "$CC" = cc ; then
5210 if test $ol_with_threads != auto ; then
5211 as_fn_error "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5214 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5220 case ${CC} in cc_r | xlc_r)
5221 ol_with_threads=posix
5222 ol_cv_pthread_create=yes
5227 if test -z "${CC}"; then
5228 for ac_prog in cc gcc
5230 # Extract the first word of "$ac_prog", so it can be a program name with args.
5231 set dummy $ac_prog; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if test "${ac_cv_prog_CC+set}" = set; then :
5235 $as_echo_n "(cached) " >&6
5237 if test -n "$CC"; then
5238 ac_cv_prog_CC="$CC" # Let the user override the test.
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_CC="$ac_prog"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 if test -n "$CC"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5260 $as_echo "$CC" >&6; }
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5267 test -n "$CC" && break
5269 test -n "$CC" || CC="missing"
5272 if test "${CC}" = "missing" ; then
5273 as_fn_error "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5277 if test -z "${AR}"; then
5278 for ac_prog in ar gar
5280 # Extract the first word of "$ac_prog", so it can be a program name with args.
5281 set dummy $ac_prog; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_AR+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5287 if test -n "$AR"; then
5288 ac_cv_prog_AR="$AR" # Let the user override the test.
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 test -z "$as_dir" && as_dir=.
5295 for ac_exec_ext in '' $ac_executable_extensions; do
5296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297 ac_cv_prog_AR="$ac_prog"
5298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5308 if test -n "$AR"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5310 $as_echo "$AR" >&6; }
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5317 test -n "$AR" && break
5319 test -n "$AR" || AR="missing"
5322 if test "${AR}" = "missing" ; then
5323 as_fn_error "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5331 # Check whether --enable-fast-install was given.
5332 if test "${enable_fast_install+set}" = set; then :
5333 enableval=$enable_fast_install; p=${PACKAGE-default}
5335 yes) enable_fast_install=yes ;;
5336 no) enable_fast_install=no ;;
5338 enable_fast_install=no
5339 # Look at the argument we got. We use all the common list separators.
5340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5341 for pkg in $enableval; do
5343 if test "X$pkg" = "X$p"; then
5344 enable_fast_install=yes
5351 enable_fast_install=yes
5355 DEPDIR="${am__leading_dot}deps"
5357 ac_config_commands="$ac_config_commands depfiles"
5360 am_make=${MAKE-make}
5361 cat > confinc << 'END'
5366 # If we don't find an include directive, just comment out the code.
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5368 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5372 # First try GNU make style include.
5373 echo "include confinc" > confmf
5374 # We grep out `Entering directory' and `Leaving directory'
5375 # messages which can occur if `w' ends up in MAKEFLAGS.
5376 # In particular we don't look at `^make:' because GNU make might
5377 # be invoked under some other name (usually "gmake"), in which
5378 # case it prints its new name instead of `make'.
5379 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5384 # Now try BSD make style include.
5385 if test "$am__include" = "#"; then
5386 echo '.include "confinc"' > confmf
5387 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5388 am__include=.include
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5396 $as_echo "$_am_result" >&6; }
5397 rm -f confinc confmf
5399 # Check whether --enable-dependency-tracking was given.
5400 if test "${enable_dependency_tracking+set}" = set; then :
5401 enableval=$enable_dependency_tracking;
5404 if test "x$enable_dependency_tracking" != xno; then
5405 am_depcomp="$ac_aux_dir/depcomp"
5410 if test "x$enable_dependency_tracking" != xno; then
5421 ac_cpp='$CPP $CPPFLAGS'
5422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5425 if test -n "$ac_tool_prefix"; then
5426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5427 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if test "${ac_cv_prog_CC+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5433 if test -n "$CC"; then
5434 ac_cv_prog_CC="$CC" # Let the user override the test.
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 test -z "$as_dir" && as_dir=.
5441 for ac_exec_ext in '' $ac_executable_extensions; do
5442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5443 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 if test -n "$CC"; then
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5456 $as_echo "$CC" >&6; }
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5459 $as_echo "no" >&6; }
5464 if test -z "$ac_cv_prog_CC"; then
5466 # Extract the first word of "gcc", so it can be a program name with args.
5467 set dummy gcc; ac_word=$2
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5469 $as_echo_n "checking for $ac_word... " >&6; }
5470 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5471 $as_echo_n "(cached) " >&6
5473 if test -n "$ac_ct_CC"; then
5474 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 test -z "$as_dir" && as_dir=.
5481 for ac_exec_ext in '' $ac_executable_extensions; do
5482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5483 ac_cv_prog_ac_ct_CC="gcc"
5484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5494 if test -n "$ac_ct_CC"; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5496 $as_echo "$ac_ct_CC" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5502 if test "x$ac_ct_CC" = x; then
5505 case $cross_compiling:$ac_tool_warned in
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5509 ac_tool_warned=yes ;;
5517 if test -z "$CC"; then
5518 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5520 set dummy ${ac_tool_prefix}cc; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_CC+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 if test -n "$CC"; then
5527 ac_cv_prog_CC="$CC" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CC="${ac_tool_prefix}cc"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$CC"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5549 $as_echo "$CC" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5558 if test -z "$CC"; then
5559 # Extract the first word of "cc", so it can be a program name with args.
5560 set dummy cc; ac_word=$2
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5562 $as_echo_n "checking for $ac_word... " >&6; }
5563 if test "${ac_cv_prog_CC+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5566 if test -n "$CC"; then
5567 ac_cv_prog_CC="$CC" # Let the user override the test.
5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 test -z "$as_dir" && as_dir=.
5575 for ac_exec_ext in '' $ac_executable_extensions; do
5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5578 ac_prog_rejected=yes
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 if test $ac_prog_rejected = yes; then
5590 # We found a bogon in the path, so make sure we never use it.
5591 set dummy $ac_cv_prog_CC
5593 if test $# != 0; then
5594 # We chose a different compiler from the bogus one.
5595 # However, it has the same basename, so the bogon will be chosen
5596 # first if we set CC to just the basename; use the full file name.
5598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5604 if test -n "$CC"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5606 $as_echo "$CC" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5614 if test -z "$CC"; then
5615 if test -n "$ac_tool_prefix"; then
5616 for ac_prog in cl.exe
5618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_CC+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5625 if test -n "$CC"; then
5626 ac_cv_prog_CC="$CC" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 if test -n "$CC"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5648 $as_echo "$CC" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5655 test -n "$CC" && break
5658 if test -z "$CC"; then
5660 for ac_prog in cl.exe
5662 # Extract the first word of "$ac_prog", so it can be a program name with args.
5663 set dummy $ac_prog; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5669 if test -n "$ac_ct_CC"; then
5670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_CC="$ac_prog"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5690 if test -n "$ac_ct_CC"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5692 $as_echo "$ac_ct_CC" >&6; }
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5699 test -n "$ac_ct_CC" && break
5702 if test "x$ac_ct_CC" = x; then
5705 case $cross_compiling:$ac_tool_warned in
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5709 ac_tool_warned=yes ;;
5718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5720 as_fn_error "no acceptable C compiler found in \$PATH
5721 See \`config.log' for more details." "$LINENO" 5; }
5723 # Provide some information about the compiler.
5724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5727 for ac_option in --version -v -V -qversion; do
5728 { { ac_try="$ac_compiler $ac_option >&5"
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5734 $as_echo "$ac_try_echo"; } >&5
5735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5737 if test -s conftest.err; then
5739 ... rest of stderr output deleted ...
5740 10q' conftest.err >conftest.er1
5741 cat conftest.er1 >&5
5743 rm -f conftest.er1 conftest.err
5744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5745 test $ac_status = 0; }
5748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5749 /* end confdefs.h. */
5759 ac_clean_files_save=$ac_clean_files
5760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5761 # Try to create an executable without -o first, disregard a.out.
5762 # It will help us diagnose broken compilers, and finding out an intuition
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5765 $as_echo_n "checking whether the C compiler works... " >&6; }
5766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5768 # The possible output files:
5769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5772 for ac_file in $ac_files
5775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5776 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5781 if { { ac_try="$ac_link_default"
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5787 $as_echo "$ac_try_echo"; } >&5
5788 (eval "$ac_link_default") 2>&5
5790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5791 test $ac_status = 0; }; then :
5792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5794 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5795 # so that the user can short-circuit this test for compilers unknown to
5797 for ac_file in $ac_files ''
5799 test -f "$ac_file" || continue
5801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5804 # We found the default executable, but exeext='' is most
5808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5812 # We set ac_cv_exeext here because the later test for it is not
5813 # safe: cross compilers may not add the suffix if given an `-o'
5814 # argument, so we may need to know it at that point already.
5815 # Even if this section looks crufty: it has the advantage of
5822 test "$ac_cv_exeext" = no && ac_cv_exeext=
5827 if test -z "$ac_file"; then :
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5830 $as_echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5835 { as_fn_set_status 77
5836 as_fn_error "C compiler cannot create executables
5837 See \`config.log' for more details." "$LINENO" 5; }; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840 $as_echo "yes" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5843 $as_echo_n "checking for C compiler default output file name... " >&6; }
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5845 $as_echo "$ac_file" >&6; }
5846 ac_exeext=$ac_cv_exeext
5848 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5849 ac_clean_files=$ac_clean_files_save
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5851 $as_echo_n "checking for suffix of executables... " >&6; }
5852 if { { ac_try="$ac_link"
5854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855 *) ac_try_echo=$ac_try;;
5857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5858 $as_echo "$ac_try_echo"; } >&5
5859 (eval "$ac_link") 2>&5
5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5862 test $ac_status = 0; }; then :
5863 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5864 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5865 # work properly (i.e., refer to `conftest.exe'), while it won't with
5867 for ac_file in conftest.exe conftest conftest.*; do
5868 test -f "$ac_file" || continue
5870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5871 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5879 as_fn_error "cannot compute suffix of executables: cannot compile and link
5880 See \`config.log' for more details." "$LINENO" 5; }
5882 rm -f conftest conftest$ac_cv_exeext
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5884 $as_echo "$ac_cv_exeext" >&6; }
5886 rm -f conftest.$ac_ext
5887 EXEEXT=$ac_cv_exeext
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5895 FILE *f = fopen ("conftest.out", "w");
5896 return ferror (f) || fclose (f) != 0;
5902 ac_clean_files="$ac_clean_files conftest.out"
5903 # Check that the compiler produces executables we can run. If not, either
5904 # the compiler is broken, or we cross compile.
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5906 $as_echo_n "checking whether we are cross compiling... " >&6; }
5907 if test "$cross_compiling" != yes; then
5908 { { ac_try="$ac_link"
5910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5911 *) ac_try_echo=$ac_try;;
5913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5914 $as_echo "$ac_try_echo"; } >&5
5915 (eval "$ac_link") 2>&5
5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5918 test $ac_status = 0; }
5919 if { ac_try='./conftest$ac_cv_exeext'
5920 { { case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5925 $as_echo "$ac_try_echo"; } >&5
5926 (eval "$ac_try") 2>&5
5928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5929 test $ac_status = 0; }; }; then
5932 if test "$cross_compiling" = maybe; then
5935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5937 as_fn_error "cannot run C compiled programs.
5938 If you meant to cross compile, use \`--host'.
5939 See \`config.log' for more details." "$LINENO" 5; }
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5944 $as_echo "$cross_compiling" >&6; }
5946 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5947 ac_clean_files=$ac_clean_files_save
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5949 $as_echo_n "checking for suffix of object files... " >&6; }
5950 if test "${ac_cv_objext+set}" = set; then :
5951 $as_echo_n "(cached) " >&6
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5964 rm -f conftest.o conftest.obj
5965 if { { ac_try="$ac_compile"
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5971 $as_echo "$ac_try_echo"; } >&5
5972 (eval "$ac_compile") 2>&5
5974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; }; then :
5976 for ac_file in conftest.o conftest.obj conftest.*; do
5977 test -f "$ac_file" || continue;
5979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5980 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5990 as_fn_error "cannot compute suffix of object files: cannot compile
5991 See \`config.log' for more details." "$LINENO" 5; }
5993 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5996 $as_echo "$ac_cv_objext" >&6; }
5997 OBJEXT=$ac_cv_objext
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6000 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6001 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6002 $as_echo_n "(cached) " >&6
6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6005 /* end confdefs.h. */
6018 if ac_fn_c_try_compile "$LINENO"; then :
6023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6028 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6029 if test $ac_compiler_gnu = yes; then
6034 ac_test_CFLAGS=${CFLAGS+set}
6035 ac_save_CFLAGS=$CFLAGS
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6037 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6038 if test "${ac_cv_prog_cc_g+set}" = set; then :
6039 $as_echo_n "(cached) " >&6
6041 ac_save_c_werror_flag=$ac_c_werror_flag
6042 ac_c_werror_flag=yes
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6046 /* end confdefs.h. */
6056 if ac_fn_c_try_compile "$LINENO"; then :
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6071 if ac_fn_c_try_compile "$LINENO"; then :
6074 ac_c_werror_flag=$ac_save_c_werror_flag
6076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077 /* end confdefs.h. */
6087 if ac_fn_c_try_compile "$LINENO"; then :
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 ac_c_werror_flag=$ac_save_c_werror_flag
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6098 $as_echo "$ac_cv_prog_cc_g" >&6; }
6099 if test "$ac_test_CFLAGS" = set; then
6100 CFLAGS=$ac_save_CFLAGS
6101 elif test $ac_cv_prog_cc_g = yes; then
6102 if test "$GCC" = yes; then
6108 if test "$GCC" = yes; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6115 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6116 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6119 ac_cv_prog_cc_c89=no
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 #include <sys/stat.h>
6127 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6128 struct buf { int x; };
6129 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6130 static char *e (p, i)
6136 static char *f (char * (*g) (char **, int), char **p, ...)
6141 s = g (p, va_arg (v,int));
6146 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6147 function prototypes and stuff, but not '\xHH' hex character constants.
6148 These don't provoke an error unfortunately, instead are silently treated
6149 as 'x'. The following induces an error, until -std is added to get
6150 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6151 array size at least. It's necessary to write '\x00'==0 to get something
6152 that's true only with -std. */
6153 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6155 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6156 inside strings and character constants. */
6158 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6160 int test (int i, double x);
6161 struct s1 {int (*f) (int a);};
6162 struct s2 {int (*f) (double a);};
6163 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6169 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6174 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6177 CC="$ac_save_CC $ac_arg"
6178 if ac_fn_c_try_compile "$LINENO"; then :
6179 ac_cv_prog_cc_c89=$ac_arg
6181 rm -f core conftest.err conftest.$ac_objext
6182 test "x$ac_cv_prog_cc_c89" != "xno" && break
6184 rm -f conftest.$ac_ext
6189 case "x$ac_cv_prog_cc_c89" in
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6192 $as_echo "none needed" >&6; } ;;
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6195 $as_echo "unsupported" >&6; } ;;
6197 CC="$CC $ac_cv_prog_cc_c89"
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6199 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6201 if test "x$ac_cv_prog_cc_c89" != xno; then :
6206 ac_cpp='$CPP $CPPFLAGS'
6207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6211 depcc="$CC" am_compiler_list=
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6214 $as_echo_n "checking dependency style of $depcc... " >&6; }
6215 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6216 $as_echo_n "(cached) " >&6
6218 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6219 # We make a subdir and do the tests there. Otherwise we can end up
6220 # making bogus files that we don't know about and never remove. For
6221 # instance it was reported that on HP-UX the gcc test will end up
6222 # making a dummy file named `D' -- because `-MD' means `put the output
6225 # Copy depcomp to subdir because otherwise we won't find it if we're
6226 # using a relative directory.
6227 cp "$am_depcomp" conftest.dir
6229 # We will build objects and dependencies in a subdirectory because
6230 # it helps to detect inapplicable dependency modes. For instance
6231 # both Tru64's cc and ICC support -MD to output dependencies as a
6232 # side effect of compilation, but ICC will put the dependencies in
6233 # the current directory while Tru64 will put them in the object
6237 am_cv_CC_dependencies_compiler_type=none
6238 if test "$am_compiler_list" = ""; then
6239 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6241 for depmode in $am_compiler_list; do
6242 # Setup a source with many dependencies, because some compilers
6243 # like to wrap large dependency lists on column 80 (with \), and
6244 # we should not choose a depcomp mode which is confused by this.
6246 # We need to recreate these files for each test, as the compiler may
6247 # overwrite some of them when testing with obscure command lines.
6248 # This happens at least with the AIX C compiler.
6250 for i in 1 2 3 4 5 6; do
6251 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6252 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6253 # Solaris 8's {/usr,}/bin/sh.
6254 touch sub/conftst$i.h
6256 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6260 # after this tag, mechanisms are not by side-effect, so they'll
6261 # only be used when explicitly requested
6262 if test "x$enable_dependency_tracking" = xyes; then
6270 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6271 # mode. It turns out that the SunPro C++ compiler does not properly
6272 # handle `-M -o', and we need to detect this.
6273 if depmode=$depmode \
6274 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6275 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6276 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6277 >/dev/null 2>conftest.err &&
6278 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6279 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6280 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6281 # icc doesn't choke on unknown options, it will just issue warnings
6282 # or remarks (even with -Werror). So we grep stderr for any message
6283 # that says an option was ignored or not supported.
6284 # When given -MP, icc 7.0 and 7.1 complain thusly:
6285 # icc: Command line warning: ignoring option '-M'; no argument required
6286 # The diagnosis changed in icc 8.0:
6287 # icc: Command line remark: option '-MP' not supported
6288 if (grep 'ignoring option' conftest.err ||
6289 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6290 am_cv_CC_dependencies_compiler_type=$depmode
6299 am_cv_CC_dependencies_compiler_type=none
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6304 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6305 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6310 test "x$enable_dependency_tracking" != xno \
6311 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6313 am__fastdepCC_FALSE='#'
6315 am__fastdepCC_TRUE='#'
6316 am__fastdepCC_FALSE=
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6321 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6322 if test "${lt_cv_path_SED+set}" = set; then :
6323 $as_echo_n "(cached) " >&6
6325 # Loop through the user's path and test for sed and gsed.
6326 # Then use that list of sed's as ones to test for truncation.
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 test -z "$as_dir" && as_dir=.
6332 for lt_ac_prog in sed gsed; do
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6335 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6342 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6343 # along with /bin/sed that truncates output.
6344 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6345 test ! -f $lt_ac_sed && continue
6346 cat /dev/null > conftest.in
6348 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6349 # Check for GNU sed and select it if it is found.
6350 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6351 lt_cv_path_SED=$lt_ac_sed
6355 cat conftest.in conftest.in >conftest.tmp
6356 mv conftest.tmp conftest.in
6357 cp conftest.in conftest.nl
6359 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6360 cmp -s conftest.out conftest.nl || break
6361 # 10000 chars as input seems more than enough
6362 test $lt_ac_count -gt 10 && break
6363 lt_ac_count=`expr $lt_ac_count + 1`
6364 if test $lt_ac_count -gt $lt_ac_max; then
6365 lt_ac_max=$lt_ac_count
6366 lt_cv_path_SED=$lt_ac_sed
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6375 $as_echo "$SED" >&6; }
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6378 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6379 if test "${ac_cv_path_GREP+set}" = set; then :
6380 $as_echo_n "(cached) " >&6
6382 if test -z "$GREP"; then
6383 ac_path_GREP_found=false
6384 # Loop through the user's path and test for each of PROGNAME-LIST
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6389 test -z "$as_dir" && as_dir=.
6390 for ac_prog in grep ggrep; do
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6393 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6394 # Check for GNU ac_path_GREP and select it if it is found.
6395 # Check for GNU $ac_path_GREP
6396 case `"$ac_path_GREP" --version 2>&1` in
6398 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6401 $as_echo_n 0123456789 >"conftest.in"
6404 cat "conftest.in" "conftest.in" >"conftest.tmp"
6405 mv "conftest.tmp" "conftest.in"
6406 cp "conftest.in" "conftest.nl"
6407 $as_echo 'GREP' >> "conftest.nl"
6408 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6410 as_fn_arith $ac_count + 1 && ac_count=$as_val
6411 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6412 # Best one so far, save it but keep looking for a better one
6413 ac_cv_path_GREP="$ac_path_GREP"
6414 ac_path_GREP_max=$ac_count
6416 # 10*(2^10) chars as input seems more than enough
6417 test $ac_count -gt 10 && break
6419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6422 $ac_path_GREP_found && break 3
6427 if test -z "$ac_cv_path_GREP"; then
6428 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6431 ac_cv_path_GREP=$GREP
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6436 $as_echo "$ac_cv_path_GREP" >&6; }
6437 GREP="$ac_cv_path_GREP"
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6441 $as_echo_n "checking for egrep... " >&6; }
6442 if test "${ac_cv_path_EGREP+set}" = set; then :
6443 $as_echo_n "(cached) " >&6
6445 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6446 then ac_cv_path_EGREP="$GREP -E"
6448 if test -z "$EGREP"; then
6449 ac_path_EGREP_found=false
6450 # Loop through the user's path and test for each of PROGNAME-LIST
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6455 test -z "$as_dir" && as_dir=.
6456 for ac_prog in egrep; do
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6459 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6460 # Check for GNU ac_path_EGREP and select it if it is found.
6461 # Check for GNU $ac_path_EGREP
6462 case `"$ac_path_EGREP" --version 2>&1` in
6464 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6467 $as_echo_n 0123456789 >"conftest.in"
6470 cat "conftest.in" "conftest.in" >"conftest.tmp"
6471 mv "conftest.tmp" "conftest.in"
6472 cp "conftest.in" "conftest.nl"
6473 $as_echo 'EGREP' >> "conftest.nl"
6474 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6475 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6476 as_fn_arith $ac_count + 1 && ac_count=$as_val
6477 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6478 # Best one so far, save it but keep looking for a better one
6479 ac_cv_path_EGREP="$ac_path_EGREP"
6480 ac_path_EGREP_max=$ac_count
6482 # 10*(2^10) chars as input seems more than enough
6483 test $ac_count -gt 10 && break
6485 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6488 $ac_path_EGREP_found && break 3
6493 if test -z "$ac_cv_path_EGREP"; then
6494 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6497 ac_cv_path_EGREP=$EGREP
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6503 $as_echo "$ac_cv_path_EGREP" >&6; }
6504 EGREP="$ac_cv_path_EGREP"
6508 # Check whether --with-gnu-ld was given.
6509 if test "${with_gnu_ld+set}" = set; then :
6510 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6516 if test "$GCC" = yes; then
6517 # Check if gcc -print-prog-name=ld gives a path.
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6519 $as_echo_n "checking for ld used by $CC... " >&6; }
6522 # gcc leaves a trailing carriage return which upsets mingw
6523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6528 # Accept absolute paths.
6530 re_direlt='/[^/][^/]*/\.\./'
6531 # Canonicalize the pathname of ld
6532 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6533 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6534 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6536 test -z "$LD" && LD="$ac_prog"
6539 # If it fails, then pretend we aren't using GCC.
6543 # If it is relative, then search for the first ld in PATH.
6547 elif test "$with_gnu_ld" = yes; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6549 $as_echo_n "checking for GNU ld... " >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6552 $as_echo_n "checking for non-GNU ld... " >&6; }
6554 if test "${lt_cv_path_LD+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6557 if test -z "$LD"; then
6558 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6559 for ac_dir in $PATH; do
6561 test -z "$ac_dir" && ac_dir=.
6562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6563 lt_cv_path_LD="$ac_dir/$ac_prog"
6564 # Check to see if the program is GNU ld. I'd rather use --version,
6565 # but apparently some variants of GNU ld only accept -v.
6566 # Break only if it was the GNU/non-GNU ld that we prefer.
6567 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6568 *GNU* | *'with BFD'*)
6569 test "$with_gnu_ld" != no && break
6572 test "$with_gnu_ld" != yes && break
6579 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6584 if test -n "$LD"; then
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6586 $as_echo "$LD" >&6; }
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6591 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6594 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6595 $as_echo_n "(cached) " >&6
6597 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6598 case `$LD -v 2>&1 </dev/null` in
6599 *GNU* | *'with BFD'*)
6600 lt_cv_prog_gnu_ld=yes
6603 lt_cv_prog_gnu_ld=no
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6608 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6609 with_gnu_ld=$lt_cv_prog_gnu_ld
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6613 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6614 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6617 lt_cv_ld_reload_flag='-r'
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6620 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6621 reload_flag=$lt_cv_ld_reload_flag
6622 case $reload_flag in
6624 *) reload_flag=" $reload_flag" ;;
6626 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6629 if test "$GCC" = yes; then
6630 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6632 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6638 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6639 if test "${lt_cv_path_NM+set}" = set; then :
6640 $as_echo_n "(cached) " >&6
6642 if test -n "$NM"; then
6643 # Let the user override the test.
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that /dev/null is an invalid object file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev/null* | *'Invalid file or object type'*)
6658 lt_cv_path_NM="$tmp_nm -B"
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6664 lt_cv_path_NM="$tmp_nm -p"
6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6676 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6680 $as_echo "$lt_cv_path_NM" >&6; }
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6684 $as_echo_n "checking whether ln -s works... " >&6; }
6686 if test "$LN_S" = "ln -s"; then
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6688 $as_echo "yes" >&6; }
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6691 $as_echo "no, using $LN_S" >&6; }
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6695 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6696 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6699 lt_cv_file_magic_cmd='$MAGIC_CMD'
6700 lt_cv_file_magic_test_file=
6701 lt_cv_deplibs_check_method='unknown'
6702 # Need to set the preceding variable on all platforms that support
6703 # interlibrary dependencies.
6704 # 'none' -- dependencies not supported.
6705 # `unknown' -- same as none, but documents that we really don't know.
6706 # 'pass_all' -- all dependencies passed with no checks.
6707 # 'test_compile' -- check by making test program.
6708 # 'file_magic [[regex]]' -- check by looking for files in library path
6709 # which responds to the $file_magic_cmd with a given extended regex.
6710 # If you have `file' or equivalent on your system and you're not sure
6711 # whether `pass_all' will *always* work, you probably want this one.
6715 lt_cv_deplibs_check_method=pass_all
6719 lt_cv_deplibs_check_method=pass_all
6723 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6724 lt_cv_file_magic_cmd='/usr/bin/file -L'
6725 lt_cv_file_magic_test_file=/shlib/libc.so
6729 # func_win32_libid is a shell function defined in ltmain.sh
6730 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6731 lt_cv_file_magic_cmd='func_win32_libid'
6735 # Base MSYS/MinGW do not provide the 'file' command needed by
6736 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6737 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6738 lt_cv_file_magic_cmd='$OBJDUMP -f'
6741 darwin* | rhapsody*)
6742 lt_cv_deplibs_check_method=pass_all
6745 freebsd* | kfreebsd*-gnu | dragonfly*)
6746 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6749 # Not sure whether the presence of OpenBSD here was a mistake.
6750 # Let's accept both of them until this is cleared up.
6751 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6752 lt_cv_file_magic_cmd=/usr/bin/file
6753 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6757 lt_cv_deplibs_check_method=pass_all
6762 lt_cv_deplibs_check_method=pass_all
6765 hpux10.20* | hpux11*)
6766 lt_cv_file_magic_cmd=/usr/bin/file
6769 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6770 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6773 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]'
6774 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6777 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6778 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6783 irix5* | irix6* | nonstopux*)
6785 *-32|*"-32 ") libmagic=32-bit;;
6786 *-n32|*"-n32 ") libmagic=N32;;
6787 *-64|*"-64 ") libmagic=64-bit;;
6788 *) libmagic=never-match;;
6790 lt_cv_deplibs_check_method=pass_all
6793 # This must be Linux ELF.
6795 lt_cv_deplibs_check_method=pass_all
6799 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6808 lt_cv_file_magic_cmd=/usr/bin/file
6809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6813 lt_cv_deplibs_check_method=unknown
6817 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6824 osf3* | osf4* | osf5*)
6825 lt_cv_deplibs_check_method=pass_all
6829 lt_cv_deplibs_check_method=pass_all
6833 lt_cv_deplibs_check_method=pass_all
6836 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6837 case $host_vendor in
6839 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]'
6840 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6843 lt_cv_deplibs_check_method=pass_all
6846 lt_cv_file_magic_cmd='/bin/file'
6847 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6850 lt_cv_file_magic_cmd='/bin/file'
6851 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6852 lt_cv_file_magic_test_file=/lib/libc.so
6855 lt_cv_deplibs_check_method=pass_all
6860 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6861 lt_cv_deplibs_check_method=pass_all
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6867 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6868 file_magic_cmd=$lt_cv_file_magic_cmd
6869 deplibs_check_method=$lt_cv_deplibs_check_method
6870 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6875 # If no C compiler was specified, use CC.
6878 # Allow CC to be a program name with arguments.
6882 # Check whether --enable-libtool-lock was given.
6883 if test "${enable_libtool_lock+set}" = set; then :
6884 enableval=$enable_libtool_lock;
6887 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6889 # Some flags need to be propagated to the compiler or linker for good
6893 # Find out which ABI we are using.
6894 echo 'int i;' > conftest.$ac_ext
6895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6896 (eval $ac_compile) 2>&5
6898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6899 test $ac_status = 0; }; then
6900 case `/usr/bin/file conftest.$ac_objext` in
6912 # Find out which ABI we are using.
6913 echo '#line 6913 "configure"' > conftest.$ac_ext
6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915 (eval $ac_compile) 2>&5
6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918 test $ac_status = 0; }; then
6919 if test "$lt_cv_prog_gnu_ld" = yes; then
6920 case `/usr/bin/file conftest.$ac_objext` in
6922 LD="${LD-ld} -melf32bsmip"
6925 LD="${LD-ld} -melf32bmipn32"
6928 LD="${LD-ld} -melf64bmip"
6932 case `/usr/bin/file conftest.$ac_objext` in
6948 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6949 # Find out which ABI we are using.
6950 echo 'int i;' > conftest.$ac_ext
6951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6952 (eval $ac_compile) 2>&5
6954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6955 test $ac_status = 0; }; then
6956 case `/usr/bin/file conftest.o` in
6960 LD="${LD-ld} -m elf_i386"
6962 ppc64-*linux*|powerpc64-*linux*)
6963 LD="${LD-ld} -m elf32ppclinux"
6966 LD="${LD-ld} -m elf_s390"
6969 LD="${LD-ld} -m elf32_sparc"
6976 LD="${LD-ld} -m elf_x86_64"
6978 ppc*-*linux*|powerpc*-*linux*)
6979 LD="${LD-ld} -m elf64ppc"
6982 LD="${LD-ld} -m elf64_s390"
6985 LD="${LD-ld} -m elf64_sparc"
6995 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6996 SAVE_CFLAGS="$CFLAGS"
6997 CFLAGS="$CFLAGS -belf"
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6999 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7000 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
7004 ac_cpp='$CPP $CPPFLAGS'
7005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7020 if ac_fn_c_try_link "$LINENO"; then :
7021 lt_cv_cc_needs_belf=yes
7023 lt_cv_cc_needs_belf=no
7025 rm -f core conftest.err conftest.$ac_objext \
7026 conftest$ac_exeext conftest.$ac_ext
7028 ac_cpp='$CPP $CPPFLAGS'
7029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7035 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7036 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7037 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7038 CFLAGS="$SAVE_CFLAGS"
7041 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7042 if test -n "$ac_tool_prefix"; then
7043 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7044 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7046 $as_echo_n "checking for $ac_word... " >&6; }
7047 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7050 if test -n "$DLLTOOL"; then
7051 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7057 test -z "$as_dir" && as_dir=.
7058 for ac_exec_ext in '' $ac_executable_extensions; do
7059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7060 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 DLLTOOL=$ac_cv_prog_DLLTOOL
7071 if test -n "$DLLTOOL"; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7073 $as_echo "$DLLTOOL" >&6; }
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7076 $as_echo "no" >&6; }
7081 if test -z "$ac_cv_prog_DLLTOOL"; then
7082 ac_ct_DLLTOOL=$DLLTOOL
7083 # Extract the first word of "dlltool", so it can be a program name with args.
7084 set dummy dlltool; ac_word=$2
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7086 $as_echo_n "checking for $ac_word... " >&6; }
7087 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7088 $as_echo_n "(cached) " >&6
7090 if test -n "$ac_ct_DLLTOOL"; then
7091 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7097 test -z "$as_dir" && as_dir=.
7098 for ac_exec_ext in '' $ac_executable_extensions; do
7099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7100 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7111 if test -n "$ac_ct_DLLTOOL"; then
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7113 $as_echo "$ac_ct_DLLTOOL" >&6; }
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7119 if test "x$ac_ct_DLLTOOL" = x; then
7122 case $cross_compiling:$ac_tool_warned in
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126 ac_tool_warned=yes ;;
7128 DLLTOOL=$ac_ct_DLLTOOL
7131 DLLTOOL="$ac_cv_prog_DLLTOOL"
7134 if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7136 set dummy ${ac_tool_prefix}as; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_AS+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7142 if test -n "$AS"; then
7143 ac_cv_prog_AS="$AS" # Let the user override the test.
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_AS="${ac_tool_prefix}as"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 if test -n "$AS"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7165 $as_echo "$AS" >&6; }
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7173 if test -z "$ac_cv_prog_AS"; then
7175 # Extract the first word of "as", so it can be a program name with args.
7176 set dummy as; ac_word=$2
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178 $as_echo_n "checking for $ac_word... " >&6; }
7179 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7180 $as_echo_n "(cached) " >&6
7182 if test -n "$ac_ct_AS"; then
7183 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7192 ac_cv_prog_ac_ct_AS="as"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7203 if test -n "$ac_ct_AS"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7205 $as_echo "$ac_ct_AS" >&6; }
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7211 if test "x$ac_ct_AS" = x; then
7214 case $cross_compiling:$ac_tool_warned in
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218 ac_tool_warned=yes ;;
7226 if test -n "$ac_tool_prefix"; then
7227 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7228 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7232 $as_echo_n "(cached) " >&6
7234 if test -n "$OBJDUMP"; then
7235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir=.
7242 for ac_exec_ext in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7254 OBJDUMP=$ac_cv_prog_OBJDUMP
7255 if test -n "$OBJDUMP"; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7257 $as_echo "$OBJDUMP" >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7265 if test -z "$ac_cv_prog_OBJDUMP"; then
7266 ac_ct_OBJDUMP=$OBJDUMP
7267 # Extract the first word of "objdump", so it can be a program name with args.
7268 set dummy objdump; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7272 $as_echo_n "(cached) " >&6
7274 if test -n "$ac_ct_OBJDUMP"; then
7275 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7281 test -z "$as_dir" && as_dir=.
7282 for ac_exec_ext in '' $ac_executable_extensions; do
7283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7284 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7295 if test -n "$ac_ct_OBJDUMP"; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7297 $as_echo "$ac_ct_OBJDUMP" >&6; }
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }
7303 if test "x$ac_ct_OBJDUMP" = x; then
7306 case $cross_compiling:$ac_tool_warned in
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7310 ac_tool_warned=yes ;;
7312 OBJDUMP=$ac_ct_OBJDUMP
7315 OBJDUMP="$ac_cv_prog_OBJDUMP"
7322 need_locks="$enable_libtool_lock"
7326 ac_cpp='$CPP $CPPFLAGS'
7327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7331 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7332 # On Suns, sometimes $CPP names a directory.
7333 if test -n "$CPP" && test -d "$CPP"; then
7336 if test -z "$CPP"; then
7337 if test "${ac_cv_prog_CPP+set}" = set; then :
7338 $as_echo_n "(cached) " >&6
7340 # Double quotes because CPP needs to be expanded
7341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7344 for ac_c_preproc_warn_flag in '' yes
7346 # Use a header file that comes with gcc, so configuring glibc
7347 # with a fresh cross-compiler works.
7348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7349 # <limits.h> exists even on freestanding compilers.
7350 # On the NeXT, cc -E runs the code through the compiler's parser,
7351 # not just through cpp. "Syntax error" is here to catch this case.
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7355 # include <limits.h>
7357 # include <assert.h>
7361 if ac_fn_c_try_cpp "$LINENO"; then :
7364 # Broken: fails on valid input.
7367 rm -f conftest.err conftest.$ac_ext
7369 # OK, works on sane cases. Now check whether nonexistent headers
7370 # can be detected and how.
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7373 #include <ac_nonexistent.h>
7375 if ac_fn_c_try_cpp "$LINENO"; then :
7376 # Broken: success on invalid input.
7379 # Passes both tests.
7383 rm -f conftest.err conftest.$ac_ext
7386 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7387 rm -f conftest.err conftest.$ac_ext
7388 if $ac_preproc_ok; then :
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7401 $as_echo "$CPP" >&6; }
7403 for ac_c_preproc_warn_flag in '' yes
7405 # Use a header file that comes with gcc, so configuring glibc
7406 # with a fresh cross-compiler works.
7407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7408 # <limits.h> exists even on freestanding compilers.
7409 # On the NeXT, cc -E runs the code through the compiler's parser,
7410 # not just through cpp. "Syntax error" is here to catch this case.
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7414 # include <limits.h>
7416 # include <assert.h>
7420 if ac_fn_c_try_cpp "$LINENO"; then :
7423 # Broken: fails on valid input.
7426 rm -f conftest.err conftest.$ac_ext
7428 # OK, works on sane cases. Now check whether nonexistent headers
7429 # can be detected and how.
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 #include <ac_nonexistent.h>
7434 if ac_fn_c_try_cpp "$LINENO"; then :
7435 # Broken: success on invalid input.
7438 # Passes both tests.
7442 rm -f conftest.err conftest.$ac_ext
7445 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7446 rm -f conftest.err conftest.$ac_ext
7447 if $ac_preproc_ok; then :
7450 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7451 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7452 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7453 See \`config.log' for more details." "$LINENO" 5; }
7457 ac_cpp='$CPP $CPPFLAGS'
7458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7464 $as_echo_n "checking for ANSI C header files... " >&6; }
7465 if test "${ac_cv_header_stdc+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7483 if ac_fn_c_try_compile "$LINENO"; then :
7484 ac_cv_header_stdc=yes
7486 ac_cv_header_stdc=no
7488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 if test $ac_cv_header_stdc = yes; then
7491 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "memchr" >/dev/null 2>&1; then :
7501 ac_cv_header_stdc=no
7507 if test $ac_cv_header_stdc = yes; then
7508 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7515 $EGREP "free" >/dev/null 2>&1; then :
7518 ac_cv_header_stdc=no
7524 if test $ac_cv_header_stdc = yes; then
7525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7526 if test "$cross_compiling" = yes; then :
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7533 #if ((' ' & 0x0FF) == 0x020)
7534 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7535 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7537 # define ISLOWER(c) \
7538 (('a' <= (c) && (c) <= 'i') \
7539 || ('j' <= (c) && (c) <= 'r') \
7540 || ('s' <= (c) && (c) <= 'z'))
7541 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7544 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7549 for (i = 0; i < 256; i++)
7550 if (XOR (islower (i), ISLOWER (i))
7551 || toupper (i) != TOUPPER (i))
7556 if ac_fn_c_try_run "$LINENO"; then :
7559 ac_cv_header_stdc=no
7561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7562 conftest.$ac_objext conftest.beam conftest.$ac_ext
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7568 $as_echo "$ac_cv_header_stdc" >&6; }
7569 if test $ac_cv_header_stdc = yes; then
7571 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7575 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7576 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7577 inttypes.h stdint.h unistd.h
7579 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7580 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7582 eval as_val=\$$as_ac_Header
7583 if test "x$as_val" = x""yes; then :
7584 cat >>confdefs.h <<_ACEOF
7585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7593 for ac_header in dlfcn.h
7595 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7596 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7597 cat >>confdefs.h <<_ACEOF
7598 #define HAVE_DLFCN_H 1
7606 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7608 # find the maximum length of command line arguments
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7610 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7611 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7619 # On DJGPP, this test can blow up pretty badly due to problems in libc
7620 # (any single argument exceeding 2000 bytes causes a buffer overrun
7621 # during glob expansion). Even if it were fixed, the result of this
7622 # check would be larger than it should be.
7623 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7627 # Under GNU Hurd, this test is not required because there is
7628 # no limit to the length of command line arguments.
7629 # Libtool will interpret -1 as no limit whatsoever
7630 lt_cv_sys_max_cmd_len=-1;
7634 # On Win9x/ME, this test blows up -- it succeeds, but takes
7635 # about 5 minutes as the teststring grows exponentially.
7636 # Worse, since 9x/ME are not pre-emptively multitasking,
7637 # you end up with a "frozen" computer, even though with patience
7638 # the test eventually succeeds (with a max line length of 256k).
7639 # Instead, let's just punt: use the minimum linelength reported by
7640 # all of the supported platforms: 8192 (on NT/2K/XP).
7641 lt_cv_sys_max_cmd_len=8192;
7645 # On AmigaOS with pdksh, this test takes hours, literally.
7646 # So we just punt and use a minimum line length of 8192.
7647 lt_cv_sys_max_cmd_len=8192;
7650 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7651 # This has been around since 386BSD, at least. Likely further.
7652 if test -x /sbin/sysctl; then
7653 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7654 elif test -x /usr/sbin/sysctl; then
7655 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7657 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7659 # And add a safety zone
7660 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7661 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7664 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7665 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7666 # nice to cause kernel panics so lets avoid the loop below.
7667 # First set a reasonable default.
7668 lt_cv_sys_max_cmd_len=16384
7670 if test -x /sbin/sysconfig; then
7671 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7672 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7677 # If test is not a shell built-in, we'll probably end up computing a
7678 # maximum length that is only half of the actual maximum length, but
7680 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7681 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7682 = "XX$teststring") >/dev/null 2>&1 &&
7683 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7684 lt_cv_sys_max_cmd_len=$new_result &&
7685 test $i != 17 # 1/2 MB should be enough
7688 teststring=$teststring$teststring
7691 # Add a significant safety factor because C++ compilers can tack on massive
7692 # amounts of additional arguments before passing them to the linker.
7693 # It appears as though 1/2 is a usable value.
7694 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7702 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7705 $as_echo "none" >&6; }
7711 # Check for command to grab the raw symbol name followed by C symbol from nm.
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7713 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7715 $as_echo_n "(cached) " >&6
7718 # These are sane defaults that work on at least a few old systems.
7719 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7721 # Character class describing NM global symbol codes.
7722 symcode='[BCDEGRST]'
7724 # Regexp to match symbols that can be accessed directly from C.
7725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7727 # Transform an extracted symbol line into a proper C declaration
7728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7730 # Transform an extracted symbol line into symbol name and symbol address
7731 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'"
7733 # Define system-specific variables.
7738 cygwin* | mingw* | pw32*)
7739 symcode='[ABCDGISTW]'
7741 hpux*) # Its linker distinguishes data from code symbols
7742 if test "$host_cpu" = ia64; then
7743 symcode='[ABCDEGRST]'
7745 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7746 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'"
7749 if test "$host_cpu" = ia64; then
7750 symcode='[ABCDGIRSTW]'
7751 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7752 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'"
7756 symcode='[BCDEGRST]'
7759 symcode='[BCDEGQRST]'
7769 # Handle CRLF in mingw tool chain
7773 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7777 # If we're using GNU nm, then use its standard symbol codes.
7778 case `$NM -V 2>&1` in
7779 *GNU* | *'with BFD'*)
7780 symcode='[ABCDGIRSTW]' ;;
7783 # Try without a prefix undercore, then with it.
7784 for ac_symprfx in "" "_"; do
7786 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7787 symxfrm="\\1 $ac_symprfx\\2 \\2"
7789 # Write the raw and C identifiers.
7790 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7792 # Check to see that the pipe works correctly.
7796 cat > conftest.$ac_ext <<EOF
7801 void nm_test_func(){}
7805 int main(){nm_test_var='a';nm_test_func();return(0);}
7808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7809 (eval $ac_compile) 2>&5
7811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7812 test $ac_status = 0; }; then
7813 # Now try to grab the symbols.
7815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7816 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7819 test $ac_status = 0; } && test -s "$nlist"; then
7820 # Try sorting and uniquifying the output.
7821 if sort "$nlist" | uniq > "$nlist"T; then
7822 mv -f "$nlist"T "$nlist"
7827 # Make sure that we snagged all the symbols we need.
7828 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7829 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7830 cat <<EOF > conftest.$ac_ext
7836 # Now generate the symbol file.
7837 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7839 cat <<EOF >> conftest.$ac_ext
7840 #if defined (__STDC__) && __STDC__
7841 # define lt_ptr_t void *
7843 # define lt_ptr_t char *
7847 /* The mapping between symbol names and symbols. */
7852 lt_preloaded_symbols[] =
7855 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7856 cat <<\EOF >> conftest.$ac_ext
7864 # Now try linking the two files.
7865 mv conftest.$ac_objext conftstm.$ac_objext
7866 lt_save_LIBS="$LIBS"
7867 lt_save_CFLAGS="$CFLAGS"
7868 LIBS="conftstm.$ac_objext"
7869 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7870 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7871 (eval $ac_link) 2>&5
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7877 LIBS="$lt_save_LIBS"
7878 CFLAGS="$lt_save_CFLAGS"
7880 echo "cannot find nm_test_func in $nlist" >&5
7883 echo "cannot find nm_test_var in $nlist" >&5
7886 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7889 echo "$progname: failed program was:" >&5
7890 cat conftest.$ac_ext >&5
7892 rm -f conftest* conftst*
7894 # Do not use the global_symbol_pipe unless it works.
7895 if test "$pipe_works" = yes; then
7898 lt_cv_sys_global_symbol_pipe=
7904 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7905 lt_cv_sys_global_symbol_to_cdecl=
7907 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7909 $as_echo "failed" >&6; }
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7912 $as_echo "ok" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7916 $as_echo_n "checking for objdir... " >&6; }
7917 if test "${lt_cv_objdir+set}" = set; then :
7918 $as_echo_n "(cached) " >&6
7920 rm -f .libs 2>/dev/null
7921 mkdir .libs 2>/dev/null
7922 if test -d .libs; then
7925 # MS-DOS does not allow filenames that begin with a dot.
7928 rmdir .libs 2>/dev/null
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7931 $as_echo "$lt_cv_objdir" >&6; }
7932 objdir=$lt_cv_objdir
7940 # AIX sometimes has problems with the GCC collect2 program. For some
7941 # reason, if we set the COLLECT_NAMES environment variable, the problems
7942 # vanish in a puff of smoke.
7943 if test "X${COLLECT_NAMES+set}" != Xset; then
7945 export COLLECT_NAMES
7950 # Sed substitution that helps us do robust quoting. It backslashifies
7951 # metacharacters that are still active within double-quoted strings.
7952 Xsed='sed -e 1s/^X//'
7953 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7955 # Same as above, but do not quote variable references.
7956 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7958 # Sed substitution to delay expansion of an escaped shell variable in a
7959 # double_quote_subst'ed string.
7960 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7962 # Sed substitution to avoid accidental globbing in evaled expressions
7963 no_glob_subst='s/\*/\\\*/g'
7969 default_ofile=libtool
7970 can_build_shared=yes
7972 # All known linkers require a `.a' archive for static linking (except MSVC,
7973 # which needs '.lib').
7975 ltmain="$ac_aux_dir/ltmain.sh"
7976 ofile="$default_ofile"
7977 with_gnu_ld="$lt_cv_prog_gnu_ld"
7979 if test -n "$ac_tool_prefix"; then
7980 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7981 set dummy ${ac_tool_prefix}ar; ac_word=$2
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7983 $as_echo_n "checking for $ac_word... " >&6; }
7984 if test "${ac_cv_prog_AR+set}" = set; then :
7985 $as_echo_n "(cached) " >&6
7987 if test -n "$AR"; then
7988 ac_cv_prog_AR="$AR" # Let the user override the test.
7990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 test -z "$as_dir" && as_dir=.
7995 for ac_exec_ext in '' $ac_executable_extensions; do
7996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7997 ac_cv_prog_AR="${ac_tool_prefix}ar"
7998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 if test -n "$AR"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8010 $as_echo "$AR" >&6; }
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8018 if test -z "$ac_cv_prog_AR"; then
8020 # Extract the first word of "ar", so it can be a program name with args.
8021 set dummy ar; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8025 $as_echo_n "(cached) " >&6
8027 if test -n "$ac_ct_AR"; then
8028 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8034 test -z "$as_dir" && as_dir=.
8035 for ac_exec_ext in '' $ac_executable_extensions; do
8036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037 ac_cv_prog_ac_ct_AR="ar"
8038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8048 if test -n "$ac_ct_AR"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8050 $as_echo "$ac_ct_AR" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8056 if test "x$ac_ct_AR" = x; then
8059 case $cross_compiling:$ac_tool_warned in
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8063 ac_tool_warned=yes ;;
8071 if test -n "$ac_tool_prefix"; then
8072 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8073 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 $as_echo_n "checking for $ac_word... " >&6; }
8076 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8077 $as_echo_n "(cached) " >&6
8079 if test -n "$RANLIB"; then
8080 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 test -z "$as_dir" && as_dir=.
8087 for ac_exec_ext in '' $ac_executable_extensions; do
8088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8089 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8099 RANLIB=$ac_cv_prog_RANLIB
8100 if test -n "$RANLIB"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8102 $as_echo "$RANLIB" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8110 if test -z "$ac_cv_prog_RANLIB"; then
8111 ac_ct_RANLIB=$RANLIB
8112 # Extract the first word of "ranlib", so it can be a program name with args.
8113 set dummy ranlib; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8119 if test -n "$ac_ct_RANLIB"; then
8120 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 test -z "$as_dir" && as_dir=.
8127 for ac_exec_ext in '' $ac_executable_extensions; do
8128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129 ac_cv_prog_ac_ct_RANLIB="ranlib"
8130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8140 if test -n "$ac_ct_RANLIB"; then
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8142 $as_echo "$ac_ct_RANLIB" >&6; }
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8148 if test "x$ac_ct_RANLIB" = x; then
8151 case $cross_compiling:$ac_tool_warned in
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8155 ac_tool_warned=yes ;;
8157 RANLIB=$ac_ct_RANLIB
8160 RANLIB="$ac_cv_prog_RANLIB"
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}strip; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_STRIP+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 if test -n "$STRIP"; then
8172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 STRIP=$ac_cv_prog_STRIP
8192 if test -n "$STRIP"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8194 $as_echo "$STRIP" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test -z "$ac_cv_prog_STRIP"; then
8204 # Extract the first word of "strip", so it can be a program name with args.
8205 set dummy strip; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$ac_ct_STRIP"; then
8212 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_ac_ct_STRIP="strip"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8232 if test -n "$ac_ct_STRIP"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8234 $as_echo "$ac_ct_STRIP" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_ct_STRIP" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8252 STRIP="$ac_cv_prog_STRIP"
8257 old_CFLAGS="$CFLAGS"
8259 # Set sane defaults for various variables
8260 test -z "$AR" && AR=ar
8261 test -z "$AR_FLAGS" && AR_FLAGS=cru
8262 test -z "$AS" && AS=as
8263 test -z "$CC" && CC=cc
8264 test -z "$LTCC" && LTCC=$CC
8265 test -z "$DLLTOOL" && DLLTOOL=dlltool
8266 test -z "$LD" && LD=ld
8267 test -z "$LN_S" && LN_S="ln -s"
8268 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8269 test -z "$NM" && NM=nm
8270 test -z "$SED" && SED=sed
8271 test -z "$OBJDUMP" && OBJDUMP=objdump
8272 test -z "$RANLIB" && RANLIB=:
8273 test -z "$STRIP" && STRIP=:
8274 test -z "$ac_objext" && ac_objext=o
8276 # Determine commands to create old-style static archives.
8277 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8278 old_postinstall_cmds='chmod 644 $oldlib'
8279 old_postuninstall_cmds=
8281 if test -n "$RANLIB"; then
8284 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8287 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8290 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8293 for cc_temp in $compiler""; do
8295 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8296 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8301 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8304 # Only perform the check for file, if the check method requires it
8305 case $deplibs_check_method in
8307 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8309 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8310 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318 lt_save_MAGIC_CMD="$MAGIC_CMD"
8319 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8320 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8321 for ac_dir in $ac_dummy; do
8323 test -z "$ac_dir" && ac_dir=.
8324 if test -f $ac_dir/${ac_tool_prefix}file; then
8325 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8326 if test -n "$file_magic_test_file"; then
8327 case $deplibs_check_method in
8329 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8330 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8332 $EGREP "$file_magic_regex" > /dev/null; then
8337 *** Warning: the command libtool uses to detect shared libraries,
8338 *** $file_magic_cmd, produces output that libtool cannot recognize.
8339 *** The result is that libtool may fail to recognize shared libraries
8340 *** as such. This will affect the creation of libtool libraries that
8341 *** depend on shared libraries, but programs linked with such libtool
8342 *** libraries will work regardless of this problem. Nevertheless, you
8343 *** may want to report the problem to your system manager and/or to
8344 *** bug-libtool@gnu.org
8354 MAGIC_CMD="$lt_save_MAGIC_CMD"
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if test -n "$MAGIC_CMD"; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8362 $as_echo "$MAGIC_CMD" >&6; }
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365 $as_echo "no" >&6; }
8368 if test -z "$lt_cv_path_MAGIC_CMD"; then
8369 if test -n "$ac_tool_prefix"; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8371 $as_echo_n "checking for file... " >&6; }
8372 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8377 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8380 lt_save_MAGIC_CMD="$MAGIC_CMD"
8381 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8383 for ac_dir in $ac_dummy; do
8385 test -z "$ac_dir" && ac_dir=.
8386 if test -f $ac_dir/file; then
8387 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8388 if test -n "$file_magic_test_file"; then
8389 case $deplibs_check_method in
8391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8392 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8394 $EGREP "$file_magic_regex" > /dev/null; then
8399 *** Warning: the command libtool uses to detect shared libraries,
8400 *** $file_magic_cmd, produces output that libtool cannot recognize.
8401 *** The result is that libtool may fail to recognize shared libraries
8402 *** as such. This will affect the creation of libtool libraries that
8403 *** depend on shared libraries, but programs linked with such libtool
8404 *** libraries will work regardless of this problem. Nevertheless, you
8405 *** may want to report the problem to your system manager and/or to
8406 *** bug-libtool@gnu.org
8416 MAGIC_CMD="$lt_save_MAGIC_CMD"
8421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8422 if test -n "$MAGIC_CMD"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8424 $as_echo "$MAGIC_CMD" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8440 enable_win32_dll=yes
8442 # Check whether --enable-libtool-lock was given.
8443 if test "${enable_libtool_lock+set}" = set; then :
8444 enableval=$enable_libtool_lock;
8447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8450 # Check whether --with-pic was given.
8451 if test "${with_pic+set}" = set; then :
8452 withval=$with_pic; pic_mode="$withval"
8457 test -z "$pic_mode" && pic_mode=default
8459 # Use C for the default configuration in the libtool script
8463 ac_cpp='$CPP $CPPFLAGS'
8464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8469 # Source file extension for C test sources.
8472 # Object file extension for compiled C test sources.
8476 # Code to be used in simple compile tests
8477 lt_simple_compile_test_code="int some_variable = 0;\n"
8479 # Code to be used in simple link tests
8480 lt_simple_link_test_code='int main(){return(0);}\n'
8483 # If no C compiler was specified, use CC.
8486 # Allow CC to be a program name with arguments.
8490 # save warnings/boilerplate of simple test code
8491 ac_outfile=conftest.$ac_objext
8492 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8493 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8494 _lt_compiler_boilerplate=`cat conftest.err`
8497 ac_outfile=conftest.$ac_objext
8498 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8499 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8500 _lt_linker_boilerplate=`cat conftest.err`
8505 # Check for any special shared library compilation flags.
8508 if test "$GCC" = no; then
8511 lt_prog_cc_shlib='-belf'
8515 if test -n "$lt_prog_cc_shlib"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8517 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8518 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8521 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8522 lt_cv_prog_cc_can_build_shared=no
8528 # Check to make sure the static flag actually works.
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8531 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8532 if test "${lt_prog_compiler_static_works+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
8535 lt_prog_compiler_static_works=no
8536 save_LDFLAGS="$LDFLAGS"
8537 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8538 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8540 # The linker can only warn and ignore the option if not recognized
8541 # So say no if there are warnings
8542 if test -s conftest.err; then
8543 # Append any errors to the config.log.
8544 cat conftest.err 1>&5
8545 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8546 $SED '/^$/d' conftest.err >conftest.er2
8547 if diff conftest.exp conftest.er2 >/dev/null; then
8548 lt_prog_compiler_static_works=yes
8551 lt_prog_compiler_static_works=yes
8555 LDFLAGS="$save_LDFLAGS"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8559 $as_echo "$lt_prog_compiler_static_works" >&6; }
8561 if test x"$lt_prog_compiler_static_works" = xyes; then
8564 lt_prog_compiler_static=
8570 lt_prog_compiler_no_builtin_flag=
8572 if test "$GCC" = yes; then
8573 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8577 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8578 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8579 $as_echo_n "(cached) " >&6
8581 lt_cv_prog_compiler_rtti_exceptions=no
8582 ac_outfile=conftest.$ac_objext
8583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8584 lt_compiler_flag="-fno-rtti -fno-exceptions"
8585 # Insert the option either (1) after the last *FLAGS variable, or
8586 # (2) before a word containing "conftest.", or (3) at the end.
8587 # Note that $ac_compile itself does not contain backslashes and begins
8588 # with a dollar sign (not a hyphen), so the echo should work correctly.
8589 # The option is referenced via a variable to avoid confusing sed.
8590 lt_compile=`echo "$ac_compile" | $SED \
8591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8593 -e 's:$: $lt_compiler_flag:'`
8594 (eval echo "\"\$as_me:8594: $lt_compile\"" >&5)
8595 (eval "$lt_compile" 2>conftest.err)
8597 cat conftest.err >&5
8598 echo "$as_me:8598: \$? = $ac_status" >&5
8599 if (exit $ac_status) && test -s "$ac_outfile"; then
8600 # The compiler can only warn and ignore the option if not recognized
8601 # So say no if there are warnings other than the usual output.
8602 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8603 $SED '/^$/d' conftest.err >conftest.er2
8604 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8605 lt_cv_prog_compiler_rtti_exceptions=yes
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8612 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8614 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8615 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8622 lt_prog_compiler_wl=
8623 lt_prog_compiler_pic=
8624 lt_prog_compiler_static=
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8627 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8629 if test "$GCC" = yes; then
8630 lt_prog_compiler_wl='-Wl,'
8631 lt_prog_compiler_static='-static'
8635 # All AIX code is PIC.
8636 if test "$host_cpu" = ia64; then
8637 # AIX 5 now supports IA64 processor
8638 lt_prog_compiler_static='-Bstatic'
8643 # FIXME: we need at least 68020 code to build shared libraries, but
8644 # adding the `-m68020' flag to GCC prevents building anything better,
8646 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8649 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8650 # PIC is the default for these OSes.
8653 mingw* | pw32* | os2*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 lt_prog_compiler_pic='-DDLL_EXPORT'
8659 darwin* | rhapsody*)
8660 # PIC is the default on this platform
8661 # Common symbols not allowed in MH_DYLIB files
8662 lt_prog_compiler_pic='-fno-common'
8666 # Just because we use GCC doesn't mean we suddenly get shared libraries
8667 # on systems that don't support them.
8668 lt_prog_compiler_can_build_shared=no
8673 if test -d /usr/nec; then
8674 lt_prog_compiler_pic=-Kconform_pic
8679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8686 lt_prog_compiler_pic='-fPIC'
8692 lt_prog_compiler_pic='-fPIC'
8696 # PORTME Check for flag to pass linker flags through the system compiler.
8699 lt_prog_compiler_wl='-Wl,'
8700 if test "$host_cpu" = ia64; then
8701 # AIX 5 now supports IA64 processor
8702 lt_prog_compiler_static='-Bstatic'
8704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8708 # PIC is the default on this platform
8709 # Common symbols not allowed in MH_DYLIB files
8710 case $cc_basename in
8712 lt_prog_compiler_pic='-qnocommon'
8713 lt_prog_compiler_wl='-Wl,'
8718 mingw* | pw32* | os2*)
8719 # This hack is so that the source file can tell whether it is being
8720 # built for inclusion in a dll (and should export symbols for example).
8721 lt_prog_compiler_pic='-DDLL_EXPORT'
8724 hpux9* | hpux10* | hpux11*)
8725 lt_prog_compiler_wl='-Wl,'
8726 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8733 lt_prog_compiler_pic='+Z'
8736 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737 lt_prog_compiler_static='${wl}-a ${wl}archive'
8740 irix5* | irix6* | nonstopux*)
8741 lt_prog_compiler_wl='-Wl,'
8742 # PIC (with -KPIC) is the default.
8743 lt_prog_compiler_static='-non_shared'
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8752 case $cc_basename in
8754 lt_prog_compiler_wl='-Wl,'
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-static'
8758 pgcc* | pgf77* | pgf90* | pgf95*)
8759 # Portland Group compilers (*not* the Pentium gcc compiler,
8760 # which looks to be a dead project)
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='-fpic'
8763 lt_prog_compiler_static='-Bstatic'
8766 lt_prog_compiler_wl='-Wl,'
8767 # All Alpha code is PIC.
8768 lt_prog_compiler_static='-non_shared'
8773 osf3* | osf4* | osf5*)
8774 lt_prog_compiler_wl='-Wl,'
8775 # All OSF/1 code is PIC.
8776 lt_prog_compiler_static='-non_shared'
8780 lt_prog_compiler_pic='-Kpic'
8781 lt_prog_compiler_static='-dn'
8785 lt_prog_compiler_pic='-KPIC'
8786 lt_prog_compiler_static='-Bstatic'
8787 case $cc_basename in
8789 lt_prog_compiler_wl='-Qoption ld ';;
8791 lt_prog_compiler_wl='-Wl,';;
8796 lt_prog_compiler_wl='-Qoption ld '
8797 lt_prog_compiler_pic='-PIC'
8798 lt_prog_compiler_static='-Bstatic'
8801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8802 lt_prog_compiler_wl='-Wl,'
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8808 if test -d /usr/nec ;then
8809 lt_prog_compiler_pic='-Kconform_pic'
8810 lt_prog_compiler_static='-Bstatic'
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_can_build_shared=no
8820 lt_prog_compiler_pic='-pic'
8821 lt_prog_compiler_static='-Bstatic'
8825 lt_prog_compiler_can_build_shared=no
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8831 $as_echo "$lt_prog_compiler_pic" >&6; }
8834 # Check to make sure the PIC flag actually works.
8836 if test -n "$lt_prog_compiler_pic"; then
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8839 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8840 if test "${lt_prog_compiler_pic_works+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
8843 lt_prog_compiler_pic_works=no
8844 ac_outfile=conftest.$ac_objext
8845 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8846 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 # The option is referenced via a variable to avoid confusing sed.
8852 lt_compile=`echo "$ac_compile" | $SED \
8853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8855 -e 's:$: $lt_compiler_flag:'`
8856 (eval echo "\"\$as_me:8856: $lt_compile\"" >&5)
8857 (eval "$lt_compile" 2>conftest.err)
8859 cat conftest.err >&5
8860 echo "$as_me:8860: \$? = $ac_status" >&5
8861 if (exit $ac_status) && test -s "$ac_outfile"; then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings other than the usual output.
8864 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8865 $SED '/^$/d' conftest.err >conftest.er2
8866 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8867 lt_prog_compiler_pic_works=yes
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8874 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8876 if test x"$lt_prog_compiler_pic_works" = xyes; then
8877 case $lt_prog_compiler_pic in
8879 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882 lt_prog_compiler_pic=
8883 lt_prog_compiler_can_build_shared=no
8888 # For platforms which do not support PIC, -DPIC is meaningless:
8890 lt_prog_compiler_pic=
8893 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8900 $as_echo_n "(cached) " >&6
8902 lt_cv_prog_compiler_c_o=no
8903 $rm -r conftest 2>/dev/null
8907 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8909 lt_compiler_flag="-o out/conftest2.$ac_objext"
8910 # Insert the option either (1) after the last *FLAGS variable, or
8911 # (2) before a word containing "conftest.", or (3) at the end.
8912 # Note that $ac_compile itself does not contain backslashes and begins
8913 # with a dollar sign (not a hyphen), so the echo should work correctly.
8914 lt_compile=`echo "$ac_compile" | $SED \
8915 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917 -e 's:$: $lt_compiler_flag:'`
8918 (eval echo "\"\$as_me:8918: $lt_compile\"" >&5)
8919 (eval "$lt_compile" 2>out/conftest.err)
8921 cat out/conftest.err >&5
8922 echo "$as_me:8922: \$? = $ac_status" >&5
8923 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8925 # The compiler can only warn and ignore the option if not recognized
8926 # So say no if there are warnings
8927 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8928 $SED '/^$/d' out/conftest.err >out/conftest.er2
8929 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930 lt_cv_prog_compiler_c_o=yes
8935 # SGI C++ compiler will create directory out/ii_files/ for
8936 # template instantiation
8937 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8938 $rm out/* && rmdir out
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8948 hard_links="nottested"
8949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950 # do not overwrite the value of need_locks provided by the user
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952 $as_echo_n "checking if we can lock with hard links... " >&6; }
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8957 ln conftest.a conftest.b 2>&5 || hard_links=no
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960 $as_echo "$hard_links" >&6; }
8961 if test "$hard_links" = no; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8971 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8974 allow_undefined_flag=
8975 enable_shared_with_static_runtimes=no
8977 archive_expsym_cmds=
8978 old_archive_From_new_cmds=
8979 old_archive_from_expsyms_cmds=
8980 export_dynamic_flag_spec=
8981 whole_archive_flag_spec=
8982 thread_safe_flag_spec=
8983 hardcode_libdir_flag_spec=
8984 hardcode_libdir_flag_spec_ld=
8985 hardcode_libdir_separator=
8988 hardcode_shlibpath_var=unsupported
8989 link_all_deplibs=unknown
8990 hardcode_automatic=no
8993 always_export_symbols=no
8994 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8995 # include_expsyms should be a list of space-separated symbols to be *always*
8996 # included in the symbol list
8998 # exclude_expsyms can be an extended regexp of symbols to exclude
8999 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9000 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9001 # as well as any symbol that contains `d'.
9002 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9003 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9004 # platforms (ab)use it in PIC code, but their linkers get confused if
9005 # the symbol is explicitly referenced. Since portable code cannot
9006 # rely on this symbol name, it's probably fine to never include it in
9007 # preloaded symbol tables.
9008 extract_expsyms_cmds=
9009 # Just being paranoid about ensuring that cc_basename is set.
9010 for cc_temp in $compiler""; do
9012 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9013 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9021 cygwin* | mingw* | pw32*)
9022 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9023 # When not using gcc, we currently assume that we are using
9024 # Microsoft Visual C++.
9025 if test "$GCC" != yes; then
9035 if test "$with_gnu_ld" = yes; then
9036 # If archive_cmds runs LD, not CC, wlarc should be empty
9039 # Set some defaults for GNU ld with shared library support. These
9040 # are reset later if shared libraries are not supported. Putting them
9041 # here allows them to be overridden if necessary.
9042 runpath_var=LD_RUN_PATH
9043 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9044 export_dynamic_flag_spec='${wl}--export-dynamic'
9045 # ancient GNU ld didn't support --whole-archive et. al.
9046 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9047 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9049 whole_archive_flag_spec=
9051 supports_anon_versioning=no
9052 case `$LD -v 2>/dev/null` in
9053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9056 *\ 2.11.*) ;; # other 2.11 versions
9057 *) supports_anon_versioning=yes ;;
9060 # See if GNU ld supports shared libraries.
9062 aix3* | aix4* | aix5*)
9063 # On AIX/PPC, the GNU linker is very broken
9064 if test "$host_cpu" != ia64; then
9068 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9069 *** to be unable to reliably create shared libraries on AIX.
9070 *** Therefore, libtool is disabling shared libraries support. If you
9071 *** really care for shared libraries, you may want to modify your PATH
9072 *** so that a non-GNU linker is found, and then restart.
9079 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)'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9084 # that the semantics of dynamic libraries on AmigaOS, at least up
9085 # to version 4, is to share data among multiple programs linked
9086 # with the same dynamic library. Since this doesn't match the
9087 # behavior of shared libraries on other platforms, we can't use
9093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9094 allow_undefined_flag=unsupported
9095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9096 # support --undefined. This deserves some investigation. FIXME
9097 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103 cygwin* | mingw* | pw32*)
9104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9105 # as there is no search path for DLLs.
9106 hardcode_libdir_flag_spec='-L$libdir'
9107 allow_undefined_flag=unsupported
9108 always_export_symbols=no
9109 enable_shared_with_static_runtimes=yes
9110 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9114 # If the export-symbols file already is a .def file (1st line
9115 # is EXPORTS), use it as is; otherwise, prepend...
9116 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9117 cp $export_symbols $output_objdir/$soname.def;
9119 echo EXPORTS > $output_objdir/$soname.def;
9120 cat $export_symbols >> $output_objdir/$soname.def;
9122 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9129 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9131 case $cc_basename,$host_cpu in
9132 pgcc*) # Portland Group C compiler
9133 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'
9134 tmp_addflag=' $pic_flag'
9136 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9137 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'
9138 tmp_addflag=' $pic_flag -Mnomain' ;;
9139 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9140 tmp_addflag=' -i_dynamic' ;;
9141 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9142 tmp_addflag=' -i_dynamic -nofor_main' ;;
9143 ifc* | ifort*) # Intel Fortran compiler
9144 tmp_addflag=' -nofor_main' ;;
9146 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9148 if test $supports_anon_versioning = yes; then
9149 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9151 $echo "local: *; };" >> $output_objdir/$libname.ver~
9152 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9160 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9161 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9164 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9165 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9174 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9175 *** create shared libraries on Solaris systems. Therefore, libtool
9176 *** is disabling shared libraries support. We urge you to upgrade GNU
9177 *** binutils to release 2.9.1 or newer. Another option is to modify
9178 *** your PATH or compiler configuration so that the native linker is
9179 *** used, and then restart.
9182 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9183 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9191 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9194 hardcode_shlibpath_var=no
9198 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9200 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207 if test "$ld_shlibs" = no; then
9209 hardcode_libdir_flag_spec=
9210 export_dynamic_flag_spec=
9211 whole_archive_flag_spec=
9214 # PORTME fill in a description of your system's linker (not GNU ld)
9217 allow_undefined_flag=unsupported
9218 always_export_symbols=yes
9219 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'
9220 # Note: this linker hardcodes the directories in LIBPATH if there
9221 # are no directories specified by -L.
9222 hardcode_minus_L=yes
9223 if test "$GCC" = yes && test -z "$link_static_flag"; then
9224 # Neither direct hardcoding nor static linking is supported with a
9226 hardcode_direct=unsupported
9231 if test "$host_cpu" = ia64; then
9232 # On IA64, the linker does run time linking by default, so we don't
9233 # have to do anything special.
9234 aix_use_runtimelinking=no
9235 exp_sym_flag='-Bexport'
9238 # If we're using GNU nm, then we don't want the "-C" option.
9239 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9240 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9241 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'
9243 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'
9245 aix_use_runtimelinking=no
9247 # Test if we are trying to use run time linking or normal
9248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249 # need to do runtime linking.
9250 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9251 for ld_flag in $LDFLAGS; do
9252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253 aix_use_runtimelinking=yes
9259 exp_sym_flag='-bexport'
9260 no_entry_flag='-bnoentry'
9263 # When large executables or shared objects are built, AIX ld can
9264 # have problems creating the table of contents. If linking a library
9265 # or program results in "error TOC overflow" add -mminimal-toc to
9266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9271 hardcode_libdir_separator=':'
9272 link_all_deplibs=yes
9274 if test "$GCC" = yes; then
9275 case $host_os in aix4.[012]|aix4.[012].*)
9276 # We only want to do this on AIX 4.2 and lower, the check
9277 # below for broken collect2 doesn't work under 4.3+
9278 collect2name=`${CC} -print-prog-name=collect2`
9279 if test -f "$collect2name" && \
9280 strings "$collect2name" | grep resolve_lib_name >/dev/null
9282 # We have reworked collect2
9285 # We have old collect2
9286 hardcode_direct=unsupported
9287 # It fails to find uninstalled libraries when the uninstalled
9288 # path is not listed in the libpath. Setting hardcode_minus_L
9289 # to unsupported forces relinking
9290 hardcode_minus_L=yes
9291 hardcode_libdir_flag_spec='-L$libdir'
9292 hardcode_libdir_separator=
9295 shared_flag='-shared'
9296 if test "$aix_use_runtimelinking" = yes; then
9297 shared_flag="$shared_flag "'${wl}-G'
9301 if test "$host_cpu" = ia64; then
9302 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9303 # chokes on -Wl,-G. The following line is correct:
9306 if test "$aix_use_runtimelinking" = yes; then
9307 shared_flag='${wl}-G'
9309 shared_flag='${wl}-bM:SRE'
9314 # It seems that -bexpall does not export symbols beginning with
9315 # underscore (_), so it is better to generate a list of symbols to export.
9316 always_export_symbols=yes
9317 if test "$aix_use_runtimelinking" = yes; then
9318 # Warning - without using the other runtime loading flags (-brtl),
9319 # -berok will link without error, but may produce a broken library.
9320 allow_undefined_flag='-berok'
9321 # Determine the default libpath from the value encoded in an empty executable.
9322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9333 if ac_fn_c_try_link "$LINENO"; then :
9335 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9337 # Check for a 64-bit object if we didn't find anything.
9338 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; }
9341 rm -f core conftest.err conftest.$ac_objext \
9342 conftest$ac_exeext conftest.$ac_ext
9343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9345 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346 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"
9348 if test "$host_cpu" = ia64; then
9349 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9350 allow_undefined_flag="-z nodefs"
9351 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"
9353 # Determine the default libpath from the value encoded in an empty executable.
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9365 if ac_fn_c_try_link "$LINENO"; then :
9367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9369 # Check for a 64-bit object if we didn't find anything.
9370 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; }
9373 rm -f core conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9377 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9378 # Warning - without using the other run time loading flags,
9379 # -berok will link without error, but may produce a broken library.
9380 no_undefined_flag=' ${wl}-bernotok'
9381 allow_undefined_flag=' ${wl}-berok'
9382 # -bexpall does not export symbols beginning with underscore (_)
9383 always_export_symbols=yes
9384 # Exported symbols can be pulled into shared objects from archives
9385 whole_archive_flag_spec=' '
9386 archive_cmds_need_lc=yes
9387 # This is similar to how AIX traditionally builds its shared libraries.
9388 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'
9394 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)'
9395 hardcode_libdir_flag_spec='-L$libdir'
9396 hardcode_minus_L=yes
9397 # see comment about different semantics on the GNU ld section
9402 export_dynamic_flag_spec=-rdynamic
9405 cygwin* | mingw* | pw32*)
9406 # When not using gcc, we currently assume that we are using
9407 # Microsoft Visual C++.
9408 # hardcode_libdir_flag_spec is actually meaningless, as there is
9409 # no search path for DLLs.
9410 hardcode_libdir_flag_spec=' '
9411 allow_undefined_flag=unsupported
9412 # Tell ltmain to make .lib files, not .a files.
9414 # Tell ltmain to make .dll files, not .so files.
9416 # FIXME: Setting linknames here is a bad hack.
9417 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9418 # The linker will automatically build a .lib file if we build a DLL.
9419 old_archive_From_new_cmds='true'
9420 # FIXME: Should let the user specify the lib program.
9421 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9422 fix_srcfile_path='`cygpath -w "$srcfile"`'
9423 enable_shared_with_static_runtimes=yes
9426 darwin* | rhapsody*)
9428 rhapsody* | darwin1.[012])
9429 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9432 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9433 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9435 case ${MACOSX_DEPLOYMENT_TARGET} in
9437 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9440 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9446 archive_cmds_need_lc=no
9448 hardcode_automatic=yes
9449 hardcode_shlibpath_var=unsupported
9450 whole_archive_flag_spec=''
9451 link_all_deplibs=yes
9452 if test "$GCC" = yes ; then
9453 output_verbose_link_cmd='echo'
9454 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9455 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9456 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9457 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}'
9458 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}'
9460 case $cc_basename in
9462 output_verbose_link_cmd='echo'
9463 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9464 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9465 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9466 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}'
9467 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}'
9477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9478 hardcode_libdir_flag_spec='-L$libdir'
9479 hardcode_shlibpath_var=no
9486 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9487 # support. Future versions do this automatically, but an explicit c++rt0.o
9488 # does not break anything, and helps significantly (at the cost of a little
9491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9492 hardcode_libdir_flag_spec='-R$libdir'
9494 hardcode_shlibpath_var=no
9497 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9499 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9501 hardcode_minus_L=yes
9502 hardcode_shlibpath_var=no
9505 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9506 freebsd* | kfreebsd*-gnu | dragonfly*)
9507 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9508 hardcode_libdir_flag_spec='-R$libdir'
9510 hardcode_shlibpath_var=no
9514 if test "$GCC" = yes; then
9515 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'
9517 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'
9519 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9520 hardcode_libdir_separator=:
9523 # hardcode_minus_L: Not really in the search PATH,
9524 # but as the default location of the library.
9525 hardcode_minus_L=yes
9526 export_dynamic_flag_spec='${wl}-E'
9530 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9533 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9536 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9545 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9549 if test "$with_gnu_ld" = no; then
9552 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9553 hardcode_libdir_flag_spec_ld='+b $libdir'
9554 hardcode_libdir_separator=:
9556 hardcode_shlibpath_var=no
9559 hardcode_libdir_flag_spec='-L$libdir'
9561 hardcode_shlibpath_var=no
9563 # hardcode_minus_L: Not really in the search PATH,
9564 # but as the default location of the library.
9565 hardcode_minus_L=yes
9568 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9569 hardcode_libdir_separator=:
9571 export_dynamic_flag_spec='${wl}-E'
9573 # hardcode_minus_L: Not really in the search PATH,
9574 # but as the default location of the library.
9575 hardcode_minus_L=yes
9581 irix5* | irix6* | nonstopux*)
9582 if test "$GCC" = yes; then
9583 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'
9585 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'
9586 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 hardcode_libdir_separator=:
9590 link_all_deplibs=yes
9594 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9597 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9599 hardcode_libdir_flag_spec='-R$libdir'
9601 hardcode_shlibpath_var=no
9605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9608 hardcode_libdir_separator=:
9609 hardcode_shlibpath_var=no
9614 hardcode_shlibpath_var=no
9615 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9619 export_dynamic_flag_spec='${wl}-E'
9622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-R$libdir'
9627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_minus_L=yes
9637 allow_undefined_flag=unsupported
9638 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'
9639 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9643 if test "$GCC" = yes; then
9644 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9645 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'
9647 allow_undefined_flag=' -expect_unresolved \*'
9648 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'
9650 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9651 hardcode_libdir_separator=:
9654 osf4* | osf5*) # as osf3* with the addition of -msym flag
9655 if test "$GCC" = yes; then
9656 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9657 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'
9658 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9660 allow_undefined_flag=' -expect_unresolved \*'
9661 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'
9662 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9663 $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'
9665 # Both c and cxx compiler support -rpath directly
9666 hardcode_libdir_flag_spec='-rpath $libdir'
9668 hardcode_libdir_separator=:
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_shlibpath_var=no
9674 export_dynamic_flag_spec='${wl}-Bexport'
9675 runpath_var=LD_RUN_PATH
9676 hardcode_runpath_var=yes
9680 no_undefined_flag=' -z text'
9681 if test "$GCC" = yes; then
9683 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9684 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9685 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9688 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9689 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9690 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9692 hardcode_libdir_flag_spec='-R$libdir'
9693 hardcode_shlibpath_var=no
9695 solaris2.[0-5] | solaris2.[0-5].*) ;;
9697 # The compiler driver will combine linker options so we
9698 # cannot just pass the convience library names through
9699 # without $wl, iff we do not link with $LD.
9700 # Luckily, gcc supports the same syntax we need for Sun Studio.
9701 # Supported since Solaris 2.6 (maybe 2.5.1?)
9704 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9706 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' ;;
9709 link_all_deplibs=yes
9713 if test "x$host_vendor" = xsequent; then
9714 # Use $CC to link under sequent, because it throws in some extra .o
9715 # files that make .init and .fini sections work.
9716 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9718 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9720 hardcode_libdir_flag_spec='-L$libdir'
9722 hardcode_minus_L=yes
9723 hardcode_shlibpath_var=no
9727 case $host_vendor in
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_direct=yes # is this really true???
9733 ## LD is ld it makes a PLAMLIB
9734 ## CC just makes a GrossModule.
9735 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9736 reload_cmds='$CC -r -o $output$reload_objs'
9740 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9744 runpath_var='LD_RUN_PATH'
9745 hardcode_shlibpath_var=no
9749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_shlibpath_var=no
9751 export_dynamic_flag_spec='-Bexport'
9755 if test -d /usr/nec; then
9756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9757 hardcode_shlibpath_var=no
9758 runpath_var=LD_RUN_PATH
9759 hardcode_runpath_var=yes
9765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9768 hardcode_shlibpath_var=no
9769 hardcode_runpath_var=yes
9770 runpath_var=LD_RUN_PATH
9773 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9774 no_undefined_flag='${wl}-z ${wl}text'
9775 if test "$GCC" = yes; then
9776 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9778 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9780 runpath_var='LD_RUN_PATH'
9781 hardcode_shlibpath_var=no
9785 no_undefined_flag=' -z text'
9786 # $CC -shared without GNU ld will not create a library from C++
9787 # object files and a static libstdc++, better avoid it by now
9788 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9790 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9791 hardcode_libdir_flag_spec=
9792 hardcode_shlibpath_var=no
9793 runpath_var='LD_RUN_PATH'
9797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9798 hardcode_libdir_flag_spec='-L$libdir'
9799 hardcode_shlibpath_var=no
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9809 $as_echo "$ld_shlibs" >&6; }
9810 test "$ld_shlibs" = no && can_build_shared=no
9812 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9813 if test "$GCC" = yes; then
9814 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9818 # Do we need to explicitly link libc?
9820 case "x$archive_cmds_need_lc" in
9822 # Assume -lc should be added
9823 archive_cmds_need_lc=yes
9825 if test "$enable_shared" = yes && test "$GCC" = yes; then
9826 case $archive_cmds in
9828 # FIXME: we may have to deal with multi-command sequences.
9831 # Test whether the compiler implicitly links with -lc since on some
9832 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9833 # to ld, don't add -lc before -lgcc.
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9835 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9837 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9840 (eval $ac_compile) 2>&5
9842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9843 test $ac_status = 0; } 2>conftest.err; then
9846 libobjs=conftest.$ac_objext
9848 wl=$lt_prog_compiler_wl
9854 lt_save_allow_undefined_flag=$allow_undefined_flag
9855 allow_undefined_flag=
9856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9857 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }
9862 archive_cmds_need_lc=no
9864 archive_cmds_need_lc=yes
9866 allow_undefined_flag=$lt_save_allow_undefined_flag
9868 cat conftest.err 1>&5
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9872 $as_echo "$archive_cmds_need_lc" >&6; }
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9880 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9882 libname_spec='lib$name'
9890 shlibpath_overrides_runpath=unknown
9892 dynamic_linker="$host_os ld.so"
9893 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9894 if test "$GCC" = yes; then
9895 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9896 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9897 # if the path contains ";" then we assume it to be the separator
9898 # otherwise default to the standard path separator (i.e. ":") - it is
9899 # assumed that no part of a normal pathname contains ";" but that should
9900 # okay in the real world where ";" in dirpaths is itself problematic.
9901 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9903 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9906 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9908 need_lib_prefix=unknown
9909 hardcode_into_libs=no
9911 # when you set need_version to no, make sure it does not cause -set_version
9912 # flags to be left without arguments
9913 need_version=unknown
9918 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9919 shlibpath_var=LIBPATH
9921 # AIX 3 has no versioning support, so we append a major version to the name.
9922 soname_spec='${libname}${release}${shared_ext}$major'
9929 hardcode_into_libs=yes
9930 if test "$host_cpu" = ia64; then
9931 # AIX 5 supports IA64
9932 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9933 shlibpath_var=LD_LIBRARY_PATH
9935 # With GCC up to 2.95.x, collect2 would create an import file
9936 # for dependence libraries. The import file would start with
9937 # the line `#! .'. This would cause the generated library to
9938 # depend on `.', always an invalid library. This was fixed in
9939 # development snapshots of GCC prior to 3.0.
9941 aix4 | aix4.[01] | aix4.[01].*)
9942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9944 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9951 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9952 # soname into executable. Probably we can add versioning support to
9953 # collect2, so additional links can be useful in future.
9954 if test "$aix_use_runtimelinking" = yes; then
9955 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9956 # instead of lib<name>.a to let people know that these are not
9957 # typical AIX shared libraries.
9958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9960 # We preserve .a as extension for shared libraries through AIX4.2
9961 # and later when we are not doing run time linking.
9962 library_names_spec='${libname}${release}.a $libname.a'
9963 soname_spec='${libname}${release}${shared_ext}$major'
9965 shlibpath_var=LIBPATH
9970 library_names_spec='$libname.ixlibrary $libname.a'
9971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9972 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'
9976 library_names_spec='${libname}${shared_ext}'
9977 dynamic_linker="$host_os ld.so"
9978 shlibpath_var=LIBRARY_PATH
9984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9985 soname_spec='${libname}${release}${shared_ext}$major'
9986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9987 shlibpath_var=LD_LIBRARY_PATH
9988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9990 # the default ld.so.conf also contains /usr/contrib/lib and
9991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9992 # libtool to hard-code these into programs
9995 cygwin* | mingw* | pw32*)
9996 version_type=windows
10001 case $GCC,$host_os in
10002 yes,cygwin* | yes,mingw* | yes,pw32*)
10003 library_names_spec='$libname.dll.a'
10004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10005 postinstall_cmds='base_file=`basename \${file}`~
10006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10007 dldir=$destdir/`dirname \$dlpath`~
10008 test -d \$dldir || mkdir -p \$dldir~
10009 $install_prog $dir/$dlname \$dldir/$dlname~
10010 chmod a+x \$dldir/$dlname'
10011 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10012 dlpath=$dir/\$dldll~
10014 shlibpath_overrides_runpath=yes
10018 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10019 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10020 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10023 # MinGW DLLs use traditional 'lib' prefix
10024 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10025 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10026 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10027 # It is most probably a Windows format PATH printed by
10028 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10029 # path with ; separators, and with drive letters. We can handle the
10030 # drive letters (cygwin fileutils understands them), so leave them,
10031 # especially as we might pass files found there to a mingw objdump,
10032 # which wouldn't understand a cygwinified path. Ahh.
10033 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10035 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10039 # pw32 DLLs use 'pw' prefix rather than 'lib'
10040 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10046 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10049 dynamic_linker='Win32 ld.exe'
10050 # FIXME: first we should search . and the directory the executable is in
10054 darwin* | rhapsody*)
10055 dynamic_linker="$host_os dyld"
10056 version_type=darwin
10059 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10060 soname_spec='${libname}${release}${major}$shared_ext'
10061 shlibpath_overrides_runpath=yes
10062 shlibpath_var=DYLD_LIBRARY_PATH
10063 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10064 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10065 if test "$GCC" = yes; then
10066 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"`
10068 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10070 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10078 soname_spec='${libname}${release}${shared_ext}$major'
10079 shlibpath_var=LD_LIBRARY_PATH
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10091 soname_spec='${libname}${release}${shared_ext}$major'
10092 shlibpath_var=LD_LIBRARY_PATH
10093 shlibpath_overrides_runpath=no
10094 hardcode_into_libs=yes
10095 dynamic_linker='GNU ld.so'
10098 freebsd* | dragonfly*)
10099 # DragonFly does not have aout. When/if they implement a new
10100 # versioning mechanism, adjust this.
10101 if test -x /usr/bin/objformat; then
10102 objformat=`/usr/bin/objformat`
10105 freebsd[123]*) objformat=aout ;;
10106 *) objformat=elf ;;
10109 version_type=freebsd-$objformat
10110 case $version_type in
10112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10117 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10121 shlibpath_var=LD_LIBRARY_PATH
10124 shlibpath_overrides_runpath=yes
10126 freebsd3.[01]* | freebsdelf3.[01]*)
10127 shlibpath_overrides_runpath=yes
10128 hardcode_into_libs=yes
10131 shlibpath_overrides_runpath=no
10132 hardcode_into_libs=yes
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 shlibpath_var=LD_LIBRARY_PATH
10144 hardcode_into_libs=yes
10147 hpux9* | hpux10* | hpux11*)
10148 # Give a soname corresponding to the major version so that dld.sl refuses to
10149 # link against other versions.
10156 hardcode_into_libs=yes
10157 dynamic_linker="$host_os dld.so"
10158 shlibpath_var=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 if test "X$HPUX_IA64_MODE" = X32; then
10163 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10165 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10167 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10171 hardcode_into_libs=yes
10172 dynamic_linker="$host_os dld.sl"
10173 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10174 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10178 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10182 dynamic_linker="$host_os dld.sl"
10183 shlibpath_var=SHLIB_PATH
10184 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186 soname_spec='${libname}${release}${shared_ext}$major'
10189 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10190 postinstall_cmds='chmod 555 $lib'
10193 irix5* | irix6* | nonstopux*)
10195 nonstopux*) version_type=nonstopux ;;
10197 if test "$lt_cv_prog_gnu_ld" = yes; then
10205 soname_spec='${libname}${release}${shared_ext}$major'
10206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10208 irix5* | nonstopux*)
10209 libsuff= shlibsuff=
10212 case $LD in # libtool.m4 will add one of these switches to LD
10213 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10214 libsuff= shlibsuff= libmagic=32-bit;;
10215 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10216 libsuff=32 shlibsuff=N32 libmagic=N32;;
10217 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10218 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10219 *) libsuff= shlibsuff= libmagic=never-match;;
10223 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10224 shlibpath_overrides_runpath=no
10225 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10226 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10227 hardcode_into_libs=yes
10230 # No shared lib support for Linux oldld, aout, or coff.
10231 linux*oldld* | linux*aout* | linux*coff*)
10235 # This must be Linux ELF.
10240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241 soname_spec='${libname}${release}${shared_ext}$major'
10242 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10243 shlibpath_var=LD_LIBRARY_PATH
10244 shlibpath_overrides_runpath=no
10245 # This implies no fast_install, which is unacceptable.
10246 # Some rework will be needed to allow for fast_install
10247 # before this can be enabled.
10248 hardcode_into_libs=yes
10250 # Append ld.so.conf contents to the search path
10251 if test -f /etc/ld.so.conf; then
10252 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' ' '`
10253 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10256 # We used to test for /lib/ld.so.1 and disable shared libraries on
10257 # powerpc, because MkLinux only supported shared libraries with the
10258 # GNU dynamic linker. Since this was broken with cross compilers,
10259 # most powerpc-linux boxes support dynamic linking these days and
10260 # people can always --disable-shared, the test was removed, and we
10261 # assume the GNU/Linux dynamic linker is in use.
10262 dynamic_linker='GNU/Linux ld.so'
10269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10270 soname_spec='${libname}${release}${shared_ext}$major'
10271 shlibpath_var=LD_LIBRARY_PATH
10272 shlibpath_overrides_runpath=no
10273 hardcode_into_libs=yes
10274 dynamic_linker='GNU ld.so'
10281 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10283 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10284 dynamic_linker='NetBSD (a.out) ld.so'
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 dynamic_linker='NetBSD ld.elf_so'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 shlibpath_overrides_runpath=yes
10292 hardcode_into_libs=yes
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 shlibpath_var=LD_LIBRARY_PATH
10299 shlibpath_overrides_runpath=yes
10306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec='${libname}${release}${shared_ext}$major'
10308 shlibpath_var=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath=yes
10315 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10317 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10318 *) need_version=no ;;
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10325 openbsd2.[89] | openbsd2.[89].*)
10326 shlibpath_overrides_runpath=no
10329 shlibpath_overrides_runpath=yes
10333 shlibpath_overrides_runpath=yes
10338 libname_spec='$name'
10341 library_names_spec='$libname${shared_ext} $libname.a'
10342 dynamic_linker='OS/2 ld.exe'
10343 shlibpath_var=LIBPATH
10346 osf3* | osf4* | osf5*)
10350 soname_spec='${libname}${release}${shared_ext}$major'
10351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10352 shlibpath_var=LD_LIBRARY_PATH
10353 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10354 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10359 soname_spec='${libname}${release}${shared_ext}$major'
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 shlibpath_var=LD_LIBRARY_PATH
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 hardcode_into_libs=yes
10373 # ldd complains unless libraries are executable
10374 postinstall_cmds='chmod +x $lib'
10379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10380 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10381 shlibpath_var=LD_LIBRARY_PATH
10382 shlibpath_overrides_runpath=yes
10383 if test "$with_gnu_ld" = yes; then
10389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 case $host_vendor in
10396 shlibpath_overrides_runpath=no
10398 export_dynamic_flag_spec='${wl}-Blargedynsym'
10399 runpath_var=LD_RUN_PATH
10407 shlibpath_overrides_runpath=no
10408 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10414 if test -d /usr/nec ;then
10416 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10417 soname_spec='$libname${shared_ext}.$major'
10418 shlibpath_var=LD_LIBRARY_PATH
10424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425 soname_spec='${libname}${release}${shared_ext}$major'
10426 shlibpath_var=LD_LIBRARY_PATH
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10434 $as_echo "$dynamic_linker" >&6; }
10435 test "$dynamic_linker" = no && can_build_shared=no
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10440 if test -n "$hardcode_libdir_flag_spec" || \
10441 test -n "$runpath_var" || \
10442 test "X$hardcode_automatic" = "Xyes" ; then
10444 # We can hardcode non-existant directories.
10445 if test "$hardcode_direct" != no &&
10446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10447 # have to relink, otherwise we might link with an installed library
10448 # when we should be linking with a yet-to-be-installed one
10449 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10450 test "$hardcode_minus_L" != no; then
10451 # Linking always hardcodes the temporary library directory.
10452 hardcode_action=relink
10454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10455 hardcode_action=immediate
10458 # We cannot hardcode anything, or else we can only hardcode existing
10460 hardcode_action=unsupported
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10463 $as_echo "$hardcode_action" >&6; }
10465 if test "$hardcode_action" = relink; then
10466 # Fast installation is not supported
10467 enable_fast_install=no
10468 elif test "$shlibpath_overrides_runpath" = yes ||
10469 test "$enable_shared" = no; then
10470 # Fast installation is not necessary
10471 enable_fast_install=needless
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10477 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10478 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10480 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10482 $as_echo "yes" >&6; }
10484 # FIXME - insert some real tests, host_os isn't really good enough
10487 if test -n "$STRIP" ; then
10488 striplib="$STRIP -x"
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10490 $as_echo "yes" >&6; }
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10493 $as_echo "no" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 $as_echo "no" >&6; }
10503 if test "x$enable_dlopen" != xyes; then
10504 enable_dlopen=unknown
10505 enable_dlopen_self=unknown
10506 enable_dlopen_self_static=unknown
10513 lt_cv_dlopen="load_add_on"
10515 lt_cv_dlopen_self=yes
10519 lt_cv_dlopen="LoadLibrary"
10524 lt_cv_dlopen="dlopen"
10529 # if libdl is installed we need to link against it
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10531 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10532 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10535 ac_check_lib_save_LIBS=$LIBS
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10540 /* Override any GCC internal prototype to avoid an error.
10541 Use char because int might match the return type of a GCC
10542 builtin and then its argument prototype would still apply. */
10555 if ac_fn_c_try_link "$LINENO"; then :
10556 ac_cv_lib_dl_dlopen=yes
10558 ac_cv_lib_dl_dlopen=no
10560 rm -f core conftest.err conftest.$ac_objext \
10561 conftest$ac_exeext conftest.$ac_ext
10562 LIBS=$ac_check_lib_save_LIBS
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10565 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10566 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10567 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10570 lt_cv_dlopen="dyld"
10572 lt_cv_dlopen_self=yes
10579 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10580 if test "x$ac_cv_func_shl_load" = x""yes; then :
10581 lt_cv_dlopen="shl_load"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10584 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10586 $as_echo_n "(cached) " >&6
10588 ac_check_lib_save_LIBS=$LIBS
10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591 /* end confdefs.h. */
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10603 return shl_load ();
10608 if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_dld_shl_load=yes
10611 ac_cv_lib_dld_shl_load=no
10613 rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615 LIBS=$ac_check_lib_save_LIBS
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10618 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10619 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10620 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10622 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10623 if test "x$ac_cv_func_dlopen" = x""yes; then :
10624 lt_cv_dlopen="dlopen"
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10629 $as_echo_n "(cached) " >&6
10631 ac_check_lib_save_LIBS=$LIBS
10633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10634 /* end confdefs.h. */
10636 /* Override any GCC internal prototype to avoid an error.
10637 Use char because int might match the return type of a GCC
10638 builtin and then its argument prototype would still apply. */
10651 if ac_fn_c_try_link "$LINENO"; then :
10652 ac_cv_lib_dl_dlopen=yes
10654 ac_cv_lib_dl_dlopen=no
10656 rm -f core conftest.err conftest.$ac_objext \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10661 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10662 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10666 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10667 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10668 $as_echo_n "(cached) " >&6
10670 ac_check_lib_save_LIBS=$LIBS
10671 LIBS="-lsvld $LIBS"
10672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10690 if ac_fn_c_try_link "$LINENO"; then :
10691 ac_cv_lib_svld_dlopen=yes
10693 ac_cv_lib_svld_dlopen=no
10695 rm -f core conftest.err conftest.$ac_objext \
10696 conftest$ac_exeext conftest.$ac_ext
10697 LIBS=$ac_check_lib_save_LIBS
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10700 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10701 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10702 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10705 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10706 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10707 $as_echo_n "(cached) " >&6
10709 ac_check_lib_save_LIBS=$LIBS
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h. */
10714 /* Override any GCC internal prototype to avoid an error.
10715 Use char because int might match the return type of a GCC
10716 builtin and then its argument prototype would still apply. */
10724 return dld_link ();
10729 if ac_fn_c_try_link "$LINENO"; then :
10730 ac_cv_lib_dld_dld_link=yes
10732 ac_cv_lib_dld_dld_link=no
10734 rm -f core conftest.err conftest.$ac_objext \
10735 conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10739 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10740 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10741 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10762 if test "x$lt_cv_dlopen" != xno; then
10768 case $lt_cv_dlopen in
10770 save_CPPFLAGS="$CPPFLAGS"
10771 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10773 save_LDFLAGS="$LDFLAGS"
10774 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10777 LIBS="$lt_cv_dlopen_libs $LIBS"
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10780 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10781 if test "${lt_cv_dlopen_self+set}" = set; then :
10782 $as_echo_n "(cached) " >&6
10784 if test "$cross_compiling" = yes; then :
10785 lt_cv_dlopen_self=cross
10787 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788 lt_status=$lt_dlunknown
10789 cat > conftest.$ac_ext <<EOF
10790 #line 10790 "configure"
10791 #include "confdefs.h"
10800 # define LT_DLGLOBAL RTLD_GLOBAL
10803 # define LT_DLGLOBAL DL_GLOBAL
10805 # define LT_DLGLOBAL 0
10809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810 find out it does not work in some platform. */
10811 #ifndef LT_DLLAZY_OR_NOW
10813 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10816 # define LT_DLLAZY_OR_NOW DL_LAZY
10819 # define LT_DLLAZY_OR_NOW RTLD_NOW
10822 # define LT_DLLAZY_OR_NOW DL_NOW
10824 # define LT_DLLAZY_OR_NOW 0
10832 extern "C" void exit (int);
10835 void fnord() { int i=42;}
10838 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10839 int status = $lt_dlunknown;
10843 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10844 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10845 /* dlclose (self); */
10851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10852 (eval $ac_link) 2>&5
10854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10855 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10856 (./conftest; exit; ) >&5 2>/dev/null
10858 case x$lt_status in
10859 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10860 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10861 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10864 # compilation failed
10865 lt_cv_dlopen_self=no
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10873 $as_echo "$lt_cv_dlopen_self" >&6; }
10875 if test "x$lt_cv_dlopen_self" = xyes; then
10876 LDFLAGS="$LDFLAGS $link_static_flag"
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10878 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10879 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10880 $as_echo_n "(cached) " >&6
10882 if test "$cross_compiling" = yes; then :
10883 lt_cv_dlopen_self_static=cross
10885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10886 lt_status=$lt_dlunknown
10887 cat > conftest.$ac_ext <<EOF
10888 #line 10888 "configure"
10889 #include "confdefs.h"
10898 # define LT_DLGLOBAL RTLD_GLOBAL
10901 # define LT_DLGLOBAL DL_GLOBAL
10903 # define LT_DLGLOBAL 0
10907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10908 find out it does not work in some platform. */
10909 #ifndef LT_DLLAZY_OR_NOW
10911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10914 # define LT_DLLAZY_OR_NOW DL_LAZY
10917 # define LT_DLLAZY_OR_NOW RTLD_NOW
10920 # define LT_DLLAZY_OR_NOW DL_NOW
10922 # define LT_DLLAZY_OR_NOW 0
10930 extern "C" void exit (int);
10933 void fnord() { int i=42;}
10936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10937 int status = $lt_dlunknown;
10941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10943 /* dlclose (self); */
10949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10950 (eval $ac_link) 2>&5
10952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10953 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10954 (./conftest; exit; ) >&5 2>/dev/null
10956 case x$lt_status in
10957 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10958 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10959 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10962 # compilation failed
10963 lt_cv_dlopen_self_static=no
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10971 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10974 CPPFLAGS="$save_CPPFLAGS"
10975 LDFLAGS="$save_LDFLAGS"
10980 case $lt_cv_dlopen_self in
10981 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10982 *) enable_dlopen_self=unknown ;;
10985 case $lt_cv_dlopen_self_static in
10986 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10987 *) enable_dlopen_self_static=unknown ;;
10992 # Report which librarie types wil actually be built
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10994 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10996 $as_echo "$can_build_shared" >&6; }
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10999 $as_echo_n "checking whether to build shared libraries... " >&6; }
11000 test "$can_build_shared" = "no" && enable_shared=no
11002 # On AIX, shared libraries and static libraries use the same namespace, and
11003 # are all built from PIC.
11006 test "$enable_shared" = yes && enable_static=no
11007 if test -n "$RANLIB"; then
11008 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11009 postinstall_cmds='$RANLIB $lib'
11014 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11015 test "$enable_shared" = yes && enable_static=no
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11020 $as_echo "$enable_shared" >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11023 $as_echo_n "checking whether to build static libraries... " >&6; }
11024 # Make sure either enable_shared or enable_static is yes.
11025 test "$enable_shared" = yes || enable_static=yes
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11027 $as_echo "$enable_static" >&6; }
11029 # The else clause should only fire when bootstrapping the
11030 # libtool distribution, otherwise you forgot to ship ltmain.sh
11031 # with your package, and you will get complaints that there are
11032 # no rules to generate ltmain.sh.
11033 if test -f "$ltmain"; then
11034 # See if we are running on zsh, and set the options which allow our commands through
11035 # without removal of \ escapes.
11036 if test -n "${ZSH_VERSION+set}" ; then
11037 setopt NO_GLOB_SUBST
11039 # Now quote all the things that may contain metacharacters while being
11040 # careful not to overquote the AC_SUBSTed values. We take copies of the
11041 # variables and quote the copies for generation of the libtool script.
11042 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11044 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11045 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11046 deplibs_check_method reload_flag reload_cmds need_locks \
11047 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11048 lt_cv_sys_global_symbol_to_c_name_address \
11049 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11050 old_postinstall_cmds old_postuninstall_cmds \
11054 lt_prog_compiler_wl \
11055 lt_prog_compiler_pic \
11056 lt_prog_compiler_static \
11057 lt_prog_compiler_no_builtin_flag \
11058 export_dynamic_flag_spec \
11059 thread_safe_flag_spec \
11060 whole_archive_flag_spec \
11061 enable_shared_with_static_runtimes \
11063 old_archive_from_new_cmds \
11068 compiler_lib_search_path \
11070 archive_expsym_cmds \
11072 postuninstall_cmds \
11073 old_archive_from_expsyms_cmds \
11074 allow_undefined_flag \
11075 no_undefined_flag \
11076 export_symbols_cmds \
11077 hardcode_libdir_flag_spec \
11078 hardcode_libdir_flag_spec_ld \
11079 hardcode_libdir_separator \
11080 hardcode_automatic \
11082 module_expsym_cmds \
11083 lt_cv_prog_compiler_c_o \
11085 include_expsyms; do
11088 old_archive_cmds | \
11089 old_archive_from_new_cmds | \
11091 archive_expsym_cmds | \
11093 module_expsym_cmds | \
11094 old_archive_from_expsyms_cmds | \
11095 export_symbols_cmds | \
11096 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11097 postinstall_cmds | postuninstall_cmds | \
11098 old_postinstall_cmds | old_postuninstall_cmds | \
11099 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11100 # Double-quote double-evaled strings.
11101 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11110 *'\$0 --fallback-echo"')
11111 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11115 cfgfile="${ofile}T"
11116 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11119 $as_echo "$as_me: creating $ofile" >&6;}
11121 cat <<__EOF__ >> "$cfgfile"
11124 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11125 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11126 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11128 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11129 # Free Software Foundation, Inc.
11131 # This file is part of GNU Libtool:
11132 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11134 # This program is free software; you can redistribute it and/or modify
11135 # it under the terms of the GNU General Public License as published by
11136 # the Free Software Foundation; either version 2 of the License, or
11137 # (at your option) any later version.
11139 # This program is distributed in the hope that it will be useful, but
11140 # WITHOUT ANY WARRANTY; without even the implied warranty of
11141 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11142 # General Public License for more details.
11144 # You should have received a copy of the GNU General Public License
11145 # along with this program; if not, write to the Free Software
11146 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11148 # As a special exception to the GNU General Public License, if you
11149 # distribute this file as part of a program that contains a
11150 # configuration script generated by Autoconf, you may include it under
11151 # the same distribution terms that you use for the rest of that program.
11153 # A sed program that does not truncate output.
11156 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11157 Xsed="$SED -e 1s/^X//"
11159 # The HP-UX ksh and POSIX shell print the target directory to stdout
11160 # if CDPATH is set.
11161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11163 # The names of the tagged configurations supported by this script.
11166 # ### BEGIN LIBTOOL CONFIG
11168 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11170 # Shell to use when invoking shell scripts.
11173 # Whether or not to build shared libraries.
11174 build_libtool_libs=$enable_shared
11176 # Whether or not to build static libraries.
11177 build_old_libs=$enable_static
11179 # Whether or not to add -lc for building shared libraries.
11180 build_libtool_need_lc=$archive_cmds_need_lc
11182 # Whether or not to disallow shared libs when runtime libs are static
11183 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11185 # Whether or not to optimize for fast installation.
11186 fast_install=$enable_fast_install
11189 host_alias=$host_alias
11193 # The build system.
11194 build_alias=$build_alias
11198 # An echo program that does not interpret backslashes.
11203 AR_FLAGS=$lt_AR_FLAGS
11208 # A language-specific compiler.
11211 # Is the compiler the GNU C compiler?
11217 # The linker used to build libraries.
11220 # Whether we need hard or soft links.
11223 # A BSD-compatible nm program.
11226 # A symbol stripping program
11229 # Used to examine libraries when file_magic_cmd begins "file"
11230 MAGIC_CMD=$MAGIC_CMD
11232 # Used on cygwin: DLL creation program.
11235 # Used on cygwin: object dumper.
11238 # Used on cygwin: assembler.
11241 # The name of the directory that contains temporary libtool files.
11244 # How to create reloadable object files.
11245 reload_flag=$lt_reload_flag
11246 reload_cmds=$lt_reload_cmds
11248 # How to pass a linker flag through the compiler.
11249 wl=$lt_lt_prog_compiler_wl
11251 # Object file suffix (normally "o").
11252 objext="$ac_objext"
11254 # Old archive suffix (normally "a").
11257 # Shared library suffix (normally ".so").
11258 shrext_cmds='$shrext_cmds'
11260 # Executable file suffix (normally "").
11263 # Additional compiler flags for building library objects.
11264 pic_flag=$lt_lt_prog_compiler_pic
11267 # What is the maximum length of a command?
11268 max_cmd_len=$lt_cv_sys_max_cmd_len
11270 # Does compiler simultaneously support -c and -o options?
11271 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11273 # Must we lock files when doing compilation?
11274 need_locks=$lt_need_locks
11276 # Do we need the lib prefix for modules?
11277 need_lib_prefix=$need_lib_prefix
11279 # Do we need a version for libraries?
11280 need_version=$need_version
11282 # Whether dlopen is supported.
11283 dlopen_support=$enable_dlopen
11285 # Whether dlopen of programs is supported.
11286 dlopen_self=$enable_dlopen_self
11288 # Whether dlopen of statically linked programs is supported.
11289 dlopen_self_static=$enable_dlopen_self_static
11291 # Compiler flag to prevent dynamic linking.
11292 link_static_flag=$lt_lt_prog_compiler_static
11294 # Compiler flag to turn off builtin functions.
11295 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11297 # Compiler flag to allow reflexive dlopens.
11298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11300 # Compiler flag to generate shared objects directly from archives.
11301 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11303 # Compiler flag to generate thread-safe objects.
11304 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11306 # Library versioning type.
11307 version_type=$version_type
11309 # Format of library name prefix.
11310 libname_spec=$lt_libname_spec
11312 # List of archive names. First name is the real one, the rest are links.
11313 # The last name is the one that the linker finds with -lNAME.
11314 library_names_spec=$lt_library_names_spec
11316 # The coded name of the library, if different from the real name.
11317 soname_spec=$lt_soname_spec
11319 # Commands used to build and install an old-style archive.
11321 old_archive_cmds=$lt_old_archive_cmds
11322 old_postinstall_cmds=$lt_old_postinstall_cmds
11323 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11325 # Create an old-style archive from a shared archive.
11326 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11328 # Create a temporary old-style archive to link instead of a shared archive.
11329 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11331 # Commands used to build and install a shared archive.
11332 archive_cmds=$lt_archive_cmds
11333 archive_expsym_cmds=$lt_archive_expsym_cmds
11334 postinstall_cmds=$lt_postinstall_cmds
11335 postuninstall_cmds=$lt_postuninstall_cmds
11337 # Commands used to build a loadable module (assumed same as above if empty)
11338 module_cmds=$lt_module_cmds
11339 module_expsym_cmds=$lt_module_expsym_cmds
11341 # Commands to strip libraries.
11342 old_striplib=$lt_old_striplib
11343 striplib=$lt_striplib
11345 # Dependencies to place before the objects being linked to create a
11347 predep_objects=$lt_predep_objects
11349 # Dependencies to place after the objects being linked to create a
11351 postdep_objects=$lt_postdep_objects
11353 # Dependencies to place before the objects being linked to create a
11355 predeps=$lt_predeps
11357 # Dependencies to place after the objects being linked to create a
11359 postdeps=$lt_postdeps
11361 # The library search path used internally by the compiler when linking
11362 # a shared library.
11363 compiler_lib_search_path=$lt_compiler_lib_search_path
11365 # Method to check whether dependent libraries are shared objects.
11366 deplibs_check_method=$lt_deplibs_check_method
11368 # Command to use when deplibs_check_method == file_magic.
11369 file_magic_cmd=$lt_file_magic_cmd
11371 # Flag that allows shared libraries with undefined symbols to be built.
11372 allow_undefined_flag=$lt_allow_undefined_flag
11374 # Flag that forces no undefined symbols.
11375 no_undefined_flag=$lt_no_undefined_flag
11377 # Commands used to finish a libtool library installation in a directory.
11378 finish_cmds=$lt_finish_cmds
11380 # Same as above, but a single script fragment to be evaled but not shown.
11381 finish_eval=$lt_finish_eval
11383 # Take the output of nm and produce a listing of raw symbols and C names.
11384 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11386 # Transform the output of nm in a proper C declaration
11387 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11389 # Transform the output of nm in a C name address pair
11390 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11392 # This is the shared library runtime path variable.
11393 runpath_var=$runpath_var
11395 # This is the shared library path variable.
11396 shlibpath_var=$shlibpath_var
11398 # Is shlibpath searched before the hard-coded library search path?
11399 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11401 # How to hardcode a shared library path into an executable.
11402 hardcode_action=$hardcode_action
11404 # Whether we should hardcode library paths into libraries.
11405 hardcode_into_libs=$hardcode_into_libs
11407 # Flag to hardcode \$libdir into a binary during linking.
11408 # This must work even if \$libdir does not exist.
11409 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11411 # If ld is used when linking, flag to hardcode \$libdir into
11412 # a binary during linking. This must work even if \$libdir does
11414 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11416 # Whether we need a single -rpath flag with a separated argument.
11417 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11419 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11420 # resulting binary.
11421 hardcode_direct=$hardcode_direct
11423 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11424 # resulting binary.
11425 hardcode_minus_L=$hardcode_minus_L
11427 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11428 # the resulting binary.
11429 hardcode_shlibpath_var=$hardcode_shlibpath_var
11431 # Set to yes if building a shared library automatically hardcodes DIR into the library
11432 # and all subsequent libraries and executables linked against it.
11433 hardcode_automatic=$hardcode_automatic
11435 # Variables whose values should be saved in libtool wrapper scripts and
11436 # restored at relink time.
11437 variables_saved_for_relink="$variables_saved_for_relink"
11439 # Whether libtool must link a program against all its dependency libraries.
11440 link_all_deplibs=$link_all_deplibs
11442 # Compile-time system search path for libraries
11443 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11445 # Run-time system search path for libraries
11446 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11448 # Fix the shell variable \$srcfile for the compiler.
11449 fix_srcfile_path="$fix_srcfile_path"
11451 # Set to yes if exported symbols are required.
11452 always_export_symbols=$always_export_symbols
11454 # The commands to list exported symbols.
11455 export_symbols_cmds=$lt_export_symbols_cmds
11457 # The commands to extract the exported symbol list from a shared archive.
11458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11460 # Symbols that should not be listed in the preloaded symbols.
11461 exclude_expsyms=$lt_exclude_expsyms
11463 # Symbols that must always be exported.
11464 include_expsyms=$lt_include_expsyms
11466 # ### END LIBTOOL CONFIG
11473 cat <<\EOF >> "$cfgfile"
11475 # AIX sometimes has problems with the GCC collect2 program. For some
11476 # reason, if we set the COLLECT_NAMES environment variable, the problems
11477 # vanish in a puff of smoke.
11478 if test "X${COLLECT_NAMES+set}" != Xset; then
11480 export COLLECT_NAMES
11486 # We use sed instead of cat because bash on DJGPP gets confused if
11487 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11488 # text mode, it properly converts lines to CR/LF. This bash problem
11489 # is reportedly fixed, but why not run on old versions too?
11490 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11492 mv -f "$cfgfile" "$ofile" || \
11493 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11497 # If there is no Makefile yet, we rely on a make rule to execute
11498 # `config.status --recheck' to rerun these tests and create the
11499 # libtool script then.
11500 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11501 if test -f "$ltmain_in"; then
11502 test -f Makefile && make "$ltmain"
11508 ac_cpp='$CPP $CPPFLAGS'
11509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11516 # Check whether --with-tags was given.
11517 if test "${with_tags+set}" = set; then :
11518 withval=$with_tags; tagnames="$withval"
11522 if test -f "$ltmain" && test -n "$tagnames"; then
11523 if test ! -f "${ofile}"; then
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11525 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11528 if test -z "$LTCC"; then
11529 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11530 if test -z "$LTCC"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11532 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11535 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11539 # Extract list of available tagged configurations in $ofile.
11540 # Note that this assumes the entire list is on one line.
11541 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11543 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11544 for tagname in $tagnames; do
11546 # Check whether tagname contains only valid characters
11547 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11549 *) as_fn_error "invalid tag name: $tagname" "$LINENO" 5
11553 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11555 as_fn_error "tag name \"$tagname\" already exists" "$LINENO" 5
11558 # Update the list of available tags.
11559 if test -n "$tagname"; then
11560 echo appending configuration tag \"$tagname\" to $ofile
11564 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11565 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11566 (test "X$CXX" != "Xg++"))) ; then
11574 if test -n "$F77" && test "X$F77" != "Xno"; then
11582 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11592 # Source file extension for RC test sources.
11595 # Object file extension for compiled RC test sources.
11599 # Code to be used in simple compile tests
11600 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11602 # Code to be used in simple link tests
11603 lt_simple_link_test_code="$lt_simple_compile_test_code"
11605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11607 # If no C compiler was specified, use CC.
11610 # Allow CC to be a program name with arguments.
11614 # save warnings/boilerplate of simple test code
11615 ac_outfile=conftest.$ac_objext
11616 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11617 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11618 _lt_compiler_boilerplate=`cat conftest.err`
11621 ac_outfile=conftest.$ac_objext
11622 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11623 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11624 _lt_linker_boilerplate=`cat conftest.err`
11628 # Allow CC to be a program name with arguments.
11633 for cc_temp in $compiler""; do
11635 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11636 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11641 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11643 lt_cv_prog_compiler_c_o_RC=yes
11645 # The else clause should only fire when bootstrapping the
11646 # libtool distribution, otherwise you forgot to ship ltmain.sh
11647 # with your package, and you will get complaints that there are
11648 # no rules to generate ltmain.sh.
11649 if test -f "$ltmain"; then
11650 # See if we are running on zsh, and set the options which allow our commands through
11651 # without removal of \ escapes.
11652 if test -n "${ZSH_VERSION+set}" ; then
11653 setopt NO_GLOB_SUBST
11655 # Now quote all the things that may contain metacharacters while being
11656 # careful not to overquote the AC_SUBSTed values. We take copies of the
11657 # variables and quote the copies for generation of the libtool script.
11658 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11660 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11661 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11662 deplibs_check_method reload_flag reload_cmds need_locks \
11663 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11664 lt_cv_sys_global_symbol_to_c_name_address \
11665 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11666 old_postinstall_cmds old_postuninstall_cmds \
11670 lt_prog_compiler_wl_RC \
11671 lt_prog_compiler_pic_RC \
11672 lt_prog_compiler_static_RC \
11673 lt_prog_compiler_no_builtin_flag_RC \
11674 export_dynamic_flag_spec_RC \
11675 thread_safe_flag_spec_RC \
11676 whole_archive_flag_spec_RC \
11677 enable_shared_with_static_runtimes_RC \
11678 old_archive_cmds_RC \
11679 old_archive_from_new_cmds_RC \
11680 predep_objects_RC \
11681 postdep_objects_RC \
11684 compiler_lib_search_path_RC \
11686 archive_expsym_cmds_RC \
11687 postinstall_cmds_RC \
11688 postuninstall_cmds_RC \
11689 old_archive_from_expsyms_cmds_RC \
11690 allow_undefined_flag_RC \
11691 no_undefined_flag_RC \
11692 export_symbols_cmds_RC \
11693 hardcode_libdir_flag_spec_RC \
11694 hardcode_libdir_flag_spec_ld_RC \
11695 hardcode_libdir_separator_RC \
11696 hardcode_automatic_RC \
11698 module_expsym_cmds_RC \
11699 lt_cv_prog_compiler_c_o_RC \
11700 exclude_expsyms_RC \
11701 include_expsyms_RC; do
11704 old_archive_cmds_RC | \
11705 old_archive_from_new_cmds_RC | \
11706 archive_cmds_RC | \
11707 archive_expsym_cmds_RC | \
11709 module_expsym_cmds_RC | \
11710 old_archive_from_expsyms_cmds_RC | \
11711 export_symbols_cmds_RC | \
11712 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11713 postinstall_cmds | postuninstall_cmds | \
11714 old_postinstall_cmds | old_postuninstall_cmds | \
11715 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11716 # Double-quote double-evaled strings.
11717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11720 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11726 *'\$0 --fallback-echo"')
11727 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11733 cat <<__EOF__ >> "$cfgfile"
11734 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11736 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11738 # Shell to use when invoking shell scripts.
11741 # Whether or not to build shared libraries.
11742 build_libtool_libs=$enable_shared
11744 # Whether or not to build static libraries.
11745 build_old_libs=$enable_static
11747 # Whether or not to add -lc for building shared libraries.
11748 build_libtool_need_lc=$archive_cmds_need_lc_RC
11750 # Whether or not to disallow shared libs when runtime libs are static
11751 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11753 # Whether or not to optimize for fast installation.
11754 fast_install=$enable_fast_install
11757 host_alias=$host_alias
11761 # The build system.
11762 build_alias=$build_alias
11766 # An echo program that does not interpret backslashes.
11771 AR_FLAGS=$lt_AR_FLAGS
11776 # A language-specific compiler.
11779 # Is the compiler the GNU C compiler?
11785 # The linker used to build libraries.
11788 # Whether we need hard or soft links.
11791 # A BSD-compatible nm program.
11794 # A symbol stripping program
11797 # Used to examine libraries when file_magic_cmd begins "file"
11798 MAGIC_CMD=$MAGIC_CMD
11800 # Used on cygwin: DLL creation program.
11803 # Used on cygwin: object dumper.
11806 # Used on cygwin: assembler.
11809 # The name of the directory that contains temporary libtool files.
11812 # How to create reloadable object files.
11813 reload_flag=$lt_reload_flag
11814 reload_cmds=$lt_reload_cmds
11816 # How to pass a linker flag through the compiler.
11817 wl=$lt_lt_prog_compiler_wl_RC
11819 # Object file suffix (normally "o").
11820 objext="$ac_objext"
11822 # Old archive suffix (normally "a").
11825 # Shared library suffix (normally ".so").
11826 shrext_cmds='$shrext_cmds'
11828 # Executable file suffix (normally "").
11831 # Additional compiler flags for building library objects.
11832 pic_flag=$lt_lt_prog_compiler_pic_RC
11835 # What is the maximum length of a command?
11836 max_cmd_len=$lt_cv_sys_max_cmd_len
11838 # Does compiler simultaneously support -c and -o options?
11839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11841 # Must we lock files when doing compilation?
11842 need_locks=$lt_need_locks
11844 # Do we need the lib prefix for modules?
11845 need_lib_prefix=$need_lib_prefix
11847 # Do we need a version for libraries?
11848 need_version=$need_version
11850 # Whether dlopen is supported.
11851 dlopen_support=$enable_dlopen
11853 # Whether dlopen of programs is supported.
11854 dlopen_self=$enable_dlopen_self
11856 # Whether dlopen of statically linked programs is supported.
11857 dlopen_self_static=$enable_dlopen_self_static
11859 # Compiler flag to prevent dynamic linking.
11860 link_static_flag=$lt_lt_prog_compiler_static_RC
11862 # Compiler flag to turn off builtin functions.
11863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11865 # Compiler flag to allow reflexive dlopens.
11866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11868 # Compiler flag to generate shared objects directly from archives.
11869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11871 # Compiler flag to generate thread-safe objects.
11872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11874 # Library versioning type.
11875 version_type=$version_type
11877 # Format of library name prefix.
11878 libname_spec=$lt_libname_spec
11880 # List of archive names. First name is the real one, the rest are links.
11881 # The last name is the one that the linker finds with -lNAME.
11882 library_names_spec=$lt_library_names_spec
11884 # The coded name of the library, if different from the real name.
11885 soname_spec=$lt_soname_spec
11887 # Commands used to build and install an old-style archive.
11889 old_archive_cmds=$lt_old_archive_cmds_RC
11890 old_postinstall_cmds=$lt_old_postinstall_cmds
11891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11893 # Create an old-style archive from a shared archive.
11894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11896 # Create a temporary old-style archive to link instead of a shared archive.
11897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11899 # Commands used to build and install a shared archive.
11900 archive_cmds=$lt_archive_cmds_RC
11901 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11902 postinstall_cmds=$lt_postinstall_cmds
11903 postuninstall_cmds=$lt_postuninstall_cmds
11905 # Commands used to build a loadable module (assumed same as above if empty)
11906 module_cmds=$lt_module_cmds_RC
11907 module_expsym_cmds=$lt_module_expsym_cmds_RC
11909 # Commands to strip libraries.
11910 old_striplib=$lt_old_striplib
11911 striplib=$lt_striplib
11913 # Dependencies to place before the objects being linked to create a
11915 predep_objects=$lt_predep_objects_RC
11917 # Dependencies to place after the objects being linked to create a
11919 postdep_objects=$lt_postdep_objects_RC
11921 # Dependencies to place before the objects being linked to create a
11923 predeps=$lt_predeps_RC
11925 # Dependencies to place after the objects being linked to create a
11927 postdeps=$lt_postdeps_RC
11929 # The library search path used internally by the compiler when linking
11930 # a shared library.
11931 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11933 # Method to check whether dependent libraries are shared objects.
11934 deplibs_check_method=$lt_deplibs_check_method
11936 # Command to use when deplibs_check_method == file_magic.
11937 file_magic_cmd=$lt_file_magic_cmd
11939 # Flag that allows shared libraries with undefined symbols to be built.
11940 allow_undefined_flag=$lt_allow_undefined_flag_RC
11942 # Flag that forces no undefined symbols.
11943 no_undefined_flag=$lt_no_undefined_flag_RC
11945 # Commands used to finish a libtool library installation in a directory.
11946 finish_cmds=$lt_finish_cmds
11948 # Same as above, but a single script fragment to be evaled but not shown.
11949 finish_eval=$lt_finish_eval
11951 # Take the output of nm and produce a listing of raw symbols and C names.
11952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11954 # Transform the output of nm in a proper C declaration
11955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11957 # Transform the output of nm in a C name address pair
11958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11960 # This is the shared library runtime path variable.
11961 runpath_var=$runpath_var
11963 # This is the shared library path variable.
11964 shlibpath_var=$shlibpath_var
11966 # Is shlibpath searched before the hard-coded library search path?
11967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11969 # How to hardcode a shared library path into an executable.
11970 hardcode_action=$hardcode_action_RC
11972 # Whether we should hardcode library paths into libraries.
11973 hardcode_into_libs=$hardcode_into_libs
11975 # Flag to hardcode \$libdir into a binary during linking.
11976 # This must work even if \$libdir does not exist.
11977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11979 # If ld is used when linking, flag to hardcode \$libdir into
11980 # a binary during linking. This must work even if \$libdir does
11982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11984 # Whether we need a single -rpath flag with a separated argument.
11985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11988 # resulting binary.
11989 hardcode_direct=$hardcode_direct_RC
11991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11992 # resulting binary.
11993 hardcode_minus_L=$hardcode_minus_L_RC
11995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11996 # the resulting binary.
11997 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
11999 # Set to yes if building a shared library automatically hardcodes DIR into the library
12000 # and all subsequent libraries and executables linked against it.
12001 hardcode_automatic=$hardcode_automatic_RC
12003 # Variables whose values should be saved in libtool wrapper scripts and
12004 # restored at relink time.
12005 variables_saved_for_relink="$variables_saved_for_relink"
12007 # Whether libtool must link a program against all its dependency libraries.
12008 link_all_deplibs=$link_all_deplibs_RC
12010 # Compile-time system search path for libraries
12011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12013 # Run-time system search path for libraries
12014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12016 # Fix the shell variable \$srcfile for the compiler.
12017 fix_srcfile_path="$fix_srcfile_path_RC"
12019 # Set to yes if exported symbols are required.
12020 always_export_symbols=$always_export_symbols_RC
12022 # The commands to list exported symbols.
12023 export_symbols_cmds=$lt_export_symbols_cmds_RC
12025 # The commands to extract the exported symbol list from a shared archive.
12026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12028 # Symbols that should not be listed in the preloaded symbols.
12029 exclude_expsyms=$lt_exclude_expsyms_RC
12031 # Symbols that must always be exported.
12032 include_expsyms=$lt_include_expsyms_RC
12034 # ### END LIBTOOL TAG CONFIG: $tagname
12040 # If there is no Makefile yet, we rely on a make rule to execute
12041 # `config.status --recheck' to rerun these tests and create the
12042 # libtool script then.
12043 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12044 if test -f "$ltmain_in"; then
12045 test -f Makefile && make "$ltmain"
12051 ac_cpp='$CPP $CPPFLAGS'
12052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12061 as_fn_error "Unsupported tag name: $tagname" "$LINENO" 5
12065 # Append the new tag name to the list of available tags.
12066 if test -n "$tagname" ; then
12067 available_tags="$available_tags $tagname"
12073 # Now substitute the updated list of available tags.
12074 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12075 mv "${ofile}T" "$ofile"
12079 as_fn_error "unable to update list of available tagged configurations." "$LINENO" 5
12085 # This can be used to rebuild libtool when needed
12086 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12088 # Always use our own libtool.
12089 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12091 # Prevent multiple expansion
12103 if test $ol_enable_perl != no ; then
12104 # Extract the first word of "perl", so it can be a program name with args.
12105 set dummy perl; ac_word=$2
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12107 $as_echo_n "checking for $ac_word... " >&6; }
12108 if test "${ac_cv_path_PERLBIN+set}" = set; then :
12109 $as_echo_n "(cached) " >&6
12113 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12117 for as_dir in $PATH
12120 test -z "$as_dir" && as_dir=.
12121 for ac_exec_ext in '' $ac_executable_extensions; do
12122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12123 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12131 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12135 PERLBIN=$ac_cv_path_PERLBIN
12136 if test -n "$PERLBIN"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12138 $as_echo "$PERLBIN" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12141 $as_echo "no" >&6; }
12146 if test "no$PERLBIN" = "no" ; then
12147 if test $ol_enable_perl = yes ; then
12148 as_fn_error "could not locate perl" "$LINENO" 5
12152 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12153 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12155 if test x"$ol_enable_perl" = "xyes" ; then
12156 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12158 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12165 ac_cpp='$CPP $CPPFLAGS'
12166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12170 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12171 # On Suns, sometimes $CPP names a directory.
12172 if test -n "$CPP" && test -d "$CPP"; then
12175 if test -z "$CPP"; then
12176 if test "${ac_cv_prog_CPP+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12179 # Double quotes because CPP needs to be expanded
12180 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12182 ac_preproc_ok=false
12183 for ac_c_preproc_warn_flag in '' yes
12185 # Use a header file that comes with gcc, so configuring glibc
12186 # with a fresh cross-compiler works.
12187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12188 # <limits.h> exists even on freestanding compilers.
12189 # On the NeXT, cc -E runs the code through the compiler's parser,
12190 # not just through cpp. "Syntax error" is here to catch this case.
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12194 # include <limits.h>
12196 # include <assert.h>
12200 if ac_fn_c_try_cpp "$LINENO"; then :
12203 # Broken: fails on valid input.
12206 rm -f conftest.err conftest.$ac_ext
12208 # OK, works on sane cases. Now check whether nonexistent headers
12209 # can be detected and how.
12210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211 /* end confdefs.h. */
12212 #include <ac_nonexistent.h>
12214 if ac_fn_c_try_cpp "$LINENO"; then :
12215 # Broken: success on invalid input.
12218 # Passes both tests.
12222 rm -f conftest.err conftest.$ac_ext
12225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12226 rm -f conftest.err conftest.$ac_ext
12227 if $ac_preproc_ok; then :
12232 ac_cv_prog_CPP=$CPP
12235 CPP=$ac_cv_prog_CPP
12237 ac_cv_prog_CPP=$CPP
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12240 $as_echo "$CPP" >&6; }
12241 ac_preproc_ok=false
12242 for ac_c_preproc_warn_flag in '' yes
12244 # Use a header file that comes with gcc, so configuring glibc
12245 # with a fresh cross-compiler works.
12246 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12247 # <limits.h> exists even on freestanding compilers.
12248 # On the NeXT, cc -E runs the code through the compiler's parser,
12249 # not just through cpp. "Syntax error" is here to catch this case.
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12253 # include <limits.h>
12255 # include <assert.h>
12259 if ac_fn_c_try_cpp "$LINENO"; then :
12262 # Broken: fails on valid input.
12265 rm -f conftest.err conftest.$ac_ext
12267 # OK, works on sane cases. Now check whether nonexistent headers
12268 # can be detected and how.
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 #include <ac_nonexistent.h>
12273 if ac_fn_c_try_cpp "$LINENO"; then :
12274 # Broken: success on invalid input.
12277 # Passes both tests.
12281 rm -f conftest.err conftest.$ac_ext
12284 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12285 rm -f conftest.err conftest.$ac_ext
12286 if $ac_preproc_ok; then :
12289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12291 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12292 See \`config.log' for more details." "$LINENO" 5; }
12296 ac_cpp='$CPP $CPPFLAGS'
12297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12302 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12303 if test "${ol_cv_msvc+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12310 #include <__FOO__/generate_error.h>
12314 if ac_fn_c_try_cpp "$LINENO"; then :
12319 rm -f conftest.err conftest.$ac_ext
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12322 $as_echo "$ol_cv_msvc" >&6; }
12325 *mingw32* ) ac_cv_mingw32=yes ;;
12326 *cygwin* ) ac_cv_cygwin=yes ;;
12327 *interix* ) ac_cv_interix=yes ;;
12333 cat >>confdefs.h <<_ACEOF
12334 #define EXEEXT "${EXEEXT}"
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12339 $as_echo_n "checking for be_app in -lbe... " >&6; }
12340 if test "${ac_cv_lib_be_be_app+set}" = set; then :
12341 $as_echo_n "(cached) " >&6
12343 ac_check_lib_save_LIBS=$LIBS
12344 LIBS="-lbe -lroot -lnet $LIBS"
12345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12346 /* end confdefs.h. */
12348 /* Override any GCC internal prototype to avoid an error.
12349 Use char because int might match the return type of a GCC
12350 builtin and then its argument prototype would still apply. */
12363 if ac_fn_c_try_link "$LINENO"; then :
12364 ac_cv_lib_be_be_app=yes
12366 ac_cv_lib_be_be_app=no
12368 rm -f core conftest.err conftest.$ac_objext \
12369 conftest$ac_exeext conftest.$ac_ext
12370 LIBS=$ac_check_lib_save_LIBS
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12373 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12374 if test "x$ac_cv_lib_be_be_app" = x""yes; then :
12375 LIBS="$LIBS -lbe -lroot -lnet"
12382 ac_cpp='$CPP $CPPFLAGS'
12383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12386 if test -n "$ac_tool_prefix"; then
12387 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12388 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12390 $as_echo_n "checking for $ac_word... " >&6; }
12391 if test "${ac_cv_prog_CC+set}" = set; then :
12392 $as_echo_n "(cached) " >&6
12394 if test -n "$CC"; then
12395 ac_cv_prog_CC="$CC" # Let the user override the test.
12397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12398 for as_dir in $PATH
12401 test -z "$as_dir" && as_dir=.
12402 for ac_exec_ext in '' $ac_executable_extensions; do
12403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12404 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 if test -n "$CC"; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12417 $as_echo "$CC" >&6; }
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12420 $as_echo "no" >&6; }
12425 if test -z "$ac_cv_prog_CC"; then
12427 # Extract the first word of "gcc", so it can be a program name with args.
12428 set dummy gcc; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12434 if test -n "$ac_ct_CC"; then
12435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH
12441 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_prog_ac_ct_CC="gcc"
12445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12454 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12455 if test -n "$ac_ct_CC"; then
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12457 $as_echo "$ac_ct_CC" >&6; }
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12463 if test "x$ac_ct_CC" = x; then
12466 case $cross_compiling:$ac_tool_warned in
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12470 ac_tool_warned=yes ;;
12475 CC="$ac_cv_prog_CC"
12478 if test -z "$CC"; then
12479 if test -n "$ac_tool_prefix"; then
12480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12481 set dummy ${ac_tool_prefix}cc; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_prog_CC+set}" = set; then :
12485 $as_echo_n "(cached) " >&6
12487 if test -n "$CC"; then
12488 ac_cv_prog_CC="$CC" # Let the user override the test.
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12497 ac_cv_prog_CC="${ac_tool_prefix}cc"
12498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 if test -n "$CC"; then
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12510 $as_echo "$CC" >&6; }
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12513 $as_echo "no" >&6; }
12519 if test -z "$CC"; then
12520 # Extract the first word of "cc", so it can be a program name with args.
12521 set dummy cc; ac_word=$2
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if test "${ac_cv_prog_CC+set}" = set; then :
12525 $as_echo_n "(cached) " >&6
12527 if test -n "$CC"; then
12528 ac_cv_prog_CC="$CC" # Let the user override the test.
12530 ac_prog_rejected=no
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12538 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12539 ac_prog_rejected=yes
12543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 if test $ac_prog_rejected = yes; then
12551 # We found a bogon in the path, so make sure we never use it.
12552 set dummy $ac_cv_prog_CC
12554 if test $# != 0; then
12555 # We chose a different compiler from the bogus one.
12556 # However, it has the same basename, so the bogon will be chosen
12557 # first if we set CC to just the basename; use the full file name.
12559 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12565 if test -n "$CC"; then
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12567 $as_echo "$CC" >&6; }
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12575 if test -z "$CC"; then
12576 if test -n "$ac_tool_prefix"; then
12577 for ac_prog in cl.exe
12579 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12580 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12582 $as_echo_n "checking for $ac_word... " >&6; }
12583 if test "${ac_cv_prog_CC+set}" = set; then :
12584 $as_echo_n "(cached) " >&6
12586 if test -n "$CC"; then
12587 ac_cv_prog_CC="$CC" # Let the user override the test.
12589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12593 test -z "$as_dir" && as_dir=.
12594 for ac_exec_ext in '' $ac_executable_extensions; do
12595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12596 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607 if test -n "$CC"; then
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12609 $as_echo "$CC" >&6; }
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12616 test -n "$CC" && break
12619 if test -z "$CC"; then
12621 for ac_prog in cl.exe
12623 # Extract the first word of "$ac_prog", so it can be a program name with args.
12624 set dummy $ac_prog; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12628 $as_echo_n "(cached) " >&6
12630 if test -n "$ac_ct_CC"; then
12631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12634 for as_dir in $PATH
12637 test -z "$as_dir" && as_dir=.
12638 for ac_exec_ext in '' $ac_executable_extensions; do
12639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12640 ac_cv_prog_ac_ct_CC="$ac_prog"
12641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12651 if test -n "$ac_ct_CC"; then
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12653 $as_echo "$ac_ct_CC" >&6; }
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12656 $as_echo "no" >&6; }
12660 test -n "$ac_ct_CC" && break
12663 if test "x$ac_ct_CC" = x; then
12666 case $cross_compiling:$ac_tool_warned in
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12670 ac_tool_warned=yes ;;
12679 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12681 as_fn_error "no acceptable C compiler found in \$PATH
12682 See \`config.log' for more details." "$LINENO" 5; }
12684 # Provide some information about the compiler.
12685 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12688 for ac_option in --version -v -V -qversion; do
12689 { { ac_try="$ac_compiler $ac_option >&5"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12695 $as_echo "$ac_try_echo"; } >&5
12696 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12698 if test -s conftest.err; then
12700 ... rest of stderr output deleted ...
12701 10q' conftest.err >conftest.er1
12702 cat conftest.er1 >&5
12704 rm -f conftest.er1 conftest.err
12705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12706 test $ac_status = 0; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12710 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12711 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12712 $as_echo_n "(cached) " >&6
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12715 /* end confdefs.h. */
12728 if ac_fn_c_try_compile "$LINENO"; then :
12729 ac_compiler_gnu=yes
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12739 if test $ac_compiler_gnu = yes; then
12744 ac_test_CFLAGS=${CFLAGS+set}
12745 ac_save_CFLAGS=$CFLAGS
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12748 if test "${ac_cv_prog_cc_g+set}" = set; then :
12749 $as_echo_n "(cached) " >&6
12751 ac_save_c_werror_flag=$ac_c_werror_flag
12752 ac_c_werror_flag=yes
12755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12756 /* end confdefs.h. */
12766 if ac_fn_c_try_compile "$LINENO"; then :
12767 ac_cv_prog_cc_g=yes
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12781 if ac_fn_c_try_compile "$LINENO"; then :
12784 ac_c_werror_flag=$ac_save_c_werror_flag
12786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12787 /* end confdefs.h. */
12797 if ac_fn_c_try_compile "$LINENO"; then :
12798 ac_cv_prog_cc_g=yes
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12805 ac_c_werror_flag=$ac_save_c_werror_flag
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12808 $as_echo "$ac_cv_prog_cc_g" >&6; }
12809 if test "$ac_test_CFLAGS" = set; then
12810 CFLAGS=$ac_save_CFLAGS
12811 elif test $ac_cv_prog_cc_g = yes; then
12812 if test "$GCC" = yes; then
12818 if test "$GCC" = yes; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12825 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12826 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12827 $as_echo_n "(cached) " >&6
12829 ac_cv_prog_cc_c89=no
12831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12832 /* end confdefs.h. */
12833 #include <stdarg.h>
12835 #include <sys/types.h>
12836 #include <sys/stat.h>
12837 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12838 struct buf { int x; };
12839 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12840 static char *e (p, i)
12846 static char *f (char * (*g) (char **, int), char **p, ...)
12851 s = g (p, va_arg (v,int));
12856 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12857 function prototypes and stuff, but not '\xHH' hex character constants.
12858 These don't provoke an error unfortunately, instead are silently treated
12859 as 'x'. The following induces an error, until -std is added to get
12860 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12861 array size at least. It's necessary to write '\x00'==0 to get something
12862 that's true only with -std. */
12863 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12865 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12866 inside strings and character constants. */
12868 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12870 int test (int i, double x);
12871 struct s1 {int (*f) (int a);};
12872 struct s2 {int (*f) (double a);};
12873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12887 CC="$ac_save_CC $ac_arg"
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889 ac_cv_prog_cc_c89=$ac_arg
12891 rm -f core conftest.err conftest.$ac_objext
12892 test "x$ac_cv_prog_cc_c89" != "xno" && break
12894 rm -f conftest.$ac_ext
12899 case "x$ac_cv_prog_cc_c89" in
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12902 $as_echo "none needed" >&6; } ;;
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12905 $as_echo "unsupported" >&6; } ;;
12907 CC="$CC $ac_cv_prog_cc_c89"
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12909 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12911 if test "x$ac_cv_prog_cc_c89" != xno; then :
12916 ac_cpp='$CPP $CPPFLAGS'
12917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12921 depcc="$CC" am_compiler_list=
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12924 $as_echo_n "checking dependency style of $depcc... " >&6; }
12925 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
12928 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12929 # We make a subdir and do the tests there. Otherwise we can end up
12930 # making bogus files that we don't know about and never remove. For
12931 # instance it was reported that on HP-UX the gcc test will end up
12932 # making a dummy file named `D' -- because `-MD' means `put the output
12935 # Copy depcomp to subdir because otherwise we won't find it if we're
12936 # using a relative directory.
12937 cp "$am_depcomp" conftest.dir
12939 # We will build objects and dependencies in a subdirectory because
12940 # it helps to detect inapplicable dependency modes. For instance
12941 # both Tru64's cc and ICC support -MD to output dependencies as a
12942 # side effect of compilation, but ICC will put the dependencies in
12943 # the current directory while Tru64 will put them in the object
12947 am_cv_CC_dependencies_compiler_type=none
12948 if test "$am_compiler_list" = ""; then
12949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12951 for depmode in $am_compiler_list; do
12952 # Setup a source with many dependencies, because some compilers
12953 # like to wrap large dependency lists on column 80 (with \), and
12954 # we should not choose a depcomp mode which is confused by this.
12956 # We need to recreate these files for each test, as the compiler may
12957 # overwrite some of them when testing with obscure command lines.
12958 # This happens at least with the AIX C compiler.
12960 for i in 1 2 3 4 5 6; do
12961 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12962 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12963 # Solaris 8's {/usr,}/bin/sh.
12964 touch sub/conftst$i.h
12966 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12970 # after this tag, mechanisms are not by side-effect, so they'll
12971 # only be used when explicitly requested
12972 if test "x$enable_dependency_tracking" = xyes; then
12980 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12981 # mode. It turns out that the SunPro C++ compiler does not properly
12982 # handle `-M -o', and we need to detect this.
12983 if depmode=$depmode \
12984 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12986 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12987 >/dev/null 2>conftest.err &&
12988 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12989 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12990 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12991 # icc doesn't choke on unknown options, it will just issue warnings
12992 # or remarks (even with -Werror). So we grep stderr for any message
12993 # that says an option was ignored or not supported.
12994 # When given -MP, icc 7.0 and 7.1 complain thusly:
12995 # icc: Command line warning: ignoring option '-M'; no argument required
12996 # The diagnosis changed in icc 8.0:
12997 # icc: Command line remark: option '-MP' not supported
12998 if (grep 'ignoring option' conftest.err ||
12999 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13000 am_cv_CC_dependencies_compiler_type=$depmode
13007 rm -rf conftest.dir
13009 am_cv_CC_dependencies_compiler_type=none
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13014 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13015 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13020 test "x$enable_dependency_tracking" != xno \
13021 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13022 am__fastdepCC_TRUE=
13023 am__fastdepCC_FALSE='#'
13025 am__fastdepCC_TRUE='#'
13026 am__fastdepCC_FALSE=
13030 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13031 as_fn_error "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13034 # test for make depend flag
13037 if test -z "${MKDEP}"; then
13038 OL_MKDEP="${CC-cc}"
13039 if test -z "${MKDEP_FLAGS}"; then
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13041 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13042 if test "${ol_cv_mkdep+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
13047 for flag in "-M" "-xM"; do
13048 cat > conftest.c <<EOF
13051 if { ac_try='$OL_MKDEP $flag conftest.c'
13052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13053 (eval $ac_try) 2>&5
13055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13056 test $ac_status = 0; }; } \
13057 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13059 if test ! -f conftest."${ac_object}" ; then
13061 OL_MKDEP_FLAGS="$flag"
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13070 $as_echo "$ol_cv_mkdep" >&6; }
13071 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13074 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13078 OL_MKDEP="${MKDEP}"
13079 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13084 if test "${ol_cv_mkdep}" = no ; then
13085 # this will soon become an error
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13087 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13091 $as_echo_n "checking for afopen in -ls... " >&6; }
13092 if test "${ac_cv_lib_s_afopen+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13095 ac_check_lib_save_LIBS=$LIBS
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13100 /* Override any GCC internal prototype to avoid an error.
13101 Use char because int might match the return type of a GCC
13102 builtin and then its argument prototype would still apply. */
13115 if ac_fn_c_try_link "$LINENO"; then :
13116 ac_cv_lib_s_afopen=yes
13118 ac_cv_lib_s_afopen=no
13120 rm -f core conftest.err conftest.$ac_objext \
13121 conftest$ac_exeext conftest.$ac_ext
13122 LIBS=$ac_check_lib_save_LIBS
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13125 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13126 if test "x$ac_cv_lib_s_afopen" = x""yes; then :
13130 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13138 ac_cv_func_getopt=no
13140 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13146 WITH_MODULES_ENABLED=no
13147 if test $ol_enable_modules != no ; then
13148 for ac_header in ltdl.h
13150 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13151 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
13152 cat >>confdefs.h <<_ACEOF
13153 #define HAVE_LTDL_H 1
13161 if test $ac_cv_header_ltdl_h = no ; then
13162 as_fn_error "could not locate libtool ltdl.h" "$LINENO" 5
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13166 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13167 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
13168 $as_echo_n "(cached) " >&6
13170 ac_check_lib_save_LIBS=$LIBS
13171 LIBS="-lltdl $LIBS"
13172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13173 /* end confdefs.h. */
13175 /* Override any GCC internal prototype to avoid an error.
13176 Use char because int might match the return type of a GCC
13177 builtin and then its argument prototype would still apply. */
13185 return lt_dlinit ();
13190 if ac_fn_c_try_link "$LINENO"; then :
13191 ac_cv_lib_ltdl_lt_dlinit=yes
13193 ac_cv_lib_ltdl_lt_dlinit=no
13195 rm -f core conftest.err conftest.$ac_objext \
13196 conftest$ac_exeext conftest.$ac_ext
13197 LIBS=$ac_check_lib_save_LIBS
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13200 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13201 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
13203 MODULES_LIBS=-lltdl
13205 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13211 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13212 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
13214 ol_link_modules=yes
13215 WITH_MODULES_ENABLED=yes
13218 for i in $Backends; do
13219 eval "ol_tmp=\$ol_enable_$i"
13220 if test $ol_tmp = mod ; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13222 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13223 eval "ol_enable_$i=yes"
13226 for i in $Overlays; do
13227 eval "ol_tmp=\$ol_enable_$i"
13228 if test $ol_tmp = mod ; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13230 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13231 eval "ol_enable_$i=yes"
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13238 $as_echo_n "checking for EBCDIC... " >&6; }
13239 if test "${ol_cv_cpp_ebcdic+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13247 #include <__ASCII__/generate_error.h>
13251 if ac_fn_c_try_cpp "$LINENO"; then :
13252 ol_cv_cpp_ebcdic=yes
13254 ol_cv_cpp_ebcdic=no
13256 rm -f conftest.err conftest.$ac_ext
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13259 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13260 if test $ol_cv_cpp_ebcdic = yes ; then
13262 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13267 $as_echo_n "checking for ANSI C header files... " >&6; }
13268 if test "${ol_cv_header_stdc+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h. */
13273 #include <stdlib.h>
13274 #include <stdarg.h>
13275 #include <string.h>
13278 if ac_fn_c_try_cpp "$LINENO"; then :
13279 ol_cv_header_stdc=yes
13281 ol_cv_header_stdc=no
13283 rm -f conftest.err conftest.$ac_ext
13285 if test $ol_cv_header_stdc = yes; then
13286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13288 /* end confdefs.h. */
13289 #include <string.h>
13292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13293 $EGREP "memchr" >/dev/null 2>&1; then :
13296 ol_cv_header_stdc=no
13302 if test $ol_cv_header_stdc = yes; then
13303 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305 /* end confdefs.h. */
13306 #include <stdlib.h>
13309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13310 $EGREP "free" >/dev/null 2>&1; then :
13313 ol_cv_header_stdc=no
13319 if test $ol_cv_header_stdc = yes; then
13320 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13321 if test "$cross_compiling" = yes; then :
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13327 #ifndef HAVE_EBCDIC
13328 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13329 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13331 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13332 || ('j' <= (c) && (c) <= 'r') \
13333 || ('s' <= (c) && (c) <= 'z'))
13334 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13336 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13337 int main () { int i; for (i = 0; i < 256; i++)
13338 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13342 if ac_fn_c_try_run "$LINENO"; then :
13345 ol_cv_header_stdc=no
13347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13348 conftest.$ac_objext conftest.beam conftest.$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13354 $as_echo "$ol_cv_header_stdc" >&6; }
13355 if test $ol_cv_header_stdc = yes; then
13356 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13359 ac_cv_header_stdc=disable
13362 if test $ol_cv_header_stdc != yes; then
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13364 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13367 ac_header_dirent=no
13368 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13369 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13371 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13373 $as_echo_n "(cached) " >&6
13375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13376 /* end confdefs.h. */
13377 #include <sys/types.h>
13389 if ac_fn_c_try_compile "$LINENO"; then :
13390 eval "$as_ac_Header=yes"
13392 eval "$as_ac_Header=no"
13394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 eval ac_res=\$$as_ac_Header
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13398 $as_echo "$ac_res" >&6; }
13399 eval as_val=\$$as_ac_Header
13400 if test "x$as_val" = x""yes; then :
13401 cat >>confdefs.h <<_ACEOF
13402 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13405 ac_header_dirent=$ac_hdr; break
13409 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13410 if test $ac_header_dirent = dirent.h; then
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13412 $as_echo_n "checking for library containing opendir... " >&6; }
13413 if test "${ac_cv_search_opendir+set}" = set; then :
13414 $as_echo_n "(cached) " >&6
13416 ac_func_search_save_LIBS=$LIBS
13417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13420 /* Override any GCC internal prototype to avoid an error.
13421 Use char because int might match the return type of a GCC
13422 builtin and then its argument prototype would still apply. */
13435 for ac_lib in '' dir; do
13436 if test -z "$ac_lib"; then
13437 ac_res="none required"
13440 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 ac_cv_search_opendir=$ac_res
13445 rm -f core conftest.err conftest.$ac_objext \
13447 if test "${ac_cv_search_opendir+set}" = set; then :
13451 if test "${ac_cv_search_opendir+set}" = set; then :
13454 ac_cv_search_opendir=no
13456 rm conftest.$ac_ext
13457 LIBS=$ac_func_search_save_LIBS
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13460 $as_echo "$ac_cv_search_opendir" >&6; }
13461 ac_res=$ac_cv_search_opendir
13462 if test "$ac_res" != no; then :
13463 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13469 $as_echo_n "checking for library containing opendir... " >&6; }
13470 if test "${ac_cv_search_opendir+set}" = set; then :
13471 $as_echo_n "(cached) " >&6
13473 ac_func_search_save_LIBS=$LIBS
13474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13475 /* end confdefs.h. */
13477 /* Override any GCC internal prototype to avoid an error.
13478 Use char because int might match the return type of a GCC
13479 builtin and then its argument prototype would still apply. */
13492 for ac_lib in '' x; do
13493 if test -z "$ac_lib"; then
13494 ac_res="none required"
13497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13499 if ac_fn_c_try_link "$LINENO"; then :
13500 ac_cv_search_opendir=$ac_res
13502 rm -f core conftest.err conftest.$ac_objext \
13504 if test "${ac_cv_search_opendir+set}" = set; then :
13508 if test "${ac_cv_search_opendir+set}" = set; then :
13511 ac_cv_search_opendir=no
13513 rm conftest.$ac_ext
13514 LIBS=$ac_func_search_save_LIBS
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13517 $as_echo "$ac_cv_search_opendir" >&6; }
13518 ac_res=$ac_cv_search_opendir
13519 if test "$ac_res" != no; then :
13520 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13527 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13528 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
13529 $as_echo_n "(cached) " >&6
13531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13532 /* end confdefs.h. */
13533 #include <sys/types.h>
13534 #include <sys/wait.h>
13535 #ifndef WEXITSTATUS
13536 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13539 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13547 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13552 if ac_fn_c_try_compile "$LINENO"; then :
13553 ac_cv_header_sys_wait_h=yes
13555 ac_cv_header_sys_wait_h=no
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13560 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13561 if test $ac_cv_header_sys_wait_h = yes; then
13563 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13568 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13569 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13570 $as_echo_n "(cached) " >&6
13572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13573 /* end confdefs.h. */
13574 #include <sys/types.h>
13575 #include <termios.h>
13581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13582 $EGREP "yes" >/dev/null 2>&1; then :
13583 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13585 ac_cv_sys_tiocgwinsz_in_termios_h=no
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13591 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13593 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13595 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13596 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13597 $as_echo_n "(cached) " >&6
13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600 /* end confdefs.h. */
13601 #include <sys/types.h>
13602 #include <sys/ioctl.h>
13608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13609 $EGREP "yes" >/dev/null 2>&1; then :
13610 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13612 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13618 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13620 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13622 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13679 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13680 eval as_val=\$$as_ac_Header
13681 if test "x$as_val" = x""yes; then :
13682 cat >>confdefs.h <<_ACEOF
13683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13691 if test "$ac_cv_mingw32" = yes \
13692 -o "$ac_cv_interix" = yes \
13693 -o "$ol_cv_msvc" = yes
13695 for ac_header in winsock.h winsock2.h
13697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13699 eval as_val=\$$as_ac_Header
13700 if test "x$as_val" = x""yes; then :
13701 cat >>confdefs.h <<_ACEOF
13702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13711 for ac_header in resolv.h
13713 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13714 #include <netinet/in.h>
13717 if test "x$ac_cv_header_resolv_h" = x""yes; then :
13718 cat >>confdefs.h <<_ACEOF
13719 #define HAVE_RESOLV_H 1
13727 for ac_header in netinet/tcp.h
13729 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13730 #include <netinet/in.h>
13733 if test "x$ac_cv_header_netinet_tcp_h" = x""yes; then :
13734 cat >>confdefs.h <<_ACEOF
13735 #define HAVE_NETINET_TCP_H 1
13743 for ac_header in sys/ucred.h
13745 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13746 #ifdef HAVE_SYS_PARAM_H
13747 #include <sys/param.h>
13751 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
13752 cat >>confdefs.h <<_ACEOF
13753 #define HAVE_SYS_UCRED_H 1
13762 for ac_func in sigaction sigset
13764 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13765 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13766 eval as_val=\$$as_ac_var
13767 if test "x$as_val" = x""yes; then :
13768 cat >>confdefs.h <<_ACEOF
13769 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13776 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13778 $as_echo_n "checking for sigset in -lV3... " >&6; }
13779 if test "${ac_cv_lib_V3_sigset+set}" = set; then :
13780 $as_echo_n "(cached) " >&6
13782 ac_check_lib_save_LIBS=$LIBS
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 /* Override any GCC internal prototype to avoid an error.
13788 Use char because int might match the return type of a GCC
13789 builtin and then its argument prototype would still apply. */
13802 if ac_fn_c_try_link "$LINENO"; then :
13803 ac_cv_lib_V3_sigset=yes
13805 ac_cv_lib_V3_sigset=no
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13812 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13813 if test "x$ac_cv_lib_V3_sigset" = x""yes; then :
13814 cat >>confdefs.h <<_ACEOF
13815 #define HAVE_LIBV3 1
13824 if test $ol_cv_msvc = yes ; then
13828 if test "$ac_cv_header_winsock_h" = yes; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13830 $as_echo_n "checking for winsock... " >&6; }
13831 if test "${ol_cv_winsock+set}" = set; then :
13832 $as_echo_n "(cached) " >&6
13836 for curlib in none ws2_32 wsock32; do
13837 if test $curlib != none ; then
13838 LIBS="$save_LIBS -l$curlib"
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13842 #include <winsock.h>
13849 select(0,NULL,NULL,NULL,NULL);
13851 gethostname(NULL,0);
13857 if ac_fn_c_try_link "$LINENO"; then :
13858 ol_cv_winsock=$curlib
13862 rm -f core conftest.err conftest.$ac_objext \
13863 conftest$ac_exeext conftest.$ac_ext
13865 test "$ol_cv_winsock" != no && break
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13871 $as_echo "$ol_cv_winsock" >&6; }
13873 if test $ol_cv_winsock != no ; then
13875 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13877 ac_cv_func_socket=yes
13878 ac_cv_func_select=yes
13879 ac_cv_func_closesocket=yes
13880 ac_cv_func_gethostname=yes
13882 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13883 LIBS="$LIBS -l$ol_cv_winsock"
13886 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13888 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13895 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13896 if test "x$ac_cv_func_socket" = x""yes; then :
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13901 $as_echo_n "checking for main in -lsocket... " >&6; }
13902 if test "${ac_cv_lib_socket_main+set}" = set; then :
13903 $as_echo_n "(cached) " >&6
13905 ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lsocket $LIBS"
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13919 if ac_fn_c_try_link "$LINENO"; then :
13920 ac_cv_lib_socket_main=yes
13922 ac_cv_lib_socket_main=no
13924 rm -f core conftest.err conftest.$ac_objext \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13929 $as_echo "$ac_cv_lib_socket_main" >&6; }
13930 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13931 cat >>confdefs.h <<_ACEOF
13932 #define HAVE_LIBSOCKET 1
13935 LIBS="-lsocket $LIBS"
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
13940 $as_echo_n "checking for socket in -lnet... " >&6; }
13941 if test "${ac_cv_lib_net_socket+set}" = set; then :
13942 $as_echo_n "(cached) " >&6
13944 ac_check_lib_save_LIBS=$LIBS
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13964 if ac_fn_c_try_link "$LINENO"; then :
13965 ac_cv_lib_net_socket=yes
13967 ac_cv_lib_net_socket=no
13969 rm -f core conftest.err conftest.$ac_objext \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
13974 $as_echo "$ac_cv_lib_net_socket" >&6; }
13975 if test "x$ac_cv_lib_net_socket" = x""yes; then :
13976 cat >>confdefs.h <<_ACEOF
13977 #define HAVE_LIBNET 1
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
13985 $as_echo_n "checking for main in -lnsl_s... " >&6; }
13986 if test "${ac_cv_lib_nsl_s_main+set}" = set; then :
13987 $as_echo_n "(cached) " >&6
13989 ac_check_lib_save_LIBS=$LIBS
13990 LIBS="-lnsl_s $LIBS"
13991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13992 /* end confdefs.h. */
14003 if ac_fn_c_try_link "$LINENO"; then :
14004 ac_cv_lib_nsl_s_main=yes
14006 ac_cv_lib_nsl_s_main=no
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14013 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14014 if test "x$ac_cv_lib_nsl_s_main" = x""yes; then :
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_LIBNSL_S 1
14019 LIBS="-lnsl_s $LIBS"
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14024 $as_echo_n "checking for main in -lnsl... " >&6; }
14025 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14026 $as_echo_n "(cached) " >&6
14028 ac_check_lib_save_LIBS=$LIBS
14030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14031 /* end confdefs.h. */
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 ac_cv_lib_nsl_main=yes
14045 ac_cv_lib_nsl_main=no
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049 LIBS=$ac_check_lib_save_LIBS
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14052 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14053 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14054 cat >>confdefs.h <<_ACEOF
14055 #define HAVE_LIBNSL 1
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14063 $as_echo_n "checking for socket in -linet... " >&6; }
14064 if test "${ac_cv_lib_inet_socket+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14067 ac_check_lib_save_LIBS=$LIBS
14068 LIBS="-linet $LIBS"
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14087 if ac_fn_c_try_link "$LINENO"; then :
14088 ac_cv_lib_inet_socket=yes
14090 ac_cv_lib_inet_socket=no
14092 rm -f core conftest.err conftest.$ac_objext \
14093 conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14097 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14098 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
14099 cat >>confdefs.h <<_ACEOF
14100 #define HAVE_LIBINET 1
14103 LIBS="-linet $LIBS"
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14108 $as_echo_n "checking for main in -lgen... " >&6; }
14109 if test "${ac_cv_lib_gen_main+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14112 ac_check_lib_save_LIBS=$LIBS
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h. */
14126 if ac_fn_c_try_link "$LINENO"; then :
14127 ac_cv_lib_gen_main=yes
14129 ac_cv_lib_gen_main=no
14131 rm -f core conftest.err conftest.$ac_objext \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14136 $as_echo "$ac_cv_lib_gen_main" >&6; }
14137 if test "x$ac_cv_lib_gen_main" = x""yes; then :
14138 cat >>confdefs.h <<_ACEOF
14139 #define HAVE_LIBGEN 1
14150 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14151 if test "x$ac_cv_func_select" = x""yes; then :
14154 as_fn_error "select() required." "$LINENO" 5
14158 if test "${ac_cv_header_winsock_h}" != yes; then
14159 for ac_header in sys/select.h sys/socket.h
14161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14162 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14163 eval as_val=\$$as_ac_Header
14164 if test "x$as_val" = x""yes; then :
14165 cat >>confdefs.h <<_ACEOF
14166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14174 $as_echo_n "checking types of arguments for select... " >&6; }
14175 if test "${ac_cv_func_select_args+set}" = set; then :
14176 $as_echo_n "(cached) " >&6
14178 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14179 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14180 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14182 /* end confdefs.h. */
14183 $ac_includes_default
14184 #ifdef HAVE_SYS_SELECT_H
14185 # include <sys/select.h>
14187 #ifdef HAVE_SYS_SOCKET_H
14188 # include <sys/socket.h>
14194 extern int select ($ac_arg1,
14195 $ac_arg234, $ac_arg234, $ac_arg234,
14201 if ac_fn_c_try_compile "$LINENO"; then :
14202 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 # Provide a safe default value.
14209 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14213 $as_echo "$ac_cv_func_select_args" >&6; }
14214 ac_save_IFS=$IFS; IFS=','
14215 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14219 cat >>confdefs.h <<_ACEOF
14220 #define SELECT_TYPE_ARG1 $1
14224 cat >>confdefs.h <<_ACEOF
14225 #define SELECT_TYPE_ARG234 ($2)
14229 cat >>confdefs.h <<_ACEOF
14230 #define SELECT_TYPE_ARG5 ($3)
14238 for ac_func in poll
14240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14242 eval as_val=\$$as_ac_var
14243 if test "x$as_val" = x""yes; then :
14244 cat >>confdefs.h <<_ACEOF
14245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14251 if test $ac_cv_func_poll = yes; then
14252 for ac_header in poll.h sys/poll.h
14254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14255 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14256 eval as_val=\$$as_ac_Header
14257 if test "x$as_val" = x""yes; then :
14258 cat >>confdefs.h <<_ACEOF
14259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14268 for ac_header in sys/epoll.h
14270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14271 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14272 eval as_val=\$$as_ac_Header
14273 if test "x$as_val" = x""yes; then :
14274 cat >>confdefs.h <<_ACEOF
14275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14282 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14284 $as_echo_n "checking for epoll system call... " >&6; }
14285 if test "$cross_compiling" = yes; then :
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14287 $as_echo "no" >&6; }
14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14290 /* end confdefs.h. */
14291 int main(int argc, char **argv)
14293 int epfd = epoll_create(256);
14294 exit (epfd == -1 ? 1 : 0);
14297 if ac_fn_c_try_run "$LINENO"; then :
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14299 $as_echo "yes" >&6; }
14301 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14305 $as_echo "no" >&6; }
14307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14308 conftest.$ac_objext conftest.beam conftest.$ac_ext
14313 for ac_header in sys/devpoll.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
14327 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14328 -a "${ac_cv_header_poll_h}" = yes ; \
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14331 $as_echo_n "checking for /dev/poll... " >&6; }
14332 if test "$cross_compiling" = yes; then :
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 int main(int argc, char **argv)
14340 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14341 exit (devpollfd == -1 ? 1 : 0);
14344 if ac_fn_c_try_run "$LINENO"; then :
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14346 $as_echo "yes" >&6; }
14348 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14352 $as_echo "no" >&6; }
14354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14355 conftest.$ac_objext conftest.beam conftest.$ac_ext
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14361 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14362 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14363 $as_echo_n "(cached) " >&6
14366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367 /* end confdefs.h. */
14370 #include <sys/types.h>
14373 #include <stdlib.h>
14378 char *c = (char *) *sys_errlist
14383 if ac_fn_c_try_compile "$LINENO"; then :
14384 ol_cv_dcl_sys_errlist=yes
14385 ol_cv_have_sys_errlist=yes
14387 ol_cv_dcl_sys_errlist=no
14389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14392 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14394 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14395 if test $ol_cv_dcl_sys_errlist = no ; then
14397 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14401 $as_echo_n "checking existence of sys_errlist... " >&6; }
14402 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14403 $as_echo_n "(cached) " >&6
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14412 char *c = (char *) *sys_errlist
14417 if ac_fn_c_try_link "$LINENO"; then :
14418 ol_cv_have_sys_errlist=yes
14420 ol_cv_have_sys_errlist=no
14422 rm -f core conftest.err conftest.$ac_objext \
14423 conftest$ac_exeext conftest.$ac_ext
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14426 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14428 if test $ol_cv_have_sys_errlist = yes ; then
14430 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14433 for ac_func in strerror strerror_r
14435 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14436 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14437 eval as_val=\$$as_ac_var
14438 if test "x$as_val" = x""yes; then :
14439 cat >>confdefs.h <<_ACEOF
14440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14446 ol_cv_func_strerror_r=no
14447 if test "${ac_cv_func_strerror_r}" = yes ; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14449 $as_echo_n "checking non-posix strerror_r... " >&6; }
14450 if test "${ol_cv_nonposix_strerror_r+set}" = set; then :
14451 $as_echo_n "(cached) " >&6
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #include <string.h>
14458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14459 $EGREP "strerror_r" >/dev/null 2>&1; then :
14460 ol_decl_strerror_r=yes
14462 ol_decl_strerror_r=no
14466 if test $ol_decl_strerror_r = yes ; then
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 #include <string.h>
14473 /* from autoconf 2.59 */
14475 char x = *strerror_r (0, buf, sizeof buf);
14476 char *p = strerror_r (0, buf, sizeof buf);
14482 if ac_fn_c_try_compile "$LINENO"; then :
14483 ol_cv_nonposix_strerror_r=yes
14485 ol_cv_nonposix_strerror_r=no
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14489 if test "$cross_compiling" = yes; then :
14490 ol_cv_nonposix_strerror=no
14492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h. */
14498 strerror_r( 1, buf, sizeof buf );
14499 exit( buf[0] == 0 );
14503 if ac_fn_c_try_run "$LINENO"; then :
14504 ol_cv_nonposix_strerror_r=yes
14506 ol_cv_nonposix_strerror=no
14508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14509 conftest.$ac_objext conftest.beam conftest.$ac_ext
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14516 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14517 if test $ol_cv_nonposix_strerror_r = yes ; then
14519 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14523 elif test "${ac_cv_func_strerror}" = no ; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14525 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14526 if test "${ol_cv_dcl_sys_errlist+set}" = set; then :
14527 $as_echo_n "(cached) " >&6
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14534 #include <sys/types.h>
14537 #include <stdlib.h>
14542 char *c = (char *) *sys_errlist
14547 if ac_fn_c_try_compile "$LINENO"; then :
14548 ol_cv_dcl_sys_errlist=yes
14549 ol_cv_have_sys_errlist=yes
14551 ol_cv_dcl_sys_errlist=no
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14556 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14558 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14559 if test $ol_cv_dcl_sys_errlist = no ; then
14561 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14565 $as_echo_n "checking existence of sys_errlist... " >&6; }
14566 if test "${ol_cv_have_sys_errlist+set}" = set; then :
14567 $as_echo_n "(cached) " >&6
14570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14571 /* end confdefs.h. */
14576 char *c = (char *) *sys_errlist
14581 if ac_fn_c_try_link "$LINENO"; then :
14582 ol_cv_have_sys_errlist=yes
14584 ol_cv_have_sys_errlist=no
14586 rm -f core conftest.err conftest.$ac_objext \
14587 conftest$ac_exeext conftest.$ac_ext
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14590 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14592 if test $ol_cv_have_sys_errlist = yes ; then
14594 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14601 for ac_header in regex.h
14603 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14604 #ifdef HAVE_SYS_TYPES_H
14605 #include <sys/types.h>
14609 if test "x$ac_cv_header_regex_h" = x""yes; then :
14610 cat >>confdefs.h <<_ACEOF
14611 #define HAVE_REGEX_H 1
14619 if test "$ac_cv_header_regex_h" != yes ; then
14620 as_fn_error "POSIX regex.h required." "$LINENO" 5
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14623 $as_echo_n "checking for library containing regfree... " >&6; }
14624 if test "${ac_cv_search_regfree+set}" = set; then :
14625 $as_echo_n "(cached) " >&6
14627 ac_func_search_save_LIBS=$LIBS
14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14631 /* Override any GCC internal prototype to avoid an error.
14632 Use char because int might match the return type of a GCC
14633 builtin and then its argument prototype would still apply. */
14646 for ac_lib in '' regex gnuregex; do
14647 if test -z "$ac_lib"; then
14648 ac_res="none required"
14651 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14653 if ac_fn_c_try_link "$LINENO"; then :
14654 ac_cv_search_regfree=$ac_res
14656 rm -f core conftest.err conftest.$ac_objext \
14658 if test "${ac_cv_search_regfree+set}" = set; then :
14662 if test "${ac_cv_search_regfree+set}" = set; then :
14665 ac_cv_search_regfree=no
14667 rm conftest.$ac_ext
14668 LIBS=$ac_func_search_save_LIBS
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14671 $as_echo "$ac_cv_search_regfree" >&6; }
14672 ac_res=$ac_cv_search_regfree
14673 if test "$ac_res" != no; then :
14674 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14677 as_fn_error "POSIX regex required." "$LINENO" 5
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14683 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14684 if test "${ol_cv_c_posix_regex+set}" = set; then :
14685 $as_echo_n "(cached) " >&6
14688 if test "$cross_compiling" = yes; then :
14689 ol_cv_c_posix_regex=cross
14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14694 #include <sys/types.h>
14696 static char *pattern, *string;
14704 if(regcomp(&re, pattern, 0)) {
14708 string = "ALL MATCH";
14710 rc = regexec(&re, string, 0, (void*)0, 0);
14717 if ac_fn_c_try_run "$LINENO"; then :
14718 ol_cv_c_posix_regex=yes
14720 ol_cv_c_posix_regex=no
14722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14723 conftest.$ac_objext conftest.beam conftest.$ac_ext
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14728 $as_echo "$ol_cv_c_posix_regex" >&6; }
14730 if test "$ol_cv_c_posix_regex" = no ; then
14731 as_fn_error "broken POSIX regex!" "$LINENO" 5
14736 for ac_header in sys/uuid.h
14738 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14739 if test "x$ac_cv_header_sys_uuid_h" = x""yes; then :
14740 cat >>confdefs.h <<_ACEOF
14741 #define HAVE_SYS_UUID_H 1
14748 if test $ac_cv_header_sys_uuid_h = yes ; then
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14751 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14752 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14753 $as_echo_n "(cached) " >&6
14755 ac_func_search_save_LIBS=$LIBS
14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14757 /* end confdefs.h. */
14759 /* Override any GCC internal prototype to avoid an error.
14760 Use char because int might match the return type of a GCC
14761 builtin and then its argument prototype would still apply. */
14765 char uuid_to_str ();
14769 return uuid_to_str ();
14774 for ac_lib in '' uuid; do
14775 if test -z "$ac_lib"; then
14776 ac_res="none required"
14779 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14781 if ac_fn_c_try_link "$LINENO"; then :
14782 ac_cv_search_uuid_to_str=$ac_res
14784 rm -f core conftest.err conftest.$ac_objext \
14786 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14790 if test "${ac_cv_search_uuid_to_str+set}" = set; then :
14793 ac_cv_search_uuid_to_str=no
14795 rm conftest.$ac_ext
14796 LIBS=$ac_func_search_save_LIBS
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14799 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14800 ac_res=$ac_cv_search_uuid_to_str
14801 if test "$ac_res" != no; then :
14802 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14809 $as_echo_n "checking for library containing uuid_create... " >&6; }
14810 if test "${ac_cv_search_uuid_create+set}" = set; then :
14811 $as_echo_n "(cached) " >&6
14813 ac_func_search_save_LIBS=$LIBS
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14823 char uuid_create ();
14827 return uuid_create ();
14832 for ac_lib in '' uuid; do
14833 if test -z "$ac_lib"; then
14834 ac_res="none required"
14837 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14839 if ac_fn_c_try_link "$LINENO"; then :
14840 ac_cv_search_uuid_create=$ac_res
14842 rm -f core conftest.err conftest.$ac_objext \
14844 if test "${ac_cv_search_uuid_create+set}" = set; then :
14848 if test "${ac_cv_search_uuid_create+set}" = set; then :
14851 ac_cv_search_uuid_create=no
14853 rm conftest.$ac_ext
14854 LIBS=$ac_func_search_save_LIBS
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14857 $as_echo "$ac_cv_search_uuid_create" >&6; }
14858 ac_res=$ac_cv_search_uuid_create
14859 if test "$ac_res" != no; then :
14860 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14868 if test $have_uuid = yes ; then
14870 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14873 test "$ac_cv_search_uuid_to_str" = "none required" || \
14874 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14878 if test $have_uuid = no ; then
14879 for ac_header in uuid/uuid.h
14881 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14882 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_UUID_UUID_H 1
14891 if test $ac_cv_header_uuid_uuid_h = yes ; then
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14894 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14895 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14896 $as_echo_n "(cached) " >&6
14898 ac_func_search_save_LIBS=$LIBS
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14902 /* Override any GCC internal prototype to avoid an error.
14903 Use char because int might match the return type of a GCC
14904 builtin and then its argument prototype would still apply. */
14908 char uuid_generate ();
14912 return uuid_generate ();
14917 for ac_lib in '' uuid; do
14918 if test -z "$ac_lib"; then
14919 ac_res="none required"
14922 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14924 if ac_fn_c_try_link "$LINENO"; then :
14925 ac_cv_search_uuid_generate=$ac_res
14927 rm -f core conftest.err conftest.$ac_objext \
14929 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14933 if test "${ac_cv_search_uuid_generate+set}" = set; then :
14936 ac_cv_search_uuid_generate=no
14938 rm conftest.$ac_ext
14939 LIBS=$ac_func_search_save_LIBS
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
14942 $as_echo "$ac_cv_search_uuid_generate" >&6; }
14943 ac_res=$ac_cv_search_uuid_generate
14944 if test "$ac_res" != no; then :
14945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
14952 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
14953 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14954 $as_echo_n "(cached) " >&6
14956 ac_func_search_save_LIBS=$LIBS
14957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14958 /* end confdefs.h. */
14960 /* Override any GCC internal prototype to avoid an error.
14961 Use char because int might match the return type of a GCC
14962 builtin and then its argument prototype would still apply. */
14966 char uuid_unparse_lower ();
14970 return uuid_unparse_lower ();
14975 for ac_lib in '' uuid; do
14976 if test -z "$ac_lib"; then
14977 ac_res="none required"
14980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14982 if ac_fn_c_try_link "$LINENO"; then :
14983 ac_cv_search_uuid_unparse_lower=$ac_res
14985 rm -f core conftest.err conftest.$ac_objext \
14987 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14991 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then :
14994 ac_cv_search_uuid_unparse_lower=no
14996 rm conftest.$ac_ext
14997 LIBS=$ac_func_search_save_LIBS
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15000 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15001 ac_res=$ac_cv_search_uuid_unparse_lower
15002 if test "$ac_res" != no; then :
15003 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15011 if test $have_uuid = yes ; then
15013 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15016 test "$ac_cv_search_uuid_generate" = "none required" || \
15017 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15022 if test $have_uuid = no ; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15024 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15026 LIBS="$LIBS -lrpcrt4"
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15030 int __stdcall UuidCreate(void *);
15031 int __stdcall UuidToStringA(void *,void **);
15038 UuidToStringA(0,0);
15044 if ac_fn_c_try_link "$LINENO"; then :
15049 rm -f core conftest.err conftest.$ac_objext \
15050 conftest$ac_exeext conftest.$ac_ext
15051 if test $need_rpcrt = yes; then
15052 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15056 $as_echo "$need_rpcrt" >&6; }
15059 ol_cv_lib_resolver=no
15060 if test $ol_cv_lib_resolver = no ; then
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15062 $as_echo_n "checking for resolver link (default)... " >&6; }
15063 if test "${ol_cv_resolver_none+set}" = set; then :
15064 $as_echo_n "(cached) " >&6
15069 LIBS="$ol_RESOLVER_LIB $LIBS"
15071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15072 /* end confdefs.h. */
15074 #ifdef HAVE_SYS_TYPES_H
15075 # include <sys/types.h>
15077 #include <netinet/in.h>
15078 #ifdef HAVE_ARPA_NAMESER_H
15079 # include <arpa/nameser.h>
15081 #ifdef HAVE_RESOLV_H
15082 # include <resolv.h>
15090 char *request = NULL;
15091 unsigned char reply[64*1024];
15092 unsigned char host[64*1024];
15096 /* Bind 8/9 interface */
15097 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15099 /* Bind 4 interface */
15103 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15107 /* Bind 8/9 interface */
15109 #elif defined(HFIXEDSZ)
15110 /* Bind 4 interface w/ HFIXEDSZ */
15113 /* Bind 4 interface w/o HFIXEDSZ */
15114 p += sizeof(HEADER);
15116 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15122 if ac_fn_c_try_link "$LINENO"; then :
15123 ol_cv_resolver_none=yes
15125 ol_cv_resolver_none=no
15127 rm -f core conftest.err conftest.$ac_objext \
15128 conftest$ac_exeext conftest.$ac_ext
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15134 $as_echo "$ol_cv_resolver_none" >&6; }
15136 if test $ol_cv_resolver_none = yes ; then
15137 ol_cv_lib_resolver=yes
15141 if test $ol_cv_lib_resolver = no ; then
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15143 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15144 if test "${ol_cv_resolver_resolv+set}" = set; then :
15145 $as_echo_n "(cached) " >&6
15148 ol_RESOLVER_LIB=-lresolv
15150 LIBS="$ol_RESOLVER_LIB $LIBS"
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15155 #ifdef HAVE_SYS_TYPES_H
15156 # include <sys/types.h>
15158 #include <netinet/in.h>
15159 #ifdef HAVE_ARPA_NAMESER_H
15160 # include <arpa/nameser.h>
15162 #ifdef HAVE_RESOLV_H
15163 # include <resolv.h>
15171 char *request = NULL;
15172 unsigned char reply[64*1024];
15173 unsigned char host[64*1024];
15177 /* Bind 8/9 interface */
15178 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15180 /* Bind 4 interface */
15184 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15188 /* Bind 8/9 interface */
15190 #elif defined(HFIXEDSZ)
15191 /* Bind 4 interface w/ HFIXEDSZ */
15194 /* Bind 4 interface w/o HFIXEDSZ */
15195 p += sizeof(HEADER);
15197 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15203 if ac_fn_c_try_link "$LINENO"; then :
15204 ol_cv_resolver_resolv=yes
15206 ol_cv_resolver_resolv=no
15208 rm -f core conftest.err conftest.$ac_objext \
15209 conftest$ac_exeext conftest.$ac_ext
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15215 $as_echo "$ol_cv_resolver_resolv" >&6; }
15217 if test $ol_cv_resolver_resolv = yes ; then
15218 ol_cv_lib_resolver=-lresolv
15222 if test $ol_cv_lib_resolver = no ; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15224 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15225 if test "${ol_cv_resolver_bind+set}" = set; then :
15226 $as_echo_n "(cached) " >&6
15229 ol_RESOLVER_LIB=-lbind
15231 LIBS="$ol_RESOLVER_LIB $LIBS"
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15236 #ifdef HAVE_SYS_TYPES_H
15237 # include <sys/types.h>
15239 #include <netinet/in.h>
15240 #ifdef HAVE_ARPA_NAMESER_H
15241 # include <arpa/nameser.h>
15243 #ifdef HAVE_RESOLV_H
15244 # include <resolv.h>
15252 char *request = NULL;
15253 unsigned char reply[64*1024];
15254 unsigned char host[64*1024];
15258 /* Bind 8/9 interface */
15259 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15261 /* Bind 4 interface */
15265 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15269 /* Bind 8/9 interface */
15271 #elif defined(HFIXEDSZ)
15272 /* Bind 4 interface w/ HFIXEDSZ */
15275 /* Bind 4 interface w/o HFIXEDSZ */
15276 p += sizeof(HEADER);
15278 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15284 if ac_fn_c_try_link "$LINENO"; then :
15285 ol_cv_resolver_bind=yes
15287 ol_cv_resolver_bind=no
15289 rm -f core conftest.err conftest.$ac_objext \
15290 conftest$ac_exeext conftest.$ac_ext
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15296 $as_echo "$ol_cv_resolver_bind" >&6; }
15298 if test $ol_cv_resolver_bind = yes ; then
15299 ol_cv_lib_resolver=-lbind
15306 if test "$ol_cv_lib_resolver" != no ; then
15308 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15311 if test "$ol_enable_dnssrv" != no ; then
15315 if test "$ol_cv_lib_resolver" != yes ; then
15316 LIBS="$ol_cv_lib_resolver $LIBS"
15320 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15321 if test "$ol_link_dnssrv" = no ; then
15322 as_fn_error "DNSSRV requires res_query()" "$LINENO" 5
15325 ol_enable_dnssrv=no
15328 for ac_func in hstrerror
15330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15332 eval as_val=\$$as_ac_var
15333 if test "x$as_val" = x""yes; then :
15334 cat >>confdefs.h <<_ACEOF
15335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15342 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15344 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15345 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15346 eval as_val=\$$as_ac_var
15347 if test "x$as_val" = x""yes; then :
15348 cat >>confdefs.h <<_ACEOF
15349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15357 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
15358 if test $ol_enable_ipv6 = yes ; then
15359 as_fn_error "IPv6 support requires getaddrinfo() and inet_ntop()" "$LINENO" 5
15361 elif test $ol_enable_ipv6 != no ; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking INET6_ADDRSTRLEN" >&5
15363 $as_echo_n "checking INET6_ADDRSTRLEN... " >&6; }
15364 if test "${ol_cv_inet6_addrstrlen+set}" = set; then :
15365 $as_echo_n "(cached) " >&6
15368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369 /* end confdefs.h. */
15371 # include <netinet/in.h>
15372 # ifdef INET6_ADDRSTRLEN
15373 __has_inet6_addrstrlen__;
15377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15378 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then :
15379 ol_cv_inet6_addrstrlen=yes
15381 ol_cv_inet6_addrstrlen=no
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_inet6_addrstrlen" >&5
15387 $as_echo "$ol_cv_inet6_addrstrlen" >&6; }
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sockaddr_storage" >&5
15391 $as_echo_n "checking struct sockaddr_storage... " >&6; }
15392 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then :
15393 $as_echo_n "(cached) " >&6
15396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15397 /* end confdefs.h. */
15399 #include <sys/types.h>
15400 #include <sys/socket.h>
15406 struct sockaddr_storage ss;
15412 if ac_fn_c_try_compile "$LINENO"; then :
15413 ol_cv_struct_sockaddr_storage=yes
15415 ol_cv_struct_sockaddr_storage=no
15417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_struct_sockaddr_storage" >&5
15420 $as_echo "$ol_cv_struct_sockaddr_storage" >&6; }
15422 if test $ol_cv_inet6_addrstrlen = yes &&
15423 test $ol_cv_struct_sockaddr_storage = yes ; then
15425 elif test $ol_enable_ipv6 = yes &&
15426 test $ol_cv_inet6_addrstrlen = no ; then
15427 as_fn_error "IPv6 support requires INET6_ADDRSTRLEN" "$LINENO" 5
15428 elif test $ol_enable_ipv6 = yes &&
15429 test $ol_cv_struct_sockaddr_storage = no ; then
15430 as_fn_error "IPv6 support requires struct sockaddr_storage" "$LINENO" 5
15434 if test $ol_enable_local != no ; then
15435 for ac_header in sys/un.h
15437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15438 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15439 eval as_val=\$$as_ac_Header
15440 if test "x$as_val" = x""yes; then :
15441 cat >>confdefs.h <<_ACEOF
15442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15450 if test $ol_enable_local = auto ; then
15451 ol_enable_local=$ac_cv_header_sys_un_h
15452 elif test $ac_cv_header_sys_un_h = no ; then
15453 as_fn_error "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15458 if test $ol_with_tls = yes ; then
15463 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15464 for ac_header in openssl/ssl.h
15466 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15467 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
15468 cat >>confdefs.h <<_ACEOF
15469 #define HAVE_OPENSSL_SSL_H 1
15477 if test $ac_cv_header_openssl_ssl_h = yes ; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_CTX_set_msg_callback in -lssl" >&5
15479 $as_echo_n "checking for SSL_CTX_set_msg_callback in -lssl... " >&6; }
15480 if test "${ac_cv_lib_ssl_SSL_CTX_set_msg_callback+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15483 ac_check_lib_save_LIBS=$LIBS
15484 LIBS="-lssl -lcrypto $LIBS"
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15488 /* Override any GCC internal prototype to avoid an error.
15489 Use char because int might match the return type of a GCC
15490 builtin and then its argument prototype would still apply. */
15494 char SSL_CTX_set_msg_callback ();
15498 return SSL_CTX_set_msg_callback ();
15503 if ac_fn_c_try_link "$LINENO"; then :
15504 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=yes
15506 ac_cv_lib_ssl_SSL_CTX_set_msg_callback=no
15508 rm -f core conftest.err conftest.$ac_objext \
15509 conftest$ac_exeext conftest.$ac_ext
15510 LIBS=$ac_check_lib_save_LIBS
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&5
15513 $as_echo "$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" >&6; }
15514 if test "x$ac_cv_lib_ssl_SSL_CTX_set_msg_callback" = x""yes; then :
15522 if test $have_openssl = no ; then
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15524 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15525 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then :
15526 $as_echo_n "(cached) " >&6
15528 ac_check_lib_save_LIBS=$LIBS
15529 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15531 /* end confdefs.h. */
15533 /* Override any GCC internal prototype to avoid an error.
15534 Use char because int might match the return type of a GCC
15535 builtin and then its argument prototype would still apply. */
15539 char ssl3_accept ();
15543 return ssl3_accept ();
15548 if ac_fn_c_try_link "$LINENO"; then :
15549 ac_cv_lib_ssl_ssl3_accept=yes
15551 ac_cv_lib_ssl_ssl3_accept=no
15553 rm -f core conftest.err conftest.$ac_objext \
15554 conftest$ac_exeext conftest.$ac_ext
15555 LIBS=$ac_check_lib_save_LIBS
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15558 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15559 if test "x$ac_cv_lib_ssl_ssl3_accept" = x""yes; then :
15568 if test $have_openssl = yes ; then
15569 ol_with_tls=openssl
15573 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15576 if test $need_rsaref = yes; then
15578 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15581 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15583 TLS_LIBS="-lssl -lcrypto"
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15587 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15588 if test "${ol_cv_ssl_crl_compat+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15595 #ifdef HAVE_OPENSSL_SSL_H
15596 #include <openssl/ssl.h>
15599 /* Require 0.9.7d+ */
15600 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15601 char *__ssl_compat = "0.9.7d";
15605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15606 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15607 ol_cv_ssl_crl_compat=yes
15609 ol_cv_ssl_crl_compat=no
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15615 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15617 if test $ol_cv_ssl_crl_compat = yes ; then
15619 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15626 if test $ol_link_tls = no ; then
15627 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15628 for ac_header in gnutls/gnutls.h
15630 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15631 if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
15632 cat >>confdefs.h <<_ACEOF
15633 #define HAVE_GNUTLS_GNUTLS_H 1
15641 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 #include <gnutls/gnutls.h>
15645 #if GNUTLS_VERSION_NUMBER < 0x020c00
15646 #error "GnuTLS 2.12.0 or newer required"
15649 if ac_fn_c_try_cpp "$LINENO"; then :
15652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15654 as_fn_error "GnuTLS is too old
15655 See \`config.log' for more details." "$LINENO" 5; }
15657 rm -f conftest.err conftest.$ac_ext
15659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15660 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15661 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then :
15662 $as_echo_n "(cached) " >&6
15664 ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lgnutls $LIBS"
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15669 /* Override any GCC internal prototype to avoid an error.
15670 Use char because int might match the return type of a GCC
15671 builtin and then its argument prototype would still apply. */
15675 char gnutls_init ();
15679 return gnutls_init ();
15684 if ac_fn_c_try_link "$LINENO"; then :
15685 ac_cv_lib_gnutls_gnutls_init=yes
15687 ac_cv_lib_gnutls_gnutls_init=no
15689 rm -f core conftest.err conftest.$ac_objext \
15690 conftest$ac_exeext conftest.$ac_ext
15691 LIBS=$ac_check_lib_save_LIBS
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15694 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15695 if test "x$ac_cv_lib_gnutls_gnutls_init" = x""yes; then :
15702 if test $have_gnutls = yes ; then
15706 TLS_LIBS="-lgnutls"
15709 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15716 if test $ol_link_tls = no ; then
15717 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15719 for ac_header in nssutil.h
15721 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15722 if test "x$ac_cv_header_nssutil_h" = x""yes; then :
15723 cat >>confdefs.h <<_ACEOF
15724 #define HAVE_NSSUTIL_H 1
15731 if test "$ac_cv_header_nssutil_h" = yes ; then
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15733 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15734 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15737 ac_check_lib_save_LIBS=$LIBS
15738 LIBS="-lnss3 $LIBS"
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15742 /* Override any GCC internal prototype to avoid an error.
15743 Use char because int might match the return type of a GCC
15744 builtin and then its argument prototype would still apply. */
15748 char NSS_Initialize ();
15752 return NSS_Initialize ();
15757 if ac_fn_c_try_link "$LINENO"; then :
15758 ac_cv_lib_nss3_NSS_Initialize=yes
15760 ac_cv_lib_nss3_NSS_Initialize=no
15762 rm -f core conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15764 LIBS=$ac_check_lib_save_LIBS
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15767 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15768 if test "x$ac_cv_lib_nss3_NSS_Initialize" = x""yes; then :
15776 if test "$have_moznss" = yes ; then
15780 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15782 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15784 if test $ol_with_tls = moznss ; then
15785 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
15792 if test $ol_link_tls = yes ; then
15794 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15797 elif test $ol_with_tls = auto ; then
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15799 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15801 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15802 elif test $ol_with_tls != no ; then
15803 as_fn_error "Could not locate TLS/SSL package" "$LINENO" 5
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15806 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15809 if test $ol_enable_lmpasswd != no; then
15810 if test $ol_link_tls != yes ; then
15811 as_fn_error "LAN Manager passwords require OpenSSL" "$LINENO" 5
15815 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15821 case $ol_with_threads in auto | yes | nt)
15824 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15825 if test "x$ac_cv_func__beginthread" = x""yes; then :
15830 if test $ac_cv_func__beginthread = yes ; then
15832 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15834 ol_cv_nt_threads=yes
15838 if test "$ol_cv_nt_threads" = yes ; then
15840 ol_with_threads=found
15841 ol_with_yielding_select=yes
15844 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15847 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15851 if test $ol_with_threads = nt ; then
15852 as_fn_error "could not locate NT Threads" "$LINENO" 5
15857 case $ol_with_threads in auto | yes | posix)
15859 for ac_header in pthread.h
15861 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15862 if test "x$ac_cv_header_pthread_h" = x""yes; then :
15863 cat >>confdefs.h <<_ACEOF
15864 #define HAVE_PTHREAD_H 1
15872 if test $ac_cv_header_pthread_h = yes ; then
15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15874 $as_echo_n "checking POSIX thread version... " >&6; }
15875 if test "${ol_cv_pthread_version+set}" = set; then :
15876 $as_echo_n "(cached) " >&6
15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15880 /* end confdefs.h. */
15882 # include <pthread.h>
15888 int i = PTHREAD_CREATE_JOINABLE;
15894 if ac_fn_c_try_compile "$LINENO"; then :
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 #include <pthread.h>
15901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15902 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15903 ol_cv_pthread_version=10
15905 ol_cv_pthread_version=8
15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15912 /* end confdefs.h. */
15914 # include <pthread.h>
15915 # ifdef PTHREAD_CREATE_UNDETACHED
15920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15921 $EGREP "draft7" >/dev/null 2>&1; then :
15922 ol_cv_pthread_version=7
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15927 #include <pthread.h>
15930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15931 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15932 ol_cv_pthread_version=6
15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15936 /* end confdefs.h. */
15938 # include <pthread.h>
15939 #ifdef PTHREAD_MUTEX_INITIALIZER
15944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15945 $EGREP "draft5" >/dev/null 2>&1; then :
15946 ol_cv_pthread_version=5
15948 ol_cv_pthread_version=4
15959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15963 $as_echo "$ol_cv_pthread_version" >&6; }
15966 if test $ol_cv_pthread_version != 0 ; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_PTHREADS $ol_cv_pthread_version
15973 as_fn_error "unknown pthread version" "$LINENO" 5
15976 # consider threads found
15977 ol_with_threads=found
15980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15981 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15982 if test "${ol_cv_header_linux_threads+set}" = set; then :
15983 $as_echo_n "(cached) " >&6
15985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15986 /* end confdefs.h. */
15987 #include <pthread.h>
15989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15990 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15991 ol_cv_header_linux_threads=yes
15993 ol_cv_header_linux_threads=no
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
16000 $as_echo "$ol_cv_header_linux_threads" >&6; }
16001 if test $ol_cv_header_linux_threads = yes; then
16003 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
16009 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
16010 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then :
16011 $as_echo_n "(cached) " >&6
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #include <pthread.h>
16016 #ifdef _POSIX_THREAD_IS_GNU_PTH
16021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16022 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16023 ol_cv_header_gnu_pth_pthread_h=yes
16025 ol_cv_header_gnu_pth_pthread_h=no
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16032 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16035 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16036 for ac_header in sched.h
16038 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16039 if test "x$ac_cv_header_sched_h" = x""yes; then :
16040 cat >>confdefs.h <<_ACEOF
16041 #define HAVE_SCHED_H 1
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16052 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16053 if test "${ol_cv_pthread_create+set}" = set; then :
16054 $as_echo_n "(cached) " >&6
16057 if test "$cross_compiling" = yes; then :
16058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16059 /* end confdefs.h. */
16061 /* pthread test headers */
16062 #include <pthread.h>
16063 #if HAVE_PTHREADS < 7
16067 #define NULL (void*)0
16070 static void *task(p)
16073 return (void *) (p == NULL);
16080 /* pthread test function */
16081 #ifndef PTHREAD_CREATE_DETACHED
16082 #define PTHREAD_CREATE_DETACHED 1
16086 int detach = PTHREAD_CREATE_DETACHED;
16088 #if HAVE_PTHREADS > 4
16089 /* Final pthreads */
16090 pthread_attr_t attr;
16092 status = pthread_attr_init(&attr);
16093 if( status ) return status;
16095 #if HAVE_PTHREADS < 7
16096 status = pthread_attr_setdetachstate(&attr, &detach);
16097 if( status < 0 ) status = errno;
16099 status = pthread_attr_setdetachstate(&attr, detach);
16101 if( status ) return status;
16102 status = pthread_create( &t, &attr, task, NULL );
16103 #if HAVE_PTHREADS < 7
16104 if( status < 0 ) status = errno;
16106 if( status ) return status;
16108 /* Draft 4 pthreads */
16109 status = pthread_create( &t, pthread_attr_default, task, NULL );
16110 if( status ) return errno;
16112 /* give thread a chance to complete */
16113 /* it should remain joinable and hence detachable */
16116 status = pthread_detach( &t );
16117 if( status ) return errno;
16120 #ifdef HAVE_LINUX_THREADS
16121 pthread_kill_other_threads_np();
16130 if ac_fn_c_try_link "$LINENO"; then :
16131 ol_cv_pthread_create=yes
16133 ol_cv_pthread_create=no
16135 rm -f core conftest.err conftest.$ac_objext \
16136 conftest$ac_exeext conftest.$ac_ext
16138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16139 /* end confdefs.h. */
16141 /* pthread test headers */
16142 #include <pthread.h>
16143 #if HAVE_PTHREADS < 7
16147 #define NULL (void*)0
16150 static void *task(p)
16153 return (void *) (p == NULL);
16157 int main(argc, argv)
16162 /* pthread test function */
16163 #ifndef PTHREAD_CREATE_DETACHED
16164 #define PTHREAD_CREATE_DETACHED 1
16168 int detach = PTHREAD_CREATE_DETACHED;
16170 #if HAVE_PTHREADS > 4
16171 /* Final pthreads */
16172 pthread_attr_t attr;
16174 status = pthread_attr_init(&attr);
16175 if( status ) return status;
16177 #if HAVE_PTHREADS < 7
16178 status = pthread_attr_setdetachstate(&attr, &detach);
16179 if( status < 0 ) status = errno;
16181 status = pthread_attr_setdetachstate(&attr, detach);
16183 if( status ) return status;
16184 status = pthread_create( &t, &attr, task, NULL );
16185 #if HAVE_PTHREADS < 7
16186 if( status < 0 ) status = errno;
16188 if( status ) return status;
16190 /* Draft 4 pthreads */
16191 status = pthread_create( &t, pthread_attr_default, task, NULL );
16192 if( status ) return errno;
16194 /* give thread a chance to complete */
16195 /* it should remain joinable and hence detachable */
16198 status = pthread_detach( &t );
16199 if( status ) return errno;
16202 #ifdef HAVE_LINUX_THREADS
16203 pthread_kill_other_threads_np();
16211 if ac_fn_c_try_run "$LINENO"; then :
16212 ol_cv_pthread_create=yes
16214 ol_cv_pthread_create=no
16216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16217 conftest.$ac_objext conftest.beam conftest.$ac_ext
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16222 $as_echo "$ol_cv_pthread_create" >&6; }
16224 if test $ol_cv_pthread_create != no ; then
16225 ol_link_threads=posix
16226 ol_link_pthreads=""
16229 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16230 if test "$ol_link_threads" = no ; then
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16233 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16234 if test "${ol_cv_pthread_kthread+set}" = set; then :
16235 $as_echo_n "(cached) " >&6
16240 LIBS="-kthread $LIBS"
16242 if test "$cross_compiling" = yes; then :
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16246 /* pthread test headers */
16247 #include <pthread.h>
16248 #if HAVE_PTHREADS < 7
16252 #define NULL (void*)0
16255 static void *task(p)
16258 return (void *) (p == NULL);
16265 /* pthread test function */
16266 #ifndef PTHREAD_CREATE_DETACHED
16267 #define PTHREAD_CREATE_DETACHED 1
16271 int detach = PTHREAD_CREATE_DETACHED;
16273 #if HAVE_PTHREADS > 4
16274 /* Final pthreads */
16275 pthread_attr_t attr;
16277 status = pthread_attr_init(&attr);
16278 if( status ) return status;
16280 #if HAVE_PTHREADS < 7
16281 status = pthread_attr_setdetachstate(&attr, &detach);
16282 if( status < 0 ) status = errno;
16284 status = pthread_attr_setdetachstate(&attr, detach);
16286 if( status ) return status;
16287 status = pthread_create( &t, &attr, task, NULL );
16288 #if HAVE_PTHREADS < 7
16289 if( status < 0 ) status = errno;
16291 if( status ) return status;
16293 /* Draft 4 pthreads */
16294 status = pthread_create( &t, pthread_attr_default, task, NULL );
16295 if( status ) return errno;
16297 /* give thread a chance to complete */
16298 /* it should remain joinable and hence detachable */
16301 status = pthread_detach( &t );
16302 if( status ) return errno;
16305 #ifdef HAVE_LINUX_THREADS
16306 pthread_kill_other_threads_np();
16315 if ac_fn_c_try_link "$LINENO"; then :
16316 ol_cv_pthread_kthread=yes
16318 ol_cv_pthread_kthread=no
16320 rm -f core conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h. */
16326 /* pthread test headers */
16327 #include <pthread.h>
16328 #if HAVE_PTHREADS < 7
16332 #define NULL (void*)0
16335 static void *task(p)
16338 return (void *) (p == NULL);
16342 int main(argc, argv)
16347 /* pthread test function */
16348 #ifndef PTHREAD_CREATE_DETACHED
16349 #define PTHREAD_CREATE_DETACHED 1
16353 int detach = PTHREAD_CREATE_DETACHED;
16355 #if HAVE_PTHREADS > 4
16356 /* Final pthreads */
16357 pthread_attr_t attr;
16359 status = pthread_attr_init(&attr);
16360 if( status ) return status;
16362 #if HAVE_PTHREADS < 7
16363 status = pthread_attr_setdetachstate(&attr, &detach);
16364 if( status < 0 ) status = errno;
16366 status = pthread_attr_setdetachstate(&attr, detach);
16368 if( status ) return status;
16369 status = pthread_create( &t, &attr, task, NULL );
16370 #if HAVE_PTHREADS < 7
16371 if( status < 0 ) status = errno;
16373 if( status ) return status;
16375 /* Draft 4 pthreads */
16376 status = pthread_create( &t, pthread_attr_default, task, NULL );
16377 if( status ) return errno;
16379 /* give thread a chance to complete */
16380 /* it should remain joinable and hence detachable */
16383 status = pthread_detach( &t );
16384 if( status ) return errno;
16387 #ifdef HAVE_LINUX_THREADS
16388 pthread_kill_other_threads_np();
16396 if ac_fn_c_try_run "$LINENO"; then :
16397 ol_cv_pthread_kthread=yes
16399 ol_cv_pthread_kthread=no
16401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16402 conftest.$ac_objext conftest.beam conftest.$ac_ext
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16411 $as_echo "$ol_cv_pthread_kthread" >&6; }
16413 if test $ol_cv_pthread_kthread = yes ; then
16414 ol_link_pthreads="-kthread"
16415 ol_link_threads=posix
16419 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16420 if test "$ol_link_threads" = no ; then
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16423 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16424 if test "${ol_cv_pthread_pthread+set}" = set; then :
16425 $as_echo_n "(cached) " >&6
16430 LIBS="-pthread $LIBS"
16432 if test "$cross_compiling" = yes; then :
16433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16434 /* end confdefs.h. */
16436 /* pthread test headers */
16437 #include <pthread.h>
16438 #if HAVE_PTHREADS < 7
16442 #define NULL (void*)0
16445 static void *task(p)
16448 return (void *) (p == NULL);
16455 /* pthread test function */
16456 #ifndef PTHREAD_CREATE_DETACHED
16457 #define PTHREAD_CREATE_DETACHED 1
16461 int detach = PTHREAD_CREATE_DETACHED;
16463 #if HAVE_PTHREADS > 4
16464 /* Final pthreads */
16465 pthread_attr_t attr;
16467 status = pthread_attr_init(&attr);
16468 if( status ) return status;
16470 #if HAVE_PTHREADS < 7
16471 status = pthread_attr_setdetachstate(&attr, &detach);
16472 if( status < 0 ) status = errno;
16474 status = pthread_attr_setdetachstate(&attr, detach);
16476 if( status ) return status;
16477 status = pthread_create( &t, &attr, task, NULL );
16478 #if HAVE_PTHREADS < 7
16479 if( status < 0 ) status = errno;
16481 if( status ) return status;
16483 /* Draft 4 pthreads */
16484 status = pthread_create( &t, pthread_attr_default, task, NULL );
16485 if( status ) return errno;
16487 /* give thread a chance to complete */
16488 /* it should remain joinable and hence detachable */
16491 status = pthread_detach( &t );
16492 if( status ) return errno;
16495 #ifdef HAVE_LINUX_THREADS
16496 pthread_kill_other_threads_np();
16505 if ac_fn_c_try_link "$LINENO"; then :
16506 ol_cv_pthread_pthread=yes
16508 ol_cv_pthread_pthread=no
16510 rm -f core conftest.err conftest.$ac_objext \
16511 conftest$ac_exeext conftest.$ac_ext
16513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16514 /* end confdefs.h. */
16516 /* pthread test headers */
16517 #include <pthread.h>
16518 #if HAVE_PTHREADS < 7
16522 #define NULL (void*)0
16525 static void *task(p)
16528 return (void *) (p == NULL);
16532 int main(argc, argv)
16537 /* pthread test function */
16538 #ifndef PTHREAD_CREATE_DETACHED
16539 #define PTHREAD_CREATE_DETACHED 1
16543 int detach = PTHREAD_CREATE_DETACHED;
16545 #if HAVE_PTHREADS > 4
16546 /* Final pthreads */
16547 pthread_attr_t attr;
16549 status = pthread_attr_init(&attr);
16550 if( status ) return status;
16552 #if HAVE_PTHREADS < 7
16553 status = pthread_attr_setdetachstate(&attr, &detach);
16554 if( status < 0 ) status = errno;
16556 status = pthread_attr_setdetachstate(&attr, detach);
16558 if( status ) return status;
16559 status = pthread_create( &t, &attr, task, NULL );
16560 #if HAVE_PTHREADS < 7
16561 if( status < 0 ) status = errno;
16563 if( status ) return status;
16565 /* Draft 4 pthreads */
16566 status = pthread_create( &t, pthread_attr_default, task, NULL );
16567 if( status ) return errno;
16569 /* give thread a chance to complete */
16570 /* it should remain joinable and hence detachable */
16573 status = pthread_detach( &t );
16574 if( status ) return errno;
16577 #ifdef HAVE_LINUX_THREADS
16578 pthread_kill_other_threads_np();
16586 if ac_fn_c_try_run "$LINENO"; then :
16587 ol_cv_pthread_pthread=yes
16589 ol_cv_pthread_pthread=no
16591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16592 conftest.$ac_objext conftest.beam conftest.$ac_ext
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16601 $as_echo "$ol_cv_pthread_pthread" >&6; }
16603 if test $ol_cv_pthread_pthread = yes ; then
16604 ol_link_pthreads="-pthread"
16605 ol_link_threads=posix
16609 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16610 if test "$ol_link_threads" = no ; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16613 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16614 if test "${ol_cv_pthread_pthreads+set}" = set; then :
16615 $as_echo_n "(cached) " >&6
16620 LIBS="-pthreads $LIBS"
16622 if test "$cross_compiling" = yes; then :
16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16624 /* end confdefs.h. */
16626 /* pthread test headers */
16627 #include <pthread.h>
16628 #if HAVE_PTHREADS < 7
16632 #define NULL (void*)0
16635 static void *task(p)
16638 return (void *) (p == NULL);
16645 /* pthread test function */
16646 #ifndef PTHREAD_CREATE_DETACHED
16647 #define PTHREAD_CREATE_DETACHED 1
16651 int detach = PTHREAD_CREATE_DETACHED;
16653 #if HAVE_PTHREADS > 4
16654 /* Final pthreads */
16655 pthread_attr_t attr;
16657 status = pthread_attr_init(&attr);
16658 if( status ) return status;
16660 #if HAVE_PTHREADS < 7
16661 status = pthread_attr_setdetachstate(&attr, &detach);
16662 if( status < 0 ) status = errno;
16664 status = pthread_attr_setdetachstate(&attr, detach);
16666 if( status ) return status;
16667 status = pthread_create( &t, &attr, task, NULL );
16668 #if HAVE_PTHREADS < 7
16669 if( status < 0 ) status = errno;
16671 if( status ) return status;
16673 /* Draft 4 pthreads */
16674 status = pthread_create( &t, pthread_attr_default, task, NULL );
16675 if( status ) return errno;
16677 /* give thread a chance to complete */
16678 /* it should remain joinable and hence detachable */
16681 status = pthread_detach( &t );
16682 if( status ) return errno;
16685 #ifdef HAVE_LINUX_THREADS
16686 pthread_kill_other_threads_np();
16695 if ac_fn_c_try_link "$LINENO"; then :
16696 ol_cv_pthread_pthreads=yes
16698 ol_cv_pthread_pthreads=no
16700 rm -f core conftest.err conftest.$ac_objext \
16701 conftest$ac_exeext conftest.$ac_ext
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16706 /* pthread test headers */
16707 #include <pthread.h>
16708 #if HAVE_PTHREADS < 7
16712 #define NULL (void*)0
16715 static void *task(p)
16718 return (void *) (p == NULL);
16722 int main(argc, argv)
16727 /* pthread test function */
16728 #ifndef PTHREAD_CREATE_DETACHED
16729 #define PTHREAD_CREATE_DETACHED 1
16733 int detach = PTHREAD_CREATE_DETACHED;
16735 #if HAVE_PTHREADS > 4
16736 /* Final pthreads */
16737 pthread_attr_t attr;
16739 status = pthread_attr_init(&attr);
16740 if( status ) return status;
16742 #if HAVE_PTHREADS < 7
16743 status = pthread_attr_setdetachstate(&attr, &detach);
16744 if( status < 0 ) status = errno;
16746 status = pthread_attr_setdetachstate(&attr, detach);
16748 if( status ) return status;
16749 status = pthread_create( &t, &attr, task, NULL );
16750 #if HAVE_PTHREADS < 7
16751 if( status < 0 ) status = errno;
16753 if( status ) return status;
16755 /* Draft 4 pthreads */
16756 status = pthread_create( &t, pthread_attr_default, task, NULL );
16757 if( status ) return errno;
16759 /* give thread a chance to complete */
16760 /* it should remain joinable and hence detachable */
16763 status = pthread_detach( &t );
16764 if( status ) return errno;
16767 #ifdef HAVE_LINUX_THREADS
16768 pthread_kill_other_threads_np();
16776 if ac_fn_c_try_run "$LINENO"; then :
16777 ol_cv_pthread_pthreads=yes
16779 ol_cv_pthread_pthreads=no
16781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16782 conftest.$ac_objext conftest.beam conftest.$ac_ext
16790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16791 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16793 if test $ol_cv_pthread_pthreads = yes ; then
16794 ol_link_pthreads="-pthreads"
16795 ol_link_threads=posix
16799 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16800 if test "$ol_link_threads" = no ; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16803 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16804 if test "${ol_cv_pthread_mthreads+set}" = set; then :
16805 $as_echo_n "(cached) " >&6
16810 LIBS="-mthreads $LIBS"
16812 if test "$cross_compiling" = yes; then :
16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16814 /* end confdefs.h. */
16816 /* pthread test headers */
16817 #include <pthread.h>
16818 #if HAVE_PTHREADS < 7
16822 #define NULL (void*)0
16825 static void *task(p)
16828 return (void *) (p == NULL);
16835 /* pthread test function */
16836 #ifndef PTHREAD_CREATE_DETACHED
16837 #define PTHREAD_CREATE_DETACHED 1
16841 int detach = PTHREAD_CREATE_DETACHED;
16843 #if HAVE_PTHREADS > 4
16844 /* Final pthreads */
16845 pthread_attr_t attr;
16847 status = pthread_attr_init(&attr);
16848 if( status ) return status;
16850 #if HAVE_PTHREADS < 7
16851 status = pthread_attr_setdetachstate(&attr, &detach);
16852 if( status < 0 ) status = errno;
16854 status = pthread_attr_setdetachstate(&attr, detach);
16856 if( status ) return status;
16857 status = pthread_create( &t, &attr, task, NULL );
16858 #if HAVE_PTHREADS < 7
16859 if( status < 0 ) status = errno;
16861 if( status ) return status;
16863 /* Draft 4 pthreads */
16864 status = pthread_create( &t, pthread_attr_default, task, NULL );
16865 if( status ) return errno;
16867 /* give thread a chance to complete */
16868 /* it should remain joinable and hence detachable */
16871 status = pthread_detach( &t );
16872 if( status ) return errno;
16875 #ifdef HAVE_LINUX_THREADS
16876 pthread_kill_other_threads_np();
16885 if ac_fn_c_try_link "$LINENO"; then :
16886 ol_cv_pthread_mthreads=yes
16888 ol_cv_pthread_mthreads=no
16890 rm -f core conftest.err conftest.$ac_objext \
16891 conftest$ac_exeext conftest.$ac_ext
16893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16894 /* end confdefs.h. */
16896 /* pthread test headers */
16897 #include <pthread.h>
16898 #if HAVE_PTHREADS < 7
16902 #define NULL (void*)0
16905 static void *task(p)
16908 return (void *) (p == NULL);
16912 int main(argc, argv)
16917 /* pthread test function */
16918 #ifndef PTHREAD_CREATE_DETACHED
16919 #define PTHREAD_CREATE_DETACHED 1
16923 int detach = PTHREAD_CREATE_DETACHED;
16925 #if HAVE_PTHREADS > 4
16926 /* Final pthreads */
16927 pthread_attr_t attr;
16929 status = pthread_attr_init(&attr);
16930 if( status ) return status;
16932 #if HAVE_PTHREADS < 7
16933 status = pthread_attr_setdetachstate(&attr, &detach);
16934 if( status < 0 ) status = errno;
16936 status = pthread_attr_setdetachstate(&attr, detach);
16938 if( status ) return status;
16939 status = pthread_create( &t, &attr, task, NULL );
16940 #if HAVE_PTHREADS < 7
16941 if( status < 0 ) status = errno;
16943 if( status ) return status;
16945 /* Draft 4 pthreads */
16946 status = pthread_create( &t, pthread_attr_default, task, NULL );
16947 if( status ) return errno;
16949 /* give thread a chance to complete */
16950 /* it should remain joinable and hence detachable */
16953 status = pthread_detach( &t );
16954 if( status ) return errno;
16957 #ifdef HAVE_LINUX_THREADS
16958 pthread_kill_other_threads_np();
16966 if ac_fn_c_try_run "$LINENO"; then :
16967 ol_cv_pthread_mthreads=yes
16969 ol_cv_pthread_mthreads=no
16971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16972 conftest.$ac_objext conftest.beam conftest.$ac_ext
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16981 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16983 if test $ol_cv_pthread_mthreads = yes ; then
16984 ol_link_pthreads="-mthreads"
16985 ol_link_threads=posix
16989 # Pthread try link: -thread (ol_cv_pthread_thread)
16990 if test "$ol_link_threads" = no ; then
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16993 $as_echo_n "checking for pthread link with -thread... " >&6; }
16994 if test "${ol_cv_pthread_thread+set}" = set; then :
16995 $as_echo_n "(cached) " >&6
17000 LIBS="-thread $LIBS"
17002 if test "$cross_compiling" = yes; then :
17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17006 /* pthread test headers */
17007 #include <pthread.h>
17008 #if HAVE_PTHREADS < 7
17012 #define NULL (void*)0
17015 static void *task(p)
17018 return (void *) (p == NULL);
17025 /* pthread test function */
17026 #ifndef PTHREAD_CREATE_DETACHED
17027 #define PTHREAD_CREATE_DETACHED 1
17031 int detach = PTHREAD_CREATE_DETACHED;
17033 #if HAVE_PTHREADS > 4
17034 /* Final pthreads */
17035 pthread_attr_t attr;
17037 status = pthread_attr_init(&attr);
17038 if( status ) return status;
17040 #if HAVE_PTHREADS < 7
17041 status = pthread_attr_setdetachstate(&attr, &detach);
17042 if( status < 0 ) status = errno;
17044 status = pthread_attr_setdetachstate(&attr, detach);
17046 if( status ) return status;
17047 status = pthread_create( &t, &attr, task, NULL );
17048 #if HAVE_PTHREADS < 7
17049 if( status < 0 ) status = errno;
17051 if( status ) return status;
17053 /* Draft 4 pthreads */
17054 status = pthread_create( &t, pthread_attr_default, task, NULL );
17055 if( status ) return errno;
17057 /* give thread a chance to complete */
17058 /* it should remain joinable and hence detachable */
17061 status = pthread_detach( &t );
17062 if( status ) return errno;
17065 #ifdef HAVE_LINUX_THREADS
17066 pthread_kill_other_threads_np();
17075 if ac_fn_c_try_link "$LINENO"; then :
17076 ol_cv_pthread_thread=yes
17078 ol_cv_pthread_thread=no
17080 rm -f core conftest.err conftest.$ac_objext \
17081 conftest$ac_exeext conftest.$ac_ext
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17086 /* pthread test headers */
17087 #include <pthread.h>
17088 #if HAVE_PTHREADS < 7
17092 #define NULL (void*)0
17095 static void *task(p)
17098 return (void *) (p == NULL);
17102 int main(argc, argv)
17107 /* pthread test function */
17108 #ifndef PTHREAD_CREATE_DETACHED
17109 #define PTHREAD_CREATE_DETACHED 1
17113 int detach = PTHREAD_CREATE_DETACHED;
17115 #if HAVE_PTHREADS > 4
17116 /* Final pthreads */
17117 pthread_attr_t attr;
17119 status = pthread_attr_init(&attr);
17120 if( status ) return status;
17122 #if HAVE_PTHREADS < 7
17123 status = pthread_attr_setdetachstate(&attr, &detach);
17124 if( status < 0 ) status = errno;
17126 status = pthread_attr_setdetachstate(&attr, detach);
17128 if( status ) return status;
17129 status = pthread_create( &t, &attr, task, NULL );
17130 #if HAVE_PTHREADS < 7
17131 if( status < 0 ) status = errno;
17133 if( status ) return status;
17135 /* Draft 4 pthreads */
17136 status = pthread_create( &t, pthread_attr_default, task, NULL );
17137 if( status ) return errno;
17139 /* give thread a chance to complete */
17140 /* it should remain joinable and hence detachable */
17143 status = pthread_detach( &t );
17144 if( status ) return errno;
17147 #ifdef HAVE_LINUX_THREADS
17148 pthread_kill_other_threads_np();
17156 if ac_fn_c_try_run "$LINENO"; then :
17157 ol_cv_pthread_thread=yes
17159 ol_cv_pthread_thread=no
17161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17162 conftest.$ac_objext conftest.beam conftest.$ac_ext
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17171 $as_echo "$ol_cv_pthread_thread" >&6; }
17173 if test $ol_cv_pthread_thread = yes ; then
17174 ol_link_pthreads="-thread"
17175 ol_link_threads=posix
17180 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17181 if test "$ol_link_threads" = no ; then
17182 # try -lpthread -lmach -lexc -lc_r
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17184 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17185 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then :
17186 $as_echo_n "(cached) " >&6
17191 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17193 if test "$cross_compiling" = yes; then :
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17197 /* pthread test headers */
17198 #include <pthread.h>
17199 #if HAVE_PTHREADS < 7
17203 #define NULL (void*)0
17206 static void *task(p)
17209 return (void *) (p == NULL);
17216 /* pthread test function */
17217 #ifndef PTHREAD_CREATE_DETACHED
17218 #define PTHREAD_CREATE_DETACHED 1
17222 int detach = PTHREAD_CREATE_DETACHED;
17224 #if HAVE_PTHREADS > 4
17225 /* Final pthreads */
17226 pthread_attr_t attr;
17228 status = pthread_attr_init(&attr);
17229 if( status ) return status;
17231 #if HAVE_PTHREADS < 7
17232 status = pthread_attr_setdetachstate(&attr, &detach);
17233 if( status < 0 ) status = errno;
17235 status = pthread_attr_setdetachstate(&attr, detach);
17237 if( status ) return status;
17238 status = pthread_create( &t, &attr, task, NULL );
17239 #if HAVE_PTHREADS < 7
17240 if( status < 0 ) status = errno;
17242 if( status ) return status;
17244 /* Draft 4 pthreads */
17245 status = pthread_create( &t, pthread_attr_default, task, NULL );
17246 if( status ) return errno;
17248 /* give thread a chance to complete */
17249 /* it should remain joinable and hence detachable */
17252 status = pthread_detach( &t );
17253 if( status ) return errno;
17256 #ifdef HAVE_LINUX_THREADS
17257 pthread_kill_other_threads_np();
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17269 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17277 /* pthread test headers */
17278 #include <pthread.h>
17279 #if HAVE_PTHREADS < 7
17283 #define NULL (void*)0
17286 static void *task(p)
17289 return (void *) (p == NULL);
17293 int main(argc, argv)
17298 /* pthread test function */
17299 #ifndef PTHREAD_CREATE_DETACHED
17300 #define PTHREAD_CREATE_DETACHED 1
17304 int detach = PTHREAD_CREATE_DETACHED;
17306 #if HAVE_PTHREADS > 4
17307 /* Final pthreads */
17308 pthread_attr_t attr;
17310 status = pthread_attr_init(&attr);
17311 if( status ) return status;
17313 #if HAVE_PTHREADS < 7
17314 status = pthread_attr_setdetachstate(&attr, &detach);
17315 if( status < 0 ) status = errno;
17317 status = pthread_attr_setdetachstate(&attr, detach);
17319 if( status ) return status;
17320 status = pthread_create( &t, &attr, task, NULL );
17321 #if HAVE_PTHREADS < 7
17322 if( status < 0 ) status = errno;
17324 if( status ) return status;
17326 /* Draft 4 pthreads */
17327 status = pthread_create( &t, pthread_attr_default, task, NULL );
17328 if( status ) return errno;
17330 /* give thread a chance to complete */
17331 /* it should remain joinable and hence detachable */
17334 status = pthread_detach( &t );
17335 if( status ) return errno;
17338 #ifdef HAVE_LINUX_THREADS
17339 pthread_kill_other_threads_np();
17347 if ac_fn_c_try_run "$LINENO"; then :
17348 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17350 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17353 conftest.$ac_objext conftest.beam conftest.$ac_ext
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17362 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17364 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17365 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17366 ol_link_threads=posix
17370 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17371 if test "$ol_link_threads" = no ; then
17372 # try -lpthread -lmach -lexc
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17374 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17375 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then :
17376 $as_echo_n "(cached) " >&6
17381 LIBS="-lpthread -lmach -lexc $LIBS"
17383 if test "$cross_compiling" = yes; then :
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17387 /* pthread test headers */
17388 #include <pthread.h>
17389 #if HAVE_PTHREADS < 7
17393 #define NULL (void*)0
17396 static void *task(p)
17399 return (void *) (p == NULL);
17406 /* pthread test function */
17407 #ifndef PTHREAD_CREATE_DETACHED
17408 #define PTHREAD_CREATE_DETACHED 1
17412 int detach = PTHREAD_CREATE_DETACHED;
17414 #if HAVE_PTHREADS > 4
17415 /* Final pthreads */
17416 pthread_attr_t attr;
17418 status = pthread_attr_init(&attr);
17419 if( status ) return status;
17421 #if HAVE_PTHREADS < 7
17422 status = pthread_attr_setdetachstate(&attr, &detach);
17423 if( status < 0 ) status = errno;
17425 status = pthread_attr_setdetachstate(&attr, detach);
17427 if( status ) return status;
17428 status = pthread_create( &t, &attr, task, NULL );
17429 #if HAVE_PTHREADS < 7
17430 if( status < 0 ) status = errno;
17432 if( status ) return status;
17434 /* Draft 4 pthreads */
17435 status = pthread_create( &t, pthread_attr_default, task, NULL );
17436 if( status ) return errno;
17438 /* give thread a chance to complete */
17439 /* it should remain joinable and hence detachable */
17442 status = pthread_detach( &t );
17443 if( status ) return errno;
17446 #ifdef HAVE_LINUX_THREADS
17447 pthread_kill_other_threads_np();
17456 if ac_fn_c_try_link "$LINENO"; then :
17457 ol_cv_pthread_lpthread_lmach_lexc=yes
17459 ol_cv_pthread_lpthread_lmach_lexc=no
17461 rm -f core conftest.err conftest.$ac_objext \
17462 conftest$ac_exeext conftest.$ac_ext
17464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17465 /* end confdefs.h. */
17467 /* pthread test headers */
17468 #include <pthread.h>
17469 #if HAVE_PTHREADS < 7
17473 #define NULL (void*)0
17476 static void *task(p)
17479 return (void *) (p == NULL);
17483 int main(argc, argv)
17488 /* pthread test function */
17489 #ifndef PTHREAD_CREATE_DETACHED
17490 #define PTHREAD_CREATE_DETACHED 1
17494 int detach = PTHREAD_CREATE_DETACHED;
17496 #if HAVE_PTHREADS > 4
17497 /* Final pthreads */
17498 pthread_attr_t attr;
17500 status = pthread_attr_init(&attr);
17501 if( status ) return status;
17503 #if HAVE_PTHREADS < 7
17504 status = pthread_attr_setdetachstate(&attr, &detach);
17505 if( status < 0 ) status = errno;
17507 status = pthread_attr_setdetachstate(&attr, detach);
17509 if( status ) return status;
17510 status = pthread_create( &t, &attr, task, NULL );
17511 #if HAVE_PTHREADS < 7
17512 if( status < 0 ) status = errno;
17514 if( status ) return status;
17516 /* Draft 4 pthreads */
17517 status = pthread_create( &t, pthread_attr_default, task, NULL );
17518 if( status ) return errno;
17520 /* give thread a chance to complete */
17521 /* it should remain joinable and hence detachable */
17524 status = pthread_detach( &t );
17525 if( status ) return errno;
17528 #ifdef HAVE_LINUX_THREADS
17529 pthread_kill_other_threads_np();
17537 if ac_fn_c_try_run "$LINENO"; then :
17538 ol_cv_pthread_lpthread_lmach_lexc=yes
17540 ol_cv_pthread_lpthread_lmach_lexc=no
17542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17543 conftest.$ac_objext conftest.beam conftest.$ac_ext
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17552 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17554 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17555 ol_link_pthreads="-lpthread -lmach -lexc"
17556 ol_link_threads=posix
17561 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17562 if test "$ol_link_threads" = no ; then
17563 # try -lpthread -Wl,-woff,85
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17565 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17566 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then :
17567 $as_echo_n "(cached) " >&6
17572 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17574 if test "$cross_compiling" = yes; then :
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17578 /* pthread test headers */
17579 #include <pthread.h>
17580 #if HAVE_PTHREADS < 7
17584 #define NULL (void*)0
17587 static void *task(p)
17590 return (void *) (p == NULL);
17597 /* pthread test function */
17598 #ifndef PTHREAD_CREATE_DETACHED
17599 #define PTHREAD_CREATE_DETACHED 1
17603 int detach = PTHREAD_CREATE_DETACHED;
17605 #if HAVE_PTHREADS > 4
17606 /* Final pthreads */
17607 pthread_attr_t attr;
17609 status = pthread_attr_init(&attr);
17610 if( status ) return status;
17612 #if HAVE_PTHREADS < 7
17613 status = pthread_attr_setdetachstate(&attr, &detach);
17614 if( status < 0 ) status = errno;
17616 status = pthread_attr_setdetachstate(&attr, detach);
17618 if( status ) return status;
17619 status = pthread_create( &t, &attr, task, NULL );
17620 #if HAVE_PTHREADS < 7
17621 if( status < 0 ) status = errno;
17623 if( status ) return status;
17625 /* Draft 4 pthreads */
17626 status = pthread_create( &t, pthread_attr_default, task, NULL );
17627 if( status ) return errno;
17629 /* give thread a chance to complete */
17630 /* it should remain joinable and hence detachable */
17633 status = pthread_detach( &t );
17634 if( status ) return errno;
17637 #ifdef HAVE_LINUX_THREADS
17638 pthread_kill_other_threads_np();
17647 if ac_fn_c_try_link "$LINENO"; then :
17648 ol_cv_pthread_lib_lpthread_woff=yes
17650 ol_cv_pthread_lib_lpthread_woff=no
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17656 /* end confdefs.h. */
17658 /* pthread test headers */
17659 #include <pthread.h>
17660 #if HAVE_PTHREADS < 7
17664 #define NULL (void*)0
17667 static void *task(p)
17670 return (void *) (p == NULL);
17674 int main(argc, argv)
17679 /* pthread test function */
17680 #ifndef PTHREAD_CREATE_DETACHED
17681 #define PTHREAD_CREATE_DETACHED 1
17685 int detach = PTHREAD_CREATE_DETACHED;
17687 #if HAVE_PTHREADS > 4
17688 /* Final pthreads */
17689 pthread_attr_t attr;
17691 status = pthread_attr_init(&attr);
17692 if( status ) return status;
17694 #if HAVE_PTHREADS < 7
17695 status = pthread_attr_setdetachstate(&attr, &detach);
17696 if( status < 0 ) status = errno;
17698 status = pthread_attr_setdetachstate(&attr, detach);
17700 if( status ) return status;
17701 status = pthread_create( &t, &attr, task, NULL );
17702 #if HAVE_PTHREADS < 7
17703 if( status < 0 ) status = errno;
17705 if( status ) return status;
17707 /* Draft 4 pthreads */
17708 status = pthread_create( &t, pthread_attr_default, task, NULL );
17709 if( status ) return errno;
17711 /* give thread a chance to complete */
17712 /* it should remain joinable and hence detachable */
17715 status = pthread_detach( &t );
17716 if( status ) return errno;
17719 #ifdef HAVE_LINUX_THREADS
17720 pthread_kill_other_threads_np();
17728 if ac_fn_c_try_run "$LINENO"; then :
17729 ol_cv_pthread_lib_lpthread_woff=yes
17731 ol_cv_pthread_lib_lpthread_woff=no
17733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17734 conftest.$ac_objext conftest.beam conftest.$ac_ext
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17743 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17745 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17746 ol_link_pthreads="-lpthread -Wl,-woff,85"
17747 ol_link_threads=posix
17752 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17753 if test "$ol_link_threads" = no ; then
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17756 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17757 if test "${ol_cv_pthread_lpthread+set}" = set; then :
17758 $as_echo_n "(cached) " >&6
17763 LIBS="-lpthread $LIBS"
17765 if test "$cross_compiling" = yes; then :
17766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767 /* end confdefs.h. */
17769 /* pthread test headers */
17770 #include <pthread.h>
17771 #if HAVE_PTHREADS < 7
17775 #define NULL (void*)0
17778 static void *task(p)
17781 return (void *) (p == NULL);
17788 /* pthread test function */
17789 #ifndef PTHREAD_CREATE_DETACHED
17790 #define PTHREAD_CREATE_DETACHED 1
17794 int detach = PTHREAD_CREATE_DETACHED;
17796 #if HAVE_PTHREADS > 4
17797 /* Final pthreads */
17798 pthread_attr_t attr;
17800 status = pthread_attr_init(&attr);
17801 if( status ) return status;
17803 #if HAVE_PTHREADS < 7
17804 status = pthread_attr_setdetachstate(&attr, &detach);
17805 if( status < 0 ) status = errno;
17807 status = pthread_attr_setdetachstate(&attr, detach);
17809 if( status ) return status;
17810 status = pthread_create( &t, &attr, task, NULL );
17811 #if HAVE_PTHREADS < 7
17812 if( status < 0 ) status = errno;
17814 if( status ) return status;
17816 /* Draft 4 pthreads */
17817 status = pthread_create( &t, pthread_attr_default, task, NULL );
17818 if( status ) return errno;
17820 /* give thread a chance to complete */
17821 /* it should remain joinable and hence detachable */
17824 status = pthread_detach( &t );
17825 if( status ) return errno;
17828 #ifdef HAVE_LINUX_THREADS
17829 pthread_kill_other_threads_np();
17838 if ac_fn_c_try_link "$LINENO"; then :
17839 ol_cv_pthread_lpthread=yes
17841 ol_cv_pthread_lpthread=no
17843 rm -f core conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17847 /* end confdefs.h. */
17849 /* pthread test headers */
17850 #include <pthread.h>
17851 #if HAVE_PTHREADS < 7
17855 #define NULL (void*)0
17858 static void *task(p)
17861 return (void *) (p == NULL);
17865 int main(argc, argv)
17870 /* pthread test function */
17871 #ifndef PTHREAD_CREATE_DETACHED
17872 #define PTHREAD_CREATE_DETACHED 1
17876 int detach = PTHREAD_CREATE_DETACHED;
17878 #if HAVE_PTHREADS > 4
17879 /* Final pthreads */
17880 pthread_attr_t attr;
17882 status = pthread_attr_init(&attr);
17883 if( status ) return status;
17885 #if HAVE_PTHREADS < 7
17886 status = pthread_attr_setdetachstate(&attr, &detach);
17887 if( status < 0 ) status = errno;
17889 status = pthread_attr_setdetachstate(&attr, detach);
17891 if( status ) return status;
17892 status = pthread_create( &t, &attr, task, NULL );
17893 #if HAVE_PTHREADS < 7
17894 if( status < 0 ) status = errno;
17896 if( status ) return status;
17898 /* Draft 4 pthreads */
17899 status = pthread_create( &t, pthread_attr_default, task, NULL );
17900 if( status ) return errno;
17902 /* give thread a chance to complete */
17903 /* it should remain joinable and hence detachable */
17906 status = pthread_detach( &t );
17907 if( status ) return errno;
17910 #ifdef HAVE_LINUX_THREADS
17911 pthread_kill_other_threads_np();
17919 if ac_fn_c_try_run "$LINENO"; then :
17920 ol_cv_pthread_lpthread=yes
17922 ol_cv_pthread_lpthread=no
17924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17925 conftest.$ac_objext conftest.beam conftest.$ac_ext
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17934 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17936 if test $ol_cv_pthread_lpthread = yes ; then
17937 ol_link_pthreads="-lpthread"
17938 ol_link_threads=posix
17942 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17943 if test "$ol_link_threads" = no ; then
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17946 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17947 if test "${ol_cv_pthread_lc_r+set}" = set; then :
17948 $as_echo_n "(cached) " >&6
17955 if test "$cross_compiling" = yes; then :
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17959 /* pthread test headers */
17960 #include <pthread.h>
17961 #if HAVE_PTHREADS < 7
17965 #define NULL (void*)0
17968 static void *task(p)
17971 return (void *) (p == NULL);
17978 /* pthread test function */
17979 #ifndef PTHREAD_CREATE_DETACHED
17980 #define PTHREAD_CREATE_DETACHED 1
17984 int detach = PTHREAD_CREATE_DETACHED;
17986 #if HAVE_PTHREADS > 4
17987 /* Final pthreads */
17988 pthread_attr_t attr;
17990 status = pthread_attr_init(&attr);
17991 if( status ) return status;
17993 #if HAVE_PTHREADS < 7
17994 status = pthread_attr_setdetachstate(&attr, &detach);
17995 if( status < 0 ) status = errno;
17997 status = pthread_attr_setdetachstate(&attr, detach);
17999 if( status ) return status;
18000 status = pthread_create( &t, &attr, task, NULL );
18001 #if HAVE_PTHREADS < 7
18002 if( status < 0 ) status = errno;
18004 if( status ) return status;
18006 /* Draft 4 pthreads */
18007 status = pthread_create( &t, pthread_attr_default, task, NULL );
18008 if( status ) return errno;
18010 /* give thread a chance to complete */
18011 /* it should remain joinable and hence detachable */
18014 status = pthread_detach( &t );
18015 if( status ) return errno;
18018 #ifdef HAVE_LINUX_THREADS
18019 pthread_kill_other_threads_np();
18028 if ac_fn_c_try_link "$LINENO"; then :
18029 ol_cv_pthread_lc_r=yes
18031 ol_cv_pthread_lc_r=no
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18037 /* end confdefs.h. */
18039 /* pthread test headers */
18040 #include <pthread.h>
18041 #if HAVE_PTHREADS < 7
18045 #define NULL (void*)0
18048 static void *task(p)
18051 return (void *) (p == NULL);
18055 int main(argc, argv)
18060 /* pthread test function */
18061 #ifndef PTHREAD_CREATE_DETACHED
18062 #define PTHREAD_CREATE_DETACHED 1
18066 int detach = PTHREAD_CREATE_DETACHED;
18068 #if HAVE_PTHREADS > 4
18069 /* Final pthreads */
18070 pthread_attr_t attr;
18072 status = pthread_attr_init(&attr);
18073 if( status ) return status;
18075 #if HAVE_PTHREADS < 7
18076 status = pthread_attr_setdetachstate(&attr, &detach);
18077 if( status < 0 ) status = errno;
18079 status = pthread_attr_setdetachstate(&attr, detach);
18081 if( status ) return status;
18082 status = pthread_create( &t, &attr, task, NULL );
18083 #if HAVE_PTHREADS < 7
18084 if( status < 0 ) status = errno;
18086 if( status ) return status;
18088 /* Draft 4 pthreads */
18089 status = pthread_create( &t, pthread_attr_default, task, NULL );
18090 if( status ) return errno;
18092 /* give thread a chance to complete */
18093 /* it should remain joinable and hence detachable */
18096 status = pthread_detach( &t );
18097 if( status ) return errno;
18100 #ifdef HAVE_LINUX_THREADS
18101 pthread_kill_other_threads_np();
18109 if ac_fn_c_try_run "$LINENO"; then :
18110 ol_cv_pthread_lc_r=yes
18112 ol_cv_pthread_lc_r=no
18114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18115 conftest.$ac_objext conftest.beam conftest.$ac_ext
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18124 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18126 if test $ol_cv_pthread_lc_r = yes ; then
18127 ol_link_pthreads="-lc_r"
18128 ol_link_threads=posix
18133 # Pthread try link: -threads (ol_cv_pthread_threads)
18134 if test "$ol_link_threads" = no ; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18137 $as_echo_n "checking for pthread link with -threads... " >&6; }
18138 if test "${ol_cv_pthread_threads+set}" = set; then :
18139 $as_echo_n "(cached) " >&6
18144 LIBS="-threads $LIBS"
18146 if test "$cross_compiling" = yes; then :
18147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18150 /* pthread test headers */
18151 #include <pthread.h>
18152 #if HAVE_PTHREADS < 7
18156 #define NULL (void*)0
18159 static void *task(p)
18162 return (void *) (p == NULL);
18169 /* pthread test function */
18170 #ifndef PTHREAD_CREATE_DETACHED
18171 #define PTHREAD_CREATE_DETACHED 1
18175 int detach = PTHREAD_CREATE_DETACHED;
18177 #if HAVE_PTHREADS > 4
18178 /* Final pthreads */
18179 pthread_attr_t attr;
18181 status = pthread_attr_init(&attr);
18182 if( status ) return status;
18184 #if HAVE_PTHREADS < 7
18185 status = pthread_attr_setdetachstate(&attr, &detach);
18186 if( status < 0 ) status = errno;
18188 status = pthread_attr_setdetachstate(&attr, detach);
18190 if( status ) return status;
18191 status = pthread_create( &t, &attr, task, NULL );
18192 #if HAVE_PTHREADS < 7
18193 if( status < 0 ) status = errno;
18195 if( status ) return status;
18197 /* Draft 4 pthreads */
18198 status = pthread_create( &t, pthread_attr_default, task, NULL );
18199 if( status ) return errno;
18201 /* give thread a chance to complete */
18202 /* it should remain joinable and hence detachable */
18205 status = pthread_detach( &t );
18206 if( status ) return errno;
18209 #ifdef HAVE_LINUX_THREADS
18210 pthread_kill_other_threads_np();
18219 if ac_fn_c_try_link "$LINENO"; then :
18220 ol_cv_pthread_threads=yes
18222 ol_cv_pthread_threads=no
18224 rm -f core conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228 /* end confdefs.h. */
18230 /* pthread test headers */
18231 #include <pthread.h>
18232 #if HAVE_PTHREADS < 7
18236 #define NULL (void*)0
18239 static void *task(p)
18242 return (void *) (p == NULL);
18246 int main(argc, argv)
18251 /* pthread test function */
18252 #ifndef PTHREAD_CREATE_DETACHED
18253 #define PTHREAD_CREATE_DETACHED 1
18257 int detach = PTHREAD_CREATE_DETACHED;
18259 #if HAVE_PTHREADS > 4
18260 /* Final pthreads */
18261 pthread_attr_t attr;
18263 status = pthread_attr_init(&attr);
18264 if( status ) return status;
18266 #if HAVE_PTHREADS < 7
18267 status = pthread_attr_setdetachstate(&attr, &detach);
18268 if( status < 0 ) status = errno;
18270 status = pthread_attr_setdetachstate(&attr, detach);
18272 if( status ) return status;
18273 status = pthread_create( &t, &attr, task, NULL );
18274 #if HAVE_PTHREADS < 7
18275 if( status < 0 ) status = errno;
18277 if( status ) return status;
18279 /* Draft 4 pthreads */
18280 status = pthread_create( &t, pthread_attr_default, task, NULL );
18281 if( status ) return errno;
18283 /* give thread a chance to complete */
18284 /* it should remain joinable and hence detachable */
18287 status = pthread_detach( &t );
18288 if( status ) return errno;
18291 #ifdef HAVE_LINUX_THREADS
18292 pthread_kill_other_threads_np();
18300 if ac_fn_c_try_run "$LINENO"; then :
18301 ol_cv_pthread_threads=yes
18303 ol_cv_pthread_threads=no
18305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18306 conftest.$ac_objext conftest.beam conftest.$ac_ext
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18315 $as_echo "$ol_cv_pthread_threads" >&6; }
18317 if test $ol_cv_pthread_threads = yes ; then
18318 ol_link_pthreads="-threads"
18319 ol_link_threads=posix
18324 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18325 if test "$ol_link_threads" = no ; then
18326 # try -lpthreads -lmach -lexc -lc_r
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18328 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18329 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then :
18330 $as_echo_n "(cached) " >&6
18335 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18337 if test "$cross_compiling" = yes; then :
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 /* pthread test headers */
18342 #include <pthread.h>
18343 #if HAVE_PTHREADS < 7
18347 #define NULL (void*)0
18350 static void *task(p)
18353 return (void *) (p == NULL);
18360 /* pthread test function */
18361 #ifndef PTHREAD_CREATE_DETACHED
18362 #define PTHREAD_CREATE_DETACHED 1
18366 int detach = PTHREAD_CREATE_DETACHED;
18368 #if HAVE_PTHREADS > 4
18369 /* Final pthreads */
18370 pthread_attr_t attr;
18372 status = pthread_attr_init(&attr);
18373 if( status ) return status;
18375 #if HAVE_PTHREADS < 7
18376 status = pthread_attr_setdetachstate(&attr, &detach);
18377 if( status < 0 ) status = errno;
18379 status = pthread_attr_setdetachstate(&attr, detach);
18381 if( status ) return status;
18382 status = pthread_create( &t, &attr, task, NULL );
18383 #if HAVE_PTHREADS < 7
18384 if( status < 0 ) status = errno;
18386 if( status ) return status;
18388 /* Draft 4 pthreads */
18389 status = pthread_create( &t, pthread_attr_default, task, NULL );
18390 if( status ) return errno;
18392 /* give thread a chance to complete */
18393 /* it should remain joinable and hence detachable */
18396 status = pthread_detach( &t );
18397 if( status ) return errno;
18400 #ifdef HAVE_LINUX_THREADS
18401 pthread_kill_other_threads_np();
18410 if ac_fn_c_try_link "$LINENO"; then :
18411 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18413 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 /* pthread test headers */
18422 #include <pthread.h>
18423 #if HAVE_PTHREADS < 7
18427 #define NULL (void*)0
18430 static void *task(p)
18433 return (void *) (p == NULL);
18437 int main(argc, argv)
18442 /* pthread test function */
18443 #ifndef PTHREAD_CREATE_DETACHED
18444 #define PTHREAD_CREATE_DETACHED 1
18448 int detach = PTHREAD_CREATE_DETACHED;
18450 #if HAVE_PTHREADS > 4
18451 /* Final pthreads */
18452 pthread_attr_t attr;
18454 status = pthread_attr_init(&attr);
18455 if( status ) return status;
18457 #if HAVE_PTHREADS < 7
18458 status = pthread_attr_setdetachstate(&attr, &detach);
18459 if( status < 0 ) status = errno;
18461 status = pthread_attr_setdetachstate(&attr, detach);
18463 if( status ) return status;
18464 status = pthread_create( &t, &attr, task, NULL );
18465 #if HAVE_PTHREADS < 7
18466 if( status < 0 ) status = errno;
18468 if( status ) return status;
18470 /* Draft 4 pthreads */
18471 status = pthread_create( &t, pthread_attr_default, task, NULL );
18472 if( status ) return errno;
18474 /* give thread a chance to complete */
18475 /* it should remain joinable and hence detachable */
18478 status = pthread_detach( &t );
18479 if( status ) return errno;
18482 #ifdef HAVE_LINUX_THREADS
18483 pthread_kill_other_threads_np();
18491 if ac_fn_c_try_run "$LINENO"; then :
18492 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18494 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18497 conftest.$ac_objext conftest.beam conftest.$ac_ext
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18506 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18508 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18509 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18510 ol_link_threads=posix
18514 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18515 if test "$ol_link_threads" = no ; then
18516 # try -lpthreads -lmach -lexc
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18518 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18519 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then :
18520 $as_echo_n "(cached) " >&6
18525 LIBS="-lpthreads -lmach -lexc $LIBS"
18527 if test "$cross_compiling" = yes; then :
18528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529 /* end confdefs.h. */
18531 /* pthread test headers */
18532 #include <pthread.h>
18533 #if HAVE_PTHREADS < 7
18537 #define NULL (void*)0
18540 static void *task(p)
18543 return (void *) (p == NULL);
18550 /* pthread test function */
18551 #ifndef PTHREAD_CREATE_DETACHED
18552 #define PTHREAD_CREATE_DETACHED 1
18556 int detach = PTHREAD_CREATE_DETACHED;
18558 #if HAVE_PTHREADS > 4
18559 /* Final pthreads */
18560 pthread_attr_t attr;
18562 status = pthread_attr_init(&attr);
18563 if( status ) return status;
18565 #if HAVE_PTHREADS < 7
18566 status = pthread_attr_setdetachstate(&attr, &detach);
18567 if( status < 0 ) status = errno;
18569 status = pthread_attr_setdetachstate(&attr, detach);
18571 if( status ) return status;
18572 status = pthread_create( &t, &attr, task, NULL );
18573 #if HAVE_PTHREADS < 7
18574 if( status < 0 ) status = errno;
18576 if( status ) return status;
18578 /* Draft 4 pthreads */
18579 status = pthread_create( &t, pthread_attr_default, task, NULL );
18580 if( status ) return errno;
18582 /* give thread a chance to complete */
18583 /* it should remain joinable and hence detachable */
18586 status = pthread_detach( &t );
18587 if( status ) return errno;
18590 #ifdef HAVE_LINUX_THREADS
18591 pthread_kill_other_threads_np();
18600 if ac_fn_c_try_link "$LINENO"; then :
18601 ol_cv_pthread_lpthreads_lmach_lexc=yes
18603 ol_cv_pthread_lpthreads_lmach_lexc=no
18605 rm -f core conftest.err conftest.$ac_objext \
18606 conftest$ac_exeext conftest.$ac_ext
18608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18609 /* end confdefs.h. */
18611 /* pthread test headers */
18612 #include <pthread.h>
18613 #if HAVE_PTHREADS < 7
18617 #define NULL (void*)0
18620 static void *task(p)
18623 return (void *) (p == NULL);
18627 int main(argc, argv)
18632 /* pthread test function */
18633 #ifndef PTHREAD_CREATE_DETACHED
18634 #define PTHREAD_CREATE_DETACHED 1
18638 int detach = PTHREAD_CREATE_DETACHED;
18640 #if HAVE_PTHREADS > 4
18641 /* Final pthreads */
18642 pthread_attr_t attr;
18644 status = pthread_attr_init(&attr);
18645 if( status ) return status;
18647 #if HAVE_PTHREADS < 7
18648 status = pthread_attr_setdetachstate(&attr, &detach);
18649 if( status < 0 ) status = errno;
18651 status = pthread_attr_setdetachstate(&attr, detach);
18653 if( status ) return status;
18654 status = pthread_create( &t, &attr, task, NULL );
18655 #if HAVE_PTHREADS < 7
18656 if( status < 0 ) status = errno;
18658 if( status ) return status;
18660 /* Draft 4 pthreads */
18661 status = pthread_create( &t, pthread_attr_default, task, NULL );
18662 if( status ) return errno;
18664 /* give thread a chance to complete */
18665 /* it should remain joinable and hence detachable */
18668 status = pthread_detach( &t );
18669 if( status ) return errno;
18672 #ifdef HAVE_LINUX_THREADS
18673 pthread_kill_other_threads_np();
18681 if ac_fn_c_try_run "$LINENO"; then :
18682 ol_cv_pthread_lpthreads_lmach_lexc=yes
18684 ol_cv_pthread_lpthreads_lmach_lexc=no
18686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18687 conftest.$ac_objext conftest.beam conftest.$ac_ext
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18696 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18698 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18699 ol_link_pthreads="-lpthreads -lmach -lexc"
18700 ol_link_threads=posix
18704 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18705 if test "$ol_link_threads" = no ; then
18706 # try -lpthreads -lexc
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18708 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18709 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then :
18710 $as_echo_n "(cached) " >&6
18715 LIBS="-lpthreads -lexc $LIBS"
18717 if test "$cross_compiling" = yes; then :
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18721 /* pthread test headers */
18722 #include <pthread.h>
18723 #if HAVE_PTHREADS < 7
18727 #define NULL (void*)0
18730 static void *task(p)
18733 return (void *) (p == NULL);
18740 /* pthread test function */
18741 #ifndef PTHREAD_CREATE_DETACHED
18742 #define PTHREAD_CREATE_DETACHED 1
18746 int detach = PTHREAD_CREATE_DETACHED;
18748 #if HAVE_PTHREADS > 4
18749 /* Final pthreads */
18750 pthread_attr_t attr;
18752 status = pthread_attr_init(&attr);
18753 if( status ) return status;
18755 #if HAVE_PTHREADS < 7
18756 status = pthread_attr_setdetachstate(&attr, &detach);
18757 if( status < 0 ) status = errno;
18759 status = pthread_attr_setdetachstate(&attr, detach);
18761 if( status ) return status;
18762 status = pthread_create( &t, &attr, task, NULL );
18763 #if HAVE_PTHREADS < 7
18764 if( status < 0 ) status = errno;
18766 if( status ) return status;
18768 /* Draft 4 pthreads */
18769 status = pthread_create( &t, pthread_attr_default, task, NULL );
18770 if( status ) return errno;
18772 /* give thread a chance to complete */
18773 /* it should remain joinable and hence detachable */
18776 status = pthread_detach( &t );
18777 if( status ) return errno;
18780 #ifdef HAVE_LINUX_THREADS
18781 pthread_kill_other_threads_np();
18790 if ac_fn_c_try_link "$LINENO"; then :
18791 ol_cv_pthread_lpthreads_lexc=yes
18793 ol_cv_pthread_lpthreads_lexc=no
18795 rm -f core conftest.err conftest.$ac_objext \
18796 conftest$ac_exeext conftest.$ac_ext
18798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18799 /* end confdefs.h. */
18801 /* pthread test headers */
18802 #include <pthread.h>
18803 #if HAVE_PTHREADS < 7
18807 #define NULL (void*)0
18810 static void *task(p)
18813 return (void *) (p == NULL);
18817 int main(argc, argv)
18822 /* pthread test function */
18823 #ifndef PTHREAD_CREATE_DETACHED
18824 #define PTHREAD_CREATE_DETACHED 1
18828 int detach = PTHREAD_CREATE_DETACHED;
18830 #if HAVE_PTHREADS > 4
18831 /* Final pthreads */
18832 pthread_attr_t attr;
18834 status = pthread_attr_init(&attr);
18835 if( status ) return status;
18837 #if HAVE_PTHREADS < 7
18838 status = pthread_attr_setdetachstate(&attr, &detach);
18839 if( status < 0 ) status = errno;
18841 status = pthread_attr_setdetachstate(&attr, detach);
18843 if( status ) return status;
18844 status = pthread_create( &t, &attr, task, NULL );
18845 #if HAVE_PTHREADS < 7
18846 if( status < 0 ) status = errno;
18848 if( status ) return status;
18850 /* Draft 4 pthreads */
18851 status = pthread_create( &t, pthread_attr_default, task, NULL );
18852 if( status ) return errno;
18854 /* give thread a chance to complete */
18855 /* it should remain joinable and hence detachable */
18858 status = pthread_detach( &t );
18859 if( status ) return errno;
18862 #ifdef HAVE_LINUX_THREADS
18863 pthread_kill_other_threads_np();
18871 if ac_fn_c_try_run "$LINENO"; then :
18872 ol_cv_pthread_lpthreads_lexc=yes
18874 ol_cv_pthread_lpthreads_lexc=no
18876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18877 conftest.$ac_objext conftest.beam conftest.$ac_ext
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18886 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18888 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18889 ol_link_pthreads="-lpthreads -lexc"
18890 ol_link_threads=posix
18895 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18896 if test "$ol_link_threads" = no ; then
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18899 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18900 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then :
18901 $as_echo_n "(cached) " >&6
18906 LIBS="-lpthreads $LIBS"
18908 if test "$cross_compiling" = yes; then :
18909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h. */
18912 /* pthread test headers */
18913 #include <pthread.h>
18914 #if HAVE_PTHREADS < 7
18918 #define NULL (void*)0
18921 static void *task(p)
18924 return (void *) (p == NULL);
18931 /* pthread test function */
18932 #ifndef PTHREAD_CREATE_DETACHED
18933 #define PTHREAD_CREATE_DETACHED 1
18937 int detach = PTHREAD_CREATE_DETACHED;
18939 #if HAVE_PTHREADS > 4
18940 /* Final pthreads */
18941 pthread_attr_t attr;
18943 status = pthread_attr_init(&attr);
18944 if( status ) return status;
18946 #if HAVE_PTHREADS < 7
18947 status = pthread_attr_setdetachstate(&attr, &detach);
18948 if( status < 0 ) status = errno;
18950 status = pthread_attr_setdetachstate(&attr, detach);
18952 if( status ) return status;
18953 status = pthread_create( &t, &attr, task, NULL );
18954 #if HAVE_PTHREADS < 7
18955 if( status < 0 ) status = errno;
18957 if( status ) return status;
18959 /* Draft 4 pthreads */
18960 status = pthread_create( &t, pthread_attr_default, task, NULL );
18961 if( status ) return errno;
18963 /* give thread a chance to complete */
18964 /* it should remain joinable and hence detachable */
18967 status = pthread_detach( &t );
18968 if( status ) return errno;
18971 #ifdef HAVE_LINUX_THREADS
18972 pthread_kill_other_threads_np();
18981 if ac_fn_c_try_link "$LINENO"; then :
18982 ol_cv_pthread_lib_lpthreads=yes
18984 ol_cv_pthread_lib_lpthreads=no
18986 rm -f core conftest.err conftest.$ac_objext \
18987 conftest$ac_exeext conftest.$ac_ext
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18992 /* pthread test headers */
18993 #include <pthread.h>
18994 #if HAVE_PTHREADS < 7
18998 #define NULL (void*)0
19001 static void *task(p)
19004 return (void *) (p == NULL);
19008 int main(argc, argv)
19013 /* pthread test function */
19014 #ifndef PTHREAD_CREATE_DETACHED
19015 #define PTHREAD_CREATE_DETACHED 1
19019 int detach = PTHREAD_CREATE_DETACHED;
19021 #if HAVE_PTHREADS > 4
19022 /* Final pthreads */
19023 pthread_attr_t attr;
19025 status = pthread_attr_init(&attr);
19026 if( status ) return status;
19028 #if HAVE_PTHREADS < 7
19029 status = pthread_attr_setdetachstate(&attr, &detach);
19030 if( status < 0 ) status = errno;
19032 status = pthread_attr_setdetachstate(&attr, detach);
19034 if( status ) return status;
19035 status = pthread_create( &t, &attr, task, NULL );
19036 #if HAVE_PTHREADS < 7
19037 if( status < 0 ) status = errno;
19039 if( status ) return status;
19041 /* Draft 4 pthreads */
19042 status = pthread_create( &t, pthread_attr_default, task, NULL );
19043 if( status ) return errno;
19045 /* give thread a chance to complete */
19046 /* it should remain joinable and hence detachable */
19049 status = pthread_detach( &t );
19050 if( status ) return errno;
19053 #ifdef HAVE_LINUX_THREADS
19054 pthread_kill_other_threads_np();
19062 if ac_fn_c_try_run "$LINENO"; then :
19063 ol_cv_pthread_lib_lpthreads=yes
19065 ol_cv_pthread_lib_lpthreads=no
19067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19068 conftest.$ac_objext conftest.beam conftest.$ac_ext
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19077 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19079 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19080 ol_link_pthreads="-lpthreads"
19081 ol_link_threads=posix
19086 if test $ol_link_threads != no ; then
19087 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19089 save_CPPFLAGS="$CPPFLAGS"
19091 LIBS="$LTHREAD_LIBS $LIBS"
19093 for ac_func in sched_yield pthread_yield thr_yield
19095 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19096 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19097 eval as_val=\$$as_ac_var
19098 if test "x$as_val" = x""yes; then :
19099 cat >>confdefs.h <<_ACEOF
19100 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19107 if test $ac_cv_func_sched_yield = no &&
19108 test $ac_cv_func_pthread_yield = no &&
19109 test $ac_cv_func_thr_yield = no ; then
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19111 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19112 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
19113 $as_echo_n "(cached) " >&6
19115 ac_check_lib_save_LIBS=$LIBS
19117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19118 /* end confdefs.h. */
19120 /* Override any GCC internal prototype to avoid an error.
19121 Use char because int might match the return type of a GCC
19122 builtin and then its argument prototype would still apply. */
19126 char sched_yield ();
19130 return sched_yield ();
19135 if ac_fn_c_try_link "$LINENO"; then :
19136 ac_cv_lib_rt_sched_yield=yes
19138 ac_cv_lib_rt_sched_yield=no
19140 rm -f core conftest.err conftest.$ac_objext \
19141 conftest$ac_exeext conftest.$ac_ext
19142 LIBS=$ac_check_lib_save_LIBS
19144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19145 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19146 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
19147 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19149 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19151 ac_cv_func_sched_yield=yes
19153 ac_cv_func_sched_yield=no
19157 if test $ac_cv_func_sched_yield = no &&
19158 test $ac_cv_func_pthread_yield = no &&
19159 test "$ac_cv_func_thr_yield" = no ; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19161 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19164 for ac_func in pthread_kill
19166 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19167 if test "x$ac_cv_func_pthread_kill" = x""yes; then :
19168 cat >>confdefs.h <<_ACEOF
19169 #define HAVE_PTHREAD_KILL 1
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19177 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19178 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then :
19179 $as_echo_n "(cached) " >&6
19182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19183 /* end confdefs.h. */
19185 #include <pthread.h>
19186 pthread_rwlock_t rwlock;
19191 pthread_rwlock_destroy(&rwlock);
19196 if ac_fn_c_try_link "$LINENO"; then :
19197 ol_cv_func_pthread_rwlock_destroy=yes
19199 ol_cv_func_pthread_rwlock_destroy=no
19201 rm -f core conftest.err conftest.$ac_objext \
19202 conftest$ac_exeext conftest.$ac_ext
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19206 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19207 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19209 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19214 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19215 if test "${ol_cv_func_pthread_detach+set}" = set; then :
19216 $as_echo_n "(cached) " >&6
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h. */
19222 #include <pthread.h>
19224 #define NULL (void*)0
19230 pthread_detach(NULL);
19235 if ac_fn_c_try_link "$LINENO"; then :
19236 ol_cv_func_pthread_detach=yes
19238 ol_cv_func_pthread_detach=no
19240 rm -f core conftest.err conftest.$ac_objext \
19241 conftest$ac_exeext conftest.$ac_ext
19244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19245 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19247 if test $ol_cv_func_pthread_detach = no ; then
19248 as_fn_error "could not locate pthread_detach()" "$LINENO" 5
19252 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19256 pthread_setconcurrency \
19257 pthread_getconcurrency \
19258 thr_setconcurrency \
19259 thr_getconcurrency \
19262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19264 eval as_val=\$$as_ac_var
19265 if test "x$as_val" = x""yes; then :
19266 cat >>confdefs.h <<_ACEOF
19267 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19275 for ac_func in pthread_kill_other_threads_np
19277 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19278 if test "x$ac_cv_func_pthread_kill_other_threads_np" = x""yes; then :
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19287 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19288 if test "${ol_cv_sys_linux_threads+set}" = set; then :
19289 $as_echo_n "(cached) " >&6
19291 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19294 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19300 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19301 if test "${ol_cv_linux_threads+set}" = set; then :
19302 $as_echo_n "(cached) " >&6
19305 if test $ol_cv_header_linux_threads = yes &&
19306 test $ol_cv_sys_linux_threads = yes; then
19307 ol_cv_linux_threads=yes
19308 elif test $ol_cv_header_linux_threads = no &&
19309 test $ol_cv_sys_linux_threads = no; then
19310 ol_cv_linux_threads=no
19312 ol_cv_linux_threads=error
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19317 $as_echo "$ol_cv_linux_threads" >&6; }
19320 if test $ol_cv_linux_threads = error; then
19321 as_fn_error "LinuxThreads header/library mismatch" "$LINENO" 5;
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19325 $as_echo_n "checking if pthread_create() works... " >&6; }
19326 if test "${ol_cv_pthread_create_works+set}" = set; then :
19327 $as_echo_n "(cached) " >&6
19330 if test "$cross_compiling" = yes; then :
19331 ol_cv_pthread_create_works=yes
19333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19334 /* end confdefs.h. */
19336 /* pthread test headers */
19337 #include <pthread.h>
19338 #if HAVE_PTHREADS < 7
19342 #define NULL (void*)0
19345 static void *task(p)
19348 return (void *) (p == NULL);
19352 int main(argc, argv)
19357 /* pthread test function */
19358 #ifndef PTHREAD_CREATE_DETACHED
19359 #define PTHREAD_CREATE_DETACHED 1
19363 int detach = PTHREAD_CREATE_DETACHED;
19365 #if HAVE_PTHREADS > 4
19366 /* Final pthreads */
19367 pthread_attr_t attr;
19369 status = pthread_attr_init(&attr);
19370 if( status ) return status;
19372 #if HAVE_PTHREADS < 7
19373 status = pthread_attr_setdetachstate(&attr, &detach);
19374 if( status < 0 ) status = errno;
19376 status = pthread_attr_setdetachstate(&attr, detach);
19378 if( status ) return status;
19379 status = pthread_create( &t, &attr, task, NULL );
19380 #if HAVE_PTHREADS < 7
19381 if( status < 0 ) status = errno;
19383 if( status ) return status;
19385 /* Draft 4 pthreads */
19386 status = pthread_create( &t, pthread_attr_default, task, NULL );
19387 if( status ) return errno;
19389 /* give thread a chance to complete */
19390 /* it should remain joinable and hence detachable */
19393 status = pthread_detach( &t );
19394 if( status ) return errno;
19397 #ifdef HAVE_LINUX_THREADS
19398 pthread_kill_other_threads_np();
19406 if ac_fn_c_try_run "$LINENO"; then :
19407 ol_cv_pthread_create_works=yes
19409 ol_cv_pthread_create_works=no
19411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19412 conftest.$ac_objext conftest.beam conftest.$ac_ext
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19417 $as_echo "$ol_cv_pthread_create_works" >&6; }
19419 if test $ol_cv_pthread_create_works = no ; then
19420 as_fn_error "pthread_create is not usable, check environment settings" "$LINENO" 5
19423 ol_replace_broken_yield=no
19425 if test $ol_replace_broken_yield = yes ; then
19427 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19431 if test $ol_with_yielding_select = auto ; then
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19433 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19434 if test "${ol_cv_pthread_select_yields+set}" = set; then :
19435 $as_echo_n "(cached) " >&6
19438 if test "$cross_compiling" = yes; then :
19439 ol_cv_pthread_select_yields=cross
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 #include <sys/types.h>
19445 #include <sys/time.h>
19446 #include <unistd.h>
19447 #include <pthread.h>
19449 #define NULL (void*) 0
19452 static int fildes[2];
19454 static void *task(p)
19466 FD_SET(fildes[0], &rfds);
19468 /* we're not interested in any fds */
19469 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19476 exit(0); /* if we exit here, the select blocked the whole process */
19479 int main(argc, argv)
19485 /* create a pipe to select */
19486 if(pipe(&fildes[0])) {
19491 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19492 (void) pthread_setconcurrency(2);
19494 #ifdef HAVE_THR_SETCONCURRENCY
19495 /* Set Solaris LWP concurrency to 2 */
19496 thr_setconcurrency(2);
19500 #if HAVE_PTHREADS < 6
19501 pthread_create(&t, pthread_attr_default, task, NULL);
19503 pthread_create(&t, NULL, task, NULL);
19506 /* make sure task runs first */
19507 #ifdef HAVE_THR_YIELD
19509 #elif defined( HAVE_SCHED_YIELD )
19511 #elif defined( HAVE_PTHREAD_YIELD )
19518 if ac_fn_c_try_run "$LINENO"; then :
19519 ol_cv_pthread_select_yields=no
19521 ol_cv_pthread_select_yields=yes
19523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19524 conftest.$ac_objext conftest.beam conftest.$ac_ext
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19529 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19531 if test $ol_cv_pthread_select_yields = cross ; then
19532 as_fn_error "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19535 if test $ol_cv_pthread_select_yields = yes ; then
19536 ol_with_yielding_select=yes
19540 CPPFLAGS="$save_CPPFLAGS"
19543 as_fn_error "could not locate usable POSIX Threads" "$LINENO" 5
19547 if test $ol_with_threads = posix ; then
19548 as_fn_error "could not locate POSIX Threads" "$LINENO" 5
19553 case $ol_with_threads in auto | yes | mach)
19555 for ac_header in mach/cthreads.h cthreads.h
19557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19558 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19559 eval as_val=\$$as_ac_Header
19560 if test "x$as_val" = x""yes; then :
19561 cat >>confdefs.h <<_ACEOF
19562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19569 if test $ac_cv_header_mach_cthreads_h = yes ; then
19570 ol_with_threads=found
19572 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19573 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19574 ol_link_threads=yes
19578 if test $ol_link_threads = no ; then
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19580 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19581 if test "${ol_cv_cthread_all_load+set}" = set; then :
19582 $as_echo_n "(cached) " >&6
19586 LIBS="-all_load $LIBS"
19587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19588 /* end confdefs.h. */
19589 #include <mach/cthreads.h>
19594 cthread_fork((void *)0, (void *)0);
19600 if ac_fn_c_try_link "$LINENO"; then :
19601 ol_cv_cthread_all_load=yes
19603 ol_cv_cthread_all_load=no
19605 rm -f core conftest.err conftest.$ac_objext \
19606 conftest$ac_exeext conftest.$ac_ext
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19611 $as_echo "$ol_cv_cthread_all_load" >&6; }
19613 if test $ol_cv_cthread_all_load = yes ; then
19614 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19615 ol_link_threads=mach
19616 ol_with_threads=found
19620 elif test $ac_cv_header_cthreads_h = yes ; then
19622 ol_with_threads=found
19625 LIBS="$LIBS -lthreads"
19626 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19627 if test "x$ac_cv_func_cthread_fork" = x""yes; then :
19628 ol_link_threads=yes
19633 if test $ol_link_threads = yes ; then
19634 LTHREAD_LIBS="-lthreads"
19635 ol_link_threads=mach
19636 ol_with_threads=found
19638 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19641 elif test $ol_with_threads = mach ; then
19642 as_fn_error "could not locate Mach CThreads" "$LINENO" 5
19645 if test $ol_link_threads = mach ; then
19647 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19649 elif test $ol_with_threads = found ; then
19650 as_fn_error "could not link with Mach CThreads" "$LINENO" 5
19655 case $ol_with_threads in auto | yes | pth)
19657 for ac_header in pth.h
19659 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19660 if test "x$ac_cv_header_pth_h" = x""yes; then :
19661 cat >>confdefs.h <<_ACEOF
19662 #define HAVE_PTH_H 1
19670 if test $ac_cv_header_pth_h = yes ; then
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19672 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19673 if test "${ac_cv_lib_pth_pth_version+set}" = set; then :
19674 $as_echo_n "(cached) " >&6
19676 ac_check_lib_save_LIBS=$LIBS
19678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19679 /* end confdefs.h. */
19681 /* Override any GCC internal prototype to avoid an error.
19682 Use char because int might match the return type of a GCC
19683 builtin and then its argument prototype would still apply. */
19687 char pth_version ();
19691 return pth_version ();
19696 if ac_fn_c_try_link "$LINENO"; then :
19697 ac_cv_lib_pth_pth_version=yes
19699 ac_cv_lib_pth_pth_version=no
19701 rm -f core conftest.err conftest.$ac_objext \
19702 conftest$ac_exeext conftest.$ac_ext
19703 LIBS=$ac_check_lib_save_LIBS
19705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19706 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19707 if test "x$ac_cv_lib_pth_pth_version" = x""yes; then :
19714 if test $have_pth = yes ; then
19716 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19718 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19719 ol_link_threads=pth
19720 ol_with_threads=found
19722 if test $ol_with_yielding_select = auto ; then
19723 ol_with_yielding_select=yes
19730 case $ol_with_threads in auto | yes | lwp)
19732 for ac_header in thread.h synch.h
19734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19735 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19736 eval as_val=\$$as_ac_Header
19737 if test "x$as_val" = x""yes; then :
19738 cat >>confdefs.h <<_ACEOF
19739 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19746 if test $ac_cv_header_thread_h = yes &&
19747 test $ac_cv_header_synch_h = yes ; then
19748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19749 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19750 if test "${ac_cv_lib_thread_thr_create+set}" = set; then :
19751 $as_echo_n "(cached) " >&6
19753 ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lthread $LIBS"
19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h. */
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19764 char thr_create ();
19768 return thr_create ();
19773 if ac_fn_c_try_link "$LINENO"; then :
19774 ac_cv_lib_thread_thr_create=yes
19776 ac_cv_lib_thread_thr_create=no
19778 rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780 LIBS=$ac_check_lib_save_LIBS
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19783 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19784 if test "x$ac_cv_lib_thread_thr_create" = x""yes; then :
19791 if test $have_thr = yes ; then
19793 $as_echo "#define HAVE_THR 1" >>confdefs.h
19795 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19796 ol_link_threads=thr
19798 if test $ol_with_yielding_select = auto ; then
19799 ol_with_yielding_select=yes
19803 thr_setconcurrency \
19804 thr_getconcurrency \
19807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19809 eval as_val=\$$as_ac_var
19810 if test "x$as_val" = x""yes; then :
19811 cat >>confdefs.h <<_ACEOF
19812 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19823 if test $ol_with_yielding_select = yes ; then
19825 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19829 if test $ol_with_threads = manual ; then
19830 ol_link_threads=yes
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19833 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19835 for ac_header in pthread.h sched.h
19837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19838 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19839 eval as_val=\$$as_ac_Header
19840 if test "x$as_val" = x""yes; then :
19841 cat >>confdefs.h <<_ACEOF
19842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 for ac_func in sched_yield pthread_yield
19851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19853 eval as_val=\$$as_ac_var
19854 if test "x$as_val" = x""yes; then :
19855 cat >>confdefs.h <<_ACEOF
19856 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19864 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19865 if test "${ol_cv_header_linux_threads+set}" = set; then :
19866 $as_echo_n "(cached) " >&6
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870 #include <pthread.h>
19872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19873 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19874 ol_cv_header_linux_threads=yes
19876 ol_cv_header_linux_threads=no
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19883 $as_echo "$ol_cv_header_linux_threads" >&6; }
19884 if test $ol_cv_header_linux_threads = yes; then
19886 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19891 for ac_header in mach/cthreads.h
19893 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19894 if test "x$ac_cv_header_mach_cthreads_h" = x""yes; then :
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_MACH_CTHREADS_H 1
19903 for ac_header in thread.h synch.h
19905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19907 eval as_val=\$$as_ac_Header
19908 if test "x$as_val" = x""yes; then :
19909 cat >>confdefs.h <<_ACEOF
19910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19919 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19920 $as_echo "#define REENTRANT 1" >>confdefs.h
19922 $as_echo "#define _REENTRANT 1" >>confdefs.h
19924 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19926 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19928 $as_echo "#define THREADSAFE 1" >>confdefs.h
19930 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19932 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19936 $as_echo_n "checking for thread specific errno... " >&6; }
19937 if test "${ol_cv_errno_thread_specific+set}" = set; then :
19938 $as_echo_n "(cached) " >&6
19941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h. */
19952 if ac_fn_c_try_link "$LINENO"; then :
19953 ol_cv_errno_thread_specific=yes
19955 ol_cv_errno_thread_specific=no
19957 rm -f core conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19962 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19965 $as_echo_n "checking for thread specific h_errno... " >&6; }
19966 if test "${ol_cv_h_errno_thread_specific+set}" = set; then :
19967 $as_echo_n "(cached) " >&6
19970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19971 /* end confdefs.h. */
19981 if ac_fn_c_try_link "$LINENO"; then :
19982 ol_cv_h_errno_thread_specific=yes
19984 ol_cv_h_errno_thread_specific=no
19986 rm -f core conftest.err conftest.$ac_objext \
19987 conftest$ac_exeext conftest.$ac_ext
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19991 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19993 if test $ol_cv_errno_thread_specific != yes ||
19994 test $ol_cv_h_errno_thread_specific != yes ; then
19995 LIBS="$LTHREAD_LIBS $LIBS"
20001 if test $ol_link_threads = no ; then
20002 if test $ol_with_threads = yes ; then
20003 as_fn_error "no suitable thread support" "$LINENO" 5
20006 if test $ol_with_threads = auto ; then
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
20008 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
20013 $as_echo "#define NO_THREADS 1" >>confdefs.h
20021 if test $ol_link_threads != no ; then
20023 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
20029 gmtime_r localtime_r \
20030 gethostbyname_r gethostbyaddr_r \
20033 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20034 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20035 eval as_val=\$$as_ac_var
20036 if test "x$as_val" = x""yes; then :
20037 cat >>confdefs.h <<_ACEOF
20038 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20045 if test "$ac_cv_func_ctime_r" = no ; then
20046 ol_cv_func_ctime_r_nargs=0
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20049 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20050 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then :
20051 $as_echo_n "(cached) " >&6
20053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h. */
20059 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20064 if ac_fn_c_try_compile "$LINENO"; then :
20065 ol_cv_func_ctime_r_nargs3=yes
20067 ol_cv_func_ctime_r_nargs3=no
20069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20077 time_t ti; char *buffer; ctime_r(&ti,buffer);
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083 ol_cv_func_ctime_r_nargs2=yes
20085 ol_cv_func_ctime_r_nargs2=no
20087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20090 test $ol_cv_func_ctime_r_nargs2 = no ; then
20092 ol_cv_func_ctime_r_nargs=3
20094 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20095 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20097 ol_cv_func_ctime_r_nargs=2
20100 ol_cv_func_ctime_r_nargs=0
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20105 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20107 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20109 cat >>confdefs.h <<_ACEOF
20110 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20117 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20119 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20120 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then :
20121 $as_echo_n "(cached) " >&6
20123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20124 /* end confdefs.h. */
20125 #include <sys/types.h>
20126 #include <sys/socket.h>
20127 #include <netinet/in.h>
20129 #define BUFSIZE (sizeof(struct hostent)+10)
20133 struct hostent hent; char buffer[BUFSIZE];
20134 int bufsize=BUFSIZE;int h_errno;
20135 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20136 buffer, bufsize, &h_errno);
20141 if ac_fn_c_try_compile "$LINENO"; then :
20142 ol_cv_func_gethostbyname_r_nargs5=yes
20144 ol_cv_func_gethostbyname_r_nargs5=no
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20150 #include <sys/types.h>
20151 #include <sys/socket.h>
20152 #include <netinet/in.h>
20154 #define BUFSIZE (sizeof(struct hostent)+10)
20158 struct hostent hent;struct hostent *rhent;
20159 char buffer[BUFSIZE];
20160 int bufsize=BUFSIZE;int h_errno;
20161 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20167 if ac_fn_c_try_compile "$LINENO"; then :
20168 ol_cv_func_gethostbyname_r_nargs6=yes
20170 ol_cv_func_gethostbyname_r_nargs6=no
20172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20174 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20175 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20177 ol_cv_func_gethostbyname_r_nargs=5
20179 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20180 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20182 ol_cv_func_gethostbyname_r_nargs=6
20185 ol_cv_func_gethostbyname_r_nargs=0
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20190 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20191 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20193 cat >>confdefs.h <<_ACEOF
20194 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20200 ol_cv_func_gethostbyname_r_nargs=0
20203 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20205 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20206 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then :
20207 $as_echo_n "(cached) " >&6
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; char buffer[BUFSIZE];
20220 struct in_addr add;
20221 size_t alen=sizeof(struct in_addr);
20222 int bufsize=BUFSIZE;int h_errno;
20223 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20224 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20229 if ac_fn_c_try_compile "$LINENO"; then :
20230 ol_cv_func_gethostbyaddr_r_nargs7=yes
20232 ol_cv_func_gethostbyaddr_r_nargs7=no
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20238 #include <sys/types.h>
20239 #include <sys/socket.h>
20240 #include <netinet/in.h>
20242 #define BUFSIZE (sizeof(struct hostent)+10)
20246 struct hostent hent;
20247 struct hostent *rhent; char buffer[BUFSIZE];
20248 struct in_addr add;
20249 size_t alen=sizeof(struct in_addr);
20250 int bufsize=BUFSIZE;int h_errno;
20251 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20252 alen, AF_INET, &hent, buffer, bufsize,
20258 if ac_fn_c_try_compile "$LINENO"; then :
20259 ol_cv_func_gethostbyaddr_r_nargs8=yes
20261 ol_cv_func_gethostbyaddr_r_nargs8=no
20263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20266 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20268 ol_cv_func_gethostbyaddr_r_nargs=7
20270 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20271 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20273 ol_cv_func_gethostbyaddr_r_nargs=8
20276 ol_cv_func_gethostbyaddr_r_nargs=0
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20281 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20282 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20291 ol_cv_func_gethostbyaddr_r_nargs=0
20296 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20297 ol_cv_berkeley_db=no
20298 for ac_header in db.h
20300 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20301 if test "x$ac_cv_header_db_h" = x""yes; then :
20302 cat >>confdefs.h <<_ACEOF
20303 #define HAVE_DB_H 1
20310 if test $ac_cv_header_db_h = yes; then
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20312 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20313 if test "${ol_cv_bdb_major+set}" = set; then :
20314 $as_echo_n "(cached) " >&6
20317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20318 /* end confdefs.h. */
20321 #ifndef DB_VERSION_MAJOR
20322 # define DB_VERSION_MAJOR 1
20324 __db_version DB_VERSION_MAJOR
20327 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20328 ol_cv_bdb_major=${3}
20331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20332 $as_echo "$ol_cv_bdb_major" >&6; }
20333 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20334 as_fn_error "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20338 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20339 if test "${ol_cv_bdb_minor+set}" = set; then :
20340 $as_echo_n "(cached) " >&6
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20347 #ifndef DB_VERSION_MINOR
20348 # define DB_VERSION_MINOR 0
20350 __db_version DB_VERSION_MINOR
20353 set X `eval "$ac_cpp -P conftest.$ac_ext" | $EGREP __db_version` none none
20354 ol_cv_bdb_minor=${3}
20357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20358 $as_echo "$ol_cv_bdb_minor" >&6; }
20359 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20360 as_fn_error "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20364 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20365 if test "${ol_cv_bdb_compat+set}" = set; then :
20366 $as_echo_n "(cached) " >&6
20369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20370 /* end confdefs.h. */
20374 /* this check could be improved */
20375 #ifndef DB_VERSION_MAJOR
20376 # define DB_VERSION_MAJOR 1
20378 #ifndef DB_VERSION_MINOR
20379 # define DB_VERSION_MINOR 0
20381 #ifndef DB_VERSION_PATCH
20382 # define DB_VERSION_PATCH 0
20385 #define DB_VERSION_FULL ((DB_VERSION_MAJOR<<16)|(DB_VERSION_MINOR<<8)|DB_VERSION_PATCH)
20387 /* require 4.4 or later, but less than 6.0.20 */
20388 #if DB_VERSION_FULL >= 0x040400 && DB_VERSION_FULL < 0x060014
20389 __db_version_compat
20391 #if DB_VERSION_FULL >= 0x060014
20392 #error "BerkeleyDB 6.0.20+ license is incompatible with LDAP"
20396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20397 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20398 ol_cv_bdb_compat=yes
20400 ol_cv_bdb_compat=no
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20406 $as_echo "$ol_cv_bdb_compat" >&6; }
20409 if test $ol_cv_bdb_compat != yes ; then
20410 as_fn_error "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20415 if test $ol_cv_bdb_major = 5 ; then
20416 if test $ol_cv_lib_db = no ; then
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20418 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20419 if test "${ol_cv_db_db_5_dot_m+set}" = set; then :
20420 $as_echo_n "(cached) " >&6
20423 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20425 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h. */
20430 #ifdef HAVE_DB_185_H
20431 # include <db_185.h>
20436 #ifndef DB_VERSION_MAJOR
20437 # define DB_VERSION_MAJOR 1
20441 #define NULL ((void*)0)
20448 #if DB_VERSION_MAJOR > 2
20449 db_env_create( NULL, 0 );
20450 #elif DB_VERSION_MAJOR > 1
20451 db_appexit( NULL );
20453 (void) dbopen( NULL, 0, 0, 0, NULL);
20460 if ac_fn_c_try_link "$LINENO"; then :
20461 ol_cv_db_db_5_dot_m=yes
20463 ol_cv_db_db_5_dot_m=no
20465 rm -f core conftest.err conftest.$ac_objext \
20466 conftest$ac_exeext conftest.$ac_ext
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20472 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20474 if test $ol_cv_db_db_5_dot_m = yes ; then
20475 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20479 if test $ol_cv_lib_db = no ; then
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20481 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20482 if test "${ol_cv_db_db5m+set}" = set; then :
20483 $as_echo_n "(cached) " >&6
20486 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20488 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h. */
20493 #ifdef HAVE_DB_185_H
20494 # include <db_185.h>
20499 #ifndef DB_VERSION_MAJOR
20500 # define DB_VERSION_MAJOR 1
20504 #define NULL ((void*)0)
20511 #if DB_VERSION_MAJOR > 2
20512 db_env_create( NULL, 0 );
20513 #elif DB_VERSION_MAJOR > 1
20514 db_appexit( NULL );
20516 (void) dbopen( NULL, 0, 0, 0, NULL);
20523 if ac_fn_c_try_link "$LINENO"; then :
20528 rm -f core conftest.err conftest.$ac_objext \
20529 conftest$ac_exeext conftest.$ac_ext
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20535 $as_echo "$ol_cv_db_db5m" >&6; }
20537 if test $ol_cv_db_db5m = yes ; then
20538 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20542 if test $ol_cv_lib_db = no ; then
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20544 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20545 if test "${ol_cv_db_db_5m+set}" = set; then :
20546 $as_echo_n "(cached) " >&6
20549 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20551 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h. */
20556 #ifdef HAVE_DB_185_H
20557 # include <db_185.h>
20562 #ifndef DB_VERSION_MAJOR
20563 # define DB_VERSION_MAJOR 1
20567 #define NULL ((void*)0)
20574 #if DB_VERSION_MAJOR > 2
20575 db_env_create( NULL, 0 );
20576 #elif DB_VERSION_MAJOR > 1
20577 db_appexit( NULL );
20579 (void) dbopen( NULL, 0, 0, 0, NULL);
20586 if ac_fn_c_try_link "$LINENO"; then :
20591 rm -f core conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20598 $as_echo "$ol_cv_db_db_5m" >&6; }
20600 if test $ol_cv_db_db_5m = yes ; then
20601 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20605 if test $ol_cv_lib_db = no ; then
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20607 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20608 if test "${ol_cv_db_db_5_m+set}" = set; then :
20609 $as_echo_n "(cached) " >&6
20612 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20614 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20617 /* end confdefs.h. */
20619 #ifdef HAVE_DB_185_H
20620 # include <db_185.h>
20625 #ifndef DB_VERSION_MAJOR
20626 # define DB_VERSION_MAJOR 1
20630 #define NULL ((void*)0)
20637 #if DB_VERSION_MAJOR > 2
20638 db_env_create( NULL, 0 );
20639 #elif DB_VERSION_MAJOR > 1
20640 db_appexit( NULL );
20642 (void) dbopen( NULL, 0, 0, 0, NULL);
20649 if ac_fn_c_try_link "$LINENO"; then :
20650 ol_cv_db_db_5_m=yes
20654 rm -f core conftest.err conftest.$ac_objext \
20655 conftest$ac_exeext conftest.$ac_ext
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20661 $as_echo "$ol_cv_db_db_5_m" >&6; }
20663 if test $ol_cv_db_db_5_m = yes ; then
20664 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20668 if test $ol_cv_lib_db = no ; then
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20670 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20671 if test "${ol_cv_db_db_5+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20677 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20680 /* end confdefs.h. */
20682 #ifdef HAVE_DB_185_H
20683 # include <db_185.h>
20688 #ifndef DB_VERSION_MAJOR
20689 # define DB_VERSION_MAJOR 1
20693 #define NULL ((void*)0)
20700 #if DB_VERSION_MAJOR > 2
20701 db_env_create( NULL, 0 );
20702 #elif DB_VERSION_MAJOR > 1
20703 db_appexit( NULL );
20705 (void) dbopen( NULL, 0, 0, 0, NULL);
20712 if ac_fn_c_try_link "$LINENO"; then :
20717 rm -f core conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20724 $as_echo "$ol_cv_db_db_5" >&6; }
20726 if test $ol_cv_db_db_5 = yes ; then
20727 ol_cv_lib_db=-ldb-5
20731 if test $ol_cv_lib_db = no ; then
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20733 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20734 if test "${ol_cv_db_db5+set}" = set; then :
20735 $as_echo_n "(cached) " >&6
20740 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743 /* end confdefs.h. */
20745 #ifdef HAVE_DB_185_H
20746 # include <db_185.h>
20751 #ifndef DB_VERSION_MAJOR
20752 # define DB_VERSION_MAJOR 1
20756 #define NULL ((void*)0)
20763 #if DB_VERSION_MAJOR > 2
20764 db_env_create( NULL, 0 );
20765 #elif DB_VERSION_MAJOR > 1
20766 db_appexit( NULL );
20768 (void) dbopen( NULL, 0, 0, 0, NULL);
20775 if ac_fn_c_try_link "$LINENO"; then :
20780 rm -f core conftest.err conftest.$ac_objext \
20781 conftest$ac_exeext conftest.$ac_ext
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20787 $as_echo "$ol_cv_db_db5" >&6; }
20789 if test $ol_cv_db_db5 = yes ; then
20794 elif test $ol_cv_bdb_major = 4 ; then
20795 if test $ol_cv_lib_db = no ; then
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20797 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20798 if test "${ol_cv_db_db_4_dot_m+set}" = set; then :
20799 $as_echo_n "(cached) " >&6
20802 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20804 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h. */
20809 #ifdef HAVE_DB_185_H
20810 # include <db_185.h>
20815 #ifndef DB_VERSION_MAJOR
20816 # define DB_VERSION_MAJOR 1
20820 #define NULL ((void*)0)
20827 #if DB_VERSION_MAJOR > 2
20828 db_env_create( NULL, 0 );
20829 #elif DB_VERSION_MAJOR > 1
20830 db_appexit( NULL );
20832 (void) dbopen( NULL, 0, 0, 0, NULL);
20839 if ac_fn_c_try_link "$LINENO"; then :
20840 ol_cv_db_db_4_dot_m=yes
20842 ol_cv_db_db_4_dot_m=no
20844 rm -f core conftest.err conftest.$ac_objext \
20845 conftest$ac_exeext conftest.$ac_ext
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20851 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20853 if test $ol_cv_db_db_4_dot_m = yes ; then
20854 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20858 if test $ol_cv_lib_db = no ; then
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20860 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20861 if test "${ol_cv_db_db4m+set}" = set; then :
20862 $as_echo_n "(cached) " >&6
20865 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20867 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20870 /* end confdefs.h. */
20872 #ifdef HAVE_DB_185_H
20873 # include <db_185.h>
20878 #ifndef DB_VERSION_MAJOR
20879 # define DB_VERSION_MAJOR 1
20883 #define NULL ((void*)0)
20890 #if DB_VERSION_MAJOR > 2
20891 db_env_create( NULL, 0 );
20892 #elif DB_VERSION_MAJOR > 1
20893 db_appexit( NULL );
20895 (void) dbopen( NULL, 0, 0, 0, NULL);
20902 if ac_fn_c_try_link "$LINENO"; then :
20907 rm -f core conftest.err conftest.$ac_objext \
20908 conftest$ac_exeext conftest.$ac_ext
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20914 $as_echo "$ol_cv_db_db4m" >&6; }
20916 if test $ol_cv_db_db4m = yes ; then
20917 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20921 if test $ol_cv_lib_db = no ; then
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20923 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20924 if test "${ol_cv_db_db_4m+set}" = set; then :
20925 $as_echo_n "(cached) " >&6
20928 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20933 /* end confdefs.h. */
20935 #ifdef HAVE_DB_185_H
20936 # include <db_185.h>
20941 #ifndef DB_VERSION_MAJOR
20942 # define DB_VERSION_MAJOR 1
20946 #define NULL ((void*)0)
20953 #if DB_VERSION_MAJOR > 2
20954 db_env_create( NULL, 0 );
20955 #elif DB_VERSION_MAJOR > 1
20956 db_appexit( NULL );
20958 (void) dbopen( NULL, 0, 0, 0, NULL);
20965 if ac_fn_c_try_link "$LINENO"; then :
20970 rm -f core conftest.err conftest.$ac_objext \
20971 conftest$ac_exeext conftest.$ac_ext
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
20977 $as_echo "$ol_cv_db_db_4m" >&6; }
20979 if test $ol_cv_db_db_4m = yes ; then
20980 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
20984 if test $ol_cv_lib_db = no ; then
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
20986 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
20987 if test "${ol_cv_db_db_4_m+set}" = set; then :
20988 $as_echo_n "(cached) " >&6
20991 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
20993 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20996 /* end confdefs.h. */
20998 #ifdef HAVE_DB_185_H
20999 # include <db_185.h>
21004 #ifndef DB_VERSION_MAJOR
21005 # define DB_VERSION_MAJOR 1
21009 #define NULL ((void*)0)
21016 #if DB_VERSION_MAJOR > 2
21017 db_env_create( NULL, 0 );
21018 #elif DB_VERSION_MAJOR > 1
21019 db_appexit( NULL );
21021 (void) dbopen( NULL, 0, 0, 0, NULL);
21028 if ac_fn_c_try_link "$LINENO"; then :
21029 ol_cv_db_db_4_m=yes
21033 rm -f core conftest.err conftest.$ac_objext \
21034 conftest$ac_exeext conftest.$ac_ext
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21040 $as_echo "$ol_cv_db_db_4_m" >&6; }
21042 if test $ol_cv_db_db_4_m = yes ; then
21043 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21047 if test $ol_cv_lib_db = no ; then
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21049 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21050 if test "${ol_cv_db_db_4+set}" = set; then :
21051 $as_echo_n "(cached) " >&6
21056 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h. */
21061 #ifdef HAVE_DB_185_H
21062 # include <db_185.h>
21067 #ifndef DB_VERSION_MAJOR
21068 # define DB_VERSION_MAJOR 1
21072 #define NULL ((void*)0)
21079 #if DB_VERSION_MAJOR > 2
21080 db_env_create( NULL, 0 );
21081 #elif DB_VERSION_MAJOR > 1
21082 db_appexit( NULL );
21084 (void) dbopen( NULL, 0, 0, 0, NULL);
21091 if ac_fn_c_try_link "$LINENO"; then :
21096 rm -f core conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21103 $as_echo "$ol_cv_db_db_4" >&6; }
21105 if test $ol_cv_db_db_4 = yes ; then
21106 ol_cv_lib_db=-ldb-4
21110 if test $ol_cv_lib_db = no ; then
21111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21112 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21113 if test "${ol_cv_db_db4+set}" = set; then :
21114 $as_echo_n "(cached) " >&6
21119 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21122 /* end confdefs.h. */
21124 #ifdef HAVE_DB_185_H
21125 # include <db_185.h>
21130 #ifndef DB_VERSION_MAJOR
21131 # define DB_VERSION_MAJOR 1
21135 #define NULL ((void*)0)
21142 #if DB_VERSION_MAJOR > 2
21143 db_env_create( NULL, 0 );
21144 #elif DB_VERSION_MAJOR > 1
21145 db_appexit( NULL );
21147 (void) dbopen( NULL, 0, 0, 0, NULL);
21154 if ac_fn_c_try_link "$LINENO"; then :
21159 rm -f core conftest.err conftest.$ac_objext \
21160 conftest$ac_exeext conftest.$ac_ext
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21166 $as_echo "$ol_cv_db_db4" >&6; }
21168 if test $ol_cv_db_db4 = yes ; then
21174 if test $ol_cv_lib_db = no ; then
21175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21176 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21177 if test "${ol_cv_db_db+set}" = set; then :
21178 $as_echo_n "(cached) " >&6
21183 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h. */
21188 #ifdef HAVE_DB_185_H
21189 # include <db_185.h>
21194 #ifndef DB_VERSION_MAJOR
21195 # define DB_VERSION_MAJOR 1
21199 #define NULL ((void*)0)
21206 #if DB_VERSION_MAJOR > 2
21207 db_env_create( NULL, 0 );
21208 #elif DB_VERSION_MAJOR > 1
21209 db_appexit( NULL );
21211 (void) dbopen( NULL, 0, 0, 0, NULL);
21218 if ac_fn_c_try_link "$LINENO"; then :
21223 rm -f core conftest.err conftest.$ac_objext \
21224 conftest$ac_exeext conftest.$ac_ext
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21230 $as_echo "$ol_cv_db_db" >&6; }
21232 if test $ol_cv_db_db = yes ; then
21237 if test $ol_cv_lib_db = no ; then
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21239 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21240 if test "${ol_cv_db_none+set}" = set; then :
21241 $as_echo_n "(cached) " >&6
21246 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h. */
21251 #ifdef HAVE_DB_185_H
21252 # include <db_185.h>
21257 #ifndef DB_VERSION_MAJOR
21258 # define DB_VERSION_MAJOR 1
21262 #define NULL ((void*)0)
21269 #if DB_VERSION_MAJOR > 2
21270 db_env_create( NULL, 0 );
21271 #elif DB_VERSION_MAJOR > 1
21272 db_appexit( NULL );
21274 (void) dbopen( NULL, 0, 0, 0, NULL);
21281 if ac_fn_c_try_link "$LINENO"; then :
21286 rm -f core conftest.err conftest.$ac_objext \
21287 conftest$ac_exeext conftest.$ac_ext
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21293 $as_echo "$ol_cv_db_none" >&6; }
21295 if test $ol_cv_db_none = yes ; then
21301 if test "$ol_cv_lib_db" != no ; then
21302 ol_cv_berkeley_db=yes
21303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21304 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21305 if test "${ol_cv_berkeley_db_version+set}" = set; then :
21306 $as_echo_n "(cached) " >&6
21310 LIBS="$LTHREAD_LIBS $LIBS"
21311 if test $ol_cv_lib_db != yes ; then
21312 LIBS="$ol_cv_lib_db $LIBS"
21315 if test "$cross_compiling" = yes; then :
21316 ol_cv_berkeley_db_version=cross
21318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21319 /* end confdefs.h. */
21321 #ifdef HAVE_DB_185_H
21326 #ifndef DB_VERSION_MAJOR
21327 # define DB_VERSION_MAJOR 1
21330 #define NULL ((void *)0)
21334 #if DB_VERSION_MAJOR > 1
21336 int major, minor, patch;
21338 version = db_version( &major, &minor, &patch );
21340 if( major != DB_VERSION_MAJOR ||
21341 minor != DB_VERSION_MINOR ||
21342 patch != DB_VERSION_PATCH )
21344 printf("Berkeley DB version mismatch\n"
21345 "\theader: %s\n\tlibrary: %s\n",
21346 DB_VERSION_STRING, version);
21354 if ac_fn_c_try_run "$LINENO"; then :
21355 ol_cv_berkeley_db_version=yes
21357 ol_cv_berkeley_db_version=no
21359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21360 conftest.$ac_objext conftest.beam conftest.$ac_ext
21367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21368 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21370 if test $ol_cv_berkeley_db_version = no ; then
21371 as_fn_error "Berkeley DB version mismatch" "$LINENO" 5
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21375 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21376 if test "${ol_cv_berkeley_db_thread+set}" = set; then :
21377 $as_echo_n "(cached) " >&6
21381 LIBS="$LTHREAD_LIBS $LIBS"
21382 if test $ol_cv_lib_db != yes ; then
21383 LIBS="$ol_cv_lib_db $LIBS"
21386 if test "$cross_compiling" = yes; then :
21387 ol_cv_berkeley_db_thread=cross
21389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h. */
21392 #ifdef HAVE_DB_185_H
21398 #define NULL ((void *)0)
21403 u_int32_t flags = DB_CREATE |
21409 #if DB_VERSION_MAJOR > 2
21410 DB_ENV *env = NULL;
21412 rc = db_env_create( &env, 0 );
21414 flags |= DB_INIT_MPOOL;
21415 #ifdef DB_MPOOL_PRIVATE
21416 flags |= DB_MPOOL_PRIVATE;
21420 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21424 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21425 rc = (env->open)( env, NULL, flags, 0 );
21427 rc = (env->open)( env, NULL, NULL, flags, 0 );
21431 rc = env->close( env, 0 );
21435 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21441 memset( &env, '\0', sizeof(env) );
21443 rc = db_appinit( NULL, NULL, &env, flags );
21446 db_appexit( &env );
21449 unlink("__db_mpool.share");
21450 unlink("__db_lock.share");
21456 if ac_fn_c_try_run "$LINENO"; then :
21457 ol_cv_berkeley_db_thread=yes
21459 ol_cv_berkeley_db_thread=no
21461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21462 conftest.$ac_objext conftest.beam conftest.$ac_ext
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21470 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21472 if test $ol_cv_berkeley_db_thread != no ; then
21474 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21482 if test $ol_cv_berkeley_db = no ; then
21483 as_fn_error "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21487 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21490 if test $ol_cv_lib_db != yes ; then
21491 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21494 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21500 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21501 BUILD_LIBS_DYNAMIC=shared
21503 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21507 BUILD_LIBS_DYNAMIC=static
21511 if test $ol_enable_wrappers != no ; then
21512 for ac_header in tcpd.h
21514 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21515 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
21516 cat >>confdefs.h <<_ACEOF
21517 #define HAVE_TCPD_H 1
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21521 $as_echo_n "checking for TCP wrappers library... " >&6; }
21523 LIBS="$LIBS -lwrap"
21524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21525 /* end confdefs.h. */
21528 int allow_severity = 0;
21529 int deny_severity = 0;
21531 struct request_info *req;
21543 if ac_fn_c_try_link "$LINENO"; then :
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21545 $as_echo "-lwrap" >&6; }
21551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21552 /* end confdefs.h. */
21555 int allow_severity = 0;
21556 int deny_severity = 0;
21558 struct request_info *req;
21570 if ac_fn_c_try_link "$LINENO"; then :
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21572 $as_echo "-lwrap -lnsl" >&6; }
21574 LIBS="$save_LIBS -lnsl"
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21582 rm -f core conftest.err conftest.$ac_objext \
21583 conftest$ac_exeext conftest.$ac_ext
21585 rm -f core conftest.err conftest.$ac_objext \
21586 conftest$ac_exeext conftest.$ac_ext
21594 if test $have_wrappers = yes ; then
21596 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21599 elif test $ol_enable_wrappers = yes ; then
21600 as_fn_error "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21603 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21608 if test $ol_enable_syslog != no ; then
21609 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21610 if test "x$ac_cv_func_openlog" = x""yes; then :
21614 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21615 { as_fn_set_status select appropriate options or disable
21616 as_fn_error "could not find syslog" "$LINENO" 5; }
21618 ol_enable_syslog=$ac_cv_func_openlog
21622 if test $ol_enable_sql != no ; then
21623 for ac_header in sql.h sqlext.h
21625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21627 eval as_val=\$$as_ac_Header
21628 if test "x$as_val" = x""yes; then :
21629 cat >>confdefs.h <<_ACEOF
21630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21635 as_fn_error "could not locate SQL headers" "$LINENO" 5
21643 LIBS="$LTHREAD_LIBS $LIBS"
21645 if test $ol_with_odbc = auto ; then
21646 ol_with_odbc="iodbc unixodbc odbc32"
21649 for odbc in $ol_with_odbc ; do
21650 if test $ol_link_sql = no ; then
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21654 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21655 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then :
21656 $as_echo_n "(cached) " >&6
21658 ac_check_lib_save_LIBS=$LIBS
21659 LIBS="-liodbc $LIBS"
21660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21661 /* end confdefs.h. */
21663 /* Override any GCC internal prototype to avoid an error.
21664 Use char because int might match the return type of a GCC
21665 builtin and then its argument prototype would still apply. */
21669 char SQLDriverConnect ();
21673 return SQLDriverConnect ();
21678 if ac_fn_c_try_link "$LINENO"; then :
21679 ac_cv_lib_iodbc_SQLDriverConnect=yes
21681 ac_cv_lib_iodbc_SQLDriverConnect=no
21683 rm -f core conftest.err conftest.$ac_objext \
21684 conftest$ac_exeext conftest.$ac_ext
21685 LIBS=$ac_check_lib_save_LIBS
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21688 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21689 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = x""yes; then :
21695 if test $have_iodbc = yes ; then
21696 ol_link_sql="-liodbc"
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21702 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21703 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then :
21704 $as_echo_n "(cached) " >&6
21706 ac_check_lib_save_LIBS=$LIBS
21707 LIBS="-lodbc $LIBS"
21708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h. */
21711 /* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
21717 char SQLDriverConnect ();
21721 return SQLDriverConnect ();
21726 if ac_fn_c_try_link "$LINENO"; then :
21727 ac_cv_lib_odbc_SQLDriverConnect=yes
21729 ac_cv_lib_odbc_SQLDriverConnect=no
21731 rm -f core conftest.err conftest.$ac_objext \
21732 conftest$ac_exeext conftest.$ac_ext
21733 LIBS=$ac_check_lib_save_LIBS
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21736 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21737 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = x""yes; then :
21743 if test $have_odbc = yes ; then
21744 ol_link_sql="-lodbc"
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21750 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21751 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then :
21752 $as_echo_n "(cached) " >&6
21754 ac_check_lib_save_LIBS=$LIBS
21755 LIBS="-lodbc32 $LIBS"
21756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21757 /* end confdefs.h. */
21759 /* Override any GCC internal prototype to avoid an error.
21760 Use char because int might match the return type of a GCC
21761 builtin and then its argument prototype would still apply. */
21765 char SQLDriverConnect ();
21769 return SQLDriverConnect ();
21774 if ac_fn_c_try_link "$LINENO"; then :
21775 ac_cv_lib_odbc32_SQLDriverConnect=yes
21777 ac_cv_lib_odbc32_SQLDriverConnect=no
21779 rm -f core conftest.err conftest.$ac_objext \
21780 conftest$ac_exeext conftest.$ac_ext
21781 LIBS=$ac_check_lib_save_LIBS
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21784 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21785 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = x""yes; then :
21792 if test $have_odbc32 = no ; then
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21794 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21796 LIBS="$LIBS -lodbc32"
21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21799 #include <windows.h>
21800 #include <sqlext.h>
21806 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21812 if ac_fn_c_try_link "$LINENO"; then :
21817 rm -f core conftest.err conftest.$ac_objext \
21818 conftest$ac_exeext conftest.$ac_ext
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21821 $as_echo "$have_odbc32" >&6; }
21824 if test $have_odbc32 = yes ; then
21825 ol_link_sql="-lodbc32"
21830 as_fn_error "unknown ODBC library" "$LINENO" 5
21838 if test $ol_link_sql != no ; then
21839 SLAPD_SQL_LIBS="$ol_link_sql"
21841 elif test $ol_enable_sql != auto ; then
21842 as_fn_error "could not locate suitable ODBC library" "$LINENO" 5
21847 if test $ol_enable_ndb != no ; then
21848 # Extract the first word of "mysql_config", so it can be a program name with args.
21849 set dummy mysql_config; ac_word=$2
21850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21851 $as_echo_n "checking for $ac_word... " >&6; }
21852 if test "${ac_cv_prog_MYSQL+set}" = set; then :
21853 $as_echo_n "(cached) " >&6
21855 if test -n "$MYSQL"; then
21856 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859 for as_dir in $PATH
21862 test -z "$as_dir" && as_dir=.
21863 for ac_exec_ext in '' $ac_executable_extensions; do
21864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21865 ac_cv_prog_MYSQL="yes"
21866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21875 MYSQL=$ac_cv_prog_MYSQL
21876 if test -n "$MYSQL"; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21878 $as_echo "$MYSQL" >&6; }
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881 $as_echo "no" >&6; }
21885 if test "$MYSQL" != yes ; then
21886 as_fn_error "could not locate mysql_config" "$LINENO" 5
21889 SQL_INC=`mysql_config --include`
21890 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21892 save_CPPFLAGS="$CPPFLAGS"
21893 CPPFLAGS="$SLAPD_NDB_INCS"
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21895 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21897 /* end confdefs.h. */
21898 #include <NdbApi.hpp>
21900 if ac_fn_c_try_cpp "$LINENO"; then :
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21902 $as_echo "yes" >&6; }
21904 as_fn_error "could not locate NdbApi headers" "$LINENO" 5
21907 rm -f conftest.err conftest.$ac_ext
21908 CPPFLAGS="$save_CPPFLAGS"
21910 SQL_LIB=`mysql_config --libs_r`
21911 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21913 save_LDFLAGS="$LDFLAGS"
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21917 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21918 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then :
21919 $as_echo_n "(cached) " >&6
21921 ac_check_lib_save_LIBS=$LIBS
21922 LIBS="-lndbclient -lstdc++ $LIBS"
21923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21924 /* end confdefs.h. */
21926 /* Override any GCC internal prototype to avoid an error.
21927 Use char because int might match the return type of a GCC
21928 builtin and then its argument prototype would still apply. */
21936 return ndb_init ();
21941 if ac_fn_c_try_link "$LINENO"; then :
21942 ac_cv_lib_ndbclient_ndb_init=yes
21944 ac_cv_lib_ndbclient_ndb_init=no
21946 rm -f core conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
21948 LIBS=$ac_check_lib_save_LIBS
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
21951 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
21952 if test "x$ac_cv_lib_ndbclient_ndb_init" = x""yes; then :
21956 as_fn_error "could not locate ndbclient library" "$LINENO" 5
21961 LDFLAGS="$save_LDFLAGS"
21963 if test "$ol_enable_ndb" = yes ; then
21964 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
21969 for ac_header in unicode/utypes.h
21971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21973 eval as_val=\$$as_ac_Header
21974 if test "x$as_val" = x""yes; then :
21975 cat >>confdefs.h <<_ACEOF
21976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21983 if test $ac_cv_header_unicode_utypes_h = yes ; then
21984 OL_ICULIBS="-licuuc -licudata"
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
21987 $as_echo_n "checking for ICU libraries... " >&6; }
21988 if test "${ol_cv_lib_icu+set}" = set; then :
21989 $as_echo_n "(cached) " >&6
21993 LIBS="$OL_ICULIBS $LIBS"
21994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h. */
21997 #include <unicode/utypes.h>
22003 (void) u_errorName(0);
22009 if ac_fn_c_try_link "$LINENO"; then :
22014 rm -f core conftest.err conftest.$ac_objext \
22015 conftest$ac_exeext conftest.$ac_ext
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
22020 $as_echo "$ol_cv_lib_icu" >&6; }
22022 if test $ol_cv_lib_icu != no ; then
22023 ol_icu="$OL_ICULIBS"
22025 $as_echo "#define HAVE_ICU 1" >>confdefs.h
22030 if test "$ol_icu" = no ; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
22032 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22039 if test $ol_with_cyrus_sasl != no ; then
22040 for ac_header in sasl/sasl.h sasl.h
22042 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22043 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22044 eval as_val=\$$as_ac_Header
22045 if test "x$as_val" = x""yes; then :
22046 cat >>confdefs.h <<_ACEOF
22047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22055 if test $ac_cv_header_sasl_sasl_h = yes ||
22056 test $ac_cv_header_sasl_h = yes; then
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22058 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22059 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then :
22060 $as_echo_n "(cached) " >&6
22062 ac_check_lib_save_LIBS=$LIBS
22063 LIBS="-lsasl2 $LIBS"
22064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065 /* end confdefs.h. */
22067 /* Override any GCC internal prototype to avoid an error.
22068 Use char because int might match the return type of a GCC
22069 builtin and then its argument prototype would still apply. */
22073 char sasl_client_init ();
22077 return sasl_client_init ();
22082 if ac_fn_c_try_link "$LINENO"; then :
22083 ac_cv_lib_sasl2_sasl_client_init=yes
22085 ac_cv_lib_sasl2_sasl_client_init=no
22087 rm -f core conftest.err conftest.$ac_objext \
22088 conftest$ac_exeext conftest.$ac_ext
22089 LIBS=$ac_check_lib_save_LIBS
22091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22092 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22093 if test "x$ac_cv_lib_sasl2_sasl_client_init" = x""yes; then :
22094 ol_link_sasl="-lsasl2"
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22097 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22098 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then :
22099 $as_echo_n "(cached) " >&6
22101 ac_check_lib_save_LIBS=$LIBS
22102 LIBS="-lsasl $LIBS"
22103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104 /* end confdefs.h. */
22106 /* Override any GCC internal prototype to avoid an error.
22107 Use char because int might match the return type of a GCC
22108 builtin and then its argument prototype would still apply. */
22112 char sasl_client_init ();
22116 return sasl_client_init ();
22121 if ac_fn_c_try_link "$LINENO"; then :
22122 ac_cv_lib_sasl_sasl_client_init=yes
22124 ac_cv_lib_sasl_sasl_client_init=no
22126 rm -f core conftest.err conftest.$ac_objext \
22127 conftest$ac_exeext conftest.$ac_ext
22128 LIBS=$ac_check_lib_save_LIBS
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22131 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22132 if test "x$ac_cv_lib_sasl_sasl_client_init" = x""yes; then :
22133 ol_link_sasl="-lsasl"
22140 if test $ol_link_sasl = no ; then
22141 if test $ol_with_cyrus_sasl != auto ; then
22142 as_fn_error "Could not locate Cyrus SASL" "$LINENO" 5
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22145 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22147 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22148 if test $ol_link_tls = no ; then
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22150 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22155 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22156 if test "${ol_cv_sasl_compat+set}" = set; then :
22157 $as_echo_n "(cached) " >&6
22160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22161 /* end confdefs.h. */
22163 #ifdef HAVE_SASL_SASL_H
22164 #include <sasl/sasl.h>
22169 /* Require 2.1.15+ */
22170 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22171 char *__sasl_compat = "2.2+ or better okay (we guess)";
22172 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22173 && SASL_VERSION_STEP >=15
22174 char *__sasl_compat = "2.1.15+ or better okay";
22178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22179 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22180 ol_cv_sasl_compat=yes
22182 ol_cv_sasl_compat=no
22187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22188 $as_echo "$ol_cv_sasl_compat" >&6; }
22190 if test $ol_cv_sasl_compat = no ; then
22192 as_fn_error "Cyrus SASL library located but is incompatible" "$LINENO" 5
22196 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22198 SASL_LIBS="$ol_link_sasl"
22199 if test $ol_enable_spasswd != no ; then
22200 ol_link_spasswd=yes
22203 ac_save_LIBS="$LIBS"
22204 LIBS="$LIBS $ol_link_sasl"
22205 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22206 if test "x$ac_cv_func_sasl_version" = x""yes; then :
22208 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22212 LIBS="$ac_save_LIBS"
22218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22219 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22220 if test $ol_link_tls = no ; then
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22222 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22226 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22228 if test -r /dev/urandom ; then
22229 dev="/dev/urandom";
22230 elif test -r /idev/urandom ; then
22231 dev="/idev/urandom";
22232 elif test -r /dev/srandom ; then
22233 dev="/dev/srandom";
22234 elif test -r /dev/random ; then
22236 elif test -r /idev/random ; then
22237 dev="/idev/random";
22240 if test $dev != no ; then
22242 cat >>confdefs.h <<_ACEOF
22243 #define URANDOM_DEVICE "$dev"
22250 if test $ol_with_fetch != no ; then
22252 LIBS="-lfetch -lcom_err $LIBS"
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22254 $as_echo_n "checking fetch(3) library... " >&6; }
22255 if test "${ol_cv_lib_fetch+set}" = set; then :
22256 $as_echo_n "(cached) " >&6
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260 /* end confdefs.h. */
22262 #ifdef HAVE_SYS_PARAM_H
22263 #include <sys/param.h>
22270 struct url *u = fetchParseURL("file:///");
22275 if ac_fn_c_try_link "$LINENO"; then :
22276 ol_cv_lib_fetch=yes
22280 rm -f core conftest.err conftest.$ac_objext \
22281 conftest$ac_exeext conftest.$ac_ext
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22284 $as_echo "$ol_cv_lib_fetch" >&6; }
22286 if test $ol_cv_lib_fetch != no ; then
22287 ol_link_fetch="-lfetch -lcom_err"
22289 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22294 if test $ol_cv_lib_fetch != no ; then
22295 LIBS="$LIBS $ol_link_fetch"
22296 ol_link_fetch=freebsd
22298 elif test $ol_with_fetch != auto ; then
22299 as_fn_error "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22303 if test $ol_enable_crypt != no ; then
22305 LIBS="$TLS_LIBS $LIBS"
22307 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22308 if test "x$ac_cv_func_crypt" = x""yes; then :
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22314 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22315 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
22316 $as_echo_n "(cached) " >&6
22318 ac_check_lib_save_LIBS=$LIBS
22319 LIBS="-lcrypt $LIBS"
22320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22321 /* end confdefs.h. */
22323 /* Override any GCC internal prototype to avoid an error.
22324 Use char because int might match the return type of a GCC
22325 builtin and then its argument prototype would still apply. */
22338 if ac_fn_c_try_link "$LINENO"; then :
22339 ac_cv_lib_crypt_crypt=yes
22341 ac_cv_lib_crypt_crypt=no
22343 rm -f core conftest.err conftest.$ac_objext \
22344 conftest$ac_exeext conftest.$ac_ext
22345 LIBS=$ac_check_lib_save_LIBS
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22348 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22349 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
22350 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22361 if test $have_crypt = yes ; then
22363 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22367 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22368 if test $ol_enable_crypt = yes ; then
22369 as_fn_error "could not find crypt, select appropriate options or disable" "$LINENO" 5
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22373 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22378 if test $ol_enable_proctitle != no ; then
22379 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22380 if test "x$ac_cv_func_setproctitle" = x""yes; then :
22381 have_setproctitle=yes
22384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22385 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22386 if test "${ac_cv_lib_util_setproctitle+set}" = set; then :
22387 $as_echo_n "(cached) " >&6
22389 ac_check_lib_save_LIBS=$LIBS
22390 LIBS="-lutil $LIBS"
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22394 /* Override any GCC internal prototype to avoid an error.
22395 Use char because int might match the return type of a GCC
22396 builtin and then its argument prototype would still apply. */
22400 char setproctitle ();
22404 return setproctitle ();
22409 if ac_fn_c_try_link "$LINENO"; then :
22410 ac_cv_lib_util_setproctitle=yes
22412 ac_cv_lib_util_setproctitle=no
22414 rm -f core conftest.err conftest.$ac_objext \
22415 conftest$ac_exeext conftest.$ac_ext
22416 LIBS=$ac_check_lib_save_LIBS
22418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22419 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22420 if test "x$ac_cv_lib_util_setproctitle" = x""yes; then :
22421 have_setproctitle=yes
22422 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22424 have_setproctitle=no
22425 case " $LIBOBJS " in
22426 *" setproctitle.$ac_objext "* ) ;;
22427 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22431 LIBSRCS="$LIBSRCS setproctitle.c"
22437 if test $have_setproctitle = yes ; then
22439 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22444 if test $ol_enable_slp != no ; then
22445 for ac_header in slp.h
22447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22448 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22449 eval as_val=\$$as_ac_Header
22450 if test "x$as_val" = x""yes; then :
22451 cat >>confdefs.h <<_ACEOF
22452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22460 if test $ac_cv_header_slp_h = yes ; then
22461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22462 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22463 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
22464 $as_echo_n "(cached) " >&6
22466 ac_check_lib_save_LIBS=$LIBS
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22471 /* Override any GCC internal prototype to avoid an error.
22472 Use char because int might match the return type of a GCC
22473 builtin and then its argument prototype would still apply. */
22486 if ac_fn_c_try_link "$LINENO"; then :
22487 ac_cv_lib_slp_SLPOpen=yes
22489 ac_cv_lib_slp_SLPOpen=no
22491 rm -f core conftest.err conftest.$ac_objext \
22492 conftest$ac_exeext conftest.$ac_ext
22493 LIBS=$ac_check_lib_save_LIBS
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22496 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22497 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
22503 if test $have_slp = yes ; then
22505 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22507 SLAPD_SLP_LIBS=-lslp
22510 elif test $ol_enable_slp = yes ; then
22511 as_fn_error "SLP not found" "$LINENO" 5
22516 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22517 if test "x$ac_cv_type_mode_t" = x""yes; then :
22521 cat >>confdefs.h <<_ACEOF
22527 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22528 if test "x$ac_cv_type_off_t" = x""yes; then :
22532 cat >>confdefs.h <<_ACEOF
22538 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22539 if test "x$ac_cv_type_pid_t" = x""yes; then :
22543 cat >>confdefs.h <<_ACEOF
22549 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22550 if test "x$ac_cv_type_ssize_t" = x""yes; then :
22554 cat >>confdefs.h <<_ACEOF
22555 #define ssize_t signed int
22560 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22561 if test "x$ac_cv_type_caddr_t" = x""yes; then :
22565 cat >>confdefs.h <<_ACEOF
22566 #define caddr_t char *
22571 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22572 if test "x$ac_cv_type_size_t" = x""yes; then :
22576 cat >>confdefs.h <<_ACEOF
22577 #define size_t unsigned
22583 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22584 if test "x$ac_cv_type_long_long" = x""yes; then :
22586 cat >>confdefs.h <<_ACEOF
22587 #define HAVE_LONG_LONG 1
22593 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22594 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
22596 cat >>confdefs.h <<_ACEOF
22597 #define HAVE_PTRDIFF_T 1
22605 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22606 #ifdef HAVE_SYS_SOCKET_H
22607 #include <sys/socket.h>
22610 if test "x$ac_cv_type_socklen_t" = x""yes; then :
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22616 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22617 if test "${ol_cv_type_ber_socklen_t+set}" = set; then :
22618 $as_echo_n "(cached) " >&6
22621 set socklen_t int unsigned "unsigned long" long size_t
22622 test "$ac_cv_type_socklen_t" = yes || shift
22623 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22624 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22627 $ac_includes_default
22628 #ifdef HAVE_SYS_SOCKET_H
22629 #include <sys/socket.h>
22631 extern int accept(int s, $addrtype *ap, $lentype *lp);
22637 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22643 if ac_fn_c_try_compile "$LINENO"; then :
22644 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22651 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22653 cat >>confdefs.h <<_ACEOF
22654 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22658 if test "$ac_cv_type_socklen_t" != yes; then
22660 cat >>confdefs.h <<_ACEOF
22661 #define socklen_t $ol_cv_type_ber_socklen_t
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22668 $as_echo_n "checking return type of signal handlers... " >&6; }
22669 if test "${ac_cv_type_signal+set}" = set; then :
22670 $as_echo_n "(cached) " >&6
22672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22673 /* end confdefs.h. */
22674 #include <sys/types.h>
22675 #include <signal.h>
22680 return *(signal (0, 0)) (0) == 1;
22685 if ac_fn_c_try_compile "$LINENO"; then :
22686 ac_cv_type_signal=int
22688 ac_cv_type_signal=void
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22693 $as_echo "$ac_cv_type_signal" >&6; }
22695 cat >>confdefs.h <<_ACEOF
22696 #define RETSIGTYPE $ac_cv_type_signal
22701 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22702 #include <signal.h>
22705 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then :
22709 cat >>confdefs.h <<_ACEOF
22710 #define sig_atomic_t int
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22717 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22718 if test "${ac_cv_type_uid_t+set}" = set; then :
22719 $as_echo_n "(cached) " >&6
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722 /* end confdefs.h. */
22723 #include <sys/types.h>
22726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22727 $EGREP "uid_t" >/dev/null 2>&1; then :
22728 ac_cv_type_uid_t=yes
22730 ac_cv_type_uid_t=no
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22736 $as_echo "$ac_cv_type_uid_t" >&6; }
22737 if test $ac_cv_type_uid_t = no; then
22739 $as_echo "#define uid_t int" >>confdefs.h
22742 $as_echo "#define gid_t int" >>confdefs.h
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22748 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22749 if test "${ac_cv_header_time+set}" = set; then :
22750 $as_echo_n "(cached) " >&6
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22754 #include <sys/types.h>
22755 #include <sys/time.h>
22761 if ((struct tm *) 0)
22767 if ac_fn_c_try_compile "$LINENO"; then :
22768 ac_cv_header_time=yes
22770 ac_cv_header_time=no
22772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22775 $as_echo "$ac_cv_header_time" >&6; }
22776 if test $ac_cv_header_time = yes; then
22778 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22784 if test "${ac_cv_struct_tm+set}" = set; then :
22785 $as_echo_n "(cached) " >&6
22787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22788 /* end confdefs.h. */
22789 #include <sys/types.h>
22796 int *p = &tm.tm_sec;
22802 if ac_fn_c_try_compile "$LINENO"; then :
22803 ac_cv_struct_tm=time.h
22805 ac_cv_struct_tm=sys/time.h
22807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22810 $as_echo "$ac_cv_struct_tm" >&6; }
22811 if test $ac_cv_struct_tm = sys/time.h; then
22813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22817 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22818 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
22820 cat >>confdefs.h <<_ACEOF
22821 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22827 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
22830 if test "x$ac_cv_member_struct_passwd_pw_gecos" = x""yes; then :
22832 cat >>confdefs.h <<_ACEOF
22833 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
22839 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
22842 if test "x$ac_cv_member_struct_passwd_pw_passwd" = x""yes; then :
22844 cat >>confdefs.h <<_ACEOF
22845 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
22853 $as_echo_n "checking if toupper() requires islower()... " >&6; }
22854 if test "${ol_cv_c_upper_lower+set}" = set; then :
22855 $as_echo_n "(cached) " >&6
22858 if test "$cross_compiling" = yes; then :
22859 ol_cv_c_upper_lower=safe
22861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22862 /* end confdefs.h. */
22867 if ('C' == toupper('C'))
22873 if ac_fn_c_try_run "$LINENO"; then :
22874 ol_cv_c_upper_lower=no
22876 ol_cv_c_upper_lower=yes
22878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22879 conftest.$ac_objext conftest.beam conftest.$ac_ext
22883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
22884 $as_echo "$ol_cv_c_upper_lower" >&6; }
22885 if test $ol_cv_c_upper_lower != no ; then
22887 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
22891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22892 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22893 if test "${ac_cv_c_const+set}" = set; then :
22894 $as_echo_n "(cached) " >&6
22896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22897 /* end confdefs.h. */
22902 /* FIXME: Include the comments suggested by Paul. */
22903 #ifndef __cplusplus
22904 /* Ultrix mips cc rejects this. */
22905 typedef int charset[2];
22907 /* SunOS 4.1.1 cc rejects this. */
22908 char const *const *pcpcc;
22910 /* NEC SVR4.0.2 mips cc rejects this. */
22911 struct point {int x, y;};
22912 static struct point const zero = {0,0};
22913 /* AIX XL C 1.02.0.0 rejects this.
22914 It does not let you subtract one const X* pointer from another in
22915 an arm of an if-expression whose if-part is not a constant
22917 const char *g = "string";
22918 pcpcc = &g + (g ? g-g : 0);
22919 /* HPUX 7.0 cc rejects these. */
22921 ppc = (char**) pcpcc;
22922 pcpcc = (char const *const *) ppc;
22923 { /* SCO 3.2v4 cc rejects this. */
22925 char const *s = 0 ? (char *) 0 : (char const *) 0;
22930 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22931 int x[] = {25, 17};
22932 const int *foo = &x[0];
22935 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22936 typedef const int *iptr;
22940 { /* AIX XL C 1.02.0.0 rejects this saying
22941 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22942 struct s { int j; const int *ap[3]; };
22943 struct s *b; b->j = 5;
22945 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22946 const int foo = 10;
22947 if (!foo) return 0;
22949 return !cs[0] && !zero.x;
22956 if ac_fn_c_try_compile "$LINENO"; then :
22961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22964 $as_echo "$ac_cv_c_const" >&6; }
22965 if test $ac_cv_c_const = no; then
22967 $as_echo "#define const /**/" >>confdefs.h
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
22972 $as_echo_n "checking if compiler understands volatile... " >&6; }
22973 if test "${ol_cv_c_volatile+set}" = set; then :
22974 $as_echo_n "(cached) " >&6
22976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22977 /* end confdefs.h. */
22982 volatile int a; int * volatile b = x ? &y : &z;
22983 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22989 if ac_fn_c_try_compile "$LINENO"; then :
22990 ol_cv_c_volatile=yes
22992 ol_cv_c_volatile=no
22994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
22997 $as_echo "$ol_cv_c_volatile" >&6; }
22998 if test $ol_cv_c_volatile = yes; then
23002 $as_echo "#define volatile /**/" >>confdefs.h
23007 if test $cross_compiling = yes ; then
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
23009 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
23011 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23015 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23016 if test "${ac_cv_c_bigendian+set}" = set; then :
23017 $as_echo_n "(cached) " >&6
23019 ac_cv_c_bigendian=unknown
23020 # See if we're dealing with a universal compiler.
23021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23022 /* end confdefs.h. */
23023 #ifndef __APPLE_CC__
23024 not a universal capable compiler
23029 if ac_fn_c_try_compile "$LINENO"; then :
23031 # Check for potential -arch flags. It is not universal unless
23032 # there are at least two -arch flags with different values.
23035 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23036 if test -n "$ac_prev"; then
23038 i?86 | x86_64 | ppc | ppc64)
23039 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23042 ac_cv_c_bigendian=universal
23048 elif test "x$ac_word" = "x-arch"; then
23053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23054 if test $ac_cv_c_bigendian = unknown; then
23055 # See if sys/param.h defines the BYTE_ORDER macro.
23056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h. */
23058 #include <sys/types.h>
23059 #include <sys/param.h>
23064 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23065 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23067 bogus endian macros
23074 if ac_fn_c_try_compile "$LINENO"; then :
23075 # It does; now see whether it defined to BIG_ENDIAN or not.
23076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23077 /* end confdefs.h. */
23078 #include <sys/types.h>
23079 #include <sys/param.h>
23084 #if BYTE_ORDER != BIG_ENDIAN
23092 if ac_fn_c_try_compile "$LINENO"; then :
23093 ac_cv_c_bigendian=yes
23095 ac_cv_c_bigendian=no
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23101 if test $ac_cv_c_bigendian = unknown; then
23102 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h. */
23105 #include <limits.h>
23110 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23111 bogus endian macros
23118 if ac_fn_c_try_compile "$LINENO"; then :
23119 # It does; now see whether it defined to _BIG_ENDIAN or not.
23120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23121 /* end confdefs.h. */
23122 #include <limits.h>
23127 #ifndef _BIG_ENDIAN
23135 if ac_fn_c_try_compile "$LINENO"; then :
23136 ac_cv_c_bigendian=yes
23138 ac_cv_c_bigendian=no
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23144 if test $ac_cv_c_bigendian = unknown; then
23145 # Compile a test program.
23146 if test "$cross_compiling" = yes; then :
23147 # Try to guess by grepping values from an object file.
23148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23149 /* end confdefs.h. */
23150 short int ascii_mm[] =
23151 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23152 short int ascii_ii[] =
23153 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23154 int use_ascii (int i) {
23155 return ascii_mm[i] + ascii_ii[i];
23157 short int ebcdic_ii[] =
23158 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23159 short int ebcdic_mm[] =
23160 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23161 int use_ebcdic (int i) {
23162 return ebcdic_mm[i] + ebcdic_ii[i];
23169 return use_ascii (foo) == use_ebcdic (foo);
23174 if ac_fn_c_try_compile "$LINENO"; then :
23175 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23176 ac_cv_c_bigendian=yes
23178 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23179 if test "$ac_cv_c_bigendian" = unknown; then
23180 ac_cv_c_bigendian=no
23182 # finding both strings is unlikely to happen, but who knows?
23183 ac_cv_c_bigendian=unknown
23187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23190 /* end confdefs.h. */
23191 $ac_includes_default
23196 /* Are we little or big endian? From Harbison&Steele. */
23200 char c[sizeof (long int)];
23203 return u.c[sizeof (long int) - 1] == 1;
23209 if ac_fn_c_try_run "$LINENO"; then :
23210 ac_cv_c_bigendian=no
23212 ac_cv_c_bigendian=yes
23214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23215 conftest.$ac_objext conftest.beam conftest.$ac_ext
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23221 $as_echo "$ac_cv_c_bigendian" >&6; }
23222 case $ac_cv_c_bigendian in #(
23224 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23230 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23234 as_fn_error "unknown endianness
23235 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23240 # The cast to long int works around a bug in the HP C Compiler
23241 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23242 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23243 # This bug is HP SR number 8606223364.
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23245 $as_echo_n "checking size of short... " >&6; }
23246 if test "${ac_cv_sizeof_short+set}" = set; then :
23247 $as_echo_n "(cached) " >&6
23249 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23252 if test "$ac_cv_type_short" = yes; then
23253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23255 { as_fn_set_status 77
23256 as_fn_error "cannot compute sizeof (short)
23257 See \`config.log' for more details." "$LINENO" 5; }; }
23259 ac_cv_sizeof_short=0
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23265 $as_echo "$ac_cv_sizeof_short" >&6; }
23269 cat >>confdefs.h <<_ACEOF
23270 #define SIZEOF_SHORT $ac_cv_sizeof_short
23274 # The cast to long int works around a bug in the HP C Compiler
23275 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23276 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23277 # This bug is HP SR number 8606223364.
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23279 $as_echo_n "checking size of int... " >&6; }
23280 if test "${ac_cv_sizeof_int+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
23283 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23286 if test "$ac_cv_type_int" = yes; then
23287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23289 { as_fn_set_status 77
23290 as_fn_error "cannot compute sizeof (int)
23291 See \`config.log' for more details." "$LINENO" 5; }; }
23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23299 $as_echo "$ac_cv_sizeof_int" >&6; }
23303 cat >>confdefs.h <<_ACEOF
23304 #define SIZEOF_INT $ac_cv_sizeof_int
23308 # The cast to long int works around a bug in the HP C Compiler
23309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23311 # This bug is HP SR number 8606223364.
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23313 $as_echo_n "checking size of long... " >&6; }
23314 if test "${ac_cv_sizeof_long+set}" = set; then :
23315 $as_echo_n "(cached) " >&6
23317 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23320 if test "$ac_cv_type_long" = yes; then
23321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23323 { as_fn_set_status 77
23324 as_fn_error "cannot compute sizeof (long)
23325 See \`config.log' for more details." "$LINENO" 5; }; }
23327 ac_cv_sizeof_long=0
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23333 $as_echo "$ac_cv_sizeof_long" >&6; }
23337 cat >>confdefs.h <<_ACEOF
23338 #define SIZEOF_LONG $ac_cv_sizeof_long
23342 # The cast to long int works around a bug in the HP C Compiler
23343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23345 # This bug is HP SR number 8606223364.
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23347 $as_echo_n "checking size of long long... " >&6; }
23348 if test "${ac_cv_sizeof_long_long+set}" = set; then :
23349 $as_echo_n "(cached) " >&6
23351 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23354 if test "$ac_cv_type_long_long" = yes; then
23355 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23357 { as_fn_set_status 77
23358 as_fn_error "cannot compute sizeof (long long)
23359 See \`config.log' for more details." "$LINENO" 5; }; }
23361 ac_cv_sizeof_long_long=0
23366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23367 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23371 cat >>confdefs.h <<_ACEOF
23372 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23376 # The cast to long int works around a bug in the HP C Compiler
23377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23379 # This bug is HP SR number 8606223364.
23380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23381 $as_echo_n "checking size of wchar_t... " >&6; }
23382 if test "${ac_cv_sizeof_wchar_t+set}" = set; then :
23383 $as_echo_n "(cached) " >&6
23385 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23388 if test "$ac_cv_type_wchar_t" = yes; then
23389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23391 { as_fn_set_status 77
23392 as_fn_error "cannot compute sizeof (wchar_t)
23393 See \`config.log' for more details." "$LINENO" 5; }; }
23395 ac_cv_sizeof_wchar_t=0
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23401 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23405 cat >>confdefs.h <<_ACEOF
23406 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23411 if test "$ac_cv_sizeof_int" -lt 4 ; then
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23413 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23416 $as_echo "#define LBER_INT_T long" >>confdefs.h
23420 $as_echo "#define LBER_INT_T int" >>confdefs.h
23425 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23428 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23431 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23434 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23435 if test $ac_cv_sizeof_long_long -gt 4 ; then
23436 ol_with_mp=longlong
23438 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23440 elif test $ol_with_mp = longlong ; then
23441 as_fn_error "long long unusable for multiple precision" "$LINENO" 5
23444 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23445 if test $ac_cv_sizeof_long -gt 4 ; then
23448 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23450 elif test $ol_with_mp = long ; then
23451 as_fn_error "long unusable for multiple precision" "$LINENO" 5
23454 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23455 for ac_header in openssl/bn.h
23457 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23458 if test "x$ac_cv_header_openssl_bn_h" = x""yes; then :
23459 cat >>confdefs.h <<_ACEOF
23460 #define HAVE_OPENSSL_BN_H 1
23467 for ac_header in openssl/crypto.h
23469 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23470 if test "x$ac_cv_header_openssl_crypto_h" = x""yes; then :
23471 cat >>confdefs.h <<_ACEOF
23472 #define HAVE_OPENSSL_CRYPTO_H 1
23479 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23480 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23481 test "$ol_with_tls" = "found" ; then
23484 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23486 elif test $ol_with_mp = bignum ; then
23487 as_fn_error "bignum not available" "$LINENO" 5
23490 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23491 for ac_header in gmp.h
23493 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23494 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_GMP_H 1
23503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23504 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23505 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then :
23506 $as_echo_n "(cached) " >&6
23508 ac_check_lib_save_LIBS=$LIBS
23510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23511 /* end confdefs.h. */
23513 /* Override any GCC internal prototype to avoid an error.
23514 Use char because int might match the return type of a GCC
23515 builtin and then its argument prototype would still apply. */
23519 char __gmpz_add_ui ();
23523 return __gmpz_add_ui ();
23528 if ac_fn_c_try_link "$LINENO"; then :
23529 ac_cv_lib_gmp___gmpz_add_ui=yes
23531 ac_cv_lib_gmp___gmpz_add_ui=no
23533 rm -f core conftest.err conftest.$ac_objext \
23534 conftest$ac_exeext conftest.$ac_ext
23535 LIBS=$ac_check_lib_save_LIBS
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23538 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23539 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = x""yes; then :
23540 cat >>confdefs.h <<_ACEOF
23541 #define HAVE_LIBGMP 1
23548 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23550 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23553 elif test $ol_with_mp = gmp ; then
23554 as_fn_error "gmp not available" "$LINENO" 5
23557 if test $ol_with_mp = auto ; then
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23562 $as_echo_n "checking for working memcmp... " >&6; }
23563 if test "${ac_cv_func_memcmp_working+set}" = set; then :
23564 $as_echo_n "(cached) " >&6
23566 if test "$cross_compiling" = yes; then :
23567 ac_cv_func_memcmp_working=no
23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23571 $ac_includes_default
23576 /* Some versions of memcmp are not 8-bit clean. */
23577 char c0 = '\100', c1 = '\200', c2 = '\201';
23578 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23581 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23582 or more and with at least one buffer not starting on a 4-byte boundary.
23583 William Lewis provided this test program. */
23588 for (i = 0; i < 4; i++)
23592 strcpy (a, "--------01111111");
23593 strcpy (b, "--------10000000");
23594 if (memcmp (a, b, 16) >= 0)
23604 if ac_fn_c_try_run "$LINENO"; then :
23605 ac_cv_func_memcmp_working=yes
23607 ac_cv_func_memcmp_working=no
23609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23610 conftest.$ac_objext conftest.beam conftest.$ac_ext
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23615 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23616 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23617 *" memcmp.$ac_objext "* ) ;;
23618 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23624 if test $ac_cv_func_memcmp_working = no ; then
23626 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23630 for ac_func in strftime
23632 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23633 if test "x$ac_cv_func_strftime" = x""yes; then :
23634 cat >>confdefs.h <<_ACEOF
23635 #define HAVE_STRFTIME 1
23639 # strftime is in -lintl on SCO UNIX.
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23641 $as_echo_n "checking for strftime in -lintl... " >&6; }
23642 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
23643 $as_echo_n "(cached) " >&6
23645 ac_check_lib_save_LIBS=$LIBS
23646 LIBS="-lintl $LIBS"
23647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23648 /* end confdefs.h. */
23650 /* Override any GCC internal prototype to avoid an error.
23651 Use char because int might match the return type of a GCC
23652 builtin and then its argument prototype would still apply. */
23660 return strftime ();
23665 if ac_fn_c_try_link "$LINENO"; then :
23666 ac_cv_lib_intl_strftime=yes
23668 ac_cv_lib_intl_strftime=no
23670 rm -f core conftest.err conftest.$ac_objext \
23671 conftest$ac_exeext conftest.$ac_ext
23672 LIBS=$ac_check_lib_save_LIBS
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23675 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23676 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
23677 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23679 LIBS="-lintl $LIBS"
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23687 $as_echo_n "checking for inet_aton()... " >&6; }
23688 if test "${ol_cv_func_inet_aton+set}" = set; then :
23689 $as_echo_n "(cached) " >&6
23691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23692 /* end confdefs.h. */
23694 #ifdef HAVE_SYS_TYPES_H
23695 # include <sys/types.h>
23697 #ifdef HAVE_SYS_SOCKET_H
23698 # include <sys/socket.h>
23699 # ifdef HAVE_SYS_SELECT_H
23700 # include <sys/select.h>
23702 # include <netinet/in.h>
23703 # ifdef HAVE_ARPA_INET_H
23704 # include <arpa/inet.h>
23712 int rc = inet_aton( "255.255.255.255", &in );
23717 if ac_fn_c_try_link "$LINENO"; then :
23718 ol_cv_func_inet_aton=yes
23720 ol_cv_func_inet_aton=no
23722 rm -f core conftest.err conftest.$ac_objext \
23723 conftest$ac_exeext conftest.$ac_ext
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23726 $as_echo "$ol_cv_func_inet_aton" >&6; }
23727 if test $ol_cv_func_inet_aton != no; then
23729 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23734 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23735 if test "x$ac_cv_func__spawnlp" = x""yes; then :
23737 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23742 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23743 if test "x$ac_cv_func__snprintf" = x""yes; then :
23744 ac_cv_func_snprintf=yes
23746 $as_echo "#define snprintf _snprintf" >>confdefs.h
23752 for ac_func in vsnprintf _vsnprintf
23754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23756 eval as_val=\$$as_ac_var
23757 if test "x$as_val" = x""yes; then :
23758 cat >>confdefs.h <<_ACEOF
23759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23766 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23767 ac_cv_func_vsnprintf=yes
23769 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23773 for ac_func in vprintf
23775 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23776 if test "x$ac_cv_func_vprintf" = x""yes; then :
23777 cat >>confdefs.h <<_ACEOF
23778 #define HAVE_VPRINTF 1
23781 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23782 if test "x$ac_cv_func__doprnt" = x""yes; then :
23784 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23793 if test $ac_cv_func_vprintf = yes ; then
23794 for ac_func in snprintf vsnprintf
23796 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23797 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23798 eval as_val=\$$as_ac_var
23799 if test "x$as_val" = x""yes; then :
23800 cat >>confdefs.h <<_ACEOF
23801 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23870 eval as_val=\$$as_ac_var
23871 if test "x$as_val" = x""yes; then :
23872 cat >>confdefs.h <<_ACEOF
23873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23880 for ac_func in getopt getpeereid
23882 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23883 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23884 eval as_val=\$$as_ac_var
23885 if test "x$as_val" = x""yes; then :
23886 cat >>confdefs.h <<_ACEOF
23887 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23891 case " $LIBOBJS " in
23892 *" $ac_func.$ac_objext "* ) ;;
23893 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
23902 if test "$ac_cv_func_getopt" != yes; then
23903 LIBSRCS="$LIBSRCS getopt.c"
23906 if test "$ac_cv_func_getpeereid" != yes; then
23907 for ac_func in getpeerucred
23909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23910 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23911 eval as_val=\$$as_ac_var
23912 if test "x$as_val" = x""yes; then :
23913 cat >>confdefs.h <<_ACEOF
23914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23920 if test "$ac_cv_func_getpeerucred" != yes ; then
23921 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
23922 #ifdef HAVE_SYS_SOCKET_H
23923 #include <sys/socket.h>
23926 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = x""yes; then :
23928 cat >>confdefs.h <<_ACEOF
23929 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
23935 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
23936 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
23937 #ifdef HAVE_SYS_SOCKET_H
23938 #include <sys/socket.h>
23941 if test "x$ac_cv_member_struct_msghdr_msg_control" = x""yes; then :
23943 cat >>confdefs.h <<_ACEOF
23944 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
23951 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
23952 if test "x$ac_cv_member_struct_stat_st_fstype" = x""yes; then :
23954 cat >>confdefs.h <<_ACEOF
23955 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
23960 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
23961 if test "x$ac_cv_member_struct_stat_st_vfstype" = x""yes; then :
23963 cat >>confdefs.h <<_ACEOF
23964 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
23970 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h. */
23973 struct stat st; char *ptr=st.st_fstype;
23975 if ac_fn_c_try_compile "$LINENO"; then :
23977 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
23981 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23987 LIBSRCS="$LIBSRCS getpeereid.c"
23990 if test "$ac_cv_func_snprintf" != yes ||
23991 test "$ac_cv_func_vsnprintf" != yes; then
23992 if test "$ac_cv_func_snprintf" != yes; then
23994 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
23997 if test "$ac_cv_func_vsnprintf" != yes; then
23999 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
24005 if test "$ol_enable_slapi" != no ; then
24006 for ac_header in ltdl.h
24008 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
24009 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
24010 cat >>confdefs.h <<_ACEOF
24011 #define HAVE_LTDL_H 1
24019 if test $ac_cv_header_ltdl_h != yes ; then
24020 as_fn_error "could not locate <ltdl.h>" "$LINENO" 5
24022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
24023 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
24024 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then :
24025 $as_echo_n "(cached) " >&6
24027 ac_check_lib_save_LIBS=$LIBS
24028 LIBS="-lltdl $LIBS"
24029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24030 /* end confdefs.h. */
24032 /* Override any GCC internal prototype to avoid an error.
24033 Use char because int might match the return type of a GCC
24034 builtin and then its argument prototype would still apply. */
24042 return lt_dlinit ();
24047 if ac_fn_c_try_link "$LINENO"; then :
24048 ac_cv_lib_ltdl_lt_dlinit=yes
24050 ac_cv_lib_ltdl_lt_dlinit=no
24052 rm -f core conftest.err conftest.$ac_objext \
24053 conftest$ac_exeext conftest.$ac_ext
24054 LIBS=$ac_check_lib_save_LIBS
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24057 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24058 if test "x$ac_cv_lib_ltdl_lt_dlinit" = x""yes; then :
24061 LIBSLAPI=slapi/libslapi.la
24063 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24067 as_fn_error "could not locate libtool -lltdl" "$LINENO" 5
24072 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24076 if test "$ol_enable_debug" != no ; then
24077 if test "$ol_enable_debug" = traditional; then
24079 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24083 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24086 if test "$ol_enable_syslog" = yes ; then
24088 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24091 if test "$ol_enable_proctitle" != no ; then
24093 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24096 if test "$ol_enable_referrals" != no ; then
24098 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24101 if test "$ol_enable_local" != no; then
24103 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24106 if test "$ol_link_ipv6" != no; then
24108 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24111 if test "$ol_enable_cleartext" != no ; then
24113 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24116 if test "$ol_enable_crypt" != no ; then
24118 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24121 if test "$ol_link_spasswd" != no ; then
24123 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24126 if test "$ol_enable_rlookups" != no ; then
24128 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24131 if test "$ol_enable_aci" != no ; then
24132 if test $ol_enable_dynacl = no ; then
24133 ol_enable_dynacl=yes
24134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24135 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24137 if test "$ol_enable_aci" = mod ; then
24138 MFLAG=SLAPD_MOD_DYNAMIC
24139 as_fn_error "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24141 MFLAG=SLAPD_MOD_STATIC
24143 WITH_ACI_ENABLED=$ol_enable_aci
24145 cat >>confdefs.h <<_ACEOF
24146 #define SLAPD_ACI_ENABLED $MFLAG
24150 WITH_ACI_ENABLED=no
24152 if test "$ol_enable_dynacl" != no ; then
24154 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24158 if test "$ol_link_modules" != no ; then
24160 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24163 SLAPD_MODULES_LDFLAGS="-dlopen self"
24167 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24170 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24173 if test "$ol_enable_monitor" != no ; then
24175 BUILD_MONITOR=$ol_enable_monitor
24176 if test "$ol_enable_monitor" = mod ; then
24177 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24178 MFLAG=SLAPD_MOD_DYNAMIC
24180 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24181 MFLAG=SLAPD_MOD_STATIC
24184 cat >>confdefs.h <<_ACEOF
24185 #define SLAPD_MONITOR $MFLAG
24190 if test "$ol_enable_bdb" != no ; then
24192 BUILD_BDB=$ol_enable_bdb
24193 if test "$ol_enable_bdb" = mod ; then
24194 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24195 MFLAG=SLAPD_MOD_DYNAMIC
24197 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24198 MFLAG=SLAPD_MOD_STATIC
24201 cat >>confdefs.h <<_ACEOF
24202 #define SLAPD_BDB $MFLAG
24207 if test "$ol_enable_dnssrv" != no ; then
24209 BUILD_DNSSRV=$ol_enable_dnssrv
24210 if test "$ol_enable_dnssrv" = mod ; then
24211 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24212 MFLAG=SLAPD_MOD_DYNAMIC
24214 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24215 MFLAG=SLAPD_MOD_STATIC
24218 cat >>confdefs.h <<_ACEOF
24219 #define SLAPD_DNSSRV $MFLAG
24224 if test "$ol_enable_hdb" != no ; then
24226 BUILD_HDB=$ol_enable_hdb
24227 if test "$ol_enable_hdb" = mod ; then
24228 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24229 MFLAG=SLAPD_MOD_DYNAMIC
24231 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24232 MFLAG=SLAPD_MOD_STATIC
24235 cat >>confdefs.h <<_ACEOF
24236 #define SLAPD_HDB $MFLAG
24241 if test "$ol_enable_ldap" != no ; then
24243 BUILD_LDAP=$ol_enable_ldap
24244 if test "$ol_enable_ldap" = mod ; then
24245 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24246 MFLAG=SLAPD_MOD_DYNAMIC
24248 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24249 MFLAG=SLAPD_MOD_STATIC
24252 cat >>confdefs.h <<_ACEOF
24253 #define SLAPD_LDAP $MFLAG
24258 if test "$ol_enable_mdb" != no ; then
24260 BUILD_MDB=$ol_enable_mdb
24261 if test "$ol_enable_mdb" = mod ; then
24262 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24263 MFLAG=SLAPD_MOD_DYNAMIC
24265 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24266 MFLAG=SLAPD_MOD_STATIC
24269 cat >>confdefs.h <<_ACEOF
24270 #define SLAPD_MDB $MFLAG
24275 if test "$ol_enable_meta" != no ; then
24277 BUILD_META=$ol_enable_meta
24279 if test "$ol_enable_meta" = mod ; then
24280 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24281 MFLAG=SLAPD_MOD_DYNAMIC
24283 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24284 MFLAG=SLAPD_MOD_STATIC
24287 cat >>confdefs.h <<_ACEOF
24288 #define SLAPD_META $MFLAG
24293 if test "$ol_enable_ndb" != no ; then
24295 BUILD_NDB=$ol_enable_ndb
24296 if test "$ol_enable_ndb" = mod ; then
24297 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24298 MFLAG=SLAPD_MOD_DYNAMIC
24300 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24301 MFLAG=SLAPD_MOD_STATIC
24304 cat >>confdefs.h <<_ACEOF
24305 #define SLAPD_NDB $MFLAG
24310 if test "$ol_enable_null" != no ; then
24312 BUILD_NULL=$ol_enable_null
24313 if test "$ol_enable_null" = mod ; then
24314 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24315 MFLAG=SLAPD_MOD_DYNAMIC
24317 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24318 MFLAG=SLAPD_MOD_STATIC
24321 cat >>confdefs.h <<_ACEOF
24322 #define SLAPD_NULL $MFLAG
24327 if test "$ol_enable_passwd" != no ; then
24329 BUILD_PASSWD=$ol_enable_passwd
24330 if test "$ol_enable_passwd" = mod ; then
24331 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24332 MFLAG=SLAPD_MOD_DYNAMIC
24334 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24335 MFLAG=SLAPD_MOD_STATIC
24338 cat >>confdefs.h <<_ACEOF
24339 #define SLAPD_PASSWD $MFLAG
24344 if test "$ol_link_perl" != no ; then
24346 BUILD_PERL=$ol_enable_perl
24347 if test "$ol_enable_perl" = mod ; then
24348 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24349 MFLAG=SLAPD_MOD_DYNAMIC
24351 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24352 MFLAG=SLAPD_MOD_STATIC
24355 cat >>confdefs.h <<_ACEOF
24356 #define SLAPD_PERL $MFLAG
24361 if test "$ol_enable_relay" != no ; then
24363 BUILD_RELAY=$ol_enable_relay
24364 if test "$ol_enable_relay" = mod ; then
24365 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24366 MFLAG=SLAPD_MOD_DYNAMIC
24368 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24369 MFLAG=SLAPD_MOD_STATIC
24372 cat >>confdefs.h <<_ACEOF
24373 #define SLAPD_RELAY $MFLAG
24378 if test "$ol_enable_shell" != no ; then
24379 if test "$ol_link_threads" != no ; then
24380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24381 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24384 BUILD_SHELL=$ol_enable_shell
24385 if test "$ol_enable_shell" = mod ; then
24386 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24387 MFLAG=SLAPD_MOD_DYNAMIC
24389 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24390 MFLAG=SLAPD_MOD_STATIC
24393 cat >>confdefs.h <<_ACEOF
24394 #define SLAPD_SHELL $MFLAG
24399 if test "$ol_enable_sock" != no ; then
24401 BUILD_SOCK=$ol_enable_sock
24402 if test "$ol_enable_sock" = mod ; then
24403 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24404 MFLAG=SLAPD_MOD_DYNAMIC
24406 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24407 MFLAG=SLAPD_MOD_STATIC
24410 cat >>confdefs.h <<_ACEOF
24411 #define SLAPD_SOCK $MFLAG
24416 if test "$ol_link_sql" != no ; then
24418 BUILD_SQL=$ol_enable_sql
24419 if test "$ol_enable_sql" = mod; then
24420 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24421 MFLAG=SLAPD_MOD_DYNAMIC
24423 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24424 MFLAG=SLAPD_MOD_STATIC
24427 cat >>confdefs.h <<_ACEOF
24428 #define SLAPD_SQL $MFLAG
24433 if test "$ol_enable_accesslog" != no ; then
24434 BUILD_ACCESSLOG=$ol_enable_accesslog
24435 if test "$ol_enable_accesslog" = mod ; then
24436 MFLAG=SLAPD_MOD_DYNAMIC
24437 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24439 MFLAG=SLAPD_MOD_STATIC
24440 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24443 cat >>confdefs.h <<_ACEOF
24444 #define SLAPD_OVER_ACCESSLOG $MFLAG
24449 if test "$ol_enable_auditlog" != no ; then
24450 BUILD_AUDITLOG=$ol_enable_auditlog
24451 if test "$ol_enable_auditlog" = mod ; then
24452 MFLAG=SLAPD_MOD_DYNAMIC
24453 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24455 MFLAG=SLAPD_MOD_STATIC
24456 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24459 cat >>confdefs.h <<_ACEOF
24460 #define SLAPD_OVER_AUDITLOG $MFLAG
24465 if test "$ol_enable_collect" != no ; then
24466 BUILD_COLLECT=$ol_enable_collect
24467 if test "$ol_enable_collect" = mod ; then
24468 MFLAG=SLAPD_MOD_DYNAMIC
24469 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24471 MFLAG=SLAPD_MOD_STATIC
24472 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24475 cat >>confdefs.h <<_ACEOF
24476 #define SLAPD_OVER_COLLECT $MFLAG
24481 if test "$ol_enable_constraint" != no ; then
24482 BUILD_CONSTRAINT=$ol_enable_constraint
24483 if test "$ol_enable_constraint" = mod ; then
24484 MFLAG=SLAPD_MOD_DYNAMIC
24485 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24487 MFLAG=SLAPD_MOD_STATIC
24488 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24491 cat >>confdefs.h <<_ACEOF
24492 #define SLAPD_OVER_CONSTRAINT $MFLAG
24497 if test "$ol_enable_dds" != no ; then
24498 BUILD_DDS=$ol_enable_dds
24499 if test "$ol_enable_dds" = mod ; then
24500 MFLAG=SLAPD_MOD_DYNAMIC
24501 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24503 MFLAG=SLAPD_MOD_STATIC
24504 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24507 cat >>confdefs.h <<_ACEOF
24508 #define SLAPD_OVER_DDS $MFLAG
24513 if test "$ol_enable_deref" != no ; then
24514 BUILD_DEREF=$ol_enable_deref
24515 if test "$ol_enable_deref" = mod ; then
24516 MFLAG=SLAPD_MOD_DYNAMIC
24517 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24519 MFLAG=SLAPD_MOD_STATIC
24520 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24523 cat >>confdefs.h <<_ACEOF
24524 #define SLAPD_OVER_DEREF $MFLAG
24529 if test "$ol_enable_dyngroup" != no ; then
24530 BUILD_DYNGROUP=$ol_enable_dyngroup
24531 if test "$ol_enable_dyngroup" = mod ; then
24532 MFLAG=SLAPD_MOD_DYNAMIC
24533 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24535 MFLAG=SLAPD_MOD_STATIC
24536 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24539 cat >>confdefs.h <<_ACEOF
24540 #define SLAPD_OVER_DYNGROUP $MFLAG
24545 if test "$ol_enable_dynlist" != no ; then
24546 BUILD_DYNLIST=$ol_enable_dynlist
24547 if test "$ol_enable_dynlist" = mod ; then
24548 MFLAG=SLAPD_MOD_DYNAMIC
24549 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24551 MFLAG=SLAPD_MOD_STATIC
24552 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24555 cat >>confdefs.h <<_ACEOF
24556 #define SLAPD_OVER_DYNLIST $MFLAG
24561 if test "$ol_enable_memberof" != no ; then
24562 BUILD_MEMBEROF=$ol_enable_memberof
24563 if test "$ol_enable_memberof" = mod ; then
24564 MFLAG=SLAPD_MOD_DYNAMIC
24565 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24567 MFLAG=SLAPD_MOD_STATIC
24568 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24571 cat >>confdefs.h <<_ACEOF
24572 #define SLAPD_OVER_MEMBEROF $MFLAG
24577 if test "$ol_enable_ppolicy" != no ; then
24578 BUILD_PPOLICY=$ol_enable_ppolicy
24579 if test "$ol_enable_ppolicy" = mod ; then
24580 MFLAG=SLAPD_MOD_DYNAMIC
24581 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24583 MFLAG=SLAPD_MOD_STATIC
24584 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24587 cat >>confdefs.h <<_ACEOF
24588 #define SLAPD_OVER_PPOLICY $MFLAG
24593 if test "$ol_enable_proxycache" != no ; then
24594 BUILD_PROXYCACHE=$ol_enable_proxycache
24595 if test "$ol_enable_proxycache" = mod ; then
24596 MFLAG=SLAPD_MOD_DYNAMIC
24597 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24599 MFLAG=SLAPD_MOD_STATIC
24600 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24603 cat >>confdefs.h <<_ACEOF
24604 #define SLAPD_OVER_PROXYCACHE $MFLAG
24609 if test "$ol_enable_refint" != no ; then
24610 BUILD_REFINT=$ol_enable_refint
24611 if test "$ol_enable_refint" = mod ; then
24612 MFLAG=SLAPD_MOD_DYNAMIC
24613 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24615 MFLAG=SLAPD_MOD_STATIC
24616 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24619 cat >>confdefs.h <<_ACEOF
24620 #define SLAPD_OVER_REFINT $MFLAG
24625 if test "$ol_enable_retcode" != no ; then
24626 BUILD_RETCODE=$ol_enable_retcode
24627 if test "$ol_enable_retcode" = mod ; then
24628 MFLAG=SLAPD_MOD_DYNAMIC
24629 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24631 MFLAG=SLAPD_MOD_STATIC
24632 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24635 cat >>confdefs.h <<_ACEOF
24636 #define SLAPD_OVER_RETCODE $MFLAG
24641 if test "$ol_enable_rwm" != no ; then
24643 BUILD_RWM=$ol_enable_rwm
24644 if test "$ol_enable_rwm" = mod ; then
24645 MFLAG=SLAPD_MOD_DYNAMIC
24646 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24648 MFLAG=SLAPD_MOD_STATIC
24649 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24652 cat >>confdefs.h <<_ACEOF
24653 #define SLAPD_OVER_RWM $MFLAG
24658 if test "$ol_enable_seqmod" != no ; then
24659 BUILD_SEQMOD=$ol_enable_seqmod
24660 if test "$ol_enable_seqmod" = mod ; then
24661 MFLAG=SLAPD_MOD_DYNAMIC
24662 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24664 MFLAG=SLAPD_MOD_STATIC
24665 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24668 cat >>confdefs.h <<_ACEOF
24669 #define SLAPD_OVER_SEQMOD $MFLAG
24674 if test "$ol_enable_sssvlv" != no ; then
24675 BUILD_SSSVLV=$ol_enable_sssvlv
24676 if test "$ol_enable_sssvlv" = mod ; then
24677 MFLAG=SLAPD_MOD_DYNAMIC
24678 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24680 MFLAG=SLAPD_MOD_STATIC
24681 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24684 cat >>confdefs.h <<_ACEOF
24685 #define SLAPD_OVER_SSSVLV $MFLAG
24690 if test "$ol_enable_syncprov" != no ; then
24691 BUILD_SYNCPROV=$ol_enable_syncprov
24692 if test "$ol_enable_syncprov" = mod ; then
24693 MFLAG=SLAPD_MOD_DYNAMIC
24694 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24696 MFLAG=SLAPD_MOD_STATIC
24697 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24700 cat >>confdefs.h <<_ACEOF
24701 #define SLAPD_OVER_SYNCPROV $MFLAG
24706 if test "$ol_enable_translucent" != no ; then
24707 BUILD_TRANSLUCENT=$ol_enable_translucent
24708 if test "$ol_enable_translucent" = mod ; then
24709 MFLAG=SLAPD_MOD_DYNAMIC
24710 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24712 MFLAG=SLAPD_MOD_STATIC
24713 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24716 cat >>confdefs.h <<_ACEOF
24717 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24722 if test "$ol_enable_unique" != no ; then
24723 BUILD_UNIQUE=$ol_enable_unique
24724 if test "$ol_enable_unique" = mod ; then
24725 MFLAG=SLAPD_MOD_DYNAMIC
24726 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24728 MFLAG=SLAPD_MOD_STATIC
24729 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24732 cat >>confdefs.h <<_ACEOF
24733 #define SLAPD_OVER_UNIQUE $MFLAG
24738 if test "$ol_enable_valsort" != no ; then
24739 BUILD_VALSORT=$ol_enable_valsort
24740 if test "$ol_enable_valsort" = mod ; then
24741 MFLAG=SLAPD_MOD_DYNAMIC
24742 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24744 MFLAG=SLAPD_MOD_STATIC
24745 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24748 cat >>confdefs.h <<_ACEOF
24749 #define SLAPD_OVER_VALSORT $MFLAG
24754 if test "$ol_enable_rewrite" != no ; then
24756 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24761 if test "$ol_enable_slapi" != no ; then
24763 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24766 SLAPD_SLAPI_DEPEND=libslapi.a
24771 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24773 SLAPD_MODULES_LDFLAGS=
24868 # Check whether --with-xxinstall was given.
24869 if test "${with_xxinstall+set}" = set; then :
24870 withval=$with_xxinstall;
24875 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-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-ndb/Makefile:build/top.mk:servers/slapd/back-ndb/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sock/Makefile:build/top.mk:servers/slapd/back-sock/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
24878 ac_config_commands="$ac_config_commands default"
24882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24883 # Let make expand exec_prefix.
24884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24886 DEFS=-DHAVE_CONFIG_H
24890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24891 # 1. Remove the extension, and $U if already installed.
24892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24893 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24895 # will be set to the directory where LIBOBJS objects are built.
24896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24899 LIBOBJS=$ac_libobjs
24901 LTLIBOBJS=$ac_ltlibobjs
24904 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24905 as_fn_error "conditional \"AMDEP\" was never defined.
24906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24908 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24909 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24912 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24913 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24918 : ${CONFIG_STATUS=./config.status}
24920 ac_clean_files_save=$ac_clean_files
24921 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24922 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24923 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24925 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24927 # Generated by $as_me.
24928 # Run this file to recreate the current configuration.
24929 # Compiler output produced by configure, useful for debugging
24930 # configure, is in config.log if it exists.
24933 ac_cs_recheck=false
24936 SHELL=\${CONFIG_SHELL-$SHELL}
24939 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24940 ## -------------------- ##
24941 ## M4sh Initialization. ##
24942 ## -------------------- ##
24944 # Be more Bourne compatible
24945 DUALCASE=1; export DUALCASE # for MKS sh
24946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24949 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24950 # is contrary to our usage. Disable this feature.
24951 alias -g '${1+"$@"}'='"$@"'
24952 setopt NO_GLOB_SUBST
24954 case `(set -o) 2>/dev/null` in #(
24966 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24967 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24969 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24970 # Prefer a ksh shell builtin over an external printf program on Solaris,
24971 # but without wasting forks for bash or zsh.
24972 if test -z "$BASH_VERSION$ZSH_VERSION" \
24973 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24974 as_echo='print -r --'
24975 as_echo_n='print -rn --'
24976 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24977 as_echo='printf %s\n'
24978 as_echo_n='printf %s'
24980 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24981 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24982 as_echo_n='/usr/ucb/echo -n'
24984 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24985 as_echo_n_body='eval
24989 expr "X$arg" : "X\\(.*\\)$as_nl";
24990 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24992 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24994 export as_echo_n_body
24995 as_echo_n='sh -c $as_echo_n_body as_echo'
24997 export as_echo_body
24998 as_echo='sh -c $as_echo_body as_echo'
25001 # The user is always right.
25002 if test "${PATH_SEPARATOR+set}" != set; then
25004 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25005 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25012 # We need space, tab and new line, in precisely that order. Quoting is
25013 # there to prevent editors from complaining about space-tab.
25014 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25015 # splitting by setting IFS to empty value.)
25018 # Find who we are. Look in the path if we contain no directory separator.
25020 *[\\/]* ) as_myself=$0 ;;
25021 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25022 for as_dir in $PATH
25025 test -z "$as_dir" && as_dir=.
25026 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25032 # We did not find ourselves, most probably we were run as `sh COMMAND'
25033 # in which case we are not to be found in the path.
25034 if test "x$as_myself" = x; then
25037 if test ! -f "$as_myself"; then
25038 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25042 # Unset variables that we do not need and which cause bugs (e.g. in
25043 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25044 # suppresses any "Segmentation fault" message there. '((' could
25045 # trigger a bug in pdksh 5.2.14.
25046 for as_var in BASH_ENV ENV MAIL MAILPATH
25047 do eval test x\${$as_var+set} = xset \
25048 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25061 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25064 # as_fn_error ERROR [LINENO LOG_FD]
25065 # ---------------------------------
25066 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25067 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25068 # script with status $?, using 1 if that was 0.
25071 as_status=$?; test $as_status -eq 0 && as_status=1
25073 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25074 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25076 $as_echo "$as_me: error: $1" >&2
25077 as_fn_exit $as_status
25081 # as_fn_set_status STATUS
25082 # -----------------------
25083 # Set $? to STATUS, without forking.
25084 as_fn_set_status ()
25087 } # as_fn_set_status
25089 # as_fn_exit STATUS
25090 # -----------------
25091 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25095 as_fn_set_status $1
25101 # Portably unset VAR.
25104 { eval $1=; unset $1;}
25106 as_unset=as_fn_unset
25107 # as_fn_append VAR VALUE
25108 # ----------------------
25109 # Append the text in VALUE to the end of the definition contained in VAR. Take
25110 # advantage of any shell optimizations that allow amortized linear growth over
25111 # repeated appends, instead of the typical quadratic growth present in naive
25113 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25114 eval 'as_fn_append ()
25125 # as_fn_arith ARG...
25126 # ------------------
25127 # Perform arithmetic evaluation on the ARGs, and store the result in the
25128 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25129 # must be portable across $(()) and expr.
25130 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25131 eval 'as_fn_arith ()
25138 as_val=`expr "$@" || test $? -eq 1`
25143 if expr a : '\(a\)' >/dev/null 2>&1 &&
25144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25151 as_basename=basename
25156 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25162 as_me=`$as_basename -- "$0" ||
25163 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25164 X"$0" : 'X\(//\)$' \| \
25165 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25167 sed '/^.*\/\([^/][^/]*\)\/*$/{
25181 # Avoid depending upon Character Ranges.
25182 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25183 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25184 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25185 as_cr_digits='0123456789'
25186 as_cr_alnum=$as_cr_Letters$as_cr_digits
25188 ECHO_C= ECHO_N= ECHO_T=
25189 case `echo -n x` in #(((((
25191 case `echo 'xy\c'` in
25192 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25194 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25201 rm -f conf$$ conf$$.exe conf$$.file
25202 if test -d conf$$.dir; then
25203 rm -f conf$$.dir/conf$$.file
25206 mkdir conf$$.dir 2>/dev/null
25208 if (echo >conf$$.file) 2>/dev/null; then
25209 if ln -s conf$$.file conf$$ 2>/dev/null; then
25211 # ... but there are two gotchas:
25212 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25213 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25214 # In both cases, we have to default to `cp -p'.
25215 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25217 elif ln conf$$.file conf$$ 2>/dev/null; then
25225 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25226 rmdir conf$$.dir 2>/dev/null
25231 # Create "$as_dir" as a directory, including parents if necessary.
25236 -*) as_dir=./$as_dir;;
25238 test -d "$as_dir" || eval $as_mkdir_p || {
25242 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25243 *) as_qdir=$as_dir;;
25245 as_dirs="'$as_qdir' $as_dirs"
25246 as_dir=`$as_dirname -- "$as_dir" ||
25247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25248 X"$as_dir" : 'X\(//\)[^/]' \| \
25249 X"$as_dir" : 'X\(//\)$' \| \
25250 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25251 $as_echo X"$as_dir" |
25252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25256 /^X\(\/\/\)[^/].*/{
25269 test -d "$as_dir" && break
25271 test -z "$as_dirs" || eval "mkdir $as_dirs"
25272 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25276 if mkdir -p . 2>/dev/null; then
25277 as_mkdir_p='mkdir -p "$as_dir"'
25279 test -d ./-p && rmdir ./-p
25283 if test -x / >/dev/null 2>&1; then
25284 as_test_x='test -x'
25286 if ls -dL / >/dev/null 2>&1; then
25293 if test -d "$1"; then
25299 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25300 ???[sx]*):;;*)false;;esac;fi
25304 as_executable_p=$as_test_x
25306 # Sed expression to map a string onto a valid CPP name.
25307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25309 # Sed expression to map a string onto a valid variable name.
25310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25314 ## ----------------------------------- ##
25315 ## Main body of $CONFIG_STATUS script. ##
25316 ## ----------------------------------- ##
25318 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25320 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25321 # Save the log message, to keep $0 and so on meaningful, and to
25322 # report actual input values of CONFIG_FILES etc. instead of their
25323 # values after options handling.
25325 This file was extended by $as_me, which was
25326 generated by GNU Autoconf 2.65. Invocation command line was
25328 CONFIG_FILES = $CONFIG_FILES
25329 CONFIG_HEADERS = $CONFIG_HEADERS
25330 CONFIG_LINKS = $CONFIG_LINKS
25331 CONFIG_COMMANDS = $CONFIG_COMMANDS
25334 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25339 case $ac_config_files in *"
25340 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25343 case $ac_config_headers in *"
25344 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25349 # Files that config.status was made for.
25350 config_files="$ac_config_files"
25351 config_headers="$ac_config_headers"
25352 config_commands="$ac_config_commands"
25356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25358 \`$as_me' instantiates files and other configuration actions
25359 from templates according to the current configuration. Unless the files
25360 and actions are specified as TAGs, all are instantiated by default.
25362 Usage: $0 [OPTION]... [TAG]...
25364 -h, --help print this help, then exit
25365 -V, --version print version number and configuration settings, then exit
25366 --config print configuration, then exit
25367 -q, --quiet, --silent
25368 do not print progress messages
25369 -d, --debug don't remove temporary files
25370 --recheck update $as_me by reconfiguring in the same conditions
25371 --file=FILE[:TEMPLATE]
25372 instantiate the configuration file FILE
25373 --header=FILE[:TEMPLATE]
25374 instantiate the configuration header FILE
25376 Configuration files:
25379 Configuration headers:
25382 Configuration commands:
25385 Report bugs to <<http://www.openldap.org/its/>>."
25388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25389 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25392 configured by $0, generated by GNU Autoconf 2.65,
25393 with options \\"\$ac_cs_config\\"
25395 Copyright (C) 2009 Free Software Foundation, Inc.
25396 This config.status script is free software; the Free Software Foundation
25397 gives unlimited permission to copy, distribute and modify it."
25403 test -n "\$AWK" || AWK=awk
25406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25407 # The default lists apply if the user does not specify any file.
25413 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25414 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25425 # Handling of the options.
25426 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25428 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25429 $as_echo "$ac_cs_version"; exit ;;
25430 --config | --confi | --conf | --con | --co | --c )
25431 $as_echo "$ac_cs_config"; exit ;;
25432 --debug | --debu | --deb | --de | --d | -d )
25434 --file | --fil | --fi | --f )
25437 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25439 as_fn_append CONFIG_FILES " '$ac_optarg'"
25440 ac_need_defaults=false;;
25441 --header | --heade | --head | --hea )
25444 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25446 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25447 ac_need_defaults=false;;
25449 # Conflict between --help and --header
25450 as_fn_error "ambiguous option: \`$1'
25451 Try \`$0 --help' for more information.";;
25452 --help | --hel | -h )
25453 $as_echo "$ac_cs_usage"; exit ;;
25454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25455 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25458 # This is an error.
25459 -*) as_fn_error "unrecognized option: \`$1'
25460 Try \`$0 --help' for more information." ;;
25462 *) as_fn_append ac_config_targets " $1"
25463 ac_need_defaults=false ;;
25469 ac_configure_extra_args=
25471 if $ac_cs_silent; then
25473 ac_configure_extra_args="$ac_configure_extra_args --silent"
25477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25478 if \$ac_cs_recheck; then
25479 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25481 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25482 CONFIG_SHELL='$SHELL'
25483 export CONFIG_SHELL
25488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25492 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25493 ## Running $as_me. ##
25499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25503 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25505 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25506 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25513 # Handling of arguments.
25514 for ac_config_target in $ac_config_targets
25516 case $ac_config_target in
25517 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25518 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25519 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25520 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25521 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25522 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25523 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25524 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25525 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25526 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25527 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25528 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25529 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25530 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25531 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25532 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25533 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25534 "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" ;;
25535 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25536 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25537 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25538 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25539 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25540 "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" ;;
25541 "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" ;;
25542 "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" ;;
25543 "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" ;;
25544 "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" ;;
25545 "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" ;;
25546 "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" ;;
25547 "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" ;;
25548 "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" ;;
25549 "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" ;;
25550 "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" ;;
25551 "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" ;;
25552 "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" ;;
25553 "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" ;;
25554 "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" ;;
25555 "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" ;;
25556 "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" ;;
25557 "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" ;;
25558 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25559 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25560 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25561 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25562 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25564 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25569 # If the user did not use the arguments to specify the items to instantiate,
25570 # then the envvar interface is used. Set only those that are not.
25571 # We use the long form for the default assignment because of an extremely
25572 # bizarre bug on SunOS 4.1.3.
25573 if $ac_need_defaults; then
25574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25579 # Have a temporary directory for convenience. Make it in the build tree
25580 # simply because there is no reason against having it here, and in addition,
25581 # creating and moving files from /tmp can sometimes cause problems.
25582 # Hook for its removal unless debugging.
25583 # Note that there is a small window in which the directory will not be cleaned:
25584 # after its creation but before its name has been assigned to `$tmp'.
25588 trap 'exit_status=$?
25589 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25591 trap 'as_fn_exit 1' 1 2 13 15
25593 # Create a (secure) tmp directory for tmp files.
25596 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25597 test -n "$tmp" && test -d "$tmp"
25600 tmp=./conf$$-$RANDOM
25601 (umask 077 && mkdir "$tmp")
25602 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25604 # Set up the scripts for CONFIG_FILES section.
25605 # No need to generate them if there are no CONFIG_FILES.
25606 # This happens for instance with `./config.status config.h'.
25607 if test -n "$CONFIG_FILES"; then
25610 ac_cr=`echo X | tr X '\015'`
25611 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25612 # But we know of no other shell where ac_cr would be empty at this
25613 # point, so we can use a bashism as a fallback.
25614 if test "x$ac_cr" = x; then
25615 eval ac_cr=\$\'\\r\'
25617 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25618 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25621 ac_cs_awk_cr=$ac_cr
25624 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25629 echo "cat >conf$$subs.awk <<_ACEOF" &&
25630 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25632 } >conf$$subs.sh ||
25633 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25634 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25636 for ac_last_try in false false false false false :; do
25637 . ./conf$$subs.sh ||
25638 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25640 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25641 if test $ac_delim_n = $ac_delim_num; then
25643 elif $ac_last_try; then
25644 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25649 rm -f conf$$subs.sh
25651 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25652 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25656 s/^/S["/; s/!.*/"]=/
25666 s/\(.\{148\}\)..*/\1/
25668 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25673 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25680 s/\(.\{148\}\)..*/\1/
25682 s/["\\]/\\&/g; s/^/"/; s/$/"/
25686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25691 ' <conf$$subs.awk | sed '
25696 ' >>$CONFIG_STATUS || ac_write_fail=1
25697 rm -f conf$$subs.awk
25698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25700 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25701 for (key in S) S_is_set[key] = 1
25707 nfields = split(line, field, "@")
25709 len = length(field[1])
25710 for (i = 2; i < nfields; i++) {
25712 keylen = length(key)
25713 if (S_is_set[key]) {
25715 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25716 len += length(value) + length(field[++i])
25727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25728 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25729 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25732 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25733 || as_fn_error "could not setup config files machinery" "$LINENO" 5
25736 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25737 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25738 # trailing colons and then remove the whole line if VPATH becomes empty
25739 # (actually we leave an empty line to preserve line numbers).
25740 if test "x$srcdir" = x.; then
25741 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25742 s/:*\$(srcdir):*/:/
25743 s/:*\${srcdir}:*/:/
25745 s/^\([^=]*=[ ]*\):*/\1/
25751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25752 fi # test -n "$CONFIG_FILES"
25754 # Set up the scripts for CONFIG_HEADERS section.
25755 # No need to generate them if there are no CONFIG_HEADERS.
25756 # This happens for instance with `./config.status Makefile'.
25757 if test -n "$CONFIG_HEADERS"; then
25758 cat >"$tmp/defines.awk" <<\_ACAWK ||
25762 # Transform confdefs.h into an awk script `defines.awk', embedded as
25763 # here-document in config.status, that substitutes the proper values into
25764 # config.h.in to produce config.h.
25766 # Create a delimiter string that does not exist in confdefs.h, to ease
25767 # handling of long lines.
25769 for ac_last_try in false false :; do
25770 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25771 if test -z "$ac_t"; then
25773 elif $ac_last_try; then
25774 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
25776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25780 # For the awk script, D is an array of macro values keyed by name,
25781 # likewise P contains macro parameters if any. Preserve backslash
25782 # newline sequences.
25784 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25786 s/.\{148\}/&'"$ac_delim"'/g
25789 s/^[ ]*#[ ]*define[ ][ ]*/ /
25796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25798 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25802 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25803 D["\1"]=" \3\\\\\\n"\\/p
25805 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25810 s/.\{148\}/&'"$ac_delim"'/g
25815 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25818 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25820 ' <confdefs.h | sed '
25821 s/'"$ac_delim"'/"\\\
25822 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25825 for (key in D) D_is_set[key] = 1
25828 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25830 split(line, arg, " ")
25831 if (arg[1] == "#") {
25835 defundef = substr(arg[1], 2)
25838 split(mac1, mac2, "(") #)
25840 prefix = substr(line, 1, index(line, defundef) - 1)
25841 if (D_is_set[macro]) {
25842 # Preserve the white space surrounding the "#".
25843 print prefix "define", macro P[macro] D[macro]
25846 # Replace #undef with comments. This is necessary, for example,
25847 # in the case of _POSIX_SOURCE, which is predefined and required
25848 # on some systems where configure will not decide to define it.
25849 if (defundef == "undef") {
25850 print "/*", prefix defundef, macro, "*/"
25858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25859 as_fn_error "could not setup config headers machinery" "$LINENO" 5
25860 fi # test -n "$CONFIG_HEADERS"
25863 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25868 :[FHLC]) ac_mode=$ac_tag; continue;;
25870 case $ac_mode$ac_tag in
25872 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
25873 :[FH]-) ac_tag=-:-;;
25874 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25891 -) ac_f="$tmp/stdin";;
25892 *) # Look for the file first in the build tree, then in the source tree
25893 # (if the path is not absolute). The absolute path cannot be DOS-style,
25894 # because $ac_f cannot contain `:'.
25898 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25900 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25902 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25903 as_fn_append ac_file_inputs " '$ac_f'"
25906 # Let's still pretend it is `configure' which instantiates (i.e., don't
25907 # use $as_me), people would be surprised to read:
25908 # /* config.h. Generated by config.status. */
25909 configure_input='Generated from '`
25910 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25912 if test x"$ac_file" != x-; then
25913 configure_input="$ac_file. $configure_input"
25914 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25915 $as_echo "$as_me: creating $ac_file" >&6;}
25917 # Neutralize special characters interpreted by sed in replacement strings.
25918 case $configure_input in #(
25919 *\&* | *\|* | *\\* )
25920 ac_sed_conf_input=`$as_echo "$configure_input" |
25921 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25922 *) ac_sed_conf_input=$configure_input;;
25926 *:-:* | *:-) cat >"$tmp/stdin" \
25927 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
25932 ac_dir=`$as_dirname -- "$ac_file" ||
25933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25934 X"$ac_file" : 'X\(//\)[^/]' \| \
25935 X"$ac_file" : 'X\(//\)$' \| \
25936 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25937 $as_echo X"$ac_file" |
25938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25942 /^X\(\/\/\)[^/].*/{
25955 as_dir="$ac_dir"; as_fn_mkdir_p
25959 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25961 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25962 # A ".." for each directory in $ac_dir_suffix.
25963 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25964 case $ac_top_builddir_sub in
25965 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25966 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25969 ac_abs_top_builddir=$ac_pwd
25970 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25971 # for backward compatibility:
25972 ac_top_builddir=$ac_top_build_prefix
25975 .) # We are building in place.
25977 ac_top_srcdir=$ac_top_builddir_sub
25978 ac_abs_top_srcdir=$ac_pwd ;;
25979 [\\/]* | ?:[\\/]* ) # Absolute name.
25980 ac_srcdir=$srcdir$ac_dir_suffix;
25981 ac_top_srcdir=$srcdir
25982 ac_abs_top_srcdir=$srcdir ;;
25983 *) # Relative name.
25984 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25985 ac_top_srcdir=$ac_top_build_prefix$srcdir
25986 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25988 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25998 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25999 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26004 # If the template does not know about datarootdir, expand it.
26005 # FIXME: This hack should be removed a few years after 2.60.
26006 ac_datarootdir_hack=; ac_datarootdir_seen=
26017 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26018 *datarootdir*) ac_datarootdir_seen=yes;;
26019 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26021 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26024 ac_datarootdir_hack='
26025 s&@datadir@&$datadir&g
26026 s&@docdir@&$docdir&g
26027 s&@infodir@&$infodir&g
26028 s&@localedir@&$localedir&g
26029 s&@mandir@&$mandir&g
26030 s&\\\${datarootdir}&$datarootdir&g' ;;
26034 # Neutralize VPATH when `$srcdir' = `.'.
26035 # Shell code in configure.ac might set extrasub.
26036 # FIXME: do we really want to maintain this feature?
26037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26038 ac_sed_extra="$ac_vpsub
26041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26043 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26044 s|@configure_input@|$ac_sed_conf_input|;t t
26045 s&@top_builddir@&$ac_top_builddir_sub&;t t
26046 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26047 s&@srcdir@&$ac_srcdir&;t t
26048 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26049 s&@top_srcdir@&$ac_top_srcdir&;t t
26050 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26051 s&@builddir@&$ac_builddir&;t t
26052 s&@abs_builddir@&$ac_abs_builddir&;t t
26053 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26054 s&@INSTALL@&$ac_INSTALL&;t t
26055 $ac_datarootdir_hack
26057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26058 || as_fn_error "could not create $ac_file" "$LINENO" 5
26060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26064 which seems to be undefined. Please make sure it is defined." >&5
26065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26066 which seems to be undefined. Please make sure it is defined." >&2;}
26070 -) cat "$tmp/out" && rm -f "$tmp/out";;
26071 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26073 || as_fn_error "could not create $ac_file" "$LINENO" 5
26079 if test x"$ac_file" != x-; then
26081 $as_echo "/* $configure_input */" \
26082 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26083 } >"$tmp/config.h" \
26084 || as_fn_error "could not create $ac_file" "$LINENO" 5
26085 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26087 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26090 mv "$tmp/config.h" "$ac_file" \
26091 || as_fn_error "could not create $ac_file" "$LINENO" 5
26094 $as_echo "/* $configure_input */" \
26095 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26096 || as_fn_error "could not create -" "$LINENO" 5
26098 # Compute "$ac_file"'s index in $config_headers.
26100 for _am_header in $config_headers :; do
26101 case $_am_header in
26102 "$ac_file" | "$ac_file":* )
26105 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26108 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26110 X"$ac_file" : 'X\(//\)[^/]' \| \
26111 X"$ac_file" : 'X\(//\)$' \| \
26112 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26113 $as_echo X"$ac_file" |
26114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26118 /^X\(\/\/\)[^/].*/{
26130 s/.*/./; q'`/stamp-h$_am_stamp_count
26133 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26134 $as_echo "$as_me: executing $ac_file commands" >&6;}
26139 case $ac_file$ac_mode in
26140 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26141 # Strip MF so we end up with the name of the file.
26142 mf=`echo "$mf" | sed -e 's/:.*$//'`
26143 # Check whether this is an Automake generated Makefile or not.
26144 # We used to match only the files named `Makefile.in', but
26145 # some people rename them; so instead we look at the file content.
26146 # Grep'ing the first line is not enough: some people post-process
26147 # each Makefile.in and add a new line on top of each file to say so.
26148 # So let's grep whole file.
26149 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26150 dirpart=`$as_dirname -- "$mf" ||
26151 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26152 X"$mf" : 'X\(//\)[^/]' \| \
26153 X"$mf" : 'X\(//\)$' \| \
26154 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26160 /^X\(\/\/\)[^/].*/{
26176 # Extract the definition of DEPDIR, am__include, and am__quote
26177 # from the Makefile without running `make'.
26178 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26179 test -z "$DEPDIR" && continue
26180 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26181 test -z "am__include" && continue
26182 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26183 # When using ansi2knr, U may be empty or an underscore; expand it
26184 U=`sed -n 's/^U = //p' < "$mf"`
26185 # Find all dependency output files, they are included files with
26186 # $(DEPDIR) in their names. We invoke sed twice because it is the
26187 # simplest approach to changing $(DEPDIR) to its actual value in the
26189 for file in `sed -n "
26190 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26191 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26192 # Make sure the directory exists.
26193 test -f "$dirpart/$file" && continue
26194 fdir=`$as_dirname -- "$file" ||
26195 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26196 X"$file" : 'X\(//\)[^/]' \| \
26197 X"$file" : 'X\(//\)$' \| \
26198 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26199 $as_echo X"$file" |
26200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26204 /^X\(\/\/\)[^/].*/{
26217 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26218 # echo "creating $dirpart/$file"
26219 echo '# dummy' > "$dirpart/$file"
26226 BACKENDSC="servers/slapd/backends.c"
26227 echo "Making $BACKENDSC"
26229 cat > $BACKENDSC << ENDX
26230 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26232 * Copyright 1998-2017 The OpenLDAP Foundation.
26233 * All rights reserved.
26235 * Redistribution and use in source and binary forms, with or without
26236 * modification, are permitted only as authorized by the OpenLDAP
26239 * A copy of this license is available in the file LICENSE in the
26240 * top-level directory of the distribution or, alternatively, at
26241 * <http://www.OpenLDAP.org/license.html>.
26243 /* This file is automatically generated by configure; please do not edit. */
26245 #include "portable.h"
26249 if test "${STATIC_BACKENDS}"; then
26250 for b in config ${STATIC_BACKENDS}; do
26251 bb=`echo "${b}" | sed -e 's/back-//'`
26252 cat >> $BACKENDSC << ENDX
26253 extern BI_init ${bb}_back_initialize;
26257 cat >> $BACKENDSC << ENDX
26259 BackendInfo slap_binfo[] = {
26262 for b in config ${STATIC_BACKENDS}; do
26263 bb=`echo "${b}" | sed -e 's/back-//'`
26264 echo " Add ${bb} ..."
26265 cat >> $BACKENDSC << ENDX
26266 { "${bb}", ${bb}_back_initialize },
26270 cat >> $BACKENDSC << ENDX
26274 /* end of generated file */
26277 OVERLAYSC="servers/slapd/overlays/statover.c"
26278 echo "Making $OVERLAYSC"
26280 cat > $OVERLAYSC << ENDX
26281 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26283 * Copyright 1998-2017 The OpenLDAP Foundation.
26284 * All rights reserved.
26286 * Redistribution and use in source and binary forms, with or without
26287 * modification, are permitted only as authorized by the OpenLDAP
26290 * A copy of this license is available in the file LICENSE in the
26291 * top-level directory of the distribution or, alternatively, at
26292 * <http://www.OpenLDAP.org/license.html>.
26294 /* This file is automatically generated by configure; please do not edit. */
26296 #include "portable.h"
26300 if test "${STATIC_OVERLAYS}"; then
26301 for o in ${STATIC_OVERLAYS}; do
26302 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26303 cat >> $OVERLAYSC << ENDX
26304 extern OV_init ${oo}_initialize;
26309 cat >> $OVERLAYSC << ENDX
26311 OverlayInit slap_oinfo[] = {
26314 if test "${STATIC_OVERLAYS}"; then
26315 for o in ${STATIC_OVERLAYS}; do
26316 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26317 echo " Add ${oo} ..."
26318 cat >> $OVERLAYSC << ENDX
26319 { "${oo}", ${oo}_initialize },
26324 cat >> $OVERLAYSC << ENDX
26328 /* end of generated file */
26331 if test "${ol_cv_mkdep}" = no; then
26332 echo '(Do not "make depend"; we do not know how to build dependencies)'
26334 echo 'Please run "make depend" to build dependencies'
26344 ac_clean_files=$ac_clean_files_save
26346 test $ac_write_fail = 0 ||
26347 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
26350 # configure is writing to config.log, and then calls config.status.
26351 # config.status does its own redirection, appending to config.log.
26352 # Unfortunately, on DOS this fails, as config.log is still kept open
26353 # by configure, so config.status won't be able to write to it; its
26354 # output is simply discarded. So we exec the FD to /dev/null,
26355 # effectively closing config.log, so it can be properly (re)opened and
26356 # appended to by config.status. When coming back to configure, we
26357 # need to make the FD available again.
26358 if test "$no_create" != yes; then
26360 ac_config_status_args=
26361 test "$silent" = yes &&
26362 ac_config_status_args="$ac_config_status_args --quiet"
26364 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26366 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26367 # would make configure fail if this is the last instruction.
26368 $ac_cs_success || as_fn_exit $?
26370 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26372 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}