2 # From configure.in Id: 84bfc8afb7ab27da80a7fcd61c212e89ba29ed41 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68.
6 # Copyright 1998-2014 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, 2010 Free Software
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.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 if (eval "$as_required") 2>/dev/null; then :
185 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 test -z "$as_dir" && as_dir=.
197 for as_base in sh bash ksh sh5; do
198 # Try only shells that exist, to save several forks.
199 as_shell=$as_dir/$as_base
200 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 CONFIG_SHELL=$as_shell as_have_required=yes
203 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213 CONFIG_SHELL=$SHELL as_have_required=yes
218 if test "x$CONFIG_SHELL" != x; then :
219 # We cannot yet assume a decent shell, so we have to provide a
220 # neutralization value for shells without unset; and this also
221 # works around shells that cannot unset nonexistent variables.
222 # Preserve -v and -x to the replacement shell.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 *v*x* | *x*v* ) as_opts=-vx ;;
233 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
236 if test x$as_have_required = xno; then :
237 $as_echo "$0: This script requires a shell more modern than all"
238 $as_echo "$0: the shells that I found on your system."
239 if test x${ZSH_VERSION+set} = xset ; then
240 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
241 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
243 $as_echo "$0: Please tell bug-autoconf@gnu.org and
244 $0: <http://www.openldap.org/its/> about your system,
245 $0: including any error possibly output before this
246 $0: message. Then install a modern shell, or manually run
247 $0: the script under such a shell if you do have one."
253 SHELL=${CONFIG_SHELL-/bin/sh}
255 # Unset more variables known to interfere with behavior of common tools.
256 CLICOLOR_FORCE= GREP_OPTIONS=
257 unset CLICOLOR_FORCE GREP_OPTIONS
259 ## --------------------- ##
260 ## M4sh Shell Functions. ##
261 ## --------------------- ##
264 # Portably unset VAR.
267 { eval $1=; unset $1;}
271 # as_fn_set_status STATUS
272 # -----------------------
273 # Set $? to STATUS, without forking.
281 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291 # Create "$as_dir" as a directory, including parents if necessary.
296 -*) as_dir=./$as_dir;;
298 test -d "$as_dir" || eval $as_mkdir_p || {
302 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
305 as_dirs="'$as_qdir' $as_dirs"
306 as_dir=`$as_dirname -- "$as_dir" ||
307 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
308 X"$as_dir" : 'X\(//\)[^/]' \| \
309 X"$as_dir" : 'X\(//\)$' \| \
310 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
311 $as_echo X"$as_dir" |
312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
329 test -d "$as_dir" && break
331 test -z "$as_dirs" || eval "mkdir $as_dirs"
332 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336 # as_fn_append VAR VALUE
337 # ----------------------
338 # Append the text in VALUE to the end of the definition contained in VAR. Take
339 # advantage of any shell optimizations that allow amortized linear growth over
340 # repeated appends, instead of the typical quadratic growth present in naive
342 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
343 eval 'as_fn_append ()
356 # Perform arithmetic evaluation on the ARGs, and store the result in the
357 # global $as_val. Take advantage of shells that can avoid forks. The arguments
358 # must be portable across $(()) and expr.
359 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 as_val=`expr "$@" || test $? -eq 1`
372 # as_fn_error STATUS ERROR [LINENO LOG_FD]
373 # ----------------------------------------
374 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
375 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
376 # script with STATUS, using 1 if that was 0.
379 as_status=$1; test $as_status -eq 0 && as_status=1
381 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
382 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
384 $as_echo "$as_me: error: $2" >&2
385 as_fn_exit $as_status
388 if expr a : '\(a\)' >/dev/null 2>&1 &&
389 test "X`expr 00001 : '.*\(...\)'`" = X001; then
395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
407 as_me=`$as_basename -- "$0" ||
408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
409 X"$0" : 'X\(//\)$' \| \
410 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
412 sed '/^.*\/\([^/][^/]*\)\/*$/{
426 # Avoid depending upon Character Ranges.
427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
430 as_cr_digits='0123456789'
431 as_cr_alnum=$as_cr_Letters$as_cr_digits
434 as_lineno_1=$LINENO as_lineno_1a=$LINENO
435 as_lineno_2=$LINENO as_lineno_2a=$LINENO
436 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
437 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
438 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
450 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 chmod +x "$as_me.lineno" ||
455 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
465 ECHO_C= ECHO_N= ECHO_T=
466 case `echo -n x` in #(((((
468 case `echo 'xy\c'` in
469 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478 rm -f conf$$ conf$$.exe conf$$.file
479 if test -d conf$$.dir; then
480 rm -f conf$$.dir/conf$$.file
483 mkdir conf$$.dir 2>/dev/null
485 if (echo >conf$$.file) 2>/dev/null; then
486 if ln -s conf$$.file conf$$ 2>/dev/null; then
488 # ... but there are two gotchas:
489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
491 # In both cases, we have to default to `cp -p'.
492 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
494 elif ln conf$$.file conf$$ 2>/dev/null; then
502 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
503 rmdir conf$$.dir 2>/dev/null
505 if mkdir -p . 2>/dev/null; then
506 as_mkdir_p='mkdir -p "$as_dir"'
508 test -d ./-p && rmdir ./-p
512 if test -x / >/dev/null 2>&1; then
515 if ls -dL / >/dev/null 2>&1; then
522 if test -d "$1"; then
528 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
529 ???[sx]*):;;*)false;;esac;fi
533 as_executable_p=$as_test_x
535 # Sed expression to map a string onto a valid CPP name.
536 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
538 # Sed expression to map a string onto a valid variable name.
539 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543 # Check that we are running under the correct shell.
544 SHELL=${CONFIG_SHELL-/bin/sh}
548 # Remove one level of quotation (which was required for Make).
549 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
554 if test "X$1" = X--no-reexec; then
555 # Discard the --no-reexec flag, and continue.
557 elif test "X$1" = X--fallback-echo; then
558 # Avoid inline document here, it may be left over
560 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
561 # Yippee, $echo works!
564 # Restart under the correct shell.
565 exec $SHELL "$0" --no-reexec ${1+"$@"}
568 if test "X$1" = X--fallback-echo; then
569 # used as fallback echo
577 # The HP-UX ksh and POSIX shell print the target directory to stdout
579 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
581 if test -z "$ECHO"; then
582 if test "X${echo_test_string+set}" != Xset; then
583 # find a string as large as possible, as long as the shell can cope with it
584 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
585 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
586 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
587 echo_test_string=`eval $cmd` &&
588 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
595 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
596 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
597 test "X$echo_testing_string" = "X$echo_test_string"; then
600 # The Solaris, AIX, and Digital Unix default echo programs unquote
601 # backslashes. This makes it impossible to quote backslashes using
602 # echo "$something" | sed 's/\\/\\\\/g'
604 # So, first we look for a working echo in the user's PATH.
606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
607 for dir in $PATH /usr/ucb; do
609 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
610 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
619 if test "X$echo" = Xecho; then
620 # We didn't find a better echo, so look for alternatives.
621 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 # This shell has a builtin print -r that does the trick.
626 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
627 test "X$CONFIG_SHELL" != X/bin/ksh; then
628 # If we have ksh, try running configure again with it.
629 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
630 export ORIGINAL_CONFIG_SHELL
631 CONFIG_SHELL=/bin/ksh
633 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
637 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
638 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
639 test "X$echo_testing_string" = "X$echo_test_string"; then
642 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
643 test "X$echo_testing_string" = 'X\t' &&
644 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
648 SHELL="$CONFIG_SHELL"
650 echo="$CONFIG_SHELL $0 --fallback-echo"
651 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 echo="$CONFIG_SHELL $0 --fallback-echo"
657 # maybe with a smaller string...
660 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
661 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
668 if test "$prev" != 'sed 50q "$0"'; then
669 echo_test_string=`eval $prev`
670 export echo_test_string
671 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
673 # Oops. We lost completely, so just stick with echo.
682 # Copy echo and quote the copy suitably for passing to libtool from
683 # the Makefile, instead of quoting the original, which is used later.
685 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
686 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
692 test -n "$DJDIR" || exec 7<&0 </dev/null
696 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
697 # so uname gets run too.
698 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
703 ac_default_prefix=/usr/local
705 ac_config_libobj_dir=.
712 # Identity of this package.
720 ac_unique_file="OpenLDAP"
721 ac_unique_file="build/version.sh"
722 ac_default_prefix=/usr/local
723 # Factoring default headers for most tests.
724 ac_includes_default="\
726 #ifdef HAVE_SYS_TYPES_H
727 # include <sys/types.h>
729 #ifdef HAVE_SYS_STAT_H
730 # include <sys/stat.h>
736 # ifdef HAVE_STDLIB_H
741 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
746 #ifdef HAVE_STRINGS_H
747 # include <strings.h>
749 #ifdef HAVE_INTTYPES_H
750 # include <inttypes.h>
759 ac_subst_vars='LTLIBOBJS
777 SLAPD_DYNAMIC_OVERLAYS
778 SLAPD_STATIC_OVERLAYS
779 SLAPD_DYNAMIC_BACKENDS
780 SLAPD_STATIC_BACKENDS
782 SLAPD_MODULES_LDFLAGS
783 SLAPD_MODULES_CPPFLAGS
875 OPENLDAP_RELEASE_DATE
885 INSTALL_STRIP_PROGRAM
938 program_transform_name
951 enable_option_checking
966 enable_xxslapdoptions
980 enable_xxslapbackends
997 enable_xxslapoverlays
1023 enable_dependency_tracking
1030 ac_precious_vars='build_alias
1041 # Initialize some variables set by options.
1043 ac_init_version=false
1044 ac_unrecognized_opts=
1045 ac_unrecognized_sep=
1046 # The variables have the same names as the options, with
1047 # dashes changed to underlines.
1048 cache_file=/dev/null
1055 program_transform_name=s,x,x,
1063 # Installation directory options.
1064 # These are left unexpanded so users can "make install exec_prefix=/foo"
1065 # and all the variables that are supposed to be based on exec_prefix
1066 # by default will actually change.
1067 # Use braces instead of parens because sh, perl, etc. also accept them.
1068 # (The list follows the same order as the GNU Coding Standards.)
1069 bindir='${exec_prefix}/bin'
1070 sbindir='${exec_prefix}/sbin'
1071 libexecdir='${exec_prefix}/libexec'
1072 datarootdir='${prefix}/share'
1073 datadir='${datarootdir}'
1074 sysconfdir='${prefix}/etc'
1075 sharedstatedir='${prefix}/com'
1076 localstatedir='${prefix}/var'
1077 includedir='${prefix}/include'
1078 oldincludedir='/usr/include'
1079 docdir='${datarootdir}/doc/${PACKAGE}'
1080 infodir='${datarootdir}/info'
1085 libdir='${exec_prefix}/lib'
1086 localedir='${datarootdir}/locale'
1087 mandir='${datarootdir}/man'
1093 # If the previous option needs an argument, assign it.
1094 if test -n "$ac_prev"; then
1095 eval $ac_prev=\$ac_option
1101 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1108 case $ac_dashdash$ac_option in
1112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115 bindir=$ac_optarg ;;
1117 -build | --build | --buil | --bui | --bu)
1118 ac_prev=build_alias ;;
1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120 build_alias=$ac_optarg ;;
1122 -cache-file | --cache-file | --cache-fil | --cache-fi \
1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124 ac_prev=cache_file ;;
1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127 cache_file=$ac_optarg ;;
1129 --config-cache | -C)
1130 cache_file=config.cache ;;
1132 -datadir | --datadir | --datadi | --datad)
1134 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135 datadir=$ac_optarg ;;
1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138 | --dataroo | --dataro | --datar)
1139 ac_prev=datarootdir ;;
1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142 datarootdir=$ac_optarg ;;
1144 -disable-* | --disable-*)
1145 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1148 as_fn_error $? "invalid feature name: $ac_useropt"
1149 ac_useropt_orig=$ac_useropt
1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1151 case $ac_user_opts in
1153 "enable_$ac_useropt"
1155 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1156 ac_unrecognized_sep=', ';;
1158 eval enable_$ac_useropt=no ;;
1160 -docdir | --docdir | --docdi | --doc | --do)
1162 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1163 docdir=$ac_optarg ;;
1165 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1167 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1168 dvidir=$ac_optarg ;;
1170 -enable-* | --enable-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid feature name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "enable_$ac_useropt"
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1184 eval enable_$ac_useropt=\$ac_optarg ;;
1186 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1187 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1188 | --exec | --exe | --ex)
1189 ac_prev=exec_prefix ;;
1190 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1191 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1192 | --exec=* | --exe=* | --ex=*)
1193 exec_prefix=$ac_optarg ;;
1195 -gas | --gas | --ga | --g)
1196 # Obsolete; use --with-gas.
1199 -help | --help | --hel | --he | -h)
1200 ac_init_help=long ;;
1201 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1202 ac_init_help=recursive ;;
1203 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1204 ac_init_help=short ;;
1206 -host | --host | --hos | --ho)
1207 ac_prev=host_alias ;;
1208 -host=* | --host=* | --hos=* | --ho=*)
1209 host_alias=$ac_optarg ;;
1211 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215 htmldir=$ac_optarg ;;
1217 -includedir | --includedir | --includedi | --included | --include \
1218 | --includ | --inclu | --incl | --inc)
1219 ac_prev=includedir ;;
1220 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1221 | --includ=* | --inclu=* | --incl=* | --inc=*)
1222 includedir=$ac_optarg ;;
1224 -infodir | --infodir | --infodi | --infod | --info | --inf)
1226 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1227 infodir=$ac_optarg ;;
1229 -libdir | --libdir | --libdi | --libd)
1231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1232 libdir=$ac_optarg ;;
1234 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1235 | --libexe | --libex | --libe)
1236 ac_prev=libexecdir ;;
1237 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1238 | --libexe=* | --libex=* | --libe=*)
1239 libexecdir=$ac_optarg ;;
1241 -localedir | --localedir | --localedi | --localed | --locale)
1242 ac_prev=localedir ;;
1243 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1244 localedir=$ac_optarg ;;
1246 -localstatedir | --localstatedir | --localstatedi | --localstated \
1247 | --localstate | --localstat | --localsta | --localst | --locals)
1248 ac_prev=localstatedir ;;
1249 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1250 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1251 localstatedir=$ac_optarg ;;
1253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1256 mandir=$ac_optarg ;;
1258 -nfp | --nfp | --nf)
1259 # Obsolete; use --without-fp.
1262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1263 | --no-cr | --no-c | -n)
1266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1272 | --oldin | --oldi | --old | --ol | --o)
1273 ac_prev=oldincludedir ;;
1274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1277 oldincludedir=$ac_optarg ;;
1279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1282 prefix=$ac_optarg ;;
1284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1285 | --program-pre | --program-pr | --program-p)
1286 ac_prev=program_prefix ;;
1287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1289 program_prefix=$ac_optarg ;;
1291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1292 | --program-suf | --program-su | --program-s)
1293 ac_prev=program_suffix ;;
1294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1296 program_suffix=$ac_optarg ;;
1298 -program-transform-name | --program-transform-name \
1299 | --program-transform-nam | --program-transform-na \
1300 | --program-transform-n | --program-transform- \
1301 | --program-transform | --program-transfor \
1302 | --program-transfo | --program-transf \
1303 | --program-trans | --program-tran \
1304 | --progr-tra | --program-tr | --program-t)
1305 ac_prev=program_transform_name ;;
1306 -program-transform-name=* | --program-transform-name=* \
1307 | --program-transform-nam=* | --program-transform-na=* \
1308 | --program-transform-n=* | --program-transform-=* \
1309 | --program-transform=* | --program-transfor=* \
1310 | --program-transfo=* | --program-transf=* \
1311 | --program-trans=* | --program-tran=* \
1312 | --progr-tra=* | --program-tr=* | --program-t=*)
1313 program_transform_name=$ac_optarg ;;
1315 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1318 pdfdir=$ac_optarg ;;
1320 -psdir | --psdir | --psdi | --psd | --ps)
1322 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1325 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1326 | -silent | --silent | --silen | --sile | --sil)
1329 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333 sbindir=$ac_optarg ;;
1335 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1336 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1337 | --sharedst | --shareds | --shared | --share | --shar \
1339 ac_prev=sharedstatedir ;;
1340 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1341 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1342 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344 sharedstatedir=$ac_optarg ;;
1346 -site | --site | --sit)
1348 -site=* | --site=* | --sit=*)
1351 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1354 srcdir=$ac_optarg ;;
1356 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1357 | --syscon | --sysco | --sysc | --sys | --sy)
1358 ac_prev=sysconfdir ;;
1359 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1360 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1361 sysconfdir=$ac_optarg ;;
1363 -target | --target | --targe | --targ | --tar | --ta | --t)
1364 ac_prev=target_alias ;;
1365 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1366 target_alias=$ac_optarg ;;
1368 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1371 -version | --version | --versio | --versi | --vers | -V)
1372 ac_init_version=: ;;
1375 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error $? "invalid package name: $ac_useropt"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1388 eval with_$ac_useropt=\$ac_optarg ;;
1390 -without-* | --without-*)
1391 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1392 # Reject names that are not valid shell variable names.
1393 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1394 as_fn_error $? "invalid package name: $ac_useropt"
1395 ac_useropt_orig=$ac_useropt
1396 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1397 case $ac_user_opts in
1401 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1402 ac_unrecognized_sep=', ';;
1404 eval with_$ac_useropt=no ;;
1407 # Obsolete; use --with-x.
1410 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1411 | --x-incl | --x-inc | --x-in | --x-i)
1412 ac_prev=x_includes ;;
1413 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1414 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1415 x_includes=$ac_optarg ;;
1417 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1418 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1419 ac_prev=x_libraries ;;
1420 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1421 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1422 x_libraries=$ac_optarg ;;
1424 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1425 Try \`$0 --help' for more information"
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 case $ac_envvar in #(
1432 '' | [0-9]* | *[!_$as_cr_alnum]* )
1433 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1435 eval $ac_envvar=\$ac_optarg
1436 export $ac_envvar ;;
1439 # FIXME: should be removed in autoconf 3.0.
1440 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1441 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1442 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1443 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1449 if test -n "$ac_prev"; then
1450 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1451 as_fn_error $? "missing argument to $ac_option"
1454 if test -n "$ac_unrecognized_opts"; then
1455 case $enable_option_checking in
1457 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1458 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1462 # Check all directory arguments for consistency.
1463 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1464 datadir sysconfdir sharedstatedir localstatedir includedir \
1465 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1466 libdir localedir mandir
1468 eval ac_val=\$$ac_var
1469 # Remove trailing slashes.
1472 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1473 eval $ac_var=\$ac_val;;
1475 # Be sure to have absolute directory names.
1477 [\\/$]* | ?:[\\/]* ) continue;;
1478 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1480 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1483 # There might be people who depend on the old broken behavior: `$host'
1484 # used to hold the argument of --host etc.
1485 # FIXME: To remove some day.
1488 target=$target_alias
1490 # FIXME: To remove some day.
1491 if test "x$host_alias" != x; then
1492 if test "x$build_alias" = x; then
1493 cross_compiling=maybe
1494 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1495 If a cross compiler is detected then cross compile mode will be used" >&2
1496 elif test "x$build_alias" != "x$host_alias"; then
1502 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1504 test "$silent" = yes && exec 6>/dev/null
1507 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1508 ac_ls_di=`ls -di .` &&
1509 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1510 as_fn_error $? "working directory cannot be determined"
1511 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1512 as_fn_error $? "pwd does not report name of working directory"
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1547 ac_srcdir_defaulted=no
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1551 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1557 # When building in place, set srcdir=.
1558 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561 # Remove unnecessary trailing slashes from srcdir.
1562 # Double slashes in file names in object file debugging info
1563 # mess up M-x gdb in Emacs.
1565 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1567 for ac_var in $ac_precious_vars; do
1568 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1569 eval ac_env_${ac_var}_value=\$${ac_var}
1570 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1571 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1575 # Report the --help message.
1577 if test "$ac_init_help" = "long"; then
1578 # Omit some internal or obsolete options to make the list less imposing.
1579 # This message is too long to be a string in the A/UX 3.1 sh.
1581 \`configure' configures this package to adapt to many kinds of systems.
1583 Usage: $0 [OPTION]... [VAR=VALUE]...
1585 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1586 VAR=VALUE. See below for descriptions of some of the useful variables.
1588 Defaults for the options are specified in brackets.
1591 -h, --help display this help and exit
1592 --help=short display options specific to this package
1593 --help=recursive display the short help of all the included packages
1594 -V, --version display version information and exit
1595 -q, --quiet, --silent do not print \`checking ...' messages
1596 --cache-file=FILE cache test results in FILE [disabled]
1597 -C, --config-cache alias for \`--cache-file=config.cache'
1598 -n, --no-create do not create output files
1599 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1601 Installation directories:
1602 --prefix=PREFIX install architecture-independent files in PREFIX
1603 [$ac_default_prefix]
1604 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1607 By default, \`make install' will install all the files in
1608 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1609 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1610 for instance \`--prefix=\$HOME'.
1612 For better control, use the options below.
1614 Fine tuning of the installation directories:
1615 --bindir=DIR user executables [EPREFIX/bin]
1616 --sbindir=DIR system admin executables [EPREFIX/sbin]
1617 --libexecdir=DIR program executables [EPREFIX/libexec]
1618 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1619 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1620 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1621 --libdir=DIR object code libraries [EPREFIX/lib]
1622 --includedir=DIR C header files [PREFIX/include]
1623 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1624 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1625 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1626 --infodir=DIR info documentation [DATAROOTDIR/info]
1627 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1628 --mandir=DIR man documentation [DATAROOTDIR/man]
1629 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1630 --htmldir=DIR html documentation [DOCDIR]
1631 --dvidir=DIR dvi documentation [DOCDIR]
1632 --pdfdir=DIR pdf documentation [DOCDIR]
1633 --psdir=DIR ps documentation [DOCDIR]
1639 --program-prefix=PREFIX prepend PREFIX to installed program names
1640 --program-suffix=SUFFIX append SUFFIX to installed program names
1641 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1644 --build=BUILD configure for building on BUILD [guessed]
1645 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1646 --target=TARGET configure for building compilers for TARGET [HOST]
1650 if test -n "$ac_init_help"; then
1655 --disable-option-checking ignore unrecognized --enable/--with options
1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1658 --enable-debug enable debugging no|yes|traditional [yes]
1659 --enable-dynamic enable linking built binaries with dynamic libs [no]
1660 --enable-syslog enable syslog support [auto]
1661 --enable-proctitle enable proctitle support [yes]
1662 --enable-ipv6 enable IPv6 support [auto]
1663 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]
1665 SLAPD (Standalone LDAP Daemon) Options:
1666 --enable-slapd enable building slapd [yes]
1667 --enable-dynacl enable run-time loadable ACL support (experimental) [no]
1668 --enable-aci enable per-object ACIs (experimental) no|yes|mod [no]
1669 --enable-cleartext enable cleartext passwords [yes]
1670 --enable-crypt enable crypt(3) passwords [no]
1671 --enable-lmpasswd enable LAN Manager passwords [no]
1672 --enable-spasswd enable (Cyrus) SASL password verification [no]
1673 --enable-modules enable dynamic module support [no]
1674 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]
1675 --enable-rlookups enable reverse lookups of client hostnames [no]
1676 --enable-slapi enable SLAPI support (experimental) [no]
1677 --enable-slp enable SLPv2 support [no]
1678 --enable-wrappers enable tcp wrapper support [no]
1680 SLAPD Backend Options:
1681 --enable-backends enable all available backends no|yes|mod
1682 --enable-bdb enable Berkeley DB backend no|yes|mod [no]
1683 --enable-dnssrv enable dnssrv backend no|yes|mod [no]
1684 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]
1685 --enable-ldap enable ldap backend no|yes|mod [no]
1686 --enable-mdb enable mdb database backend no|yes|mod [yes]
1687 --enable-meta enable metadirectory backend no|yes|mod [no]
1688 --enable-monitor enable monitor backend no|yes|mod [yes]
1689 --enable-ndb enable MySQL NDB Cluster backend no|yes|mod [no]
1690 --enable-null enable null backend no|yes|mod [no]
1691 --enable-passwd enable passwd backend no|yes|mod [no]
1692 --enable-perl enable perl backend no|yes|mod [no]
1693 --enable-relay enable relay backend no|yes|mod [yes]
1694 --enable-shell enable shell backend no|yes|mod [no]
1695 --enable-sock enable sock backend no|yes|mod [no]
1696 --enable-sql enable sql backend no|yes|mod [no]
1698 SLAPD Overlay Options:
1699 --enable-overlays enable all available overlays no|yes|mod
1700 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]
1701 --enable-auditlog Audit Logging overlay no|yes|mod [no]
1702 --enable-collect Collect overlay no|yes|mod [no]
1703 --enable-constraint Attribute Constraint overlay no|yes|mod [no]
1704 --enable-dds Dynamic Directory Services overlay no|yes|mod [no]
1705 --enable-deref Dereference overlay no|yes|mod [no]
1706 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]
1707 --enable-dynlist Dynamic List overlay no|yes|mod [no]
1708 --enable-memberof Reverse Group Membership overlay no|yes|mod [no]
1709 --enable-ppolicy Password Policy overlay no|yes|mod [no]
1710 --enable-proxycache Proxy Cache overlay no|yes|mod [no]
1711 --enable-refint Referential Integrity overlay no|yes|mod [no]
1712 --enable-retcode Return Code testing overlay no|yes|mod [no]
1713 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]
1714 --enable-seqmod Sequential Modify overlay no|yes|mod [no]
1715 --enable-sssvlv ServerSideSort/VLV overlay no|yes|mod [no]
1716 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]
1717 --enable-translucent Translucent Proxy overlay no|yes|mod [no]
1718 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]
1719 --enable-valsort Value Sorting overlay no|yes|mod [no]
1721 Library Generation & Linking Options
1722 --enable-static[=PKGS] build static libraries [default=yes]
1723 --enable-shared[=PKGS] build shared libraries [default=yes]
1724 --enable-fast-install[=PKGS]
1725 optimize for fast installation [default=yes]
1726 --disable-dependency-tracking speeds up one-time build
1727 --enable-dependency-tracking do not reject slow dependency extractors
1728 --disable-libtool-lock avoid locking (might break parallel builds)
1731 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1732 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1733 --with-subdir=DIR change default subdirectory used for installs
1734 --with-cyrus-sasl with Cyrus SASL support [auto]
1735 --with-fetch with fetch(3) URL support [auto]
1736 --with-threads with threads [auto]
1737 --with-tls with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1738 --with-yielding-select with implicitly yielding select [auto]
1739 --with-mp with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1740 --with-odbc with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1741 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1742 --with-pic try to use only PIC/non-PIC objects [default=use
1744 --with-tags[=TAGS] include additional configurations [automatic]
1746 See INSTALL file for further details.
1748 Some influential environment variables:
1749 CC C compiler command
1750 CFLAGS C compiler flags
1751 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1752 nonstandard directory <lib dir>
1753 LIBS libraries to pass to the linker, e.g. -l<library>
1754 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1755 you have headers in a nonstandard directory <include dir>
1758 Use these variables to override the choices made by `configure' or to help
1759 it to find libraries and programs with nonstandard names/locations.
1761 Report bugs to the package provider.
1766 if test "$ac_init_help" = "recursive"; then
1767 # If there are subdirs, report their specific --help.
1768 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1769 test -d "$ac_dir" ||
1770 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1775 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1778 # A ".." for each directory in $ac_dir_suffix.
1779 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1780 case $ac_top_builddir_sub in
1781 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1782 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 ac_abs_top_builddir=$ac_pwd
1786 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1787 # for backward compatibility:
1788 ac_top_builddir=$ac_top_build_prefix
1791 .) # We are building in place.
1793 ac_top_srcdir=$ac_top_builddir_sub
1794 ac_abs_top_srcdir=$ac_pwd ;;
1795 [\\/]* | ?:[\\/]* ) # Absolute name.
1796 ac_srcdir=$srcdir$ac_dir_suffix;
1797 ac_top_srcdir=$srcdir
1798 ac_abs_top_srcdir=$srcdir ;;
1800 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1801 ac_top_srcdir=$ac_top_build_prefix$srcdir
1802 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1804 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1806 cd "$ac_dir" || { ac_status=$?; continue; }
1807 # Check for guested configure.
1808 if test -f "$ac_srcdir/configure.gnu"; then
1810 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1811 elif test -f "$ac_srcdir/configure"; then
1813 $SHELL "$ac_srcdir/configure" --help=recursive
1815 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1817 cd "$ac_pwd" || { ac_status=$?; break; }
1821 test -n "$ac_init_help" && exit $ac_status
1822 if $ac_init_version; then
1825 generated by GNU Autoconf 2.68
1827 Copyright (C) 2010 Free Software Foundation, Inc.
1828 This configure script is free software; the Free Software Foundation
1829 gives unlimited permission to copy, distribute and modify it.
1831 Copyright 1998-2014 The OpenLDAP Foundation. All rights reserved.
1832 Restrictions apply, see COPYRIGHT and LICENSE files.
1837 ## ------------------------ ##
1838 ## Autoconf initialization. ##
1839 ## ------------------------ ##
1841 # ac_fn_c_try_compile LINENO
1842 # --------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_c_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err; then
1858 grep -v '^ *+' conftest.err >conftest.er1
1859 cat conftest.er1 >&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_c_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1877 } # ac_fn_c_try_compile
1879 # ac_fn_c_try_link LINENO
1880 # -----------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext conftest$ac_exeext
1886 if { { ac_try="$ac_link"
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_c_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 $as_test_x conftest$ac_exeext
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_c_try_link
1925 # ac_fn_c_try_cpp LINENO
1926 # ----------------------
1927 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } > conftest.i && {
1947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1948 test ! -s conftest.err
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958 as_fn_set_status $ac_retval
1962 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1963 # -------------------------------------------------------
1964 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1965 # the include files in INCLUDES and setting the cache variable VAR
1967 ac_fn_c_check_header_mongrel ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 if eval \${$3+:} false; then :
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if eval \${$3+:} false; then :
1974 $as_echo_n "(cached) " >&6
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978 $as_echo "$ac_res" >&6; }
1980 # Is the header compilable?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1982 $as_echo_n "checking $2 usability... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 ac_header_compiler=yes
1991 ac_header_compiler=no
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1995 $as_echo "$ac_header_compiler" >&6; }
1997 # Is the header present?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1999 $as_echo_n "checking $2 presence... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2004 if ac_fn_c_try_cpp "$LINENO"; then :
2005 ac_header_preproc=yes
2007 ac_header_preproc=no
2009 rm -f conftest.err conftest.i conftest.$ac_ext
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2011 $as_echo "$ac_header_preproc" >&6; }
2013 # So? What about this header?
2014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2017 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2019 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2023 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2025 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2027 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2029 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2031 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032 ( $as_echo "## --------------------------------------------- ##
2033 ## Report this to <http://www.openldap.org/its/> ##
2034 ## --------------------------------------------- ##"
2035 ) | sed "s/^/$as_me: WARNING: /" >&2
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval \${$3+:} false; then :
2041 $as_echo_n "(cached) " >&6
2043 eval "$3=\$ac_header_compiler"
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 } # ac_fn_c_check_header_mongrel
2053 # ac_fn_c_try_run LINENO
2054 # ----------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056 # that executables *can* be run.
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 if { { ac_try="$ac_link"
2062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063 *) ac_try_echo=$ac_try;;
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067 (eval "$ac_link") 2>&5
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071 { { case "(($ac_try" in
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_try") 2>&5
2079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080 test $ac_status = 0; }; }; then :
2083 $as_echo "$as_me: program exited with status $ac_status" >&5
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2087 ac_retval=$ac_status
2089 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 as_fn_set_status $ac_retval
2095 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2096 # -------------------------------------------------------
2097 # Tests whether HEADER exists and can be compiled using the include files in
2098 # INCLUDES, setting the cache variable VAR accordingly.
2099 ac_fn_c_check_header_compile ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2112 if ac_fn_c_try_compile "$LINENO"; then :
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124 } # ac_fn_c_check_header_compile
2126 # ac_fn_c_check_func LINENO FUNC VAR
2127 # ----------------------------------
2128 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2129 ac_fn_c_check_func ()
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138 /* end confdefs.h. */
2139 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2141 #define $2 innocuous_$2
2143 /* System header to define __stub macros and hopefully few prototypes,
2144 which can conflict with char $2 (); below.
2145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2146 <limits.h> exists even on freestanding compilers. */
2149 # include <limits.h>
2151 # include <assert.h>
2156 /* Override any GCC internal prototype to avoid an error.
2157 Use char because int might match the return type of a GCC
2158 builtin and then its argument prototype would still apply. */
2163 /* The GNU C library defines this for functions which it implements
2164 to always fail with ENOSYS. Some functions are actually named
2165 something starting with __ and the normal name is an alias. */
2166 #if defined __stub_$2 || defined __stub___$2
2178 if ac_fn_c_try_link "$LINENO"; then :
2183 rm -f core conftest.err conftest.$ac_objext \
2184 conftest$ac_exeext conftest.$ac_ext
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2191 } # ac_fn_c_check_func
2193 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2194 # -------------------------------------------
2195 # Tests whether TYPE exists after having included INCLUDES, setting cache
2196 # variable VAR accordingly.
2197 ac_fn_c_check_type ()
2199 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2201 $as_echo_n "checking for $2... " >&6; }
2202 if eval \${$3+:} false; then :
2203 $as_echo_n "(cached) " >&6
2206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2218 if ac_fn_c_try_compile "$LINENO"; then :
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2231 if ac_fn_c_try_compile "$LINENO"; then :
2236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242 $as_echo "$ac_res" >&6; }
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2245 } # ac_fn_c_check_type
2247 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2248 # ----------------------------------------------------
2249 # Tries to find if the field MEMBER exists in type AGGR, after including
2250 # INCLUDES, setting cache variable VAR accordingly.
2251 ac_fn_c_check_member ()
2253 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2255 $as_echo_n "checking for $2.$3... " >&6; }
2256 if eval \${$4+:} false; then :
2257 $as_echo_n "(cached) " >&6
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2272 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2282 if (sizeof ac_aggr.$3)
2288 if ac_fn_c_try_compile "$LINENO"; then :
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299 $as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302 } # ac_fn_c_check_member
2304 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2305 # --------------------------------------------
2306 # Tries to find the compile-time value of EXPR in a program that includes
2307 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2309 ac_fn_c_compute_int ()
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 if test "$cross_compiling" = yes; then
2313 # Depending upon the size, compute the lo and hi bounds.
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2320 static int test_array [1 - 2 * !(($2) >= 0)];
2327 if ac_fn_c_try_compile "$LINENO"; then :
2330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2331 /* end confdefs.h. */
2336 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2343 if ac_fn_c_try_compile "$LINENO"; then :
2344 ac_hi=$ac_mid; break
2346 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2347 if test $ac_lo -le $ac_mid; then
2351 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2357 /* end confdefs.h. */
2362 static int test_array [1 - 2 * !(($2) < 0)];
2369 if ac_fn_c_try_compile "$LINENO"; then :
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h. */
2378 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2385 if ac_fn_c_try_compile "$LINENO"; then :
2386 ac_lo=$ac_mid; break
2388 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2389 if test $ac_mid -le $ac_hi; then
2393 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 # Binary search between lo and hi bounds.
2404 while test "x$ac_lo" != "x$ac_hi"; do
2405 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2412 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2419 if ac_fn_c_try_compile "$LINENO"; then :
2422 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2434 static long int longval () { return $2; }
2435 static unsigned long int ulongval () { return $2; }
2442 FILE *f = fopen ("conftest.val", "w");
2447 long int i = longval ();
2450 fprintf (f, "%ld", i);
2454 unsigned long int i = ulongval ();
2457 fprintf (f, "%lu", i);
2459 /* Do not output a trailing newline, as this causes \r\n confusion
2460 on some platforms. */
2461 return ferror (f) || fclose (f) != 0;
2467 if ac_fn_c_try_run "$LINENO"; then :
2468 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2473 conftest.$ac_objext conftest.beam conftest.$ac_ext
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478 as_fn_set_status $ac_retval
2480 } # ac_fn_c_compute_int
2481 cat >config.log <<_ACEOF
2482 This file contains any messages produced by compilers while
2483 running configure, to aid debugging if configure makes a mistake.
2485 It was created by $as_me, which was
2486 generated by GNU Autoconf 2.68. Invocation command line was
2498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2505 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2507 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2508 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2510 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2511 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2512 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2513 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 test -z "$as_dir" && as_dir=.
2522 $as_echo "PATH: $as_dir"
2538 # Keep a trace of the command line.
2539 # Strip out --no-create and --no-recursion so they do not pile up.
2540 # Strip out --silent because we don't want to record it for future runs.
2541 # Also quote any args containing shell meta-characters.
2542 # Make two passes to allow for proper duplicate-argument suppression.
2546 ac_must_keep_next=false
2552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2554 | -silent | --silent | --silen | --sile | --sil)
2557 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2560 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2562 as_fn_append ac_configure_args1 " '$ac_arg'"
2563 if test $ac_must_keep_next = true; then
2564 ac_must_keep_next=false # Got value, back to normal.
2567 *=* | --config-cache | -C | -disable-* | --disable-* \
2568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2570 | -with-* | --with-* | -without-* | --without-* | --x)
2571 case "$ac_configure_args0 " in
2572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2575 -* ) ac_must_keep_next=true ;;
2578 as_fn_append ac_configure_args " '$ac_arg'"
2583 { ac_configure_args0=; unset ac_configure_args0;}
2584 { ac_configure_args1=; unset ac_configure_args1;}
2586 # When interrupted or exit'd, cleanup temporary files, and complete
2587 # config.log. We remove comments because anyway the quotes in there
2588 # would cause problems or look ugly.
2589 # WARNING: Use '\'' to represent an apostrophe within the trap.
2590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2591 trap 'exit_status=$?
2592 # Save into config.log some information that might help in debugging.
2596 $as_echo "## ---------------- ##
2597 ## Cache variables. ##
2598 ## ---------------- ##"
2600 # The following way of writing the cache mishandles newlines in values,
2602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2603 eval ac_val=\$$ac_var
2607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2611 _ | IFS | as_nl) ;; #(
2612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2613 *) { eval $ac_var=; unset $ac_var;} ;;
2618 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2619 *${as_nl}ac_space=\ *)
2621 "s/'\''/'\''\\\\'\'''\''/g;
2622 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2625 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2632 $as_echo "## ----------------- ##
2633 ## Output variables. ##
2634 ## ----------------- ##"
2636 for ac_var in $ac_subst_vars
2638 eval ac_val=\$$ac_var
2640 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2642 $as_echo "$ac_var='\''$ac_val'\''"
2646 if test -n "$ac_subst_files"; then
2647 $as_echo "## ------------------- ##
2648 ## File substitutions. ##
2649 ## ------------------- ##"
2651 for ac_var in $ac_subst_files
2653 eval ac_val=\$$ac_var
2655 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2657 $as_echo "$ac_var='\''$ac_val'\''"
2662 if test -s confdefs.h; then
2663 $as_echo "## ----------- ##
2670 test "$ac_signal" != 0 &&
2671 $as_echo "$as_me: caught signal $ac_signal"
2672 $as_echo "$as_me: exit $exit_status"
2674 rm -f core *.core core.conftest.* &&
2675 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2678 for ac_signal in 1 2 13 15; do
2679 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2683 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2684 rm -f -r conftest* confdefs.h
2686 $as_echo "/* confdefs.h */" > confdefs.h
2688 # Predefined preprocessor variables.
2690 cat >>confdefs.h <<_ACEOF
2691 #define PACKAGE_NAME "$PACKAGE_NAME"
2694 cat >>confdefs.h <<_ACEOF
2695 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2702 cat >>confdefs.h <<_ACEOF
2703 #define PACKAGE_STRING "$PACKAGE_STRING"
2706 cat >>confdefs.h <<_ACEOF
2707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2710 cat >>confdefs.h <<_ACEOF
2711 #define PACKAGE_URL "$PACKAGE_URL"
2715 # Let the site file select an alternate cache file if it wants to.
2716 # Prefer an explicitly selected file to automatically selected ones.
2719 if test -n "$CONFIG_SITE"; then
2720 # We do not want a PATH search for config.site.
2721 case $CONFIG_SITE in #((
2722 -*) ac_site_file1=./$CONFIG_SITE;;
2723 */*) ac_site_file1=$CONFIG_SITE;;
2724 *) ac_site_file1=./$CONFIG_SITE;;
2726 elif test "x$prefix" != xNONE; then
2727 ac_site_file1=$prefix/share/config.site
2728 ac_site_file2=$prefix/etc/config.site
2730 ac_site_file1=$ac_default_prefix/share/config.site
2731 ac_site_file2=$ac_default_prefix/etc/config.site
2733 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2735 test "x$ac_site_file" = xNONE && continue
2736 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2738 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2739 sed 's/^/| /' "$ac_site_file" >&5
2741 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2743 as_fn_error $? "failed to load site script $ac_site_file
2744 See \`config.log' for more details" "$LINENO" 5; }
2749 # Check that the precious variables saved in the cache have kept the same
2751 ac_cache_corrupted=false
2752 for ac_var in $ac_precious_vars; do
2753 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2754 eval ac_new_set=\$ac_env_${ac_var}_set
2755 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2756 eval ac_new_val=\$ac_env_${ac_var}_value
2757 case $ac_old_set,$ac_new_set in
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2760 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2761 ac_cache_corrupted=: ;;
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2764 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2768 if test "x$ac_old_val" != "x$ac_new_val"; then
2769 # differences in whitespace do not lead to failure.
2770 ac_old_val_w=`echo x $ac_old_val`
2771 ac_new_val_w=`echo x $ac_new_val`
2772 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2774 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2775 ac_cache_corrupted=:
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2778 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2779 eval $ac_var=\$ac_old_val
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2782 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2784 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2787 # Pass precious variables to config.status.
2788 if test "$ac_new_set" = set; then
2790 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2791 *) ac_arg=$ac_var=$ac_new_val ;;
2793 case " $ac_configure_args " in
2794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2795 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2799 if $ac_cache_corrupted; then
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2803 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2804 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2806 ## -------------------- ##
2807 ## Main body of script. ##
2808 ## -------------------- ##
2811 ac_cpp='$CPP $CPPFLAGS'
2812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 for ac_dir in build "$srcdir"/build; do
2845 if test -f "$ac_dir/install-sh"; then
2847 ac_install_sh="$ac_aux_dir/install-sh -c"
2849 elif test -f "$ac_dir/install.sh"; then
2851 ac_install_sh="$ac_aux_dir/install.sh -c"
2853 elif test -f "$ac_dir/shtool"; then
2855 ac_install_sh="$ac_aux_dir/shtool install -c"
2859 if test -z "$ac_aux_dir"; then
2860 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2863 # These three variables are undocumented and unsupported,
2864 # and are intended to be withdrawn in a future Autoconf release.
2865 # They can cause serious problems if a builder's source tree is in a directory
2866 # whose full name contains unusual characters.
2867 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2868 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2869 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2872 eval `$ac_aux_dir/version.sh`
2873 if test -z "$OL_STRING"; then
2874 as_fn_error $? "could not determine version" "$LINENO" 5
2877 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2878 ac_cv_shtool="$ac_aux_dir/shtool"
2880 as_fn_error $? "no shtool found in $ac_aux_dir" "$LINENO" 5
2883 SHTOOL="$ac_cv_shtool"
2887 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2888 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2892 if test -d $ac_aux_dir/../.git; then
2893 OPENLDAP_REPO="(from Git clone) "
2894 elif test -d $ac_aux_dir/CVS; then
2895 OPENLDAP_REPO="(from CVS checkout) "
2898 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2900 # Make sure we can run config.sub.
2901 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2902 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2905 $as_echo_n "checking build system type... " >&6; }
2906 if ${ac_cv_build+:} false; then :
2907 $as_echo_n "(cached) " >&6
2909 ac_build_alias=$build_alias
2910 test "x$ac_build_alias" = x &&
2911 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2912 test "x$ac_build_alias" = x &&
2913 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2914 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2915 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2919 $as_echo "$ac_cv_build" >&6; }
2920 case $ac_cv_build in
2922 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2925 ac_save_IFS=$IFS; IFS='-'
2931 # Remember, the first character of IFS is used to create $*,
2932 # except with old shells:
2935 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2939 $as_echo_n "checking host system type... " >&6; }
2940 if ${ac_cv_host+:} false; then :
2941 $as_echo_n "(cached) " >&6
2943 if test "x$host_alias" = x; then
2944 ac_cv_host=$ac_cv_build
2946 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2947 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2952 $as_echo "$ac_cv_host" >&6; }
2955 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2958 ac_save_IFS=$IFS; IFS='-'
2964 # Remember, the first character of IFS is used to create $*,
2965 # except with old shells:
2968 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2972 $as_echo_n "checking target system type... " >&6; }
2973 if ${ac_cv_target+:} false; then :
2974 $as_echo_n "(cached) " >&6
2976 if test "x$target_alias" = x; then
2977 ac_cv_target=$ac_cv_host
2979 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2980 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2985 $as_echo "$ac_cv_target" >&6; }
2986 case $ac_cv_target in
2988 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2990 target=$ac_cv_target
2991 ac_save_IFS=$IFS; IFS='-'
2997 # Remember, the first character of IFS is used to create $*,
2998 # except with old shells:
3001 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3004 # The aliases save the names the user supplied, while $host etc.
3005 # will get canonicalized.
3006 test -n "$target_alias" &&
3007 test "$program_prefix$program_suffix$program_transform_name" = \
3009 program_prefix=${target_alias}-
3011 am__api_version="1.9"
3012 # Find a good install program. We prefer a C program (faster),
3013 # so one script is as good as another. But avoid the broken or
3014 # incompatible versions:
3015 # SysV /etc/install, /usr/sbin/install
3016 # SunOS /usr/etc/install
3017 # IRIX /sbin/install
3019 # AmigaOS /C/install, which installs bootblocks on floppy discs
3020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3023 # OS/2's system install, which has a completely different semantic
3024 # ./install, which can be erroneously created by make from ./install.sh.
3025 # Reject install programs that cannot install multiple files.
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3027 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3028 if test -z "$INSTALL"; then
3029 if ${ac_cv_path_install+:} false; then :
3030 $as_echo_n "(cached) " >&6
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 test -z "$as_dir" && as_dir=.
3037 # Account for people who put trailing slashes in PATH elements.
3038 case $as_dir/ in #((
3039 ./ | .// | /[cC]/* | \
3040 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3041 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3044 # OSF1 and SCO ODT 3.0 have their own names for install.
3045 # Don't use installbsd from OSF since it installs stuff as root
3047 for ac_prog in ginstall scoinst install; do
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3050 if test $ac_prog = install &&
3051 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3052 # AIX install. It has an incompatible calling convention.
3054 elif test $ac_prog = install &&
3055 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3056 # program-specific install script used by HP pwplus--don't use.
3059 rm -rf conftest.one conftest.two conftest.dir
3060 echo one > conftest.one
3061 echo two > conftest.two
3063 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3064 test -s conftest.one && test -s conftest.two &&
3065 test -s conftest.dir/conftest.one &&
3066 test -s conftest.dir/conftest.two
3068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3081 rm -rf conftest.one conftest.two conftest.dir
3084 if test "${ac_cv_path_install+set}" = set; then
3085 INSTALL=$ac_cv_path_install
3087 # As a last resort, use the slow shell script. Don't cache a
3088 # value for INSTALL within a source directory, because that will
3089 # break other packages using the cache if that directory is
3090 # removed, or if the value is a relative name.
3091 INSTALL=$ac_install_sh
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3095 $as_echo "$INSTALL" >&6; }
3097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3098 # It thinks the first close brace ends the variable substitution.
3099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3106 $as_echo_n "checking whether build environment is sane... " >&6; }
3109 echo timestamp > conftest.file
3110 # Do `set' in a subshell so we don't clobber the current shell's
3111 # arguments. Must try -L first in case configure is actually a
3112 # symlink; some systems play weird games with the mod time of symlinks
3113 # (eg FreeBSD returns the mod time of the symlink's containing
3116 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3117 if test "$*" = "X"; then
3119 set X `ls -t $srcdir/configure conftest.file`
3122 if test "$*" != "X $srcdir/configure conftest.file" \
3123 && test "$*" != "X conftest.file $srcdir/configure"; then
3125 # If neither matched, then we have a broken ls. This can happen
3126 # if, for instance, CONFIG_SHELL is bash and it inherits a
3127 # broken ls alias from the environment. This has actually
3128 # happened. Such a system could not be considered "sane".
3129 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3130 alias in your environment" "$LINENO" 5
3133 test "$2" = conftest.file
3139 as_fn_error $? "newly created file is older than distributed files!
3140 Check your system clock" "$LINENO" 5
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3144 test "$program_prefix" != NONE &&
3145 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3146 # Use a double $ so make ignores it.
3147 test "$program_suffix" != NONE &&
3148 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3149 # Double any \ or $.
3150 # By default was `s,x,x', remove it if useless.
3151 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3152 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3154 # expand $ac_aux_dir to an absolute path
3155 am_aux_dir=`cd $ac_aux_dir && pwd`
3157 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3158 # Use eval to expand $SHELL
3159 if eval "$MISSING --run true"; then
3160 am_missing_run="$MISSING --run "
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3164 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3167 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3168 # We used to keeping the `.' as first argument, in order to
3169 # allow $(mkdir_p) to be used without argument. As in
3170 # $(mkdir_p) $(somedir)
3171 # where $(somedir) is conditionally defined. However this is wrong
3173 # 1. if the package is installed by a user who cannot write `.'
3174 # make install will fail,
3175 # 2. the above comment should most certainly read
3176 # $(mkdir_p) $(DESTDIR)$(somedir)
3177 # so it does not work when $(somedir) is undefined and
3178 # $(DESTDIR) is not.
3179 # To support the latter case, we have to write
3180 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3181 # so the `.' trick is pointless.
3182 mkdir_p='mkdir -p --'
3184 # On NextStep and OpenStep, the `mkdir' command does not
3185 # recognize any option. It will interpret all options as
3186 # directories to create, and then abort because `.' already
3188 for d in ./-p ./--version;
3190 test -d $d && rmdir $d
3192 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3193 if test -f "$ac_aux_dir/mkinstalldirs"; then
3194 mkdir_p='$(mkinstalldirs)'
3196 mkdir_p='$(install_sh) -d'
3200 for ac_prog in gawk mawk nawk awk
3202 # Extract the first word of "$ac_prog", so it can be a program name with args.
3203 set dummy $ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_AWK+:} false; then :
3207 $as_echo_n "(cached) " >&6
3209 if test -n "$AWK"; then
3210 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3219 ac_cv_prog_AWK="$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 if test -n "$AWK"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3232 $as_echo "$AWK" >&6; }
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3239 test -n "$AWK" && break
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3243 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3245 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3246 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 cat >conftest.make <<\_ACEOF
3252 @echo '@@@%%%=$(MAKE)=@@@%%%'
3254 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3255 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3257 eval ac_cv_prog_make_${ac_make}_set=yes;;
3259 eval ac_cv_prog_make_${ac_make}_set=no;;
3263 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3265 $as_echo "yes" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 SET_MAKE="MAKE=${MAKE-make}"
3273 rm -rf .tst 2>/dev/null
3274 mkdir .tst 2>/dev/null
3275 if test -d .tst; then
3280 rmdir .tst 2>/dev/null
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284 test -f $srcdir/config.status; then
3285 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3288 # test whether we have cygpath
3289 if test -z "$CYGPATH_W"; then
3290 if (cygpath --version) >/dev/null 2>/dev/null; then
3291 CYGPATH_W='cygpath -w'
3298 # Define the identity of the package.
3303 # Some tools Automake needs.
3305 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3308 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3311 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3314 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3317 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3319 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3321 # Installed binaries are usually stripped using `strip' when the user
3322 # run `make install-strip'. However `strip' might not be the right
3323 # tool to use in cross-compilation environments, therefore Automake
3324 # will honor the `STRIP' environment variable to overrule this program.
3325 if test "$cross_compiling" != no; then
3326 if test -n "$ac_tool_prefix"; then
3327 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}strip; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_STRIP+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 if test -n "$STRIP"; then
3335 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341 test -z "$as_dir" && as_dir=.
3342 for ac_exec_ext in '' $ac_executable_extensions; do
3343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3344 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 STRIP=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3357 $as_echo "$STRIP" >&6; }
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3365 if test -z "$ac_cv_prog_STRIP"; then
3367 # Extract the first word of "strip", so it can be a program name with args.
3368 set dummy strip; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 if test -n "$ac_ct_STRIP"; then
3375 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 test -z "$as_dir" && as_dir=.
3382 for ac_exec_ext in '' $ac_executable_extensions; do
3383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384 ac_cv_prog_ac_ct_STRIP="strip"
3385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3395 if test -n "$ac_ct_STRIP"; then
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3397 $as_echo "$ac_ct_STRIP" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3403 if test "x$ac_ct_STRIP" = x; then
3406 case $cross_compiling:$ac_tool_warned in
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3415 STRIP="$ac_cv_prog_STRIP"
3419 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3421 # We need awk for the "check" target. The system "awk" is bad on
3423 # Always define AMTAR for backward compatibility.
3425 AMTAR=${AMTAR-"${am_missing_run}tar"}
3427 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3433 cat >>confdefs.h <<_ACEOF
3434 #define OPENLDAP_PACKAGE "$PACKAGE"
3438 cat >>confdefs.h <<_ACEOF
3439 #define OPENLDAP_VERSION "$VERSION"
3444 cat >>confdefs.h <<_ACEOF
3445 #define LDAP_VENDOR_VERSION $OL_API_INC
3449 cat >>confdefs.h <<_ACEOF
3450 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
3454 cat >>confdefs.h <<_ACEOF
3455 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
3459 cat >>confdefs.h <<_ACEOF
3460 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
3464 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
3466 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
3468 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
3474 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
3476 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
3478 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configure arguments" >&5
3482 $as_echo_n "checking configure arguments... " >&6; }
3487 ldap_subdir="/openldap"
3490 # Check whether --with-subdir was given.
3491 if test "${with_subdir+set}" = set; then :
3492 withval=$with_subdir; case "$withval" in
3498 ldap_subdir="$withval"
3501 ldap_subdir="/$withval"
3508 # OpenLDAP --enable-debug
3510 # Check whether --enable-debug was given.
3511 if test "${enable_debug+set}" = set; then :
3512 enableval=$enable_debug;
3514 for ol_val in no yes traditional ; do
3515 if test "$enableval" = "$ol_val" ; then
3519 if test "$ol_arg" = "invalid" ; then
3520 as_fn_error $? "bad value $enableval for --enable-debug" "$LINENO" 5
3522 ol_enable_debug="$ol_arg"
3528 # end --enable-debug
3529 # OpenLDAP --enable-dynamic
3531 # Check whether --enable-dynamic was given.
3532 if test "${enable_dynamic+set}" = set; then :
3533 enableval=$enable_dynamic;
3535 for ol_val in auto yes no ; do
3536 if test "$enableval" = "$ol_val" ; then
3540 if test "$ol_arg" = "invalid" ; then
3541 as_fn_error $? "bad value $enableval for --enable-dynamic" "$LINENO" 5
3543 ol_enable_dynamic="$ol_arg"
3546 ol_enable_dynamic=no
3549 # end --enable-dynamic
3550 # OpenLDAP --enable-syslog
3552 # Check whether --enable-syslog was given.
3553 if test "${enable_syslog+set}" = set; then :
3554 enableval=$enable_syslog;
3556 for ol_val in auto yes no ; do
3557 if test "$enableval" = "$ol_val" ; then
3561 if test "$ol_arg" = "invalid" ; then
3562 as_fn_error $? "bad value $enableval for --enable-syslog" "$LINENO" 5
3564 ol_enable_syslog="$ol_arg"
3567 ol_enable_syslog=auto
3570 # end --enable-syslog
3571 # OpenLDAP --enable-proctitle
3573 # Check whether --enable-proctitle was given.
3574 if test "${enable_proctitle+set}" = set; then :
3575 enableval=$enable_proctitle;
3577 for ol_val in auto yes no ; do
3578 if test "$enableval" = "$ol_val" ; then
3582 if test "$ol_arg" = "invalid" ; then
3583 as_fn_error $? "bad value $enableval for --enable-proctitle" "$LINENO" 5
3585 ol_enable_proctitle="$ol_arg"
3588 ol_enable_proctitle=yes
3591 # end --enable-proctitle
3592 ol_enable_referrals=${ol_enable_referrals-no}
3593 # OpenLDAP --enable-ipv6
3595 # Check whether --enable-ipv6 was given.
3596 if test "${enable_ipv6+set}" = set; then :
3597 enableval=$enable_ipv6;
3599 for ol_val in auto yes no ; do
3600 if test "$enableval" = "$ol_val" ; then
3604 if test "$ol_arg" = "invalid" ; then
3605 as_fn_error $? "bad value $enableval for --enable-ipv6" "$LINENO" 5
3607 ol_enable_ipv6="$ol_arg"
3614 # OpenLDAP --enable-local
3616 # Check whether --enable-local was given.
3617 if test "${enable_local+set}" = set; then :
3618 enableval=$enable_local;
3620 for ol_val in auto yes no ; do
3621 if test "$enableval" = "$ol_val" ; then
3625 if test "$ol_arg" = "invalid" ; then
3626 as_fn_error $? "bad value $enableval for --enable-local" "$LINENO" 5
3628 ol_enable_local="$ol_arg"
3631 ol_enable_local=auto
3634 # end --enable-local
3636 # OpenLDAP --with-cyrus_sasl
3638 # Check whether --with-cyrus_sasl was given.
3639 if test "${with_cyrus_sasl+set}" = set; then :
3640 withval=$with_cyrus_sasl;
3642 for ol_val in auto yes no ; do
3643 if test "$withval" = "$ol_val" ; then
3647 if test "$ol_arg" = "invalid" ; then
3648 as_fn_error $? "bad value $withval for --with-cyrus_sasl" "$LINENO" 5
3650 ol_with_cyrus_sasl="$ol_arg"
3653 ol_with_cyrus_sasl="auto"
3655 # end --with-cyrus_sasl
3657 # OpenLDAP --with-fetch
3659 # Check whether --with-fetch was given.
3660 if test "${with_fetch+set}" = set; then :
3661 withval=$with_fetch;
3663 for ol_val in auto yes no ; do
3664 if test "$withval" = "$ol_val" ; then
3668 if test "$ol_arg" = "invalid" ; then
3669 as_fn_error $? "bad value $withval for --with-fetch" "$LINENO" 5
3671 ol_with_fetch="$ol_arg"
3674 ol_with_fetch="auto"
3678 # OpenLDAP --with-threads
3680 # Check whether --with-threads was given.
3681 if test "${with_threads+set}" = set; then :
3682 withval=$with_threads;
3684 for ol_val in auto nt posix mach pth lwp yes no manual ; do
3685 if test "$withval" = "$ol_val" ; then
3689 if test "$ol_arg" = "invalid" ; then
3690 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
3692 ol_with_threads="$ol_arg"
3695 ol_with_threads="auto"
3697 # end --with-threads
3699 # OpenLDAP --with-tls
3701 # Check whether --with-tls was given.
3702 if test "${with_tls+set}" = set; then :
3705 for ol_val in auto openssl gnutls moznss yes no ; do
3706 if test "$withval" = "$ol_val" ; then
3710 if test "$ol_arg" = "invalid" ; then
3711 as_fn_error $? "bad value $withval for --with-tls" "$LINENO" 5
3713 ol_with_tls="$ol_arg"
3720 # OpenLDAP --with-yielding_select
3722 # Check whether --with-yielding_select was given.
3723 if test "${with_yielding_select+set}" = set; then :
3724 withval=$with_yielding_select;
3726 for ol_val in auto yes no manual ; do
3727 if test "$withval" = "$ol_val" ; then
3731 if test "$ol_arg" = "invalid" ; then
3732 as_fn_error $? "bad value $withval for --with-yielding_select" "$LINENO" 5
3734 ol_with_yielding_select="$ol_arg"
3737 ol_with_yielding_select="auto"
3739 # end --with-yielding_select
3741 # OpenLDAP --with-mp
3743 # Check whether --with-mp was given.
3744 if test "${with_mp+set}" = set; then :
3747 for ol_val in auto longlong long bignum gmp yes no ; do
3748 if test "$withval" = "$ol_val" ; then
3752 if test "$ol_arg" = "invalid" ; then
3753 as_fn_error $? "bad value $withval for --with-mp" "$LINENO" 5
3755 ol_with_mp="$ol_arg"
3762 # OpenLDAP --with-odbc
3764 # Check whether --with-odbc was given.
3765 if test "${with_odbc+set}" = set; then :
3768 for ol_val in auto iodbc unixodbc odbc32 ; do
3769 if test "$withval" = "$ol_val" ; then
3773 if test "$ol_arg" = "invalid" ; then
3774 as_fn_error $? "bad value $withval for --with-odbc" "$LINENO" 5
3776 ol_with_odbc="$ol_arg"
3785 # Check whether --enable-xxslapdoptions was given.
3786 if test "${enable_xxslapdoptions+set}" = set; then :
3787 enableval=$enable_xxslapdoptions;
3790 # OpenLDAP --enable-slapd
3792 # Check whether --enable-slapd was given.
3793 if test "${enable_slapd+set}" = set; then :
3794 enableval=$enable_slapd;
3796 for ol_val in auto yes no ; do
3797 if test "$enableval" = "$ol_val" ; then
3801 if test "$ol_arg" = "invalid" ; then
3802 as_fn_error $? "bad value $enableval for --enable-slapd" "$LINENO" 5
3804 ol_enable_slapd="$ol_arg"
3810 # end --enable-slapd
3811 # OpenLDAP --enable-dynacl
3813 # Check whether --enable-dynacl was given.
3814 if test "${enable_dynacl+set}" = set; then :
3815 enableval=$enable_dynacl;
3817 for ol_val in auto yes no ; do
3818 if test "$enableval" = "$ol_val" ; then
3822 if test "$ol_arg" = "invalid" ; then
3823 as_fn_error $? "bad value $enableval for --enable-dynacl" "$LINENO" 5
3825 ol_enable_dynacl="$ol_arg"
3831 # end --enable-dynacl
3832 # OpenLDAP --enable-aci
3834 # Check whether --enable-aci was given.
3835 if test "${enable_aci+set}" = set; then :
3836 enableval=$enable_aci;
3838 for ol_val in no yes mod ; do
3839 if test "$enableval" = "$ol_val" ; then
3843 if test "$ol_arg" = "invalid" ; then
3844 as_fn_error $? "bad value $enableval for --enable-aci" "$LINENO" 5
3846 ol_enable_aci="$ol_arg"
3853 # OpenLDAP --enable-cleartext
3855 # Check whether --enable-cleartext was given.
3856 if test "${enable_cleartext+set}" = set; then :
3857 enableval=$enable_cleartext;
3859 for ol_val in auto yes no ; do
3860 if test "$enableval" = "$ol_val" ; then
3864 if test "$ol_arg" = "invalid" ; then
3865 as_fn_error $? "bad value $enableval for --enable-cleartext" "$LINENO" 5
3867 ol_enable_cleartext="$ol_arg"
3870 ol_enable_cleartext=yes
3873 # end --enable-cleartext
3874 # OpenLDAP --enable-crypt
3876 # Check whether --enable-crypt was given.
3877 if test "${enable_crypt+set}" = set; then :
3878 enableval=$enable_crypt;
3880 for ol_val in auto yes no ; do
3881 if test "$enableval" = "$ol_val" ; then
3885 if test "$ol_arg" = "invalid" ; then
3886 as_fn_error $? "bad value $enableval for --enable-crypt" "$LINENO" 5
3888 ol_enable_crypt="$ol_arg"
3894 # end --enable-crypt
3895 # OpenLDAP --enable-lmpasswd
3897 # Check whether --enable-lmpasswd was given.
3898 if test "${enable_lmpasswd+set}" = set; then :
3899 enableval=$enable_lmpasswd;
3901 for ol_val in auto yes no ; do
3902 if test "$enableval" = "$ol_val" ; then
3906 if test "$ol_arg" = "invalid" ; then
3907 as_fn_error $? "bad value $enableval for --enable-lmpasswd" "$LINENO" 5
3909 ol_enable_lmpasswd="$ol_arg"
3912 ol_enable_lmpasswd=no
3915 # end --enable-lmpasswd
3916 # OpenLDAP --enable-spasswd
3918 # Check whether --enable-spasswd was given.
3919 if test "${enable_spasswd+set}" = set; then :
3920 enableval=$enable_spasswd;
3922 for ol_val in auto yes no ; do
3923 if test "$enableval" = "$ol_val" ; then
3927 if test "$ol_arg" = "invalid" ; then
3928 as_fn_error $? "bad value $enableval for --enable-spasswd" "$LINENO" 5
3930 ol_enable_spasswd="$ol_arg"
3933 ol_enable_spasswd=no
3936 # end --enable-spasswd
3937 # OpenLDAP --enable-modules
3939 # Check whether --enable-modules was given.
3940 if test "${enable_modules+set}" = set; then :
3941 enableval=$enable_modules;
3943 for ol_val in auto yes no ; do
3944 if test "$enableval" = "$ol_val" ; then
3948 if test "$ol_arg" = "invalid" ; then
3949 as_fn_error $? "bad value $enableval for --enable-modules" "$LINENO" 5
3951 ol_enable_modules="$ol_arg"
3954 ol_enable_modules=no
3957 # end --enable-modules
3958 # OpenLDAP --enable-rewrite
3960 # Check whether --enable-rewrite was given.
3961 if test "${enable_rewrite+set}" = set; then :
3962 enableval=$enable_rewrite;
3964 for ol_val in auto yes no ; do
3965 if test "$enableval" = "$ol_val" ; then
3969 if test "$ol_arg" = "invalid" ; then
3970 as_fn_error $? "bad value $enableval for --enable-rewrite" "$LINENO" 5
3972 ol_enable_rewrite="$ol_arg"
3975 ol_enable_rewrite=auto
3978 # end --enable-rewrite
3979 # OpenLDAP --enable-rlookups
3981 # Check whether --enable-rlookups was given.
3982 if test "${enable_rlookups+set}" = set; then :
3983 enableval=$enable_rlookups;
3985 for ol_val in auto yes no ; do
3986 if test "$enableval" = "$ol_val" ; then
3990 if test "$ol_arg" = "invalid" ; then
3991 as_fn_error $? "bad value $enableval for --enable-rlookups" "$LINENO" 5
3993 ol_enable_rlookups="$ol_arg"
3996 ol_enable_rlookups=no
3999 # end --enable-rlookups
4000 # OpenLDAP --enable-slapi
4002 # Check whether --enable-slapi was given.
4003 if test "${enable_slapi+set}" = set; then :
4004 enableval=$enable_slapi;
4006 for ol_val in auto yes no ; do
4007 if test "$enableval" = "$ol_val" ; then
4011 if test "$ol_arg" = "invalid" ; then
4012 as_fn_error $? "bad value $enableval for --enable-slapi" "$LINENO" 5
4014 ol_enable_slapi="$ol_arg"
4020 # end --enable-slapi
4021 # OpenLDAP --enable-slp
4023 # Check whether --enable-slp was given.
4024 if test "${enable_slp+set}" = set; then :
4025 enableval=$enable_slp;
4027 for ol_val in auto yes no ; do
4028 if test "$enableval" = "$ol_val" ; then
4032 if test "$ol_arg" = "invalid" ; then
4033 as_fn_error $? "bad value $enableval for --enable-slp" "$LINENO" 5
4035 ol_enable_slp="$ol_arg"
4042 # OpenLDAP --enable-wrappers
4044 # Check whether --enable-wrappers was given.
4045 if test "${enable_wrappers+set}" = set; then :
4046 enableval=$enable_wrappers;
4048 for ol_val in auto yes no ; do
4049 if test "$enableval" = "$ol_val" ; then
4053 if test "$ol_arg" = "invalid" ; then
4054 as_fn_error $? "bad value $enableval for --enable-wrappers" "$LINENO" 5
4056 ol_enable_wrappers="$ol_arg"
4059 ol_enable_wrappers=no
4062 # end --enable-wrappers
4080 # Check whether --enable-xxslapbackends was given.
4081 if test "${enable_xxslapbackends+set}" = set; then :
4082 enableval=$enable_xxslapbackends;
4086 # OpenLDAP --enable-backends
4088 # Check whether --enable-backends was given.
4089 if test "${enable_backends+set}" = set; then :
4090 enableval=$enable_backends;
4092 for ol_val in no yes mod ; do
4093 if test "$enableval" = "$ol_val" ; then
4097 if test "$ol_arg" = "invalid" ; then
4098 as_fn_error $? "bad value $enableval for --enable-backends" "$LINENO" 5
4100 ol_enable_backends="$ol_arg"
4104 # end --enable-backends
4105 # OpenLDAP --enable-bdb
4107 # Check whether --enable-bdb was given.
4108 if test "${enable_bdb+set}" = set; then :
4109 enableval=$enable_bdb;
4111 for ol_val in no yes mod ; do
4112 if test "$enableval" = "$ol_val" ; then
4116 if test "$ol_arg" = "invalid" ; then
4117 as_fn_error $? "bad value $enableval for --enable-bdb" "$LINENO" 5
4119 ol_enable_bdb="$ol_arg"
4122 ol_enable_bdb=${ol_enable_backends:-no}
4126 # OpenLDAP --enable-dnssrv
4128 # Check whether --enable-dnssrv was given.
4129 if test "${enable_dnssrv+set}" = set; then :
4130 enableval=$enable_dnssrv;
4132 for ol_val in no yes mod ; do
4133 if test "$enableval" = "$ol_val" ; then
4137 if test "$ol_arg" = "invalid" ; then
4138 as_fn_error $? "bad value $enableval for --enable-dnssrv" "$LINENO" 5
4140 ol_enable_dnssrv="$ol_arg"
4143 ol_enable_dnssrv=${ol_enable_backends:-no}
4146 # end --enable-dnssrv
4147 # OpenLDAP --enable-hdb
4149 # Check whether --enable-hdb was given.
4150 if test "${enable_hdb+set}" = set; then :
4151 enableval=$enable_hdb;
4153 for ol_val in no yes mod ; do
4154 if test "$enableval" = "$ol_val" ; then
4158 if test "$ol_arg" = "invalid" ; then
4159 as_fn_error $? "bad value $enableval for --enable-hdb" "$LINENO" 5
4161 ol_enable_hdb="$ol_arg"
4164 ol_enable_hdb=${ol_enable_backends:-no}
4168 # OpenLDAP --enable-ldap
4170 # Check whether --enable-ldap was given.
4171 if test "${enable_ldap+set}" = set; then :
4172 enableval=$enable_ldap;
4174 for ol_val in no yes mod ; do
4175 if test "$enableval" = "$ol_val" ; then
4179 if test "$ol_arg" = "invalid" ; then
4180 as_fn_error $? "bad value $enableval for --enable-ldap" "$LINENO" 5
4182 ol_enable_ldap="$ol_arg"
4185 ol_enable_ldap=${ol_enable_backends:-no}
4189 # OpenLDAP --enable-mdb
4191 # Check whether --enable-mdb was given.
4192 if test "${enable_mdb+set}" = set; then :
4193 enableval=$enable_mdb;
4195 for ol_val in no yes mod ; do
4196 if test "$enableval" = "$ol_val" ; then
4200 if test "$ol_arg" = "invalid" ; then
4201 as_fn_error $? "bad value $enableval for --enable-mdb" "$LINENO" 5
4203 ol_enable_mdb="$ol_arg"
4206 ol_enable_mdb=${ol_enable_backends:-yes}
4210 # OpenLDAP --enable-meta
4212 # Check whether --enable-meta was given.
4213 if test "${enable_meta+set}" = set; then :
4214 enableval=$enable_meta;
4216 for ol_val in no yes mod ; do
4217 if test "$enableval" = "$ol_val" ; then
4221 if test "$ol_arg" = "invalid" ; then
4222 as_fn_error $? "bad value $enableval for --enable-meta" "$LINENO" 5
4224 ol_enable_meta="$ol_arg"
4227 ol_enable_meta=${ol_enable_backends:-no}
4231 # OpenLDAP --enable-monitor
4233 # Check whether --enable-monitor was given.
4234 if test "${enable_monitor+set}" = set; then :
4235 enableval=$enable_monitor;
4237 for ol_val in no yes mod ; do
4238 if test "$enableval" = "$ol_val" ; then
4242 if test "$ol_arg" = "invalid" ; then
4243 as_fn_error $? "bad value $enableval for --enable-monitor" "$LINENO" 5
4245 ol_enable_monitor="$ol_arg"
4248 ol_enable_monitor=${ol_enable_backends:-yes}
4251 # end --enable-monitor
4252 # OpenLDAP --enable-ndb
4254 # Check whether --enable-ndb was given.
4255 if test "${enable_ndb+set}" = set; then :
4256 enableval=$enable_ndb;
4258 for ol_val in no yes mod ; do
4259 if test "$enableval" = "$ol_val" ; then
4263 if test "$ol_arg" = "invalid" ; then
4264 as_fn_error $? "bad value $enableval for --enable-ndb" "$LINENO" 5
4266 ol_enable_ndb="$ol_arg"
4269 ol_enable_ndb=${ol_enable_backends:-no}
4273 # OpenLDAP --enable-null
4275 # Check whether --enable-null was given.
4276 if test "${enable_null+set}" = set; then :
4277 enableval=$enable_null;
4279 for ol_val in no yes mod ; do
4280 if test "$enableval" = "$ol_val" ; then
4284 if test "$ol_arg" = "invalid" ; then
4285 as_fn_error $? "bad value $enableval for --enable-null" "$LINENO" 5
4287 ol_enable_null="$ol_arg"
4290 ol_enable_null=${ol_enable_backends:-no}
4294 # OpenLDAP --enable-passwd
4296 # Check whether --enable-passwd was given.
4297 if test "${enable_passwd+set}" = set; then :
4298 enableval=$enable_passwd;
4300 for ol_val in no yes mod ; do
4301 if test "$enableval" = "$ol_val" ; then
4305 if test "$ol_arg" = "invalid" ; then
4306 as_fn_error $? "bad value $enableval for --enable-passwd" "$LINENO" 5
4308 ol_enable_passwd="$ol_arg"
4311 ol_enable_passwd=${ol_enable_backends:-no}
4314 # end --enable-passwd
4315 # OpenLDAP --enable-perl
4317 # Check whether --enable-perl was given.
4318 if test "${enable_perl+set}" = set; then :
4319 enableval=$enable_perl;
4321 for ol_val in no yes mod ; do
4322 if test "$enableval" = "$ol_val" ; then
4326 if test "$ol_arg" = "invalid" ; then
4327 as_fn_error $? "bad value $enableval for --enable-perl" "$LINENO" 5
4329 ol_enable_perl="$ol_arg"
4332 ol_enable_perl=${ol_enable_backends:-no}
4336 # OpenLDAP --enable-relay
4338 # Check whether --enable-relay was given.
4339 if test "${enable_relay+set}" = set; then :
4340 enableval=$enable_relay;
4342 for ol_val in no yes mod ; do
4343 if test "$enableval" = "$ol_val" ; then
4347 if test "$ol_arg" = "invalid" ; then
4348 as_fn_error $? "bad value $enableval for --enable-relay" "$LINENO" 5
4350 ol_enable_relay="$ol_arg"
4353 ol_enable_relay=${ol_enable_backends:-yes}
4356 # end --enable-relay
4357 # OpenLDAP --enable-shell
4359 # Check whether --enable-shell was given.
4360 if test "${enable_shell+set}" = set; then :
4361 enableval=$enable_shell;
4363 for ol_val in no yes mod ; do
4364 if test "$enableval" = "$ol_val" ; then
4368 if test "$ol_arg" = "invalid" ; then
4369 as_fn_error $? "bad value $enableval for --enable-shell" "$LINENO" 5
4371 ol_enable_shell="$ol_arg"
4374 ol_enable_shell=${ol_enable_backends:-no}
4377 # end --enable-shell
4378 # OpenLDAP --enable-sock
4380 # Check whether --enable-sock was given.
4381 if test "${enable_sock+set}" = set; then :
4382 enableval=$enable_sock;
4384 for ol_val in no yes mod ; do
4385 if test "$enableval" = "$ol_val" ; then
4389 if test "$ol_arg" = "invalid" ; then
4390 as_fn_error $? "bad value $enableval for --enable-sock" "$LINENO" 5
4392 ol_enable_sock="$ol_arg"
4395 ol_enable_sock=${ol_enable_backends:-no}
4399 # OpenLDAP --enable-sql
4401 # Check whether --enable-sql was given.
4402 if test "${enable_sql+set}" = set; then :
4403 enableval=$enable_sql;
4405 for ol_val in no yes mod ; do
4406 if test "$enableval" = "$ol_val" ; then
4410 if test "$ol_arg" = "invalid" ; then
4411 as_fn_error $? "bad value $enableval for --enable-sql" "$LINENO" 5
4413 ol_enable_sql="$ol_arg"
4416 ol_enable_sql=${ol_enable_backends:-no}
4421 Overlays="accesslog \
4442 # Check whether --enable-xxslapoverlays was given.
4443 if test "${enable_xxslapoverlays+set}" = set; then :
4444 enableval=$enable_xxslapoverlays;
4448 # OpenLDAP --enable-overlays
4450 # Check whether --enable-overlays was given.
4451 if test "${enable_overlays+set}" = set; then :
4452 enableval=$enable_overlays;
4454 for ol_val in no yes mod ; do
4455 if test "$enableval" = "$ol_val" ; then
4459 if test "$ol_arg" = "invalid" ; then
4460 as_fn_error $? "bad value $enableval for --enable-overlays" "$LINENO" 5
4462 ol_enable_overlays="$ol_arg"
4466 # end --enable-overlays
4467 # OpenLDAP --enable-accesslog
4469 # Check whether --enable-accesslog was given.
4470 if test "${enable_accesslog+set}" = set; then :
4471 enableval=$enable_accesslog;
4473 for ol_val in no yes mod ; do
4474 if test "$enableval" = "$ol_val" ; then
4478 if test "$ol_arg" = "invalid" ; then
4479 as_fn_error $? "bad value $enableval for --enable-accesslog" "$LINENO" 5
4481 ol_enable_accesslog="$ol_arg"
4484 ol_enable_accesslog=${ol_enable_overlays:-no}
4487 # end --enable-accesslog
4489 # OpenLDAP --enable-auditlog
4491 # Check whether --enable-auditlog was given.
4492 if test "${enable_auditlog+set}" = set; then :
4493 enableval=$enable_auditlog;
4495 for ol_val in no yes mod ; do
4496 if test "$enableval" = "$ol_val" ; then
4500 if test "$ol_arg" = "invalid" ; then
4501 as_fn_error $? "bad value $enableval for --enable-auditlog" "$LINENO" 5
4503 ol_enable_auditlog="$ol_arg"
4506 ol_enable_auditlog=${ol_enable_overlays:-no}
4509 # end --enable-auditlog
4511 # OpenLDAP --enable-collect
4513 # Check whether --enable-collect was given.
4514 if test "${enable_collect+set}" = set; then :
4515 enableval=$enable_collect;
4517 for ol_val in no yes mod ; do
4518 if test "$enableval" = "$ol_val" ; then
4522 if test "$ol_arg" = "invalid" ; then
4523 as_fn_error $? "bad value $enableval for --enable-collect" "$LINENO" 5
4525 ol_enable_collect="$ol_arg"
4528 ol_enable_collect=${ol_enable_overlays:-no}
4531 # end --enable-collect
4533 # OpenLDAP --enable-constraint
4535 # Check whether --enable-constraint was given.
4536 if test "${enable_constraint+set}" = set; then :
4537 enableval=$enable_constraint;
4539 for ol_val in no yes mod ; do
4540 if test "$enableval" = "$ol_val" ; then
4544 if test "$ol_arg" = "invalid" ; then
4545 as_fn_error $? "bad value $enableval for --enable-constraint" "$LINENO" 5
4547 ol_enable_constraint="$ol_arg"
4550 ol_enable_constraint=${ol_enable_overlays:-no}
4553 # end --enable-constraint
4555 # OpenLDAP --enable-dds
4557 # Check whether --enable-dds was given.
4558 if test "${enable_dds+set}" = set; then :
4559 enableval=$enable_dds;
4561 for ol_val in no yes mod ; do
4562 if test "$enableval" = "$ol_val" ; then
4566 if test "$ol_arg" = "invalid" ; then
4567 as_fn_error $? "bad value $enableval for --enable-dds" "$LINENO" 5
4569 ol_enable_dds="$ol_arg"
4572 ol_enable_dds=${ol_enable_overlays:-no}
4577 # OpenLDAP --enable-deref
4579 # Check whether --enable-deref was given.
4580 if test "${enable_deref+set}" = set; then :
4581 enableval=$enable_deref;
4583 for ol_val in no yes mod ; do
4584 if test "$enableval" = "$ol_val" ; then
4588 if test "$ol_arg" = "invalid" ; then
4589 as_fn_error $? "bad value $enableval for --enable-deref" "$LINENO" 5
4591 ol_enable_deref="$ol_arg"
4594 ol_enable_deref=${ol_enable_overlays:-no}
4597 # end --enable-deref
4599 # OpenLDAP --enable-dyngroup
4601 # Check whether --enable-dyngroup was given.
4602 if test "${enable_dyngroup+set}" = set; then :
4603 enableval=$enable_dyngroup;
4605 for ol_val in no yes mod ; do
4606 if test "$enableval" = "$ol_val" ; then
4610 if test "$ol_arg" = "invalid" ; then
4611 as_fn_error $? "bad value $enableval for --enable-dyngroup" "$LINENO" 5
4613 ol_enable_dyngroup="$ol_arg"
4616 ol_enable_dyngroup=${ol_enable_overlays:-no}
4619 # end --enable-dyngroup
4621 # OpenLDAP --enable-dynlist
4623 # Check whether --enable-dynlist was given.
4624 if test "${enable_dynlist+set}" = set; then :
4625 enableval=$enable_dynlist;
4627 for ol_val in no yes mod ; do
4628 if test "$enableval" = "$ol_val" ; then
4632 if test "$ol_arg" = "invalid" ; then
4633 as_fn_error $? "bad value $enableval for --enable-dynlist" "$LINENO" 5
4635 ol_enable_dynlist="$ol_arg"
4638 ol_enable_dynlist=${ol_enable_overlays:-no}
4641 # end --enable-dynlist
4643 # OpenLDAP --enable-memberof
4645 # Check whether --enable-memberof was given.
4646 if test "${enable_memberof+set}" = set; then :
4647 enableval=$enable_memberof;
4649 for ol_val in no yes mod ; do
4650 if test "$enableval" = "$ol_val" ; then
4654 if test "$ol_arg" = "invalid" ; then
4655 as_fn_error $? "bad value $enableval for --enable-memberof" "$LINENO" 5
4657 ol_enable_memberof="$ol_arg"
4660 ol_enable_memberof=${ol_enable_overlays:-no}
4663 # end --enable-memberof
4665 # OpenLDAP --enable-ppolicy
4667 # Check whether --enable-ppolicy was given.
4668 if test "${enable_ppolicy+set}" = set; then :
4669 enableval=$enable_ppolicy;
4671 for ol_val in no yes mod ; do
4672 if test "$enableval" = "$ol_val" ; then
4676 if test "$ol_arg" = "invalid" ; then
4677 as_fn_error $? "bad value $enableval for --enable-ppolicy" "$LINENO" 5
4679 ol_enable_ppolicy="$ol_arg"
4682 ol_enable_ppolicy=${ol_enable_overlays:-no}
4685 # end --enable-ppolicy
4687 # OpenLDAP --enable-proxycache
4689 # Check whether --enable-proxycache was given.
4690 if test "${enable_proxycache+set}" = set; then :
4691 enableval=$enable_proxycache;
4693 for ol_val in no yes mod ; do
4694 if test "$enableval" = "$ol_val" ; then
4698 if test "$ol_arg" = "invalid" ; then
4699 as_fn_error $? "bad value $enableval for --enable-proxycache" "$LINENO" 5
4701 ol_enable_proxycache="$ol_arg"
4704 ol_enable_proxycache=${ol_enable_overlays:-no}
4707 # end --enable-proxycache
4709 # OpenLDAP --enable-refint
4711 # Check whether --enable-refint was given.
4712 if test "${enable_refint+set}" = set; then :
4713 enableval=$enable_refint;
4715 for ol_val in no yes mod ; do
4716 if test "$enableval" = "$ol_val" ; then
4720 if test "$ol_arg" = "invalid" ; then
4721 as_fn_error $? "bad value $enableval for --enable-refint" "$LINENO" 5
4723 ol_enable_refint="$ol_arg"
4726 ol_enable_refint=${ol_enable_overlays:-no}
4729 # end --enable-refint
4731 # OpenLDAP --enable-retcode
4733 # Check whether --enable-retcode was given.
4734 if test "${enable_retcode+set}" = set; then :
4735 enableval=$enable_retcode;
4737 for ol_val in no yes mod ; do
4738 if test "$enableval" = "$ol_val" ; then
4742 if test "$ol_arg" = "invalid" ; then
4743 as_fn_error $? "bad value $enableval for --enable-retcode" "$LINENO" 5
4745 ol_enable_retcode="$ol_arg"
4748 ol_enable_retcode=${ol_enable_overlays:-no}
4751 # end --enable-retcode
4753 # OpenLDAP --enable-rwm
4755 # Check whether --enable-rwm was given.
4756 if test "${enable_rwm+set}" = set; then :
4757 enableval=$enable_rwm;
4759 for ol_val in no yes mod ; do
4760 if test "$enableval" = "$ol_val" ; then
4764 if test "$ol_arg" = "invalid" ; then
4765 as_fn_error $? "bad value $enableval for --enable-rwm" "$LINENO" 5
4767 ol_enable_rwm="$ol_arg"
4770 ol_enable_rwm=${ol_enable_overlays:-no}
4775 # OpenLDAP --enable-seqmod
4777 # Check whether --enable-seqmod was given.
4778 if test "${enable_seqmod+set}" = set; then :
4779 enableval=$enable_seqmod;
4781 for ol_val in no yes mod ; do
4782 if test "$enableval" = "$ol_val" ; then
4786 if test "$ol_arg" = "invalid" ; then
4787 as_fn_error $? "bad value $enableval for --enable-seqmod" "$LINENO" 5
4789 ol_enable_seqmod="$ol_arg"
4792 ol_enable_seqmod=${ol_enable_overlays:-no}
4795 # end --enable-seqmod
4797 # OpenLDAP --enable-sssvlv
4799 # Check whether --enable-sssvlv was given.
4800 if test "${enable_sssvlv+set}" = set; then :
4801 enableval=$enable_sssvlv;
4803 for ol_val in no yes mod ; do
4804 if test "$enableval" = "$ol_val" ; then
4808 if test "$ol_arg" = "invalid" ; then
4809 as_fn_error $? "bad value $enableval for --enable-sssvlv" "$LINENO" 5
4811 ol_enable_sssvlv="$ol_arg"
4814 ol_enable_sssvlv=${ol_enable_overlays:-no}
4817 # end --enable-sssvlv
4819 # OpenLDAP --enable-syncprov
4821 # Check whether --enable-syncprov was given.
4822 if test "${enable_syncprov+set}" = set; then :
4823 enableval=$enable_syncprov;
4825 for ol_val in no yes mod ; do
4826 if test "$enableval" = "$ol_val" ; then
4830 if test "$ol_arg" = "invalid" ; then
4831 as_fn_error $? "bad value $enableval for --enable-syncprov" "$LINENO" 5
4833 ol_enable_syncprov="$ol_arg"
4836 ol_enable_syncprov=${ol_enable_overlays:-yes}
4839 # end --enable-syncprov
4841 # OpenLDAP --enable-translucent
4843 # Check whether --enable-translucent was given.
4844 if test "${enable_translucent+set}" = set; then :
4845 enableval=$enable_translucent;
4847 for ol_val in no yes mod ; do
4848 if test "$enableval" = "$ol_val" ; then
4852 if test "$ol_arg" = "invalid" ; then
4853 as_fn_error $? "bad value $enableval for --enable-translucent" "$LINENO" 5
4855 ol_enable_translucent="$ol_arg"
4858 ol_enable_translucent=${ol_enable_overlays:-no}
4861 # end --enable-translucent
4863 # OpenLDAP --enable-unique
4865 # Check whether --enable-unique was given.
4866 if test "${enable_unique+set}" = set; then :
4867 enableval=$enable_unique;
4869 for ol_val in no yes mod ; do
4870 if test "$enableval" = "$ol_val" ; then
4874 if test "$ol_arg" = "invalid" ; then
4875 as_fn_error $? "bad value $enableval for --enable-unique" "$LINENO" 5
4877 ol_enable_unique="$ol_arg"
4880 ol_enable_unique=${ol_enable_overlays:-no}
4883 # end --enable-unique
4885 # OpenLDAP --enable-valsort
4887 # Check whether --enable-valsort was given.
4888 if test "${enable_valsort+set}" = set; then :
4889 enableval=$enable_valsort;
4891 for ol_val in no yes mod ; do
4892 if test "$enableval" = "$ol_val" ; then
4896 if test "$ol_arg" = "invalid" ; then
4897 as_fn_error $? "bad value $enableval for --enable-valsort" "$LINENO" 5
4899 ol_enable_valsort="$ol_arg"
4902 ol_enable_valsort=${ol_enable_overlays:-no}
4905 # end --enable-valsort
4908 # Check whether --enable-xxliboptions was given.
4909 if test "${enable_xxliboptions+set}" = set; then :
4910 enableval=$enable_xxliboptions;
4913 # Check whether --enable-static was given.
4914 if test "${enable_static+set}" = set; then :
4915 enableval=$enable_static; p=${PACKAGE-default}
4917 yes) enable_static=yes ;;
4918 no) enable_static=no ;;
4921 # Look at the argument we got. We use all the common list separators.
4922 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4923 for pkg in $enableval; do
4925 if test "X$pkg" = "X$p"; then
4937 # Check whether --enable-shared was given.
4938 if test "${enable_shared+set}" = set; then :
4939 enableval=$enable_shared; p=${PACKAGE-default}
4941 yes) enable_shared=yes ;;
4942 no) enable_shared=no ;;
4945 # Look at the argument we got. We use all the common list separators.
4946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4947 for pkg in $enableval; do
4949 if test "X$pkg" = "X$p"; then
4964 if test $ol_enable_slapd = no ; then
4965 if test $ol_enable_slapi = yes ; then
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4967 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4969 case "$ol_enable_backends" in yes | mod)
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4971 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4973 for i in $Backends; do
4974 eval "ol_tmp=\$ol_enable_$i"
4975 if test $ol_tmp != no ; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4977 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4978 eval "ol_enable_$i=no"
4981 if test $ol_enable_modules = yes ; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4983 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4985 if test $ol_enable_wrappers = yes ; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4987 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4989 if test $ol_enable_rlookups = yes ; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4991 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4993 if test $ol_enable_dynacl = yes ; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4995 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4997 if test $ol_enable_aci != no ; then
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4999 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
5001 if test $ol_enable_rewrite = yes ; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
5003 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
5005 case "$ol_enable_overlays" in yes | mod)
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
5007 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
5009 for i in $Overlays; do
5010 eval "ol_tmp=\$ol_enable_$i"
5011 if test $ol_tmp != no ; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
5013 $as_echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
5014 eval "ol_enable_$i=no"
5018 # force settings to no
5023 ol_enable_modules=no
5024 ol_enable_rlookups=no
5027 ol_enable_wrappers=no
5029 ol_enable_rewrite=no
5031 elif test $ol_enable_modules != yes &&
5032 test $ol_enable_bdb = no &&
5033 test $ol_enable_dnssrv = no &&
5034 test $ol_enable_hdb = no &&
5035 test $ol_enable_ldap = no &&
5036 test $ol_enable_mdb = no &&
5037 test $ol_enable_meta = no &&
5038 test $ol_enable_monitor = no &&
5039 test $ol_enable_ndb = no &&
5040 test $ol_enable_null = no &&
5041 test $ol_enable_passwd = no &&
5042 test $ol_enable_perl = no &&
5043 test $ol_enable_relay = no &&
5044 test $ol_enable_shell = no &&
5045 test $ol_enable_sock = no &&
5046 test $ol_enable_sql = no ; then
5048 if test $ol_enable_slapd = yes ; then
5049 as_fn_error $? "slapd requires a backend" "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipping slapd, no backend specified" >&5
5052 $as_echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
5057 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
5058 as_fn_error $? "--enable-meta requires --enable-ldap" "$LINENO" 5
5061 if test $ol_enable_lmpasswd = yes ; then
5062 if test $ol_with_tls = no ; then
5063 as_fn_error $? "LAN Manager passwords require OpenSSL" "$LINENO" 5
5067 if test $ol_enable_spasswd = yes ; then
5068 if test $ol_with_cyrus_sasl = no ; then
5069 as_fn_error $? "options require --with-cyrus-sasl" "$LINENO" 5
5071 ol_with_cyrus_sasl=yes
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
5075 $as_echo "done" >&6; }
5127 BUILD_TRANSLUCENT=no
5131 SLAPD_STATIC_OVERLAYS=
5132 SLAPD_DYNAMIC_OVERLAYS=
5134 SLAPD_MODULES_LDFLAGS=
5135 SLAPD_MODULES_CPPFLAGS=
5137 SLAPD_STATIC_BACKENDS=back-ldif
5138 SLAPD_DYNAMIC_BACKENDS=
5163 $as_echo "#define HAVE_MKVERSION 1" >>confdefs.h
5170 *-*-aix*) if test -z "$CC" ; then
5171 case "$ol_with_threads" in
5172 auto | yes | posix) ol_aix_threads=yes ;;
5178 if test $ol_aix_threads = yes ; then
5179 if test -z "${CC}" ; then
5180 for ac_prog in cc_r xlc_r cc
5182 # Extract the first word of "$ac_prog", so it can be a program name with args.
5183 set dummy $ac_prog; ac_word=$2
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5185 $as_echo_n "checking for $ac_word... " >&6; }
5186 if ${ac_cv_prog_CC+:} false; then :
5187 $as_echo_n "(cached) " >&6
5189 if test -n "$CC"; then
5190 ac_cv_prog_CC="$CC" # Let the user override the test.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_CC="$ac_prog"
5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 if test -n "$CC"; then
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5212 $as_echo "$CC" >&6; }
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5219 test -n "$CC" && break
5223 if test "$CC" = cc ; then
5224 if test $ol_with_threads != auto ; then
5225 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
5228 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
5234 case ${CC} in cc_r | xlc_r)
5235 ol_with_threads=posix
5236 ol_cv_pthread_create=yes
5241 if test -z "${CC}"; then
5242 for ac_prog in cc gcc
5244 # Extract the first word of "$ac_prog", so it can be a program name with args.
5245 set dummy $ac_prog; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_prog_CC+:} false; then :
5249 $as_echo_n "(cached) " >&6
5251 if test -n "$CC"; then
5252 ac_cv_prog_CC="$CC" # Let the user override the test.
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_CC="$ac_prog"
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 if test -n "$CC"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5274 $as_echo "$CC" >&6; }
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 test -n "$CC" && break
5283 test -n "$CC" || CC="missing"
5286 if test "${CC}" = "missing" ; then
5287 as_fn_error $? "Unable to locate cc(1) or suitable replacement. Check PATH or set CC." "$LINENO" 5
5291 if test -z "${AR}"; then
5292 for ac_prog in ar gar
5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_AR+:} false; then :
5299 $as_echo_n "(cached) " >&6
5301 if test -n "$AR"; then
5302 ac_cv_prog_AR="$AR" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311 ac_cv_prog_AR="$ac_prog"
5312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322 if test -n "$AR"; then
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5324 $as_echo "$AR" >&6; }
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5331 test -n "$AR" && break
5333 test -n "$AR" || AR="missing"
5336 if test "${AR}" = "missing" ; then
5337 as_fn_error $? "Unable to locate ar(1) or suitable replacement. Check PATH or set AR." "$LINENO" 5
5345 # Check whether --enable-fast-install was given.
5346 if test "${enable_fast_install+set}" = set; then :
5347 enableval=$enable_fast_install; p=${PACKAGE-default}
5349 yes) enable_fast_install=yes ;;
5350 no) enable_fast_install=no ;;
5352 enable_fast_install=no
5353 # Look at the argument we got. We use all the common list separators.
5354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5355 for pkg in $enableval; do
5357 if test "X$pkg" = "X$p"; then
5358 enable_fast_install=yes
5365 enable_fast_install=yes
5369 DEPDIR="${am__leading_dot}deps"
5371 ac_config_commands="$ac_config_commands depfiles"
5374 am_make=${MAKE-make}
5375 cat > confinc << 'END'
5380 # If we don't find an include directive, just comment out the code.
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5382 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5386 # First try GNU make style include.
5387 echo "include confinc" > confmf
5388 # We grep out `Entering directory' and `Leaving directory'
5389 # messages which can occur if `w' ends up in MAKEFLAGS.
5390 # In particular we don't look at `^make:' because GNU make might
5391 # be invoked under some other name (usually "gmake"), in which
5392 # case it prints its new name instead of `make'.
5393 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5398 # Now try BSD make style include.
5399 if test "$am__include" = "#"; then
5400 echo '.include "confinc"' > confmf
5401 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5402 am__include=.include
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5410 $as_echo "$_am_result" >&6; }
5411 rm -f confinc confmf
5413 # Check whether --enable-dependency-tracking was given.
5414 if test "${enable_dependency_tracking+set}" = set; then :
5415 enableval=$enable_dependency_tracking;
5418 if test "x$enable_dependency_tracking" != xno; then
5419 am_depcomp="$ac_aux_dir/depcomp"
5424 if test "x$enable_dependency_tracking" != xno; then
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439 if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_CC+:} false; then :
5445 $as_echo_n "(cached) " >&6
5447 if test -n "$CC"; then
5448 ac_cv_prog_CC="$CC" # Let the user override the test.
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir=.
5455 for ac_exec_ext in '' $ac_executable_extensions; do
5456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 if test -n "$CC"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5470 $as_echo "$CC" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5478 if test -z "$ac_cv_prog_CC"; then
5480 # Extract the first word of "gcc", so it can be a program name with args.
5481 set dummy gcc; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5485 $as_echo_n "(cached) " >&6
5487 if test -n "$ac_ct_CC"; then
5488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 test -z "$as_dir" && as_dir=.
5495 for ac_exec_ext in '' $ac_executable_extensions; do
5496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497 ac_cv_prog_ac_ct_CC="gcc"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5508 if test -n "$ac_ct_CC"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5510 $as_echo "$ac_ct_CC" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5516 if test "x$ac_ct_CC" = x; then
5519 case $cross_compiling:$ac_tool_warned in
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned=yes ;;
5531 if test -z "$CC"; then
5532 if test -n "$ac_tool_prefix"; then
5533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5534 set dummy ${ac_tool_prefix}cc; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if ${ac_cv_prog_CC+:} false; then :
5538 $as_echo_n "(cached) " >&6
5540 if test -n "$CC"; then
5541 ac_cv_prog_CC="$CC" # Let the user override the test.
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5547 test -z "$as_dir" && as_dir=.
5548 for ac_exec_ext in '' $ac_executable_extensions; do
5549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550 ac_cv_prog_CC="${ac_tool_prefix}cc"
5551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561 if test -n "$CC"; then
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5563 $as_echo "$CC" >&6; }
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5572 if test -z "$CC"; then
5573 # Extract the first word of "cc", so it can be a program name with args.
5574 set dummy cc; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_prog_CC+:} false; then :
5578 $as_echo_n "(cached) " >&6
5580 if test -n "$CC"; then
5581 ac_cv_prog_CC="$CC" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5592 ac_prog_rejected=yes
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 if test $ac_prog_rejected = yes; then
5604 # We found a bogon in the path, so make sure we never use it.
5605 set dummy $ac_cv_prog_CC
5607 if test $# != 0; then
5608 # We chose a different compiler from the bogus one.
5609 # However, it has the same basename, so the bogon will be chosen
5610 # first if we set CC to just the basename; use the full file name.
5612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5618 if test -n "$CC"; then
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5620 $as_echo "$CC" >&6; }
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5623 $as_echo "no" >&6; }
5628 if test -z "$CC"; then
5629 if test -n "$ac_tool_prefix"; then
5630 for ac_prog in cl.exe
5632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5635 $as_echo_n "checking for $ac_word... " >&6; }
5636 if ${ac_cv_prog_CC+:} false; then :
5637 $as_echo_n "(cached) " >&6
5639 if test -n "$CC"; then
5640 ac_cv_prog_CC="$CC" # Let the user override the test.
5642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646 test -z "$as_dir" && as_dir=.
5647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5660 if test -n "$CC"; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5662 $as_echo "$CC" >&6; }
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5669 test -n "$CC" && break
5672 if test -z "$CC"; then
5674 for ac_prog in cl.exe
5676 # Extract the first word of "$ac_prog", so it can be a program name with args.
5677 set dummy $ac_prog; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5681 $as_echo_n "(cached) " >&6
5683 if test -n "$ac_ct_CC"; then
5684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 test -z "$as_dir" && as_dir=.
5691 for ac_exec_ext in '' $ac_executable_extensions; do
5692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693 ac_cv_prog_ac_ct_CC="$ac_prog"
5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5704 if test -n "$ac_ct_CC"; then
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5706 $as_echo "$ac_ct_CC" >&6; }
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5713 test -n "$ac_ct_CC" && break
5716 if test "x$ac_ct_CC" = x; then
5719 case $cross_compiling:$ac_tool_warned in
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5723 ac_tool_warned=yes ;;
5732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5734 as_fn_error $? "no acceptable C compiler found in \$PATH
5735 See \`config.log' for more details" "$LINENO" 5; }
5737 # Provide some information about the compiler.
5738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5741 for ac_option in --version -v -V -qversion; do
5742 { { ac_try="$ac_compiler $ac_option >&5"
5744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5745 *) ac_try_echo=$ac_try;;
5747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5748 $as_echo "$ac_try_echo"; } >&5
5749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5751 if test -s conftest.err; then
5753 ... rest of stderr output deleted ...
5754 10q' conftest.err >conftest.er1
5755 cat conftest.er1 >&5
5757 rm -f conftest.er1 conftest.err
5758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5759 test $ac_status = 0; }
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5773 ac_clean_files_save=$ac_clean_files
5774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5775 # Try to create an executable without -o first, disregard a.out.
5776 # It will help us diagnose broken compilers, and finding out an intuition
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5779 $as_echo_n "checking whether the C compiler works... " >&6; }
5780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5782 # The possible output files:
5783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5786 for ac_file in $ac_files
5789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5790 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5795 if { { ac_try="$ac_link_default"
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5801 $as_echo "$ac_try_echo"; } >&5
5802 (eval "$ac_link_default") 2>&5
5804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5805 test $ac_status = 0; }; then :
5806 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5808 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5809 # so that the user can short-circuit this test for compilers unknown to
5811 for ac_file in $ac_files ''
5813 test -f "$ac_file" || continue
5815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5818 # We found the default executable, but exeext='' is most
5822 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5824 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5826 # We set ac_cv_exeext here because the later test for it is not
5827 # safe: cross compilers may not add the suffix if given an `-o'
5828 # argument, so we may need to know it at that point already.
5829 # Even if this section looks crufty: it has the advantage of
5836 test "$ac_cv_exeext" = no && ac_cv_exeext=
5841 if test -z "$ac_file"; then :
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 $as_echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error 77 "C compiler cannot create executables
5850 See \`config.log' for more details" "$LINENO" 5; }
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5853 $as_echo "yes" >&6; }
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5856 $as_echo_n "checking for C compiler default output file name... " >&6; }
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5858 $as_echo "$ac_file" >&6; }
5859 ac_exeext=$ac_cv_exeext
5861 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5862 ac_clean_files=$ac_clean_files_save
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5864 $as_echo_n "checking for suffix of executables... " >&6; }
5865 if { { ac_try="$ac_link"
5867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868 *) ac_try_echo=$ac_try;;
5870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5871 $as_echo "$ac_try_echo"; } >&5
5872 (eval "$ac_link") 2>&5
5874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5875 test $ac_status = 0; }; then :
5876 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5877 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5878 # work properly (i.e., refer to `conftest.exe'), while it won't with
5880 for ac_file in conftest.exe conftest conftest.*; do
5881 test -f "$ac_file" || continue
5883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5884 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5890 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5891 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5892 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5893 See \`config.log' for more details" "$LINENO" 5; }
5895 rm -f conftest conftest$ac_cv_exeext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5897 $as_echo "$ac_cv_exeext" >&6; }
5899 rm -f conftest.$ac_ext
5900 EXEEXT=$ac_cv_exeext
5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5903 /* end confdefs.h. */
5908 FILE *f = fopen ("conftest.out", "w");
5909 return ferror (f) || fclose (f) != 0;
5915 ac_clean_files="$ac_clean_files conftest.out"
5916 # Check that the compiler produces executables we can run. If not, either
5917 # the compiler is broken, or we cross compile.
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5919 $as_echo_n "checking whether we are cross compiling... " >&6; }
5920 if test "$cross_compiling" != yes; then
5921 { { ac_try="$ac_link"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5927 $as_echo "$ac_try_echo"; } >&5
5928 (eval "$ac_link") 2>&5
5930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931 test $ac_status = 0; }
5932 if { ac_try='./conftest$ac_cv_exeext'
5933 { { case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5938 $as_echo "$ac_try_echo"; } >&5
5939 (eval "$ac_try") 2>&5
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5942 test $ac_status = 0; }; }; then
5945 if test "$cross_compiling" = maybe; then
5948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5950 as_fn_error $? "cannot run C compiled programs.
5951 If you meant to cross compile, use \`--host'.
5952 See \`config.log' for more details" "$LINENO" 5; }
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5957 $as_echo "$cross_compiling" >&6; }
5959 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5960 ac_clean_files=$ac_clean_files_save
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5962 $as_echo_n "checking for suffix of object files... " >&6; }
5963 if ${ac_cv_objext+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5977 rm -f conftest.o conftest.obj
5978 if { { ac_try="$ac_compile"
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984 $as_echo "$ac_try_echo"; } >&5
5985 (eval "$ac_compile") 2>&5
5987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5988 test $ac_status = 0; }; then :
5989 for ac_file in conftest.o conftest.obj conftest.*; do
5990 test -f "$ac_file" || continue;
5992 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5993 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5998 $as_echo "$as_me: failed program was:" >&5
5999 sed 's/^/| /' conftest.$ac_ext >&5
6001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6003 as_fn_error $? "cannot compute suffix of object files: cannot compile
6004 See \`config.log' for more details" "$LINENO" 5; }
6006 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
6009 $as_echo "$ac_cv_objext" >&6; }
6010 OBJEXT=$ac_cv_objext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6013 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6014 if ${ac_cv_c_compiler_gnu+:} false; then :
6015 $as_echo_n "(cached) " >&6
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6031 if ac_fn_c_try_compile "$LINENO"; then :
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6041 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6042 if test $ac_compiler_gnu = yes; then
6047 ac_test_CFLAGS=${CFLAGS+set}
6048 ac_save_CFLAGS=$CFLAGS
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6050 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6051 if ${ac_cv_prog_cc_g+:} false; then :
6052 $as_echo_n "(cached) " >&6
6054 ac_save_c_werror_flag=$ac_c_werror_flag
6055 ac_c_werror_flag=yes
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6069 if ac_fn_c_try_compile "$LINENO"; then :
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6074 /* end confdefs.h. */
6084 if ac_fn_c_try_compile "$LINENO"; then :
6087 ac_c_werror_flag=$ac_save_c_werror_flag
6089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6100 if ac_fn_c_try_compile "$LINENO"; then :
6103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6108 ac_c_werror_flag=$ac_save_c_werror_flag
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6111 $as_echo "$ac_cv_prog_cc_g" >&6; }
6112 if test "$ac_test_CFLAGS" = set; then
6113 CFLAGS=$ac_save_CFLAGS
6114 elif test $ac_cv_prog_cc_g = yes; then
6115 if test "$GCC" = yes; then
6121 if test "$GCC" = yes; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6128 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6129 if ${ac_cv_prog_cc_c89+:} false; then :
6130 $as_echo_n "(cached) " >&6
6132 ac_cv_prog_cc_c89=no
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6138 #include <sys/types.h>
6139 #include <sys/stat.h>
6140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6141 struct buf { int x; };
6142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6143 static char *e (p, i)
6149 static char *f (char * (*g) (char **, int), char **p, ...)
6154 s = g (p, va_arg (v,int));
6159 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6160 function prototypes and stuff, but not '\xHH' hex character constants.
6161 These don't provoke an error unfortunately, instead are silently treated
6162 as 'x'. The following induces an error, until -std is added to get
6163 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6164 array size at least. It's necessary to write '\x00'==0 to get something
6165 that's true only with -std. */
6166 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6168 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6169 inside strings and character constants. */
6171 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6173 int test (int i, double x);
6174 struct s1 {int (*f) (int a);};
6175 struct s2 {int (*f) (double a);};
6176 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6182 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6187 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6188 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6190 CC="$ac_save_CC $ac_arg"
6191 if ac_fn_c_try_compile "$LINENO"; then :
6192 ac_cv_prog_cc_c89=$ac_arg
6194 rm -f core conftest.err conftest.$ac_objext
6195 test "x$ac_cv_prog_cc_c89" != "xno" && break
6197 rm -f conftest.$ac_ext
6202 case "x$ac_cv_prog_cc_c89" in
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6205 $as_echo "none needed" >&6; } ;;
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6208 $as_echo "unsupported" >&6; } ;;
6210 CC="$CC $ac_cv_prog_cc_c89"
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6212 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6214 if test "x$ac_cv_prog_cc_c89" != xno; then :
6219 ac_cpp='$CPP $CPPFLAGS'
6220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6224 depcc="$CC" am_compiler_list=
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6227 $as_echo_n "checking dependency style of $depcc... " >&6; }
6228 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6229 $as_echo_n "(cached) " >&6
6231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6232 # We make a subdir and do the tests there. Otherwise we can end up
6233 # making bogus files that we don't know about and never remove. For
6234 # instance it was reported that on HP-UX the gcc test will end up
6235 # making a dummy file named `D' -- because `-MD' means `put the output
6238 # Copy depcomp to subdir because otherwise we won't find it if we're
6239 # using a relative directory.
6240 cp "$am_depcomp" conftest.dir
6242 # We will build objects and dependencies in a subdirectory because
6243 # it helps to detect inapplicable dependency modes. For instance
6244 # both Tru64's cc and ICC support -MD to output dependencies as a
6245 # side effect of compilation, but ICC will put the dependencies in
6246 # the current directory while Tru64 will put them in the object
6250 am_cv_CC_dependencies_compiler_type=none
6251 if test "$am_compiler_list" = ""; then
6252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6254 for depmode in $am_compiler_list; do
6255 # Setup a source with many dependencies, because some compilers
6256 # like to wrap large dependency lists on column 80 (with \), and
6257 # we should not choose a depcomp mode which is confused by this.
6259 # We need to recreate these files for each test, as the compiler may
6260 # overwrite some of them when testing with obscure command lines.
6261 # This happens at least with the AIX C compiler.
6263 for i in 1 2 3 4 5 6; do
6264 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6265 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6266 # Solaris 8's {/usr,}/bin/sh.
6267 touch sub/conftst$i.h
6269 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6273 # after this tag, mechanisms are not by side-effect, so they'll
6274 # only be used when explicitly requested
6275 if test "x$enable_dependency_tracking" = xyes; then
6283 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6284 # mode. It turns out that the SunPro C++ compiler does not properly
6285 # handle `-M -o', and we need to detect this.
6286 if depmode=$depmode \
6287 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6288 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6289 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6290 >/dev/null 2>conftest.err &&
6291 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6292 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6293 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6294 # icc doesn't choke on unknown options, it will just issue warnings
6295 # or remarks (even with -Werror). So we grep stderr for any message
6296 # that says an option was ignored or not supported.
6297 # When given -MP, icc 7.0 and 7.1 complain thusly:
6298 # icc: Command line warning: ignoring option '-M'; no argument required
6299 # The diagnosis changed in icc 8.0:
6300 # icc: Command line remark: option '-MP' not supported
6301 if (grep 'ignoring option' conftest.err ||
6302 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6303 am_cv_CC_dependencies_compiler_type=$depmode
6312 am_cv_CC_dependencies_compiler_type=none
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6317 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6318 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6323 test "x$enable_dependency_tracking" != xno \
6324 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6326 am__fastdepCC_FALSE='#'
6328 am__fastdepCC_TRUE='#'
6329 am__fastdepCC_FALSE=
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6334 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6335 if ${lt_cv_path_SED+:} false; then :
6336 $as_echo_n "(cached) " >&6
6338 # Loop through the user's path and test for sed and gsed.
6339 # Then use that list of sed's as ones to test for truncation.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for lt_ac_prog in sed gsed; do
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6348 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6355 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6356 # along with /bin/sed that truncates output.
6357 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6358 test ! -f $lt_ac_sed && continue
6359 cat /dev/null > conftest.in
6361 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6362 # Check for GNU sed and select it if it is found.
6363 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6364 lt_cv_path_SED=$lt_ac_sed
6368 cat conftest.in conftest.in >conftest.tmp
6369 mv conftest.tmp conftest.in
6370 cp conftest.in conftest.nl
6372 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6373 cmp -s conftest.out conftest.nl || break
6374 # 10000 chars as input seems more than enough
6375 test $lt_ac_count -gt 10 && break
6376 lt_ac_count=`expr $lt_ac_count + 1`
6377 if test $lt_ac_count -gt $lt_ac_max; then
6378 lt_ac_max=$lt_ac_count
6379 lt_cv_path_SED=$lt_ac_sed
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6388 $as_echo "$SED" >&6; }
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6391 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6392 if ${ac_cv_path_GREP+:} false; then :
6393 $as_echo_n "(cached) " >&6
6395 if test -z "$GREP"; then
6396 ac_path_GREP_found=false
6397 # Loop through the user's path and test for each of PROGNAME-LIST
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6402 test -z "$as_dir" && as_dir=.
6403 for ac_prog in grep ggrep; do
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6406 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6407 # Check for GNU ac_path_GREP and select it if it is found.
6408 # Check for GNU $ac_path_GREP
6409 case `"$ac_path_GREP" --version 2>&1` in
6411 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6414 $as_echo_n 0123456789 >"conftest.in"
6417 cat "conftest.in" "conftest.in" >"conftest.tmp"
6418 mv "conftest.tmp" "conftest.in"
6419 cp "conftest.in" "conftest.nl"
6420 $as_echo 'GREP' >> "conftest.nl"
6421 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6423 as_fn_arith $ac_count + 1 && ac_count=$as_val
6424 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6425 # Best one so far, save it but keep looking for a better one
6426 ac_cv_path_GREP="$ac_path_GREP"
6427 ac_path_GREP_max=$ac_count
6429 # 10*(2^10) chars as input seems more than enough
6430 test $ac_count -gt 10 && break
6432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6435 $ac_path_GREP_found && break 3
6440 if test -z "$ac_cv_path_GREP"; then
6441 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6444 ac_cv_path_GREP=$GREP
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6449 $as_echo "$ac_cv_path_GREP" >&6; }
6450 GREP="$ac_cv_path_GREP"
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6454 $as_echo_n "checking for egrep... " >&6; }
6455 if ${ac_cv_path_EGREP+:} false; then :
6456 $as_echo_n "(cached) " >&6
6458 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6459 then ac_cv_path_EGREP="$GREP -E"
6461 if test -z "$EGREP"; then
6462 ac_path_EGREP_found=false
6463 # Loop through the user's path and test for each of PROGNAME-LIST
6464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6468 test -z "$as_dir" && as_dir=.
6469 for ac_prog in egrep; do
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6472 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6473 # Check for GNU ac_path_EGREP and select it if it is found.
6474 # Check for GNU $ac_path_EGREP
6475 case `"$ac_path_EGREP" --version 2>&1` in
6477 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6480 $as_echo_n 0123456789 >"conftest.in"
6483 cat "conftest.in" "conftest.in" >"conftest.tmp"
6484 mv "conftest.tmp" "conftest.in"
6485 cp "conftest.in" "conftest.nl"
6486 $as_echo 'EGREP' >> "conftest.nl"
6487 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6489 as_fn_arith $ac_count + 1 && ac_count=$as_val
6490 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6491 # Best one so far, save it but keep looking for a better one
6492 ac_cv_path_EGREP="$ac_path_EGREP"
6493 ac_path_EGREP_max=$ac_count
6495 # 10*(2^10) chars as input seems more than enough
6496 test $ac_count -gt 10 && break
6498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6501 $ac_path_EGREP_found && break 3
6506 if test -z "$ac_cv_path_EGREP"; then
6507 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6510 ac_cv_path_EGREP=$EGREP
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6516 $as_echo "$ac_cv_path_EGREP" >&6; }
6517 EGREP="$ac_cv_path_EGREP"
6521 # Check whether --with-gnu-ld was given.
6522 if test "${with_gnu_ld+set}" = set; then :
6523 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6529 if test "$GCC" = yes; then
6530 # Check if gcc -print-prog-name=ld gives a path.
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6532 $as_echo_n "checking for ld used by $CC... " >&6; }
6535 # gcc leaves a trailing carriage return which upsets mingw
6536 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6538 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6541 # Accept absolute paths.
6543 re_direlt='/[^/][^/]*/\.\./'
6544 # Canonicalize the pathname of ld
6545 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6546 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6547 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6549 test -z "$LD" && LD="$ac_prog"
6552 # If it fails, then pretend we aren't using GCC.
6556 # If it is relative, then search for the first ld in PATH.
6560 elif test "$with_gnu_ld" = yes; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6562 $as_echo_n "checking for GNU ld... " >&6; }
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6565 $as_echo_n "checking for non-GNU ld... " >&6; }
6567 if ${lt_cv_path_LD+:} false; then :
6568 $as_echo_n "(cached) " >&6
6570 if test -z "$LD"; then
6571 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6572 for ac_dir in $PATH; do
6574 test -z "$ac_dir" && ac_dir=.
6575 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6576 lt_cv_path_LD="$ac_dir/$ac_prog"
6577 # Check to see if the program is GNU ld. I'd rather use --version,
6578 # but apparently some variants of GNU ld only accept -v.
6579 # Break only if it was the GNU/non-GNU ld that we prefer.
6580 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6581 *GNU* | *'with BFD'*)
6582 test "$with_gnu_ld" != no && break
6585 test "$with_gnu_ld" != yes && break
6592 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6597 if test -n "$LD"; then
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6599 $as_echo "$LD" >&6; }
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6604 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6606 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6607 if ${lt_cv_prog_gnu_ld+:} false; then :
6608 $as_echo_n "(cached) " >&6
6610 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6611 case `$LD -v 2>&1 </dev/null` in
6612 *GNU* | *'with BFD'*)
6613 lt_cv_prog_gnu_ld=yes
6616 lt_cv_prog_gnu_ld=no
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6621 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6622 with_gnu_ld=$lt_cv_prog_gnu_ld
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6627 if ${lt_cv_ld_reload_flag+:} false; then :
6628 $as_echo_n "(cached) " >&6
6630 lt_cv_ld_reload_flag='-r'
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6634 reload_flag=$lt_cv_ld_reload_flag
6635 case $reload_flag in
6637 *) reload_flag=" $reload_flag" ;;
6639 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6642 if test "$GCC" = yes; then
6643 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6645 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6651 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6652 if ${lt_cv_path_NM+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 if test -n "$NM"; then
6656 # Let the user override the test.
6659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6660 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6662 test -z "$ac_dir" && ac_dir=.
6663 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6664 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6665 # Check to see if the nm accepts a BSD-compat flag.
6666 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6667 # nm: unknown option "B" ignored
6668 # Tru64's nm complains that /dev/null is an invalid object file
6669 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6670 */dev/null* | *'Invalid file or object type'*)
6671 lt_cv_path_NM="$tmp_nm -B"
6675 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6677 lt_cv_path_NM="$tmp_nm -p"
6681 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6682 continue # so that we can try to find one that supports BSD flags
6689 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6693 $as_echo "$lt_cv_path_NM" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6697 $as_echo_n "checking whether ln -s works... " >&6; }
6699 if test "$LN_S" = "ln -s"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6701 $as_echo "yes" >&6; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6704 $as_echo "no, using $LN_S" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
6708 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
6709 if ${lt_cv_deplibs_check_method+:} false; then :
6710 $as_echo_n "(cached) " >&6
6712 lt_cv_file_magic_cmd='$MAGIC_CMD'
6713 lt_cv_file_magic_test_file=
6714 lt_cv_deplibs_check_method='unknown'
6715 # Need to set the preceding variable on all platforms that support
6716 # interlibrary dependencies.
6717 # 'none' -- dependencies not supported.
6718 # `unknown' -- same as none, but documents that we really don't know.
6719 # 'pass_all' -- all dependencies passed with no checks.
6720 # 'test_compile' -- check by making test program.
6721 # 'file_magic [[regex]]' -- check by looking for files in library path
6722 # which responds to the $file_magic_cmd with a given extended regex.
6723 # If you have `file' or equivalent on your system and you're not sure
6724 # whether `pass_all' will *always* work, you probably want this one.
6728 lt_cv_deplibs_check_method=pass_all
6732 lt_cv_deplibs_check_method=pass_all
6736 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6737 lt_cv_file_magic_cmd='/usr/bin/file -L'
6738 lt_cv_file_magic_test_file=/shlib/libc.so
6742 # func_win32_libid is a shell function defined in ltmain.sh
6743 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6744 lt_cv_file_magic_cmd='func_win32_libid'
6748 # Base MSYS/MinGW do not provide the 'file' command needed by
6749 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6750 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6751 lt_cv_file_magic_cmd='$OBJDUMP -f'
6754 darwin* | rhapsody*)
6755 lt_cv_deplibs_check_method=pass_all
6758 freebsd* | kfreebsd*-gnu | dragonfly*)
6759 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6762 # Not sure whether the presence of OpenBSD here was a mistake.
6763 # Let's accept both of them until this is cleared up.
6764 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6765 lt_cv_file_magic_cmd=/usr/bin/file
6766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6770 lt_cv_deplibs_check_method=pass_all
6775 lt_cv_deplibs_check_method=pass_all
6778 hpux10.20* | hpux11*)
6779 lt_cv_file_magic_cmd=/usr/bin/file
6782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6783 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6786 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]'
6787 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6791 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6796 irix5* | irix6* | nonstopux*)
6798 *-32|*"-32 ") libmagic=32-bit;;
6799 *-n32|*"-n32 ") libmagic=N32;;
6800 *-64|*"-64 ") libmagic=64-bit;;
6801 *) libmagic=never-match;;
6803 lt_cv_deplibs_check_method=pass_all
6806 # This must be Linux ELF.
6808 lt_cv_deplibs_check_method=pass_all
6812 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6815 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6820 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6821 lt_cv_file_magic_cmd=/usr/bin/file
6822 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6826 lt_cv_deplibs_check_method=unknown
6830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6837 osf3* | osf4* | osf5*)
6838 lt_cv_deplibs_check_method=pass_all
6842 lt_cv_deplibs_check_method=pass_all
6846 lt_cv_deplibs_check_method=pass_all
6849 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6850 case $host_vendor in
6852 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]'
6853 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6856 lt_cv_deplibs_check_method=pass_all
6859 lt_cv_file_magic_cmd='/bin/file'
6860 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6863 lt_cv_file_magic_cmd='/bin/file'
6864 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6865 lt_cv_file_magic_test_file=/lib/libc.so
6868 lt_cv_deplibs_check_method=pass_all
6873 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6874 lt_cv_deplibs_check_method=pass_all
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6880 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6881 file_magic_cmd=$lt_cv_file_magic_cmd
6882 deplibs_check_method=$lt_cv_deplibs_check_method
6883 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6888 # If no C compiler was specified, use CC.
6891 # Allow CC to be a program name with arguments.
6895 # Check whether --enable-libtool-lock was given.
6896 if test "${enable_libtool_lock+set}" = set; then :
6897 enableval=$enable_libtool_lock;
6900 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6902 # Some flags need to be propagated to the compiler or linker for good
6906 # Find out which ABI we are using.
6907 echo 'int i;' > conftest.$ac_ext
6908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6909 (eval $ac_compile) 2>&5
6911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6912 test $ac_status = 0; }; then
6913 case `/usr/bin/file conftest.$ac_objext` in
6925 # Find out which ABI we are using.
6926 echo '#line 6926 "configure"' > conftest.$ac_ext
6927 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6928 (eval $ac_compile) 2>&5
6930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6931 test $ac_status = 0; }; then
6932 if test "$lt_cv_prog_gnu_ld" = yes; then
6933 case `/usr/bin/file conftest.$ac_objext` in
6935 LD="${LD-ld} -melf32bsmip"
6938 LD="${LD-ld} -melf32bmipn32"
6941 LD="${LD-ld} -melf64bmip"
6945 case `/usr/bin/file conftest.$ac_objext` in
6961 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6962 # Find out which ABI we are using.
6963 echo 'int i;' > conftest.$ac_ext
6964 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6965 (eval $ac_compile) 2>&5
6967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6968 test $ac_status = 0; }; then
6969 case `/usr/bin/file conftest.o` in
6973 LD="${LD-ld} -m elf_i386"
6975 ppc64-*linux*|powerpc64-*linux*)
6976 LD="${LD-ld} -m elf32ppclinux"
6979 LD="${LD-ld} -m elf_s390"
6982 LD="${LD-ld} -m elf32_sparc"
6989 LD="${LD-ld} -m elf_x86_64"
6991 ppc*-*linux*|powerpc*-*linux*)
6992 LD="${LD-ld} -m elf64ppc"
6995 LD="${LD-ld} -m elf64_s390"
6998 LD="${LD-ld} -m elf64_sparc"
7008 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7009 SAVE_CFLAGS="$CFLAGS"
7010 CFLAGS="$CFLAGS -belf"
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7012 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7013 if ${lt_cv_cc_needs_belf+:} false; then :
7014 $as_echo_n "(cached) " >&6
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 lt_cv_cc_needs_belf=yes
7036 lt_cv_cc_needs_belf=no
7038 rm -f core conftest.err conftest.$ac_objext \
7039 conftest$ac_exeext conftest.$ac_ext
7041 ac_cpp='$CPP $CPPFLAGS'
7042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7048 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7049 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7050 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7051 CFLAGS="$SAVE_CFLAGS"
7054 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7055 if test -n "$ac_tool_prefix"; then
7056 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7057 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7059 $as_echo_n "checking for $ac_word... " >&6; }
7060 if ${ac_cv_prog_DLLTOOL+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 if test -n "$DLLTOOL"; then
7064 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070 test -z "$as_dir" && as_dir=.
7071 for ac_exec_ext in '' $ac_executable_extensions; do
7072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7073 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 DLLTOOL=$ac_cv_prog_DLLTOOL
7084 if test -n "$DLLTOOL"; then
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7086 $as_echo "$DLLTOOL" >&6; }
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7094 if test -z "$ac_cv_prog_DLLTOOL"; then
7095 ac_ct_DLLTOOL=$DLLTOOL
7096 # Extract the first word of "dlltool", so it can be a program name with args.
7097 set dummy dlltool; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7101 $as_echo_n "(cached) " >&6
7103 if test -n "$ac_ct_DLLTOOL"; then
7104 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 test -z "$as_dir" && as_dir=.
7111 for ac_exec_ext in '' $ac_executable_extensions; do
7112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7124 if test -n "$ac_ct_DLLTOOL"; then
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7126 $as_echo "$ac_ct_DLLTOOL" >&6; }
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7132 if test "x$ac_ct_DLLTOOL" = x; then
7135 case $cross_compiling:$ac_tool_warned in
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7139 ac_tool_warned=yes ;;
7141 DLLTOOL=$ac_ct_DLLTOOL
7144 DLLTOOL="$ac_cv_prog_DLLTOOL"
7147 if test -n "$ac_tool_prefix"; then
7148 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7149 set dummy ${ac_tool_prefix}as; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_AS+:} false; then :
7153 $as_echo_n "(cached) " >&6
7155 if test -n "$AS"; then
7156 ac_cv_prog_AS="$AS" # Let the user override the test.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_AS="${ac_tool_prefix}as"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7176 if test -n "$AS"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7178 $as_echo "$AS" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7186 if test -z "$ac_cv_prog_AS"; then
7188 # Extract the first word of "as", so it can be a program name with args.
7189 set dummy as; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 if test -n "$ac_ct_AS"; then
7196 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_prog_ac_ct_AS="as"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7216 if test -n "$ac_ct_AS"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7218 $as_echo "$ac_ct_AS" >&6; }
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7224 if test "x$ac_ct_AS" = x; then
7227 case $cross_compiling:$ac_tool_warned in
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7231 ac_tool_warned=yes ;;
7239 if test -n "$ac_tool_prefix"; then
7240 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7241 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7243 $as_echo_n "checking for $ac_word... " >&6; }
7244 if ${ac_cv_prog_OBJDUMP+:} false; then :
7245 $as_echo_n "(cached) " >&6
7247 if test -n "$OBJDUMP"; then
7248 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 OBJDUMP=$ac_cv_prog_OBJDUMP
7268 if test -n "$OBJDUMP"; then
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7270 $as_echo "$OBJDUMP" >&6; }
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7273 $as_echo "no" >&6; }
7278 if test -z "$ac_cv_prog_OBJDUMP"; then
7279 ac_ct_OBJDUMP=$OBJDUMP
7280 # Extract the first word of "objdump", so it can be a program name with args.
7281 set dummy objdump; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7285 $as_echo_n "(cached) " >&6
7287 if test -n "$ac_ct_OBJDUMP"; then
7288 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7308 if test -n "$ac_ct_OBJDUMP"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7310 $as_echo "$ac_ct_OBJDUMP" >&6; }
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7316 if test "x$ac_ct_OBJDUMP" = x; then
7319 case $cross_compiling:$ac_tool_warned in
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7323 ac_tool_warned=yes ;;
7325 OBJDUMP=$ac_ct_OBJDUMP
7328 OBJDUMP="$ac_cv_prog_OBJDUMP"
7335 need_locks="$enable_libtool_lock"
7339 ac_cpp='$CPP $CPPFLAGS'
7340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7345 # On Suns, sometimes $CPP names a directory.
7346 if test -n "$CPP" && test -d "$CPP"; then
7349 if test -z "$CPP"; then
7350 if ${ac_cv_prog_CPP+:} false; then :
7351 $as_echo_n "(cached) " >&6
7353 # Double quotes because CPP needs to be expanded
7354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7357 for ac_c_preproc_warn_flag in '' yes
7359 # Use a header file that comes with gcc, so configuring glibc
7360 # with a fresh cross-compiler works.
7361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7362 # <limits.h> exists even on freestanding compilers.
7363 # On the NeXT, cc -E runs the code through the compiler's parser,
7364 # not just through cpp. "Syntax error" is here to catch this case.
7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7366 /* end confdefs.h. */
7368 # include <limits.h>
7370 # include <assert.h>
7374 if ac_fn_c_try_cpp "$LINENO"; then :
7377 # Broken: fails on valid input.
7380 rm -f conftest.err conftest.i conftest.$ac_ext
7382 # OK, works on sane cases. Now check whether nonexistent headers
7383 # can be detected and how.
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7386 #include <ac_nonexistent.h>
7388 if ac_fn_c_try_cpp "$LINENO"; then :
7389 # Broken: success on invalid input.
7392 # Passes both tests.
7396 rm -f conftest.err conftest.i conftest.$ac_ext
7399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7400 rm -f conftest.i conftest.err conftest.$ac_ext
7401 if $ac_preproc_ok; then :
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7414 $as_echo "$CPP" >&6; }
7416 for ac_c_preproc_warn_flag in '' yes
7418 # Use a header file that comes with gcc, so configuring glibc
7419 # with a fresh cross-compiler works.
7420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7421 # <limits.h> exists even on freestanding compilers.
7422 # On the NeXT, cc -E runs the code through the compiler's parser,
7423 # not just through cpp. "Syntax error" is here to catch this case.
7424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* end confdefs.h. */
7427 # include <limits.h>
7429 # include <assert.h>
7433 if ac_fn_c_try_cpp "$LINENO"; then :
7436 # Broken: fails on valid input.
7439 rm -f conftest.err conftest.i conftest.$ac_ext
7441 # OK, works on sane cases. Now check whether nonexistent headers
7442 # can be detected and how.
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445 #include <ac_nonexistent.h>
7447 if ac_fn_c_try_cpp "$LINENO"; then :
7448 # Broken: success on invalid input.
7451 # Passes both tests.
7455 rm -f conftest.err conftest.i conftest.$ac_ext
7458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7459 rm -f conftest.i conftest.err conftest.$ac_ext
7460 if $ac_preproc_ok; then :
7463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7465 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7466 See \`config.log' for more details" "$LINENO" 5; }
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7477 $as_echo_n "checking for ANSI C header files... " >&6; }
7478 if ${ac_cv_header_stdc+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7482 /* end confdefs.h. */
7496 if ac_fn_c_try_compile "$LINENO"; then :
7497 ac_cv_header_stdc=yes
7499 ac_cv_header_stdc=no
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 if test $ac_cv_header_stdc = yes; then
7504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7511 $EGREP "memchr" >/dev/null 2>&1; then :
7514 ac_cv_header_stdc=no
7520 if test $ac_cv_header_stdc = yes; then
7521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7528 $EGREP "free" >/dev/null 2>&1; then :
7531 ac_cv_header_stdc=no
7537 if test $ac_cv_header_stdc = yes; then
7538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7539 if test "$cross_compiling" = yes; then :
7542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7546 #if ((' ' & 0x0FF) == 0x020)
7547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7550 # define ISLOWER(c) \
7551 (('a' <= (c) && (c) <= 'i') \
7552 || ('j' <= (c) && (c) <= 'r') \
7553 || ('s' <= (c) && (c) <= 'z'))
7554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7562 for (i = 0; i < 256; i++)
7563 if (XOR (islower (i), ISLOWER (i))
7564 || toupper (i) != TOUPPER (i))
7569 if ac_fn_c_try_run "$LINENO"; then :
7572 ac_cv_header_stdc=no
7574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7575 conftest.$ac_objext conftest.beam conftest.$ac_ext
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7581 $as_echo "$ac_cv_header_stdc" >&6; }
7582 if test $ac_cv_header_stdc = yes; then
7584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7590 inttypes.h stdint.h unistd.h
7592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7593 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7595 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7596 cat >>confdefs.h <<_ACEOF
7597 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7605 for ac_header in dlfcn.h
7607 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
7608 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7609 cat >>confdefs.h <<_ACEOF
7610 #define HAVE_DLFCN_H 1
7618 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7620 # find the maximum length of command line arguments
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7622 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7623 if ${lt_cv_sys_max_cmd_len+:} false; then :
7624 $as_echo_n "(cached) " >&6
7631 # On DJGPP, this test can blow up pretty badly due to problems in libc
7632 # (any single argument exceeding 2000 bytes causes a buffer overrun
7633 # during glob expansion). Even if it were fixed, the result of this
7634 # check would be larger than it should be.
7635 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7639 # Under GNU Hurd, this test is not required because there is
7640 # no limit to the length of command line arguments.
7641 # Libtool will interpret -1 as no limit whatsoever
7642 lt_cv_sys_max_cmd_len=-1;
7646 # On Win9x/ME, this test blows up -- it succeeds, but takes
7647 # about 5 minutes as the teststring grows exponentially.
7648 # Worse, since 9x/ME are not pre-emptively multitasking,
7649 # you end up with a "frozen" computer, even though with patience
7650 # the test eventually succeeds (with a max line length of 256k).
7651 # Instead, let's just punt: use the minimum linelength reported by
7652 # all of the supported platforms: 8192 (on NT/2K/XP).
7653 lt_cv_sys_max_cmd_len=8192;
7657 # On AmigaOS with pdksh, this test takes hours, literally.
7658 # So we just punt and use a minimum line length of 8192.
7659 lt_cv_sys_max_cmd_len=8192;
7662 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7663 # This has been around since 386BSD, at least. Likely further.
7664 if test -x /sbin/sysctl; then
7665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7666 elif test -x /usr/sbin/sysctl; then
7667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7669 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7671 # And add a safety zone
7672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7676 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7677 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7678 # nice to cause kernel panics so lets avoid the loop below.
7679 # First set a reasonable default.
7680 lt_cv_sys_max_cmd_len=16384
7682 if test -x /sbin/sysconfig; then
7683 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7684 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7689 # If test is not a shell built-in, we'll probably end up computing a
7690 # maximum length that is only half of the actual maximum length, but
7692 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7693 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7694 = "XX$teststring") >/dev/null 2>&1 &&
7695 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7696 lt_cv_sys_max_cmd_len=$new_result &&
7697 test $i != 17 # 1/2 MB should be enough
7700 teststring=$teststring$teststring
7703 # Add a significant safety factor because C++ compilers can tack on massive
7704 # amounts of additional arguments before passing them to the linker.
7705 # It appears as though 1/2 is a usable value.
7706 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7712 if test -n $lt_cv_sys_max_cmd_len ; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7714 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7717 $as_echo "none" >&6; }
7723 # Check for command to grab the raw symbol name followed by C symbol from nm.
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7725 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7726 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7727 $as_echo_n "(cached) " >&6
7730 # These are sane defaults that work on at least a few old systems.
7731 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7733 # Character class describing NM global symbol codes.
7734 symcode='[BCDEGRST]'
7736 # Regexp to match symbols that can be accessed directly from C.
7737 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7739 # Transform an extracted symbol line into a proper C declaration
7740 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7742 # Transform an extracted symbol line into symbol name and symbol address
7743 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'"
7745 # Define system-specific variables.
7750 cygwin* | mingw* | pw32*)
7751 symcode='[ABCDGISTW]'
7753 hpux*) # Its linker distinguishes data from code symbols
7754 if test "$host_cpu" = ia64; then
7755 symcode='[ABCDEGRST]'
7757 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7758 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'"
7761 if test "$host_cpu" = ia64; then
7762 symcode='[ABCDGIRSTW]'
7763 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7764 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'"
7768 symcode='[BCDEGRST]'
7771 symcode='[BCDEGQRST]'
7781 # Handle CRLF in mingw tool chain
7785 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7789 # If we're using GNU nm, then use its standard symbol codes.
7790 case `$NM -V 2>&1` in
7791 *GNU* | *'with BFD'*)
7792 symcode='[ABCDGIRSTW]' ;;
7795 # Try without a prefix undercore, then with it.
7796 for ac_symprfx in "" "_"; do
7798 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7799 symxfrm="\\1 $ac_symprfx\\2 \\2"
7801 # Write the raw and C identifiers.
7802 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7804 # Check to see that the pipe works correctly.
7808 cat > conftest.$ac_ext <<EOF
7813 void nm_test_func(){}
7817 int main(){nm_test_var='a';nm_test_func();return(0);}
7820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7821 (eval $ac_compile) 2>&5
7823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824 test $ac_status = 0; }; then
7825 # Now try to grab the symbols.
7827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7828 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; } && test -s "$nlist"; then
7832 # Try sorting and uniquifying the output.
7833 if sort "$nlist" | uniq > "$nlist"T; then
7834 mv -f "$nlist"T "$nlist"
7839 # Make sure that we snagged all the symbols we need.
7840 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7841 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7842 cat <<EOF > conftest.$ac_ext
7848 # Now generate the symbol file.
7849 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7851 cat <<EOF >> conftest.$ac_ext
7852 #if defined (__STDC__) && __STDC__
7853 # define lt_ptr_t void *
7855 # define lt_ptr_t char *
7859 /* The mapping between symbol names and symbols. */
7864 lt_preloaded_symbols[] =
7867 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7868 cat <<\EOF >> conftest.$ac_ext
7876 # Now try linking the two files.
7877 mv conftest.$ac_objext conftstm.$ac_objext
7878 lt_save_LIBS="$LIBS"
7879 lt_save_CFLAGS="$CFLAGS"
7880 LIBS="conftstm.$ac_objext"
7881 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7882 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7883 (eval $ac_link) 2>&5
7885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7886 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7889 LIBS="$lt_save_LIBS"
7890 CFLAGS="$lt_save_CFLAGS"
7892 echo "cannot find nm_test_func in $nlist" >&5
7895 echo "cannot find nm_test_var in $nlist" >&5
7898 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7901 echo "$progname: failed program was:" >&5
7902 cat conftest.$ac_ext >&5
7904 rm -f conftest* conftst*
7906 # Do not use the global_symbol_pipe unless it works.
7907 if test "$pipe_works" = yes; then
7910 lt_cv_sys_global_symbol_pipe=
7916 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7917 lt_cv_sys_global_symbol_to_cdecl=
7919 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7921 $as_echo "failed" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7924 $as_echo "ok" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7928 $as_echo_n "checking for objdir... " >&6; }
7929 if ${lt_cv_objdir+:} false; then :
7930 $as_echo_n "(cached) " >&6
7932 rm -f .libs 2>/dev/null
7933 mkdir .libs 2>/dev/null
7934 if test -d .libs; then
7937 # MS-DOS does not allow filenames that begin with a dot.
7940 rmdir .libs 2>/dev/null
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7943 $as_echo "$lt_cv_objdir" >&6; }
7944 objdir=$lt_cv_objdir
7952 # AIX sometimes has problems with the GCC collect2 program. For some
7953 # reason, if we set the COLLECT_NAMES environment variable, the problems
7954 # vanish in a puff of smoke.
7955 if test "X${COLLECT_NAMES+set}" != Xset; then
7957 export COLLECT_NAMES
7962 # Sed substitution that helps us do robust quoting. It backslashifies
7963 # metacharacters that are still active within double-quoted strings.
7964 Xsed='sed -e 1s/^X//'
7965 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7967 # Same as above, but do not quote variable references.
7968 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7970 # Sed substitution to delay expansion of an escaped shell variable in a
7971 # double_quote_subst'ed string.
7972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7974 # Sed substitution to avoid accidental globbing in evaled expressions
7975 no_glob_subst='s/\*/\\\*/g'
7981 default_ofile=libtool
7982 can_build_shared=yes
7984 # All known linkers require a `.a' archive for static linking (except MSVC,
7985 # which needs '.lib').
7987 ltmain="$ac_aux_dir/ltmain.sh"
7988 ofile="$default_ofile"
7989 with_gnu_ld="$lt_cv_prog_gnu_ld"
7991 if test -n "$ac_tool_prefix"; then
7992 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7993 set dummy ${ac_tool_prefix}ar; ac_word=$2
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995 $as_echo_n "checking for $ac_word... " >&6; }
7996 if ${ac_cv_prog_AR+:} false; then :
7997 $as_echo_n "(cached) " >&6
7999 if test -n "$AR"; then
8000 ac_cv_prog_AR="$AR" # Let the user override the test.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_prog_AR="${ac_tool_prefix}ar"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 if test -n "$AR"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8022 $as_echo "$AR" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 if test -z "$ac_cv_prog_AR"; then
8032 # Extract the first word of "ar", so it can be a program name with args.
8033 set dummy ar; ac_word=$2
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035 $as_echo_n "checking for $ac_word... " >&6; }
8036 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8037 $as_echo_n "(cached) " >&6
8039 if test -n "$ac_ct_AR"; then
8040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8046 test -z "$as_dir" && as_dir=.
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8049 ac_cv_prog_ac_ct_AR="ar"
8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8059 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8060 if test -n "$ac_ct_AR"; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8062 $as_echo "$ac_ct_AR" >&6; }
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 $as_echo "no" >&6; }
8068 if test "x$ac_ct_AR" = x; then
8071 case $cross_compiling:$ac_tool_warned in
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8075 ac_tool_warned=yes ;;
8083 if test -n "$ac_tool_prefix"; then
8084 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087 $as_echo_n "checking for $ac_word... " >&6; }
8088 if ${ac_cv_prog_RANLIB+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 if test -n "$RANLIB"; then
8092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098 test -z "$as_dir" && as_dir=.
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8111 RANLIB=$ac_cv_prog_RANLIB
8112 if test -n "$RANLIB"; then
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8114 $as_echo "$RANLIB" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117 $as_echo "no" >&6; }
8122 if test -z "$ac_cv_prog_RANLIB"; then
8123 ac_ct_RANLIB=$RANLIB
8124 # Extract the first word of "ranlib", so it can be a program name with args.
8125 set dummy ranlib; ac_word=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8129 $as_echo_n "(cached) " >&6
8131 if test -n "$ac_ct_RANLIB"; then
8132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 test -z "$as_dir" && as_dir=.
8139 for ac_exec_ext in '' $ac_executable_extensions; do
8140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8141 ac_cv_prog_ac_ct_RANLIB="ranlib"
8142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8152 if test -n "$ac_ct_RANLIB"; then
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8154 $as_echo "$ac_ct_RANLIB" >&6; }
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8157 $as_echo "no" >&6; }
8160 if test "x$ac_ct_RANLIB" = x; then
8163 case $cross_compiling:$ac_tool_warned in
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8167 ac_tool_warned=yes ;;
8169 RANLIB=$ac_ct_RANLIB
8172 RANLIB="$ac_cv_prog_RANLIB"
8175 if test -n "$ac_tool_prefix"; then
8176 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8177 set dummy ${ac_tool_prefix}strip; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if ${ac_cv_prog_STRIP+:} false; then :
8181 $as_echo_n "(cached) " >&6
8183 if test -n "$STRIP"; then
8184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 STRIP=$ac_cv_prog_STRIP
8204 if test -n "$STRIP"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8206 $as_echo "$STRIP" >&6; }
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8214 if test -z "$ac_cv_prog_STRIP"; then
8216 # Extract the first word of "strip", so it can be a program name with args.
8217 set dummy strip; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8221 $as_echo_n "(cached) " >&6
8223 if test -n "$ac_ct_STRIP"; then
8224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_ac_ct_STRIP="strip"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8244 if test -n "$ac_ct_STRIP"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8246 $as_echo "$ac_ct_STRIP" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8252 if test "x$ac_ct_STRIP" = x; then
8255 case $cross_compiling:$ac_tool_warned in
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8259 ac_tool_warned=yes ;;
8264 STRIP="$ac_cv_prog_STRIP"
8269 old_CFLAGS="$CFLAGS"
8271 # Set sane defaults for various variables
8272 test -z "$AR" && AR=ar
8273 test -z "$AR_FLAGS" && AR_FLAGS=cru
8274 test -z "$AS" && AS=as
8275 test -z "$CC" && CC=cc
8276 test -z "$LTCC" && LTCC=$CC
8277 test -z "$DLLTOOL" && DLLTOOL=dlltool
8278 test -z "$LD" && LD=ld
8279 test -z "$LN_S" && LN_S="ln -s"
8280 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8281 test -z "$NM" && NM=nm
8282 test -z "$SED" && SED=sed
8283 test -z "$OBJDUMP" && OBJDUMP=objdump
8284 test -z "$RANLIB" && RANLIB=:
8285 test -z "$STRIP" && STRIP=:
8286 test -z "$ac_objext" && ac_objext=o
8288 # Determine commands to create old-style static archives.
8289 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8290 old_postinstall_cmds='chmod 644 $oldlib'
8291 old_postuninstall_cmds=
8293 if test -n "$RANLIB"; then
8296 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8299 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8302 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8305 for cc_temp in $compiler""; do
8307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8313 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8316 # Only perform the check for file, if the check method requires it
8317 case $deplibs_check_method in
8319 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8321 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8322 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8323 $as_echo_n "(cached) " >&6
8327 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8330 lt_save_MAGIC_CMD="$MAGIC_CMD"
8331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8332 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8333 for ac_dir in $ac_dummy; do
8335 test -z "$ac_dir" && ac_dir=.
8336 if test -f $ac_dir/${ac_tool_prefix}file; then
8337 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8338 if test -n "$file_magic_test_file"; then
8339 case $deplibs_check_method in
8341 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8343 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8344 $EGREP "$file_magic_regex" > /dev/null; then
8349 *** Warning: the command libtool uses to detect shared libraries,
8350 *** $file_magic_cmd, produces output that libtool cannot recognize.
8351 *** The result is that libtool may fail to recognize shared libraries
8352 *** as such. This will affect the creation of libtool libraries that
8353 *** depend on shared libraries, but programs linked with such libtool
8354 *** libraries will work regardless of this problem. Nevertheless, you
8355 *** may want to report the problem to your system manager and/or to
8356 *** bug-libtool@gnu.org
8366 MAGIC_CMD="$lt_save_MAGIC_CMD"
8371 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8372 if test -n "$MAGIC_CMD"; then
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8374 $as_echo "$MAGIC_CMD" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8377 $as_echo "no" >&6; }
8380 if test -z "$lt_cv_path_MAGIC_CMD"; then
8381 if test -n "$ac_tool_prefix"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8383 $as_echo_n "checking for file... " >&6; }
8384 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8385 $as_echo_n "(cached) " >&6
8389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8392 lt_save_MAGIC_CMD="$MAGIC_CMD"
8393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8395 for ac_dir in $ac_dummy; do
8397 test -z "$ac_dir" && ac_dir=.
8398 if test -f $ac_dir/file; then
8399 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8400 if test -n "$file_magic_test_file"; then
8401 case $deplibs_check_method in
8403 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8406 $EGREP "$file_magic_regex" > /dev/null; then
8411 *** Warning: the command libtool uses to detect shared libraries,
8412 *** $file_magic_cmd, produces output that libtool cannot recognize.
8413 *** The result is that libtool may fail to recognize shared libraries
8414 *** as such. This will affect the creation of libtool libraries that
8415 *** depend on shared libraries, but programs linked with such libtool
8416 *** libraries will work regardless of this problem. Nevertheless, you
8417 *** may want to report the problem to your system manager and/or to
8418 *** bug-libtool@gnu.org
8428 MAGIC_CMD="$lt_save_MAGIC_CMD"
8433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8434 if test -n "$MAGIC_CMD"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8436 $as_echo "$MAGIC_CMD" >&6; }
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8452 enable_win32_dll=yes
8454 # Check whether --enable-libtool-lock was given.
8455 if test "${enable_libtool_lock+set}" = set; then :
8456 enableval=$enable_libtool_lock;
8459 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8462 # Check whether --with-pic was given.
8463 if test "${with_pic+set}" = set; then :
8464 withval=$with_pic; pic_mode="$withval"
8469 test -z "$pic_mode" && pic_mode=default
8471 # Use C for the default configuration in the libtool script
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8481 # Source file extension for C test sources.
8484 # Object file extension for compiled C test sources.
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;\n"
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}\n'
8495 # If no C compiler was specified, use CC.
8498 # Allow CC to be a program name with arguments.
8502 # save warnings/boilerplate of simple test code
8503 ac_outfile=conftest.$ac_objext
8504 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8505 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8506 _lt_compiler_boilerplate=`cat conftest.err`
8509 ac_outfile=conftest.$ac_objext
8510 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8511 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8512 _lt_linker_boilerplate=`cat conftest.err`
8517 # Check for any special shared library compilation flags.
8520 if test "$GCC" = no; then
8523 lt_prog_cc_shlib='-belf'
8527 if test -n "$lt_prog_cc_shlib"; then
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8529 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8530 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8533 $as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8534 lt_cv_prog_cc_can_build_shared=no
8540 # Check to make sure the static flag actually works.
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8543 $as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
8544 if ${lt_prog_compiler_static_works+:} false; then :
8545 $as_echo_n "(cached) " >&6
8547 lt_prog_compiler_static_works=no
8548 save_LDFLAGS="$LDFLAGS"
8549 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8550 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8552 # The linker can only warn and ignore the option if not recognized
8553 # So say no if there are warnings
8554 if test -s conftest.err; then
8555 # Append any errors to the config.log.
8556 cat conftest.err 1>&5
8557 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8558 $SED '/^$/d' conftest.err >conftest.er2
8559 if diff conftest.exp conftest.er2 >/dev/null; then
8560 lt_prog_compiler_static_works=yes
8563 lt_prog_compiler_static_works=yes
8567 LDFLAGS="$save_LDFLAGS"
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
8571 $as_echo "$lt_prog_compiler_static_works" >&6; }
8573 if test x"$lt_prog_compiler_static_works" = xyes; then
8576 lt_prog_compiler_static=
8582 lt_prog_compiler_no_builtin_flag=
8584 if test "$GCC" = yes; then
8585 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8589 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8590 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8591 $as_echo_n "(cached) " >&6
8593 lt_cv_prog_compiler_rtti_exceptions=no
8594 ac_outfile=conftest.$ac_objext
8595 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8596 lt_compiler_flag="-fno-rtti -fno-exceptions"
8597 # Insert the option either (1) after the last *FLAGS variable, or
8598 # (2) before a word containing "conftest.", or (3) at the end.
8599 # Note that $ac_compile itself does not contain backslashes and begins
8600 # with a dollar sign (not a hyphen), so the echo should work correctly.
8601 # The option is referenced via a variable to avoid confusing sed.
8602 lt_compile=`echo "$ac_compile" | $SED \
8603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8605 -e 's:$: $lt_compiler_flag:'`
8606 (eval echo "\"\$as_me:8606: $lt_compile\"" >&5)
8607 (eval "$lt_compile" 2>conftest.err)
8609 cat conftest.err >&5
8610 echo "$as_me:8610: \$? = $ac_status" >&5
8611 if (exit $ac_status) && test -s "$ac_outfile"; then
8612 # The compiler can only warn and ignore the option if not recognized
8613 # So say no if there are warnings other than the usual output.
8614 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8615 $SED '/^$/d' conftest.err >conftest.er2
8616 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8617 lt_cv_prog_compiler_rtti_exceptions=yes
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8624 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8626 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8627 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8634 lt_prog_compiler_wl=
8635 lt_prog_compiler_pic=
8636 lt_prog_compiler_static=
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8639 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8641 if test "$GCC" = yes; then
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_static='-static'
8647 # All AIX code is PIC.
8648 if test "$host_cpu" = ia64; then
8649 # AIX 5 now supports IA64 processor
8650 lt_prog_compiler_static='-Bstatic'
8655 # FIXME: we need at least 68020 code to build shared libraries, but
8656 # adding the `-m68020' flag to GCC prevents building anything better,
8658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8661 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8662 # PIC is the default for these OSes.
8665 mingw* | pw32* | os2*)
8666 # This hack is so that the source file can tell whether it is being
8667 # built for inclusion in a dll (and should export symbols for example).
8668 lt_prog_compiler_pic='-DDLL_EXPORT'
8671 darwin* | rhapsody*)
8672 # PIC is the default on this platform
8673 # Common symbols not allowed in MH_DYLIB files
8674 lt_prog_compiler_pic='-fno-common'
8678 # Just because we use GCC doesn't mean we suddenly get shared libraries
8679 # on systems that don't support them.
8680 lt_prog_compiler_can_build_shared=no
8685 if test -d /usr/nec; then
8686 lt_prog_compiler_pic=-Kconform_pic
8691 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8698 lt_prog_compiler_pic='-fPIC'
8704 lt_prog_compiler_pic='-fPIC'
8708 # PORTME Check for flag to pass linker flags through the system compiler.
8711 lt_prog_compiler_wl='-Wl,'
8712 if test "$host_cpu" = ia64; then
8713 # AIX 5 now supports IA64 processor
8714 lt_prog_compiler_static='-Bstatic'
8716 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8720 # PIC is the default on this platform
8721 # Common symbols not allowed in MH_DYLIB files
8722 case $cc_basename in
8724 lt_prog_compiler_pic='-qnocommon'
8725 lt_prog_compiler_wl='-Wl,'
8730 mingw* | pw32* | os2*)
8731 # This hack is so that the source file can tell whether it is being
8732 # built for inclusion in a dll (and should export symbols for example).
8733 lt_prog_compiler_pic='-DDLL_EXPORT'
8736 hpux9* | hpux10* | hpux11*)
8737 lt_prog_compiler_wl='-Wl,'
8738 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8745 lt_prog_compiler_pic='+Z'
8748 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8749 lt_prog_compiler_static='${wl}-a ${wl}archive'
8752 irix5* | irix6* | nonstopux*)
8753 lt_prog_compiler_wl='-Wl,'
8754 # PIC (with -KPIC) is the default.
8755 lt_prog_compiler_static='-non_shared'
8759 lt_prog_compiler_pic='-KPIC'
8760 lt_prog_compiler_static='-Bstatic'
8764 case $cc_basename in
8766 lt_prog_compiler_wl='-Wl,'
8767 lt_prog_compiler_pic='-KPIC'
8768 lt_prog_compiler_static='-static'
8770 pgcc* | pgf77* | pgf90* | pgf95*)
8771 # Portland Group compilers (*not* the Pentium gcc compiler,
8772 # which looks to be a dead project)
8773 lt_prog_compiler_wl='-Wl,'
8774 lt_prog_compiler_pic='-fpic'
8775 lt_prog_compiler_static='-Bstatic'
8778 lt_prog_compiler_wl='-Wl,'
8779 # All Alpha code is PIC.
8780 lt_prog_compiler_static='-non_shared'
8785 osf3* | osf4* | osf5*)
8786 lt_prog_compiler_wl='-Wl,'
8787 # All OSF/1 code is PIC.
8788 lt_prog_compiler_static='-non_shared'
8792 lt_prog_compiler_pic='-Kpic'
8793 lt_prog_compiler_static='-dn'
8797 lt_prog_compiler_pic='-KPIC'
8798 lt_prog_compiler_static='-Bstatic'
8799 case $cc_basename in
8801 lt_prog_compiler_wl='-Qoption ld ';;
8803 lt_prog_compiler_wl='-Wl,';;
8808 lt_prog_compiler_wl='-Qoption ld '
8809 lt_prog_compiler_pic='-PIC'
8810 lt_prog_compiler_static='-Bstatic'
8813 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8814 lt_prog_compiler_wl='-Wl,'
8815 lt_prog_compiler_pic='-KPIC'
8816 lt_prog_compiler_static='-Bstatic'
8820 if test -d /usr/nec ;then
8821 lt_prog_compiler_pic='-Kconform_pic'
8822 lt_prog_compiler_static='-Bstatic'
8827 lt_prog_compiler_wl='-Wl,'
8828 lt_prog_compiler_can_build_shared=no
8832 lt_prog_compiler_pic='-pic'
8833 lt_prog_compiler_static='-Bstatic'
8837 lt_prog_compiler_can_build_shared=no
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8843 $as_echo "$lt_prog_compiler_pic" >&6; }
8846 # Check to make sure the PIC flag actually works.
8848 if test -n "$lt_prog_compiler_pic"; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8851 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8852 if ${lt_prog_compiler_pic_works+:} false; then :
8853 $as_echo_n "(cached) " >&6
8855 lt_prog_compiler_pic_works=no
8856 ac_outfile=conftest.$ac_objext
8857 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8858 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8859 # Insert the option either (1) after the last *FLAGS variable, or
8860 # (2) before a word containing "conftest.", or (3) at the end.
8861 # Note that $ac_compile itself does not contain backslashes and begins
8862 # with a dollar sign (not a hyphen), so the echo should work correctly.
8863 # The option is referenced via a variable to avoid confusing sed.
8864 lt_compile=`echo "$ac_compile" | $SED \
8865 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8867 -e 's:$: $lt_compiler_flag:'`
8868 (eval echo "\"\$as_me:8868: $lt_compile\"" >&5)
8869 (eval "$lt_compile" 2>conftest.err)
8871 cat conftest.err >&5
8872 echo "$as_me:8872: \$? = $ac_status" >&5
8873 if (exit $ac_status) && test -s "$ac_outfile"; then
8874 # The compiler can only warn and ignore the option if not recognized
8875 # So say no if there are warnings other than the usual output.
8876 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8877 $SED '/^$/d' conftest.err >conftest.er2
8878 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8879 lt_prog_compiler_pic_works=yes
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
8886 $as_echo "$lt_prog_compiler_pic_works" >&6; }
8888 if test x"$lt_prog_compiler_pic_works" = xyes; then
8889 case $lt_prog_compiler_pic in
8891 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8894 lt_prog_compiler_pic=
8895 lt_prog_compiler_can_build_shared=no
8900 # For platforms which do not support PIC, -DPIC is meaningless:
8902 lt_prog_compiler_pic=
8905 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8910 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8911 if ${lt_cv_prog_compiler_c_o+:} false; then :
8912 $as_echo_n "(cached) " >&6
8914 lt_cv_prog_compiler_c_o=no
8915 $rm -r conftest 2>/dev/null
8919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8921 lt_compiler_flag="-o out/conftest2.$ac_objext"
8922 # Insert the option either (1) after the last *FLAGS variable, or
8923 # (2) before a word containing "conftest.", or (3) at the end.
8924 # Note that $ac_compile itself does not contain backslashes and begins
8925 # with a dollar sign (not a hyphen), so the echo should work correctly.
8926 lt_compile=`echo "$ac_compile" | $SED \
8927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8929 -e 's:$: $lt_compiler_flag:'`
8930 (eval echo "\"\$as_me:8930: $lt_compile\"" >&5)
8931 (eval "$lt_compile" 2>out/conftest.err)
8933 cat out/conftest.err >&5
8934 echo "$as_me:8934: \$? = $ac_status" >&5
8935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8937 # The compiler can only warn and ignore the option if not recognized
8938 # So say no if there are warnings
8939 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8940 $SED '/^$/d' out/conftest.err >out/conftest.er2
8941 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8942 lt_cv_prog_compiler_c_o=yes
8947 # SGI C++ compiler will create directory out/ii_files/ for
8948 # template instantiation
8949 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8950 $rm out/* && rmdir out
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8957 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8960 hard_links="nottested"
8961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8962 # do not overwrite the value of need_locks provided by the user
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8964 $as_echo_n "checking if we can lock with hard links... " >&6; }
8967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8969 ln conftest.a conftest.b 2>&5 || hard_links=no
8970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8972 $as_echo "$hard_links" >&6; }
8973 if test "$hard_links" = no; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8983 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8986 allow_undefined_flag=
8987 enable_shared_with_static_runtimes=no
8989 archive_expsym_cmds=
8990 old_archive_From_new_cmds=
8991 old_archive_from_expsyms_cmds=
8992 export_dynamic_flag_spec=
8993 whole_archive_flag_spec=
8994 thread_safe_flag_spec=
8995 hardcode_libdir_flag_spec=
8996 hardcode_libdir_flag_spec_ld=
8997 hardcode_libdir_separator=
9000 hardcode_shlibpath_var=unsupported
9001 link_all_deplibs=unknown
9002 hardcode_automatic=no
9005 always_export_symbols=no
9006 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9007 # include_expsyms should be a list of space-separated symbols to be *always*
9008 # included in the symbol list
9010 # exclude_expsyms can be an extended regexp of symbols to exclude
9011 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9012 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9013 # as well as any symbol that contains `d'.
9014 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9015 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9016 # platforms (ab)use it in PIC code, but their linkers get confused if
9017 # the symbol is explicitly referenced. Since portable code cannot
9018 # rely on this symbol name, it's probably fine to never include it in
9019 # preloaded symbol tables.
9020 extract_expsyms_cmds=
9021 # Just being paranoid about ensuring that cc_basename is set.
9022 for cc_temp in $compiler""; do
9024 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9025 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9030 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9033 cygwin* | mingw* | pw32*)
9034 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9035 # When not using gcc, we currently assume that we are using
9036 # Microsoft Visual C++.
9037 if test "$GCC" != yes; then
9047 if test "$with_gnu_ld" = yes; then
9048 # If archive_cmds runs LD, not CC, wlarc should be empty
9051 # Set some defaults for GNU ld with shared library support. These
9052 # are reset later if shared libraries are not supported. Putting them
9053 # here allows them to be overridden if necessary.
9054 runpath_var=LD_RUN_PATH
9055 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9056 export_dynamic_flag_spec='${wl}--export-dynamic'
9057 # ancient GNU ld didn't support --whole-archive et. al.
9058 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9059 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9061 whole_archive_flag_spec=
9063 supports_anon_versioning=no
9064 case `$LD -v 2>/dev/null` in
9065 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9066 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9067 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9068 *\ 2.11.*) ;; # other 2.11 versions
9069 *) supports_anon_versioning=yes ;;
9072 # See if GNU ld supports shared libraries.
9074 aix3* | aix4* | aix5*)
9075 # On AIX/PPC, the GNU linker is very broken
9076 if test "$host_cpu" != ia64; then
9080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9081 *** to be unable to reliably create shared libraries on AIX.
9082 *** Therefore, libtool is disabling shared libraries support. If you
9083 *** really care for shared libraries, you may want to modify your PATH
9084 *** so that a non-GNU linker is found, and then restart.
9091 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)'
9092 hardcode_libdir_flag_spec='-L$libdir'
9093 hardcode_minus_L=yes
9095 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9096 # that the semantics of dynamic libraries on AmigaOS, at least up
9097 # to version 4, is to share data among multiple programs linked
9098 # with the same dynamic library. Since this doesn't match the
9099 # behavior of shared libraries on other platforms, we can't use
9105 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9106 allow_undefined_flag=unsupported
9107 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9108 # support --undefined. This deserves some investigation. FIXME
9109 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9115 cygwin* | mingw* | pw32*)
9116 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9117 # as there is no search path for DLLs.
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 allow_undefined_flag=unsupported
9120 always_export_symbols=no
9121 enable_shared_with_static_runtimes=yes
9122 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9124 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9126 # If the export-symbols file already is a .def file (1st line
9127 # is EXPORTS), use it as is; otherwise, prepend...
9128 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129 cp $export_symbols $output_objdir/$soname.def;
9131 echo EXPORTS > $output_objdir/$soname.def;
9132 cat $export_symbols >> $output_objdir/$soname.def;
9134 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9141 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9143 case $cc_basename,$host_cpu in
9144 pgcc*) # Portland Group C compiler
9145 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'
9146 tmp_addflag=' $pic_flag'
9148 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9149 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'
9150 tmp_addflag=' $pic_flag -Mnomain' ;;
9151 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9152 tmp_addflag=' -i_dynamic' ;;
9153 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9154 tmp_addflag=' -i_dynamic -nofor_main' ;;
9155 ifc* | ifort*) # Intel Fortran compiler
9156 tmp_addflag=' -nofor_main' ;;
9158 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9160 if test $supports_anon_versioning = yes; then
9161 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9162 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9163 $echo "local: *; };" >> $output_objdir/$libname.ver~
9164 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9173 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9176 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9177 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9182 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9186 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9187 *** create shared libraries on Solaris systems. Therefore, libtool
9188 *** is disabling shared libraries support. We urge you to upgrade GNU
9189 *** binutils to release 2.9.1 or newer. Another option is to modify
9190 *** your PATH or compiler configuration so that the native linker is
9191 *** used, and then restart.
9194 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9195 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9203 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9206 hardcode_shlibpath_var=no
9210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9219 if test "$ld_shlibs" = no; then
9221 hardcode_libdir_flag_spec=
9222 export_dynamic_flag_spec=
9223 whole_archive_flag_spec=
9226 # PORTME fill in a description of your system's linker (not GNU ld)
9229 allow_undefined_flag=unsupported
9230 always_export_symbols=yes
9231 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'
9232 # Note: this linker hardcodes the directories in LIBPATH if there
9233 # are no directories specified by -L.
9234 hardcode_minus_L=yes
9235 if test "$GCC" = yes && test -z "$link_static_flag"; then
9236 # Neither direct hardcoding nor static linking is supported with a
9238 hardcode_direct=unsupported
9243 if test "$host_cpu" = ia64; then
9244 # On IA64, the linker does run time linking by default, so we don't
9245 # have to do anything special.
9246 aix_use_runtimelinking=no
9247 exp_sym_flag='-Bexport'
9250 # If we're using GNU nm, then we don't want the "-C" option.
9251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9252 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9253 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'
9255 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'
9257 aix_use_runtimelinking=no
9259 # Test if we are trying to use run time linking or normal
9260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9261 # need to do runtime linking.
9262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9263 for ld_flag in $LDFLAGS; do
9264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9265 aix_use_runtimelinking=yes
9271 exp_sym_flag='-bexport'
9272 no_entry_flag='-bnoentry'
9275 # When large executables or shared objects are built, AIX ld can
9276 # have problems creating the table of contents. If linking a library
9277 # or program results in "error TOC overflow" add -mminimal-toc to
9278 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9279 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9283 hardcode_libdir_separator=':'
9284 link_all_deplibs=yes
9286 if test "$GCC" = yes; then
9287 case $host_os in aix4.[012]|aix4.[012].*)
9288 # We only want to do this on AIX 4.2 and lower, the check
9289 # below for broken collect2 doesn't work under 4.3+
9290 collect2name=`${CC} -print-prog-name=collect2`
9291 if test -f "$collect2name" && \
9292 strings "$collect2name" | grep resolve_lib_name >/dev/null
9294 # We have reworked collect2
9297 # We have old collect2
9298 hardcode_direct=unsupported
9299 # It fails to find uninstalled libraries when the uninstalled
9300 # path is not listed in the libpath. Setting hardcode_minus_L
9301 # to unsupported forces relinking
9302 hardcode_minus_L=yes
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_libdir_separator=
9307 shared_flag='-shared'
9308 if test "$aix_use_runtimelinking" = yes; then
9309 shared_flag="$shared_flag "'${wl}-G'
9313 if test "$host_cpu" = ia64; then
9314 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9315 # chokes on -Wl,-G. The following line is correct:
9318 if test "$aix_use_runtimelinking" = yes; then
9319 shared_flag='${wl}-G'
9321 shared_flag='${wl}-bM:SRE'
9326 # It seems that -bexpall does not export symbols beginning with
9327 # underscore (_), so it is better to generate a list of symbols to export.
9328 always_export_symbols=yes
9329 if test "$aix_use_runtimelinking" = yes; then
9330 # Warning - without using the other runtime loading flags (-brtl),
9331 # -berok will link without error, but may produce a broken library.
9332 allow_undefined_flag='-berok'
9333 # Determine the default libpath from the value encoded in an empty executable.
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9345 if ac_fn_c_try_link "$LINENO"; then :
9347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9349 # Check for a 64-bit object if we didn't find anything.
9350 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; }
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9357 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9358 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"
9360 if test "$host_cpu" = ia64; then
9361 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9362 allow_undefined_flag="-z nodefs"
9363 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"
9365 # Determine the default libpath from the value encoded in an empty executable.
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9377 if ac_fn_c_try_link "$LINENO"; then :
9379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9381 # Check for a 64-bit object if we didn't find anything.
9382 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; }
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9390 # Warning - without using the other run time loading flags,
9391 # -berok will link without error, but may produce a broken library.
9392 no_undefined_flag=' ${wl}-bernotok'
9393 allow_undefined_flag=' ${wl}-berok'
9394 # -bexpall does not export symbols beginning with underscore (_)
9395 always_export_symbols=yes
9396 # Exported symbols can be pulled into shared objects from archives
9397 whole_archive_flag_spec=' '
9398 archive_cmds_need_lc=yes
9399 # This is similar to how AIX traditionally builds its shared libraries.
9400 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'
9406 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)'
9407 hardcode_libdir_flag_spec='-L$libdir'
9408 hardcode_minus_L=yes
9409 # see comment about different semantics on the GNU ld section
9414 export_dynamic_flag_spec=-rdynamic
9417 cygwin* | mingw* | pw32*)
9418 # When not using gcc, we currently assume that we are using
9419 # Microsoft Visual C++.
9420 # hardcode_libdir_flag_spec is actually meaningless, as there is
9421 # no search path for DLLs.
9422 hardcode_libdir_flag_spec=' '
9423 allow_undefined_flag=unsupported
9424 # Tell ltmain to make .lib files, not .a files.
9426 # Tell ltmain to make .dll files, not .so files.
9428 # FIXME: Setting linknames here is a bad hack.
9429 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9430 # The linker will automatically build a .lib file if we build a DLL.
9431 old_archive_From_new_cmds='true'
9432 # FIXME: Should let the user specify the lib program.
9433 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9434 fix_srcfile_path='`cygpath -w "$srcfile"`'
9435 enable_shared_with_static_runtimes=yes
9438 darwin* | rhapsody*)
9440 rhapsody* | darwin1.[012])
9441 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9444 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9445 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9447 case ${MACOSX_DEPLOYMENT_TARGET} in
9449 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9452 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9458 archive_cmds_need_lc=no
9460 hardcode_automatic=yes
9461 hardcode_shlibpath_var=unsupported
9462 whole_archive_flag_spec=''
9463 link_all_deplibs=yes
9464 if test "$GCC" = yes ; then
9465 output_verbose_link_cmd='echo'
9466 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9467 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9469 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}'
9470 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}'
9472 case $cc_basename in
9474 output_verbose_link_cmd='echo'
9475 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9476 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9477 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9478 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}'
9479 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}'
9489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9490 hardcode_libdir_flag_spec='-L$libdir'
9491 hardcode_shlibpath_var=no
9498 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9499 # support. Future versions do this automatically, but an explicit c++rt0.o
9500 # does not break anything, and helps significantly (at the cost of a little
9503 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9504 hardcode_libdir_flag_spec='-R$libdir'
9506 hardcode_shlibpath_var=no
9509 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9511 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9513 hardcode_minus_L=yes
9514 hardcode_shlibpath_var=no
9517 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9518 freebsd* | kfreebsd*-gnu | dragonfly*)
9519 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9520 hardcode_libdir_flag_spec='-R$libdir'
9522 hardcode_shlibpath_var=no
9526 if test "$GCC" = yes; then
9527 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'
9529 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'
9531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9532 hardcode_libdir_separator=:
9535 # hardcode_minus_L: Not really in the search PATH,
9536 # but as the default location of the library.
9537 hardcode_minus_L=yes
9538 export_dynamic_flag_spec='${wl}-E'
9542 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9545 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9548 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9554 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9561 if test "$with_gnu_ld" = no; then
9564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565 hardcode_libdir_flag_spec_ld='+b $libdir'
9566 hardcode_libdir_separator=:
9568 hardcode_shlibpath_var=no
9571 hardcode_libdir_flag_spec='-L$libdir'
9573 hardcode_shlibpath_var=no
9575 # hardcode_minus_L: Not really in the search PATH,
9576 # but as the default location of the library.
9577 hardcode_minus_L=yes
9580 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9581 hardcode_libdir_separator=:
9583 export_dynamic_flag_spec='${wl}-E'
9585 # hardcode_minus_L: Not really in the search PATH,
9586 # but as the default location of the library.
9587 hardcode_minus_L=yes
9593 irix5* | irix6* | nonstopux*)
9594 if test "$GCC" = yes; then
9595 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'
9597 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'
9598 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9600 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9601 hardcode_libdir_separator=:
9602 link_all_deplibs=yes
9606 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9609 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9611 hardcode_libdir_flag_spec='-R$libdir'
9613 hardcode_shlibpath_var=no
9617 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9620 hardcode_libdir_separator=:
9621 hardcode_shlibpath_var=no
9626 hardcode_shlibpath_var=no
9627 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9628 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9629 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9630 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9631 export_dynamic_flag_spec='${wl}-E'
9634 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9635 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9636 hardcode_libdir_flag_spec='-R$libdir'
9639 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9640 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9647 hardcode_libdir_flag_spec='-L$libdir'
9648 hardcode_minus_L=yes
9649 allow_undefined_flag=unsupported
9650 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'
9651 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
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}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9659 allow_undefined_flag=' -expect_unresolved \*'
9660 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'
9662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9663 hardcode_libdir_separator=:
9666 osf4* | osf5*) # as osf3* with the addition of -msym flag
9667 if test "$GCC" = yes; then
9668 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9669 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'
9670 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9672 allow_undefined_flag=' -expect_unresolved \*'
9673 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'
9674 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9675 $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'
9677 # Both c and cxx compiler support -rpath directly
9678 hardcode_libdir_flag_spec='-rpath $libdir'
9680 hardcode_libdir_separator=:
9684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685 hardcode_shlibpath_var=no
9686 export_dynamic_flag_spec='${wl}-Bexport'
9687 runpath_var=LD_RUN_PATH
9688 hardcode_runpath_var=yes
9692 no_undefined_flag=' -z text'
9693 if test "$GCC" = yes; then
9695 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9697 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9700 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9701 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9702 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9704 hardcode_libdir_flag_spec='-R$libdir'
9705 hardcode_shlibpath_var=no
9707 solaris2.[0-5] | solaris2.[0-5].*) ;;
9709 # The compiler driver will combine linker options so we
9710 # cannot just pass the convience library names through
9711 # without $wl, iff we do not link with $LD.
9712 # Luckily, gcc supports the same syntax we need for Sun Studio.
9713 # Supported since Solaris 2.6 (maybe 2.5.1?)
9716 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9718 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' ;;
9721 link_all_deplibs=yes
9725 if test "x$host_vendor" = xsequent; then
9726 # Use $CC to link under sequent, because it throws in some extra .o
9727 # files that make .init and .fini sections work.
9728 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9730 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_libdir_flag_spec='-L$libdir'
9734 hardcode_minus_L=yes
9735 hardcode_shlibpath_var=no
9739 case $host_vendor in
9741 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9742 hardcode_direct=yes # is this really true???
9745 ## LD is ld it makes a PLAMLIB
9746 ## CC just makes a GrossModule.
9747 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9748 reload_cmds='$CC -r -o $output$reload_objs'
9752 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9756 runpath_var='LD_RUN_PATH'
9757 hardcode_shlibpath_var=no
9761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_shlibpath_var=no
9763 export_dynamic_flag_spec='-Bexport'
9767 if test -d /usr/nec; then
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9769 hardcode_shlibpath_var=no
9770 runpath_var=LD_RUN_PATH
9771 hardcode_runpath_var=yes
9777 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9780 hardcode_shlibpath_var=no
9781 hardcode_runpath_var=yes
9782 runpath_var=LD_RUN_PATH
9785 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9786 no_undefined_flag='${wl}-z ${wl}text'
9787 if test "$GCC" = yes; then
9788 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9790 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792 runpath_var='LD_RUN_PATH'
9793 hardcode_shlibpath_var=no
9797 no_undefined_flag=' -z text'
9798 # $CC -shared without GNU ld will not create a library from C++
9799 # object files and a static libstdc++, better avoid it by now
9800 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9801 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9802 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9803 hardcode_libdir_flag_spec=
9804 hardcode_shlibpath_var=no
9805 runpath_var='LD_RUN_PATH'
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 hardcode_shlibpath_var=no
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9821 $as_echo "$ld_shlibs" >&6; }
9822 test "$ld_shlibs" = no && can_build_shared=no
9824 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9825 if test "$GCC" = yes; then
9826 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9830 # Do we need to explicitly link libc?
9832 case "x$archive_cmds_need_lc" in
9834 # Assume -lc should be added
9835 archive_cmds_need_lc=yes
9837 if test "$enable_shared" = yes && test "$GCC" = yes; then
9838 case $archive_cmds in
9840 # FIXME: we may have to deal with multi-command sequences.
9843 # Test whether the compiler implicitly links with -lc since on some
9844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9845 # to ld, don't add -lc before -lgcc.
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9849 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9852 (eval $ac_compile) 2>&5
9854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855 test $ac_status = 0; } 2>conftest.err; then
9858 libobjs=conftest.$ac_objext
9860 wl=$lt_prog_compiler_wl
9866 lt_save_allow_undefined_flag=$allow_undefined_flag
9867 allow_undefined_flag=
9868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9869 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9872 test $ac_status = 0; }
9874 archive_cmds_need_lc=no
9876 archive_cmds_need_lc=yes
9878 allow_undefined_flag=$lt_save_allow_undefined_flag
9880 cat conftest.err 1>&5
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9884 $as_echo "$archive_cmds_need_lc" >&6; }
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9892 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9894 libname_spec='lib$name'
9902 shlibpath_overrides_runpath=unknown
9904 dynamic_linker="$host_os ld.so"
9905 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9906 if test "$GCC" = yes; then
9907 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9908 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9909 # if the path contains ";" then we assume it to be the separator
9910 # otherwise default to the standard path separator (i.e. ":") - it is
9911 # assumed that no part of a normal pathname contains ";" but that should
9912 # okay in the real world where ";" in dirpaths is itself problematic.
9913 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9915 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9918 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9920 need_lib_prefix=unknown
9921 hardcode_into_libs=no
9923 # when you set need_version to no, make sure it does not cause -set_version
9924 # flags to be left without arguments
9925 need_version=unknown
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9931 shlibpath_var=LIBPATH
9933 # AIX 3 has no versioning support, so we append a major version to the name.
9934 soname_spec='${libname}${release}${shared_ext}$major'
9941 hardcode_into_libs=yes
9942 if test "$host_cpu" = ia64; then
9943 # AIX 5 supports IA64
9944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9945 shlibpath_var=LD_LIBRARY_PATH
9947 # With GCC up to 2.95.x, collect2 would create an import file
9948 # for dependence libraries. The import file would start with
9949 # the line `#! .'. This would cause the generated library to
9950 # depend on `.', always an invalid library. This was fixed in
9951 # development snapshots of GCC prior to 3.0.
9953 aix4 | aix4.[01] | aix4.[01].*)
9954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9956 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9964 # soname into executable. Probably we can add versioning support to
9965 # collect2, so additional links can be useful in future.
9966 if test "$aix_use_runtimelinking" = yes; then
9967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9968 # instead of lib<name>.a to let people know that these are not
9969 # typical AIX shared libraries.
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 # We preserve .a as extension for shared libraries through AIX4.2
9973 # and later when we are not doing run time linking.
9974 library_names_spec='${libname}${release}.a $libname.a'
9975 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LIBPATH
9982 library_names_spec='$libname.ixlibrary $libname.a'
9983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9984 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'
9988 library_names_spec='${libname}${shared_ext}'
9989 dynamic_linker="$host_os ld.so"
9990 shlibpath_var=LIBRARY_PATH
9996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997 soname_spec='${libname}${release}${shared_ext}$major'
9998 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9999 shlibpath_var=LD_LIBRARY_PATH
10000 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10001 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10002 # the default ld.so.conf also contains /usr/contrib/lib and
10003 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10004 # libtool to hard-code these into programs
10007 cygwin* | mingw* | pw32*)
10008 version_type=windows
10013 case $GCC,$host_os in
10014 yes,cygwin* | yes,mingw* | yes,pw32*)
10015 library_names_spec='$libname.dll.a'
10016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10017 postinstall_cmds='base_file=`basename \${file}`~
10018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10019 dldir=$destdir/`dirname \$dlpath`~
10020 test -d \$dldir || mkdir -p \$dldir~
10021 $install_prog $dir/$dlname \$dldir/$dlname~
10022 chmod a+x \$dldir/$dlname'
10023 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10024 dlpath=$dir/\$dldll~
10026 shlibpath_overrides_runpath=yes
10030 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10031 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10032 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10035 # MinGW DLLs use traditional 'lib' prefix
10036 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10038 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10039 # It is most probably a Windows format PATH printed by
10040 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10041 # path with ; separators, and with drive letters. We can handle the
10042 # drive letters (cygwin fileutils understands them), so leave them,
10043 # especially as we might pass files found there to a mingw objdump,
10044 # which wouldn't understand a cygwinified path. Ahh.
10045 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10047 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10051 # pw32 DLLs use 'pw' prefix rather than 'lib'
10052 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10058 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10061 dynamic_linker='Win32 ld.exe'
10062 # FIXME: first we should search . and the directory the executable is in
10066 darwin* | rhapsody*)
10067 dynamic_linker="$host_os dyld"
10068 version_type=darwin
10071 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10072 soname_spec='${libname}${release}${major}$shared_ext'
10073 shlibpath_overrides_runpath=yes
10074 shlibpath_var=DYLD_LIBRARY_PATH
10075 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10076 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10077 if test "$GCC" = yes; then
10078 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"`
10080 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10082 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 shlibpath_var=LD_LIBRARY_PATH
10102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10103 soname_spec='${libname}${release}${shared_ext}$major'
10104 shlibpath_var=LD_LIBRARY_PATH
10105 shlibpath_overrides_runpath=no
10106 hardcode_into_libs=yes
10107 dynamic_linker='GNU ld.so'
10110 freebsd* | dragonfly*)
10111 # DragonFly does not have aout. When/if they implement a new
10112 # versioning mechanism, adjust this.
10113 if test -x /usr/bin/objformat; then
10114 objformat=`/usr/bin/objformat`
10117 freebsd[123]*) objformat=aout ;;
10118 *) objformat=elf ;;
10121 version_type=freebsd-$objformat
10122 case $version_type in
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10133 shlibpath_var=LD_LIBRARY_PATH
10136 shlibpath_overrides_runpath=yes
10138 freebsd3.[01]* | freebsdelf3.[01]*)
10139 shlibpath_overrides_runpath=yes
10140 hardcode_into_libs=yes
10143 shlibpath_overrides_runpath=no
10144 hardcode_into_libs=yes
10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10154 soname_spec='${libname}${release}${shared_ext}$major'
10155 shlibpath_var=LD_LIBRARY_PATH
10156 hardcode_into_libs=yes
10159 hpux9* | hpux10* | hpux11*)
10160 # Give a soname corresponding to the major version so that dld.sl refuses to
10161 # link against other versions.
10168 hardcode_into_libs=yes
10169 dynamic_linker="$host_os dld.so"
10170 shlibpath_var=LD_LIBRARY_PATH
10171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10173 soname_spec='${libname}${release}${shared_ext}$major'
10174 if test "X$HPUX_IA64_MODE" = X32; then
10175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10183 hardcode_into_libs=yes
10184 dynamic_linker="$host_os dld.sl"
10185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10194 dynamic_linker="$host_os dld.sl"
10195 shlibpath_var=SHLIB_PATH
10196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10202 postinstall_cmds='chmod 555 $lib'
10205 irix5* | irix6* | nonstopux*)
10207 nonstopux*) version_type=nonstopux ;;
10209 if test "$lt_cv_prog_gnu_ld" = yes; then
10217 soname_spec='${libname}${release}${shared_ext}$major'
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10220 irix5* | nonstopux*)
10221 libsuff= shlibsuff=
10224 case $LD in # libtool.m4 will add one of these switches to LD
10225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10226 libsuff= shlibsuff= libmagic=32-bit;;
10227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10228 libsuff=32 shlibsuff=N32 libmagic=N32;;
10229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10231 *) libsuff= shlibsuff= libmagic=never-match;;
10235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10236 shlibpath_overrides_runpath=no
10237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10239 hardcode_into_libs=yes
10242 # No shared lib support for Linux oldld, aout, or coff.
10243 linux*oldld* | linux*aout* | linux*coff*)
10247 # This must be Linux ELF.
10252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10253 soname_spec='${libname}${release}${shared_ext}$major'
10254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=no
10257 # This implies no fast_install, which is unacceptable.
10258 # Some rework will be needed to allow for fast_install
10259 # before this can be enabled.
10260 hardcode_into_libs=yes
10262 # Append ld.so.conf contents to the search path
10263 if test -f /etc/ld.so.conf; then
10264 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' ' '`
10265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10268 # We used to test for /lib/ld.so.1 and disable shared libraries on
10269 # powerpc, because MkLinux only supported shared libraries with the
10270 # GNU dynamic linker. Since this was broken with cross compilers,
10271 # most powerpc-linux boxes support dynamic linking these days and
10272 # people can always --disable-shared, the test was removed, and we
10273 # assume the GNU/Linux dynamic linker is in use.
10274 dynamic_linker='GNU/Linux ld.so'
10281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10282 soname_spec='${libname}${release}${shared_ext}$major'
10283 shlibpath_var=LD_LIBRARY_PATH
10284 shlibpath_overrides_runpath=no
10285 hardcode_into_libs=yes
10286 dynamic_linker='GNU ld.so'
10293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10296 dynamic_linker='NetBSD (a.out) ld.so'
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 dynamic_linker='NetBSD ld.elf_so'
10302 shlibpath_var=LD_LIBRARY_PATH
10303 shlibpath_overrides_runpath=yes
10304 hardcode_into_libs=yes
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 shlibpath_var=LD_LIBRARY_PATH
10311 shlibpath_overrides_runpath=yes
10318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10319 soname_spec='${libname}${release}${shared_ext}$major'
10320 shlibpath_var=LD_LIBRARY_PATH
10321 shlibpath_overrides_runpath=yes
10327 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10329 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10330 *) need_version=no ;;
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10333 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10337 openbsd2.[89] | openbsd2.[89].*)
10338 shlibpath_overrides_runpath=no
10341 shlibpath_overrides_runpath=yes
10345 shlibpath_overrides_runpath=yes
10350 libname_spec='$name'
10353 library_names_spec='$libname${shared_ext} $libname.a'
10354 dynamic_linker='OS/2 ld.exe'
10355 shlibpath_var=LIBPATH
10358 osf3* | osf4* | osf5*)
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 shlibpath_var=LD_LIBRARY_PATH
10365 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10366 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10373 shlibpath_var=LD_LIBRARY_PATH
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 shlibpath_overrides_runpath=yes
10384 hardcode_into_libs=yes
10385 # ldd complains unless libraries are executable
10386 postinstall_cmds='chmod +x $lib'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10392 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10393 shlibpath_var=LD_LIBRARY_PATH
10394 shlibpath_overrides_runpath=yes
10395 if test "$with_gnu_ld" = yes; then
10401 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10404 soname_spec='${libname}${release}${shared_ext}$major'
10405 shlibpath_var=LD_LIBRARY_PATH
10406 case $host_vendor in
10408 shlibpath_overrides_runpath=no
10410 export_dynamic_flag_spec='${wl}-Blargedynsym'
10411 runpath_var=LD_RUN_PATH
10419 shlibpath_overrides_runpath=no
10420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10426 if test -d /usr/nec ;then
10428 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10429 soname_spec='$libname${shared_ext}.$major'
10430 shlibpath_var=LD_LIBRARY_PATH
10436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 shlibpath_var=LD_LIBRARY_PATH
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10446 $as_echo "$dynamic_linker" >&6; }
10447 test "$dynamic_linker" = no && can_build_shared=no
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10450 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10452 if test -n "$hardcode_libdir_flag_spec" || \
10453 test -n "$runpath_var" || \
10454 test "X$hardcode_automatic" = "Xyes" ; then
10456 # We can hardcode non-existant directories.
10457 if test "$hardcode_direct" != no &&
10458 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10459 # have to relink, otherwise we might link with an installed library
10460 # when we should be linking with a yet-to-be-installed one
10461 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10462 test "$hardcode_minus_L" != no; then
10463 # Linking always hardcodes the temporary library directory.
10464 hardcode_action=relink
10466 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10467 hardcode_action=immediate
10470 # We cannot hardcode anything, or else we can only hardcode existing
10472 hardcode_action=unsupported
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10475 $as_echo "$hardcode_action" >&6; }
10477 if test "$hardcode_action" = relink; then
10478 # Fast installation is not supported
10479 enable_fast_install=no
10480 elif test "$shlibpath_overrides_runpath" = yes ||
10481 test "$enable_shared" = no; then
10482 # Fast installation is not necessary
10483 enable_fast_install=needless
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10489 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10490 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10492 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10494 $as_echo "yes" >&6; }
10496 # FIXME - insert some real tests, host_os isn't really good enough
10499 if test -n "$STRIP" ; then
10500 striplib="$STRIP -x"
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10502 $as_echo "yes" >&6; }
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 $as_echo "no" >&6; }
10515 if test "x$enable_dlopen" != xyes; then
10516 enable_dlopen=unknown
10517 enable_dlopen_self=unknown
10518 enable_dlopen_self_static=unknown
10525 lt_cv_dlopen="load_add_on"
10527 lt_cv_dlopen_self=yes
10531 lt_cv_dlopen="LoadLibrary"
10536 lt_cv_dlopen="dlopen"
10541 # if libdl is installed we need to link against it
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10543 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10544 if ${ac_cv_lib_dl_dlopen+:} false; then :
10545 $as_echo_n "(cached) " >&6
10547 ac_check_lib_save_LIBS=$LIBS
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10552 /* Override any GCC internal prototype to avoid an error.
10553 Use char because int might match the return type of a GCC
10554 builtin and then its argument prototype would still apply. */
10567 if ac_fn_c_try_link "$LINENO"; then :
10568 ac_cv_lib_dl_dlopen=yes
10570 ac_cv_lib_dl_dlopen=no
10572 rm -f core conftest.err conftest.$ac_objext \
10573 conftest$ac_exeext conftest.$ac_ext
10574 LIBS=$ac_check_lib_save_LIBS
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10578 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10582 lt_cv_dlopen="dyld"
10584 lt_cv_dlopen_self=yes
10591 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10592 if test "x$ac_cv_func_shl_load" = xyes; then :
10593 lt_cv_dlopen="shl_load"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10596 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10597 if ${ac_cv_lib_dld_shl_load+:} false; then :
10598 $as_echo_n "(cached) " >&6
10600 ac_check_lib_save_LIBS=$LIBS
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603 /* end confdefs.h. */
10605 /* Override any GCC internal prototype to avoid an error.
10606 Use char because int might match the return type of a GCC
10607 builtin and then its argument prototype would still apply. */
10615 return shl_load ();
10620 if ac_fn_c_try_link "$LINENO"; then :
10621 ac_cv_lib_dld_shl_load=yes
10623 ac_cv_lib_dld_shl_load=no
10625 rm -f core conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10630 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10631 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10632 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10634 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10635 if test "x$ac_cv_func_dlopen" = xyes; then :
10636 lt_cv_dlopen="dlopen"
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10639 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10640 if ${ac_cv_lib_dl_dlopen+:} false; then :
10641 $as_echo_n "(cached) " >&6
10643 ac_check_lib_save_LIBS=$LIBS
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 /* Override any GCC internal prototype to avoid an error.
10649 Use char because int might match the return type of a GCC
10650 builtin and then its argument prototype would still apply. */
10663 if ac_fn_c_try_link "$LINENO"; then :
10664 ac_cv_lib_dl_dlopen=yes
10666 ac_cv_lib_dl_dlopen=no
10668 rm -f core conftest.err conftest.$ac_objext \
10669 conftest$ac_exeext conftest.$ac_ext
10670 LIBS=$ac_check_lib_save_LIBS
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10673 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10674 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10675 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10678 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10679 if ${ac_cv_lib_svld_dlopen+:} false; then :
10680 $as_echo_n "(cached) " >&6
10682 ac_check_lib_save_LIBS=$LIBS
10683 LIBS="-lsvld $LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 ac_cv_lib_svld_dlopen=yes
10705 ac_cv_lib_svld_dlopen=no
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10712 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10713 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10714 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10717 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10718 if ${ac_cv_lib_dld_dld_link+:} false; then :
10719 $as_echo_n "(cached) " >&6
10721 ac_check_lib_save_LIBS=$LIBS
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10726 /* Override any GCC internal prototype to avoid an error.
10727 Use char because int might match the return type of a GCC
10728 builtin and then its argument prototype would still apply. */
10736 return dld_link ();
10741 if ac_fn_c_try_link "$LINENO"; then :
10742 ac_cv_lib_dld_dld_link=yes
10744 ac_cv_lib_dld_dld_link=no
10746 rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10751 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10752 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10753 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10774 if test "x$lt_cv_dlopen" != xno; then
10780 case $lt_cv_dlopen in
10782 save_CPPFLAGS="$CPPFLAGS"
10783 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10785 save_LDFLAGS="$LDFLAGS"
10786 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10789 LIBS="$lt_cv_dlopen_libs $LIBS"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10792 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10793 if ${lt_cv_dlopen_self+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 if test "$cross_compiling" = yes; then :
10797 lt_cv_dlopen_self=cross
10799 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10800 lt_status=$lt_dlunknown
10801 cat > conftest.$ac_ext <<EOF
10802 #line 10802 "configure"
10803 #include "confdefs.h"
10812 # define LT_DLGLOBAL RTLD_GLOBAL
10815 # define LT_DLGLOBAL DL_GLOBAL
10817 # define LT_DLGLOBAL 0
10821 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10822 find out it does not work in some platform. */
10823 #ifndef LT_DLLAZY_OR_NOW
10825 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10828 # define LT_DLLAZY_OR_NOW DL_LAZY
10831 # define LT_DLLAZY_OR_NOW RTLD_NOW
10834 # define LT_DLLAZY_OR_NOW DL_NOW
10836 # define LT_DLLAZY_OR_NOW 0
10844 extern "C" void exit (int);
10847 void fnord() { int i=42;}
10850 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10851 int status = $lt_dlunknown;
10855 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10856 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10857 /* dlclose (self); */
10863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10864 (eval $ac_link) 2>&5
10866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10868 (./conftest; exit; ) >&5 2>/dev/null
10870 case x$lt_status in
10871 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10872 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10873 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10876 # compilation failed
10877 lt_cv_dlopen_self=no
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10885 $as_echo "$lt_cv_dlopen_self" >&6; }
10887 if test "x$lt_cv_dlopen_self" = xyes; then
10888 LDFLAGS="$LDFLAGS $link_static_flag"
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10890 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10891 if ${lt_cv_dlopen_self_static+:} false; then :
10892 $as_echo_n "(cached) " >&6
10894 if test "$cross_compiling" = yes; then :
10895 lt_cv_dlopen_self_static=cross
10897 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10898 lt_status=$lt_dlunknown
10899 cat > conftest.$ac_ext <<EOF
10900 #line 10900 "configure"
10901 #include "confdefs.h"
10910 # define LT_DLGLOBAL RTLD_GLOBAL
10913 # define LT_DLGLOBAL DL_GLOBAL
10915 # define LT_DLGLOBAL 0
10919 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10920 find out it does not work in some platform. */
10921 #ifndef LT_DLLAZY_OR_NOW
10923 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10926 # define LT_DLLAZY_OR_NOW DL_LAZY
10929 # define LT_DLLAZY_OR_NOW RTLD_NOW
10932 # define LT_DLLAZY_OR_NOW DL_NOW
10934 # define LT_DLLAZY_OR_NOW 0
10942 extern "C" void exit (int);
10945 void fnord() { int i=42;}
10948 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10949 int status = $lt_dlunknown;
10953 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10954 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10955 /* dlclose (self); */
10961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10962 (eval $ac_link) 2>&5
10964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10965 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10966 (./conftest; exit; ) >&5 2>/dev/null
10968 case x$lt_status in
10969 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10970 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10971 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10974 # compilation failed
10975 lt_cv_dlopen_self_static=no
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10983 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10986 CPPFLAGS="$save_CPPFLAGS"
10987 LDFLAGS="$save_LDFLAGS"
10992 case $lt_cv_dlopen_self in
10993 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10994 *) enable_dlopen_self=unknown ;;
10997 case $lt_cv_dlopen_self_static in
10998 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10999 *) enable_dlopen_self_static=unknown ;;
11004 # Report which librarie types wil actually be built
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11006 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11008 $as_echo "$can_build_shared" >&6; }
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11011 $as_echo_n "checking whether to build shared libraries... " >&6; }
11012 test "$can_build_shared" = "no" && enable_shared=no
11014 # On AIX, shared libraries and static libraries use the same namespace, and
11015 # are all built from PIC.
11018 test "$enable_shared" = yes && enable_static=no
11019 if test -n "$RANLIB"; then
11020 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11021 postinstall_cmds='$RANLIB $lib'
11026 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11027 test "$enable_shared" = yes && enable_static=no
11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11032 $as_echo "$enable_shared" >&6; }
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11035 $as_echo_n "checking whether to build static libraries... " >&6; }
11036 # Make sure either enable_shared or enable_static is yes.
11037 test "$enable_shared" = yes || enable_static=yes
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11039 $as_echo "$enable_static" >&6; }
11041 # The else clause should only fire when bootstrapping the
11042 # libtool distribution, otherwise you forgot to ship ltmain.sh
11043 # with your package, and you will get complaints that there are
11044 # no rules to generate ltmain.sh.
11045 if test -f "$ltmain"; then
11046 # See if we are running on zsh, and set the options which allow our commands through
11047 # without removal of \ escapes.
11048 if test -n "${ZSH_VERSION+set}" ; then
11049 setopt NO_GLOB_SUBST
11051 # Now quote all the things that may contain metacharacters while being
11052 # careful not to overquote the AC_SUBSTed values. We take copies of the
11053 # variables and quote the copies for generation of the libtool script.
11054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11058 deplibs_check_method reload_flag reload_cmds need_locks \
11059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11060 lt_cv_sys_global_symbol_to_c_name_address \
11061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11062 old_postinstall_cmds old_postuninstall_cmds \
11066 lt_prog_compiler_wl \
11067 lt_prog_compiler_pic \
11068 lt_prog_compiler_static \
11069 lt_prog_compiler_no_builtin_flag \
11070 export_dynamic_flag_spec \
11071 thread_safe_flag_spec \
11072 whole_archive_flag_spec \
11073 enable_shared_with_static_runtimes \
11075 old_archive_from_new_cmds \
11080 compiler_lib_search_path \
11082 archive_expsym_cmds \
11084 postuninstall_cmds \
11085 old_archive_from_expsyms_cmds \
11086 allow_undefined_flag \
11087 no_undefined_flag \
11088 export_symbols_cmds \
11089 hardcode_libdir_flag_spec \
11090 hardcode_libdir_flag_spec_ld \
11091 hardcode_libdir_separator \
11092 hardcode_automatic \
11094 module_expsym_cmds \
11095 lt_cv_prog_compiler_c_o \
11097 include_expsyms; do
11100 old_archive_cmds | \
11101 old_archive_from_new_cmds | \
11103 archive_expsym_cmds | \
11105 module_expsym_cmds | \
11106 old_archive_from_expsyms_cmds | \
11107 export_symbols_cmds | \
11108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11109 postinstall_cmds | postuninstall_cmds | \
11110 old_postinstall_cmds | old_postuninstall_cmds | \
11111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11112 # Double-quote double-evaled strings.
11113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11122 *'\$0 --fallback-echo"')
11123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11127 cfgfile="${ofile}T"
11128 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
11131 $as_echo "$as_me: creating $ofile" >&6;}
11133 cat <<__EOF__ >> "$cfgfile"
11136 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11137 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11138 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11140 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11141 # Free Software Foundation, Inc.
11143 # This file is part of GNU Libtool:
11144 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11146 # This program is free software; you can redistribute it and/or modify
11147 # it under the terms of the GNU General Public License as published by
11148 # the Free Software Foundation; either version 2 of the License, or
11149 # (at your option) any later version.
11151 # This program is distributed in the hope that it will be useful, but
11152 # WITHOUT ANY WARRANTY; without even the implied warranty of
11153 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11154 # General Public License for more details.
11156 # You should have received a copy of the GNU General Public License
11157 # along with this program; if not, write to the Free Software
11158 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11160 # As a special exception to the GNU General Public License, if you
11161 # distribute this file as part of a program that contains a
11162 # configuration script generated by Autoconf, you may include it under
11163 # the same distribution terms that you use for the rest of that program.
11165 # A sed program that does not truncate output.
11168 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11169 Xsed="$SED -e 1s/^X//"
11171 # The HP-UX ksh and POSIX shell print the target directory to stdout
11172 # if CDPATH is set.
11173 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11175 # The names of the tagged configurations supported by this script.
11178 # ### BEGIN LIBTOOL CONFIG
11180 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11182 # Shell to use when invoking shell scripts.
11185 # Whether or not to build shared libraries.
11186 build_libtool_libs=$enable_shared
11188 # Whether or not to build static libraries.
11189 build_old_libs=$enable_static
11191 # Whether or not to add -lc for building shared libraries.
11192 build_libtool_need_lc=$archive_cmds_need_lc
11194 # Whether or not to disallow shared libs when runtime libs are static
11195 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11197 # Whether or not to optimize for fast installation.
11198 fast_install=$enable_fast_install
11201 host_alias=$host_alias
11205 # The build system.
11206 build_alias=$build_alias
11210 # An echo program that does not interpret backslashes.
11215 AR_FLAGS=$lt_AR_FLAGS
11220 # A language-specific compiler.
11223 # Is the compiler the GNU C compiler?
11229 # The linker used to build libraries.
11232 # Whether we need hard or soft links.
11235 # A BSD-compatible nm program.
11238 # A symbol stripping program
11241 # Used to examine libraries when file_magic_cmd begins "file"
11242 MAGIC_CMD=$MAGIC_CMD
11244 # Used on cygwin: DLL creation program.
11247 # Used on cygwin: object dumper.
11250 # Used on cygwin: assembler.
11253 # The name of the directory that contains temporary libtool files.
11256 # How to create reloadable object files.
11257 reload_flag=$lt_reload_flag
11258 reload_cmds=$lt_reload_cmds
11260 # How to pass a linker flag through the compiler.
11261 wl=$lt_lt_prog_compiler_wl
11263 # Object file suffix (normally "o").
11264 objext="$ac_objext"
11266 # Old archive suffix (normally "a").
11269 # Shared library suffix (normally ".so").
11270 shrext_cmds='$shrext_cmds'
11272 # Executable file suffix (normally "").
11275 # Additional compiler flags for building library objects.
11276 pic_flag=$lt_lt_prog_compiler_pic
11279 # What is the maximum length of a command?
11280 max_cmd_len=$lt_cv_sys_max_cmd_len
11282 # Does compiler simultaneously support -c and -o options?
11283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11285 # Must we lock files when doing compilation?
11286 need_locks=$lt_need_locks
11288 # Do we need the lib prefix for modules?
11289 need_lib_prefix=$need_lib_prefix
11291 # Do we need a version for libraries?
11292 need_version=$need_version
11294 # Whether dlopen is supported.
11295 dlopen_support=$enable_dlopen
11297 # Whether dlopen of programs is supported.
11298 dlopen_self=$enable_dlopen_self
11300 # Whether dlopen of statically linked programs is supported.
11301 dlopen_self_static=$enable_dlopen_self_static
11303 # Compiler flag to prevent dynamic linking.
11304 link_static_flag=$lt_lt_prog_compiler_static
11306 # Compiler flag to turn off builtin functions.
11307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11309 # Compiler flag to allow reflexive dlopens.
11310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11312 # Compiler flag to generate shared objects directly from archives.
11313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11315 # Compiler flag to generate thread-safe objects.
11316 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11318 # Library versioning type.
11319 version_type=$version_type
11321 # Format of library name prefix.
11322 libname_spec=$lt_libname_spec
11324 # List of archive names. First name is the real one, the rest are links.
11325 # The last name is the one that the linker finds with -lNAME.
11326 library_names_spec=$lt_library_names_spec
11328 # The coded name of the library, if different from the real name.
11329 soname_spec=$lt_soname_spec
11331 # Commands used to build and install an old-style archive.
11333 old_archive_cmds=$lt_old_archive_cmds
11334 old_postinstall_cmds=$lt_old_postinstall_cmds
11335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11337 # Create an old-style archive from a shared archive.
11338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11340 # Create a temporary old-style archive to link instead of a shared archive.
11341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11343 # Commands used to build and install a shared archive.
11344 archive_cmds=$lt_archive_cmds
11345 archive_expsym_cmds=$lt_archive_expsym_cmds
11346 postinstall_cmds=$lt_postinstall_cmds
11347 postuninstall_cmds=$lt_postuninstall_cmds
11349 # Commands used to build a loadable module (assumed same as above if empty)
11350 module_cmds=$lt_module_cmds
11351 module_expsym_cmds=$lt_module_expsym_cmds
11353 # Commands to strip libraries.
11354 old_striplib=$lt_old_striplib
11355 striplib=$lt_striplib
11357 # Dependencies to place before the objects being linked to create a
11359 predep_objects=$lt_predep_objects
11361 # Dependencies to place after the objects being linked to create a
11363 postdep_objects=$lt_postdep_objects
11365 # Dependencies to place before the objects being linked to create a
11367 predeps=$lt_predeps
11369 # Dependencies to place after the objects being linked to create a
11371 postdeps=$lt_postdeps
11373 # The library search path used internally by the compiler when linking
11374 # a shared library.
11375 compiler_lib_search_path=$lt_compiler_lib_search_path
11377 # Method to check whether dependent libraries are shared objects.
11378 deplibs_check_method=$lt_deplibs_check_method
11380 # Command to use when deplibs_check_method == file_magic.
11381 file_magic_cmd=$lt_file_magic_cmd
11383 # Flag that allows shared libraries with undefined symbols to be built.
11384 allow_undefined_flag=$lt_allow_undefined_flag
11386 # Flag that forces no undefined symbols.
11387 no_undefined_flag=$lt_no_undefined_flag
11389 # Commands used to finish a libtool library installation in a directory.
11390 finish_cmds=$lt_finish_cmds
11392 # Same as above, but a single script fragment to be evaled but not shown.
11393 finish_eval=$lt_finish_eval
11395 # Take the output of nm and produce a listing of raw symbols and C names.
11396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11398 # Transform the output of nm in a proper C declaration
11399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11401 # Transform the output of nm in a C name address pair
11402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11404 # This is the shared library runtime path variable.
11405 runpath_var=$runpath_var
11407 # This is the shared library path variable.
11408 shlibpath_var=$shlibpath_var
11410 # Is shlibpath searched before the hard-coded library search path?
11411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11413 # How to hardcode a shared library path into an executable.
11414 hardcode_action=$hardcode_action
11416 # Whether we should hardcode library paths into libraries.
11417 hardcode_into_libs=$hardcode_into_libs
11419 # Flag to hardcode \$libdir into a binary during linking.
11420 # This must work even if \$libdir does not exist.
11421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11423 # If ld is used when linking, flag to hardcode \$libdir into
11424 # a binary during linking. This must work even if \$libdir does
11426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11428 # Whether we need a single -rpath flag with a separated argument.
11429 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11432 # resulting binary.
11433 hardcode_direct=$hardcode_direct
11435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11436 # resulting binary.
11437 hardcode_minus_L=$hardcode_minus_L
11439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11440 # the resulting binary.
11441 hardcode_shlibpath_var=$hardcode_shlibpath_var
11443 # Set to yes if building a shared library automatically hardcodes DIR into the library
11444 # and all subsequent libraries and executables linked against it.
11445 hardcode_automatic=$hardcode_automatic
11447 # Variables whose values should be saved in libtool wrapper scripts and
11448 # restored at relink time.
11449 variables_saved_for_relink="$variables_saved_for_relink"
11451 # Whether libtool must link a program against all its dependency libraries.
11452 link_all_deplibs=$link_all_deplibs
11454 # Compile-time system search path for libraries
11455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11457 # Run-time system search path for libraries
11458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11460 # Fix the shell variable \$srcfile for the compiler.
11461 fix_srcfile_path="$fix_srcfile_path"
11463 # Set to yes if exported symbols are required.
11464 always_export_symbols=$always_export_symbols
11466 # The commands to list exported symbols.
11467 export_symbols_cmds=$lt_export_symbols_cmds
11469 # The commands to extract the exported symbol list from a shared archive.
11470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11472 # Symbols that should not be listed in the preloaded symbols.
11473 exclude_expsyms=$lt_exclude_expsyms
11475 # Symbols that must always be exported.
11476 include_expsyms=$lt_include_expsyms
11478 # ### END LIBTOOL CONFIG
11485 cat <<\EOF >> "$cfgfile"
11487 # AIX sometimes has problems with the GCC collect2 program. For some
11488 # reason, if we set the COLLECT_NAMES environment variable, the problems
11489 # vanish in a puff of smoke.
11490 if test "X${COLLECT_NAMES+set}" != Xset; then
11492 export COLLECT_NAMES
11498 # We use sed instead of cat because bash on DJGPP gets confused if
11499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11500 # text mode, it properly converts lines to CR/LF. This bash problem
11501 # is reportedly fixed, but why not run on old versions too?
11502 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11504 mv -f "$cfgfile" "$ofile" || \
11505 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11509 # If there is no Makefile yet, we rely on a make rule to execute
11510 # `config.status --recheck' to rerun these tests and create the
11511 # libtool script then.
11512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11513 if test -f "$ltmain_in"; then
11514 test -f Makefile && make "$ltmain"
11520 ac_cpp='$CPP $CPPFLAGS'
11521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11528 # Check whether --with-tags was given.
11529 if test "${with_tags+set}" = set; then :
11530 withval=$with_tags; tagnames="$withval"
11534 if test -f "$ltmain" && test -n "$tagnames"; then
11535 if test ! -f "${ofile}"; then
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
11537 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11540 if test -z "$LTCC"; then
11541 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11542 if test -z "$LTCC"; then
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11544 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11547 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11551 # Extract list of available tagged configurations in $ofile.
11552 # Note that this assumes the entire list is on one line.
11553 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11556 for tagname in $tagnames; do
11558 # Check whether tagname contains only valid characters
11559 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11561 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
11565 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11567 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
11570 # Update the list of available tags.
11571 if test -n "$tagname"; then
11572 echo appending configuration tag \"$tagname\" to $ofile
11576 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11577 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11578 (test "X$CXX" != "Xg++"))) ; then
11586 if test -n "$F77" && test "X$F77" != "Xno"; then
11594 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11604 # Source file extension for RC test sources.
11607 # Object file extension for compiled RC test sources.
11611 # Code to be used in simple compile tests
11612 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11614 # Code to be used in simple link tests
11615 lt_simple_link_test_code="$lt_simple_compile_test_code"
11617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11619 # If no C compiler was specified, use CC.
11622 # Allow CC to be a program name with arguments.
11626 # save warnings/boilerplate of simple test code
11627 ac_outfile=conftest.$ac_objext
11628 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11629 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11630 _lt_compiler_boilerplate=`cat conftest.err`
11633 ac_outfile=conftest.$ac_objext
11634 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11635 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11636 _lt_linker_boilerplate=`cat conftest.err`
11640 # Allow CC to be a program name with arguments.
11645 for cc_temp in $compiler""; do
11647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11653 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11655 lt_cv_prog_compiler_c_o_RC=yes
11657 # The else clause should only fire when bootstrapping the
11658 # libtool distribution, otherwise you forgot to ship ltmain.sh
11659 # with your package, and you will get complaints that there are
11660 # no rules to generate ltmain.sh.
11661 if test -f "$ltmain"; then
11662 # See if we are running on zsh, and set the options which allow our commands through
11663 # without removal of \ escapes.
11664 if test -n "${ZSH_VERSION+set}" ; then
11665 setopt NO_GLOB_SUBST
11667 # Now quote all the things that may contain metacharacters while being
11668 # careful not to overquote the AC_SUBSTed values. We take copies of the
11669 # variables and quote the copies for generation of the libtool script.
11670 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11672 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11673 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11674 deplibs_check_method reload_flag reload_cmds need_locks \
11675 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11676 lt_cv_sys_global_symbol_to_c_name_address \
11677 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11678 old_postinstall_cmds old_postuninstall_cmds \
11682 lt_prog_compiler_wl_RC \
11683 lt_prog_compiler_pic_RC \
11684 lt_prog_compiler_static_RC \
11685 lt_prog_compiler_no_builtin_flag_RC \
11686 export_dynamic_flag_spec_RC \
11687 thread_safe_flag_spec_RC \
11688 whole_archive_flag_spec_RC \
11689 enable_shared_with_static_runtimes_RC \
11690 old_archive_cmds_RC \
11691 old_archive_from_new_cmds_RC \
11692 predep_objects_RC \
11693 postdep_objects_RC \
11696 compiler_lib_search_path_RC \
11698 archive_expsym_cmds_RC \
11699 postinstall_cmds_RC \
11700 postuninstall_cmds_RC \
11701 old_archive_from_expsyms_cmds_RC \
11702 allow_undefined_flag_RC \
11703 no_undefined_flag_RC \
11704 export_symbols_cmds_RC \
11705 hardcode_libdir_flag_spec_RC \
11706 hardcode_libdir_flag_spec_ld_RC \
11707 hardcode_libdir_separator_RC \
11708 hardcode_automatic_RC \
11710 module_expsym_cmds_RC \
11711 lt_cv_prog_compiler_c_o_RC \
11712 exclude_expsyms_RC \
11713 include_expsyms_RC; do
11716 old_archive_cmds_RC | \
11717 old_archive_from_new_cmds_RC | \
11718 archive_cmds_RC | \
11719 archive_expsym_cmds_RC | \
11721 module_expsym_cmds_RC | \
11722 old_archive_from_expsyms_cmds_RC | \
11723 export_symbols_cmds_RC | \
11724 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11725 postinstall_cmds | postuninstall_cmds | \
11726 old_postinstall_cmds | old_postuninstall_cmds | \
11727 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11728 # Double-quote double-evaled strings.
11729 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11732 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11738 *'\$0 --fallback-echo"')
11739 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11745 cat <<__EOF__ >> "$cfgfile"
11746 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
11748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11750 # Shell to use when invoking shell scripts.
11753 # Whether or not to build shared libraries.
11754 build_libtool_libs=$enable_shared
11756 # Whether or not to build static libraries.
11757 build_old_libs=$enable_static
11759 # Whether or not to add -lc for building shared libraries.
11760 build_libtool_need_lc=$archive_cmds_need_lc_RC
11762 # Whether or not to disallow shared libs when runtime libs are static
11763 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
11765 # Whether or not to optimize for fast installation.
11766 fast_install=$enable_fast_install
11769 host_alias=$host_alias
11773 # The build system.
11774 build_alias=$build_alias
11778 # An echo program that does not interpret backslashes.
11783 AR_FLAGS=$lt_AR_FLAGS
11788 # A language-specific compiler.
11791 # Is the compiler the GNU C compiler?
11797 # The linker used to build libraries.
11800 # Whether we need hard or soft links.
11803 # A BSD-compatible nm program.
11806 # A symbol stripping program
11809 # Used to examine libraries when file_magic_cmd begins "file"
11810 MAGIC_CMD=$MAGIC_CMD
11812 # Used on cygwin: DLL creation program.
11815 # Used on cygwin: object dumper.
11818 # Used on cygwin: assembler.
11821 # The name of the directory that contains temporary libtool files.
11824 # How to create reloadable object files.
11825 reload_flag=$lt_reload_flag
11826 reload_cmds=$lt_reload_cmds
11828 # How to pass a linker flag through the compiler.
11829 wl=$lt_lt_prog_compiler_wl_RC
11831 # Object file suffix (normally "o").
11832 objext="$ac_objext"
11834 # Old archive suffix (normally "a").
11837 # Shared library suffix (normally ".so").
11838 shrext_cmds='$shrext_cmds'
11840 # Executable file suffix (normally "").
11843 # Additional compiler flags for building library objects.
11844 pic_flag=$lt_lt_prog_compiler_pic_RC
11847 # What is the maximum length of a command?
11848 max_cmd_len=$lt_cv_sys_max_cmd_len
11850 # Does compiler simultaneously support -c and -o options?
11851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
11853 # Must we lock files when doing compilation?
11854 need_locks=$lt_need_locks
11856 # Do we need the lib prefix for modules?
11857 need_lib_prefix=$need_lib_prefix
11859 # Do we need a version for libraries?
11860 need_version=$need_version
11862 # Whether dlopen is supported.
11863 dlopen_support=$enable_dlopen
11865 # Whether dlopen of programs is supported.
11866 dlopen_self=$enable_dlopen_self
11868 # Whether dlopen of statically linked programs is supported.
11869 dlopen_self_static=$enable_dlopen_self_static
11871 # Compiler flag to prevent dynamic linking.
11872 link_static_flag=$lt_lt_prog_compiler_static_RC
11874 # Compiler flag to turn off builtin functions.
11875 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
11877 # Compiler flag to allow reflexive dlopens.
11878 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
11880 # Compiler flag to generate shared objects directly from archives.
11881 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
11883 # Compiler flag to generate thread-safe objects.
11884 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
11886 # Library versioning type.
11887 version_type=$version_type
11889 # Format of library name prefix.
11890 libname_spec=$lt_libname_spec
11892 # List of archive names. First name is the real one, the rest are links.
11893 # The last name is the one that the linker finds with -lNAME.
11894 library_names_spec=$lt_library_names_spec
11896 # The coded name of the library, if different from the real name.
11897 soname_spec=$lt_soname_spec
11899 # Commands used to build and install an old-style archive.
11901 old_archive_cmds=$lt_old_archive_cmds_RC
11902 old_postinstall_cmds=$lt_old_postinstall_cmds
11903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11905 # Create an old-style archive from a shared archive.
11906 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
11908 # Create a temporary old-style archive to link instead of a shared archive.
11909 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
11911 # Commands used to build and install a shared archive.
11912 archive_cmds=$lt_archive_cmds_RC
11913 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
11914 postinstall_cmds=$lt_postinstall_cmds
11915 postuninstall_cmds=$lt_postuninstall_cmds
11917 # Commands used to build a loadable module (assumed same as above if empty)
11918 module_cmds=$lt_module_cmds_RC
11919 module_expsym_cmds=$lt_module_expsym_cmds_RC
11921 # Commands to strip libraries.
11922 old_striplib=$lt_old_striplib
11923 striplib=$lt_striplib
11925 # Dependencies to place before the objects being linked to create a
11927 predep_objects=$lt_predep_objects_RC
11929 # Dependencies to place after the objects being linked to create a
11931 postdep_objects=$lt_postdep_objects_RC
11933 # Dependencies to place before the objects being linked to create a
11935 predeps=$lt_predeps_RC
11937 # Dependencies to place after the objects being linked to create a
11939 postdeps=$lt_postdeps_RC
11941 # The library search path used internally by the compiler when linking
11942 # a shared library.
11943 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
11945 # Method to check whether dependent libraries are shared objects.
11946 deplibs_check_method=$lt_deplibs_check_method
11948 # Command to use when deplibs_check_method == file_magic.
11949 file_magic_cmd=$lt_file_magic_cmd
11951 # Flag that allows shared libraries with undefined symbols to be built.
11952 allow_undefined_flag=$lt_allow_undefined_flag_RC
11954 # Flag that forces no undefined symbols.
11955 no_undefined_flag=$lt_no_undefined_flag_RC
11957 # Commands used to finish a libtool library installation in a directory.
11958 finish_cmds=$lt_finish_cmds
11960 # Same as above, but a single script fragment to be evaled but not shown.
11961 finish_eval=$lt_finish_eval
11963 # Take the output of nm and produce a listing of raw symbols and C names.
11964 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11966 # Transform the output of nm in a proper C declaration
11967 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11969 # Transform the output of nm in a C name address pair
11970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11972 # This is the shared library runtime path variable.
11973 runpath_var=$runpath_var
11975 # This is the shared library path variable.
11976 shlibpath_var=$shlibpath_var
11978 # Is shlibpath searched before the hard-coded library search path?
11979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11981 # How to hardcode a shared library path into an executable.
11982 hardcode_action=$hardcode_action_RC
11984 # Whether we should hardcode library paths into libraries.
11985 hardcode_into_libs=$hardcode_into_libs
11987 # Flag to hardcode \$libdir into a binary during linking.
11988 # This must work even if \$libdir does not exist.
11989 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
11991 # If ld is used when linking, flag to hardcode \$libdir into
11992 # a binary during linking. This must work even if \$libdir does
11994 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
11996 # Whether we need a single -rpath flag with a separated argument.
11997 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
11999 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12000 # resulting binary.
12001 hardcode_direct=$hardcode_direct_RC
12003 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12004 # resulting binary.
12005 hardcode_minus_L=$hardcode_minus_L_RC
12007 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12008 # the resulting binary.
12009 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12011 # Set to yes if building a shared library automatically hardcodes DIR into the library
12012 # and all subsequent libraries and executables linked against it.
12013 hardcode_automatic=$hardcode_automatic_RC
12015 # Variables whose values should be saved in libtool wrapper scripts and
12016 # restored at relink time.
12017 variables_saved_for_relink="$variables_saved_for_relink"
12019 # Whether libtool must link a program against all its dependency libraries.
12020 link_all_deplibs=$link_all_deplibs_RC
12022 # Compile-time system search path for libraries
12023 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12025 # Run-time system search path for libraries
12026 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12028 # Fix the shell variable \$srcfile for the compiler.
12029 fix_srcfile_path="$fix_srcfile_path_RC"
12031 # Set to yes if exported symbols are required.
12032 always_export_symbols=$always_export_symbols_RC
12034 # The commands to list exported symbols.
12035 export_symbols_cmds=$lt_export_symbols_cmds_RC
12037 # The commands to extract the exported symbol list from a shared archive.
12038 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12040 # Symbols that should not be listed in the preloaded symbols.
12041 exclude_expsyms=$lt_exclude_expsyms_RC
12043 # Symbols that must always be exported.
12044 include_expsyms=$lt_include_expsyms_RC
12046 # ### END LIBTOOL TAG CONFIG: $tagname
12052 # If there is no Makefile yet, we rely on a make rule to execute
12053 # `config.status --recheck' to rerun these tests and create the
12054 # libtool script then.
12055 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12056 if test -f "$ltmain_in"; then
12057 test -f Makefile && make "$ltmain"
12063 ac_cpp='$CPP $CPPFLAGS'
12064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12073 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
12077 # Append the new tag name to the list of available tags.
12078 if test -n "$tagname" ; then
12079 available_tags="$available_tags $tagname"
12085 # Now substitute the updated list of available tags.
12086 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12087 mv "${ofile}T" "$ofile"
12091 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
12097 # This can be used to rebuild libtool when needed
12098 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12100 # Always use our own libtool.
12101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12103 # Prevent multiple expansion
12115 if test $ol_enable_perl != no ; then
12116 # Extract the first word of "perl", so it can be a program name with args.
12117 set dummy perl; ac_word=$2
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12119 $as_echo_n "checking for $ac_word... " >&6; }
12120 if ${ac_cv_path_PERLBIN+:} false; then :
12121 $as_echo_n "(cached) " >&6
12125 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12135 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12147 PERLBIN=$ac_cv_path_PERLBIN
12148 if test -n "$PERLBIN"; then
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERLBIN" >&5
12150 $as_echo "$PERLBIN" >&6; }
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12153 $as_echo "no" >&6; }
12158 if test "no$PERLBIN" = "no" ; then
12159 if test $ol_enable_perl = yes ; then
12160 as_fn_error $? "could not locate perl" "$LINENO" 5
12164 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12165 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12167 if test x"$ol_enable_perl" = "xyes" ; then
12168 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12170 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12177 ac_cpp='$CPP $CPPFLAGS'
12178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12182 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12183 # On Suns, sometimes $CPP names a directory.
12184 if test -n "$CPP" && test -d "$CPP"; then
12187 if test -z "$CPP"; then
12188 if ${ac_cv_prog_CPP+:} false; then :
12189 $as_echo_n "(cached) " >&6
12191 # Double quotes because CPP needs to be expanded
12192 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12194 ac_preproc_ok=false
12195 for ac_c_preproc_warn_flag in '' yes
12197 # Use a header file that comes with gcc, so configuring glibc
12198 # with a fresh cross-compiler works.
12199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12200 # <limits.h> exists even on freestanding compilers.
12201 # On the NeXT, cc -E runs the code through the compiler's parser,
12202 # not just through cpp. "Syntax error" is here to catch this case.
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12206 # include <limits.h>
12208 # include <assert.h>
12212 if ac_fn_c_try_cpp "$LINENO"; then :
12215 # Broken: fails on valid input.
12218 rm -f conftest.err conftest.i conftest.$ac_ext
12220 # OK, works on sane cases. Now check whether nonexistent headers
12221 # can be detected and how.
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 #include <ac_nonexistent.h>
12226 if ac_fn_c_try_cpp "$LINENO"; then :
12227 # Broken: success on invalid input.
12230 # Passes both tests.
12234 rm -f conftest.err conftest.i conftest.$ac_ext
12237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12238 rm -f conftest.i conftest.err conftest.$ac_ext
12239 if $ac_preproc_ok; then :
12244 ac_cv_prog_CPP=$CPP
12247 CPP=$ac_cv_prog_CPP
12249 ac_cv_prog_CPP=$CPP
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12252 $as_echo "$CPP" >&6; }
12253 ac_preproc_ok=false
12254 for ac_c_preproc_warn_flag in '' yes
12256 # Use a header file that comes with gcc, so configuring glibc
12257 # with a fresh cross-compiler works.
12258 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12259 # <limits.h> exists even on freestanding compilers.
12260 # On the NeXT, cc -E runs the code through the compiler's parser,
12261 # not just through cpp. "Syntax error" is here to catch this case.
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263 /* end confdefs.h. */
12265 # include <limits.h>
12267 # include <assert.h>
12271 if ac_fn_c_try_cpp "$LINENO"; then :
12274 # Broken: fails on valid input.
12277 rm -f conftest.err conftest.i conftest.$ac_ext
12279 # OK, works on sane cases. Now check whether nonexistent headers
12280 # can be detected and how.
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h. */
12283 #include <ac_nonexistent.h>
12285 if ac_fn_c_try_cpp "$LINENO"; then :
12286 # Broken: success on invalid input.
12289 # Passes both tests.
12293 rm -f conftest.err conftest.i conftest.$ac_ext
12296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12297 rm -f conftest.i conftest.err conftest.$ac_ext
12298 if $ac_preproc_ok; then :
12301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12303 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12304 See \`config.log' for more details" "$LINENO" 5; }
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using MS Visual C++" >&5
12314 $as_echo_n "checking whether we are using MS Visual C++... " >&6; }
12315 if ${ol_cv_msvc+:} false; then :
12316 $as_echo_n "(cached) " >&6
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12322 #include <__FOO__/generate_error.h>
12326 if ac_fn_c_try_cpp "$LINENO"; then :
12331 rm -f conftest.err conftest.i conftest.$ac_ext
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_msvc" >&5
12334 $as_echo "$ol_cv_msvc" >&6; }
12337 *mingw32* ) ac_cv_mingw32=yes ;;
12338 *cygwin* ) ac_cv_cygwin=yes ;;
12339 *interix* ) ac_cv_interix=yes ;;
12345 cat >>confdefs.h <<_ACEOF
12346 #define EXEEXT "${EXEEXT}"
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for be_app in -lbe" >&5
12351 $as_echo_n "checking for be_app in -lbe... " >&6; }
12352 if ${ac_cv_lib_be_be_app+:} false; then :
12353 $as_echo_n "(cached) " >&6
12355 ac_check_lib_save_LIBS=$LIBS
12356 LIBS="-lbe -lroot -lnet $LIBS"
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12360 /* Override any GCC internal prototype to avoid an error.
12361 Use char because int might match the return type of a GCC
12362 builtin and then its argument prototype would still apply. */
12375 if ac_fn_c_try_link "$LINENO"; then :
12376 ac_cv_lib_be_be_app=yes
12378 ac_cv_lib_be_be_app=no
12380 rm -f core conftest.err conftest.$ac_objext \
12381 conftest$ac_exeext conftest.$ac_ext
12382 LIBS=$ac_check_lib_save_LIBS
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_be_be_app" >&5
12385 $as_echo "$ac_cv_lib_be_be_app" >&6; }
12386 if test "x$ac_cv_lib_be_be_app" = xyes; then :
12387 LIBS="$LIBS -lbe -lroot -lnet"
12394 ac_cpp='$CPP $CPPFLAGS'
12395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12398 if test -n "$ac_tool_prefix"; then
12399 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12400 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402 $as_echo_n "checking for $ac_word... " >&6; }
12403 if ${ac_cv_prog_CC+:} false; then :
12404 $as_echo_n "(cached) " >&6
12406 if test -n "$CC"; then
12407 ac_cv_prog_CC="$CC" # Let the user override the test.
12409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410 for as_dir in $PATH
12413 test -z "$as_dir" && as_dir=.
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12416 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 if test -n "$CC"; then
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12429 $as_echo "$CC" >&6; }
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432 $as_echo "no" >&6; }
12437 if test -z "$ac_cv_prog_CC"; then
12439 # Extract the first word of "gcc", so it can be a program name with args.
12440 set dummy gcc; ac_word=$2
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12442 $as_echo_n "checking for $ac_word... " >&6; }
12443 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12444 $as_echo_n "(cached) " >&6
12446 if test -n "$ac_ct_CC"; then
12447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12450 for as_dir in $PATH
12453 test -z "$as_dir" && as_dir=.
12454 for ac_exec_ext in '' $ac_executable_extensions; do
12455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12456 ac_cv_prog_ac_ct_CC="gcc"
12457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12467 if test -n "$ac_ct_CC"; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12469 $as_echo "$ac_ct_CC" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12475 if test "x$ac_ct_CC" = x; then
12478 case $cross_compiling:$ac_tool_warned in
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12482 ac_tool_warned=yes ;;
12487 CC="$ac_cv_prog_CC"
12490 if test -z "$CC"; then
12491 if test -n "$ac_tool_prefix"; then
12492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12493 set dummy ${ac_tool_prefix}cc; ac_word=$2
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495 $as_echo_n "checking for $ac_word... " >&6; }
12496 if ${ac_cv_prog_CC+:} false; then :
12497 $as_echo_n "(cached) " >&6
12499 if test -n "$CC"; then
12500 ac_cv_prog_CC="$CC" # Let the user override the test.
12502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12506 test -z "$as_dir" && as_dir=.
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509 ac_cv_prog_CC="${ac_tool_prefix}cc"
12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12520 if test -n "$CC"; then
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12522 $as_echo "$CC" >&6; }
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525 $as_echo "no" >&6; }
12531 if test -z "$CC"; then
12532 # Extract the first word of "cc", so it can be a program name with args.
12533 set dummy cc; ac_word=$2
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12535 $as_echo_n "checking for $ac_word... " >&6; }
12536 if ${ac_cv_prog_CC+:} false; then :
12537 $as_echo_n "(cached) " >&6
12539 if test -n "$CC"; then
12540 ac_cv_prog_CC="$CC" # Let the user override the test.
12542 ac_prog_rejected=no
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12550 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12551 ac_prog_rejected=yes
12555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 if test $ac_prog_rejected = yes; then
12563 # We found a bogon in the path, so make sure we never use it.
12564 set dummy $ac_cv_prog_CC
12566 if test $# != 0; then
12567 # We chose a different compiler from the bogus one.
12568 # However, it has the same basename, so the bogon will be chosen
12569 # first if we set CC to just the basename; use the full file name.
12571 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12577 if test -n "$CC"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12579 $as_echo "$CC" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12587 if test -z "$CC"; then
12588 if test -n "$ac_tool_prefix"; then
12589 for ac_prog in cl.exe
12591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12594 $as_echo_n "checking for $ac_word... " >&6; }
12595 if ${ac_cv_prog_CC+:} false; then :
12596 $as_echo_n "(cached) " >&6
12598 if test -n "$CC"; then
12599 ac_cv_prog_CC="$CC" # Let the user override the test.
12601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12602 for as_dir in $PATH
12605 test -z "$as_dir" && as_dir=.
12606 for ac_exec_ext in '' $ac_executable_extensions; do
12607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 if test -n "$CC"; then
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12621 $as_echo "$CC" >&6; }
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12624 $as_echo "no" >&6; }
12628 test -n "$CC" && break
12631 if test -z "$CC"; then
12633 for ac_prog in cl.exe
12635 # Extract the first word of "$ac_prog", so it can be a program name with args.
12636 set dummy $ac_prog; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12640 $as_echo_n "(cached) " >&6
12642 if test -n "$ac_ct_CC"; then
12643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_prog_ac_ct_CC="$ac_prog"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12663 if test -n "$ac_ct_CC"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12665 $as_echo "$ac_ct_CC" >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12672 test -n "$ac_ct_CC" && break
12675 if test "x$ac_ct_CC" = x; then
12678 case $cross_compiling:$ac_tool_warned in
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12682 ac_tool_warned=yes ;;
12691 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12693 as_fn_error $? "no acceptable C compiler found in \$PATH
12694 See \`config.log' for more details" "$LINENO" 5; }
12696 # Provide some information about the compiler.
12697 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12700 for ac_option in --version -v -V -qversion; do
12701 { { ac_try="$ac_compiler $ac_option >&5"
12702 case "(($ac_try" in
12703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704 *) ac_try_echo=$ac_try;;
12706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12707 $as_echo "$ac_try_echo"; } >&5
12708 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12710 if test -s conftest.err; then
12712 ... rest of stderr output deleted ...
12713 10q' conftest.err >conftest.er1
12714 cat conftest.er1 >&5
12716 rm -f conftest.er1 conftest.err
12717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12718 test $ac_status = 0; }
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12723 if ${ac_cv_c_compiler_gnu+:} false; then :
12724 $as_echo_n "(cached) " >&6
12726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12727 /* end confdefs.h. */
12740 if ac_fn_c_try_compile "$LINENO"; then :
12741 ac_compiler_gnu=yes
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12751 if test $ac_compiler_gnu = yes; then
12756 ac_test_CFLAGS=${CFLAGS+set}
12757 ac_save_CFLAGS=$CFLAGS
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12760 if ${ac_cv_prog_cc_g+:} false; then :
12761 $as_echo_n "(cached) " >&6
12763 ac_save_c_werror_flag=$ac_c_werror_flag
12764 ac_c_werror_flag=yes
12767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12778 if ac_fn_c_try_compile "$LINENO"; then :
12779 ac_cv_prog_cc_g=yes
12782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12783 /* end confdefs.h. */
12793 if ac_fn_c_try_compile "$LINENO"; then :
12796 ac_c_werror_flag=$ac_save_c_werror_flag
12798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12799 /* end confdefs.h. */
12809 if ac_fn_c_try_compile "$LINENO"; then :
12810 ac_cv_prog_cc_g=yes
12812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12817 ac_c_werror_flag=$ac_save_c_werror_flag
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12820 $as_echo "$ac_cv_prog_cc_g" >&6; }
12821 if test "$ac_test_CFLAGS" = set; then
12822 CFLAGS=$ac_save_CFLAGS
12823 elif test $ac_cv_prog_cc_g = yes; then
12824 if test "$GCC" = yes; then
12830 if test "$GCC" = yes; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12838 if ${ac_cv_prog_cc_c89+:} false; then :
12839 $as_echo_n "(cached) " >&6
12841 ac_cv_prog_cc_c89=no
12843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845 #include <stdarg.h>
12847 #include <sys/types.h>
12848 #include <sys/stat.h>
12849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12850 struct buf { int x; };
12851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12852 static char *e (p, i)
12858 static char *f (char * (*g) (char **, int), char **p, ...)
12863 s = g (p, va_arg (v,int));
12868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12869 function prototypes and stuff, but not '\xHH' hex character constants.
12870 These don't provoke an error unfortunately, instead are silently treated
12871 as 'x'. The following induces an error, until -std is added to get
12872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12873 array size at least. It's necessary to write '\x00'==0 to get something
12874 that's true only with -std. */
12875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12878 inside strings and character constants. */
12880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12882 int test (int i, double x);
12883 struct s1 {int (*f) (int a);};
12884 struct s2 {int (*f) (double a);};
12885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12899 CC="$ac_save_CC $ac_arg"
12900 if ac_fn_c_try_compile "$LINENO"; then :
12901 ac_cv_prog_cc_c89=$ac_arg
12903 rm -f core conftest.err conftest.$ac_objext
12904 test "x$ac_cv_prog_cc_c89" != "xno" && break
12906 rm -f conftest.$ac_ext
12911 case "x$ac_cv_prog_cc_c89" in
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12914 $as_echo "none needed" >&6; } ;;
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12917 $as_echo "unsupported" >&6; } ;;
12919 CC="$CC $ac_cv_prog_cc_c89"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12923 if test "x$ac_cv_prog_cc_c89" != xno; then :
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12933 depcc="$CC" am_compiler_list=
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12936 $as_echo_n "checking dependency style of $depcc... " >&6; }
12937 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12938 $as_echo_n "(cached) " >&6
12940 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12941 # We make a subdir and do the tests there. Otherwise we can end up
12942 # making bogus files that we don't know about and never remove. For
12943 # instance it was reported that on HP-UX the gcc test will end up
12944 # making a dummy file named `D' -- because `-MD' means `put the output
12947 # Copy depcomp to subdir because otherwise we won't find it if we're
12948 # using a relative directory.
12949 cp "$am_depcomp" conftest.dir
12951 # We will build objects and dependencies in a subdirectory because
12952 # it helps to detect inapplicable dependency modes. For instance
12953 # both Tru64's cc and ICC support -MD to output dependencies as a
12954 # side effect of compilation, but ICC will put the dependencies in
12955 # the current directory while Tru64 will put them in the object
12959 am_cv_CC_dependencies_compiler_type=none
12960 if test "$am_compiler_list" = ""; then
12961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12963 for depmode in $am_compiler_list; do
12964 # Setup a source with many dependencies, because some compilers
12965 # like to wrap large dependency lists on column 80 (with \), and
12966 # we should not choose a depcomp mode which is confused by this.
12968 # We need to recreate these files for each test, as the compiler may
12969 # overwrite some of them when testing with obscure command lines.
12970 # This happens at least with the AIX C compiler.
12972 for i in 1 2 3 4 5 6; do
12973 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12974 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12975 # Solaris 8's {/usr,}/bin/sh.
12976 touch sub/conftst$i.h
12978 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12982 # after this tag, mechanisms are not by side-effect, so they'll
12983 # only be used when explicitly requested
12984 if test "x$enable_dependency_tracking" = xyes; then
12992 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12993 # mode. It turns out that the SunPro C++ compiler does not properly
12994 # handle `-M -o', and we need to detect this.
12995 if depmode=$depmode \
12996 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12997 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12998 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12999 >/dev/null 2>conftest.err &&
13000 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13001 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13002 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13003 # icc doesn't choke on unknown options, it will just issue warnings
13004 # or remarks (even with -Werror). So we grep stderr for any message
13005 # that says an option was ignored or not supported.
13006 # When given -MP, icc 7.0 and 7.1 complain thusly:
13007 # icc: Command line warning: ignoring option '-M'; no argument required
13008 # The diagnosis changed in icc 8.0:
13009 # icc: Command line remark: option '-MP' not supported
13010 if (grep 'ignoring option' conftest.err ||
13011 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13012 am_cv_CC_dependencies_compiler_type=$depmode
13019 rm -rf conftest.dir
13021 am_cv_CC_dependencies_compiler_type=none
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13026 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13027 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13032 test "x$enable_dependency_tracking" != xno \
13033 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13034 am__fastdepCC_TRUE=
13035 am__fastdepCC_FALSE='#'
13037 am__fastdepCC_TRUE='#'
13038 am__fastdepCC_FALSE=
13042 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13043 as_fn_error $? "OpenLDAP requires compiler to support STDC constructs." "$LINENO" 5
13046 # test for make depend flag
13049 if test -z "${MKDEP}"; then
13050 OL_MKDEP="${CC-cc}"
13051 if test -z "${MKDEP_FLAGS}"; then
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${OL_MKDEP} depend flag" >&5
13053 $as_echo_n "checking for ${OL_MKDEP} depend flag... " >&6; }
13054 if ${ol_cv_mkdep+:} false; then :
13055 $as_echo_n "(cached) " >&6
13059 for flag in "-M" "-xM"; do
13060 cat > conftest.c <<EOF
13063 if { ac_try='$OL_MKDEP $flag conftest.c'
13064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13065 (eval $ac_try) 2>&5
13067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13068 test $ac_status = 0; }; } \
13069 | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13071 if test ! -f conftest."${ac_object}" ; then
13073 OL_MKDEP_FLAGS="$flag"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_mkdep" >&5
13082 $as_echo "$ol_cv_mkdep" >&6; }
13083 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13086 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13090 OL_MKDEP="${MKDEP}"
13091 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13096 if test "${ol_cv_mkdep}" = no ; then
13097 # this will soon become an error
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: do not know how to generate dependencies" >&5
13099 $as_echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for afopen in -ls" >&5
13103 $as_echo_n "checking for afopen in -ls... " >&6; }
13104 if ${ac_cv_lib_s_afopen+:} false; then :
13105 $as_echo_n "(cached) " >&6
13107 ac_check_lib_save_LIBS=$LIBS
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13112 /* Override any GCC internal prototype to avoid an error.
13113 Use char because int might match the return type of a GCC
13114 builtin and then its argument prototype would still apply. */
13127 if ac_fn_c_try_link "$LINENO"; then :
13128 ac_cv_lib_s_afopen=yes
13130 ac_cv_lib_s_afopen=no
13132 rm -f core conftest.err conftest.$ac_objext \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s_afopen" >&5
13137 $as_echo "$ac_cv_lib_s_afopen" >&6; }
13138 if test "x$ac_cv_lib_s_afopen" = xyes; then :
13142 $as_echo "#define HAVE_AIX_SECURITY 1" >>confdefs.h
13150 ac_cv_func_getopt=no
13152 $as_echo "#define BOTH_STRINGS_H 1" >>confdefs.h
13158 WITH_MODULES_ENABLED=no
13159 if test $ol_enable_modules != no ; then
13160 for ac_header in ltdl.h
13162 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
13163 if test "x$ac_cv_header_ltdl_h" = xyes; then :
13164 cat >>confdefs.h <<_ACEOF
13165 #define HAVE_LTDL_H 1
13173 if test $ac_cv_header_ltdl_h = no ; then
13174 as_fn_error $? "could not locate libtool ltdl.h" "$LINENO" 5
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
13178 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
13179 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
13180 $as_echo_n "(cached) " >&6
13182 ac_check_lib_save_LIBS=$LIBS
13183 LIBS="-lltdl $LIBS"
13184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h. */
13187 /* Override any GCC internal prototype to avoid an error.
13188 Use char because int might match the return type of a GCC
13189 builtin and then its argument prototype would still apply. */
13197 return lt_dlinit ();
13202 if ac_fn_c_try_link "$LINENO"; then :
13203 ac_cv_lib_ltdl_lt_dlinit=yes
13205 ac_cv_lib_ltdl_lt_dlinit=no
13207 rm -f core conftest.err conftest.$ac_objext \
13208 conftest$ac_exeext conftest.$ac_ext
13209 LIBS=$ac_check_lib_save_LIBS
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13212 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13213 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
13215 MODULES_LIBS=-lltdl
13217 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
13223 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13224 as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
13226 ol_link_modules=yes
13227 WITH_MODULES_ENABLED=yes
13230 for i in $Backends; do
13231 eval "ol_tmp=\$ol_enable_$i"
13232 if test $ol_tmp = mod ; then
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i backend" >&5
13234 $as_echo "$as_me: WARNING: building static $i backend" >&2;}
13235 eval "ol_enable_$i=yes"
13238 for i in $Overlays; do
13239 eval "ol_tmp=\$ol_enable_$i"
13240 if test $ol_tmp = mod ; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building static $i overlay" >&5
13242 $as_echo "$as_me: WARNING: building static $i overlay" >&2;}
13243 eval "ol_enable_$i=yes"
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EBCDIC" >&5
13250 $as_echo_n "checking for EBCDIC... " >&6; }
13251 if ${ol_cv_cpp_ebcdic+:} false; then :
13252 $as_echo_n "(cached) " >&6
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13259 #include <__ASCII__/generate_error.h>
13263 if ac_fn_c_try_cpp "$LINENO"; then :
13264 ol_cv_cpp_ebcdic=yes
13266 ol_cv_cpp_ebcdic=no
13268 rm -f conftest.err conftest.i conftest.$ac_ext
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cpp_ebcdic" >&5
13271 $as_echo "$ol_cv_cpp_ebcdic" >&6; }
13272 if test $ol_cv_cpp_ebcdic = yes ; then
13274 $as_echo "#define HAVE_EBCDIC 1" >>confdefs.h
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13279 $as_echo_n "checking for ANSI C header files... " >&6; }
13280 if ${ol_cv_header_stdc+:} false; then :
13281 $as_echo_n "(cached) " >&6
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 #include <stdlib.h>
13286 #include <stdarg.h>
13287 #include <string.h>
13290 if ac_fn_c_try_cpp "$LINENO"; then :
13291 ol_cv_header_stdc=yes
13293 ol_cv_header_stdc=no
13295 rm -f conftest.err conftest.i conftest.$ac_ext
13297 if test $ol_cv_header_stdc = yes; then
13298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 #include <string.h>
13304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305 $EGREP "memchr" >/dev/null 2>&1; then :
13308 ol_cv_header_stdc=no
13314 if test $ol_cv_header_stdc = yes; then
13315 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #include <stdlib.h>
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "free" >/dev/null 2>&1; then :
13325 ol_cv_header_stdc=no
13331 if test $ol_cv_header_stdc = yes; then
13332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13333 if test "$cross_compiling" = yes; then :
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13339 #ifndef HAVE_EBCDIC
13340 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13341 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13343 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
13344 || ('j' <= (c) && (c) <= 'r') \
13345 || ('s' <= (c) && (c) <= 'z'))
13346 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13348 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13349 int main () { int i; for (i = 0; i < 256; i++)
13350 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13354 if ac_fn_c_try_run "$LINENO"; then :
13357 ol_cv_header_stdc=no
13359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13360 conftest.$ac_objext conftest.beam conftest.$ac_ext
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_stdc" >&5
13366 $as_echo "$ol_cv_header_stdc" >&6; }
13367 if test $ol_cv_header_stdc = yes; then
13368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13371 ac_cv_header_stdc=disable
13374 if test $ol_cv_header_stdc != yes; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate Standard C compliant headers" >&5
13376 $as_echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
13379 ac_header_dirent=no
13380 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13381 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13383 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13384 if eval \${$as_ac_Header+:} false; then :
13385 $as_echo_n "(cached) " >&6
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13389 #include <sys/types.h>
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 eval "$as_ac_Header=yes"
13404 eval "$as_ac_Header=no"
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13408 eval ac_res=\$$as_ac_Header
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13410 $as_echo "$ac_res" >&6; }
13411 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13412 cat >>confdefs.h <<_ACEOF
13413 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13416 ac_header_dirent=$ac_hdr; break
13420 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13421 if test $ac_header_dirent = dirent.h; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13423 $as_echo_n "checking for library containing opendir... " >&6; }
13424 if ${ac_cv_search_opendir+:} false; then :
13425 $as_echo_n "(cached) " >&6
13427 ac_func_search_save_LIBS=$LIBS
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13431 /* Override any GCC internal prototype to avoid an error.
13432 Use char because int might match the return type of a GCC
13433 builtin and then its argument prototype would still apply. */
13446 for ac_lib in '' dir; do
13447 if test -z "$ac_lib"; then
13448 ac_res="none required"
13451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13453 if ac_fn_c_try_link "$LINENO"; then :
13454 ac_cv_search_opendir=$ac_res
13456 rm -f core conftest.err conftest.$ac_objext \
13458 if ${ac_cv_search_opendir+:} false; then :
13462 if ${ac_cv_search_opendir+:} false; then :
13465 ac_cv_search_opendir=no
13467 rm conftest.$ac_ext
13468 LIBS=$ac_func_search_save_LIBS
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13471 $as_echo "$ac_cv_search_opendir" >&6; }
13472 ac_res=$ac_cv_search_opendir
13473 if test "$ac_res" != no; then :
13474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13480 $as_echo_n "checking for library containing opendir... " >&6; }
13481 if ${ac_cv_search_opendir+:} false; then :
13482 $as_echo_n "(cached) " >&6
13484 ac_func_search_save_LIBS=$LIBS
13485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13486 /* end confdefs.h. */
13488 /* Override any GCC internal prototype to avoid an error.
13489 Use char because int might match the return type of a GCC
13490 builtin and then its argument prototype would still apply. */
13503 for ac_lib in '' x; do
13504 if test -z "$ac_lib"; then
13505 ac_res="none required"
13508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13510 if ac_fn_c_try_link "$LINENO"; then :
13511 ac_cv_search_opendir=$ac_res
13513 rm -f core conftest.err conftest.$ac_objext \
13515 if ${ac_cv_search_opendir+:} false; then :
13519 if ${ac_cv_search_opendir+:} false; then :
13522 ac_cv_search_opendir=no
13524 rm conftest.$ac_ext
13525 LIBS=$ac_func_search_save_LIBS
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13528 $as_echo "$ac_cv_search_opendir" >&6; }
13529 ac_res=$ac_cv_search_opendir
13530 if test "$ac_res" != no; then :
13531 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13538 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13539 if ${ac_cv_header_sys_wait_h+:} false; then :
13540 $as_echo_n "(cached) " >&6
13542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13543 /* end confdefs.h. */
13544 #include <sys/types.h>
13545 #include <sys/wait.h>
13546 #ifndef WEXITSTATUS
13547 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13550 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13558 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13563 if ac_fn_c_try_compile "$LINENO"; then :
13564 ac_cv_header_sys_wait_h=yes
13566 ac_cv_header_sys_wait_h=no
13568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13571 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13572 if test $ac_cv_header_sys_wait_h = yes; then
13574 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13579 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13580 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
13581 $as_echo_n "(cached) " >&6
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <sys/types.h>
13586 #include <termios.h>
13592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13593 $EGREP "yes" >/dev/null 2>&1; then :
13594 ac_cv_sys_tiocgwinsz_in_termios_h=yes
13596 ac_cv_sys_tiocgwinsz_in_termios_h=no
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13602 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13604 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13606 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13607 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
13608 $as_echo_n "(cached) " >&6
13610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 #include <sys/types.h>
13613 #include <sys/ioctl.h>
13619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13620 $EGREP "yes" >/dev/null 2>&1; then :
13621 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13623 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13629 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13631 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13633 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13690 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13692 cat >>confdefs.h <<_ACEOF
13693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13701 if test "$ac_cv_mingw32" = yes \
13702 -o "$ac_cv_interix" = yes \
13703 -o "$ol_cv_msvc" = yes
13705 for ac_header in winsock.h winsock2.h
13707 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13708 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13710 cat >>confdefs.h <<_ACEOF
13711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13720 for ac_header in resolv.h
13722 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default
13723 #include <netinet/in.h>
13726 if test "x$ac_cv_header_resolv_h" = xyes; then :
13727 cat >>confdefs.h <<_ACEOF
13728 #define HAVE_RESOLV_H 1
13736 for ac_header in netinet/tcp.h
13738 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default
13739 #include <netinet/in.h>
13742 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
13743 cat >>confdefs.h <<_ACEOF
13744 #define HAVE_NETINET_TCP_H 1
13752 for ac_header in sys/ucred.h
13754 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default
13755 #ifdef HAVE_SYS_PARAM_H
13756 #include <sys/param.h>
13760 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
13761 cat >>confdefs.h <<_ACEOF
13762 #define HAVE_SYS_UCRED_H 1
13771 for ac_func in sigaction sigset
13773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13774 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13775 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13776 cat >>confdefs.h <<_ACEOF
13777 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13784 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigset in -lV3" >&5
13786 $as_echo_n "checking for sigset in -lV3... " >&6; }
13787 if ${ac_cv_lib_V3_sigset+:} false; then :
13788 $as_echo_n "(cached) " >&6
13790 ac_check_lib_save_LIBS=$LIBS
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13795 /* Override any GCC internal prototype to avoid an error.
13796 Use char because int might match the return type of a GCC
13797 builtin and then its argument prototype would still apply. */
13810 if ac_fn_c_try_link "$LINENO"; then :
13811 ac_cv_lib_V3_sigset=yes
13813 ac_cv_lib_V3_sigset=no
13815 rm -f core conftest.err conftest.$ac_objext \
13816 conftest$ac_exeext conftest.$ac_ext
13817 LIBS=$ac_check_lib_save_LIBS
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_V3_sigset" >&5
13820 $as_echo "$ac_cv_lib_V3_sigset" >&6; }
13821 if test "x$ac_cv_lib_V3_sigset" = xyes; then :
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_LIBV3 1
13832 if test $ol_cv_msvc = yes ; then
13836 if test "$ac_cv_header_winsock_h" = yes; then
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock" >&5
13838 $as_echo_n "checking for winsock... " >&6; }
13839 if ${ol_cv_winsock+:} false; then :
13840 $as_echo_n "(cached) " >&6
13844 for curlib in none ws2_32 wsock32; do
13845 if test $curlib != none ; then
13846 LIBS="$save_LIBS -l$curlib"
13848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13849 /* end confdefs.h. */
13850 #include <winsock.h>
13857 select(0,NULL,NULL,NULL,NULL);
13859 gethostname(NULL,0);
13865 if ac_fn_c_try_link "$LINENO"; then :
13866 ol_cv_winsock=$curlib
13870 rm -f core conftest.err conftest.$ac_objext \
13871 conftest$ac_exeext conftest.$ac_ext
13873 test "$ol_cv_winsock" != no && break
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_winsock" >&5
13879 $as_echo "$ol_cv_winsock" >&6; }
13881 if test $ol_cv_winsock != no ; then
13883 $as_echo "#define HAVE_WINSOCK 1" >>confdefs.h
13885 ac_cv_func_socket=yes
13886 ac_cv_func_select=yes
13887 ac_cv_func_closesocket=yes
13888 ac_cv_func_gethostname=yes
13890 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
13891 LIBS="$LIBS -l$ol_cv_winsock"
13894 if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
13896 $as_echo "#define HAVE_WINSOCK2 1" >>confdefs.h
13903 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13904 if test "x$ac_cv_func_socket" = xyes; then :
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13909 $as_echo_n "checking for main in -lsocket... " >&6; }
13910 if ${ac_cv_lib_socket_main+:} false; then :
13911 $as_echo_n "(cached) " >&6
13913 ac_check_lib_save_LIBS=$LIBS
13914 LIBS="-lsocket $LIBS"
13915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13927 if ac_fn_c_try_link "$LINENO"; then :
13928 ac_cv_lib_socket_main=yes
13930 ac_cv_lib_socket_main=no
13932 rm -f core conftest.err conftest.$ac_objext \
13933 conftest$ac_exeext conftest.$ac_ext
13934 LIBS=$ac_check_lib_save_LIBS
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13937 $as_echo "$ac_cv_lib_socket_main" >&6; }
13938 if test "x$ac_cv_lib_socket_main" = xyes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_LIBSOCKET 1
13943 LIBS="-lsocket $LIBS"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5
13948 $as_echo_n "checking for socket in -lnet... " >&6; }
13949 if ${ac_cv_lib_net_socket+:} false; then :
13950 $as_echo_n "(cached) " >&6
13952 ac_check_lib_save_LIBS=$LIBS
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13957 /* Override any GCC internal prototype to avoid an error.
13958 Use char because int might match the return type of a GCC
13959 builtin and then its argument prototype would still apply. */
13972 if ac_fn_c_try_link "$LINENO"; then :
13973 ac_cv_lib_net_socket=yes
13975 ac_cv_lib_net_socket=no
13977 rm -f core conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13979 LIBS=$ac_check_lib_save_LIBS
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5
13982 $as_echo "$ac_cv_lib_net_socket" >&6; }
13983 if test "x$ac_cv_lib_net_socket" = xyes; then :
13984 cat >>confdefs.h <<_ACEOF
13985 #define HAVE_LIBNET 1
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl_s" >&5
13993 $as_echo_n "checking for main in -lnsl_s... " >&6; }
13994 if ${ac_cv_lib_nsl_s_main+:} false; then :
13995 $as_echo_n "(cached) " >&6
13997 ac_check_lib_save_LIBS=$LIBS
13998 LIBS="-lnsl_s $LIBS"
13999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14011 if ac_fn_c_try_link "$LINENO"; then :
14012 ac_cv_lib_nsl_s_main=yes
14014 ac_cv_lib_nsl_s_main=no
14016 rm -f core conftest.err conftest.$ac_objext \
14017 conftest$ac_exeext conftest.$ac_ext
14018 LIBS=$ac_check_lib_save_LIBS
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_s_main" >&5
14021 $as_echo "$ac_cv_lib_nsl_s_main" >&6; }
14022 if test "x$ac_cv_lib_nsl_s_main" = xyes; then :
14023 cat >>confdefs.h <<_ACEOF
14024 #define HAVE_LIBNSL_S 1
14027 LIBS="-lnsl_s $LIBS"
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14032 $as_echo_n "checking for main in -lnsl... " >&6; }
14033 if ${ac_cv_lib_nsl_main+:} false; then :
14034 $as_echo_n "(cached) " >&6
14036 ac_check_lib_save_LIBS=$LIBS
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 ac_cv_lib_nsl_main=yes
14053 ac_cv_lib_nsl_main=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14060 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14061 if test "x$ac_cv_lib_nsl_main" = xyes; then :
14062 cat >>confdefs.h <<_ACEOF
14063 #define HAVE_LIBNSL 1
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
14071 $as_echo_n "checking for socket in -linet... " >&6; }
14072 if ${ac_cv_lib_inet_socket+:} false; then :
14073 $as_echo_n "(cached) " >&6
14075 ac_check_lib_save_LIBS=$LIBS
14076 LIBS="-linet $LIBS"
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14078 /* end confdefs.h. */
14080 /* Override any GCC internal prototype to avoid an error.
14081 Use char because int might match the return type of a GCC
14082 builtin and then its argument prototype would still apply. */
14095 if ac_fn_c_try_link "$LINENO"; then :
14096 ac_cv_lib_inet_socket=yes
14098 ac_cv_lib_inet_socket=no
14100 rm -f core conftest.err conftest.$ac_objext \
14101 conftest$ac_exeext conftest.$ac_ext
14102 LIBS=$ac_check_lib_save_LIBS
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
14105 $as_echo "$ac_cv_lib_inet_socket" >&6; }
14106 if test "x$ac_cv_lib_inet_socket" = xyes; then :
14107 cat >>confdefs.h <<_ACEOF
14108 #define HAVE_LIBINET 1
14111 LIBS="-linet $LIBS"
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgen" >&5
14116 $as_echo_n "checking for main in -lgen... " >&6; }
14117 if ${ac_cv_lib_gen_main+:} false; then :
14118 $as_echo_n "(cached) " >&6
14120 ac_check_lib_save_LIBS=$LIBS
14122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14134 if ac_fn_c_try_link "$LINENO"; then :
14135 ac_cv_lib_gen_main=yes
14137 ac_cv_lib_gen_main=no
14139 rm -f core conftest.err conftest.$ac_objext \
14140 conftest$ac_exeext conftest.$ac_ext
14141 LIBS=$ac_check_lib_save_LIBS
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_main" >&5
14144 $as_echo "$ac_cv_lib_gen_main" >&6; }
14145 if test "x$ac_cv_lib_gen_main" = xyes; then :
14146 cat >>confdefs.h <<_ACEOF
14147 #define HAVE_LIBGEN 1
14158 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14159 if test "x$ac_cv_func_select" = xyes; then :
14162 as_fn_error $? "select() required." "$LINENO" 5
14166 if test "${ac_cv_header_winsock_h}" != yes; then
14167 for ac_header in sys/select.h sys/socket.h
14169 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14170 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14171 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14172 cat >>confdefs.h <<_ACEOF
14173 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
14181 $as_echo_n "checking types of arguments for select... " >&6; }
14182 if ${ac_cv_func_select_args+:} false; then :
14183 $as_echo_n "(cached) " >&6
14185 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
14186 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
14187 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14190 $ac_includes_default
14191 #ifdef HAVE_SYS_SELECT_H
14192 # include <sys/select.h>
14194 #ifdef HAVE_SYS_SOCKET_H
14195 # include <sys/socket.h>
14201 extern int select ($ac_arg1,
14202 $ac_arg234, $ac_arg234, $ac_arg234,
14208 if ac_fn_c_try_compile "$LINENO"; then :
14209 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215 # Provide a safe default value.
14216 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
14220 $as_echo "$ac_cv_func_select_args" >&6; }
14221 ac_save_IFS=$IFS; IFS=','
14222 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
14226 cat >>confdefs.h <<_ACEOF
14227 #define SELECT_TYPE_ARG1 $1
14231 cat >>confdefs.h <<_ACEOF
14232 #define SELECT_TYPE_ARG234 ($2)
14236 cat >>confdefs.h <<_ACEOF
14237 #define SELECT_TYPE_ARG5 ($3)
14245 for ac_func in poll
14247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14249 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14250 cat >>confdefs.h <<_ACEOF
14251 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14257 if test $ac_cv_func_poll = yes; then
14258 for ac_header in poll.h sys/poll.h
14260 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14261 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14263 cat >>confdefs.h <<_ACEOF
14264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14273 for ac_header in sys/epoll.h
14275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14276 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14277 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14278 cat >>confdefs.h <<_ACEOF
14279 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14286 if test "${ac_cv_header_sys_epoll_h}" = yes; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
14288 $as_echo_n "checking for epoll system call... " >&6; }
14289 if test "$cross_compiling" = yes; then :
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14291 $as_echo "no" >&6; }
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14295 int main(int argc, char **argv)
14297 int epfd = epoll_create(256);
14298 exit (epfd == -1 ? 1 : 0);
14301 if ac_fn_c_try_run "$LINENO"; then :
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; }
14305 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14309 $as_echo "no" >&6; }
14311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14312 conftest.$ac_objext conftest.beam conftest.$ac_ext
14317 for ac_header in sys/devpoll.h
14319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14320 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14322 cat >>confdefs.h <<_ACEOF
14323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14330 if test "${ac_cv_header_sys_devpoll_h}" = yes \
14331 -a "${ac_cv_header_poll_h}" = yes ; \
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14334 $as_echo_n "checking for /dev/poll... " >&6; }
14335 if test "$cross_compiling" = yes; then :
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14337 $as_echo "no" >&6; }
14339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h. */
14341 int main(int argc, char **argv)
14343 int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
14344 exit (devpollfd == -1 ? 1 : 0);
14347 if ac_fn_c_try_run "$LINENO"; then :
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14349 $as_echo "yes" >&6; }
14351 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 $as_echo "no" >&6; }
14357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14358 conftest.$ac_objext conftest.beam conftest.$ac_ext
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14364 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14365 if ${ol_cv_dcl_sys_errlist+:} false; then :
14366 $as_echo_n "(cached) " >&6
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14373 #include <sys/types.h>
14376 #include <stdlib.h>
14381 char *c = (char *) *sys_errlist
14386 if ac_fn_c_try_compile "$LINENO"; then :
14387 ol_cv_dcl_sys_errlist=yes
14388 ol_cv_have_sys_errlist=yes
14390 ol_cv_dcl_sys_errlist=no
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14395 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14397 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14398 if test $ol_cv_dcl_sys_errlist = no ; then
14400 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14404 $as_echo_n "checking existence of sys_errlist... " >&6; }
14405 if ${ol_cv_have_sys_errlist+:} false; then :
14406 $as_echo_n "(cached) " >&6
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14415 char *c = (char *) *sys_errlist
14420 if ac_fn_c_try_link "$LINENO"; then :
14421 ol_cv_have_sys_errlist=yes
14423 ol_cv_have_sys_errlist=no
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14429 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14431 if test $ol_cv_have_sys_errlist = yes ; then
14433 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14436 for ac_func in strerror strerror_r
14438 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14441 cat >>confdefs.h <<_ACEOF
14442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14448 ol_cv_func_strerror_r=no
14449 if test "${ac_cv_func_strerror_r}" = yes ; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking non-posix strerror_r" >&5
14451 $as_echo_n "checking non-posix strerror_r... " >&6; }
14452 if ${ol_cv_nonposix_strerror_r+:} false; then :
14453 $as_echo_n "(cached) " >&6
14456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14457 /* end confdefs.h. */
14458 #include <string.h>
14460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14461 $EGREP "strerror_r" >/dev/null 2>&1; then :
14462 ol_decl_strerror_r=yes
14464 ol_decl_strerror_r=no
14468 if test $ol_decl_strerror_r = yes ; then
14469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h. */
14471 #include <string.h>
14475 /* from autoconf 2.59 */
14477 char x = *strerror_r (0, buf, sizeof buf);
14478 char *p = strerror_r (0, buf, sizeof buf);
14484 if ac_fn_c_try_compile "$LINENO"; then :
14485 ol_cv_nonposix_strerror_r=yes
14487 ol_cv_nonposix_strerror_r=no
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 if test "$cross_compiling" = yes; then :
14492 ol_cv_nonposix_strerror=no
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14500 strerror_r( 1, buf, sizeof buf );
14501 exit( buf[0] == 0 );
14505 if ac_fn_c_try_run "$LINENO"; then :
14506 ol_cv_nonposix_strerror_r=yes
14508 ol_cv_nonposix_strerror=no
14510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14511 conftest.$ac_objext conftest.beam conftest.$ac_ext
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_nonposix_strerror_r" >&5
14518 $as_echo "$ol_cv_nonposix_strerror_r" >&6; }
14519 if test $ol_cv_nonposix_strerror_r = yes ; then
14521 $as_echo "#define HAVE_NONPOSIX_STRERROR_R 1" >>confdefs.h
14525 elif test "${ac_cv_func_strerror}" = no ; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking declaration of sys_errlist" >&5
14527 $as_echo_n "checking declaration of sys_errlist... " >&6; }
14528 if ${ol_cv_dcl_sys_errlist+:} false; then :
14529 $as_echo_n "(cached) " >&6
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14536 #include <sys/types.h>
14539 #include <stdlib.h>
14544 char *c = (char *) *sys_errlist
14549 if ac_fn_c_try_compile "$LINENO"; then :
14550 ol_cv_dcl_sys_errlist=yes
14551 ol_cv_have_sys_errlist=yes
14553 ol_cv_dcl_sys_errlist=no
14555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_dcl_sys_errlist" >&5
14558 $as_echo "$ol_cv_dcl_sys_errlist" >&6; }
14560 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
14561 if test $ol_cv_dcl_sys_errlist = no ; then
14563 $as_echo "#define DECL_SYS_ERRLIST 1" >>confdefs.h
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking existence of sys_errlist" >&5
14567 $as_echo_n "checking existence of sys_errlist... " >&6; }
14568 if ${ol_cv_have_sys_errlist+:} false; then :
14569 $as_echo_n "(cached) " >&6
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14578 char *c = (char *) *sys_errlist
14583 if ac_fn_c_try_link "$LINENO"; then :
14584 ol_cv_have_sys_errlist=yes
14586 ol_cv_have_sys_errlist=no
14588 rm -f core conftest.err conftest.$ac_objext \
14589 conftest$ac_exeext conftest.$ac_ext
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_have_sys_errlist" >&5
14592 $as_echo "$ol_cv_have_sys_errlist" >&6; }
14594 if test $ol_cv_have_sys_errlist = yes ; then
14596 $as_echo "#define HAVE_SYS_ERRLIST 1" >>confdefs.h
14603 for ac_header in regex.h
14605 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default
14606 #ifdef HAVE_SYS_TYPES_H
14607 #include <sys/types.h>
14611 if test "x$ac_cv_header_regex_h" = xyes; then :
14612 cat >>confdefs.h <<_ACEOF
14613 #define HAVE_REGEX_H 1
14621 if test "$ac_cv_header_regex_h" != yes ; then
14622 as_fn_error $? "POSIX regex.h required." "$LINENO" 5
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing regfree" >&5
14625 $as_echo_n "checking for library containing regfree... " >&6; }
14626 if ${ac_cv_search_regfree+:} false; then :
14627 $as_echo_n "(cached) " >&6
14629 ac_func_search_save_LIBS=$LIBS
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14633 /* Override any GCC internal prototype to avoid an error.
14634 Use char because int might match the return type of a GCC
14635 builtin and then its argument prototype would still apply. */
14648 for ac_lib in '' regex gnuregex; do
14649 if test -z "$ac_lib"; then
14650 ac_res="none required"
14653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 ac_cv_search_regfree=$ac_res
14658 rm -f core conftest.err conftest.$ac_objext \
14660 if ${ac_cv_search_regfree+:} false; then :
14664 if ${ac_cv_search_regfree+:} false; then :
14667 ac_cv_search_regfree=no
14669 rm conftest.$ac_ext
14670 LIBS=$ac_func_search_save_LIBS
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_regfree" >&5
14673 $as_echo "$ac_cv_search_regfree" >&6; }
14674 ac_res=$ac_cv_search_regfree
14675 if test "$ac_res" != no; then :
14676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14679 as_fn_error $? "POSIX regex required." "$LINENO" 5
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compatible POSIX regex" >&5
14685 $as_echo_n "checking for compatible POSIX regex... " >&6; }
14686 if ${ol_cv_c_posix_regex+:} false; then :
14687 $as_echo_n "(cached) " >&6
14690 if test "$cross_compiling" = yes; then :
14691 ol_cv_c_posix_regex=cross
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14696 #include <sys/types.h>
14698 static char *pattern, *string;
14706 if(regcomp(&re, pattern, 0)) {
14710 string = "ALL MATCH";
14712 rc = regexec(&re, string, 0, (void*)0, 0);
14719 if ac_fn_c_try_run "$LINENO"; then :
14720 ol_cv_c_posix_regex=yes
14722 ol_cv_c_posix_regex=no
14724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14725 conftest.$ac_objext conftest.beam conftest.$ac_ext
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_posix_regex" >&5
14730 $as_echo "$ol_cv_c_posix_regex" >&6; }
14732 if test "$ol_cv_c_posix_regex" = no ; then
14733 as_fn_error $? "broken POSIX regex!" "$LINENO" 5
14738 for ac_header in sys/uuid.h
14740 ac_fn_c_check_header_mongrel "$LINENO" "sys/uuid.h" "ac_cv_header_sys_uuid_h" "$ac_includes_default"
14741 if test "x$ac_cv_header_sys_uuid_h" = xyes; then :
14742 cat >>confdefs.h <<_ACEOF
14743 #define HAVE_SYS_UUID_H 1
14750 if test $ac_cv_header_sys_uuid_h = yes ; then
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_to_str" >&5
14753 $as_echo_n "checking for library containing uuid_to_str... " >&6; }
14754 if ${ac_cv_search_uuid_to_str+:} false; then :
14755 $as_echo_n "(cached) " >&6
14757 ac_func_search_save_LIBS=$LIBS
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14761 /* Override any GCC internal prototype to avoid an error.
14762 Use char because int might match the return type of a GCC
14763 builtin and then its argument prototype would still apply. */
14767 char uuid_to_str ();
14771 return uuid_to_str ();
14776 for ac_lib in '' uuid; do
14777 if test -z "$ac_lib"; then
14778 ac_res="none required"
14781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14783 if ac_fn_c_try_link "$LINENO"; then :
14784 ac_cv_search_uuid_to_str=$ac_res
14786 rm -f core conftest.err conftest.$ac_objext \
14788 if ${ac_cv_search_uuid_to_str+:} false; then :
14792 if ${ac_cv_search_uuid_to_str+:} false; then :
14795 ac_cv_search_uuid_to_str=no
14797 rm conftest.$ac_ext
14798 LIBS=$ac_func_search_save_LIBS
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_to_str" >&5
14801 $as_echo "$ac_cv_search_uuid_to_str" >&6; }
14802 ac_res=$ac_cv_search_uuid_to_str
14803 if test "$ac_res" != no; then :
14804 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_create" >&5
14811 $as_echo_n "checking for library containing uuid_create... " >&6; }
14812 if ${ac_cv_search_uuid_create+:} false; then :
14813 $as_echo_n "(cached) " >&6
14815 ac_func_search_save_LIBS=$LIBS
14816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14819 /* Override any GCC internal prototype to avoid an error.
14820 Use char because int might match the return type of a GCC
14821 builtin and then its argument prototype would still apply. */
14825 char uuid_create ();
14829 return uuid_create ();
14834 for ac_lib in '' uuid; do
14835 if test -z "$ac_lib"; then
14836 ac_res="none required"
14839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_search_uuid_create=$ac_res
14844 rm -f core conftest.err conftest.$ac_objext \
14846 if ${ac_cv_search_uuid_create+:} false; then :
14850 if ${ac_cv_search_uuid_create+:} false; then :
14853 ac_cv_search_uuid_create=no
14855 rm conftest.$ac_ext
14856 LIBS=$ac_func_search_save_LIBS
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_create" >&5
14859 $as_echo "$ac_cv_search_uuid_create" >&6; }
14860 ac_res=$ac_cv_search_uuid_create
14861 if test "$ac_res" != no; then :
14862 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14870 if test $have_uuid = yes ; then
14872 $as_echo "#define HAVE_UUID_TO_STR 1" >>confdefs.h
14875 test "$ac_cv_search_uuid_to_str" = "none required" || \
14876 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
14880 if test $have_uuid = no ; then
14881 for ac_header in uuid/uuid.h
14883 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
14884 if test "x$ac_cv_header_uuid_uuid_h" = xyes; then :
14885 cat >>confdefs.h <<_ACEOF
14886 #define HAVE_UUID_UUID_H 1
14893 if test $ac_cv_header_uuid_uuid_h = yes ; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
14896 $as_echo_n "checking for library containing uuid_generate... " >&6; }
14897 if ${ac_cv_search_uuid_generate+:} false; then :
14898 $as_echo_n "(cached) " >&6
14900 ac_func_search_save_LIBS=$LIBS
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14904 /* Override any GCC internal prototype to avoid an error.
14905 Use char because int might match the return type of a GCC
14906 builtin and then its argument prototype would still apply. */
14910 char uuid_generate ();
14914 return uuid_generate ();
14919 for ac_lib in '' uuid; do
14920 if test -z "$ac_lib"; then
14921 ac_res="none required"
14924 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14926 if ac_fn_c_try_link "$LINENO"; then :
14927 ac_cv_search_uuid_generate=$ac_res
14929 rm -f core conftest.err conftest.$ac_objext \
14931 if ${ac_cv_search_uuid_generate+:} false; then :
14935 if ${ac_cv_search_uuid_generate+:} false; then :
14938 ac_cv_search_uuid_generate=no
14940 rm conftest.$ac_ext
14941 LIBS=$ac_func_search_save_LIBS
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
14944 $as_echo "$ac_cv_search_uuid_generate" >&6; }
14945 ac_res=$ac_cv_search_uuid_generate
14946 if test "$ac_res" != no; then :
14947 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_unparse_lower" >&5
14954 $as_echo_n "checking for library containing uuid_unparse_lower... " >&6; }
14955 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14956 $as_echo_n "(cached) " >&6
14958 ac_func_search_save_LIBS=$LIBS
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14968 char uuid_unparse_lower ();
14972 return uuid_unparse_lower ();
14977 for ac_lib in '' uuid; do
14978 if test -z "$ac_lib"; then
14979 ac_res="none required"
14982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_search_uuid_unparse_lower=$ac_res
14987 rm -f core conftest.err conftest.$ac_objext \
14989 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14993 if ${ac_cv_search_uuid_unparse_lower+:} false; then :
14996 ac_cv_search_uuid_unparse_lower=no
14998 rm conftest.$ac_ext
14999 LIBS=$ac_func_search_save_LIBS
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_unparse_lower" >&5
15002 $as_echo "$ac_cv_search_uuid_unparse_lower" >&6; }
15003 ac_res=$ac_cv_search_uuid_unparse_lower
15004 if test "$ac_res" != no; then :
15005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15013 if test $have_uuid = yes ; then
15015 $as_echo "#define HAVE_UUID_GENERATE 1" >>confdefs.h
15018 test "$ac_cv_search_uuid_generate" = "none required" || \
15019 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
15024 if test $have_uuid = no ; then
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
15026 $as_echo_n "checking to see if -lrpcrt4 is needed for win32 UUID support... " >&6; }
15028 LIBS="$LIBS -lrpcrt4"
15029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h. */
15032 int __stdcall UuidCreate(void *);
15033 int __stdcall UuidToStringA(void *,void **);
15040 UuidToStringA(0,0);
15046 if ac_fn_c_try_link "$LINENO"; then :
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15053 if test $need_rpcrt = yes; then
15054 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_rpcrt" >&5
15058 $as_echo "$need_rpcrt" >&6; }
15061 ol_cv_lib_resolver=no
15062 if test $ol_cv_lib_resolver = no ; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (default)" >&5
15064 $as_echo_n "checking for resolver link (default)... " >&6; }
15065 if ${ol_cv_resolver_none+:} false; then :
15066 $as_echo_n "(cached) " >&6
15071 LIBS="$ol_RESOLVER_LIB $LIBS"
15073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15076 #ifdef HAVE_SYS_TYPES_H
15077 # include <sys/types.h>
15079 #include <netinet/in.h>
15080 #ifdef HAVE_ARPA_NAMESER_H
15081 # include <arpa/nameser.h>
15083 #ifdef HAVE_RESOLV_H
15084 # include <resolv.h>
15092 char *request = NULL;
15093 unsigned char reply[64*1024];
15094 unsigned char host[64*1024];
15098 /* Bind 8/9 interface */
15099 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15101 /* Bind 4 interface */
15105 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15109 /* Bind 8/9 interface */
15111 #elif defined(HFIXEDSZ)
15112 /* Bind 4 interface w/ HFIXEDSZ */
15115 /* Bind 4 interface w/o HFIXEDSZ */
15116 p += sizeof(HEADER);
15118 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15124 if ac_fn_c_try_link "$LINENO"; then :
15125 ol_cv_resolver_none=yes
15127 ol_cv_resolver_none=no
15129 rm -f core conftest.err conftest.$ac_objext \
15130 conftest$ac_exeext conftest.$ac_ext
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_none" >&5
15136 $as_echo "$ol_cv_resolver_none" >&6; }
15138 if test $ol_cv_resolver_none = yes ; then
15139 ol_cv_lib_resolver=yes
15143 if test $ol_cv_lib_resolver = no ; then
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lresolv)" >&5
15145 $as_echo_n "checking for resolver link (-lresolv)... " >&6; }
15146 if ${ol_cv_resolver_resolv+:} false; then :
15147 $as_echo_n "(cached) " >&6
15150 ol_RESOLVER_LIB=-lresolv
15152 LIBS="$ol_RESOLVER_LIB $LIBS"
15154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15155 /* end confdefs.h. */
15157 #ifdef HAVE_SYS_TYPES_H
15158 # include <sys/types.h>
15160 #include <netinet/in.h>
15161 #ifdef HAVE_ARPA_NAMESER_H
15162 # include <arpa/nameser.h>
15164 #ifdef HAVE_RESOLV_H
15165 # include <resolv.h>
15173 char *request = NULL;
15174 unsigned char reply[64*1024];
15175 unsigned char host[64*1024];
15179 /* Bind 8/9 interface */
15180 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15182 /* Bind 4 interface */
15186 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15190 /* Bind 8/9 interface */
15192 #elif defined(HFIXEDSZ)
15193 /* Bind 4 interface w/ HFIXEDSZ */
15196 /* Bind 4 interface w/o HFIXEDSZ */
15197 p += sizeof(HEADER);
15199 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15205 if ac_fn_c_try_link "$LINENO"; then :
15206 ol_cv_resolver_resolv=yes
15208 ol_cv_resolver_resolv=no
15210 rm -f core conftest.err conftest.$ac_objext \
15211 conftest$ac_exeext conftest.$ac_ext
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_resolv" >&5
15217 $as_echo "$ol_cv_resolver_resolv" >&6; }
15219 if test $ol_cv_resolver_resolv = yes ; then
15220 ol_cv_lib_resolver=-lresolv
15224 if test $ol_cv_lib_resolver = no ; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolver link (-lbind)" >&5
15226 $as_echo_n "checking for resolver link (-lbind)... " >&6; }
15227 if ${ol_cv_resolver_bind+:} false; then :
15228 $as_echo_n "(cached) " >&6
15231 ol_RESOLVER_LIB=-lbind
15233 LIBS="$ol_RESOLVER_LIB $LIBS"
15235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15238 #ifdef HAVE_SYS_TYPES_H
15239 # include <sys/types.h>
15241 #include <netinet/in.h>
15242 #ifdef HAVE_ARPA_NAMESER_H
15243 # include <arpa/nameser.h>
15245 #ifdef HAVE_RESOLV_H
15246 # include <resolv.h>
15254 char *request = NULL;
15255 unsigned char reply[64*1024];
15256 unsigned char host[64*1024];
15260 /* Bind 8/9 interface */
15261 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
15263 /* Bind 4 interface */
15267 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
15271 /* Bind 8/9 interface */
15273 #elif defined(HFIXEDSZ)
15274 /* Bind 4 interface w/ HFIXEDSZ */
15277 /* Bind 4 interface w/o HFIXEDSZ */
15278 p += sizeof(HEADER);
15280 status = dn_expand( reply, reply+len, p, host, sizeof(host));
15286 if ac_fn_c_try_link "$LINENO"; then :
15287 ol_cv_resolver_bind=yes
15289 ol_cv_resolver_bind=no
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_resolver_bind" >&5
15298 $as_echo "$ol_cv_resolver_bind" >&6; }
15300 if test $ol_cv_resolver_bind = yes ; then
15301 ol_cv_lib_resolver=-lbind
15308 if test "$ol_cv_lib_resolver" != no ; then
15310 $as_echo "#define HAVE_RES_QUERY 1" >>confdefs.h
15313 if test "$ol_enable_dnssrv" != no ; then
15317 if test "$ol_cv_lib_resolver" != yes ; then
15318 LIBS="$ol_cv_lib_resolver $LIBS"
15322 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
15323 if test "$ol_link_dnssrv" = no ; then
15324 as_fn_error $? "DNSSRV requires res_query()" "$LINENO" 5
15327 ol_enable_dnssrv=no
15330 for ac_func in hstrerror
15332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15333 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15334 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15335 cat >>confdefs.h <<_ACEOF
15336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15343 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
15345 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15347 if eval test \"x\$"$as_ac_var"\" = 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 ${ol_cv_inet6_addrstrlen+:} false; 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 ${ol_cv_struct_sockaddr_storage+:} false; 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 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15440 cat >>confdefs.h <<_ACEOF
15441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15449 if test $ol_enable_local = auto ; then
15450 ol_enable_local=$ac_cv_header_sys_un_h
15451 elif test $ac_cv_header_sys_un_h = no ; then
15452 as_fn_error $? "AF_LOCAL domain support requires sys/un.h" "$LINENO" 5
15457 if test $ol_with_tls = yes ; then
15462 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
15463 for ac_header in openssl/ssl.h
15465 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15466 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_OPENSSL_SSL_H 1
15476 if test $ac_cv_header_openssl_ssl_h = yes ; then
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
15478 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
15479 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
15480 $as_echo_n "(cached) " >&6
15482 ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lssl -lcrypto $LIBS"
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15487 /* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply. */
15493 char SSL_library_init ();
15497 return SSL_library_init ();
15502 if ac_fn_c_try_link "$LINENO"; then :
15503 ac_cv_lib_ssl_SSL_library_init=yes
15505 ac_cv_lib_ssl_SSL_library_init=no
15507 rm -f core conftest.err conftest.$ac_objext \
15508 conftest$ac_exeext conftest.$ac_ext
15509 LIBS=$ac_check_lib_save_LIBS
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
15512 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
15513 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
15521 if test $have_openssl = no ; then
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl3_accept in -lssl" >&5
15523 $as_echo_n "checking for ssl3_accept in -lssl... " >&6; }
15524 if ${ac_cv_lib_ssl_ssl3_accept+:} false; then :
15525 $as_echo_n "(cached) " >&6
15527 ac_check_lib_save_LIBS=$LIBS
15528 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15532 /* Override any GCC internal prototype to avoid an error.
15533 Use char because int might match the return type of a GCC
15534 builtin and then its argument prototype would still apply. */
15538 char ssl3_accept ();
15542 return ssl3_accept ();
15547 if ac_fn_c_try_link "$LINENO"; then :
15548 ac_cv_lib_ssl_ssl3_accept=yes
15550 ac_cv_lib_ssl_ssl3_accept=no
15552 rm -f core conftest.err conftest.$ac_objext \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_ssl3_accept" >&5
15557 $as_echo "$ac_cv_lib_ssl_ssl3_accept" >&6; }
15558 if test "x$ac_cv_lib_ssl_ssl3_accept" = xyes; then :
15567 if test $have_openssl = yes ; then
15568 ol_with_tls=openssl
15572 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
15575 if test $need_rsaref = yes; then
15577 $as_echo "#define HAVE_RSAREF 1" >>confdefs.h
15580 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
15582 TLS_LIBS="-lssl -lcrypto"
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL library version (CRL checking capability)" >&5
15586 $as_echo_n "checking OpenSSL library version (CRL checking capability)... " >&6; }
15587 if ${ol_cv_ssl_crl_compat+:} false; then :
15588 $as_echo_n "(cached) " >&6
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15594 #ifdef HAVE_OPENSSL_SSL_H
15595 #include <openssl/ssl.h>
15598 /* Require 0.9.7d+ */
15599 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
15600 char *__ssl_compat = "0.9.7d";
15604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15605 $EGREP "__ssl_compat" >/dev/null 2>&1; then :
15606 ol_cv_ssl_crl_compat=yes
15608 ol_cv_ssl_crl_compat=no
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_ssl_crl_compat" >&5
15614 $as_echo "$ol_cv_ssl_crl_compat" >&6; }
15616 if test $ol_cv_ssl_crl_compat = yes ; then
15618 $as_echo "#define HAVE_OPENSSL_CRL 1" >>confdefs.h
15625 if test $ol_link_tls = no ; then
15626 if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
15627 for ac_header in gnutls/gnutls.h
15629 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
15630 if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
15631 cat >>confdefs.h <<_ACEOF
15632 #define HAVE_GNUTLS_GNUTLS_H 1
15640 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
15642 $as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
15643 if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
15644 $as_echo_n "(cached) " >&6
15646 ac_check_lib_save_LIBS=$LIBS
15647 LIBS="-lgnutls $LIBS"
15648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15649 /* end confdefs.h. */
15651 /* Override any GCC internal prototype to avoid an error.
15652 Use char because int might match the return type of a GCC
15653 builtin and then its argument prototype would still apply. */
15657 char gnutls_init ();
15661 return gnutls_init ();
15666 if ac_fn_c_try_link "$LINENO"; then :
15667 ac_cv_lib_gnutls_gnutls_init=yes
15669 ac_cv_lib_gnutls_gnutls_init=no
15671 rm -f core conftest.err conftest.$ac_objext \
15672 conftest$ac_exeext conftest.$ac_ext
15673 LIBS=$ac_check_lib_save_LIBS
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
15676 $as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
15677 if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
15684 if test $have_gnutls = yes ; then
15688 TLS_LIBS="-lgnutls"
15691 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
15698 if test $ol_link_tls = no ; then
15699 if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
15701 for ac_header in nssutil.h
15703 ac_fn_c_check_header_mongrel "$LINENO" "nssutil.h" "ac_cv_header_nssutil_h" "$ac_includes_default"
15704 if test "x$ac_cv_header_nssutil_h" = xyes; then :
15705 cat >>confdefs.h <<_ACEOF
15706 #define HAVE_NSSUTIL_H 1
15713 if test "$ac_cv_header_nssutil_h" = yes ; then
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Initialize in -lnss3" >&5
15715 $as_echo_n "checking for NSS_Initialize in -lnss3... " >&6; }
15716 if ${ac_cv_lib_nss3_NSS_Initialize+:} false; then :
15717 $as_echo_n "(cached) " >&6
15719 ac_check_lib_save_LIBS=$LIBS
15720 LIBS="-lnss3 $LIBS"
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15730 char NSS_Initialize ();
15734 return NSS_Initialize ();
15739 if ac_fn_c_try_link "$LINENO"; then :
15740 ac_cv_lib_nss3_NSS_Initialize=yes
15742 ac_cv_lib_nss3_NSS_Initialize=no
15744 rm -f core conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
15749 $as_echo "$ac_cv_lib_nss3_NSS_Initialize" >&6; }
15750 if test "x$ac_cv_lib_nss3_NSS_Initialize" = xyes; then :
15758 if test "$have_moznss" = yes ; then
15762 $as_echo "#define HAVE_MOZNSS 1" >>confdefs.h
15764 TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
15766 if test $ol_with_tls = moznss ; then
15767 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
15774 if test $ol_link_tls = yes ; then
15776 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15779 elif test $ol_with_tls = auto ; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate TLS/SSL package" >&5
15781 $as_echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15783 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15784 elif test $ol_with_tls != no ; then
15785 as_fn_error $? "Could not locate TLS/SSL package" "$LINENO" 5
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: TLS data protection not supported!" >&5
15788 $as_echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
15791 if test $ol_enable_lmpasswd != no; then
15792 if test $ol_link_tls != yes ; then
15793 as_fn_error $? "LAN Manager passwords require OpenSSL" "$LINENO" 5
15797 $as_echo "#define SLAPD_LMHASH 1" >>confdefs.h
15803 case $ol_with_threads in auto | yes | nt)
15806 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
15807 if test "x$ac_cv_func__beginthread" = xyes; then :
15812 if test $ac_cv_func__beginthread = yes ; then
15814 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
15816 ol_cv_nt_threads=yes
15820 if test "$ol_cv_nt_threads" = yes ; then
15822 ol_with_threads=found
15823 ol_with_yielding_select=yes
15826 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
15829 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
15833 if test $ol_with_threads = nt ; then
15834 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
15839 case $ol_with_threads in auto | yes | posix)
15841 for ac_header in pthread.h
15843 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15844 if test "x$ac_cv_header_pthread_h" = xyes; then :
15845 cat >>confdefs.h <<_ACEOF
15846 #define HAVE_PTHREAD_H 1
15854 if test $ac_cv_header_pthread_h = yes ; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
15856 $as_echo_n "checking POSIX thread version... " >&6; }
15857 if ${ol_cv_pthread_version+:} false; then :
15858 $as_echo_n "(cached) " >&6
15861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15862 /* end confdefs.h. */
15864 # include <pthread.h>
15870 int i = PTHREAD_CREATE_JOINABLE;
15876 if ac_fn_c_try_compile "$LINENO"; then :
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 #include <pthread.h>
15883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15884 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15885 ol_cv_pthread_version=10
15887 ol_cv_pthread_version=8
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h. */
15896 # include <pthread.h>
15897 # ifdef PTHREAD_CREATE_UNDETACHED
15902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15903 $EGREP "draft7" >/dev/null 2>&1; then :
15904 ol_cv_pthread_version=7
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15909 #include <pthread.h>
15912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15913 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15914 ol_cv_pthread_version=6
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15920 # include <pthread.h>
15921 #ifdef PTHREAD_MUTEX_INITIALIZER
15926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15927 $EGREP "draft5" >/dev/null 2>&1; then :
15928 ol_cv_pthread_version=5
15930 ol_cv_pthread_version=4
15941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15945 $as_echo "$ol_cv_pthread_version" >&6; }
15948 if test $ol_cv_pthread_version != 0 ; then
15950 cat >>confdefs.h <<_ACEOF
15951 #define HAVE_PTHREADS $ol_cv_pthread_version
15955 as_fn_error $? "unknown pthread version" "$LINENO" 5
15958 # consider threads found
15959 ol_with_threads=found
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15963 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15964 if ${ol_cv_header_linux_threads+:} false; then :
15965 $as_echo_n "(cached) " >&6
15967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 #include <pthread.h>
15971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15972 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15973 ol_cv_header_linux_threads=yes
15975 ol_cv_header_linux_threads=no
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
15982 $as_echo "$ol_cv_header_linux_threads" >&6; }
15983 if test $ol_cv_header_linux_threads = yes; then
15985 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
15991 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
15992 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
15993 $as_echo_n "(cached) " >&6
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997 #include <pthread.h>
15998 #ifdef _POSIX_THREAD_IS_GNU_PTH
16003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16004 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
16005 ol_cv_header_gnu_pth_pthread_h=yes
16007 ol_cv_header_gnu_pth_pthread_h=no
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
16014 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
16017 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
16018 for ac_header in sched.h
16020 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
16021 if test "x$ac_cv_header_sched_h" = xyes; then :
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_SCHED_H 1
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
16034 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
16035 if ${ol_cv_pthread_create+:} false; then :
16036 $as_echo_n "(cached) " >&6
16039 if test "$cross_compiling" = yes; then :
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16043 /* pthread test headers */
16044 #include <pthread.h>
16045 #if HAVE_PTHREADS < 7
16049 #define NULL (void*)0
16052 static void *task(p)
16055 return (void *) (p == NULL);
16062 /* pthread test function */
16063 #ifndef PTHREAD_CREATE_DETACHED
16064 #define PTHREAD_CREATE_DETACHED 1
16068 int detach = PTHREAD_CREATE_DETACHED;
16070 #if HAVE_PTHREADS > 4
16071 /* Final pthreads */
16072 pthread_attr_t attr;
16074 status = pthread_attr_init(&attr);
16075 if( status ) return status;
16077 #if HAVE_PTHREADS < 7
16078 status = pthread_attr_setdetachstate(&attr, &detach);
16079 if( status < 0 ) status = errno;
16081 status = pthread_attr_setdetachstate(&attr, detach);
16083 if( status ) return status;
16084 status = pthread_create( &t, &attr, task, NULL );
16085 #if HAVE_PTHREADS < 7
16086 if( status < 0 ) status = errno;
16088 if( status ) return status;
16090 /* Draft 4 pthreads */
16091 status = pthread_create( &t, pthread_attr_default, task, NULL );
16092 if( status ) return errno;
16094 /* give thread a chance to complete */
16095 /* it should remain joinable and hence detachable */
16098 status = pthread_detach( &t );
16099 if( status ) return errno;
16102 #ifdef HAVE_LINUX_THREADS
16103 pthread_kill_other_threads_np();
16112 if ac_fn_c_try_link "$LINENO"; then :
16113 ol_cv_pthread_create=yes
16115 ol_cv_pthread_create=no
16117 rm -f core conftest.err conftest.$ac_objext \
16118 conftest$ac_exeext conftest.$ac_ext
16120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121 /* end confdefs.h. */
16123 /* pthread test headers */
16124 #include <pthread.h>
16125 #if HAVE_PTHREADS < 7
16129 #define NULL (void*)0
16132 static void *task(p)
16135 return (void *) (p == NULL);
16139 int main(argc, argv)
16144 /* pthread test function */
16145 #ifndef PTHREAD_CREATE_DETACHED
16146 #define PTHREAD_CREATE_DETACHED 1
16150 int detach = PTHREAD_CREATE_DETACHED;
16152 #if HAVE_PTHREADS > 4
16153 /* Final pthreads */
16154 pthread_attr_t attr;
16156 status = pthread_attr_init(&attr);
16157 if( status ) return status;
16159 #if HAVE_PTHREADS < 7
16160 status = pthread_attr_setdetachstate(&attr, &detach);
16161 if( status < 0 ) status = errno;
16163 status = pthread_attr_setdetachstate(&attr, detach);
16165 if( status ) return status;
16166 status = pthread_create( &t, &attr, task, NULL );
16167 #if HAVE_PTHREADS < 7
16168 if( status < 0 ) status = errno;
16170 if( status ) return status;
16172 /* Draft 4 pthreads */
16173 status = pthread_create( &t, pthread_attr_default, task, NULL );
16174 if( status ) return errno;
16176 /* give thread a chance to complete */
16177 /* it should remain joinable and hence detachable */
16180 status = pthread_detach( &t );
16181 if( status ) return errno;
16184 #ifdef HAVE_LINUX_THREADS
16185 pthread_kill_other_threads_np();
16193 if ac_fn_c_try_run "$LINENO"; then :
16194 ol_cv_pthread_create=yes
16196 ol_cv_pthread_create=no
16198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16199 conftest.$ac_objext conftest.beam conftest.$ac_ext
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
16204 $as_echo "$ol_cv_pthread_create" >&6; }
16206 if test $ol_cv_pthread_create != no ; then
16207 ol_link_threads=posix
16208 ol_link_pthreads=""
16211 # Pthread try link: -kthread (ol_cv_pthread_kthread)
16212 if test "$ol_link_threads" = no ; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
16215 $as_echo_n "checking for pthread link with -kthread... " >&6; }
16216 if ${ol_cv_pthread_kthread+:} false; then :
16217 $as_echo_n "(cached) " >&6
16222 LIBS="-kthread $LIBS"
16224 if test "$cross_compiling" = yes; then :
16225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16226 /* end confdefs.h. */
16228 /* pthread test headers */
16229 #include <pthread.h>
16230 #if HAVE_PTHREADS < 7
16234 #define NULL (void*)0
16237 static void *task(p)
16240 return (void *) (p == NULL);
16247 /* pthread test function */
16248 #ifndef PTHREAD_CREATE_DETACHED
16249 #define PTHREAD_CREATE_DETACHED 1
16253 int detach = PTHREAD_CREATE_DETACHED;
16255 #if HAVE_PTHREADS > 4
16256 /* Final pthreads */
16257 pthread_attr_t attr;
16259 status = pthread_attr_init(&attr);
16260 if( status ) return status;
16262 #if HAVE_PTHREADS < 7
16263 status = pthread_attr_setdetachstate(&attr, &detach);
16264 if( status < 0 ) status = errno;
16266 status = pthread_attr_setdetachstate(&attr, detach);
16268 if( status ) return status;
16269 status = pthread_create( &t, &attr, task, NULL );
16270 #if HAVE_PTHREADS < 7
16271 if( status < 0 ) status = errno;
16273 if( status ) return status;
16275 /* Draft 4 pthreads */
16276 status = pthread_create( &t, pthread_attr_default, task, NULL );
16277 if( status ) return errno;
16279 /* give thread a chance to complete */
16280 /* it should remain joinable and hence detachable */
16283 status = pthread_detach( &t );
16284 if( status ) return errno;
16287 #ifdef HAVE_LINUX_THREADS
16288 pthread_kill_other_threads_np();
16297 if ac_fn_c_try_link "$LINENO"; then :
16298 ol_cv_pthread_kthread=yes
16300 ol_cv_pthread_kthread=no
16302 rm -f core conftest.err conftest.$ac_objext \
16303 conftest$ac_exeext conftest.$ac_ext
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16308 /* pthread test headers */
16309 #include <pthread.h>
16310 #if HAVE_PTHREADS < 7
16314 #define NULL (void*)0
16317 static void *task(p)
16320 return (void *) (p == NULL);
16324 int main(argc, argv)
16329 /* pthread test function */
16330 #ifndef PTHREAD_CREATE_DETACHED
16331 #define PTHREAD_CREATE_DETACHED 1
16335 int detach = PTHREAD_CREATE_DETACHED;
16337 #if HAVE_PTHREADS > 4
16338 /* Final pthreads */
16339 pthread_attr_t attr;
16341 status = pthread_attr_init(&attr);
16342 if( status ) return status;
16344 #if HAVE_PTHREADS < 7
16345 status = pthread_attr_setdetachstate(&attr, &detach);
16346 if( status < 0 ) status = errno;
16348 status = pthread_attr_setdetachstate(&attr, detach);
16350 if( status ) return status;
16351 status = pthread_create( &t, &attr, task, NULL );
16352 #if HAVE_PTHREADS < 7
16353 if( status < 0 ) status = errno;
16355 if( status ) return status;
16357 /* Draft 4 pthreads */
16358 status = pthread_create( &t, pthread_attr_default, task, NULL );
16359 if( status ) return errno;
16361 /* give thread a chance to complete */
16362 /* it should remain joinable and hence detachable */
16365 status = pthread_detach( &t );
16366 if( status ) return errno;
16369 #ifdef HAVE_LINUX_THREADS
16370 pthread_kill_other_threads_np();
16378 if ac_fn_c_try_run "$LINENO"; then :
16379 ol_cv_pthread_kthread=yes
16381 ol_cv_pthread_kthread=no
16383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16384 conftest.$ac_objext conftest.beam conftest.$ac_ext
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
16393 $as_echo "$ol_cv_pthread_kthread" >&6; }
16395 if test $ol_cv_pthread_kthread = yes ; then
16396 ol_link_pthreads="-kthread"
16397 ol_link_threads=posix
16401 # Pthread try link: -pthread (ol_cv_pthread_pthread)
16402 if test "$ol_link_threads" = no ; then
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
16405 $as_echo_n "checking for pthread link with -pthread... " >&6; }
16406 if ${ol_cv_pthread_pthread+:} false; then :
16407 $as_echo_n "(cached) " >&6
16412 LIBS="-pthread $LIBS"
16414 if test "$cross_compiling" = yes; then :
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16418 /* pthread test headers */
16419 #include <pthread.h>
16420 #if HAVE_PTHREADS < 7
16424 #define NULL (void*)0
16427 static void *task(p)
16430 return (void *) (p == NULL);
16437 /* pthread test function */
16438 #ifndef PTHREAD_CREATE_DETACHED
16439 #define PTHREAD_CREATE_DETACHED 1
16443 int detach = PTHREAD_CREATE_DETACHED;
16445 #if HAVE_PTHREADS > 4
16446 /* Final pthreads */
16447 pthread_attr_t attr;
16449 status = pthread_attr_init(&attr);
16450 if( status ) return status;
16452 #if HAVE_PTHREADS < 7
16453 status = pthread_attr_setdetachstate(&attr, &detach);
16454 if( status < 0 ) status = errno;
16456 status = pthread_attr_setdetachstate(&attr, detach);
16458 if( status ) return status;
16459 status = pthread_create( &t, &attr, task, NULL );
16460 #if HAVE_PTHREADS < 7
16461 if( status < 0 ) status = errno;
16463 if( status ) return status;
16465 /* Draft 4 pthreads */
16466 status = pthread_create( &t, pthread_attr_default, task, NULL );
16467 if( status ) return errno;
16469 /* give thread a chance to complete */
16470 /* it should remain joinable and hence detachable */
16473 status = pthread_detach( &t );
16474 if( status ) return errno;
16477 #ifdef HAVE_LINUX_THREADS
16478 pthread_kill_other_threads_np();
16487 if ac_fn_c_try_link "$LINENO"; then :
16488 ol_cv_pthread_pthread=yes
16490 ol_cv_pthread_pthread=no
16492 rm -f core conftest.err conftest.$ac_objext \
16493 conftest$ac_exeext conftest.$ac_ext
16495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16496 /* end confdefs.h. */
16498 /* pthread test headers */
16499 #include <pthread.h>
16500 #if HAVE_PTHREADS < 7
16504 #define NULL (void*)0
16507 static void *task(p)
16510 return (void *) (p == NULL);
16514 int main(argc, argv)
16519 /* pthread test function */
16520 #ifndef PTHREAD_CREATE_DETACHED
16521 #define PTHREAD_CREATE_DETACHED 1
16525 int detach = PTHREAD_CREATE_DETACHED;
16527 #if HAVE_PTHREADS > 4
16528 /* Final pthreads */
16529 pthread_attr_t attr;
16531 status = pthread_attr_init(&attr);
16532 if( status ) return status;
16534 #if HAVE_PTHREADS < 7
16535 status = pthread_attr_setdetachstate(&attr, &detach);
16536 if( status < 0 ) status = errno;
16538 status = pthread_attr_setdetachstate(&attr, detach);
16540 if( status ) return status;
16541 status = pthread_create( &t, &attr, task, NULL );
16542 #if HAVE_PTHREADS < 7
16543 if( status < 0 ) status = errno;
16545 if( status ) return status;
16547 /* Draft 4 pthreads */
16548 status = pthread_create( &t, pthread_attr_default, task, NULL );
16549 if( status ) return errno;
16551 /* give thread a chance to complete */
16552 /* it should remain joinable and hence detachable */
16555 status = pthread_detach( &t );
16556 if( status ) return errno;
16559 #ifdef HAVE_LINUX_THREADS
16560 pthread_kill_other_threads_np();
16568 if ac_fn_c_try_run "$LINENO"; then :
16569 ol_cv_pthread_pthread=yes
16571 ol_cv_pthread_pthread=no
16573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16574 conftest.$ac_objext conftest.beam conftest.$ac_ext
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
16583 $as_echo "$ol_cv_pthread_pthread" >&6; }
16585 if test $ol_cv_pthread_pthread = yes ; then
16586 ol_link_pthreads="-pthread"
16587 ol_link_threads=posix
16591 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
16592 if test "$ol_link_threads" = no ; then
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
16595 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
16596 if ${ol_cv_pthread_pthreads+:} false; then :
16597 $as_echo_n "(cached) " >&6
16602 LIBS="-pthreads $LIBS"
16604 if test "$cross_compiling" = yes; then :
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16608 /* pthread test headers */
16609 #include <pthread.h>
16610 #if HAVE_PTHREADS < 7
16614 #define NULL (void*)0
16617 static void *task(p)
16620 return (void *) (p == NULL);
16627 /* pthread test function */
16628 #ifndef PTHREAD_CREATE_DETACHED
16629 #define PTHREAD_CREATE_DETACHED 1
16633 int detach = PTHREAD_CREATE_DETACHED;
16635 #if HAVE_PTHREADS > 4
16636 /* Final pthreads */
16637 pthread_attr_t attr;
16639 status = pthread_attr_init(&attr);
16640 if( status ) return status;
16642 #if HAVE_PTHREADS < 7
16643 status = pthread_attr_setdetachstate(&attr, &detach);
16644 if( status < 0 ) status = errno;
16646 status = pthread_attr_setdetachstate(&attr, detach);
16648 if( status ) return status;
16649 status = pthread_create( &t, &attr, task, NULL );
16650 #if HAVE_PTHREADS < 7
16651 if( status < 0 ) status = errno;
16653 if( status ) return status;
16655 /* Draft 4 pthreads */
16656 status = pthread_create( &t, pthread_attr_default, task, NULL );
16657 if( status ) return errno;
16659 /* give thread a chance to complete */
16660 /* it should remain joinable and hence detachable */
16663 status = pthread_detach( &t );
16664 if( status ) return errno;
16667 #ifdef HAVE_LINUX_THREADS
16668 pthread_kill_other_threads_np();
16677 if ac_fn_c_try_link "$LINENO"; then :
16678 ol_cv_pthread_pthreads=yes
16680 ol_cv_pthread_pthreads=no
16682 rm -f core conftest.err conftest.$ac_objext \
16683 conftest$ac_exeext conftest.$ac_ext
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16688 /* pthread test headers */
16689 #include <pthread.h>
16690 #if HAVE_PTHREADS < 7
16694 #define NULL (void*)0
16697 static void *task(p)
16700 return (void *) (p == NULL);
16704 int main(argc, argv)
16709 /* pthread test function */
16710 #ifndef PTHREAD_CREATE_DETACHED
16711 #define PTHREAD_CREATE_DETACHED 1
16715 int detach = PTHREAD_CREATE_DETACHED;
16717 #if HAVE_PTHREADS > 4
16718 /* Final pthreads */
16719 pthread_attr_t attr;
16721 status = pthread_attr_init(&attr);
16722 if( status ) return status;
16724 #if HAVE_PTHREADS < 7
16725 status = pthread_attr_setdetachstate(&attr, &detach);
16726 if( status < 0 ) status = errno;
16728 status = pthread_attr_setdetachstate(&attr, detach);
16730 if( status ) return status;
16731 status = pthread_create( &t, &attr, task, NULL );
16732 #if HAVE_PTHREADS < 7
16733 if( status < 0 ) status = errno;
16735 if( status ) return status;
16737 /* Draft 4 pthreads */
16738 status = pthread_create( &t, pthread_attr_default, task, NULL );
16739 if( status ) return errno;
16741 /* give thread a chance to complete */
16742 /* it should remain joinable and hence detachable */
16745 status = pthread_detach( &t );
16746 if( status ) return errno;
16749 #ifdef HAVE_LINUX_THREADS
16750 pthread_kill_other_threads_np();
16758 if ac_fn_c_try_run "$LINENO"; then :
16759 ol_cv_pthread_pthreads=yes
16761 ol_cv_pthread_pthreads=no
16763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16764 conftest.$ac_objext conftest.beam conftest.$ac_ext
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
16773 $as_echo "$ol_cv_pthread_pthreads" >&6; }
16775 if test $ol_cv_pthread_pthreads = yes ; then
16776 ol_link_pthreads="-pthreads"
16777 ol_link_threads=posix
16781 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
16782 if test "$ol_link_threads" = no ; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
16785 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
16786 if ${ol_cv_pthread_mthreads+:} false; then :
16787 $as_echo_n "(cached) " >&6
16792 LIBS="-mthreads $LIBS"
16794 if test "$cross_compiling" = yes; then :
16795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16796 /* end confdefs.h. */
16798 /* pthread test headers */
16799 #include <pthread.h>
16800 #if HAVE_PTHREADS < 7
16804 #define NULL (void*)0
16807 static void *task(p)
16810 return (void *) (p == NULL);
16817 /* pthread test function */
16818 #ifndef PTHREAD_CREATE_DETACHED
16819 #define PTHREAD_CREATE_DETACHED 1
16823 int detach = PTHREAD_CREATE_DETACHED;
16825 #if HAVE_PTHREADS > 4
16826 /* Final pthreads */
16827 pthread_attr_t attr;
16829 status = pthread_attr_init(&attr);
16830 if( status ) return status;
16832 #if HAVE_PTHREADS < 7
16833 status = pthread_attr_setdetachstate(&attr, &detach);
16834 if( status < 0 ) status = errno;
16836 status = pthread_attr_setdetachstate(&attr, detach);
16838 if( status ) return status;
16839 status = pthread_create( &t, &attr, task, NULL );
16840 #if HAVE_PTHREADS < 7
16841 if( status < 0 ) status = errno;
16843 if( status ) return status;
16845 /* Draft 4 pthreads */
16846 status = pthread_create( &t, pthread_attr_default, task, NULL );
16847 if( status ) return errno;
16849 /* give thread a chance to complete */
16850 /* it should remain joinable and hence detachable */
16853 status = pthread_detach( &t );
16854 if( status ) return errno;
16857 #ifdef HAVE_LINUX_THREADS
16858 pthread_kill_other_threads_np();
16867 if ac_fn_c_try_link "$LINENO"; then :
16868 ol_cv_pthread_mthreads=yes
16870 ol_cv_pthread_mthreads=no
16872 rm -f core conftest.err conftest.$ac_objext \
16873 conftest$ac_exeext conftest.$ac_ext
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16878 /* pthread test headers */
16879 #include <pthread.h>
16880 #if HAVE_PTHREADS < 7
16884 #define NULL (void*)0
16887 static void *task(p)
16890 return (void *) (p == NULL);
16894 int main(argc, argv)
16899 /* pthread test function */
16900 #ifndef PTHREAD_CREATE_DETACHED
16901 #define PTHREAD_CREATE_DETACHED 1
16905 int detach = PTHREAD_CREATE_DETACHED;
16907 #if HAVE_PTHREADS > 4
16908 /* Final pthreads */
16909 pthread_attr_t attr;
16911 status = pthread_attr_init(&attr);
16912 if( status ) return status;
16914 #if HAVE_PTHREADS < 7
16915 status = pthread_attr_setdetachstate(&attr, &detach);
16916 if( status < 0 ) status = errno;
16918 status = pthread_attr_setdetachstate(&attr, detach);
16920 if( status ) return status;
16921 status = pthread_create( &t, &attr, task, NULL );
16922 #if HAVE_PTHREADS < 7
16923 if( status < 0 ) status = errno;
16925 if( status ) return status;
16927 /* Draft 4 pthreads */
16928 status = pthread_create( &t, pthread_attr_default, task, NULL );
16929 if( status ) return errno;
16931 /* give thread a chance to complete */
16932 /* it should remain joinable and hence detachable */
16935 status = pthread_detach( &t );
16936 if( status ) return errno;
16939 #ifdef HAVE_LINUX_THREADS
16940 pthread_kill_other_threads_np();
16948 if ac_fn_c_try_run "$LINENO"; then :
16949 ol_cv_pthread_mthreads=yes
16951 ol_cv_pthread_mthreads=no
16953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16954 conftest.$ac_objext conftest.beam conftest.$ac_ext
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16963 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16965 if test $ol_cv_pthread_mthreads = yes ; then
16966 ol_link_pthreads="-mthreads"
16967 ol_link_threads=posix
16971 # Pthread try link: -thread (ol_cv_pthread_thread)
16972 if test "$ol_link_threads" = no ; then
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16975 $as_echo_n "checking for pthread link with -thread... " >&6; }
16976 if ${ol_cv_pthread_thread+:} false; then :
16977 $as_echo_n "(cached) " >&6
16982 LIBS="-thread $LIBS"
16984 if test "$cross_compiling" = yes; then :
16985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16986 /* end confdefs.h. */
16988 /* pthread test headers */
16989 #include <pthread.h>
16990 #if HAVE_PTHREADS < 7
16994 #define NULL (void*)0
16997 static void *task(p)
17000 return (void *) (p == NULL);
17007 /* pthread test function */
17008 #ifndef PTHREAD_CREATE_DETACHED
17009 #define PTHREAD_CREATE_DETACHED 1
17013 int detach = PTHREAD_CREATE_DETACHED;
17015 #if HAVE_PTHREADS > 4
17016 /* Final pthreads */
17017 pthread_attr_t attr;
17019 status = pthread_attr_init(&attr);
17020 if( status ) return status;
17022 #if HAVE_PTHREADS < 7
17023 status = pthread_attr_setdetachstate(&attr, &detach);
17024 if( status < 0 ) status = errno;
17026 status = pthread_attr_setdetachstate(&attr, detach);
17028 if( status ) return status;
17029 status = pthread_create( &t, &attr, task, NULL );
17030 #if HAVE_PTHREADS < 7
17031 if( status < 0 ) status = errno;
17033 if( status ) return status;
17035 /* Draft 4 pthreads */
17036 status = pthread_create( &t, pthread_attr_default, task, NULL );
17037 if( status ) return errno;
17039 /* give thread a chance to complete */
17040 /* it should remain joinable and hence detachable */
17043 status = pthread_detach( &t );
17044 if( status ) return errno;
17047 #ifdef HAVE_LINUX_THREADS
17048 pthread_kill_other_threads_np();
17057 if ac_fn_c_try_link "$LINENO"; then :
17058 ol_cv_pthread_thread=yes
17060 ol_cv_pthread_thread=no
17062 rm -f core conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17066 /* end confdefs.h. */
17068 /* pthread test headers */
17069 #include <pthread.h>
17070 #if HAVE_PTHREADS < 7
17074 #define NULL (void*)0
17077 static void *task(p)
17080 return (void *) (p == NULL);
17084 int main(argc, argv)
17089 /* pthread test function */
17090 #ifndef PTHREAD_CREATE_DETACHED
17091 #define PTHREAD_CREATE_DETACHED 1
17095 int detach = PTHREAD_CREATE_DETACHED;
17097 #if HAVE_PTHREADS > 4
17098 /* Final pthreads */
17099 pthread_attr_t attr;
17101 status = pthread_attr_init(&attr);
17102 if( status ) return status;
17104 #if HAVE_PTHREADS < 7
17105 status = pthread_attr_setdetachstate(&attr, &detach);
17106 if( status < 0 ) status = errno;
17108 status = pthread_attr_setdetachstate(&attr, detach);
17110 if( status ) return status;
17111 status = pthread_create( &t, &attr, task, NULL );
17112 #if HAVE_PTHREADS < 7
17113 if( status < 0 ) status = errno;
17115 if( status ) return status;
17117 /* Draft 4 pthreads */
17118 status = pthread_create( &t, pthread_attr_default, task, NULL );
17119 if( status ) return errno;
17121 /* give thread a chance to complete */
17122 /* it should remain joinable and hence detachable */
17125 status = pthread_detach( &t );
17126 if( status ) return errno;
17129 #ifdef HAVE_LINUX_THREADS
17130 pthread_kill_other_threads_np();
17138 if ac_fn_c_try_run "$LINENO"; then :
17139 ol_cv_pthread_thread=yes
17141 ol_cv_pthread_thread=no
17143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17144 conftest.$ac_objext conftest.beam conftest.$ac_ext
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
17153 $as_echo "$ol_cv_pthread_thread" >&6; }
17155 if test $ol_cv_pthread_thread = yes ; then
17156 ol_link_pthreads="-thread"
17157 ol_link_threads=posix
17162 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
17163 if test "$ol_link_threads" = no ; then
17164 # try -lpthread -lmach -lexc -lc_r
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
17166 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
17167 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
17168 $as_echo_n "(cached) " >&6
17173 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
17175 if test "$cross_compiling" = yes; then :
17176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17177 /* end confdefs.h. */
17179 /* pthread test headers */
17180 #include <pthread.h>
17181 #if HAVE_PTHREADS < 7
17185 #define NULL (void*)0
17188 static void *task(p)
17191 return (void *) (p == NULL);
17198 /* pthread test function */
17199 #ifndef PTHREAD_CREATE_DETACHED
17200 #define PTHREAD_CREATE_DETACHED 1
17204 int detach = PTHREAD_CREATE_DETACHED;
17206 #if HAVE_PTHREADS > 4
17207 /* Final pthreads */
17208 pthread_attr_t attr;
17210 status = pthread_attr_init(&attr);
17211 if( status ) return status;
17213 #if HAVE_PTHREADS < 7
17214 status = pthread_attr_setdetachstate(&attr, &detach);
17215 if( status < 0 ) status = errno;
17217 status = pthread_attr_setdetachstate(&attr, detach);
17219 if( status ) return status;
17220 status = pthread_create( &t, &attr, task, NULL );
17221 #if HAVE_PTHREADS < 7
17222 if( status < 0 ) status = errno;
17224 if( status ) return status;
17226 /* Draft 4 pthreads */
17227 status = pthread_create( &t, pthread_attr_default, task, NULL );
17228 if( status ) return errno;
17230 /* give thread a chance to complete */
17231 /* it should remain joinable and hence detachable */
17234 status = pthread_detach( &t );
17235 if( status ) return errno;
17238 #ifdef HAVE_LINUX_THREADS
17239 pthread_kill_other_threads_np();
17248 if ac_fn_c_try_link "$LINENO"; then :
17249 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17251 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17253 rm -f core conftest.err conftest.$ac_objext \
17254 conftest$ac_exeext conftest.$ac_ext
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17259 /* pthread test headers */
17260 #include <pthread.h>
17261 #if HAVE_PTHREADS < 7
17265 #define NULL (void*)0
17268 static void *task(p)
17271 return (void *) (p == NULL);
17275 int main(argc, argv)
17280 /* pthread test function */
17281 #ifndef PTHREAD_CREATE_DETACHED
17282 #define PTHREAD_CREATE_DETACHED 1
17286 int detach = PTHREAD_CREATE_DETACHED;
17288 #if HAVE_PTHREADS > 4
17289 /* Final pthreads */
17290 pthread_attr_t attr;
17292 status = pthread_attr_init(&attr);
17293 if( status ) return status;
17295 #if HAVE_PTHREADS < 7
17296 status = pthread_attr_setdetachstate(&attr, &detach);
17297 if( status < 0 ) status = errno;
17299 status = pthread_attr_setdetachstate(&attr, detach);
17301 if( status ) return status;
17302 status = pthread_create( &t, &attr, task, NULL );
17303 #if HAVE_PTHREADS < 7
17304 if( status < 0 ) status = errno;
17306 if( status ) return status;
17308 /* Draft 4 pthreads */
17309 status = pthread_create( &t, pthread_attr_default, task, NULL );
17310 if( status ) return errno;
17312 /* give thread a chance to complete */
17313 /* it should remain joinable and hence detachable */
17316 status = pthread_detach( &t );
17317 if( status ) return errno;
17320 #ifdef HAVE_LINUX_THREADS
17321 pthread_kill_other_threads_np();
17329 if ac_fn_c_try_run "$LINENO"; then :
17330 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
17332 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
17334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17335 conftest.$ac_objext conftest.beam conftest.$ac_ext
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
17344 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
17346 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
17347 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
17348 ol_link_threads=posix
17352 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
17353 if test "$ol_link_threads" = no ; then
17354 # try -lpthread -lmach -lexc
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
17356 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
17357 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
17358 $as_echo_n "(cached) " >&6
17363 LIBS="-lpthread -lmach -lexc $LIBS"
17365 if test "$cross_compiling" = yes; then :
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17369 /* pthread test headers */
17370 #include <pthread.h>
17371 #if HAVE_PTHREADS < 7
17375 #define NULL (void*)0
17378 static void *task(p)
17381 return (void *) (p == NULL);
17388 /* pthread test function */
17389 #ifndef PTHREAD_CREATE_DETACHED
17390 #define PTHREAD_CREATE_DETACHED 1
17394 int detach = PTHREAD_CREATE_DETACHED;
17396 #if HAVE_PTHREADS > 4
17397 /* Final pthreads */
17398 pthread_attr_t attr;
17400 status = pthread_attr_init(&attr);
17401 if( status ) return status;
17403 #if HAVE_PTHREADS < 7
17404 status = pthread_attr_setdetachstate(&attr, &detach);
17405 if( status < 0 ) status = errno;
17407 status = pthread_attr_setdetachstate(&attr, detach);
17409 if( status ) return status;
17410 status = pthread_create( &t, &attr, task, NULL );
17411 #if HAVE_PTHREADS < 7
17412 if( status < 0 ) status = errno;
17414 if( status ) return status;
17416 /* Draft 4 pthreads */
17417 status = pthread_create( &t, pthread_attr_default, task, NULL );
17418 if( status ) return errno;
17420 /* give thread a chance to complete */
17421 /* it should remain joinable and hence detachable */
17424 status = pthread_detach( &t );
17425 if( status ) return errno;
17428 #ifdef HAVE_LINUX_THREADS
17429 pthread_kill_other_threads_np();
17438 if ac_fn_c_try_link "$LINENO"; then :
17439 ol_cv_pthread_lpthread_lmach_lexc=yes
17441 ol_cv_pthread_lpthread_lmach_lexc=no
17443 rm -f core conftest.err conftest.$ac_objext \
17444 conftest$ac_exeext conftest.$ac_ext
17446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17447 /* end confdefs.h. */
17449 /* pthread test headers */
17450 #include <pthread.h>
17451 #if HAVE_PTHREADS < 7
17455 #define NULL (void*)0
17458 static void *task(p)
17461 return (void *) (p == NULL);
17465 int main(argc, argv)
17470 /* pthread test function */
17471 #ifndef PTHREAD_CREATE_DETACHED
17472 #define PTHREAD_CREATE_DETACHED 1
17476 int detach = PTHREAD_CREATE_DETACHED;
17478 #if HAVE_PTHREADS > 4
17479 /* Final pthreads */
17480 pthread_attr_t attr;
17482 status = pthread_attr_init(&attr);
17483 if( status ) return status;
17485 #if HAVE_PTHREADS < 7
17486 status = pthread_attr_setdetachstate(&attr, &detach);
17487 if( status < 0 ) status = errno;
17489 status = pthread_attr_setdetachstate(&attr, detach);
17491 if( status ) return status;
17492 status = pthread_create( &t, &attr, task, NULL );
17493 #if HAVE_PTHREADS < 7
17494 if( status < 0 ) status = errno;
17496 if( status ) return status;
17498 /* Draft 4 pthreads */
17499 status = pthread_create( &t, pthread_attr_default, task, NULL );
17500 if( status ) return errno;
17502 /* give thread a chance to complete */
17503 /* it should remain joinable and hence detachable */
17506 status = pthread_detach( &t );
17507 if( status ) return errno;
17510 #ifdef HAVE_LINUX_THREADS
17511 pthread_kill_other_threads_np();
17519 if ac_fn_c_try_run "$LINENO"; then :
17520 ol_cv_pthread_lpthread_lmach_lexc=yes
17522 ol_cv_pthread_lpthread_lmach_lexc=no
17524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17525 conftest.$ac_objext conftest.beam conftest.$ac_ext
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
17534 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
17536 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
17537 ol_link_pthreads="-lpthread -lmach -lexc"
17538 ol_link_threads=posix
17543 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
17544 if test "$ol_link_threads" = no ; then
17545 # try -lpthread -Wl,-woff,85
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
17547 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
17548 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
17549 $as_echo_n "(cached) " >&6
17554 LIBS="-lpthread -Wl,-woff,85 $LIBS"
17556 if test "$cross_compiling" = yes; then :
17557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17558 /* end confdefs.h. */
17560 /* pthread test headers */
17561 #include <pthread.h>
17562 #if HAVE_PTHREADS < 7
17566 #define NULL (void*)0
17569 static void *task(p)
17572 return (void *) (p == NULL);
17579 /* pthread test function */
17580 #ifndef PTHREAD_CREATE_DETACHED
17581 #define PTHREAD_CREATE_DETACHED 1
17585 int detach = PTHREAD_CREATE_DETACHED;
17587 #if HAVE_PTHREADS > 4
17588 /* Final pthreads */
17589 pthread_attr_t attr;
17591 status = pthread_attr_init(&attr);
17592 if( status ) return status;
17594 #if HAVE_PTHREADS < 7
17595 status = pthread_attr_setdetachstate(&attr, &detach);
17596 if( status < 0 ) status = errno;
17598 status = pthread_attr_setdetachstate(&attr, detach);
17600 if( status ) return status;
17601 status = pthread_create( &t, &attr, task, NULL );
17602 #if HAVE_PTHREADS < 7
17603 if( status < 0 ) status = errno;
17605 if( status ) return status;
17607 /* Draft 4 pthreads */
17608 status = pthread_create( &t, pthread_attr_default, task, NULL );
17609 if( status ) return errno;
17611 /* give thread a chance to complete */
17612 /* it should remain joinable and hence detachable */
17615 status = pthread_detach( &t );
17616 if( status ) return errno;
17619 #ifdef HAVE_LINUX_THREADS
17620 pthread_kill_other_threads_np();
17629 if ac_fn_c_try_link "$LINENO"; then :
17630 ol_cv_pthread_lib_lpthread_woff=yes
17632 ol_cv_pthread_lib_lpthread_woff=no
17634 rm -f core conftest.err conftest.$ac_objext \
17635 conftest$ac_exeext conftest.$ac_ext
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17640 /* pthread test headers */
17641 #include <pthread.h>
17642 #if HAVE_PTHREADS < 7
17646 #define NULL (void*)0
17649 static void *task(p)
17652 return (void *) (p == NULL);
17656 int main(argc, argv)
17661 /* pthread test function */
17662 #ifndef PTHREAD_CREATE_DETACHED
17663 #define PTHREAD_CREATE_DETACHED 1
17667 int detach = PTHREAD_CREATE_DETACHED;
17669 #if HAVE_PTHREADS > 4
17670 /* Final pthreads */
17671 pthread_attr_t attr;
17673 status = pthread_attr_init(&attr);
17674 if( status ) return status;
17676 #if HAVE_PTHREADS < 7
17677 status = pthread_attr_setdetachstate(&attr, &detach);
17678 if( status < 0 ) status = errno;
17680 status = pthread_attr_setdetachstate(&attr, detach);
17682 if( status ) return status;
17683 status = pthread_create( &t, &attr, task, NULL );
17684 #if HAVE_PTHREADS < 7
17685 if( status < 0 ) status = errno;
17687 if( status ) return status;
17689 /* Draft 4 pthreads */
17690 status = pthread_create( &t, pthread_attr_default, task, NULL );
17691 if( status ) return errno;
17693 /* give thread a chance to complete */
17694 /* it should remain joinable and hence detachable */
17697 status = pthread_detach( &t );
17698 if( status ) return errno;
17701 #ifdef HAVE_LINUX_THREADS
17702 pthread_kill_other_threads_np();
17710 if ac_fn_c_try_run "$LINENO"; then :
17711 ol_cv_pthread_lib_lpthread_woff=yes
17713 ol_cv_pthread_lib_lpthread_woff=no
17715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17716 conftest.$ac_objext conftest.beam conftest.$ac_ext
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
17725 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
17727 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
17728 ol_link_pthreads="-lpthread -Wl,-woff,85"
17729 ol_link_threads=posix
17734 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
17735 if test "$ol_link_threads" = no ; then
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
17738 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
17739 if ${ol_cv_pthread_lpthread+:} false; then :
17740 $as_echo_n "(cached) " >&6
17745 LIBS="-lpthread $LIBS"
17747 if test "$cross_compiling" = yes; then :
17748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h. */
17751 /* pthread test headers */
17752 #include <pthread.h>
17753 #if HAVE_PTHREADS < 7
17757 #define NULL (void*)0
17760 static void *task(p)
17763 return (void *) (p == NULL);
17770 /* pthread test function */
17771 #ifndef PTHREAD_CREATE_DETACHED
17772 #define PTHREAD_CREATE_DETACHED 1
17776 int detach = PTHREAD_CREATE_DETACHED;
17778 #if HAVE_PTHREADS > 4
17779 /* Final pthreads */
17780 pthread_attr_t attr;
17782 status = pthread_attr_init(&attr);
17783 if( status ) return status;
17785 #if HAVE_PTHREADS < 7
17786 status = pthread_attr_setdetachstate(&attr, &detach);
17787 if( status < 0 ) status = errno;
17789 status = pthread_attr_setdetachstate(&attr, detach);
17791 if( status ) return status;
17792 status = pthread_create( &t, &attr, task, NULL );
17793 #if HAVE_PTHREADS < 7
17794 if( status < 0 ) status = errno;
17796 if( status ) return status;
17798 /* Draft 4 pthreads */
17799 status = pthread_create( &t, pthread_attr_default, task, NULL );
17800 if( status ) return errno;
17802 /* give thread a chance to complete */
17803 /* it should remain joinable and hence detachable */
17806 status = pthread_detach( &t );
17807 if( status ) return errno;
17810 #ifdef HAVE_LINUX_THREADS
17811 pthread_kill_other_threads_np();
17820 if ac_fn_c_try_link "$LINENO"; then :
17821 ol_cv_pthread_lpthread=yes
17823 ol_cv_pthread_lpthread=no
17825 rm -f core conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17829 /* end confdefs.h. */
17831 /* pthread test headers */
17832 #include <pthread.h>
17833 #if HAVE_PTHREADS < 7
17837 #define NULL (void*)0
17840 static void *task(p)
17843 return (void *) (p == NULL);
17847 int main(argc, argv)
17852 /* pthread test function */
17853 #ifndef PTHREAD_CREATE_DETACHED
17854 #define PTHREAD_CREATE_DETACHED 1
17858 int detach = PTHREAD_CREATE_DETACHED;
17860 #if HAVE_PTHREADS > 4
17861 /* Final pthreads */
17862 pthread_attr_t attr;
17864 status = pthread_attr_init(&attr);
17865 if( status ) return status;
17867 #if HAVE_PTHREADS < 7
17868 status = pthread_attr_setdetachstate(&attr, &detach);
17869 if( status < 0 ) status = errno;
17871 status = pthread_attr_setdetachstate(&attr, detach);
17873 if( status ) return status;
17874 status = pthread_create( &t, &attr, task, NULL );
17875 #if HAVE_PTHREADS < 7
17876 if( status < 0 ) status = errno;
17878 if( status ) return status;
17880 /* Draft 4 pthreads */
17881 status = pthread_create( &t, pthread_attr_default, task, NULL );
17882 if( status ) return errno;
17884 /* give thread a chance to complete */
17885 /* it should remain joinable and hence detachable */
17888 status = pthread_detach( &t );
17889 if( status ) return errno;
17892 #ifdef HAVE_LINUX_THREADS
17893 pthread_kill_other_threads_np();
17901 if ac_fn_c_try_run "$LINENO"; then :
17902 ol_cv_pthread_lpthread=yes
17904 ol_cv_pthread_lpthread=no
17906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17907 conftest.$ac_objext conftest.beam conftest.$ac_ext
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17916 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17918 if test $ol_cv_pthread_lpthread = yes ; then
17919 ol_link_pthreads="-lpthread"
17920 ol_link_threads=posix
17924 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17925 if test "$ol_link_threads" = no ; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17928 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17929 if ${ol_cv_pthread_lc_r+:} false; then :
17930 $as_echo_n "(cached) " >&6
17937 if test "$cross_compiling" = yes; then :
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 /* pthread test headers */
17942 #include <pthread.h>
17943 #if HAVE_PTHREADS < 7
17947 #define NULL (void*)0
17950 static void *task(p)
17953 return (void *) (p == NULL);
17960 /* pthread test function */
17961 #ifndef PTHREAD_CREATE_DETACHED
17962 #define PTHREAD_CREATE_DETACHED 1
17966 int detach = PTHREAD_CREATE_DETACHED;
17968 #if HAVE_PTHREADS > 4
17969 /* Final pthreads */
17970 pthread_attr_t attr;
17972 status = pthread_attr_init(&attr);
17973 if( status ) return status;
17975 #if HAVE_PTHREADS < 7
17976 status = pthread_attr_setdetachstate(&attr, &detach);
17977 if( status < 0 ) status = errno;
17979 status = pthread_attr_setdetachstate(&attr, detach);
17981 if( status ) return status;
17982 status = pthread_create( &t, &attr, task, NULL );
17983 #if HAVE_PTHREADS < 7
17984 if( status < 0 ) status = errno;
17986 if( status ) return status;
17988 /* Draft 4 pthreads */
17989 status = pthread_create( &t, pthread_attr_default, task, NULL );
17990 if( status ) return errno;
17992 /* give thread a chance to complete */
17993 /* it should remain joinable and hence detachable */
17996 status = pthread_detach( &t );
17997 if( status ) return errno;
18000 #ifdef HAVE_LINUX_THREADS
18001 pthread_kill_other_threads_np();
18010 if ac_fn_c_try_link "$LINENO"; then :
18011 ol_cv_pthread_lc_r=yes
18013 ol_cv_pthread_lc_r=no
18015 rm -f core conftest.err conftest.$ac_objext \
18016 conftest$ac_exeext conftest.$ac_ext
18018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h. */
18021 /* pthread test headers */
18022 #include <pthread.h>
18023 #if HAVE_PTHREADS < 7
18027 #define NULL (void*)0
18030 static void *task(p)
18033 return (void *) (p == NULL);
18037 int main(argc, argv)
18042 /* pthread test function */
18043 #ifndef PTHREAD_CREATE_DETACHED
18044 #define PTHREAD_CREATE_DETACHED 1
18048 int detach = PTHREAD_CREATE_DETACHED;
18050 #if HAVE_PTHREADS > 4
18051 /* Final pthreads */
18052 pthread_attr_t attr;
18054 status = pthread_attr_init(&attr);
18055 if( status ) return status;
18057 #if HAVE_PTHREADS < 7
18058 status = pthread_attr_setdetachstate(&attr, &detach);
18059 if( status < 0 ) status = errno;
18061 status = pthread_attr_setdetachstate(&attr, detach);
18063 if( status ) return status;
18064 status = pthread_create( &t, &attr, task, NULL );
18065 #if HAVE_PTHREADS < 7
18066 if( status < 0 ) status = errno;
18068 if( status ) return status;
18070 /* Draft 4 pthreads */
18071 status = pthread_create( &t, pthread_attr_default, task, NULL );
18072 if( status ) return errno;
18074 /* give thread a chance to complete */
18075 /* it should remain joinable and hence detachable */
18078 status = pthread_detach( &t );
18079 if( status ) return errno;
18082 #ifdef HAVE_LINUX_THREADS
18083 pthread_kill_other_threads_np();
18091 if ac_fn_c_try_run "$LINENO"; then :
18092 ol_cv_pthread_lc_r=yes
18094 ol_cv_pthread_lc_r=no
18096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18097 conftest.$ac_objext conftest.beam conftest.$ac_ext
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
18106 $as_echo "$ol_cv_pthread_lc_r" >&6; }
18108 if test $ol_cv_pthread_lc_r = yes ; then
18109 ol_link_pthreads="-lc_r"
18110 ol_link_threads=posix
18115 # Pthread try link: -threads (ol_cv_pthread_threads)
18116 if test "$ol_link_threads" = no ; then
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
18119 $as_echo_n "checking for pthread link with -threads... " >&6; }
18120 if ${ol_cv_pthread_threads+:} false; then :
18121 $as_echo_n "(cached) " >&6
18126 LIBS="-threads $LIBS"
18128 if test "$cross_compiling" = yes; then :
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18132 /* pthread test headers */
18133 #include <pthread.h>
18134 #if HAVE_PTHREADS < 7
18138 #define NULL (void*)0
18141 static void *task(p)
18144 return (void *) (p == NULL);
18151 /* pthread test function */
18152 #ifndef PTHREAD_CREATE_DETACHED
18153 #define PTHREAD_CREATE_DETACHED 1
18157 int detach = PTHREAD_CREATE_DETACHED;
18159 #if HAVE_PTHREADS > 4
18160 /* Final pthreads */
18161 pthread_attr_t attr;
18163 status = pthread_attr_init(&attr);
18164 if( status ) return status;
18166 #if HAVE_PTHREADS < 7
18167 status = pthread_attr_setdetachstate(&attr, &detach);
18168 if( status < 0 ) status = errno;
18170 status = pthread_attr_setdetachstate(&attr, detach);
18172 if( status ) return status;
18173 status = pthread_create( &t, &attr, task, NULL );
18174 #if HAVE_PTHREADS < 7
18175 if( status < 0 ) status = errno;
18177 if( status ) return status;
18179 /* Draft 4 pthreads */
18180 status = pthread_create( &t, pthread_attr_default, task, NULL );
18181 if( status ) return errno;
18183 /* give thread a chance to complete */
18184 /* it should remain joinable and hence detachable */
18187 status = pthread_detach( &t );
18188 if( status ) return errno;
18191 #ifdef HAVE_LINUX_THREADS
18192 pthread_kill_other_threads_np();
18201 if ac_fn_c_try_link "$LINENO"; then :
18202 ol_cv_pthread_threads=yes
18204 ol_cv_pthread_threads=no
18206 rm -f core conftest.err conftest.$ac_objext \
18207 conftest$ac_exeext conftest.$ac_ext
18209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18210 /* end confdefs.h. */
18212 /* pthread test headers */
18213 #include <pthread.h>
18214 #if HAVE_PTHREADS < 7
18218 #define NULL (void*)0
18221 static void *task(p)
18224 return (void *) (p == NULL);
18228 int main(argc, argv)
18233 /* pthread test function */
18234 #ifndef PTHREAD_CREATE_DETACHED
18235 #define PTHREAD_CREATE_DETACHED 1
18239 int detach = PTHREAD_CREATE_DETACHED;
18241 #if HAVE_PTHREADS > 4
18242 /* Final pthreads */
18243 pthread_attr_t attr;
18245 status = pthread_attr_init(&attr);
18246 if( status ) return status;
18248 #if HAVE_PTHREADS < 7
18249 status = pthread_attr_setdetachstate(&attr, &detach);
18250 if( status < 0 ) status = errno;
18252 status = pthread_attr_setdetachstate(&attr, detach);
18254 if( status ) return status;
18255 status = pthread_create( &t, &attr, task, NULL );
18256 #if HAVE_PTHREADS < 7
18257 if( status < 0 ) status = errno;
18259 if( status ) return status;
18261 /* Draft 4 pthreads */
18262 status = pthread_create( &t, pthread_attr_default, task, NULL );
18263 if( status ) return errno;
18265 /* give thread a chance to complete */
18266 /* it should remain joinable and hence detachable */
18269 status = pthread_detach( &t );
18270 if( status ) return errno;
18273 #ifdef HAVE_LINUX_THREADS
18274 pthread_kill_other_threads_np();
18282 if ac_fn_c_try_run "$LINENO"; then :
18283 ol_cv_pthread_threads=yes
18285 ol_cv_pthread_threads=no
18287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18288 conftest.$ac_objext conftest.beam conftest.$ac_ext
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
18297 $as_echo "$ol_cv_pthread_threads" >&6; }
18299 if test $ol_cv_pthread_threads = yes ; then
18300 ol_link_pthreads="-threads"
18301 ol_link_threads=posix
18306 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
18307 if test "$ol_link_threads" = no ; then
18308 # try -lpthreads -lmach -lexc -lc_r
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
18310 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
18311 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
18312 $as_echo_n "(cached) " >&6
18317 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
18319 if test "$cross_compiling" = yes; then :
18320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18321 /* end confdefs.h. */
18323 /* pthread test headers */
18324 #include <pthread.h>
18325 #if HAVE_PTHREADS < 7
18329 #define NULL (void*)0
18332 static void *task(p)
18335 return (void *) (p == NULL);
18342 /* pthread test function */
18343 #ifndef PTHREAD_CREATE_DETACHED
18344 #define PTHREAD_CREATE_DETACHED 1
18348 int detach = PTHREAD_CREATE_DETACHED;
18350 #if HAVE_PTHREADS > 4
18351 /* Final pthreads */
18352 pthread_attr_t attr;
18354 status = pthread_attr_init(&attr);
18355 if( status ) return status;
18357 #if HAVE_PTHREADS < 7
18358 status = pthread_attr_setdetachstate(&attr, &detach);
18359 if( status < 0 ) status = errno;
18361 status = pthread_attr_setdetachstate(&attr, detach);
18363 if( status ) return status;
18364 status = pthread_create( &t, &attr, task, NULL );
18365 #if HAVE_PTHREADS < 7
18366 if( status < 0 ) status = errno;
18368 if( status ) return status;
18370 /* Draft 4 pthreads */
18371 status = pthread_create( &t, pthread_attr_default, task, NULL );
18372 if( status ) return errno;
18374 /* give thread a chance to complete */
18375 /* it should remain joinable and hence detachable */
18378 status = pthread_detach( &t );
18379 if( status ) return errno;
18382 #ifdef HAVE_LINUX_THREADS
18383 pthread_kill_other_threads_np();
18392 if ac_fn_c_try_link "$LINENO"; then :
18393 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18395 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18397 rm -f core conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18403 /* pthread test headers */
18404 #include <pthread.h>
18405 #if HAVE_PTHREADS < 7
18409 #define NULL (void*)0
18412 static void *task(p)
18415 return (void *) (p == NULL);
18419 int main(argc, argv)
18424 /* pthread test function */
18425 #ifndef PTHREAD_CREATE_DETACHED
18426 #define PTHREAD_CREATE_DETACHED 1
18430 int detach = PTHREAD_CREATE_DETACHED;
18432 #if HAVE_PTHREADS > 4
18433 /* Final pthreads */
18434 pthread_attr_t attr;
18436 status = pthread_attr_init(&attr);
18437 if( status ) return status;
18439 #if HAVE_PTHREADS < 7
18440 status = pthread_attr_setdetachstate(&attr, &detach);
18441 if( status < 0 ) status = errno;
18443 status = pthread_attr_setdetachstate(&attr, detach);
18445 if( status ) return status;
18446 status = pthread_create( &t, &attr, task, NULL );
18447 #if HAVE_PTHREADS < 7
18448 if( status < 0 ) status = errno;
18450 if( status ) return status;
18452 /* Draft 4 pthreads */
18453 status = pthread_create( &t, pthread_attr_default, task, NULL );
18454 if( status ) return errno;
18456 /* give thread a chance to complete */
18457 /* it should remain joinable and hence detachable */
18460 status = pthread_detach( &t );
18461 if( status ) return errno;
18464 #ifdef HAVE_LINUX_THREADS
18465 pthread_kill_other_threads_np();
18473 if ac_fn_c_try_run "$LINENO"; then :
18474 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
18476 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
18478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18479 conftest.$ac_objext conftest.beam conftest.$ac_ext
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
18488 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
18490 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
18491 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
18492 ol_link_threads=posix
18496 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
18497 if test "$ol_link_threads" = no ; then
18498 # try -lpthreads -lmach -lexc
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
18500 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
18501 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
18502 $as_echo_n "(cached) " >&6
18507 LIBS="-lpthreads -lmach -lexc $LIBS"
18509 if test "$cross_compiling" = yes; then :
18510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18511 /* end confdefs.h. */
18513 /* pthread test headers */
18514 #include <pthread.h>
18515 #if HAVE_PTHREADS < 7
18519 #define NULL (void*)0
18522 static void *task(p)
18525 return (void *) (p == NULL);
18532 /* pthread test function */
18533 #ifndef PTHREAD_CREATE_DETACHED
18534 #define PTHREAD_CREATE_DETACHED 1
18538 int detach = PTHREAD_CREATE_DETACHED;
18540 #if HAVE_PTHREADS > 4
18541 /* Final pthreads */
18542 pthread_attr_t attr;
18544 status = pthread_attr_init(&attr);
18545 if( status ) return status;
18547 #if HAVE_PTHREADS < 7
18548 status = pthread_attr_setdetachstate(&attr, &detach);
18549 if( status < 0 ) status = errno;
18551 status = pthread_attr_setdetachstate(&attr, detach);
18553 if( status ) return status;
18554 status = pthread_create( &t, &attr, task, NULL );
18555 #if HAVE_PTHREADS < 7
18556 if( status < 0 ) status = errno;
18558 if( status ) return status;
18560 /* Draft 4 pthreads */
18561 status = pthread_create( &t, pthread_attr_default, task, NULL );
18562 if( status ) return errno;
18564 /* give thread a chance to complete */
18565 /* it should remain joinable and hence detachable */
18568 status = pthread_detach( &t );
18569 if( status ) return errno;
18572 #ifdef HAVE_LINUX_THREADS
18573 pthread_kill_other_threads_np();
18582 if ac_fn_c_try_link "$LINENO"; then :
18583 ol_cv_pthread_lpthreads_lmach_lexc=yes
18585 ol_cv_pthread_lpthreads_lmach_lexc=no
18587 rm -f core conftest.err conftest.$ac_objext \
18588 conftest$ac_exeext conftest.$ac_ext
18590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18591 /* end confdefs.h. */
18593 /* pthread test headers */
18594 #include <pthread.h>
18595 #if HAVE_PTHREADS < 7
18599 #define NULL (void*)0
18602 static void *task(p)
18605 return (void *) (p == NULL);
18609 int main(argc, argv)
18614 /* pthread test function */
18615 #ifndef PTHREAD_CREATE_DETACHED
18616 #define PTHREAD_CREATE_DETACHED 1
18620 int detach = PTHREAD_CREATE_DETACHED;
18622 #if HAVE_PTHREADS > 4
18623 /* Final pthreads */
18624 pthread_attr_t attr;
18626 status = pthread_attr_init(&attr);
18627 if( status ) return status;
18629 #if HAVE_PTHREADS < 7
18630 status = pthread_attr_setdetachstate(&attr, &detach);
18631 if( status < 0 ) status = errno;
18633 status = pthread_attr_setdetachstate(&attr, detach);
18635 if( status ) return status;
18636 status = pthread_create( &t, &attr, task, NULL );
18637 #if HAVE_PTHREADS < 7
18638 if( status < 0 ) status = errno;
18640 if( status ) return status;
18642 /* Draft 4 pthreads */
18643 status = pthread_create( &t, pthread_attr_default, task, NULL );
18644 if( status ) return errno;
18646 /* give thread a chance to complete */
18647 /* it should remain joinable and hence detachable */
18650 status = pthread_detach( &t );
18651 if( status ) return errno;
18654 #ifdef HAVE_LINUX_THREADS
18655 pthread_kill_other_threads_np();
18663 if ac_fn_c_try_run "$LINENO"; then :
18664 ol_cv_pthread_lpthreads_lmach_lexc=yes
18666 ol_cv_pthread_lpthreads_lmach_lexc=no
18668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18669 conftest.$ac_objext conftest.beam conftest.$ac_ext
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
18678 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
18680 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
18681 ol_link_pthreads="-lpthreads -lmach -lexc"
18682 ol_link_threads=posix
18686 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
18687 if test "$ol_link_threads" = no ; then
18688 # try -lpthreads -lexc
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
18690 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
18691 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
18692 $as_echo_n "(cached) " >&6
18697 LIBS="-lpthreads -lexc $LIBS"
18699 if test "$cross_compiling" = yes; then :
18700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h. */
18703 /* pthread test headers */
18704 #include <pthread.h>
18705 #if HAVE_PTHREADS < 7
18709 #define NULL (void*)0
18712 static void *task(p)
18715 return (void *) (p == NULL);
18722 /* pthread test function */
18723 #ifndef PTHREAD_CREATE_DETACHED
18724 #define PTHREAD_CREATE_DETACHED 1
18728 int detach = PTHREAD_CREATE_DETACHED;
18730 #if HAVE_PTHREADS > 4
18731 /* Final pthreads */
18732 pthread_attr_t attr;
18734 status = pthread_attr_init(&attr);
18735 if( status ) return status;
18737 #if HAVE_PTHREADS < 7
18738 status = pthread_attr_setdetachstate(&attr, &detach);
18739 if( status < 0 ) status = errno;
18741 status = pthread_attr_setdetachstate(&attr, detach);
18743 if( status ) return status;
18744 status = pthread_create( &t, &attr, task, NULL );
18745 #if HAVE_PTHREADS < 7
18746 if( status < 0 ) status = errno;
18748 if( status ) return status;
18750 /* Draft 4 pthreads */
18751 status = pthread_create( &t, pthread_attr_default, task, NULL );
18752 if( status ) return errno;
18754 /* give thread a chance to complete */
18755 /* it should remain joinable and hence detachable */
18758 status = pthread_detach( &t );
18759 if( status ) return errno;
18762 #ifdef HAVE_LINUX_THREADS
18763 pthread_kill_other_threads_np();
18772 if ac_fn_c_try_link "$LINENO"; then :
18773 ol_cv_pthread_lpthreads_lexc=yes
18775 ol_cv_pthread_lpthreads_lexc=no
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18781 /* end confdefs.h. */
18783 /* pthread test headers */
18784 #include <pthread.h>
18785 #if HAVE_PTHREADS < 7
18789 #define NULL (void*)0
18792 static void *task(p)
18795 return (void *) (p == NULL);
18799 int main(argc, argv)
18804 /* pthread test function */
18805 #ifndef PTHREAD_CREATE_DETACHED
18806 #define PTHREAD_CREATE_DETACHED 1
18810 int detach = PTHREAD_CREATE_DETACHED;
18812 #if HAVE_PTHREADS > 4
18813 /* Final pthreads */
18814 pthread_attr_t attr;
18816 status = pthread_attr_init(&attr);
18817 if( status ) return status;
18819 #if HAVE_PTHREADS < 7
18820 status = pthread_attr_setdetachstate(&attr, &detach);
18821 if( status < 0 ) status = errno;
18823 status = pthread_attr_setdetachstate(&attr, detach);
18825 if( status ) return status;
18826 status = pthread_create( &t, &attr, task, NULL );
18827 #if HAVE_PTHREADS < 7
18828 if( status < 0 ) status = errno;
18830 if( status ) return status;
18832 /* Draft 4 pthreads */
18833 status = pthread_create( &t, pthread_attr_default, task, NULL );
18834 if( status ) return errno;
18836 /* give thread a chance to complete */
18837 /* it should remain joinable and hence detachable */
18840 status = pthread_detach( &t );
18841 if( status ) return errno;
18844 #ifdef HAVE_LINUX_THREADS
18845 pthread_kill_other_threads_np();
18853 if ac_fn_c_try_run "$LINENO"; then :
18854 ol_cv_pthread_lpthreads_lexc=yes
18856 ol_cv_pthread_lpthreads_lexc=no
18858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18859 conftest.$ac_objext conftest.beam conftest.$ac_ext
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
18868 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18870 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18871 ol_link_pthreads="-lpthreads -lexc"
18872 ol_link_threads=posix
18877 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18878 if test "$ol_link_threads" = no ; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18881 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18882 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
18883 $as_echo_n "(cached) " >&6
18888 LIBS="-lpthreads $LIBS"
18890 if test "$cross_compiling" = yes; then :
18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18892 /* end confdefs.h. */
18894 /* pthread test headers */
18895 #include <pthread.h>
18896 #if HAVE_PTHREADS < 7
18900 #define NULL (void*)0
18903 static void *task(p)
18906 return (void *) (p == NULL);
18913 /* pthread test function */
18914 #ifndef PTHREAD_CREATE_DETACHED
18915 #define PTHREAD_CREATE_DETACHED 1
18919 int detach = PTHREAD_CREATE_DETACHED;
18921 #if HAVE_PTHREADS > 4
18922 /* Final pthreads */
18923 pthread_attr_t attr;
18925 status = pthread_attr_init(&attr);
18926 if( status ) return status;
18928 #if HAVE_PTHREADS < 7
18929 status = pthread_attr_setdetachstate(&attr, &detach);
18930 if( status < 0 ) status = errno;
18932 status = pthread_attr_setdetachstate(&attr, detach);
18934 if( status ) return status;
18935 status = pthread_create( &t, &attr, task, NULL );
18936 #if HAVE_PTHREADS < 7
18937 if( status < 0 ) status = errno;
18939 if( status ) return status;
18941 /* Draft 4 pthreads */
18942 status = pthread_create( &t, pthread_attr_default, task, NULL );
18943 if( status ) return errno;
18945 /* give thread a chance to complete */
18946 /* it should remain joinable and hence detachable */
18949 status = pthread_detach( &t );
18950 if( status ) return errno;
18953 #ifdef HAVE_LINUX_THREADS
18954 pthread_kill_other_threads_np();
18963 if ac_fn_c_try_link "$LINENO"; then :
18964 ol_cv_pthread_lib_lpthreads=yes
18966 ol_cv_pthread_lib_lpthreads=no
18968 rm -f core conftest.err conftest.$ac_objext \
18969 conftest$ac_exeext conftest.$ac_ext
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18974 /* pthread test headers */
18975 #include <pthread.h>
18976 #if HAVE_PTHREADS < 7
18980 #define NULL (void*)0
18983 static void *task(p)
18986 return (void *) (p == NULL);
18990 int main(argc, argv)
18995 /* pthread test function */
18996 #ifndef PTHREAD_CREATE_DETACHED
18997 #define PTHREAD_CREATE_DETACHED 1
19001 int detach = PTHREAD_CREATE_DETACHED;
19003 #if HAVE_PTHREADS > 4
19004 /* Final pthreads */
19005 pthread_attr_t attr;
19007 status = pthread_attr_init(&attr);
19008 if( status ) return status;
19010 #if HAVE_PTHREADS < 7
19011 status = pthread_attr_setdetachstate(&attr, &detach);
19012 if( status < 0 ) status = errno;
19014 status = pthread_attr_setdetachstate(&attr, detach);
19016 if( status ) return status;
19017 status = pthread_create( &t, &attr, task, NULL );
19018 #if HAVE_PTHREADS < 7
19019 if( status < 0 ) status = errno;
19021 if( status ) return status;
19023 /* Draft 4 pthreads */
19024 status = pthread_create( &t, pthread_attr_default, task, NULL );
19025 if( status ) return errno;
19027 /* give thread a chance to complete */
19028 /* it should remain joinable and hence detachable */
19031 status = pthread_detach( &t );
19032 if( status ) return errno;
19035 #ifdef HAVE_LINUX_THREADS
19036 pthread_kill_other_threads_np();
19044 if ac_fn_c_try_run "$LINENO"; then :
19045 ol_cv_pthread_lib_lpthreads=yes
19047 ol_cv_pthread_lib_lpthreads=no
19049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19050 conftest.$ac_objext conftest.beam conftest.$ac_ext
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
19059 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
19061 if test $ol_cv_pthread_lib_lpthreads = yes ; then
19062 ol_link_pthreads="-lpthreads"
19063 ol_link_threads=posix
19068 if test $ol_link_threads != no ; then
19069 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
19071 save_CPPFLAGS="$CPPFLAGS"
19073 LIBS="$LTHREAD_LIBS $LIBS"
19075 for ac_func in sched_yield pthread_yield thr_yield
19077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19078 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19079 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19080 cat >>confdefs.h <<_ACEOF
19081 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19088 if test $ac_cv_func_sched_yield = no &&
19089 test $ac_cv_func_pthread_yield = no &&
19090 test $ac_cv_func_thr_yield = no ; then
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
19092 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
19093 if ${ac_cv_lib_rt_sched_yield+:} false; then :
19094 $as_echo_n "(cached) " >&6
19096 ac_check_lib_save_LIBS=$LIBS
19098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19107 char sched_yield ();
19111 return sched_yield ();
19116 if ac_fn_c_try_link "$LINENO"; then :
19117 ac_cv_lib_rt_sched_yield=yes
19119 ac_cv_lib_rt_sched_yield=no
19121 rm -f core conftest.err conftest.$ac_objext \
19122 conftest$ac_exeext conftest.$ac_ext
19123 LIBS=$ac_check_lib_save_LIBS
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
19126 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
19127 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
19128 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
19130 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
19132 ac_cv_func_sched_yield=yes
19134 ac_cv_func_sched_yield=no
19138 if test $ac_cv_func_sched_yield = no &&
19139 test $ac_cv_func_pthread_yield = no &&
19140 test "$ac_cv_func_thr_yield" = no ; then
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
19142 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
19145 for ac_func in pthread_kill
19147 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
19148 if test "x$ac_cv_func_pthread_kill" = xyes; then :
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_PTHREAD_KILL 1
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
19158 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
19159 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
19160 $as_echo_n "(cached) " >&6
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19166 #include <pthread.h>
19167 pthread_rwlock_t rwlock;
19172 pthread_rwlock_destroy(&rwlock);
19177 if ac_fn_c_try_link "$LINENO"; then :
19178 ol_cv_func_pthread_rwlock_destroy=yes
19180 ol_cv_func_pthread_rwlock_destroy=no
19182 rm -f core conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
19187 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
19188 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
19190 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
19195 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
19196 if ${ol_cv_func_pthread_detach+:} false; then :
19197 $as_echo_n "(cached) " >&6
19200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19201 /* end confdefs.h. */
19203 #include <pthread.h>
19205 #define NULL (void*)0
19211 pthread_detach(NULL);
19216 if ac_fn_c_try_link "$LINENO"; then :
19217 ol_cv_func_pthread_detach=yes
19219 ol_cv_func_pthread_detach=no
19221 rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
19226 $as_echo "$ol_cv_func_pthread_detach" >&6; }
19228 if test $ol_cv_func_pthread_detach = no ; then
19229 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
19233 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
19237 pthread_setconcurrency \
19238 pthread_getconcurrency \
19239 thr_setconcurrency \
19240 thr_getconcurrency \
19243 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19246 cat >>confdefs.h <<_ACEOF
19247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19255 for ac_func in pthread_kill_other_threads_np
19257 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
19258 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
19259 cat >>confdefs.h <<_ACEOF
19260 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
19267 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
19268 if ${ol_cv_sys_linux_threads+:} false; then :
19269 $as_echo_n "(cached) " >&6
19271 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
19274 $as_echo "$ol_cv_sys_linux_threads" >&6; }
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
19280 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
19281 if ${ol_cv_linux_threads+:} false; then :
19282 $as_echo_n "(cached) " >&6
19285 if test $ol_cv_header_linux_threads = yes &&
19286 test $ol_cv_sys_linux_threads = yes; then
19287 ol_cv_linux_threads=yes
19288 elif test $ol_cv_header_linux_threads = no &&
19289 test $ol_cv_sys_linux_threads = no; then
19290 ol_cv_linux_threads=no
19292 ol_cv_linux_threads=error
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
19297 $as_echo "$ol_cv_linux_threads" >&6; }
19300 if test $ol_cv_linux_threads = error; then
19301 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
19305 $as_echo_n "checking if pthread_create() works... " >&6; }
19306 if ${ol_cv_pthread_create_works+:} false; then :
19307 $as_echo_n "(cached) " >&6
19310 if test "$cross_compiling" = yes; then :
19311 ol_cv_pthread_create_works=yes
19313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19314 /* end confdefs.h. */
19316 /* pthread test headers */
19317 #include <pthread.h>
19318 #if HAVE_PTHREADS < 7
19322 #define NULL (void*)0
19325 static void *task(p)
19328 return (void *) (p == NULL);
19332 int main(argc, argv)
19337 /* pthread test function */
19338 #ifndef PTHREAD_CREATE_DETACHED
19339 #define PTHREAD_CREATE_DETACHED 1
19343 int detach = PTHREAD_CREATE_DETACHED;
19345 #if HAVE_PTHREADS > 4
19346 /* Final pthreads */
19347 pthread_attr_t attr;
19349 status = pthread_attr_init(&attr);
19350 if( status ) return status;
19352 #if HAVE_PTHREADS < 7
19353 status = pthread_attr_setdetachstate(&attr, &detach);
19354 if( status < 0 ) status = errno;
19356 status = pthread_attr_setdetachstate(&attr, detach);
19358 if( status ) return status;
19359 status = pthread_create( &t, &attr, task, NULL );
19360 #if HAVE_PTHREADS < 7
19361 if( status < 0 ) status = errno;
19363 if( status ) return status;
19365 /* Draft 4 pthreads */
19366 status = pthread_create( &t, pthread_attr_default, task, NULL );
19367 if( status ) return errno;
19369 /* give thread a chance to complete */
19370 /* it should remain joinable and hence detachable */
19373 status = pthread_detach( &t );
19374 if( status ) return errno;
19377 #ifdef HAVE_LINUX_THREADS
19378 pthread_kill_other_threads_np();
19386 if ac_fn_c_try_run "$LINENO"; then :
19387 ol_cv_pthread_create_works=yes
19389 ol_cv_pthread_create_works=no
19391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19392 conftest.$ac_objext conftest.beam conftest.$ac_ext
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
19397 $as_echo "$ol_cv_pthread_create_works" >&6; }
19399 if test $ol_cv_pthread_create_works = no ; then
19400 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
19403 ol_replace_broken_yield=no
19405 if test $ol_replace_broken_yield = yes ; then
19407 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
19411 if test $ol_with_yielding_select = auto ; then
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
19413 $as_echo_n "checking if select yields when using pthreads... " >&6; }
19414 if ${ol_cv_pthread_select_yields+:} false; then :
19415 $as_echo_n "(cached) " >&6
19418 if test "$cross_compiling" = yes; then :
19419 ol_cv_pthread_select_yields=cross
19421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19422 /* end confdefs.h. */
19424 #include <sys/types.h>
19425 #include <sys/time.h>
19426 #include <unistd.h>
19427 #include <pthread.h>
19429 #define NULL (void*) 0
19432 static int fildes[2];
19434 static void *task(p)
19446 FD_SET(fildes[0], &rfds);
19448 /* we're not interested in any fds */
19449 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
19456 exit(0); /* if we exit here, the select blocked the whole process */
19459 int main(argc, argv)
19465 /* create a pipe to select */
19466 if(pipe(&fildes[0])) {
19471 #ifdef HAVE_PTHREAD_SETCONCURRENCY
19472 (void) pthread_setconcurrency(2);
19474 #ifdef HAVE_THR_SETCONCURRENCY
19475 /* Set Solaris LWP concurrency to 2 */
19476 thr_setconcurrency(2);
19480 #if HAVE_PTHREADS < 6
19481 pthread_create(&t, pthread_attr_default, task, NULL);
19483 pthread_create(&t, NULL, task, NULL);
19486 /* make sure task runs first */
19487 #ifdef HAVE_THR_YIELD
19489 #elif defined( HAVE_SCHED_YIELD )
19491 #elif defined( HAVE_PTHREAD_YIELD )
19498 if ac_fn_c_try_run "$LINENO"; then :
19499 ol_cv_pthread_select_yields=no
19501 ol_cv_pthread_select_yields=yes
19503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19504 conftest.$ac_objext conftest.beam conftest.$ac_ext
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
19509 $as_echo "$ol_cv_pthread_select_yields" >&6; }
19511 if test $ol_cv_pthread_select_yields = cross ; then
19512 as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
19515 if test $ol_cv_pthread_select_yields = yes ; then
19516 ol_with_yielding_select=yes
19520 CPPFLAGS="$save_CPPFLAGS"
19523 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
19527 if test $ol_with_threads = posix ; then
19528 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
19533 case $ol_with_threads in auto | yes | mach)
19535 for ac_header in mach/cthreads.h cthreads.h
19537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19538 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19539 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19540 cat >>confdefs.h <<_ACEOF
19541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19548 if test $ac_cv_header_mach_cthreads_h = yes ; then
19549 ol_with_threads=found
19551 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19552 if test "x$ac_cv_func_cthread_fork" = xyes; then :
19553 ol_link_threads=yes
19557 if test $ol_link_threads = no ; then
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
19559 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
19560 if ${ol_cv_cthread_all_load+:} false; then :
19561 $as_echo_n "(cached) " >&6
19565 LIBS="-all_load $LIBS"
19566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19567 /* end confdefs.h. */
19568 #include <mach/cthreads.h>
19573 cthread_fork((void *)0, (void *)0);
19579 if ac_fn_c_try_link "$LINENO"; then :
19580 ol_cv_cthread_all_load=yes
19582 ol_cv_cthread_all_load=no
19584 rm -f core conftest.err conftest.$ac_objext \
19585 conftest$ac_exeext conftest.$ac_ext
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
19590 $as_echo "$ol_cv_cthread_all_load" >&6; }
19592 if test $ol_cv_cthread_all_load = yes ; then
19593 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
19594 ol_link_threads=mach
19595 ol_with_threads=found
19599 elif test $ac_cv_header_cthreads_h = yes ; then
19601 ol_with_threads=found
19604 LIBS="$LIBS -lthreads"
19605 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
19606 if test "x$ac_cv_func_cthread_fork" = xyes; then :
19607 ol_link_threads=yes
19612 if test $ol_link_threads = yes ; then
19613 LTHREAD_LIBS="-lthreads"
19614 ol_link_threads=mach
19615 ol_with_threads=found
19617 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
19620 elif test $ol_with_threads = mach ; then
19621 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
19624 if test $ol_link_threads = mach ; then
19626 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
19628 elif test $ol_with_threads = found ; then
19629 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
19634 case $ol_with_threads in auto | yes | pth)
19636 for ac_header in pth.h
19638 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
19639 if test "x$ac_cv_header_pth_h" = xyes; then :
19640 cat >>confdefs.h <<_ACEOF
19641 #define HAVE_PTH_H 1
19649 if test $ac_cv_header_pth_h = yes ; then
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
19651 $as_echo_n "checking for pth_version in -lpth... " >&6; }
19652 if ${ac_cv_lib_pth_pth_version+:} false; then :
19653 $as_echo_n "(cached) " >&6
19655 ac_check_lib_save_LIBS=$LIBS
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19660 /* Override any GCC internal prototype to avoid an error.
19661 Use char because int might match the return type of a GCC
19662 builtin and then its argument prototype would still apply. */
19666 char pth_version ();
19670 return pth_version ();
19675 if ac_fn_c_try_link "$LINENO"; then :
19676 ac_cv_lib_pth_pth_version=yes
19678 ac_cv_lib_pth_pth_version=no
19680 rm -f core conftest.err conftest.$ac_objext \
19681 conftest$ac_exeext conftest.$ac_ext
19682 LIBS=$ac_check_lib_save_LIBS
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
19685 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
19686 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
19693 if test $have_pth = yes ; then
19695 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
19697 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
19698 ol_link_threads=pth
19699 ol_with_threads=found
19701 if test $ol_with_yielding_select = auto ; then
19702 ol_with_yielding_select=yes
19709 case $ol_with_threads in auto | yes | lwp)
19711 for ac_header in thread.h synch.h
19713 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19714 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19715 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19716 cat >>confdefs.h <<_ACEOF
19717 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19724 if test $ac_cv_header_thread_h = yes &&
19725 test $ac_cv_header_synch_h = yes ; then
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
19727 $as_echo_n "checking for thr_create in -lthread... " >&6; }
19728 if ${ac_cv_lib_thread_thr_create+:} false; then :
19729 $as_echo_n "(cached) " >&6
19731 ac_check_lib_save_LIBS=$LIBS
19732 LIBS="-lthread $LIBS"
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19736 /* Override any GCC internal prototype to avoid an error.
19737 Use char because int might match the return type of a GCC
19738 builtin and then its argument prototype would still apply. */
19742 char thr_create ();
19746 return thr_create ();
19751 if ac_fn_c_try_link "$LINENO"; then :
19752 ac_cv_lib_thread_thr_create=yes
19754 ac_cv_lib_thread_thr_create=no
19756 rm -f core conftest.err conftest.$ac_objext \
19757 conftest$ac_exeext conftest.$ac_ext
19758 LIBS=$ac_check_lib_save_LIBS
19760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
19761 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
19762 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
19769 if test $have_thr = yes ; then
19771 $as_echo "#define HAVE_THR 1" >>confdefs.h
19773 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
19774 ol_link_threads=thr
19776 if test $ol_with_yielding_select = auto ; then
19777 ol_with_yielding_select=yes
19781 thr_setconcurrency \
19782 thr_getconcurrency \
19785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19786 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19787 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19788 cat >>confdefs.h <<_ACEOF
19789 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19800 if test $ol_with_yielding_select = yes ; then
19802 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19806 if test $ol_with_threads = manual ; then
19807 ol_link_threads=yes
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19810 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19812 for ac_header in pthread.h sched.h
19814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19817 cat >>confdefs.h <<_ACEOF
19818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19825 for ac_func in sched_yield pthread_yield
19827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19830 cat >>confdefs.h <<_ACEOF
19831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19839 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19840 if ${ol_cv_header_linux_threads+:} false; then :
19841 $as_echo_n "(cached) " >&6
19843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19844 /* end confdefs.h. */
19845 #include <pthread.h>
19847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19848 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19849 ol_cv_header_linux_threads=yes
19851 ol_cv_header_linux_threads=no
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19858 $as_echo "$ol_cv_header_linux_threads" >&6; }
19859 if test $ol_cv_header_linux_threads = yes; then
19861 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19866 for ac_header in mach/cthreads.h
19868 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19869 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
19870 cat >>confdefs.h <<_ACEOF
19871 #define HAVE_MACH_CTHREADS_H 1
19878 for ac_header in thread.h synch.h
19880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19881 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19882 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19883 cat >>confdefs.h <<_ACEOF
19884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19893 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19894 $as_echo "#define REENTRANT 1" >>confdefs.h
19896 $as_echo "#define _REENTRANT 1" >>confdefs.h
19898 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19900 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19902 $as_echo "#define THREADSAFE 1" >>confdefs.h
19904 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19906 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19910 $as_echo_n "checking for thread specific errno... " >&6; }
19911 if ${ol_cv_errno_thread_specific+:} false; then :
19912 $as_echo_n "(cached) " >&6
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19926 if ac_fn_c_try_link "$LINENO"; then :
19927 ol_cv_errno_thread_specific=yes
19929 ol_cv_errno_thread_specific=no
19931 rm -f core conftest.err conftest.$ac_objext \
19932 conftest$ac_exeext conftest.$ac_ext
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19936 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19939 $as_echo_n "checking for thread specific h_errno... " >&6; }
19940 if ${ol_cv_h_errno_thread_specific+:} false; then :
19941 $as_echo_n "(cached) " >&6
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19955 if ac_fn_c_try_link "$LINENO"; then :
19956 ol_cv_h_errno_thread_specific=yes
19958 ol_cv_h_errno_thread_specific=no
19960 rm -f core conftest.err conftest.$ac_objext \
19961 conftest$ac_exeext conftest.$ac_ext
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19965 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19967 if test $ol_cv_errno_thread_specific != yes ||
19968 test $ol_cv_h_errno_thread_specific != yes ; then
19969 LIBS="$LTHREAD_LIBS $LIBS"
19975 if test $ol_link_threads = no ; then
19976 if test $ol_with_threads = yes ; then
19977 as_fn_error $? "no suitable thread support" "$LINENO" 5
19980 if test $ol_with_threads = auto ; then
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
19982 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
19987 $as_echo "#define NO_THREADS 1" >>confdefs.h
19995 if test $ol_link_threads != no ; then
19997 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
20003 gmtime_r localtime_r \
20004 gethostbyname_r gethostbyaddr_r \
20007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20010 cat >>confdefs.h <<_ACEOF
20011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20018 if test "$ac_cv_func_ctime_r" = no ; then
20019 ol_cv_func_ctime_r_nargs=0
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of ctime_r" >&5
20022 $as_echo_n "checking number of arguments of ctime_r... " >&6; }
20023 if ${ol_cv_func_ctime_r_nargs+:} false; then :
20024 $as_echo_n "(cached) " >&6
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20032 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
20037 if ac_fn_c_try_compile "$LINENO"; then :
20038 ol_cv_func_ctime_r_nargs3=yes
20040 ol_cv_func_ctime_r_nargs3=no
20042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20045 /* end confdefs.h. */
20050 time_t ti; char *buffer; ctime_r(&ti,buffer);
20055 if ac_fn_c_try_compile "$LINENO"; then :
20056 ol_cv_func_ctime_r_nargs2=yes
20058 ol_cv_func_ctime_r_nargs2=no
20060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20062 if test $ol_cv_func_ctime_r_nargs3 = yes &&
20063 test $ol_cv_func_ctime_r_nargs2 = no ; then
20065 ol_cv_func_ctime_r_nargs=3
20067 elif test $ol_cv_func_ctime_r_nargs3 = no &&
20068 test $ol_cv_func_ctime_r_nargs2 = yes ; then
20070 ol_cv_func_ctime_r_nargs=2
20073 ol_cv_func_ctime_r_nargs=0
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_ctime_r_nargs" >&5
20078 $as_echo "$ol_cv_func_ctime_r_nargs" >&6; }
20080 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
20082 cat >>confdefs.h <<_ACEOF
20083 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
20090 if test "$ac_cv_func_gethostbyname_r" = yes ; then
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyname_r" >&5
20092 $as_echo_n "checking number of arguments of gethostbyname_r... " >&6; }
20093 if ${ol_cv_func_gethostbyname_r_nargs+:} false; then :
20094 $as_echo_n "(cached) " >&6
20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20097 /* end confdefs.h. */
20098 #include <sys/types.h>
20099 #include <sys/socket.h>
20100 #include <netinet/in.h>
20102 #define BUFSIZE (sizeof(struct hostent)+10)
20106 struct hostent hent; char buffer[BUFSIZE];
20107 int bufsize=BUFSIZE;int h_errno;
20108 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
20109 buffer, bufsize, &h_errno);
20114 if ac_fn_c_try_compile "$LINENO"; then :
20115 ol_cv_func_gethostbyname_r_nargs5=yes
20117 ol_cv_func_gethostbyname_r_nargs5=no
20119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20122 /* end confdefs.h. */
20123 #include <sys/types.h>
20124 #include <sys/socket.h>
20125 #include <netinet/in.h>
20127 #define BUFSIZE (sizeof(struct hostent)+10)
20131 struct hostent hent;struct hostent *rhent;
20132 char buffer[BUFSIZE];
20133 int bufsize=BUFSIZE;int h_errno;
20134 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
20140 if ac_fn_c_try_compile "$LINENO"; then :
20141 ol_cv_func_gethostbyname_r_nargs6=yes
20143 ol_cv_func_gethostbyname_r_nargs6=no
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
20148 test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
20150 ol_cv_func_gethostbyname_r_nargs=5
20152 elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
20153 test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
20155 ol_cv_func_gethostbyname_r_nargs=6
20158 ol_cv_func_gethostbyname_r_nargs=0
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyname_r_nargs" >&5
20163 $as_echo "$ol_cv_func_gethostbyname_r_nargs" >&6; }
20164 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
20166 cat >>confdefs.h <<_ACEOF
20167 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
20173 ol_cv_func_gethostbyname_r_nargs=0
20176 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
20177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments of gethostbyaddr_r" >&5
20178 $as_echo_n "checking number of arguments of gethostbyaddr_r... " >&6; }
20179 if ${ol_cv_func_gethostbyaddr_r_nargs+:} false; then :
20180 $as_echo_n "(cached) " >&6
20182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20183 /* end confdefs.h. */
20184 #include <sys/types.h>
20185 #include <sys/socket.h>
20186 #include <netinet/in.h>
20188 #define BUFSIZE (sizeof(struct hostent)+10)
20192 struct hostent hent; char buffer[BUFSIZE];
20193 struct in_addr add;
20194 size_t alen=sizeof(struct in_addr);
20195 int bufsize=BUFSIZE;int h_errno;
20196 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20197 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
20202 if ac_fn_c_try_compile "$LINENO"; then :
20203 ol_cv_func_gethostbyaddr_r_nargs7=yes
20205 ol_cv_func_gethostbyaddr_r_nargs7=no
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20210 /* end confdefs.h. */
20211 #include <sys/types.h>
20212 #include <sys/socket.h>
20213 #include <netinet/in.h>
20215 #define BUFSIZE (sizeof(struct hostent)+10)
20219 struct hostent hent;
20220 struct hostent *rhent; char buffer[BUFSIZE];
20221 struct in_addr add;
20222 size_t alen=sizeof(struct in_addr);
20223 int bufsize=BUFSIZE;int h_errno;
20224 (void)gethostbyaddr_r( (void *)&(add.s_addr),
20225 alen, AF_INET, &hent, buffer, bufsize,
20231 if ac_fn_c_try_compile "$LINENO"; then :
20232 ol_cv_func_gethostbyaddr_r_nargs8=yes
20234 ol_cv_func_gethostbyaddr_r_nargs8=no
20236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20238 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
20239 test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
20241 ol_cv_func_gethostbyaddr_r_nargs=7
20243 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
20244 test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
20246 ol_cv_func_gethostbyaddr_r_nargs=8
20249 ol_cv_func_gethostbyaddr_r_nargs=0
20253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
20254 $as_echo "$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
20255 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
20257 cat >>confdefs.h <<_ACEOF
20258 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
20264 ol_cv_func_gethostbyaddr_r_nargs=0
20269 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
20270 ol_cv_berkeley_db=no
20271 for ac_header in db.h
20273 ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
20274 if test "x$ac_cv_header_db_h" = xyes; then :
20275 cat >>confdefs.h <<_ACEOF
20276 #define HAVE_DB_H 1
20283 if test $ac_cv_header_db_h = yes; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB major version in db.h" >&5
20285 $as_echo_n "checking for Berkeley DB major version in db.h... " >&6; }
20286 if ${ol_cv_bdb_major+:} false; then :
20287 $as_echo_n "(cached) " >&6
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20294 #ifndef DB_VERSION_MAJOR
20295 # define DB_VERSION_MAJOR 1
20297 __db_version DB_VERSION_MAJOR
20300 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20301 ol_cv_bdb_major=${3}
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_major" >&5
20305 $as_echo "$ol_cv_bdb_major" >&6; }
20306 case $ol_cv_bdb_major in [1-9]*) : ;; *)
20307 as_fn_error $? "Unknown Berkeley DB major version in db.h" "$LINENO" 5 ;;
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB minor version in db.h" >&5
20311 $as_echo_n "checking for Berkeley DB minor version in db.h... " >&6; }
20312 if ${ol_cv_bdb_minor+:} false; then :
20313 $as_echo_n "(cached) " >&6
20316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20317 /* end confdefs.h. */
20320 #ifndef DB_VERSION_MINOR
20321 # define DB_VERSION_MINOR 0
20323 __db_version DB_VERSION_MINOR
20326 set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
20327 ol_cv_bdb_minor=${3}
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_minor" >&5
20331 $as_echo "$ol_cv_bdb_minor" >&6; }
20332 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
20333 as_fn_error $? "Unknown Berkeley DB minor version in db.h" "$LINENO" 5 ;;
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Berkeley DB version supported by BDB/HDB backends" >&5
20337 $as_echo_n "checking if Berkeley DB version supported by BDB/HDB backends... " >&6; }
20338 if ${ol_cv_bdb_compat+:} false; then :
20339 $as_echo_n "(cached) " >&6
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20347 /* this check could be improved */
20348 #ifndef DB_VERSION_MAJOR
20349 # define DB_VERSION_MAJOR 1
20351 #ifndef DB_VERSION_MINOR
20352 # define DB_VERSION_MINOR 0
20355 #define DB_VERSION_MM ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
20357 /* require 4.4 or later */
20358 #if DB_VERSION_MM >= 0x0404
20359 __db_version_compat
20363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20364 $EGREP "__db_version_compat" >/dev/null 2>&1; then :
20365 ol_cv_bdb_compat=yes
20367 ol_cv_bdb_compat=no
20372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_bdb_compat" >&5
20373 $as_echo "$ol_cv_bdb_compat" >&6; }
20376 if test $ol_cv_bdb_compat != yes ; then
20377 as_fn_error $? "BerkeleyDB version incompatible with BDB/HDB backends" "$LINENO" 5
20382 if test $ol_cv_bdb_major = 5 ; then
20383 if test $ol_cv_lib_db = no ; then
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
20385 $as_echo_n "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... " >&6; }
20386 if ${ol_cv_db_db_5_dot_m+:} false; then :
20387 $as_echo_n "(cached) " >&6
20390 ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
20392 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20395 /* end confdefs.h. */
20397 #ifdef HAVE_DB_185_H
20398 # include <db_185.h>
20403 #ifndef DB_VERSION_MAJOR
20404 # define DB_VERSION_MAJOR 1
20408 #define NULL ((void*)0)
20415 #if DB_VERSION_MAJOR > 2
20416 db_env_create( NULL, 0 );
20417 #elif DB_VERSION_MAJOR > 1
20418 db_appexit( NULL );
20420 (void) dbopen( NULL, 0, 0, 0, NULL);
20427 if ac_fn_c_try_link "$LINENO"; then :
20428 ol_cv_db_db_5_dot_m=yes
20430 ol_cv_db_db_5_dot_m=no
20432 rm -f core conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_dot_m" >&5
20439 $as_echo "$ol_cv_db_db_5_dot_m" >&6; }
20441 if test $ol_cv_db_db_5_dot_m = yes ; then
20442 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
20446 if test $ol_cv_lib_db = no ; then
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
20448 $as_echo_n "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... " >&6; }
20449 if ${ol_cv_db_db5m+:} false; then :
20450 $as_echo_n "(cached) " >&6
20453 ol_DB_LIB=-ldb5$ol_cv_bdb_minor
20455 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20458 /* end confdefs.h. */
20460 #ifdef HAVE_DB_185_H
20461 # include <db_185.h>
20466 #ifndef DB_VERSION_MAJOR
20467 # define DB_VERSION_MAJOR 1
20471 #define NULL ((void*)0)
20478 #if DB_VERSION_MAJOR > 2
20479 db_env_create( NULL, 0 );
20480 #elif DB_VERSION_MAJOR > 1
20481 db_appexit( NULL );
20483 (void) dbopen( NULL, 0, 0, 0, NULL);
20490 if ac_fn_c_try_link "$LINENO"; then :
20495 rm -f core conftest.err conftest.$ac_objext \
20496 conftest$ac_exeext conftest.$ac_ext
20501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5m" >&5
20502 $as_echo "$ol_cv_db_db5m" >&6; }
20504 if test $ol_cv_db_db5m = yes ; then
20505 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
20509 if test $ol_cv_lib_db = no ; then
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
20511 $as_echo_n "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... " >&6; }
20512 if ${ol_cv_db_db_5m+:} false; then :
20513 $as_echo_n "(cached) " >&6
20516 ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
20518 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521 /* end confdefs.h. */
20523 #ifdef HAVE_DB_185_H
20524 # include <db_185.h>
20529 #ifndef DB_VERSION_MAJOR
20530 # define DB_VERSION_MAJOR 1
20534 #define NULL ((void*)0)
20541 #if DB_VERSION_MAJOR > 2
20542 db_env_create( NULL, 0 );
20543 #elif DB_VERSION_MAJOR > 1
20544 db_appexit( NULL );
20546 (void) dbopen( NULL, 0, 0, 0, NULL);
20553 if ac_fn_c_try_link "$LINENO"; then :
20558 rm -f core conftest.err conftest.$ac_objext \
20559 conftest$ac_exeext conftest.$ac_ext
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5m" >&5
20565 $as_echo "$ol_cv_db_db_5m" >&6; }
20567 if test $ol_cv_db_db_5m = yes ; then
20568 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
20572 if test $ol_cv_lib_db = no ; then
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
20574 $as_echo_n "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... " >&6; }
20575 if ${ol_cv_db_db_5_m+:} false; then :
20576 $as_echo_n "(cached) " >&6
20579 ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
20581 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20584 /* end confdefs.h. */
20586 #ifdef HAVE_DB_185_H
20587 # include <db_185.h>
20592 #ifndef DB_VERSION_MAJOR
20593 # define DB_VERSION_MAJOR 1
20597 #define NULL ((void*)0)
20604 #if DB_VERSION_MAJOR > 2
20605 db_env_create( NULL, 0 );
20606 #elif DB_VERSION_MAJOR > 1
20607 db_appexit( NULL );
20609 (void) dbopen( NULL, 0, 0, 0, NULL);
20616 if ac_fn_c_try_link "$LINENO"; then :
20617 ol_cv_db_db_5_m=yes
20621 rm -f core conftest.err conftest.$ac_objext \
20622 conftest$ac_exeext conftest.$ac_ext
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5_m" >&5
20628 $as_echo "$ol_cv_db_db_5_m" >&6; }
20630 if test $ol_cv_db_db_5_m = yes ; then
20631 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
20635 if test $ol_cv_lib_db = no ; then
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-5)" >&5
20637 $as_echo_n "checking for Berkeley DB link (-ldb-5)... " >&6; }
20638 if ${ol_cv_db_db_5+:} false; then :
20639 $as_echo_n "(cached) " >&6
20644 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20647 /* end confdefs.h. */
20649 #ifdef HAVE_DB_185_H
20650 # include <db_185.h>
20655 #ifndef DB_VERSION_MAJOR
20656 # define DB_VERSION_MAJOR 1
20660 #define NULL ((void*)0)
20667 #if DB_VERSION_MAJOR > 2
20668 db_env_create( NULL, 0 );
20669 #elif DB_VERSION_MAJOR > 1
20670 db_appexit( NULL );
20672 (void) dbopen( NULL, 0, 0, 0, NULL);
20679 if ac_fn_c_try_link "$LINENO"; then :
20684 rm -f core conftest.err conftest.$ac_objext \
20685 conftest$ac_exeext conftest.$ac_ext
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_5" >&5
20691 $as_echo "$ol_cv_db_db_5" >&6; }
20693 if test $ol_cv_db_db_5 = yes ; then
20694 ol_cv_lib_db=-ldb-5
20698 if test $ol_cv_lib_db = no ; then
20699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb5)" >&5
20700 $as_echo_n "checking for Berkeley DB link (-ldb5)... " >&6; }
20701 if ${ol_cv_db_db5+:} false; then :
20702 $as_echo_n "(cached) " >&6
20707 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710 /* end confdefs.h. */
20712 #ifdef HAVE_DB_185_H
20713 # include <db_185.h>
20718 #ifndef DB_VERSION_MAJOR
20719 # define DB_VERSION_MAJOR 1
20723 #define NULL ((void*)0)
20730 #if DB_VERSION_MAJOR > 2
20731 db_env_create( NULL, 0 );
20732 #elif DB_VERSION_MAJOR > 1
20733 db_appexit( NULL );
20735 (void) dbopen( NULL, 0, 0, 0, NULL);
20742 if ac_fn_c_try_link "$LINENO"; then :
20747 rm -f core conftest.err conftest.$ac_objext \
20748 conftest$ac_exeext conftest.$ac_ext
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db5" >&5
20754 $as_echo "$ol_cv_db_db5" >&6; }
20756 if test $ol_cv_db_db5 = yes ; then
20761 elif test $ol_cv_bdb_major = 4 ; then
20762 if test $ol_cv_lib_db = no ; then
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
20764 $as_echo_n "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... " >&6; }
20765 if ${ol_cv_db_db_4_dot_m+:} false; then :
20766 $as_echo_n "(cached) " >&6
20769 ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
20771 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20774 /* end confdefs.h. */
20776 #ifdef HAVE_DB_185_H
20777 # include <db_185.h>
20782 #ifndef DB_VERSION_MAJOR
20783 # define DB_VERSION_MAJOR 1
20787 #define NULL ((void*)0)
20794 #if DB_VERSION_MAJOR > 2
20795 db_env_create( NULL, 0 );
20796 #elif DB_VERSION_MAJOR > 1
20797 db_appexit( NULL );
20799 (void) dbopen( NULL, 0, 0, 0, NULL);
20806 if ac_fn_c_try_link "$LINENO"; then :
20807 ol_cv_db_db_4_dot_m=yes
20809 ol_cv_db_db_4_dot_m=no
20811 rm -f core conftest.err conftest.$ac_objext \
20812 conftest$ac_exeext conftest.$ac_ext
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_dot_m" >&5
20818 $as_echo "$ol_cv_db_db_4_dot_m" >&6; }
20820 if test $ol_cv_db_db_4_dot_m = yes ; then
20821 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
20825 if test $ol_cv_lib_db = no ; then
20826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
20827 $as_echo_n "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... " >&6; }
20828 if ${ol_cv_db_db4m+:} false; then :
20829 $as_echo_n "(cached) " >&6
20832 ol_DB_LIB=-ldb4$ol_cv_bdb_minor
20834 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h. */
20839 #ifdef HAVE_DB_185_H
20840 # include <db_185.h>
20845 #ifndef DB_VERSION_MAJOR
20846 # define DB_VERSION_MAJOR 1
20850 #define NULL ((void*)0)
20857 #if DB_VERSION_MAJOR > 2
20858 db_env_create( NULL, 0 );
20859 #elif DB_VERSION_MAJOR > 1
20860 db_appexit( NULL );
20862 (void) dbopen( NULL, 0, 0, 0, NULL);
20869 if ac_fn_c_try_link "$LINENO"; then :
20874 rm -f core conftest.err conftest.$ac_objext \
20875 conftest$ac_exeext conftest.$ac_ext
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4m" >&5
20881 $as_echo "$ol_cv_db_db4m" >&6; }
20883 if test $ol_cv_db_db4m = yes ; then
20884 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
20888 if test $ol_cv_lib_db = no ; then
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
20890 $as_echo_n "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... " >&6; }
20891 if ${ol_cv_db_db_4m+:} false; then :
20892 $as_echo_n "(cached) " >&6
20895 ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
20897 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20900 /* end confdefs.h. */
20902 #ifdef HAVE_DB_185_H
20903 # include <db_185.h>
20908 #ifndef DB_VERSION_MAJOR
20909 # define DB_VERSION_MAJOR 1
20913 #define NULL ((void*)0)
20920 #if DB_VERSION_MAJOR > 2
20921 db_env_create( NULL, 0 );
20922 #elif DB_VERSION_MAJOR > 1
20923 db_appexit( NULL );
20925 (void) dbopen( NULL, 0, 0, 0, NULL);
20932 if ac_fn_c_try_link "$LINENO"; then :
20937 rm -f core conftest.err conftest.$ac_objext \
20938 conftest$ac_exeext conftest.$ac_ext
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4m" >&5
20944 $as_echo "$ol_cv_db_db_4m" >&6; }
20946 if test $ol_cv_db_db_4m = yes ; then
20947 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
20951 if test $ol_cv_lib_db = no ; then
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
20953 $as_echo_n "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... " >&6; }
20954 if ${ol_cv_db_db_4_m+:} false; then :
20955 $as_echo_n "(cached) " >&6
20958 ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
20960 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20965 #ifdef HAVE_DB_185_H
20966 # include <db_185.h>
20971 #ifndef DB_VERSION_MAJOR
20972 # define DB_VERSION_MAJOR 1
20976 #define NULL ((void*)0)
20983 #if DB_VERSION_MAJOR > 2
20984 db_env_create( NULL, 0 );
20985 #elif DB_VERSION_MAJOR > 1
20986 db_appexit( NULL );
20988 (void) dbopen( NULL, 0, 0, 0, NULL);
20995 if ac_fn_c_try_link "$LINENO"; then :
20996 ol_cv_db_db_4_m=yes
21000 rm -f core conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4_m" >&5
21007 $as_echo "$ol_cv_db_db_4_m" >&6; }
21009 if test $ol_cv_db_db_4_m = yes ; then
21010 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
21014 if test $ol_cv_lib_db = no ; then
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb-4)" >&5
21016 $as_echo_n "checking for Berkeley DB link (-ldb-4)... " >&6; }
21017 if ${ol_cv_db_db_4+:} false; then :
21018 $as_echo_n "(cached) " >&6
21023 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21026 /* end confdefs.h. */
21028 #ifdef HAVE_DB_185_H
21029 # include <db_185.h>
21034 #ifndef DB_VERSION_MAJOR
21035 # define DB_VERSION_MAJOR 1
21039 #define NULL ((void*)0)
21046 #if DB_VERSION_MAJOR > 2
21047 db_env_create( NULL, 0 );
21048 #elif DB_VERSION_MAJOR > 1
21049 db_appexit( NULL );
21051 (void) dbopen( NULL, 0, 0, 0, NULL);
21058 if ac_fn_c_try_link "$LINENO"; then :
21063 rm -f core conftest.err conftest.$ac_objext \
21064 conftest$ac_exeext conftest.$ac_ext
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db_4" >&5
21070 $as_echo "$ol_cv_db_db_4" >&6; }
21072 if test $ol_cv_db_db_4 = yes ; then
21073 ol_cv_lib_db=-ldb-4
21077 if test $ol_cv_lib_db = no ; then
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb4)" >&5
21079 $as_echo_n "checking for Berkeley DB link (-ldb4)... " >&6; }
21080 if ${ol_cv_db_db4+:} false; then :
21081 $as_echo_n "(cached) " >&6
21086 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h. */
21091 #ifdef HAVE_DB_185_H
21092 # include <db_185.h>
21097 #ifndef DB_VERSION_MAJOR
21098 # define DB_VERSION_MAJOR 1
21102 #define NULL ((void*)0)
21109 #if DB_VERSION_MAJOR > 2
21110 db_env_create( NULL, 0 );
21111 #elif DB_VERSION_MAJOR > 1
21112 db_appexit( NULL );
21114 (void) dbopen( NULL, 0, 0, 0, NULL);
21121 if ac_fn_c_try_link "$LINENO"; then :
21126 rm -f core conftest.err conftest.$ac_objext \
21127 conftest$ac_exeext conftest.$ac_ext
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db4" >&5
21133 $as_echo "$ol_cv_db_db4" >&6; }
21135 if test $ol_cv_db_db4 = yes ; then
21141 if test $ol_cv_lib_db = no ; then
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (-ldb)" >&5
21143 $as_echo_n "checking for Berkeley DB link (-ldb)... " >&6; }
21144 if ${ol_cv_db_db+:} false; then :
21145 $as_echo_n "(cached) " >&6
21150 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21153 /* end confdefs.h. */
21155 #ifdef HAVE_DB_185_H
21156 # include <db_185.h>
21161 #ifndef DB_VERSION_MAJOR
21162 # define DB_VERSION_MAJOR 1
21166 #define NULL ((void*)0)
21173 #if DB_VERSION_MAJOR > 2
21174 db_env_create( NULL, 0 );
21175 #elif DB_VERSION_MAJOR > 1
21176 db_appexit( NULL );
21178 (void) dbopen( NULL, 0, 0, 0, NULL);
21185 if ac_fn_c_try_link "$LINENO"; then :
21190 rm -f core conftest.err conftest.$ac_objext \
21191 conftest$ac_exeext conftest.$ac_ext
21196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_db" >&5
21197 $as_echo "$ol_cv_db_db" >&6; }
21199 if test $ol_cv_db_db = yes ; then
21204 if test $ol_cv_lib_db = no ; then
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB link (default)" >&5
21206 $as_echo_n "checking for Berkeley DB link (default)... " >&6; }
21207 if ${ol_cv_db_none+:} false; then :
21208 $as_echo_n "(cached) " >&6
21213 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
21215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21218 #ifdef HAVE_DB_185_H
21219 # include <db_185.h>
21224 #ifndef DB_VERSION_MAJOR
21225 # define DB_VERSION_MAJOR 1
21229 #define NULL ((void*)0)
21236 #if DB_VERSION_MAJOR > 2
21237 db_env_create( NULL, 0 );
21238 #elif DB_VERSION_MAJOR > 1
21239 db_appexit( NULL );
21241 (void) dbopen( NULL, 0, 0, 0, NULL);
21248 if ac_fn_c_try_link "$LINENO"; then :
21253 rm -f core conftest.err conftest.$ac_objext \
21254 conftest$ac_exeext conftest.$ac_ext
21259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_db_none" >&5
21260 $as_echo "$ol_cv_db_none" >&6; }
21262 if test $ol_cv_db_none = yes ; then
21268 if test "$ol_cv_lib_db" != no ; then
21269 ol_cv_berkeley_db=yes
21270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB library and header version match" >&5
21271 $as_echo_n "checking for Berkeley DB library and header version match... " >&6; }
21272 if ${ol_cv_berkeley_db_version+:} false; then :
21273 $as_echo_n "(cached) " >&6
21277 LIBS="$LTHREAD_LIBS $LIBS"
21278 if test $ol_cv_lib_db != yes ; then
21279 LIBS="$ol_cv_lib_db $LIBS"
21282 if test "$cross_compiling" = yes; then :
21283 ol_cv_berkeley_db_version=cross
21285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21286 /* end confdefs.h. */
21288 #ifdef HAVE_DB_185_H
21293 #ifndef DB_VERSION_MAJOR
21294 # define DB_VERSION_MAJOR 1
21297 #define NULL ((void *)0)
21301 #if DB_VERSION_MAJOR > 1
21303 int major, minor, patch;
21305 version = db_version( &major, &minor, &patch );
21307 if( major != DB_VERSION_MAJOR ||
21308 minor != DB_VERSION_MINOR ||
21309 patch != DB_VERSION_PATCH )
21311 printf("Berkeley DB version mismatch\n"
21312 "\theader: %s\n\tlibrary: %s\n",
21313 DB_VERSION_STRING, version);
21321 if ac_fn_c_try_run "$LINENO"; then :
21322 ol_cv_berkeley_db_version=yes
21324 ol_cv_berkeley_db_version=no
21326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21327 conftest.$ac_objext conftest.beam conftest.$ac_ext
21334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_version" >&5
21335 $as_echo "$ol_cv_berkeley_db_version" >&6; }
21337 if test $ol_cv_berkeley_db_version = no ; then
21338 as_fn_error $? "Berkeley DB version mismatch" "$LINENO" 5
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Berkeley DB thread support" >&5
21342 $as_echo_n "checking for Berkeley DB thread support... " >&6; }
21343 if ${ol_cv_berkeley_db_thread+:} false; then :
21344 $as_echo_n "(cached) " >&6
21348 LIBS="$LTHREAD_LIBS $LIBS"
21349 if test $ol_cv_lib_db != yes ; then
21350 LIBS="$ol_cv_lib_db $LIBS"
21353 if test "$cross_compiling" = yes; then :
21354 ol_cv_berkeley_db_thread=cross
21356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357 /* end confdefs.h. */
21359 #ifdef HAVE_DB_185_H
21365 #define NULL ((void *)0)
21370 u_int32_t flags = DB_CREATE |
21376 #if DB_VERSION_MAJOR > 2
21377 DB_ENV *env = NULL;
21379 rc = db_env_create( &env, 0 );
21381 flags |= DB_INIT_MPOOL;
21382 #ifdef DB_MPOOL_PRIVATE
21383 flags |= DB_MPOOL_PRIVATE;
21387 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21391 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
21392 rc = (env->open)( env, NULL, flags, 0 );
21394 rc = (env->open)( env, NULL, NULL, flags, 0 );
21398 rc = env->close( env, 0 );
21402 printf("BerkeleyDB: %s\n", db_strerror(rc) );
21408 memset( &env, '\0', sizeof(env) );
21410 rc = db_appinit( NULL, NULL, &env, flags );
21413 db_appexit( &env );
21416 unlink("__db_mpool.share");
21417 unlink("__db_lock.share");
21423 if ac_fn_c_try_run "$LINENO"; then :
21424 ol_cv_berkeley_db_thread=yes
21426 ol_cv_berkeley_db_thread=no
21428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21429 conftest.$ac_objext conftest.beam conftest.$ac_ext
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_berkeley_db_thread" >&5
21437 $as_echo "$ol_cv_berkeley_db_thread" >&6; }
21439 if test $ol_cv_berkeley_db_thread != no ; then
21441 $as_echo "#define HAVE_BERKELEY_DB_THREAD 1" >>confdefs.h
21449 if test $ol_cv_berkeley_db = no ; then
21450 as_fn_error $? "BDB/HDB: BerkeleyDB not available" "$LINENO" 5
21454 $as_echo "#define HAVE_BERKELEY_DB 1" >>confdefs.h
21457 if test $ol_cv_lib_db != yes ; then
21458 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
21461 SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
21467 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
21468 BUILD_LIBS_DYNAMIC=shared
21470 $as_echo "#define LDAP_LIBS_DYNAMIC 1" >>confdefs.h
21474 BUILD_LIBS_DYNAMIC=static
21478 if test $ol_enable_wrappers != no ; then
21479 for ac_header in tcpd.h
21481 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
21482 if test "x$ac_cv_header_tcpd_h" = xyes; then :
21483 cat >>confdefs.h <<_ACEOF
21484 #define HAVE_TCPD_H 1
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TCP wrappers library" >&5
21488 $as_echo_n "checking for TCP wrappers library... " >&6; }
21490 LIBS="$LIBS -lwrap"
21491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21492 /* end confdefs.h. */
21495 int allow_severity = 0;
21496 int deny_severity = 0;
21498 struct request_info *req;
21510 if ac_fn_c_try_link "$LINENO"; then :
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap" >&5
21512 $as_echo "-lwrap" >&6; }
21518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21522 int allow_severity = 0;
21523 int deny_severity = 0;
21525 struct request_info *req;
21537 if ac_fn_c_try_link "$LINENO"; then :
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -lwrap -lnsl" >&5
21539 $as_echo "-lwrap -lnsl" >&6; }
21541 LIBS="$save_LIBS -lnsl"
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21545 $as_echo "no" >&6; }
21549 rm -f core conftest.err conftest.$ac_objext \
21550 conftest$ac_exeext conftest.$ac_ext
21552 rm -f core conftest.err conftest.$ac_objext \
21553 conftest$ac_exeext conftest.$ac_ext
21561 if test $have_wrappers = yes ; then
21563 $as_echo "#define HAVE_TCPD 1" >>confdefs.h
21566 elif test $ol_enable_wrappers = yes ; then
21567 as_fn_error $? "could not find TCP wrappers, select apppropriate options or disable" "$LINENO" 5
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find TCP wrappers, support disabled" >&5
21570 $as_echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
21575 if test $ol_enable_syslog != no ; then
21576 ac_fn_c_check_func "$LINENO" "openlog" "ac_cv_func_openlog"
21577 if test "x$ac_cv_func_openlog" = xyes; then :
21581 if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
21582 as_fn_error select appropriate options or disable "could not find syslog" "$LINENO" 5
21584 ol_enable_syslog=$ac_cv_func_openlog
21588 if test $ol_enable_sql != no ; then
21589 for ac_header in sql.h sqlext.h
21591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21592 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21593 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21594 cat >>confdefs.h <<_ACEOF
21595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21600 as_fn_error $? "could not locate SQL headers" "$LINENO" 5
21608 LIBS="$LTHREAD_LIBS"
21610 if test $ol_with_odbc = auto ; then
21611 ol_with_odbc="iodbc unixodbc odbc32"
21614 for odbc in $ol_with_odbc ; do
21615 if test $ol_link_sql = no ; then
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -liodbc" >&5
21619 $as_echo_n "checking for SQLDriverConnect in -liodbc... " >&6; }
21620 if ${ac_cv_lib_iodbc_SQLDriverConnect+:} false; then :
21621 $as_echo_n "(cached) " >&6
21623 ac_check_lib_save_LIBS=$LIBS
21624 LIBS="-liodbc $LIBS"
21625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21626 /* end confdefs.h. */
21628 /* Override any GCC internal prototype to avoid an error.
21629 Use char because int might match the return type of a GCC
21630 builtin and then its argument prototype would still apply. */
21634 char SQLDriverConnect ();
21638 return SQLDriverConnect ();
21643 if ac_fn_c_try_link "$LINENO"; then :
21644 ac_cv_lib_iodbc_SQLDriverConnect=yes
21646 ac_cv_lib_iodbc_SQLDriverConnect=no
21648 rm -f core conftest.err conftest.$ac_objext \
21649 conftest$ac_exeext conftest.$ac_ext
21650 LIBS=$ac_check_lib_save_LIBS
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
21653 $as_echo "$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
21654 if test "x$ac_cv_lib_iodbc_SQLDriverConnect" = xyes; then :
21660 if test $have_iodbc = yes ; then
21661 ol_link_sql="-liodbc"
21666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc" >&5
21667 $as_echo_n "checking for SQLDriverConnect in -lodbc... " >&6; }
21668 if ${ac_cv_lib_odbc_SQLDriverConnect+:} false; then :
21669 $as_echo_n "(cached) " >&6
21671 ac_check_lib_save_LIBS=$LIBS
21672 LIBS="-lodbc $LIBS"
21673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21674 /* end confdefs.h. */
21676 /* Override any GCC internal prototype to avoid an error.
21677 Use char because int might match the return type of a GCC
21678 builtin and then its argument prototype would still apply. */
21682 char SQLDriverConnect ();
21686 return SQLDriverConnect ();
21691 if ac_fn_c_try_link "$LINENO"; then :
21692 ac_cv_lib_odbc_SQLDriverConnect=yes
21694 ac_cv_lib_odbc_SQLDriverConnect=no
21696 rm -f core conftest.err conftest.$ac_objext \
21697 conftest$ac_exeext conftest.$ac_ext
21698 LIBS=$ac_check_lib_save_LIBS
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
21701 $as_echo "$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
21702 if test "x$ac_cv_lib_odbc_SQLDriverConnect" = xyes; then :
21708 if test $have_odbc = yes ; then
21709 ol_link_sql="-lodbc"
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32" >&5
21715 $as_echo_n "checking for SQLDriverConnect in -lodbc32... " >&6; }
21716 if ${ac_cv_lib_odbc32_SQLDriverConnect+:} false; then :
21717 $as_echo_n "(cached) " >&6
21719 ac_check_lib_save_LIBS=$LIBS
21720 LIBS="-lodbc32 $LIBS"
21721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21722 /* end confdefs.h. */
21724 /* Override any GCC internal prototype to avoid an error.
21725 Use char because int might match the return type of a GCC
21726 builtin and then its argument prototype would still apply. */
21730 char SQLDriverConnect ();
21734 return SQLDriverConnect ();
21739 if ac_fn_c_try_link "$LINENO"; then :
21740 ac_cv_lib_odbc32_SQLDriverConnect=yes
21742 ac_cv_lib_odbc32_SQLDriverConnect=no
21744 rm -f core conftest.err conftest.$ac_objext \
21745 conftest$ac_exeext conftest.$ac_ext
21746 LIBS=$ac_check_lib_save_LIBS
21748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
21749 $as_echo "$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
21750 if test "x$ac_cv_lib_odbc32_SQLDriverConnect" = xyes; then :
21757 if test $have_odbc32 = no ; then
21758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
21759 $as_echo_n "checking for SQLDriverConnect in -lodbc32 with windows.h... " >&6; }
21761 LIBS="$LIBS -lodbc32"
21762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763 /* end confdefs.h. */
21764 #include <windows.h>
21765 #include <sqlext.h>
21771 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
21777 if ac_fn_c_try_link "$LINENO"; then :
21782 rm -f core conftest.err conftest.$ac_objext \
21783 conftest$ac_exeext conftest.$ac_ext
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_odbc32" >&5
21786 $as_echo "$have_odbc32" >&6; }
21789 if test $have_odbc32 = yes ; then
21790 ol_link_sql="-lodbc32"
21795 as_fn_error $? "unknown ODBC library" "$LINENO" 5
21803 if test $ol_link_sql != no ; then
21804 SLAPD_SQL_LIBS="$ol_link_sql"
21806 elif test $ol_enable_sql != auto ; then
21807 as_fn_error $? "could not locate suitable ODBC library" "$LINENO" 5
21812 if test $ol_enable_ndb != no ; then
21813 # Extract the first word of "mysql_config", so it can be a program name with args.
21814 set dummy mysql_config; ac_word=$2
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21816 $as_echo_n "checking for $ac_word... " >&6; }
21817 if ${ac_cv_prog_MYSQL+:} false; then :
21818 $as_echo_n "(cached) " >&6
21820 if test -n "$MYSQL"; then
21821 ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
21823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21824 for as_dir in $PATH
21827 test -z "$as_dir" && as_dir=.
21828 for ac_exec_ext in '' $ac_executable_extensions; do
21829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21830 ac_cv_prog_MYSQL="yes"
21831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21840 MYSQL=$ac_cv_prog_MYSQL
21841 if test -n "$MYSQL"; then
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
21843 $as_echo "$MYSQL" >&6; }
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21846 $as_echo "no" >&6; }
21850 if test "$MYSQL" != yes ; then
21851 as_fn_error $? "could not locate mysql_config" "$LINENO" 5
21854 SQL_INC=`mysql_config --include`
21855 SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
21857 save_CPPFLAGS="$CPPFLAGS"
21858 CPPFLAGS="$SLAPD_NDB_INCS"
21859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NdbApi.hpp" >&5
21860 $as_echo_n "checking for NdbApi.hpp... " >&6; }
21861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21862 /* end confdefs.h. */
21863 #include <NdbApi.hpp>
21865 if ac_fn_c_try_cpp "$LINENO"; then :
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21867 $as_echo "yes" >&6; }
21869 as_fn_error $? "could not locate NdbApi headers" "$LINENO" 5
21872 rm -f conftest.err conftest.i conftest.$ac_ext
21873 CPPFLAGS="$save_CPPFLAGS"
21875 SQL_LIB=`mysql_config --libs_r`
21876 SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
21878 save_LDFLAGS="$LDFLAGS"
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ndb_init in -lndbclient" >&5
21882 $as_echo_n "checking for ndb_init in -lndbclient... " >&6; }
21883 if ${ac_cv_lib_ndbclient_ndb_init+:} false; then :
21884 $as_echo_n "(cached) " >&6
21886 ac_check_lib_save_LIBS=$LIBS
21887 LIBS="-lndbclient -lstdc++ $LIBS"
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21891 /* Override any GCC internal prototype to avoid an error.
21892 Use char because int might match the return type of a GCC
21893 builtin and then its argument prototype would still apply. */
21901 return ndb_init ();
21906 if ac_fn_c_try_link "$LINENO"; then :
21907 ac_cv_lib_ndbclient_ndb_init=yes
21909 ac_cv_lib_ndbclient_ndb_init=no
21911 rm -f core conftest.err conftest.$ac_objext \
21912 conftest$ac_exeext conftest.$ac_ext
21913 LIBS=$ac_check_lib_save_LIBS
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbclient_ndb_init" >&5
21916 $as_echo "$ac_cv_lib_ndbclient_ndb_init" >&6; }
21917 if test "x$ac_cv_lib_ndbclient_ndb_init" = xyes; then :
21921 as_fn_error $? "could not locate ndbclient library" "$LINENO" 5
21926 LDFLAGS="$save_LDFLAGS"
21928 if test "$ol_enable_ndb" = yes ; then
21929 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
21934 for ac_header in unicode/utypes.h
21936 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21937 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21939 cat >>confdefs.h <<_ACEOF
21940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21947 if test $ac_cv_header_unicode_utypes_h = yes ; then
21948 OL_ICULIBS="-licuuc -licudata"
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU libraries" >&5
21951 $as_echo_n "checking for ICU libraries... " >&6; }
21952 if ${ol_cv_lib_icu+:} false; then :
21953 $as_echo_n "(cached) " >&6
21957 LIBS="$OL_ICULIBS $LIBS"
21958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21959 /* end confdefs.h. */
21961 #include <unicode/utypes.h>
21967 (void) u_errorName(0);
21973 if ac_fn_c_try_link "$LINENO"; then :
21978 rm -f core conftest.err conftest.$ac_objext \
21979 conftest$ac_exeext conftest.$ac_ext
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_icu" >&5
21984 $as_echo "$ol_cv_lib_icu" >&6; }
21986 if test $ol_cv_lib_icu != no ; then
21987 ol_icu="$OL_ICULIBS"
21989 $as_echo "#define HAVE_ICU 1" >>confdefs.h
21994 if test "$ol_icu" = no ; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ICU not available" >&5
21996 $as_echo "$as_me: WARNING: ICU not available" >&2;}
22003 if test $ol_with_cyrus_sasl != no ; then
22004 for ac_header in sasl/sasl.h sasl.h
22006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22009 cat >>confdefs.h <<_ACEOF
22010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22018 if test $ac_cv_header_sasl_sasl_h = yes ||
22019 test $ac_cv_header_sasl_h = yes; then
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
22021 $as_echo_n "checking for sasl_client_init in -lsasl2... " >&6; }
22022 if ${ac_cv_lib_sasl2_sasl_client_init+:} false; then :
22023 $as_echo_n "(cached) " >&6
22025 ac_check_lib_save_LIBS=$LIBS
22026 LIBS="-lsasl2 $LIBS"
22027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22028 /* end confdefs.h. */
22030 /* Override any GCC internal prototype to avoid an error.
22031 Use char because int might match the return type of a GCC
22032 builtin and then its argument prototype would still apply. */
22036 char sasl_client_init ();
22040 return sasl_client_init ();
22045 if ac_fn_c_try_link "$LINENO"; then :
22046 ac_cv_lib_sasl2_sasl_client_init=yes
22048 ac_cv_lib_sasl2_sasl_client_init=no
22050 rm -f core conftest.err conftest.$ac_objext \
22051 conftest$ac_exeext conftest.$ac_ext
22052 LIBS=$ac_check_lib_save_LIBS
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
22055 $as_echo "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
22056 if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes; then :
22057 ol_link_sasl="-lsasl2"
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl" >&5
22060 $as_echo_n "checking for sasl_client_init in -lsasl... " >&6; }
22061 if ${ac_cv_lib_sasl_sasl_client_init+:} false; then :
22062 $as_echo_n "(cached) " >&6
22064 ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lsasl $LIBS"
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22069 /* Override any GCC internal prototype to avoid an error.
22070 Use char because int might match the return type of a GCC
22071 builtin and then its argument prototype would still apply. */
22075 char sasl_client_init ();
22079 return sasl_client_init ();
22084 if ac_fn_c_try_link "$LINENO"; then :
22085 ac_cv_lib_sasl_sasl_client_init=yes
22087 ac_cv_lib_sasl_sasl_client_init=no
22089 rm -f core conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22091 LIBS=$ac_check_lib_save_LIBS
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl_sasl_client_init" >&5
22094 $as_echo "$ac_cv_lib_sasl_sasl_client_init" >&6; }
22095 if test "x$ac_cv_lib_sasl_sasl_client_init" = xyes; then :
22096 ol_link_sasl="-lsasl"
22103 if test $ol_link_sasl = no ; then
22104 if test $ol_with_cyrus_sasl != auto ; then
22105 as_fn_error $? "Could not locate Cyrus SASL" "$LINENO" 5
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not locate Cyrus SASL" >&5
22108 $as_echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22110 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22111 if test $ol_link_tls = no ; then
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22113 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cyrus SASL library version" >&5
22118 $as_echo_n "checking Cyrus SASL library version... " >&6; }
22119 if ${ol_cv_sasl_compat+:} false; then :
22120 $as_echo_n "(cached) " >&6
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22126 #ifdef HAVE_SASL_SASL_H
22127 #include <sasl/sasl.h>
22132 /* Require 2.1.15+ */
22133 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22134 char *__sasl_compat = "2.2+ or better okay (we guess)";
22135 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22136 && SASL_VERSION_STEP >=15
22137 char *__sasl_compat = "2.1.15+ or better okay";
22141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22142 $EGREP "__sasl_compat" >/dev/null 2>&1; then :
22143 ol_cv_sasl_compat=yes
22145 ol_cv_sasl_compat=no
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sasl_compat" >&5
22151 $as_echo "$ol_cv_sasl_compat" >&6; }
22153 if test $ol_cv_sasl_compat = no ; then
22155 as_fn_error $? "Cyrus SASL library located but is incompatible" "$LINENO" 5
22159 $as_echo "#define HAVE_CYRUS_SASL 1" >>confdefs.h
22161 SASL_LIBS="$ol_link_sasl"
22162 if test $ol_enable_spasswd != no ; then
22163 ol_link_spasswd=yes
22166 ac_save_LIBS="$LIBS"
22167 LIBS="$LIBS $ol_link_sasl"
22168 ac_fn_c_check_func "$LINENO" "sasl_version" "ac_cv_func_sasl_version"
22169 if test "x$ac_cv_func_sasl_version" = xyes; then :
22171 $as_echo "#define HAVE_SASL_VERSION 1" >>confdefs.h
22175 LIBS="$ac_save_LIBS"
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SASL authentication not supported!" >&5
22182 $as_echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
22183 if test $ol_link_tls = no ; then
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Strong authentication not supported!" >&5
22185 $as_echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
22189 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
22191 if test -r /dev/urandom ; then
22192 dev="/dev/urandom";
22193 elif test -r /idev/urandom ; then
22194 dev="/idev/urandom";
22195 elif test -r /dev/srandom ; then
22196 dev="/dev/srandom";
22197 elif test -r /dev/random ; then
22199 elif test -r /idev/random ; then
22200 dev="/idev/random";
22203 if test $dev != no ; then
22205 cat >>confdefs.h <<_ACEOF
22206 #define URANDOM_DEVICE "$dev"
22213 if test $ol_with_fetch != no ; then
22215 LIBS="-lfetch -lcom_err $LIBS"
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fetch(3) library" >&5
22217 $as_echo_n "checking fetch(3) library... " >&6; }
22218 if ${ol_cv_lib_fetch+:} false; then :
22219 $as_echo_n "(cached) " >&6
22222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h. */
22225 #ifdef HAVE_SYS_PARAM_H
22226 #include <sys/param.h>
22233 struct url *u = fetchParseURL("file:///");
22238 if ac_fn_c_try_link "$LINENO"; then :
22239 ol_cv_lib_fetch=yes
22243 rm -f core conftest.err conftest.$ac_objext \
22244 conftest$ac_exeext conftest.$ac_ext
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_lib_fetch" >&5
22247 $as_echo "$ol_cv_lib_fetch" >&6; }
22249 if test $ol_cv_lib_fetch != no ; then
22250 ol_link_fetch="-lfetch -lcom_err"
22252 $as_echo "#define HAVE_FETCH 1" >>confdefs.h
22257 if test $ol_cv_lib_fetch != no ; then
22258 LIBS="$LIBS $ol_link_fetch"
22259 ol_link_fetch=freebsd
22261 elif test $ol_with_fetch != auto ; then
22262 as_fn_error $? "no suitable API for --with-fetch=$ol_with_fetch" "$LINENO" 5
22266 if test $ol_enable_crypt != no ; then
22268 LIBS="$TLS_LIBS $LIBS"
22270 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22271 if test "x$ac_cv_func_crypt" = xyes; then :
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22277 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22278 if ${ac_cv_lib_crypt_crypt+:} false; then :
22279 $as_echo_n "(cached) " >&6
22281 ac_check_lib_save_LIBS=$LIBS
22282 LIBS="-lcrypt $LIBS"
22283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22284 /* end confdefs.h. */
22286 /* Override any GCC internal prototype to avoid an error.
22287 Use char because int might match the return type of a GCC
22288 builtin and then its argument prototype would still apply. */
22301 if ac_fn_c_try_link "$LINENO"; then :
22302 ac_cv_lib_crypt_crypt=yes
22304 ac_cv_lib_crypt_crypt=no
22306 rm -f core conftest.err conftest.$ac_objext \
22307 conftest$ac_exeext conftest.$ac_ext
22308 LIBS=$ac_check_lib_save_LIBS
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22311 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22312 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22313 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22324 if test $have_crypt = yes ; then
22326 $as_echo "#define HAVE_CRYPT 1" >>confdefs.h
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find crypt" >&5
22330 $as_echo "$as_me: WARNING: could not find crypt" >&2;}
22331 if test $ol_enable_crypt = yes ; then
22332 as_fn_error $? "could not find crypt, select appropriate options or disable" "$LINENO" 5
22335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling crypt support" >&5
22336 $as_echo "$as_me: WARNING: disabling crypt support" >&2;}
22341 if test $ol_enable_proctitle != no ; then
22342 ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
22343 if test "x$ac_cv_func_setproctitle" = xyes; then :
22344 have_setproctitle=yes
22347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproctitle in -lutil" >&5
22348 $as_echo_n "checking for setproctitle in -lutil... " >&6; }
22349 if ${ac_cv_lib_util_setproctitle+:} false; then :
22350 $as_echo_n "(cached) " >&6
22352 ac_check_lib_save_LIBS=$LIBS
22353 LIBS="-lutil $LIBS"
22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h. */
22357 /* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
22363 char setproctitle ();
22367 return setproctitle ();
22372 if ac_fn_c_try_link "$LINENO"; then :
22373 ac_cv_lib_util_setproctitle=yes
22375 ac_cv_lib_util_setproctitle=no
22377 rm -f core conftest.err conftest.$ac_objext \
22378 conftest$ac_exeext conftest.$ac_ext
22379 LIBS=$ac_check_lib_save_LIBS
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_setproctitle" >&5
22382 $as_echo "$ac_cv_lib_util_setproctitle" >&6; }
22383 if test "x$ac_cv_lib_util_setproctitle" = xyes; then :
22384 have_setproctitle=yes
22385 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22387 have_setproctitle=no
22388 case " $LIBOBJS " in
22389 *" setproctitle.$ac_objext "* ) ;;
22390 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
22394 LIBSRCS="$LIBSRCS setproctitle.c"
22400 if test $have_setproctitle = yes ; then
22402 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
22407 if test $ol_enable_slp != no ; then
22408 for ac_header in slp.h
22410 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22411 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22412 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22413 cat >>confdefs.h <<_ACEOF
22414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22422 if test $ac_cv_header_slp_h = yes ; then
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
22424 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
22425 if ${ac_cv_lib_slp_SLPOpen+:} false; then :
22426 $as_echo_n "(cached) " >&6
22428 ac_check_lib_save_LIBS=$LIBS
22430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22431 /* end confdefs.h. */
22433 /* Override any GCC internal prototype to avoid an error.
22434 Use char because int might match the return type of a GCC
22435 builtin and then its argument prototype would still apply. */
22448 if ac_fn_c_try_link "$LINENO"; then :
22449 ac_cv_lib_slp_SLPOpen=yes
22451 ac_cv_lib_slp_SLPOpen=no
22453 rm -f core conftest.err conftest.$ac_objext \
22454 conftest$ac_exeext conftest.$ac_ext
22455 LIBS=$ac_check_lib_save_LIBS
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
22458 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
22459 if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
22465 if test $have_slp = yes ; then
22467 $as_echo "#define HAVE_SLP 1" >>confdefs.h
22469 SLAPD_SLP_LIBS=-lslp
22472 elif test $ol_enable_slp = yes ; then
22473 as_fn_error $? "SLP not found" "$LINENO" 5
22478 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22479 if test "x$ac_cv_type_mode_t" = xyes; then :
22483 cat >>confdefs.h <<_ACEOF
22489 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22490 if test "x$ac_cv_type_off_t" = xyes; then :
22494 cat >>confdefs.h <<_ACEOF
22500 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22501 if test "x$ac_cv_type_pid_t" = xyes; then :
22505 cat >>confdefs.h <<_ACEOF
22511 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22512 if test "x$ac_cv_type_ssize_t" = xyes; then :
22516 cat >>confdefs.h <<_ACEOF
22517 #define ssize_t signed int
22522 ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "$ac_includes_default"
22523 if test "x$ac_cv_type_caddr_t" = xyes; then :
22527 cat >>confdefs.h <<_ACEOF
22528 #define caddr_t char *
22533 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22534 if test "x$ac_cv_type_size_t" = xyes; then :
22538 cat >>confdefs.h <<_ACEOF
22539 #define size_t unsigned
22545 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
22546 if test "x$ac_cv_type_long_long" = xyes; then :
22548 cat >>confdefs.h <<_ACEOF
22549 #define HAVE_LONG_LONG 1
22555 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
22556 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
22558 cat >>confdefs.h <<_ACEOF
22559 #define HAVE_PTRDIFF_T 1
22567 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "$ac_includes_default
22568 #ifdef HAVE_SYS_SOCKET_H
22569 #include <sys/socket.h>
22572 if test "x$ac_cv_type_socklen_t" = xyes; then :
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the type of arg 3 to accept()" >&5
22578 $as_echo_n "checking the type of arg 3 to accept()... " >&6; }
22579 if ${ol_cv_type_ber_socklen_t+:} false; then :
22580 $as_echo_n "(cached) " >&6
22583 set socklen_t int unsigned "unsigned long" long size_t
22584 test "$ac_cv_type_socklen_t" = yes || shift
22585 ol_cv_type_ber_socklen_t=$1 guessing="guessing "
22586 for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 #ifdef HAVE_SYS_SOCKET_H
22591 #include <sys/socket.h>
22593 extern int accept(int s, $addrtype *ap, $lentype *lp);
22599 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
22605 if ac_fn_c_try_compile "$LINENO"; then :
22606 ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
22613 $as_echo "$guessing$ol_cv_type_ber_socklen_t *" >&6; }
22615 cat >>confdefs.h <<_ACEOF
22616 #define ber_socklen_t $ol_cv_type_ber_socklen_t
22620 if test "$ac_cv_type_socklen_t" != yes; then
22622 cat >>confdefs.h <<_ACEOF
22623 #define socklen_t $ol_cv_type_ber_socklen_t
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22630 $as_echo_n "checking return type of signal handlers... " >&6; }
22631 if ${ac_cv_type_signal+:} false; then :
22632 $as_echo_n "(cached) " >&6
22634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22635 /* end confdefs.h. */
22636 #include <sys/types.h>
22637 #include <signal.h>
22642 return *(signal (0, 0)) (0) == 1;
22647 if ac_fn_c_try_compile "$LINENO"; then :
22648 ac_cv_type_signal=int
22650 ac_cv_type_signal=void
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22655 $as_echo "$ac_cv_type_signal" >&6; }
22657 cat >>confdefs.h <<_ACEOF
22658 #define RETSIGTYPE $ac_cv_type_signal
22663 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default
22664 #include <signal.h>
22667 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
22671 cat >>confdefs.h <<_ACEOF
22672 #define sig_atomic_t int
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22679 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22680 if ${ac_cv_type_uid_t+:} false; then :
22681 $as_echo_n "(cached) " >&6
22683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22684 /* end confdefs.h. */
22685 #include <sys/types.h>
22688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22689 $EGREP "uid_t" >/dev/null 2>&1; then :
22690 ac_cv_type_uid_t=yes
22692 ac_cv_type_uid_t=no
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22698 $as_echo "$ac_cv_type_uid_t" >&6; }
22699 if test $ac_cv_type_uid_t = no; then
22701 $as_echo "#define uid_t int" >>confdefs.h
22704 $as_echo "#define gid_t int" >>confdefs.h
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22710 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22711 if ${ac_cv_header_time+:} false; then :
22712 $as_echo_n "(cached) " >&6
22714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22715 /* end confdefs.h. */
22716 #include <sys/types.h>
22717 #include <sys/time.h>
22723 if ((struct tm *) 0)
22729 if ac_fn_c_try_compile "$LINENO"; then :
22730 ac_cv_header_time=yes
22732 ac_cv_header_time=no
22734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22737 $as_echo "$ac_cv_header_time" >&6; }
22738 if test $ac_cv_header_time = yes; then
22740 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22745 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22746 if ${ac_cv_struct_tm+:} false; then :
22747 $as_echo_n "(cached) " >&6
22749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22750 /* end confdefs.h. */
22751 #include <sys/types.h>
22758 int *p = &tm.tm_sec;
22764 if ac_fn_c_try_compile "$LINENO"; then :
22765 ac_cv_struct_tm=time.h
22767 ac_cv_struct_tm=sys/time.h
22769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22772 $as_echo "$ac_cv_struct_tm" >&6; }
22773 if test $ac_cv_struct_tm = sys/time.h; then
22775 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22779 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22780 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22782 cat >>confdefs.h <<_ACEOF
22783 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22789 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "$ac_includes_default
22792 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then :
22794 cat >>confdefs.h <<_ACEOF
22795 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
22801 ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "$ac_includes_default
22804 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then :
22806 cat >>confdefs.h <<_ACEOF
22807 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
22814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if toupper() requires islower()" >&5
22815 $as_echo_n "checking if toupper() requires islower()... " >&6; }
22816 if ${ol_cv_c_upper_lower+:} false; then :
22817 $as_echo_n "(cached) " >&6
22820 if test "$cross_compiling" = yes; then :
22821 ol_cv_c_upper_lower=safe
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22829 if ('C' == toupper('C'))
22835 if ac_fn_c_try_run "$LINENO"; then :
22836 ol_cv_c_upper_lower=no
22838 ol_cv_c_upper_lower=yes
22840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22841 conftest.$ac_objext conftest.beam conftest.$ac_ext
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_upper_lower" >&5
22846 $as_echo "$ol_cv_c_upper_lower" >&6; }
22847 if test $ol_cv_c_upper_lower != no ; then
22849 $as_echo "#define C_UPPER_LOWER 1" >>confdefs.h
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22854 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22855 if ${ac_cv_c_const+:} false; then :
22856 $as_echo_n "(cached) " >&6
22858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22859 /* end confdefs.h. */
22864 /* FIXME: Include the comments suggested by Paul. */
22865 #ifndef __cplusplus
22866 /* Ultrix mips cc rejects this. */
22867 typedef int charset[2];
22869 /* SunOS 4.1.1 cc rejects this. */
22870 char const *const *pcpcc;
22872 /* NEC SVR4.0.2 mips cc rejects this. */
22873 struct point {int x, y;};
22874 static struct point const zero = {0,0};
22875 /* AIX XL C 1.02.0.0 rejects this.
22876 It does not let you subtract one const X* pointer from another in
22877 an arm of an if-expression whose if-part is not a constant
22879 const char *g = "string";
22880 pcpcc = &g + (g ? g-g : 0);
22881 /* HPUX 7.0 cc rejects these. */
22883 ppc = (char**) pcpcc;
22884 pcpcc = (char const *const *) ppc;
22885 { /* SCO 3.2v4 cc rejects this. */
22887 char const *s = 0 ? (char *) 0 : (char const *) 0;
22892 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22893 int x[] = {25, 17};
22894 const int *foo = &x[0];
22897 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22898 typedef const int *iptr;
22902 { /* AIX XL C 1.02.0.0 rejects this saying
22903 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22904 struct s { int j; const int *ap[3]; };
22905 struct s *b; b->j = 5;
22907 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22908 const int foo = 10;
22909 if (!foo) return 0;
22911 return !cs[0] && !zero.x;
22918 if ac_fn_c_try_compile "$LINENO"; then :
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22926 $as_echo "$ac_cv_c_const" >&6; }
22927 if test $ac_cv_c_const = no; then
22929 $as_echo "#define const /**/" >>confdefs.h
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler understands volatile" >&5
22934 $as_echo_n "checking if compiler understands volatile... " >&6; }
22935 if ${ol_cv_c_volatile+:} false; then :
22936 $as_echo_n "(cached) " >&6
22938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22939 /* end confdefs.h. */
22944 volatile int a; int * volatile b = x ? &y : &z;
22945 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22951 if ac_fn_c_try_compile "$LINENO"; then :
22952 ol_cv_c_volatile=yes
22954 ol_cv_c_volatile=no
22956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_c_volatile" >&5
22959 $as_echo "$ol_cv_c_volatile" >&6; }
22960 if test $ol_cv_c_volatile = yes; then
22964 $as_echo "#define volatile /**/" >>confdefs.h
22969 if test $cross_compiling = yes ; then
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Crossing compiling... all bets are off!" >&5
22971 $as_echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
22973 $as_echo "#define CROSS_COMPILING 1" >>confdefs.h
22976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22977 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22978 if ${ac_cv_c_bigendian+:} false; then :
22979 $as_echo_n "(cached) " >&6
22981 ac_cv_c_bigendian=unknown
22982 # See if we're dealing with a universal compiler.
22983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22984 /* end confdefs.h. */
22985 #ifndef __APPLE_CC__
22986 not a universal capable compiler
22991 if ac_fn_c_try_compile "$LINENO"; then :
22993 # Check for potential -arch flags. It is not universal unless
22994 # there are at least two -arch flags with different values.
22997 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22998 if test -n "$ac_prev"; then
23000 i?86 | x86_64 | ppc | ppc64)
23001 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23004 ac_cv_c_bigendian=universal
23010 elif test "x$ac_word" = "x-arch"; then
23015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016 if test $ac_cv_c_bigendian = unknown; then
23017 # See if sys/param.h defines the BYTE_ORDER macro.
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h. */
23020 #include <sys/types.h>
23021 #include <sys/param.h>
23026 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23027 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23029 bogus endian macros
23036 if ac_fn_c_try_compile "$LINENO"; then :
23037 # It does; now see whether it defined to BIG_ENDIAN or not.
23038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23039 /* end confdefs.h. */
23040 #include <sys/types.h>
23041 #include <sys/param.h>
23046 #if BYTE_ORDER != BIG_ENDIAN
23054 if ac_fn_c_try_compile "$LINENO"; then :
23055 ac_cv_c_bigendian=yes
23057 ac_cv_c_bigendian=no
23059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23063 if test $ac_cv_c_bigendian = unknown; then
23064 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23066 /* end confdefs.h. */
23067 #include <limits.h>
23072 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23073 bogus endian macros
23080 if ac_fn_c_try_compile "$LINENO"; then :
23081 # It does; now see whether it defined to _BIG_ENDIAN or not.
23082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23083 /* end confdefs.h. */
23084 #include <limits.h>
23089 #ifndef _BIG_ENDIAN
23097 if ac_fn_c_try_compile "$LINENO"; then :
23098 ac_cv_c_bigendian=yes
23100 ac_cv_c_bigendian=no
23102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23106 if test $ac_cv_c_bigendian = unknown; then
23107 # Compile a test program.
23108 if test "$cross_compiling" = yes; then :
23109 # Try to guess by grepping values from an object file.
23110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23111 /* end confdefs.h. */
23112 short int ascii_mm[] =
23113 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23114 short int ascii_ii[] =
23115 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23116 int use_ascii (int i) {
23117 return ascii_mm[i] + ascii_ii[i];
23119 short int ebcdic_ii[] =
23120 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23121 short int ebcdic_mm[] =
23122 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23123 int use_ebcdic (int i) {
23124 return ebcdic_mm[i] + ebcdic_ii[i];
23131 return use_ascii (foo) == use_ebcdic (foo);
23136 if ac_fn_c_try_compile "$LINENO"; then :
23137 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23138 ac_cv_c_bigendian=yes
23140 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23141 if test "$ac_cv_c_bigendian" = unknown; then
23142 ac_cv_c_bigendian=no
23144 # finding both strings is unlikely to happen, but who knows?
23145 ac_cv_c_bigendian=unknown
23149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23152 /* end confdefs.h. */
23153 $ac_includes_default
23158 /* Are we little or big endian? From Harbison&Steele. */
23162 char c[sizeof (long int)];
23165 return u.c[sizeof (long int) - 1] == 1;
23171 if ac_fn_c_try_run "$LINENO"; then :
23172 ac_cv_c_bigendian=no
23174 ac_cv_c_bigendian=yes
23176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23177 conftest.$ac_objext conftest.beam conftest.$ac_ext
23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23183 $as_echo "$ac_cv_c_bigendian" >&6; }
23184 case $ac_cv_c_bigendian in #(
23186 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23192 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23196 as_fn_error $? "unknown endianness
23197 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23202 # The cast to long int works around a bug in the HP C Compiler
23203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23205 # This bug is HP SR number 8606223364.
23206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23207 $as_echo_n "checking size of short... " >&6; }
23208 if ${ac_cv_sizeof_short+:} false; then :
23209 $as_echo_n "(cached) " >&6
23211 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23214 if test "$ac_cv_type_short" = yes; then
23215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23217 as_fn_error 77 "cannot compute sizeof (short)
23218 See \`config.log' for more details" "$LINENO" 5; }
23220 ac_cv_sizeof_short=0
23225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23226 $as_echo "$ac_cv_sizeof_short" >&6; }
23230 cat >>confdefs.h <<_ACEOF
23231 #define SIZEOF_SHORT $ac_cv_sizeof_short
23235 # The cast to long int works around a bug in the HP C Compiler
23236 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23237 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23238 # This bug is HP SR number 8606223364.
23239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23240 $as_echo_n "checking size of int... " >&6; }
23241 if ${ac_cv_sizeof_int+:} false; then :
23242 $as_echo_n "(cached) " >&6
23244 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23247 if test "$ac_cv_type_int" = yes; then
23248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23250 as_fn_error 77 "cannot compute sizeof (int)
23251 See \`config.log' for more details" "$LINENO" 5; }
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23259 $as_echo "$ac_cv_sizeof_int" >&6; }
23263 cat >>confdefs.h <<_ACEOF
23264 #define SIZEOF_INT $ac_cv_sizeof_int
23268 # The cast to long int works around a bug in the HP C Compiler
23269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23271 # This bug is HP SR number 8606223364.
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23273 $as_echo_n "checking size of long... " >&6; }
23274 if ${ac_cv_sizeof_long+:} false; then :
23275 $as_echo_n "(cached) " >&6
23277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23280 if test "$ac_cv_type_long" = yes; then
23281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23283 as_fn_error 77 "cannot compute sizeof (long)
23284 See \`config.log' for more details" "$LINENO" 5; }
23286 ac_cv_sizeof_long=0
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23292 $as_echo "$ac_cv_sizeof_long" >&6; }
23296 cat >>confdefs.h <<_ACEOF
23297 #define SIZEOF_LONG $ac_cv_sizeof_long
23301 # The cast to long int works around a bug in the HP C Compiler
23302 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23303 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23304 # This bug is HP SR number 8606223364.
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23306 $as_echo_n "checking size of long long... " >&6; }
23307 if ${ac_cv_sizeof_long_long+:} false; then :
23308 $as_echo_n "(cached) " >&6
23310 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23313 if test "$ac_cv_type_long_long" = yes; then
23314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23316 as_fn_error 77 "cannot compute sizeof (long long)
23317 See \`config.log' for more details" "$LINENO" 5; }
23319 ac_cv_sizeof_long_long=0
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23325 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23329 cat >>confdefs.h <<_ACEOF
23330 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23334 # The cast to long int works around a bug in the HP C Compiler
23335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23337 # This bug is HP SR number 8606223364.
23338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
23339 $as_echo_n "checking size of wchar_t... " >&6; }
23340 if ${ac_cv_sizeof_wchar_t+:} false; then :
23341 $as_echo_n "(cached) " >&6
23343 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then :
23346 if test "$ac_cv_type_wchar_t" = yes; then
23347 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23349 as_fn_error 77 "cannot compute sizeof (wchar_t)
23350 See \`config.log' for more details" "$LINENO" 5; }
23352 ac_cv_sizeof_wchar_t=0
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
23358 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
23362 cat >>confdefs.h <<_ACEOF
23363 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23368 if test "$ac_cv_sizeof_int" -lt 4 ; then
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
23370 $as_echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
23373 $as_echo "#define LBER_INT_T long" >>confdefs.h
23377 $as_echo "#define LBER_INT_T int" >>confdefs.h
23382 $as_echo "#define LBER_LEN_T long" >>confdefs.h
23385 $as_echo "#define LBER_SOCKET_T int" >>confdefs.h
23388 $as_echo "#define LBER_TAG_T long" >>confdefs.h
23391 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
23392 if test $ac_cv_sizeof_long_long -gt 4 ; then
23393 ol_with_mp=longlong
23395 $as_echo "#define USE_MP_LONG_LONG 1" >>confdefs.h
23397 elif test $ol_with_mp = longlong ; then
23398 as_fn_error $? "long long unusable for multiple precision" "$LINENO" 5
23401 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
23402 if test $ac_cv_sizeof_long -gt 4 ; then
23405 $as_echo "#define USE_MP_LONG 1" >>confdefs.h
23407 elif test $ol_with_mp = long ; then
23408 as_fn_error $? "long unusable for multiple precision" "$LINENO" 5
23411 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
23412 for ac_header in openssl/bn.h
23414 ac_fn_c_check_header_mongrel "$LINENO" "openssl/bn.h" "ac_cv_header_openssl_bn_h" "$ac_includes_default"
23415 if test "x$ac_cv_header_openssl_bn_h" = xyes; then :
23416 cat >>confdefs.h <<_ACEOF
23417 #define HAVE_OPENSSL_BN_H 1
23424 for ac_header in openssl/crypto.h
23426 ac_fn_c_check_header_mongrel "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
23427 if test "x$ac_cv_header_openssl_crypto_h" = xyes; then :
23428 cat >>confdefs.h <<_ACEOF
23429 #define HAVE_OPENSSL_CRYPTO_H 1
23436 if test "$ac_cv_header_openssl_bn_h" = "yes" &&
23437 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
23438 test "$ol_with_tls" = "found" ; then
23441 $as_echo "#define USE_MP_BIGNUM 1" >>confdefs.h
23443 elif test $ol_with_mp = bignum ; then
23444 as_fn_error $? "bignum not available" "$LINENO" 5
23447 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
23448 for ac_header in gmp.h
23450 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23451 if test "x$ac_cv_header_gmp_h" = xyes; then :
23452 cat >>confdefs.h <<_ACEOF
23453 #define HAVE_GMP_H 1
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_add_ui in -lgmp" >&5
23461 $as_echo_n "checking for __gmpz_add_ui in -lgmp... " >&6; }
23462 if ${ac_cv_lib_gmp___gmpz_add_ui+:} false; then :
23463 $as_echo_n "(cached) " >&6
23465 ac_check_lib_save_LIBS=$LIBS
23467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23468 /* end confdefs.h. */
23470 /* Override any GCC internal prototype to avoid an error.
23471 Use char because int might match the return type of a GCC
23472 builtin and then its argument prototype would still apply. */
23476 char __gmpz_add_ui ();
23480 return __gmpz_add_ui ();
23485 if ac_fn_c_try_link "$LINENO"; then :
23486 ac_cv_lib_gmp___gmpz_add_ui=yes
23488 ac_cv_lib_gmp___gmpz_add_ui=no
23490 rm -f core conftest.err conftest.$ac_objext \
23491 conftest$ac_exeext conftest.$ac_ext
23492 LIBS=$ac_check_lib_save_LIBS
23494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
23495 $as_echo "$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
23496 if test "x$ac_cv_lib_gmp___gmpz_add_ui" = xyes; then :
23497 cat >>confdefs.h <<_ACEOF
23498 #define HAVE_LIBGMP 1
23505 if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
23507 $as_echo "#define USE_MP_GMP 1" >>confdefs.h
23510 elif test $ol_with_mp = gmp ; then
23511 as_fn_error $? "gmp not available" "$LINENO" 5
23514 if test $ol_with_mp = auto ; then
23518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23519 $as_echo_n "checking for working memcmp... " >&6; }
23520 if ${ac_cv_func_memcmp_working+:} false; then :
23521 $as_echo_n "(cached) " >&6
23523 if test "$cross_compiling" = yes; then :
23524 ac_cv_func_memcmp_working=no
23526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23527 /* end confdefs.h. */
23528 $ac_includes_default
23533 /* Some versions of memcmp are not 8-bit clean. */
23534 char c0 = '\100', c1 = '\200', c2 = '\201';
23535 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23538 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23539 or more and with at least one buffer not starting on a 4-byte boundary.
23540 William Lewis provided this test program. */
23545 for (i = 0; i < 4; i++)
23549 strcpy (a, "--------01111111");
23550 strcpy (b, "--------10000000");
23551 if (memcmp (a, b, 16) >= 0)
23561 if ac_fn_c_try_run "$LINENO"; then :
23562 ac_cv_func_memcmp_working=yes
23564 ac_cv_func_memcmp_working=no
23566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23567 conftest.$ac_objext conftest.beam conftest.$ac_ext
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23572 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23573 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23574 *" memcmp.$ac_objext "* ) ;;
23575 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23581 if test $ac_cv_func_memcmp_working = no ; then
23583 $as_echo "#define NEED_MEMCMP_REPLACEMENT 1" >>confdefs.h
23587 for ac_func in strftime
23589 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
23590 if test "x$ac_cv_func_strftime" = xyes; then :
23591 cat >>confdefs.h <<_ACEOF
23592 #define HAVE_STRFTIME 1
23596 # strftime is in -lintl on SCO UNIX.
23597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
23598 $as_echo_n "checking for strftime in -lintl... " >&6; }
23599 if ${ac_cv_lib_intl_strftime+:} false; then :
23600 $as_echo_n "(cached) " >&6
23602 ac_check_lib_save_LIBS=$LIBS
23603 LIBS="-lintl $LIBS"
23604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23605 /* end confdefs.h. */
23607 /* Override any GCC internal prototype to avoid an error.
23608 Use char because int might match the return type of a GCC
23609 builtin and then its argument prototype would still apply. */
23617 return strftime ();
23622 if ac_fn_c_try_link "$LINENO"; then :
23623 ac_cv_lib_intl_strftime=yes
23625 ac_cv_lib_intl_strftime=no
23627 rm -f core conftest.err conftest.$ac_objext \
23628 conftest$ac_exeext conftest.$ac_ext
23629 LIBS=$ac_check_lib_save_LIBS
23631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
23632 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
23633 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
23634 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
23636 LIBS="-lintl $LIBS"
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton()" >&5
23644 $as_echo_n "checking for inet_aton()... " >&6; }
23645 if ${ol_cv_func_inet_aton+:} false; then :
23646 $as_echo_n "(cached) " >&6
23648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23649 /* end confdefs.h. */
23651 #ifdef HAVE_SYS_TYPES_H
23652 # include <sys/types.h>
23654 #ifdef HAVE_SYS_SOCKET_H
23655 # include <sys/socket.h>
23656 # ifdef HAVE_SYS_SELECT_H
23657 # include <sys/select.h>
23659 # include <netinet/in.h>
23660 # ifdef HAVE_ARPA_INET_H
23661 # include <arpa/inet.h>
23669 int rc = inet_aton( "255.255.255.255", &in );
23674 if ac_fn_c_try_link "$LINENO"; then :
23675 ol_cv_func_inet_aton=yes
23677 ol_cv_func_inet_aton=no
23679 rm -f core conftest.err conftest.$ac_objext \
23680 conftest$ac_exeext conftest.$ac_ext
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_inet_aton" >&5
23683 $as_echo "$ol_cv_func_inet_aton" >&6; }
23684 if test $ol_cv_func_inet_aton != no; then
23686 $as_echo "#define HAVE_INET_ATON 1" >>confdefs.h
23691 ac_fn_c_check_func "$LINENO" "_spawnlp" "ac_cv_func__spawnlp"
23692 if test "x$ac_cv_func__spawnlp" = xyes; then :
23694 $as_echo "#define HAVE_SPAWNLP 1" >>confdefs.h
23699 ac_fn_c_check_func "$LINENO" "_snprintf" "ac_cv_func__snprintf"
23700 if test "x$ac_cv_func__snprintf" = xyes; then :
23701 ac_cv_func_snprintf=yes
23703 $as_echo "#define snprintf _snprintf" >>confdefs.h
23709 for ac_func in vsnprintf _vsnprintf
23711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23712 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23713 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23714 cat >>confdefs.h <<_ACEOF
23715 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23722 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
23723 ac_cv_func_vsnprintf=yes
23725 $as_echo "#define vsnprintf _vsnprintf" >>confdefs.h
23729 for ac_func in vprintf
23731 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23732 if test "x$ac_cv_func_vprintf" = xyes; then :
23733 cat >>confdefs.h <<_ACEOF
23734 #define HAVE_VPRINTF 1
23737 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23738 if test "x$ac_cv_func__doprnt" = xyes; then :
23740 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23749 if test $ac_cv_func_vprintf = yes ; then
23750 for ac_func in snprintf vsnprintf
23752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23753 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23754 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23755 cat >>confdefs.h <<_ACEOF
23756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23823 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23826 cat >>confdefs.h <<_ACEOF
23827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23834 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
23835 if test "x$ac_cv_func_getopt" = xyes; then :
23836 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
23839 case " $LIBOBJS " in
23840 *" getopt.$ac_objext "* ) ;;
23841 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
23847 ac_fn_c_check_func "$LINENO" "getpeereid" "ac_cv_func_getpeereid"
23848 if test "x$ac_cv_func_getpeereid" = xyes; then :
23849 $as_echo "#define HAVE_GETPEEREID 1" >>confdefs.h
23852 case " $LIBOBJS " in
23853 *" getpeereid.$ac_objext "* ) ;;
23854 *) LIBOBJS="$LIBOBJS getpeereid.$ac_objext"
23862 if test "$ac_cv_func_getopt" != yes; then
23863 LIBSRCS="$LIBSRCS getopt.c"
23866 if test "$ac_cv_func_getpeereid" != yes; then
23867 for ac_func in getpeerucred
23869 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23870 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23871 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23872 cat >>confdefs.h <<_ACEOF
23873 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23879 if test "$ac_cv_func_getpeerucred" != yes ; then
23880 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrightslen" "ac_cv_member_struct_msghdr_msg_accrightslen" "$ac_includes_default
23881 #ifdef HAVE_SYS_SOCKET_H
23882 #include <sys/socket.h>
23885 if test "x$ac_cv_member_struct_msghdr_msg_accrightslen" = xyes; then :
23887 cat >>confdefs.h <<_ACEOF
23888 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
23894 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
23895 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "$ac_includes_default
23896 #ifdef HAVE_SYS_SOCKET_H
23897 #include <sys/socket.h>
23900 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
23902 cat >>confdefs.h <<_ACEOF
23903 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
23910 ac_fn_c_check_member "$LINENO" "struct stat" "st_fstype" "ac_cv_member_struct_stat_st_fstype" "$ac_includes_default"
23911 if test "x$ac_cv_member_struct_stat_st_fstype" = xyes; then :
23913 cat >>confdefs.h <<_ACEOF
23914 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
23919 ac_fn_c_check_member "$LINENO" "struct stat" "st_vfstype" "ac_cv_member_struct_stat_st_vfstype" "$ac_includes_default"
23920 if test "x$ac_cv_member_struct_stat_st_vfstype" = xyes; then :
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
23929 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
23930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 struct stat st; char *ptr=st.st_fstype;
23934 if ac_fn_c_try_compile "$LINENO"; then :
23936 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1" >>confdefs.h
23940 $as_echo "#define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1" >>confdefs.h
23943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946 LIBSRCS="$LIBSRCS getpeereid.c"
23949 if test "$ac_cv_func_snprintf" != yes ||
23950 test "$ac_cv_func_vsnprintf" != yes; then
23951 if test "$ac_cv_func_snprintf" != yes; then
23953 $as_echo "#define snprintf ber_pvt_snprintf" >>confdefs.h
23956 if test "$ac_cv_func_vsnprintf" != yes; then
23958 $as_echo "#define vsnprintf ber_pvt_vsnprintf" >>confdefs.h
23964 if test "$ol_enable_slapi" != no ; then
23965 for ac_header in ltdl.h
23967 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
23968 if test "x$ac_cv_header_ltdl_h" = xyes; then :
23969 cat >>confdefs.h <<_ACEOF
23970 #define HAVE_LTDL_H 1
23978 if test $ac_cv_header_ltdl_h != yes ; then
23979 as_fn_error $? "could not locate <ltdl.h>" "$LINENO" 5
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
23982 $as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
23983 if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
23984 $as_echo_n "(cached) " >&6
23986 ac_check_lib_save_LIBS=$LIBS
23987 LIBS="-lltdl $LIBS"
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h. */
23991 /* Override any GCC internal prototype to avoid an error.
23992 Use char because int might match the return type of a GCC
23993 builtin and then its argument prototype would still apply. */
24001 return lt_dlinit ();
24006 if ac_fn_c_try_link "$LINENO"; then :
24007 ac_cv_lib_ltdl_lt_dlinit=yes
24009 ac_cv_lib_ltdl_lt_dlinit=no
24011 rm -f core conftest.err conftest.$ac_objext \
24012 conftest$ac_exeext conftest.$ac_ext
24013 LIBS=$ac_check_lib_save_LIBS
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
24016 $as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
24017 if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
24020 LIBSLAPI=slapi/libslapi.la
24022 $as_echo "#define HAVE_LIBLTDL 1" >>confdefs.h
24026 as_fn_error $? "could not locate libtool -lltdl" "$LINENO" 5
24031 $as_echo "#define LDAP_SLAPI 1" >>confdefs.h
24035 if test "$ol_enable_debug" != no ; then
24036 if test "$ol_enable_debug" = traditional; then
24038 $as_echo "#define OLD_DEBUG 1" >>confdefs.h
24042 $as_echo "#define LDAP_DEBUG 1" >>confdefs.h
24045 if test "$ol_enable_syslog" = yes ; then
24047 $as_echo "#define LDAP_SYSLOG 1" >>confdefs.h
24050 if test "$ol_enable_proctitle" != no ; then
24052 $as_echo "#define LDAP_PROCTITLE 1" >>confdefs.h
24055 if test "$ol_enable_referrals" != no ; then
24057 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION" >>confdefs.h
24060 if test "$ol_enable_local" != no; then
24062 $as_echo "#define LDAP_PF_LOCAL 1" >>confdefs.h
24065 if test "$ol_link_ipv6" != no; then
24067 $as_echo "#define LDAP_PF_INET6 1" >>confdefs.h
24070 if test "$ol_enable_cleartext" != no ; then
24072 $as_echo "#define SLAPD_CLEARTEXT 1" >>confdefs.h
24075 if test "$ol_enable_crypt" != no ; then
24077 $as_echo "#define SLAPD_CRYPT 1" >>confdefs.h
24080 if test "$ol_link_spasswd" != no ; then
24082 $as_echo "#define SLAPD_SPASSWD 1" >>confdefs.h
24085 if test "$ol_enable_rlookups" != no ; then
24087 $as_echo "#define SLAPD_RLOOKUPS 1" >>confdefs.h
24090 if test "$ol_enable_aci" != no ; then
24091 if test $ol_enable_dynacl = no ; then
24092 ol_enable_dynacl=yes
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ACIs need dynacl" >&5
24094 $as_echo "$as_me: WARNING: ACIs need dynacl" >&2;}
24096 if test "$ol_enable_aci" = mod ; then
24097 MFLAG=SLAPD_MOD_DYNAMIC
24098 as_fn_error $? "ACI build as dynamic module not supported (yet)" "$LINENO" 5
24100 MFLAG=SLAPD_MOD_STATIC
24102 WITH_ACI_ENABLED=$ol_enable_aci
24104 cat >>confdefs.h <<_ACEOF
24105 #define SLAPD_ACI_ENABLED $MFLAG
24109 WITH_ACI_ENABLED=no
24111 if test "$ol_enable_dynacl" != no ; then
24113 $as_echo "#define SLAP_DYNACL 1" >>confdefs.h
24117 if test "$ol_link_modules" != no ; then
24119 $as_echo "#define SLAPD_MODULES 1" >>confdefs.h
24122 SLAPD_MODULES_LDFLAGS="-dlopen self"
24126 $as_echo "#define SLAPD_MOD_STATIC 1" >>confdefs.h
24129 $as_echo "#define SLAPD_MOD_DYNAMIC 2" >>confdefs.h
24132 if test "$ol_enable_monitor" != no ; then
24134 BUILD_MONITOR=$ol_enable_monitor
24135 if test "$ol_enable_monitor" = mod ; then
24136 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24137 MFLAG=SLAPD_MOD_DYNAMIC
24139 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24140 MFLAG=SLAPD_MOD_STATIC
24143 cat >>confdefs.h <<_ACEOF
24144 #define SLAPD_MONITOR $MFLAG
24149 if test "$ol_enable_bdb" != no ; then
24151 BUILD_BDB=$ol_enable_bdb
24152 if test "$ol_enable_bdb" = mod ; then
24153 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24154 MFLAG=SLAPD_MOD_DYNAMIC
24156 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24157 MFLAG=SLAPD_MOD_STATIC
24160 cat >>confdefs.h <<_ACEOF
24161 #define SLAPD_BDB $MFLAG
24166 if test "$ol_enable_dnssrv" != no ; then
24168 BUILD_DNSSRV=$ol_enable_dnssrv
24169 if test "$ol_enable_dnssrv" = mod ; then
24170 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24171 MFLAG=SLAPD_MOD_DYNAMIC
24173 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24174 MFLAG=SLAPD_MOD_STATIC
24177 cat >>confdefs.h <<_ACEOF
24178 #define SLAPD_DNSSRV $MFLAG
24183 if test "$ol_enable_hdb" != no ; then
24185 BUILD_HDB=$ol_enable_hdb
24186 if test "$ol_enable_hdb" = mod ; then
24187 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24188 MFLAG=SLAPD_MOD_DYNAMIC
24190 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24191 MFLAG=SLAPD_MOD_STATIC
24194 cat >>confdefs.h <<_ACEOF
24195 #define SLAPD_HDB $MFLAG
24200 if test "$ol_enable_ldap" != no ; then
24202 BUILD_LDAP=$ol_enable_ldap
24203 if test "$ol_enable_ldap" = mod ; then
24204 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24205 MFLAG=SLAPD_MOD_DYNAMIC
24207 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24208 MFLAG=SLAPD_MOD_STATIC
24211 cat >>confdefs.h <<_ACEOF
24212 #define SLAPD_LDAP $MFLAG
24217 if test "$ol_enable_mdb" != no ; then
24219 BUILD_MDB=$ol_enable_mdb
24220 if test "$ol_enable_mdb" = mod ; then
24221 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-mdb"
24222 MFLAG=SLAPD_MOD_DYNAMIC
24224 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-mdb"
24225 MFLAG=SLAPD_MOD_STATIC
24228 cat >>confdefs.h <<_ACEOF
24229 #define SLAPD_MDB $MFLAG
24234 if test "$ol_enable_meta" != no ; then
24236 BUILD_META=$ol_enable_meta
24238 if test "$ol_enable_meta" = mod ; then
24239 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24240 MFLAG=SLAPD_MOD_DYNAMIC
24242 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24243 MFLAG=SLAPD_MOD_STATIC
24246 cat >>confdefs.h <<_ACEOF
24247 #define SLAPD_META $MFLAG
24252 if test "$ol_enable_ndb" != no ; then
24254 BUILD_NDB=$ol_enable_ndb
24255 if test "$ol_enable_ndb" = mod ; then
24256 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
24257 MFLAG=SLAPD_MOD_DYNAMIC
24259 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
24260 MFLAG=SLAPD_MOD_STATIC
24263 cat >>confdefs.h <<_ACEOF
24264 #define SLAPD_NDB $MFLAG
24269 if test "$ol_enable_null" != no ; then
24271 BUILD_NULL=$ol_enable_null
24272 if test "$ol_enable_null" = mod ; then
24273 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24274 MFLAG=SLAPD_MOD_DYNAMIC
24276 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24277 MFLAG=SLAPD_MOD_STATIC
24280 cat >>confdefs.h <<_ACEOF
24281 #define SLAPD_NULL $MFLAG
24286 if test "$ol_enable_passwd" != no ; then
24288 BUILD_PASSWD=$ol_enable_passwd
24289 if test "$ol_enable_passwd" = mod ; then
24290 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24291 MFLAG=SLAPD_MOD_DYNAMIC
24293 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24294 MFLAG=SLAPD_MOD_STATIC
24297 cat >>confdefs.h <<_ACEOF
24298 #define SLAPD_PASSWD $MFLAG
24303 if test "$ol_link_perl" != no ; then
24305 BUILD_PERL=$ol_enable_perl
24306 if test "$ol_enable_perl" = mod ; then
24307 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
24308 MFLAG=SLAPD_MOD_DYNAMIC
24310 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
24311 MFLAG=SLAPD_MOD_STATIC
24314 cat >>confdefs.h <<_ACEOF
24315 #define SLAPD_PERL $MFLAG
24320 if test "$ol_enable_relay" != no ; then
24322 BUILD_RELAY=$ol_enable_relay
24323 if test "$ol_enable_relay" = mod ; then
24324 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
24325 MFLAG=SLAPD_MOD_DYNAMIC
24327 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
24328 MFLAG=SLAPD_MOD_STATIC
24331 cat >>confdefs.h <<_ACEOF
24332 #define SLAPD_RELAY $MFLAG
24337 if test "$ol_enable_shell" != no ; then
24338 if test "$ol_link_threads" != no ; then
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of --without-threads is recommended with back-shell" >&5
24340 $as_echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
24343 BUILD_SHELL=$ol_enable_shell
24344 if test "$ol_enable_shell" = mod ; then
24345 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
24346 MFLAG=SLAPD_MOD_DYNAMIC
24348 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
24349 MFLAG=SLAPD_MOD_STATIC
24352 cat >>confdefs.h <<_ACEOF
24353 #define SLAPD_SHELL $MFLAG
24358 if test "$ol_enable_sock" != no ; then
24360 BUILD_SOCK=$ol_enable_sock
24361 if test "$ol_enable_sock" = mod ; then
24362 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
24363 MFLAG=SLAPD_MOD_DYNAMIC
24365 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
24366 MFLAG=SLAPD_MOD_STATIC
24369 cat >>confdefs.h <<_ACEOF
24370 #define SLAPD_SOCK $MFLAG
24375 if test "$ol_link_sql" != no ; then
24377 BUILD_SQL=$ol_enable_sql
24378 if test "$ol_enable_sql" = mod; then
24379 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
24380 MFLAG=SLAPD_MOD_DYNAMIC
24382 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
24383 MFLAG=SLAPD_MOD_STATIC
24386 cat >>confdefs.h <<_ACEOF
24387 #define SLAPD_SQL $MFLAG
24392 if test "$ol_enable_accesslog" != no ; then
24393 BUILD_ACCESSLOG=$ol_enable_accesslog
24394 if test "$ol_enable_accesslog" = mod ; then
24395 MFLAG=SLAPD_MOD_DYNAMIC
24396 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
24398 MFLAG=SLAPD_MOD_STATIC
24399 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
24402 cat >>confdefs.h <<_ACEOF
24403 #define SLAPD_OVER_ACCESSLOG $MFLAG
24408 if test "$ol_enable_auditlog" != no ; then
24409 BUILD_AUDITLOG=$ol_enable_auditlog
24410 if test "$ol_enable_auditlog" = mod ; then
24411 MFLAG=SLAPD_MOD_DYNAMIC
24412 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
24414 MFLAG=SLAPD_MOD_STATIC
24415 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
24418 cat >>confdefs.h <<_ACEOF
24419 #define SLAPD_OVER_AUDITLOG $MFLAG
24424 if test "$ol_enable_collect" != no ; then
24425 BUILD_COLLECT=$ol_enable_collect
24426 if test "$ol_enable_collect" = mod ; then
24427 MFLAG=SLAPD_MOD_DYNAMIC
24428 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
24430 MFLAG=SLAPD_MOD_STATIC
24431 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
24434 cat >>confdefs.h <<_ACEOF
24435 #define SLAPD_OVER_COLLECT $MFLAG
24440 if test "$ol_enable_constraint" != no ; then
24441 BUILD_CONSTRAINT=$ol_enable_constraint
24442 if test "$ol_enable_constraint" = mod ; then
24443 MFLAG=SLAPD_MOD_DYNAMIC
24444 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
24446 MFLAG=SLAPD_MOD_STATIC
24447 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
24450 cat >>confdefs.h <<_ACEOF
24451 #define SLAPD_OVER_CONSTRAINT $MFLAG
24456 if test "$ol_enable_dds" != no ; then
24457 BUILD_DDS=$ol_enable_dds
24458 if test "$ol_enable_dds" = mod ; then
24459 MFLAG=SLAPD_MOD_DYNAMIC
24460 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
24462 MFLAG=SLAPD_MOD_STATIC
24463 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
24466 cat >>confdefs.h <<_ACEOF
24467 #define SLAPD_OVER_DDS $MFLAG
24472 if test "$ol_enable_deref" != no ; then
24473 BUILD_DEREF=$ol_enable_deref
24474 if test "$ol_enable_deref" = mod ; then
24475 MFLAG=SLAPD_MOD_DYNAMIC
24476 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
24478 MFLAG=SLAPD_MOD_STATIC
24479 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
24482 cat >>confdefs.h <<_ACEOF
24483 #define SLAPD_OVER_DEREF $MFLAG
24488 if test "$ol_enable_dyngroup" != no ; then
24489 BUILD_DYNGROUP=$ol_enable_dyngroup
24490 if test "$ol_enable_dyngroup" = mod ; then
24491 MFLAG=SLAPD_MOD_DYNAMIC
24492 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
24494 MFLAG=SLAPD_MOD_STATIC
24495 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
24498 cat >>confdefs.h <<_ACEOF
24499 #define SLAPD_OVER_DYNGROUP $MFLAG
24504 if test "$ol_enable_dynlist" != no ; then
24505 BUILD_DYNLIST=$ol_enable_dynlist
24506 if test "$ol_enable_dynlist" = mod ; then
24507 MFLAG=SLAPD_MOD_DYNAMIC
24508 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
24510 MFLAG=SLAPD_MOD_STATIC
24511 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
24514 cat >>confdefs.h <<_ACEOF
24515 #define SLAPD_OVER_DYNLIST $MFLAG
24520 if test "$ol_enable_memberof" != no ; then
24521 BUILD_MEMBEROF=$ol_enable_memberof
24522 if test "$ol_enable_memberof" = mod ; then
24523 MFLAG=SLAPD_MOD_DYNAMIC
24524 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
24526 MFLAG=SLAPD_MOD_STATIC
24527 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
24530 cat >>confdefs.h <<_ACEOF
24531 #define SLAPD_OVER_MEMBEROF $MFLAG
24536 if test "$ol_enable_ppolicy" != no ; then
24537 BUILD_PPOLICY=$ol_enable_ppolicy
24538 if test "$ol_enable_ppolicy" = mod ; then
24539 MFLAG=SLAPD_MOD_DYNAMIC
24540 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
24542 MFLAG=SLAPD_MOD_STATIC
24543 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
24546 cat >>confdefs.h <<_ACEOF
24547 #define SLAPD_OVER_PPOLICY $MFLAG
24552 if test "$ol_enable_proxycache" != no ; then
24553 BUILD_PROXYCACHE=$ol_enable_proxycache
24554 if test "$ol_enable_proxycache" = mod ; then
24555 MFLAG=SLAPD_MOD_DYNAMIC
24556 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24558 MFLAG=SLAPD_MOD_STATIC
24559 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
24562 cat >>confdefs.h <<_ACEOF
24563 #define SLAPD_OVER_PROXYCACHE $MFLAG
24568 if test "$ol_enable_refint" != no ; then
24569 BUILD_REFINT=$ol_enable_refint
24570 if test "$ol_enable_refint" = mod ; then
24571 MFLAG=SLAPD_MOD_DYNAMIC
24572 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
24574 MFLAG=SLAPD_MOD_STATIC
24575 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
24578 cat >>confdefs.h <<_ACEOF
24579 #define SLAPD_OVER_REFINT $MFLAG
24584 if test "$ol_enable_retcode" != no ; then
24585 BUILD_RETCODE=$ol_enable_retcode
24586 if test "$ol_enable_retcode" = mod ; then
24587 MFLAG=SLAPD_MOD_DYNAMIC
24588 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
24590 MFLAG=SLAPD_MOD_STATIC
24591 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
24594 cat >>confdefs.h <<_ACEOF
24595 #define SLAPD_OVER_RETCODE $MFLAG
24600 if test "$ol_enable_rwm" != no ; then
24602 BUILD_RWM=$ol_enable_rwm
24603 if test "$ol_enable_rwm" = mod ; then
24604 MFLAG=SLAPD_MOD_DYNAMIC
24605 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24607 MFLAG=SLAPD_MOD_STATIC
24608 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
24611 cat >>confdefs.h <<_ACEOF
24612 #define SLAPD_OVER_RWM $MFLAG
24617 if test "$ol_enable_seqmod" != no ; then
24618 BUILD_SEQMOD=$ol_enable_seqmod
24619 if test "$ol_enable_seqmod" = mod ; then
24620 MFLAG=SLAPD_MOD_DYNAMIC
24621 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
24623 MFLAG=SLAPD_MOD_STATIC
24624 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
24627 cat >>confdefs.h <<_ACEOF
24628 #define SLAPD_OVER_SEQMOD $MFLAG
24633 if test "$ol_enable_sssvlv" != no ; then
24634 BUILD_SSSVLV=$ol_enable_sssvlv
24635 if test "$ol_enable_sssvlv" = mod ; then
24636 MFLAG=SLAPD_MOD_DYNAMIC
24637 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
24639 MFLAG=SLAPD_MOD_STATIC
24640 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
24643 cat >>confdefs.h <<_ACEOF
24644 #define SLAPD_OVER_SSSVLV $MFLAG
24649 if test "$ol_enable_syncprov" != no ; then
24650 BUILD_SYNCPROV=$ol_enable_syncprov
24651 if test "$ol_enable_syncprov" = mod ; then
24652 MFLAG=SLAPD_MOD_DYNAMIC
24653 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
24655 MFLAG=SLAPD_MOD_STATIC
24656 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
24659 cat >>confdefs.h <<_ACEOF
24660 #define SLAPD_OVER_SYNCPROV $MFLAG
24665 if test "$ol_enable_translucent" != no ; then
24666 BUILD_TRANSLUCENT=$ol_enable_translucent
24667 if test "$ol_enable_translucent" = mod ; then
24668 MFLAG=SLAPD_MOD_DYNAMIC
24669 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
24671 MFLAG=SLAPD_MOD_STATIC
24672 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
24675 cat >>confdefs.h <<_ACEOF
24676 #define SLAPD_OVER_TRANSLUCENT $MFLAG
24681 if test "$ol_enable_unique" != no ; then
24682 BUILD_UNIQUE=$ol_enable_unique
24683 if test "$ol_enable_unique" = mod ; then
24684 MFLAG=SLAPD_MOD_DYNAMIC
24685 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
24687 MFLAG=SLAPD_MOD_STATIC
24688 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
24691 cat >>confdefs.h <<_ACEOF
24692 #define SLAPD_OVER_UNIQUE $MFLAG
24697 if test "$ol_enable_valsort" != no ; then
24698 BUILD_VALSORT=$ol_enable_valsort
24699 if test "$ol_enable_valsort" = mod ; then
24700 MFLAG=SLAPD_MOD_DYNAMIC
24701 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
24703 MFLAG=SLAPD_MOD_STATIC
24704 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
24707 cat >>confdefs.h <<_ACEOF
24708 #define SLAPD_OVER_VALSORT $MFLAG
24713 if test "$ol_enable_rewrite" != no ; then
24715 $as_echo "#define ENABLE_REWRITE 1" >>confdefs.h
24720 if test "$ol_enable_slapi" != no ; then
24722 $as_echo "#define ENABLE_SLAPI 1" >>confdefs.h
24725 SLAPD_SLAPI_DEPEND=libslapi.a
24730 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
24732 SLAPD_MODULES_LDFLAGS=
24827 # Check whether --with-xxinstall was given.
24828 if test "${with_xxinstall+set}" = set; then :
24829 withval=$with_xxinstall;
24834 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"
24837 ac_config_commands="$ac_config_commands default"
24841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24842 # Let make expand exec_prefix.
24843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24845 DEFS=-DHAVE_CONFIG_H
24850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24851 # 1. Remove the extension, and $U if already installed.
24852 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24853 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24854 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24855 # will be set to the directory where LIBOBJS objects are built.
24856 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24857 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24859 LIBOBJS=$ac_libobjs
24861 LTLIBOBJS=$ac_ltlibobjs
24864 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24865 as_fn_error $? "conditional \"AMDEP\" was never defined.
24866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24868 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24869 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24872 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24873 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24878 : "${CONFIG_STATUS=./config.status}"
24880 ac_clean_files_save=$ac_clean_files
24881 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24883 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24885 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24887 # Generated by $as_me.
24888 # Run this file to recreate the current configuration.
24889 # Compiler output produced by configure, useful for debugging
24890 # configure, is in config.log if it exists.
24893 ac_cs_recheck=false
24896 SHELL=\${CONFIG_SHELL-$SHELL}
24899 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24900 ## -------------------- ##
24901 ## M4sh Initialization. ##
24902 ## -------------------- ##
24904 # Be more Bourne compatible
24905 DUALCASE=1; export DUALCASE # for MKS sh
24906 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24910 # is contrary to our usage. Disable this feature.
24911 alias -g '${1+"$@"}'='"$@"'
24912 setopt NO_GLOB_SUBST
24914 case `(set -o) 2>/dev/null` in #(
24926 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24927 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24928 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24929 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24930 # Prefer a ksh shell builtin over an external printf program on Solaris,
24931 # but without wasting forks for bash or zsh.
24932 if test -z "$BASH_VERSION$ZSH_VERSION" \
24933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24934 as_echo='print -r --'
24935 as_echo_n='print -rn --'
24936 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24937 as_echo='printf %s\n'
24938 as_echo_n='printf %s'
24940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24942 as_echo_n='/usr/ucb/echo -n'
24944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24945 as_echo_n_body='eval
24949 expr "X$arg" : "X\\(.*\\)$as_nl";
24950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24954 export as_echo_n_body
24955 as_echo_n='sh -c $as_echo_n_body as_echo'
24957 export as_echo_body
24958 as_echo='sh -c $as_echo_body as_echo'
24961 # The user is always right.
24962 if test "${PATH_SEPARATOR+set}" != set; then
24964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24972 # We need space, tab and new line, in precisely that order. Quoting is
24973 # there to prevent editors from complaining about space-tab.
24974 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24975 # splitting by setting IFS to empty value.)
24978 # Find who we are. Look in the path if we contain no directory separator.
24981 *[\\/]* ) as_myself=$0 ;;
24982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24986 test -z "$as_dir" && as_dir=.
24987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24993 # We did not find ourselves, most probably we were run as `sh COMMAND'
24994 # in which case we are not to be found in the path.
24995 if test "x$as_myself" = x; then
24998 if test ! -f "$as_myself"; then
24999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25003 # Unset variables that we do not need and which cause bugs (e.g. in
25004 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25005 # suppresses any "Segmentation fault" message there. '((' could
25006 # trigger a bug in pdksh 5.2.14.
25007 for as_var in BASH_ENV ENV MAIL MAILPATH
25008 do eval test x\${$as_var+set} = xset \
25009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25022 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25025 # as_fn_error STATUS ERROR [LINENO LOG_FD]
25026 # ----------------------------------------
25027 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25028 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25029 # script with STATUS, using 1 if that was 0.
25032 as_status=$1; test $as_status -eq 0 && as_status=1
25034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25037 $as_echo "$as_me: error: $2" >&2
25038 as_fn_exit $as_status
25042 # as_fn_set_status STATUS
25043 # -----------------------
25044 # Set $? to STATUS, without forking.
25045 as_fn_set_status ()
25048 } # as_fn_set_status
25050 # as_fn_exit STATUS
25051 # -----------------
25052 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25056 as_fn_set_status $1
25062 # Portably unset VAR.
25065 { eval $1=; unset $1;}
25067 as_unset=as_fn_unset
25068 # as_fn_append VAR VALUE
25069 # ----------------------
25070 # Append the text in VALUE to the end of the definition contained in VAR. Take
25071 # advantage of any shell optimizations that allow amortized linear growth over
25072 # repeated appends, instead of the typical quadratic growth present in naive
25074 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25075 eval 'as_fn_append ()
25086 # as_fn_arith ARG...
25087 # ------------------
25088 # Perform arithmetic evaluation on the ARGs, and store the result in the
25089 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25090 # must be portable across $(()) and expr.
25091 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25092 eval 'as_fn_arith ()
25099 as_val=`expr "$@" || test $? -eq 1`
25104 if expr a : '\(a\)' >/dev/null 2>&1 &&
25105 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25111 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25112 as_basename=basename
25117 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25123 as_me=`$as_basename -- "$0" ||
25124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25125 X"$0" : 'X\(//\)$' \| \
25126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25128 sed '/^.*\/\([^/][^/]*\)\/*$/{
25142 # Avoid depending upon Character Ranges.
25143 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25144 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25145 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25146 as_cr_digits='0123456789'
25147 as_cr_alnum=$as_cr_Letters$as_cr_digits
25149 ECHO_C= ECHO_N= ECHO_T=
25150 case `echo -n x` in #(((((
25152 case `echo 'xy\c'` in
25153 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25162 rm -f conf$$ conf$$.exe conf$$.file
25163 if test -d conf$$.dir; then
25164 rm -f conf$$.dir/conf$$.file
25167 mkdir conf$$.dir 2>/dev/null
25169 if (echo >conf$$.file) 2>/dev/null; then
25170 if ln -s conf$$.file conf$$ 2>/dev/null; then
25172 # ... but there are two gotchas:
25173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25175 # In both cases, we have to default to `cp -p'.
25176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25178 elif ln conf$$.file conf$$ 2>/dev/null; then
25186 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25187 rmdir conf$$.dir 2>/dev/null
25192 # Create "$as_dir" as a directory, including parents if necessary.
25197 -*) as_dir=./$as_dir;;
25199 test -d "$as_dir" || eval $as_mkdir_p || {
25203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25204 *) as_qdir=$as_dir;;
25206 as_dirs="'$as_qdir' $as_dirs"
25207 as_dir=`$as_dirname -- "$as_dir" ||
25208 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25209 X"$as_dir" : 'X\(//\)[^/]' \| \
25210 X"$as_dir" : 'X\(//\)$' \| \
25211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25212 $as_echo X"$as_dir" |
25213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25217 /^X\(\/\/\)[^/].*/{
25230 test -d "$as_dir" && break
25232 test -z "$as_dirs" || eval "mkdir $as_dirs"
25233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25237 if mkdir -p . 2>/dev/null; then
25238 as_mkdir_p='mkdir -p "$as_dir"'
25240 test -d ./-p && rmdir ./-p
25244 if test -x / >/dev/null 2>&1; then
25245 as_test_x='test -x'
25247 if ls -dL / >/dev/null 2>&1; then
25254 if test -d "$1"; then
25260 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25261 ???[sx]*):;;*)false;;esac;fi
25265 as_executable_p=$as_test_x
25267 # Sed expression to map a string onto a valid CPP name.
25268 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25270 # Sed expression to map a string onto a valid variable name.
25271 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25275 ## ----------------------------------- ##
25276 ## Main body of $CONFIG_STATUS script. ##
25277 ## ----------------------------------- ##
25279 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25282 # Save the log message, to keep $0 and so on meaningful, and to
25283 # report actual input values of CONFIG_FILES etc. instead of their
25284 # values after options handling.
25286 This file was extended by $as_me, which was
25287 generated by GNU Autoconf 2.68. Invocation command line was
25289 CONFIG_FILES = $CONFIG_FILES
25290 CONFIG_HEADERS = $CONFIG_HEADERS
25291 CONFIG_LINKS = $CONFIG_LINKS
25292 CONFIG_COMMANDS = $CONFIG_COMMANDS
25295 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25300 case $ac_config_files in *"
25301 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25304 case $ac_config_headers in *"
25305 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25310 # Files that config.status was made for.
25311 config_files="$ac_config_files"
25312 config_headers="$ac_config_headers"
25313 config_commands="$ac_config_commands"
25317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25319 \`$as_me' instantiates files and other configuration actions
25320 from templates according to the current configuration. Unless the files
25321 and actions are specified as TAGs, all are instantiated by default.
25323 Usage: $0 [OPTION]... [TAG]...
25325 -h, --help print this help, then exit
25326 -V, --version print version number and configuration settings, then exit
25327 --config print configuration, then exit
25328 -q, --quiet, --silent
25329 do not print progress messages
25330 -d, --debug don't remove temporary files
25331 --recheck update $as_me by reconfiguring in the same conditions
25332 --file=FILE[:TEMPLATE]
25333 instantiate the configuration file FILE
25334 --header=FILE[:TEMPLATE]
25335 instantiate the configuration header FILE
25337 Configuration files:
25340 Configuration headers:
25343 Configuration commands:
25346 Report bugs to <<http://www.openldap.org/its/>>."
25349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25350 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25353 configured by $0, generated by GNU Autoconf 2.68,
25354 with options \\"\$ac_cs_config\\"
25356 Copyright (C) 2010 Free Software Foundation, Inc.
25357 This config.status script is free software; the Free Software Foundation
25358 gives unlimited permission to copy, distribute and modify it."
25364 test -n "\$AWK" || AWK=awk
25367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25368 # The default lists apply if the user does not specify any file.
25374 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25375 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25379 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25391 # Handling of the options.
25392 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25394 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25395 $as_echo "$ac_cs_version"; exit ;;
25396 --config | --confi | --conf | --con | --co | --c )
25397 $as_echo "$ac_cs_config"; exit ;;
25398 --debug | --debu | --deb | --de | --d | -d )
25400 --file | --fil | --fi | --f )
25403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25404 '') as_fn_error $? "missing file argument" ;;
25406 as_fn_append CONFIG_FILES " '$ac_optarg'"
25407 ac_need_defaults=false;;
25408 --header | --heade | --head | --hea )
25411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25413 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25414 ac_need_defaults=false;;
25416 # Conflict between --help and --header
25417 as_fn_error $? "ambiguous option: \`$1'
25418 Try \`$0 --help' for more information.";;
25419 --help | --hel | -h )
25420 $as_echo "$ac_cs_usage"; exit ;;
25421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25425 # This is an error.
25426 -*) as_fn_error $? "unrecognized option: \`$1'
25427 Try \`$0 --help' for more information." ;;
25429 *) as_fn_append ac_config_targets " $1"
25430 ac_need_defaults=false ;;
25436 ac_configure_extra_args=
25438 if $ac_cs_silent; then
25440 ac_configure_extra_args="$ac_configure_extra_args --silent"
25444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25445 if \$ac_cs_recheck; then
25446 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25448 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25449 CONFIG_SHELL='$SHELL'
25450 export CONFIG_SHELL
25455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25459 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25460 ## Running $as_me. ##
25466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25470 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25472 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25473 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
25478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25480 # Handling of arguments.
25481 for ac_config_target in $ac_config_targets
25483 case $ac_config_target in
25484 "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
25485 "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
25486 "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
25487 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25488 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
25489 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
25490 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
25491 "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
25492 "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
25493 "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
25494 "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
25495 "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
25496 "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
25497 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
25498 "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
25499 "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25500 "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
25501 "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" ;;
25502 "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25503 "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25504 "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
25505 "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
25506 "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
25507 "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" ;;
25508 "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" ;;
25509 "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" ;;
25510 "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" ;;
25511 "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" ;;
25512 "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" ;;
25513 "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" ;;
25514 "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" ;;
25515 "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" ;;
25516 "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" ;;
25517 "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" ;;
25518 "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" ;;
25519 "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" ;;
25520 "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" ;;
25521 "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" ;;
25522 "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" ;;
25523 "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" ;;
25524 "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" ;;
25525 "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
25526 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
25527 "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
25528 "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
25529 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
25531 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25536 # If the user did not use the arguments to specify the items to instantiate,
25537 # then the envvar interface is used. Set only those that are not.
25538 # We use the long form for the default assignment because of an extremely
25539 # bizarre bug on SunOS 4.1.3.
25540 if $ac_need_defaults; then
25541 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25542 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25543 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25546 # Have a temporary directory for convenience. Make it in the build tree
25547 # simply because there is no reason against having it here, and in addition,
25548 # creating and moving files from /tmp can sometimes cause problems.
25549 # Hook for its removal unless debugging.
25550 # Note that there is a small window in which the directory will not be cleaned:
25551 # after its creation but before its name has been assigned to `$tmp'.
25555 trap 'exit_status=$?
25556 : "${ac_tmp:=$tmp}"
25557 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25559 trap 'as_fn_exit 1' 1 2 13 15
25561 # Create a (secure) tmp directory for tmp files.
25564 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25568 tmp=./conf$$-$RANDOM
25569 (umask 077 && mkdir "$tmp")
25570 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25573 # Set up the scripts for CONFIG_FILES section.
25574 # No need to generate them if there are no CONFIG_FILES.
25575 # This happens for instance with `./config.status config.h'.
25576 if test -n "$CONFIG_FILES"; then
25579 ac_cr=`echo X | tr X '\015'`
25580 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25581 # But we know of no other shell where ac_cr would be empty at this
25582 # point, so we can use a bashism as a fallback.
25583 if test "x$ac_cr" = x; then
25584 eval ac_cr=\$\'\\r\'
25586 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25587 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25590 ac_cs_awk_cr=$ac_cr
25593 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25598 echo "cat >conf$$subs.awk <<_ACEOF" &&
25599 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25601 } >conf$$subs.sh ||
25602 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25603 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25605 for ac_last_try in false false false false false :; do
25606 . ./conf$$subs.sh ||
25607 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25609 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25610 if test $ac_delim_n = $ac_delim_num; then
25612 elif $ac_last_try; then
25613 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25615 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25618 rm -f conf$$subs.sh
25620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25621 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25625 s/^/S["/; s/!.*/"]=/
25635 s/\(.\{148\}\)..*/\1/
25637 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25642 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25649 s/\(.\{148\}\)..*/\1/
25651 s/["\\]/\\&/g; s/^/"/; s/$/"/
25655 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25660 ' <conf$$subs.awk | sed '
25665 ' >>$CONFIG_STATUS || ac_write_fail=1
25666 rm -f conf$$subs.awk
25667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25669 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25670 for (key in S) S_is_set[key] = 1
25676 nfields = split(line, field, "@")
25678 len = length(field[1])
25679 for (i = 2; i < nfields; i++) {
25681 keylen = length(key)
25682 if (S_is_set[key]) {
25684 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25685 len += length(value) + length(field[++i])
25696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25697 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25698 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25701 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25702 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25705 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25706 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25707 # trailing colons and then remove the whole line if VPATH becomes empty
25708 # (actually we leave an empty line to preserve line numbers).
25709 if test "x$srcdir" = x.; then
25710 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25729 fi # test -n "$CONFIG_FILES"
25731 # Set up the scripts for CONFIG_HEADERS section.
25732 # No need to generate them if there are no CONFIG_HEADERS.
25733 # This happens for instance with `./config.status Makefile'.
25734 if test -n "$CONFIG_HEADERS"; then
25735 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25739 # Transform confdefs.h into an awk script `defines.awk', embedded as
25740 # here-document in config.status, that substitutes the proper values into
25741 # config.h.in to produce config.h.
25743 # Create a delimiter string that does not exist in confdefs.h, to ease
25744 # handling of long lines.
25746 for ac_last_try in false false :; do
25747 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25748 if test -z "$ac_tt"; then
25750 elif $ac_last_try; then
25751 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25753 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25757 # For the awk script, D is an array of macro values keyed by name,
25758 # likewise P contains macro parameters if any. Preserve backslash
25759 # newline sequences.
25761 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25763 s/.\{148\}/&'"$ac_delim"'/g
25766 s/^[ ]*#[ ]*define[ ][ ]*/ /
25773 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25775 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25779 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25780 D["\1"]=" \3\\\\\\n"\\/p
25782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25787 s/.\{148\}/&'"$ac_delim"'/g
25792 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25795 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25797 ' <confdefs.h | sed '
25798 s/'"$ac_delim"'/"\\\
25799 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25802 for (key in D) D_is_set[key] = 1
25805 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25807 split(line, arg, " ")
25808 if (arg[1] == "#") {
25812 defundef = substr(arg[1], 2)
25815 split(mac1, mac2, "(") #)
25817 prefix = substr(line, 1, index(line, defundef) - 1)
25818 if (D_is_set[macro]) {
25819 # Preserve the white space surrounding the "#".
25820 print prefix "define", macro P[macro] D[macro]
25823 # Replace #undef with comments. This is necessary, for example,
25824 # in the case of _POSIX_SOURCE, which is predefined and required
25825 # on some systems where configure will not decide to define it.
25826 if (defundef == "undef") {
25827 print "/*", prefix defundef, macro, "*/"
25835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25836 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25837 fi # test -n "$CONFIG_HEADERS"
25840 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25845 :[FHLC]) ac_mode=$ac_tag; continue;;
25847 case $ac_mode$ac_tag in
25849 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25850 :[FH]-) ac_tag=-:-;;
25851 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25868 -) ac_f="$ac_tmp/stdin";;
25869 *) # Look for the file first in the build tree, then in the source tree
25870 # (if the path is not absolute). The absolute path cannot be DOS-style,
25871 # because $ac_f cannot contain `:'.
25875 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25877 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25879 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25880 as_fn_append ac_file_inputs " '$ac_f'"
25883 # Let's still pretend it is `configure' which instantiates (i.e., don't
25884 # use $as_me), people would be surprised to read:
25885 # /* config.h. Generated by config.status. */
25886 configure_input='Generated from '`
25887 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25889 if test x"$ac_file" != x-; then
25890 configure_input="$ac_file. $configure_input"
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25892 $as_echo "$as_me: creating $ac_file" >&6;}
25894 # Neutralize special characters interpreted by sed in replacement strings.
25895 case $configure_input in #(
25896 *\&* | *\|* | *\\* )
25897 ac_sed_conf_input=`$as_echo "$configure_input" |
25898 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25899 *) ac_sed_conf_input=$configure_input;;
25903 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25909 ac_dir=`$as_dirname -- "$ac_file" ||
25910 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25911 X"$ac_file" : 'X\(//\)[^/]' \| \
25912 X"$ac_file" : 'X\(//\)$' \| \
25913 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25914 $as_echo X"$ac_file" |
25915 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25919 /^X\(\/\/\)[^/].*/{
25932 as_dir="$ac_dir"; as_fn_mkdir_p
25936 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25938 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25939 # A ".." for each directory in $ac_dir_suffix.
25940 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25941 case $ac_top_builddir_sub in
25942 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25943 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25946 ac_abs_top_builddir=$ac_pwd
25947 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25948 # for backward compatibility:
25949 ac_top_builddir=$ac_top_build_prefix
25952 .) # We are building in place.
25954 ac_top_srcdir=$ac_top_builddir_sub
25955 ac_abs_top_srcdir=$ac_pwd ;;
25956 [\\/]* | ?:[\\/]* ) # Absolute name.
25957 ac_srcdir=$srcdir$ac_dir_suffix;
25958 ac_top_srcdir=$srcdir
25959 ac_abs_top_srcdir=$srcdir ;;
25960 *) # Relative name.
25961 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25962 ac_top_srcdir=$ac_top_build_prefix$srcdir
25963 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25965 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25975 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25976 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25981 # If the template does not know about datarootdir, expand it.
25982 # FIXME: This hack should be removed a few years after 2.60.
25983 ac_datarootdir_hack=; ac_datarootdir_seen=
25994 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25995 *datarootdir*) ac_datarootdir_seen=yes;;
25996 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25998 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26001 ac_datarootdir_hack='
26002 s&@datadir@&$datadir&g
26003 s&@docdir@&$docdir&g
26004 s&@infodir@&$infodir&g
26005 s&@localedir@&$localedir&g
26006 s&@mandir@&$mandir&g
26007 s&\\\${datarootdir}&$datarootdir&g' ;;
26011 # Neutralize VPATH when `$srcdir' = `.'.
26012 # Shell code in configure.ac might set extrasub.
26013 # FIXME: do we really want to maintain this feature?
26014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26015 ac_sed_extra="$ac_vpsub
26018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26020 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26021 s|@configure_input@|$ac_sed_conf_input|;t t
26022 s&@top_builddir@&$ac_top_builddir_sub&;t t
26023 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26024 s&@srcdir@&$ac_srcdir&;t t
26025 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26026 s&@top_srcdir@&$ac_top_srcdir&;t t
26027 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26028 s&@builddir@&$ac_builddir&;t t
26029 s&@abs_builddir@&$ac_abs_builddir&;t t
26030 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26031 s&@INSTALL@&$ac_INSTALL&;t t
26032 $ac_datarootdir_hack
26034 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26035 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26037 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26038 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26039 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26040 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26042 which seems to be undefined. Please make sure it is defined" >&5
26043 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26044 which seems to be undefined. Please make sure it is defined" >&2;}
26046 rm -f "$ac_tmp/stdin"
26048 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26049 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26057 if test x"$ac_file" != x-; then
26059 $as_echo "/* $configure_input */" \
26060 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26061 } >"$ac_tmp/config.h" \
26062 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26063 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26065 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26068 mv "$ac_tmp/config.h" "$ac_file" \
26069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26072 $as_echo "/* $configure_input */" \
26073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26074 || as_fn_error $? "could not create -" "$LINENO" 5
26076 # Compute "$ac_file"'s index in $config_headers.
26078 for _am_header in $config_headers :; do
26079 case $_am_header in
26080 "$ac_file" | "$ac_file":* )
26083 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26086 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
26087 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26088 X"$ac_file" : 'X\(//\)[^/]' \| \
26089 X"$ac_file" : 'X\(//\)$' \| \
26090 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26091 $as_echo X"$ac_file" |
26092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26096 /^X\(\/\/\)[^/].*/{
26108 s/.*/./; q'`/stamp-h$_am_stamp_count
26111 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26112 $as_echo "$as_me: executing $ac_file commands" >&6;}
26117 case $ac_file$ac_mode in
26118 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
26119 # Strip MF so we end up with the name of the file.
26120 mf=`echo "$mf" | sed -e 's/:.*$//'`
26121 # Check whether this is an Automake generated Makefile or not.
26122 # We used to match only the files named `Makefile.in', but
26123 # some people rename them; so instead we look at the file content.
26124 # Grep'ing the first line is not enough: some people post-process
26125 # each Makefile.in and add a new line on top of each file to say so.
26126 # So let's grep whole file.
26127 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
26128 dirpart=`$as_dirname -- "$mf" ||
26129 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26130 X"$mf" : 'X\(//\)[^/]' \| \
26131 X"$mf" : 'X\(//\)$' \| \
26132 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26138 /^X\(\/\/\)[^/].*/{
26154 # Extract the definition of DEPDIR, am__include, and am__quote
26155 # from the Makefile without running `make'.
26156 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26157 test -z "$DEPDIR" && continue
26158 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26159 test -z "am__include" && continue
26160 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26161 # When using ansi2knr, U may be empty or an underscore; expand it
26162 U=`sed -n 's/^U = //p' < "$mf"`
26163 # Find all dependency output files, they are included files with
26164 # $(DEPDIR) in their names. We invoke sed twice because it is the
26165 # simplest approach to changing $(DEPDIR) to its actual value in the
26167 for file in `sed -n "
26168 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26169 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26170 # Make sure the directory exists.
26171 test -f "$dirpart/$file" && continue
26172 fdir=`$as_dirname -- "$file" ||
26173 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26174 X"$file" : 'X\(//\)[^/]' \| \
26175 X"$file" : 'X\(//\)$' \| \
26176 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26177 $as_echo X"$file" |
26178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26182 /^X\(\/\/\)[^/].*/{
26195 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26196 # echo "creating $dirpart/$file"
26197 echo '# dummy' > "$dirpart/$file"
26204 BACKENDSC="servers/slapd/backends.c"
26205 echo "Making $BACKENDSC"
26207 cat > $BACKENDSC << ENDX
26208 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26210 * Copyright 1998-2014 The OpenLDAP Foundation.
26211 * All rights reserved.
26213 * Redistribution and use in source and binary forms, with or without
26214 * modification, are permitted only as authorized by the OpenLDAP
26217 * A copy of this license is available in the file LICENSE in the
26218 * top-level directory of the distribution or, alternatively, at
26219 * <http://www.OpenLDAP.org/license.html>.
26221 /* This file is automatically generated by configure; please do not edit. */
26223 #include "portable.h"
26227 if test "${STATIC_BACKENDS}"; then
26228 for b in config ${STATIC_BACKENDS}; do
26229 bb=`echo "${b}" | sed -e 's/back-//'`
26230 cat >> $BACKENDSC << ENDX
26231 extern BI_init ${bb}_back_initialize;
26235 cat >> $BACKENDSC << ENDX
26237 BackendInfo slap_binfo[] = {
26240 for b in config ${STATIC_BACKENDS}; do
26241 bb=`echo "${b}" | sed -e 's/back-//'`
26242 echo " Add ${bb} ..."
26243 cat >> $BACKENDSC << ENDX
26244 { "${bb}", ${bb}_back_initialize },
26248 cat >> $BACKENDSC << ENDX
26252 /* end of generated file */
26255 OVERLAYSC="servers/slapd/overlays/statover.c"
26256 echo "Making $OVERLAYSC"
26258 cat > $OVERLAYSC << ENDX
26259 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26261 * Copyright 1998-2014 The OpenLDAP Foundation.
26262 * All rights reserved.
26264 * Redistribution and use in source and binary forms, with or without
26265 * modification, are permitted only as authorized by the OpenLDAP
26268 * A copy of this license is available in the file LICENSE in the
26269 * top-level directory of the distribution or, alternatively, at
26270 * <http://www.OpenLDAP.org/license.html>.
26272 /* This file is automatically generated by configure; please do not edit. */
26274 #include "portable.h"
26278 if test "${STATIC_OVERLAYS}"; then
26279 for o in ${STATIC_OVERLAYS}; do
26280 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26281 cat >> $OVERLAYSC << ENDX
26282 extern OV_init ${oo}_initialize;
26287 cat >> $OVERLAYSC << ENDX
26289 OverlayInit slap_oinfo[] = {
26292 if test "${STATIC_OVERLAYS}"; then
26293 for o in ${STATIC_OVERLAYS}; do
26294 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
26295 echo " Add ${oo} ..."
26296 cat >> $OVERLAYSC << ENDX
26297 { "${oo}", ${oo}_initialize },
26302 cat >> $OVERLAYSC << ENDX
26306 /* end of generated file */
26309 if test "${ol_cv_mkdep}" = no; then
26310 echo '(Do not "make depend"; we do not know how to build dependencies)'
26312 echo 'Please run "make depend" to build dependencies'
26322 ac_clean_files=$ac_clean_files_save
26324 test $ac_write_fail = 0 ||
26325 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26328 # configure is writing to config.log, and then calls config.status.
26329 # config.status does its own redirection, appending to config.log.
26330 # Unfortunately, on DOS this fails, as config.log is still kept open
26331 # by configure, so config.status won't be able to write to it; its
26332 # output is simply discarded. So we exec the FD to /dev/null,
26333 # effectively closing config.log, so it can be properly (re)opened and
26334 # appended to by config.status. When coming back to configure, we
26335 # need to make the FD available again.
26336 if test "$no_create" != yes; then
26338 ac_config_status_args=
26339 test "$silent" = yes &&
26340 ac_config_status_args="$ac_config_status_args --quiet"
26342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26345 # would make configure fail if this is the last instruction.
26346 $ac_cs_success || as_fn_exit 1
26348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}